/* Get Coupons Online v1.0 — by FreddyDeveloper */
:root {
  color-scheme: dark;
  --blue: #1677ff;
  --blue-2: #0a5cff;
  --blue-soft: rgba(22, 119, 255, .16);
  --red: #ff2d3d;
  --red-2: #e3132a;
  --yellow: #ffc21a;
  --orange: #ff9f0a;
  --green: #2bd67b;
  --background: #0b101c;
  --surface: #141b2b;
  --surface-2: #1b2438;
  --well: rgba(0, 0, 0, .28);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f7ff;
  --muted: rgba(214, 224, 255, .62);
  --faint: rgba(214, 224, 255, .38);
  --mono: 'Cascadia Code', 'JetBrains Mono', Consolas, 'SF Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif; }
button, input, select { font: inherit; color: inherit; }
a { color: #6fb0ff; }
.hidden { display: none !important; }

html, body { height: 100%; }
body {
  background: var(--background);
  color: var(--text);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
input, .code, .src .ctx, .results-sub { user-select: text; -webkit-user-select: text; }

/* ===== Desktop layout ===== */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 410px 1fr; height: 100vh; }
.sidebar { padding: 16px 8px 16px 16px; overflow-y: auto; }
.sidebar .container { min-height: 100%; }
.main { padding: 16px 20px 24px 12px; overflow-y: auto; position: relative; }

.glow { position: fixed; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; }
.glow-a { width: 260px; height: 260px; background: var(--blue); top: -150px; left: -110px; opacity: .45; }
.glow-b { width: 320px; height: 320px; background: var(--yellow); top: -220px; right: -160px; opacity: .16; }
.glow-c { width: 420px; height: 420px; background: var(--red); bottom: -300px; right: 10%; opacity: .12; }

.container {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(27, 36, 56, .92), rgba(20, 27, 43, .96));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
}

/* ===== Header ===== */
.header { display: flex; align-items: center; gap: 12px; }
.logo { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 6px 18px rgba(22, 119, 255, .45); flex-shrink: 0; }
.brand { flex: 1; min-width: 0; }
.brand-name { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.3px; line-height: 1.1; color: var(--text); text-decoration: none; }
.brand-name span { background: linear-gradient(90deg, var(--yellow), var(--orange) 45%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.byline { font-size: 11.5px; color: var(--muted); margin-top: 3px; letter-spacing: .2px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: all .2s ease; flex-shrink: 0;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.icon-btn.small { width: 30px; height: 30px; border-radius: 8px; }

.engine-pill {
  margin: 14px 0 14px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  background: var(--well); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}

/* ===== Status dot (from the reference) ===== */
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 45, 61, .18); flex-shrink: 0; }
.status-dot.active { background: var(--green); box-shadow: 0 0 0 3px rgba(43, 214, 123, .2); }
.status-dot.busy { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 194, 26, .22); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 194, 26, 0); } }

