:root {
  --bg-primary: #181138;
  --bg-panel: #221a45;
  --bg-elev: #2c2356;
  --bg-card: #1f1742;
  --accent-green-1: #068E42;
  --accent-green-2: #61B9A7;
  --cta-green: #3FCB6A;
  --cta-green-hover: #2db957;
  --text-primary: #F4F7F9;
  --text-muted: #A6A0C2;
  --text-dim: #7e7799;
  --accent-red: #E12B3C;
  --accent-yellow: #F4B941;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.35);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --sidebar-w: 240px;
  --max-w: 1280px;
  --gap: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { overflow-x: clip; }
body { overflow-x: clip; }

body {
  background-image:
    radial-gradient(circle at 80% -10%, rgba(97, 185, 167, 0.08), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(80, 50, 200, 0.08), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-green-2); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul, ol { padding-left: 1.2rem; }

table { border-collapse: collapse; width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  overflow-y: auto;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.sidebar.is-open { transform: translateX(0); }

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.sidebar__brand img { height: 24px; }

.sidebar__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.sidebar__tab {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-muted);
}

.sidebar__tab--active {
  background: linear-gradient(135deg, var(--accent-green-1), var(--accent-green-2));
  color: #fff;
}

.nav__list { list-style: none; margin: 0; padding: 0; }

.nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.nav__item:hover { background: var(--bg-elev); color: var(--text-primary); }

.nav__item--active {
  background: linear-gradient(135deg, rgba(6, 142, 66, 0.18), rgba(97, 185, 167, 0.12));
  color: var(--text-primary);
}

.nav__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav__caret {
  margin-left: auto;
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.nav__divider {
  height: 1px;
  background: var(--border);
  margin: 14px 6px;
}

.main {
  flex: 1;
  margin-left: 0;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(24, 17, 56, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.topbar__left { display: flex; align-items: center; gap: 12px; }

.topbar__brand img { height: 22px; }

.topbar__right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text-muted);
}

.icon-btn:hover { background: var(--bg-elev); color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--cta-green);
  color: #0d2618;
  box-shadow: 0 6px 18px rgba(63, 203, 106, 0.3);
}

.btn--primary:hover { background: var(--cta-green-hover); color: #0d2618; }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover { background: var(--bg-elev); color: var(--text-primary); }

.btn--lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

.btn--block { width: 100%; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-panel);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
  display: none;
}

.backdrop.is-visible { display: block; }

.hero {
  position: relative;
  margin: 16px;
  padding: 28px 22px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(36, 24, 88, 0.85) 0%, rgba(63, 36, 130, 0.55) 60%, rgba(28, 18, 70, 0.85) 100%),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.hero__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-green-1), var(--accent-green-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin-bottom: 22px;
}

.hero__cta { display: inline-flex; gap: 10px; flex-wrap: wrap; }

.hero__art {
  position: absolute;
  right: -20px;
  bottom: 0;
  pointer-events: none;
  opacity: 0.95;
  width: 55%;
  max-width: 520px;
  display: none;
}

.hero__art svg, .hero__art img { width: 100%; height: auto; }

.section {
  padding: 28px 16px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.section__label {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section__link {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 1 / 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  z-index: 1;
}

.tile__title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cashback-banner {
  margin: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 30%, rgba(97, 185, 167, 0.18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(244, 185, 65, 0.12), transparent 50%),
    linear-gradient(135deg, #2a1f5e 0%, #1d1547 60%, #14102f 100%);
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.cashback-banner__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.cashback-banner__title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.cashback-banner__text {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
  max-width: 460px;
}

.cashback-banner__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(244, 185, 65, 0.2);
  border: 1px solid rgba(244, 185, 65, 0.4);
  border-radius: var(--radius-md);
  align-self: flex-start;
}

.cashback-banner__pct {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-yellow);
}

.cashback-banner__caption { font-size: 12px; color: rgba(255, 255, 255, 0.75); }

.payment-row {
  margin: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #c08a2a, #f1b54a, #c08a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.payment-row__item {
  font-weight: 700;
  color: #1a1340;
  font-size: 14px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.payment-row__item span { font-size: 12px; opacity: 0.75; }

.providers-row {
  margin: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.providers-row img { height: 28px; opacity: 0.85; filter: grayscale(0.2); }

.providers-row img:hover { opacity: 1; }

.footer {
  margin-top: 32px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.footer__top {
  padding: 28px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer__brand img { height: 22px; margin-bottom: 12px; }

.footer__about { color: var(--text-muted); font-size: 14px; max-width: 320px; }

.footer__socials { margin-top: 12px; display: flex; gap: 8px; }

.footer__socials a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-elev);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 12px;
  color: var(--text-primary);
  display: block;
}

.footer__col ul { list-style: none; padding: 0; margin: 0; }

.footer__col li { margin-bottom: 8px; }

.footer__col a { color: var(--text-muted); font-size: 14px; }

.footer__col a:hover { color: var(--text-primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer__bottom-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

.subscribe {
  display: flex;
  gap: 6px;
  max-width: 360px;
  width: 100%;
}

.subscribe input[type="email"] {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.subscribe input::placeholder { color: var(--text-dim); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
}

.seo-content {
  padding: 32px 16px;
  max-width: 980px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(244, 247, 249, 0.92);
}

.seo-content h1, .seo-content h2, .seo-content h3, .seo-content h4 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 28px 0 14px;
}

.seo-content h1 { font-size: clamp(26px, 4vw, 38px); margin-top: 0; }
.seo-content h2 { font-size: clamp(22px, 3vw, 30px); }
.seo-content h3 { font-size: clamp(18px, 2.4vw, 22px); }

.seo-content p { margin: 0 0 16px; }

.seo-content strong { color: var(--text-primary); font-weight: 700; }

.seo-content a { color: var(--accent-green-2); text-decoration: underline; text-underline-offset: 3px; }

.seo-content ul, .seo-content ol { margin: 0 0 18px; padding-left: 1.4rem; }
.seo-content li { margin-bottom: 6px; }

.seo-content blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent-green-2);
  background: rgba(97, 185, 167, 0.07);
  color: rgba(244, 247, 249, 0.95);
  border-radius: 0 8px 8px 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
}

.table-scroll table {
  min-width: 560px;
  background: var(--bg-panel);
  font-size: 14px;
}

.table-scroll th, .table-scroll td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-scroll th {
  background: var(--bg-elev);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.table-scroll tr:last-child td { border-bottom: 0; }

.faux-form {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-width: 380px;
  width: 100%;
  margin: 18px auto 0;
  position: relative;
  z-index: 2;
}

.faux-form__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-primary);
}

.faux-form label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faux-form input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
}

.faux-form .btn { margin-top: 16px; }

.faux-form .meta {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.feature-card__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.feature-card__text { color: var(--text-muted); font-size: 14px; margin: 0; }

.app-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.app-badges a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border-strong);
}

.app-badges a span { font-size: 11px; color: #aaa; display: block; line-height: 1; margin-bottom: 2px; }
.app-badges a strong { font-size: 15px; }

.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page__code {
  font-size: clamp(64px, 14vw, 140px);
  margin: 0;
  background: linear-gradient(120deg, var(--accent-green-1), var(--accent-green-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  line-height: 1;
}

.error-page p { color: var(--text-muted); max-width: 480px; margin: 8px 0 22px; }

@media (min-width: 768px) {
  .hero { padding: 40px; min-height: 380px; grid-template-columns: 1.2fr 1fr; }
  .hero__art { display: block; }
  .cashback-banner { padding: 36px; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .footer__top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    padding: 36px 24px;
  }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .sidebar { transform: translateX(0); }
  .main { margin-left: var(--sidebar-w); }
  .topbar__left .hamburger,
  .topbar__brand { display: none; }
  .topbar { padding: 14px 28px; justify-content: flex-end; }
  .hero, .cashback-banner, .payment-row, .providers-row { margin: 22px 28px; }
  .section { padding: 28px; }
  .seo-content { padding: 40px 28px; }
  .footer__top { padding: 40px 28px; grid-template-columns: 1.4fr repeat(4, 1fr); }
  .footer__bottom { padding: 22px 28px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .backdrop { display: none !important; }
}

@media (min-width: 1280px) {
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
