:root {
  color-scheme: dark;
  --black: #080808;
  --panel: #111111;
  --panel-soft: #151515;
  --white: #ffffff;
  --soft-white: #f2f2f2;
  --muted: #a0a0a0;
  --quiet: #696969;
  --line: #292929;
  --blue: #155eef;
  --blue-light: #6f99ff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--black); color: var(--white); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.app-shell { max-width: 1220px; margin: 0 auto; padding: 0 42px 38px; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #505050; border-radius: 10px; color: var(--white); font-size: 18px; font-weight: 800; letter-spacing: -1px; }
.brand-copy { display: grid; gap: 3px; }
.brand-name { font-size: 14px; font-weight: 800; letter-spacing: 2px; }
.brand-caption { color: var(--quiet); font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.top-nav { display: flex; align-items: center; gap: 28px; height: 78px; }
.nav-link { position: relative; display: grid; height: 100%; place-items: center; color: #929292; font-size: 11px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--white); }
.nav-link.is-current::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--blue); content: ""; }
.sync-indicator { display: inline-flex; align-items: center; gap: 9px; color: #ababab; font-size: 10px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(21,94,239,.14); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); min-height: 370px; margin-top: 26px; padding: 51px 52px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #0d0d0d; }
.hero-content { position: relative; z-index: 2; padding-bottom: 44px; }
.eyebrow, .section-index { display: flex; align-items: center; gap: 9px; margin: 0; color: #a4a4a4; font-size: 9px; font-weight: 700; letter-spacing: 1.25px; }
.eyebrow-line { width: 20px; height: 2px; background: var(--blue); }
.eyebrow-separator { color: var(--quiet); }
h1 { margin: 26px 0 0; color: var(--white); font-size: clamp(43px, 6vw, 70px); font-weight: 600; line-height: 1.03; letter-spacing: -4.6px; }
h1 span { color: #858585; }
.hero-subtitle { max-width: 390px; margin: 19px 0 0; color: #a0a0a0; font-size: 12px; line-height: 1.75; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 25px; padding-bottom: 7px; border-bottom: 1px solid #4d4d4d; color: var(--soft-white); font-size: 10px; font-weight: 700; text-decoration: none; transition: border-color .18s ease, color .18s ease; }
.hero-link span { color: var(--blue-light); font-size: 15px; line-height: 10px; }
.hero-link:hover { border-color: var(--blue); color: var(--blue-light); }
.hero-visual { position: relative; min-height: 245px; overflow: hidden; }
.visual-index { position: absolute; top: 4px; right: 4px; z-index: 1; color: #ededed; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.visual-index span { padding: 0 5px; color: var(--blue); }
.visual-word { position: absolute; top: 43px; right: -4px; color: #161616; font-size: clamp(36px, 7.2vw, 83px); font-weight: 800; letter-spacing: -7px; line-height: 1; user-select: none; }
.visual-rule { position: absolute; top: 102px; right: 19px; width: 57%; height: 1px; background: linear-gradient(90deg, transparent, #383838 50%, transparent); transform: rotate(-29deg); }
.visual-caption { position: absolute; right: 13px; bottom: 39px; z-index: 1; color: #666; font-size: 8px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.8; text-align: right; }
.visual-orbit { position: absolute; display: block; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-a { width: 215px; height: 215px; top: 12px; right: 33px; }
.orbit-b { width: 153px; height: 153px; top: 43px; right: 64px; border-color: rgba(21,94,239,.44); }
.visual-point { position: absolute; top: 112px; right: 136px; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 22px rgba(21,94,239,.82); }
.hero-stats { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; min-height: 75px; border-top: 1px solid var(--line); }
.hero-stat { display: grid; gap: 4px; }
.stat-value { color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: -.4px; }
.hero-stat-source .stat-value { color: var(--blue-light); font-size: 10px; letter-spacing: 1px; }
.stat-label { color: var(--quiet); font-size: 9px; }
.stat-divider { width: 1px; height: 27px; background: var(--line); }
.catalog { padding-top: 67px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-index { margin-bottom: 12px; color: var(--quiet); font-size: 8px; letter-spacing: 1.15px; }
.section-index span { color: var(--blue-light); }
h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -1.1px; }
.count-badge { display: inline-grid; min-width: 27px; height: 24px; place-items: center; padding: 0 7px; border: 1px solid #303030; border-radius: 7px; color: #d5d5d5; font-size: 10px; font-weight: 600; letter-spacing: 0; vertical-align: 3px; }
.section-description { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.refresh-button { display: inline-flex; min-width: 99px; height: 36px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid #383838; border-radius: 9px; background: #111; color: #d8d8d8; cursor: pointer; font-size: 10px; font-weight: 600; transition: background .18s ease, border-color .18s ease; }
.refresh-button:hover { border-color: #606060; background: #181818; }
.refresh-button:disabled { opacity: .6; cursor: wait; }
.refresh-button svg, .search-box svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.is-loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.search-box { display: flex; width: min(100%, 480px); height: 45px; align-items: center; gap: 12px; padding: 0 13px; border: 1px solid #2b2b2b; border-radius: 9px; background: #101010; color: #7d7d7d; transition: border-color .18s ease, box-shadow .18s ease; }
.search-box:focus-within { border-color: #396ee1; box-shadow: 0 0 0 3px rgba(21,94,239,.12); }
.search-box input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--white); font-size: 11px; }
.search-box input::placeholder { color: #777; }
.search-box kbd { flex: none; padding: 4px 6px; border: 1px solid #2f2f2f; border-radius: 5px; color: #777; font: 9px Inter, sans-serif; }
.catalog-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #777; font-size: 9px; }
.hint-mark { color: var(--blue); font-size: 7px; }
.category-list { display: flex; gap: 7px; overflow-x: auto; padding: 18px 0 15px; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-chip { flex: none; padding: 8px 13px; border: 1px solid #303030; border-radius: 7px; background: transparent; color: #969696; cursor: pointer; font-size: 9px; font-weight: 600; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.category-chip:hover { border-color: #686868; color: var(--white); }
.category-chip.is-active { border-color: var(--blue); background: var(--blue); color: var(--white); }
.results-bar { display: flex; align-items: center; justify-content: space-between; min-height: 31px; border-top: 1px solid #242424; }
.status-line { color: #777; font-size: 9px; }
.results-caption { color: #555; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.offer-card { position: relative; min-height: 194px; display: flex; flex-direction: column; padding: 17px 17px 15px; overflow: hidden; border: 1px solid #292929; border-radius: 11px; background: linear-gradient(145deg, #131313, #0e0e0e 78%); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.offer-card::before { position: absolute; top: 0; left: 17px; width: 25px; height: 2px; background: #454545; content: ""; transition: width .2s ease, background .2s ease; }
.offer-card:hover { transform: translateY(-2px); border-color: #444; background: #131313; }
.offer-card:hover::before { width: 43px; background: var(--blue); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category-tag { display: inline-flex; align-items: center; gap: 7px; color: #8a8a8a; font-size: 8px; font-weight: 600; letter-spacing: .25px; }
.category-tag::before { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); content: ""; }
.offer-number { color: #555; font-size: 8px; font-weight: 600; letter-spacing: .5px; }
.bank-name { margin: 22px 0 0; color: #f4f4f4; font-size: 17px; font-weight: 600; letter-spacing: -.6px; }
.payout-row { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; }
.payout { color: var(--white); font-size: 25px; font-weight: 600; letter-spacing: -1.3px; white-space: nowrap; }
.payout-currency { color: var(--blue-light); font-size: 12px; font-weight: 600; }
.payout-caption { margin-left: auto; color: #656565; font-size: 8px; }
.card-divider { height: 1px; margin: 14px 0 11px; background: #272727; }
.action-label { margin: 0 0 5px; color: #656565; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.action-copy { margin: 0; color: #c0c0c0; font-size: 10px; line-height: 1.55; }
.note-copy { margin: 9px 0 0; padding-top: 9px; border-top: 1px solid #252525; color: #8d8d8d; font-size: 9px; line-height: 1.5; }
.empty-state { padding: 54px 20px; border: 1px solid #252525; border-radius: 11px; text-align: center; }
.empty-icon { margin-bottom: 10px; color: #6f99ff; font-size: 34px; }
.empty-state h3 { margin: 0; font-size: 15px; font-weight: 600; }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.error-state { grid-column: 1 / -1; margin: 0 0 16px; padding: 15px; border: 1px solid #493c26; border-radius: 9px; background: #18140e; color: #c8b78f; font-size: 11px; line-height: 1.6; }
.error-state strong { display: block; margin-bottom: 3px; color: #f0e2c2; }
.skeleton { min-height: 194px; border: 1px solid #242424; border-radius: 11px; background: linear-gradient(100deg, #111 20%, #181818 40%, #111 60%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }
.about-panel { display: grid; grid-template-columns: .45fr 1.25fr .75fr; align-items: start; gap: 28px; margin-top: 74px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.about-index { color: var(--blue-light); font-size: 10px; font-weight: 700; letter-spacing: .9px; }
.about-index span { padding-left: 7px; color: #777; font-size: 8px; }
.about-copy h2 { font-size: 17px; line-height: 1.45; letter-spacing: -.55px; }
.about-copy p { max-width: 435px; margin: 12px 0 0; color: #8c8c8c; font-size: 10px; line-height: 1.7; }
.about-note { display: flex; gap: 9px; padding-left: 18px; border-left: 1px solid #303030; }
.note-mark { display: grid; flex: none; width: 16px; height: 16px; place-items: center; border: 1px solid #424242; border-radius: 50%; color: #9e9e9e; font-size: 9px; }
.about-note p { margin: 0; color: #858585; font-size: 9px; line-height: 1.7; }
.footer { display: flex; align-items: center; gap: 15px; margin-top: 26px; padding: 0 0 4px; }
.footer-brand { color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-decoration: none; }
.footer-brand span { margin-left: 3px; color: #666; font-size: 7px; vertical-align: top; }
.footer p { margin: 0; color: #686868; font-size: 8px; }
.footer-separator { padding: 0 5px; color: var(--blue); }
.updated-at { margin-left: auto; color: #666; font-size: 8px; white-space: nowrap; }

@media (max-width: 850px) {
  .app-shell { padding-right: 26px; padding-left: 26px; }
  .hero { grid-template-columns: 1fr .75fr; padding-right: 34px; padding-left: 34px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-panel { grid-template-columns: .35fr 1.25fr; }
  .about-note { grid-column: 2; padding: 13px 0 0; border-top: 1px solid #252525; border-left: 0; }
}

@media (max-width: 600px) {
  .app-shell { padding: 0 17px calc(25px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 65px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .brand-name { font-size: 12px; letter-spacing: 1.6px; }
  .brand-caption { font-size: 7px; letter-spacing: .8px; }
  .top-nav { gap: 13px; height: 65px; }
  .nav-link { font-size: 9px; }
  .sync-indicator { gap: 6px; font-size: 0; }
  .sync-dot { width: 7px; height: 7px; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 14px; padding: 30px 21px 0; border-radius: 13px; }
  .hero-content { padding-bottom: 24px; }
  .eyebrow { gap: 7px; font-size: 7px; letter-spacing: .9px; }
  .eyebrow-line { width: 15px; }
  h1 { margin-top: 23px; font-size: clamp(43px, 12vw, 58px); letter-spacing: -3.2px; }
  .hero-subtitle { max-width: 300px; margin-top: 13px; font-size: 10px; line-height: 1.65; }
  .hero-link { margin-top: 18px; font-size: 9px; }
  .hero-visual { position: absolute; top: 10px; right: 0; width: 44%; min-height: 195px; opacity: .8; }
  .visual-index { top: 12px; right: 12px; font-size: 9px; }
  .visual-word { top: 51px; right: -25px; font-size: 40px; letter-spacing: -4px; }
  .visual-rule { top: 89px; right: -3px; width: 83%; }
  .visual-caption { right: 12px; bottom: 29px; font-size: 6px; }
  .orbit-a { top: 10px; right: 0; width: 145px; height: 145px; }
  .orbit-b { top: 31px; right: 21px; width: 104px; height: 104px; }
  .visual-point { top: 79px; right: 69px; width: 6px; height: 6px; }
  .hero-stats { gap: 12px; min-height: 62px; }
  .stat-value { font-size: 12px; }
  .stat-label { max-width: 90px; font-size: 7px; line-height: 1.4; }
  .hero-stat-source .stat-value { font-size: 8px; }
  .stat-divider { height: 22px; }
  .catalog { padding-top: 45px; }
  .section-heading { align-items: center; gap: 10px; margin-bottom: 19px; }
  .section-index { margin-bottom: 10px; font-size: 7px; }
  h2 { font-size: 19px; letter-spacing: -.7px; }
  .count-badge { min-width: 23px; height: 21px; font-size: 9px; }
  .section-description { max-width: 260px; margin-top: 7px; font-size: 9px; line-height: 1.5; }
  .refresh-button { min-width: 36px; width: 36px; height: 36px; padding: 0; }
  .refresh-button span { display: none; }
  .catalog-tools { align-items: start; flex-direction: column; gap: 9px; }
  .search-box { width: 100%; height: 42px; }
  .search-box input { font-size: 10px; }
  .search-box kbd { display: none; }
  .catalog-hint { font-size: 8px; }
  .category-list { gap: 6px; padding: 13px 0 12px; margin-right: -17px; }
  .category-chip { padding: 7px 10px; font-size: 8px; }
  .results-caption { font-size: 6px; }
  .offer-grid { grid-template-columns: 1fr; gap: 9px; }
  .offer-card { min-height: 171px; padding: 15px; border-radius: 10px; }
  .offer-card::before { left: 15px; }
  .bank-name { margin-top: 18px; font-size: 15px; }
  .payout { font-size: 23px; }
  .about-panel { grid-template-columns: 1fr; gap: 15px; margin-top: 53px; padding: 20px 0; }
  .about-copy h2 { font-size: 15px; }
  .about-copy p { margin-top: 8px; font-size: 9px; }
  .about-note { grid-column: 1; }
  .footer { flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; }
  .footer p { flex: 1; min-width: 170px; font-size: 7px; line-height: 1.5; }
  .updated-at { width: 100%; margin: 0; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