/* ===== Tabs (segmented selector from the reference) ===== */
.tabs { display: flex; gap: 6px; background: var(--well); padding: 6px; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--line); }
.tab {
  flex: 1; padding: 10px 6px; border: none; border-radius: 10px; background: transparent; color: var(--muted);
  cursor: pointer; transition: all .25s ease; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600;
}
.tab:hover:not(.active) { background: rgba(255, 255, 255, .07); color: var(--text); }
.tab.active { background: linear-gradient(180deg, #2b87ff, var(--blue-2)); color: #fff; box-shadow: 0 6px 16px rgba(10, 92, 255, .4); }
.tab-count { background: rgba(255, 255, 255, .16); border-radius: 8px; padding: 0 6px; font-size: 11px; line-height: 17px; }
.tab:not(.active) .tab-count { background: rgba(255, 45, 61, .9); color: #fff; }

.panel { display: none; animation: fadeUp .3s ease; }
.panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* ===== Inputs ===== */
.input-group { margin-bottom: 14px; }
.input-group label, .row-label, .field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .2px; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-wrap .input-field { padding-left: 42px; }
.input-field {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line-2); border-radius: 11px;
  background: var(--well); color: var(--text); font-size: 14px; transition: all .25s ease;
}
.input-field::placeholder { color: var(--faint); }
.input-field:focus { outline: none; border-color: var(--blue); background: rgba(0, 0, 0, .38); box-shadow: 0 0 0 4px var(--blue-soft); }
#company { font-size: 15px; font-weight: 600; }

.segmented { display: flex; gap: 4px; background: var(--well); padding: 4px; border-radius: 11px; margin-bottom: 14px; border: 1px solid var(--line); }
.segmented button { flex: 1; border: none; background: transparent; color: var(--muted); padding: 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .2s; }
.segmented button:hover:not(.active) { color: var(--text); background: rgba(255, 255, 255, .06); }
.segmented button.active { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line-2); }
.segmented button[data-depth="extreme"].active { color: var(--yellow); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: 20px;
  border: 1px solid var(--line-2); background: transparent; color: var(--faint); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.chip.on { color: var(--text); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.chip:not(.on) .eg { filter: grayscale(1); opacity: .4; }
.chip.no-key { border-style: dashed; }

.eg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.eg-google { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.eg-bing { background: linear-gradient(135deg, #22d3ee, #0ea5e9 50%, #2563eb); }
.eg-ddg { background: radial-gradient(circle at 50% 40%, #fff 0 22%, #de5833 23%); }
.eg-reddit { background: radial-gradient(circle at 50% 55%, #fff 0 28%, #ff4500 29%); }
.eg-searx { background: radial-gradient(circle at 42% 42%, #fff 0 24%, #3050ff 25% 62%, #1d36c9 63%); }
.opt { font-size: 10.5px; font-weight: 600; color: var(--faint); background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 1px 7px; margin-left: 4px; }
.ghost-btn { white-space: nowrap; flex-shrink: 0; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); border-radius: 9px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .2s; }
.ghost-btn:hover { border-color: var(--blue); background: var(--blue-soft); }
.ghost-btn:disabled { opacity: .6; cursor: wait; }
.test-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.test-result { font-size: 12px; font-weight: 600; }
.test-result.ok { color: #7cf0b2; }
.test-result.bad { color: #ff8a93; }
.eg-brave { background: linear-gradient(160deg, #ff6b2c, #fb542b 60%, #c8102e); border-radius: 4px; }

/* ===== Status container (from the reference) ===== */
.status-container {
  background: var(--well); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.status-indicator { display: flex; align-items: center; gap: 9px; min-width: 0; }
.status-text { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-count { background: rgba(255, 255, 255, .09); padding: 4px 11px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.viewer-count.hot { background: linear-gradient(90deg, var(--yellow), var(--orange)); color: #241400; }

.progress { margin-bottom: 12px; }
.progress-bar { height: 7px; background: var(--well); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.progress-fill {
  height: 100%; width: 0%; border-radius: 6px; transition: width .35s ease;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red));
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.progress-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
#progressEngines { display: flex; gap: 6px; }
#progressEngines .eg-count { display: inline-flex; align-items: center; gap: 4px; }
.feed { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); height: 54px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; mask-image: linear-gradient(transparent, #000 45%); }
.feed div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .hit { color: var(--yellow); }
.feed .warn { color: #ff8a93; }

/* ===== Main action (from the reference) ===== */
.action-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #2b87ff, var(--blue-2)); color: #fff; font-size: 15.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 24px rgba(10, 92, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}
.action-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 30px rgba(10, 92, 255, .48), inset 0 1px 0 rgba(255, 255, 255, .25); }
.action-btn:active { transform: translateY(1px); }
.action-btn:disabled { filter: grayscale(.6) brightness(.8); cursor: not-allowed; transform: none; }
.action-btn.stop { background: linear-gradient(180deg, #ff4a58, var(--red-2)); box-shadow: 0 10px 24px rgba(227, 19, 42, .38), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* ===== Site hint ===== */
.site-hint {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, rgba(255, 194, 26, .16), rgba(255, 45, 61, .12)); border: 1px solid rgba(255, 194, 26, .35); font-size: 12.5px;
}
.site-hint b { color: var(--yellow); }
.site-hint img { width: 20px; height: 20px; border-radius: 5px; }

/* ===== Results ===== */
.results { animation: fadeUp .35s ease; }
.results-head > div:first-child { flex: 1; min-width: 0; }
.results-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.results-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.results-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.results-actions { display: flex; gap: 6px; align-items: center; }
.mini-select { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; height: 34px; color: var(--text); cursor: pointer; }
.mini-select option { background: var(--surface); }
.coupon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 12px; align-items: start; }

.empty { text-align: center; padding: 26px 12px; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: 14px; }
.empty b { color: var(--text); display: block; font-size: 14px; margin-bottom: 4px; }

/* ===== Ticket card ===== */
.ticket {
  --tone: var(--red); --tone-2: var(--red-2);
  position: relative; display: flex; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  animation: popIn .35s cubic-bezier(.2, .9, .3, 1.3);
}
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(6px); } }
.ticket.mid { --tone: var(--orange); --tone-2: #e68600; }
.ticket.low { --tone: #56627e; --tone-2: #414b63; }
.ticket.works { --tone: var(--green); --tone-2: #18a85b; }
.ticket.expired { opacity: .5; }
.ticket.expired .code { text-decoration: line-through; }

.stub {
  width: 98px; flex-shrink: 0; padding: 12px 10px; color: #fff; position: relative;
  background: linear-gradient(160deg, var(--tone), var(--tone-2));
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px;
}
.stub::after { /* perforation */
  content: ''; position: absolute; right: -1px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .75) 0 5px, transparent 5px 10px);
}
.ticket::before, .ticket::after { /* notches */
  content: ''; position: absolute; left: 89px; width: 18px; height: 18px; border-radius: 50%;
  background: #161d2f; z-index: 2;
}
.ticket::before { top: -10px; }
.ticket.open .stub { justify-content: flex-start; padding-top: 30px; }
.ticket::after { bottom: -10px; }
.stub .disc { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.stub .disc.long { font-size: 14px; }
.stub .disc-sub { font-size: 10px; font-weight: 700; opacity: .9; letter-spacing: 1px; text-transform: uppercase; }
.stub .pct { font-size: 15px; }

.ticket-body { flex: 1; min-width: 0; padding: 11px 12px 11px 18px; }
.code-row { display: flex; align-items: center; gap: 8px; }
.code {
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .8px;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(0, 0, 0, .3); border: 1px dashed rgba(255, 255, 255, .22); border-radius: 8px; padding: 5px 9px; cursor: copy;
}
.copy-btn {
  border: none; cursor: pointer; border-radius: 8px; padding: 7px 11px; font-size: 12px; font-weight: 700; color: #241400;
  background: linear-gradient(180deg, #ffd34d, var(--yellow)); box-shadow: 0 4px 12px rgba(255, 194, 26, .3); transition: transform .15s;
}
.copy-btn:hover { transform: translateY(-1px); }
.copy-btn.done { background: linear-gradient(180deg, #4ff09a, var(--green)); color: #00230f; }

.meta { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.meter { width: 56px; flex-shrink: 0; height: 5px; background: rgba(0, 0, 0, .35); border-radius: 4px; overflow: hidden; max-width: 110px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--tone-2), var(--tone)); border-radius: 4px; }
.meta .conf { font-weight: 700; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.tag.ai { background: rgba(22, 119, 255, .2); color: #8fc1ff; }
.tag.ok { background: rgba(43, 214, 123, .18); color: #7cf0b2; }
.tag.bad { background: rgba(255, 45, 61, .18); color: #ff8a93; }

.more-btn { margin-top: 8px; background: none; border: none; color: #6fb0ff; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 0; }
.sources { margin-top: 8px; display: none; flex-direction: column; gap: 6px; }
.ticket.open .sources { display: flex; }
.src { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; font-size: 11.5px; }
.src a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-weight: 600; }
.src a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src .ctx { color: var(--faint); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.src .ctx mark { background: rgba(255, 194, 26, .25); color: var(--yellow); border-radius: 3px; padding: 0 2px; }
.vote-row { display: flex; gap: 6px; margin-top: 2px; }
.vote-row button { flex: 1; white-space: nowrap; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.vote-row button:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.vote-row .v-ok:hover { border-color: var(--green); color: #7cf0b2; }
.vote-row .v-bad:hover { border-color: var(--red); color: #ff8a93; }

/* ===== Saved companies ===== */
.company-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.company {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; cursor: pointer;
  background: var(--well); border: 1px solid var(--line); transition: all .2s;
}
.company:hover { border-color: rgba(22, 119, 255, .55); background: rgba(22, 119, 255, .08); transform: translateX(2px); }
.avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0; overflow: hidden; position: relative; }
.avatar img { width: 22px; height: 22px; position: absolute; border-radius: 4px; }
.company-info { flex: 1; min-width: 0; }
.company-name { font-weight: 700; font-size: 14px; }
.company-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.best-chip { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; background: rgba(255, 194, 26, .14); color: var(--yellow); border: 1px dashed rgba(255, 194, 26, .4); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.del-btn { background: none; border: none; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 6px; }
.del-btn:hover { color: var(--red); background: rgba(255, 45, 61, .12); }

/* ===== Settings ===== */
.card { background: var(--well); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.card-title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; }
.card-title-row .card-title { margin-bottom: 4px; }
.card .input-field { padding: 10px 12px; font-size: 13px; margin-bottom: 6px; }
.help { font-size: 11.5px; color: var(--faint); line-height: 1.45; margin-bottom: 10px; }
.help:last-child { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: rgba(255, 255, 255, .14); border-radius: 22px; cursor: pointer; transition: .25s; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }
.about { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.about img { width: 36px; height: 36px; border-radius: 10px; }
.about span { color: var(--muted); font-size: 11.5px; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 10;
  background: #fff; color: #0b101c; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: all .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }


/* ===== Desktop additions ===== */
.results-head { margin: 4px 0 14px; padding: 14px 16px; background: linear-gradient(180deg, rgba(27, 36, 56, .85), rgba(20, 27, 43, .9)); border: 1px solid var(--line); border-radius: 18px; }
.results-heading { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.results-heading > div:last-child { min-width: 0; }
.avatar.big { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; box-shadow: 0 8px 20px rgba(10, 92, 255, .35); }
.avatar.big img { width: 30px; height: 30px; }
.results-actions { gap: 8px; }
.filter-seg { display: flex; gap: 3px; background: var(--well); border: 1px solid var(--line); padding: 3px; border-radius: 10px; }
.filter-seg button { border: none; background: transparent; color: var(--muted); padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.filter-seg button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--well); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat .k { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.stat .v { font-size: 24px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.stat.hl .v { background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero { max-width: 640px; margin: 8vh auto 0; text-align: center; animation: fadeUp .4s ease; }
.hero-logo { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 20px 60px rgba(22, 119, 255, .45); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.hero .hero-title { font-size: 34px; font-weight: 800; letter-spacing: -.8px; margin-top: 26px; line-height: 1.15; }
.hero .hero-title span { background: linear-gradient(90deg, var(--yellow), var(--orange) 45%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 12px; }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.suggest button { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); border-radius: 20px; padding: 8px 16px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s; }
.suggest button:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; text-align: left; }
.how div { background: var(--well); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.how b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; margin-bottom: 8px; background: linear-gradient(180deg, #2b87ff, var(--blue-2)); color: #fff; font-size: 13px; }

.kbd-hint { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 10px; }
kbd { font-family: var(--mono); font-size: 10.5px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--muted); }
.company.active { border-color: rgba(22, 119, 255, .7); background: rgba(22, 119, 255, .12); }
.range { width: 100%; accent-color: var(--blue); margin: 4px 0 8px; }
.help code { font-family: var(--mono); font-size: 10.5px; word-break: break-all; color: var(--muted); }
.feed { height: 70px; }
.ticket { min-width: 0; }
.main .ticket::before, .main .ticket::after { background: var(--background); }
.mini-select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aab6d6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar { scrollbar-width: thin; }

/* ===================== Web version ===================== */
.logo-link { display: block; line-height: 0; border-radius: 13px; }
.chips.static .chip { cursor: default; }
.vote-row button.mine { border-color: currentColor; }
.vote-row .v-ok.mine { color: #7cf0b2; background: rgba(43, 214, 123, .12); }
.vote-row .v-bad.mine { color: #ff8a93; background: rgba(255, 45, 61, .12); }
.empty.wide { grid-column: 1 / -1; }
.recent-help { margin: 10px 2px 0; }
.steps { margin: 0 0 0 18px; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.steps b { color: var(--text); }
.site-foot { text-align: center; color: var(--faint); font-size: 12px; padding: 28px 0 4px; }
.site-foot a { color: var(--muted); }
a.icon-btn { text-decoration: none; }
.main { display: flex; flex-direction: column; }
.main > .hero, .main > .results { flex: 0 0 auto; }
.site-foot { margin-top: auto; }

/* ---------- tablets & phones: one column, page scroll ---------- */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  body { overflow-y: auto; }
  .app { grid-template-columns: 1fr; height: auto; }
  .sidebar { padding: 12px 12px 0; overflow: visible; }
  .sidebar .container { min-height: 0; }
  .main { padding: 16px 12px 24px; overflow: visible; }
  .hero { margin-top: 12px; }
  .hero .hero-title { font-size: 26px; }
  .hero-logo { width: 84px; height: 84px; border-radius: 22px; }
  .how { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .coupon-list { grid-template-columns: 1fr; }
  .results-head { flex-direction: column; align-items: stretch; }
  .results-actions { flex-wrap: wrap; }
  .kbd-hint { display: none; }
}
@media (max-width: 420px) {
  .tab { font-size: 12px; gap: 5px; padding: 9px 4px; }
  .tab svg { display: none; }
  .ticket .stub { width: 84px; }
  .ticket::before, .ticket::after { left: 75px; }
  .code { font-size: 14px; }
  .stat .v { font-size: 20px; }
}

/* ===================== SEO pages ===================== */
h1, h2 { margin: 0; }
h1.results-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; }
h2.card-title { font-size: 13.5px; }
a.company { text-decoration: none; color: inherit; }
.company-info .company-name, .company-info .company-sub { display: block; }
.seo-intro { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 0 2px 14px; max-width: 900px; }
.seo-intro b { color: var(--text); font-family: var(--mono); letter-spacing: .5px; }
.popular { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.popular h2 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.popular-links { display: flex; flex-wrap: wrap; gap: 6px; }
.popular-links a { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--line-2); border-radius: 16px; padding: 5px 11px; transition: all .2s; }
.popular-links a:hover { color: var(--text); border-color: var(--blue); background: var(--blue-soft); }
