/* Linebet Partners Review — plain CSS */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --background: hsl(200 9% 8%);
  --foreground: hsl(0 0% 98%);
  --border: hsl(200 11% 18%);
  --card: hsl(200 10% 12%);
  --card-soft: hsl(200 10% 12% / 0.55);
  --card-foreground: hsl(0 0% 98%);
  --primary: #55ca83;
  --primary-foreground: #ffffff;
  --primary-text: #55ca83;
  --primary-soft: rgb(85 202 131 / 0.14);
  --primary-border: rgb(85 202 131 / 0.35);
  --secondary: hsl(200 12% 16%);
  --muted-foreground: hsl(200 5% 65%);
  --destructive: hsl(0 84% 60%);
  --destructive-soft: hsl(0 84% 60% / 0.12);
  --destructive-fg: #fca5a5;
  --surface: hsl(200 10% 11%);
  --surface-2: hsl(200 10% 13%);
  --surface-3: hsl(200 12% 16%);
  --navbar-bg: hsl(200 9% 8% / 0.92);
  --panel-bg: linear-gradient(180deg, hsl(200 10% 13%) 0%, hsl(200 10% 11%) 100%);
  --panel-header: hsl(200 10% 10% / 0.65);
  --chip-bg: hsl(200 9% 8% / 0.7);
  --overlay: hsl(200 9% 4% / 0.72);
  --section-alt-bg: hsl(200 12% 16% / 0.3);
  --hover-bg: hsl(200 12% 16% / 0.55);
  --row-border: hsl(200 11% 18% / 0.55);
  --scrollbar: hsl(200 11% 28%);
  --pill-bg: #262e2c;
  --pill-fg: #9fb3a8;
  --pill-border: #2f3936;
  --status-bg: #2b493b;
  --status-fg: #6bc48d;
  --hero-fg: hsl(0 0% 100%);
  --hero-muted: hsl(0 0% 88%);
  --shadow: 0 24px 48px -28px rgb(0 0 0 / 0.55);
  --inset-line: hsl(0 0% 100% / 0.03);
  --radius: 0.75rem;
  --container: 1200px;
  --font: 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
  --touch-min: 2.75rem;
  --theme-color: #12181c;
}

[data-theme="light"] {
  color-scheme: light;
  /* High-contrast light palette — dark charcoal on white like linebet.partners nav */
  --background: #ffffff;
  --foreground: #373737;
  --border: #d0d0d0;
  --card: #ffffff;
  --card-soft: #ffffff;
  --card-foreground: #373737;
  --primary: #55ca83;
  --primary-foreground: #ffffff;
  --primary-text: #148b43;
  --primary-soft: #ecf6f0;
  --primary-border: #6dcb92;
  --secondary: #eff2f4;
  --muted-foreground: #5c5c5c;
  --destructive: #c62828;
  --destructive-soft: rgb(114 28 36 / 0.08);
  --destructive-fg: #721c24;
  --surface: #ffffff;
  --surface-2: #fbfbfb;
  --surface-3: #eff2f4;
  --navbar-bg: #ffffff;
  --panel-bg: #ffffff;
  --panel-header: #eff2f4;
  --chip-bg: #eff2f4;
  --overlay: rgb(55 55 55 / 0.4);
  --section-alt-bg: #f9f9f9;
  --hover-bg: #eff2f4;
  --row-border: #d0d0d0;
  --scrollbar: #8a8a8a;
  --pill-bg: #ecf6f0;
  --pill-fg: #103a3e;
  --pill-border: #6dcb92;
  --status-bg: #ecf6f0;
  --status-fg: #148b43;
  --hero-fg: #ffffff;
  --hero-muted: #f2f2f2;
  --shadow: 0 2rem 2.5rem -0.4rem rgba(0, 0, 0, 0.12);
  --inset-line: rgb(55 55 55 / 0.06);
  --theme-color: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  min-height: 100vh;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  transition: background-color 0.25s ease, color 0.25s ease;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

main {
  overflow-x: clip;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow { max-width: 896px; }
.container-wide { max-width: 1024px; }

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-lg { width: 2rem; height: 2rem; }
.icon-primary { color: var(--primary-text); }
.icon-destructive { color: var(--destructive); }
.icon-telegram {
  object-fit: contain;
}

.hide-mobile { display: none; }

@media (min-width: 768px) {
  .hide-mobile { display: inline; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
}

.btn-primary:hover {
  opacity: 1;
  background: #148b43;
  border-color: #148b43;
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #148b43 0%, #55ca83 46.88%);
  border-color: transparent;
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(95.37deg, #0f6f34 0%, #30a55e 46.88%);
  border-color: transparent;
}

[data-theme="light"] .btn-outline:hover {
  color: #30a55e;
  border-color: #30a55e;
}

[data-theme="light"] .lang-option.active {
  background: #55ca83;
  color: #ffffff;
}

[data-theme="light"] .regions-page-num.active {
  background: #55ca83;
  color: #ffffff;
  box-shadow: 0 8px 18px -10px rgb(85 202 131 / 0.8);
}

[data-theme="light"] .status-check {
  background: var(--status-bg);
  color: var(--status-fg);
}

[data-theme="light"] .status-text {
  color: var(--status-fg);
}

[data-theme="light"] .badge-success {
  background: var(--primary-soft);
  color: var(--primary-text);
  border-color: var(--primary-border);
}

[data-theme="light"] .hero-content .badge-success {
  background: rgb(85 202 131 / 0.2);
  color: #b7f0cd;
  border-color: rgb(85 202 131 / 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
  padding: 0.5rem 1rem;
}

.btn-outline:hover { background: var(--secondary); }

.btn-telegram {
  background: #229ED9;
  color: #fff;
  border-color: #229ED9;
  padding: 0.5rem 1rem;
  box-shadow: 0 8px 24px hsl(199 74% 49% / 0.35);
}

.btn-telegram:hover {
  opacity: 1;
  background: #1b8ec4;
  border-color: #1b8ec4;
}

.btn-telegram .icon-telegram {
  filter: brightness(0) invert(1);
}

.btn-telegram-nav .icon-telegram {
  filter: none;
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  padding: 0.375rem 0.5rem;
}

.btn-ghost:hover { background: var(--secondary); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; }

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: var(--secondary);
}

[dir="rtl"] .btn svg:last-child { transform: rotate(180deg); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-success {
  background: var(--primary-soft);
  color: var(--primary-text);
  border: 1px solid var(--primary-border);
}

.badge-secondary {
  background: var(--secondary);
  color: var(--foreground);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  margin-inline-end: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Cards */
.card {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  color: var(--card-foreground);
}

.card-highlight {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-header h3 {
  font-size: 1.125rem;
  color: var(--foreground);
}

.card-body { padding: 1rem 1.5rem 1.5rem; }
.card-body p { color: var(--muted-foreground); font-size: 0.875rem; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--navbar-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.navbar-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
  color: inherit;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  flex-shrink: 0;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  transition: background 0.2s, color 0.2s;
  min-height: 2.25rem;
  min-width: 2.75rem;
}

.lang-option:hover:not(.active) {
  color: var(--foreground);
  background: var(--secondary);
}

.lang-option.active {
  background: var(--primary);
  color: var(--primary-foreground);
  pointer-events: none;
}

.lang-option + .lang-option {
  border-inline-start: 1px solid var(--border);
}

.btn-visit-short {
  display: none;
}

.logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-lg { width: 2rem; height: 2rem; }

.brand-logo {
  height: 1.75rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-footer {
  height: 2rem;
  max-width: 8.5rem;
}

.brand-logo-dark { display: none; }
.brand-logo-light { display: block; }

[data-theme="light"] .brand-logo-dark { display: block; }
[data-theme="light"] .brand-logo-light { display: none; }

.navbar-title {
  font-weight: 700;
  font-size: 1.125rem;
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .navbar-title { display: block; }
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.navbar-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

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

@media (min-width: 768px) {
  .navbar-links { display: flex; }
}

.navbar-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-telegram-nav {
  border-color: hsl(0 136 204 / 0.35);
  background: hsl(0 136 204 / 0.08);
}

.btn-telegram-nav:hover {
  background: hsl(0 136 204 / 0.15);
  border-color: hsl(0 136 204 / 0.5);
}

.btn-theme {
  border-color: var(--border);
  background: var(--card);
  color: var(--foreground);
}

.btn-theme:hover {
  opacity: 1;
  border-color: hsl(144 54% 56% / 0.45);
  color: var(--primary-text);
}

.btn-theme .icon-sun { display: none; }
.btn-theme .icon-moon { display: block; }

[data-theme="light"] .btn-theme .icon-sun { display: block; }
[data-theme="light"] .btn-theme .icon-moon { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: 6.5rem 0 3rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 7.5rem 0 4rem; }
}

.hero-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.75rem;
  min-height: clamp(28rem, 62vh, 40rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

@media (min-width: 768px) {
  .hero-frame {
    border-radius: 2.5rem;
    min-height: clamp(32rem, 68vh, 44rem);
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(200 9% 8% / 0.55) 0%, hsl(200 9% 8% / 0.35) 40%, hsl(200 9% 8% / 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
  color: var(--hero-fg);
}

@media (min-width: 768px) {
  .hero-content {
    padding: 4.5rem 2.5rem;
  }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 1.5rem 0 2rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--hero-fg);
}

.hero-logo {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  aspect-ratio: 120 / 37;
  margin: 0.75rem auto 0;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-logo {
    width: min(100%, 22rem);
    margin-top: 1rem;
  }
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

[dir="ltr"] .hero-frame.hero-frame-synced {
  display: flex;
  align-items: center;
  justify-content: center;
}

[dir="ltr"] .hero-frame.hero-frame-synced .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* English hero — content fit inside Arabic-matched frame (size set via JS) */
@media (min-width: 768px) {
  [dir="ltr"] .hero-content {
    padding-block: 4rem;
  }

  [dir="ltr"] .hero-title {
    font-size: 3.25rem;
    margin: 1.25rem 0 1.5rem;
    line-height: 1.12;
  }

  [dir="ltr"] .hero-logo {
    width: min(100%, 20rem);
    margin-top: 0.875rem;
  }

  [dir="ltr"] .hero-desc {
    font-size: 1.125rem;
    line-height: 1.65;
    margin-bottom: 2.25rem;
  }

  [dir="ltr"] .hero-actions {
    flex-wrap: nowrap;
    gap: 0.625rem;
  }

  [dir="ltr"] .hero-actions .btn {
    min-width: 0;
    flex: 1 1 0;
    max-width: 13.5rem;
    padding-inline: 0.875rem;
    padding-block: 0.8125rem;
    font-size: 0.875rem;
    min-height: 3rem;
  }
}

@media (min-width: 1024px) {
  [dir="ltr"] .hero-title {
    font-size: 3.75rem;
  }
}

@media (max-width: 767px) {
  [dir="ltr"] .hero-title {
    font-size: 1.75rem;
    margin: 1.25rem 0 1.5rem;
  }

  [dir="ltr"] .hero-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  [dir="ltr"] .hero-actions .btn {
    font-size: 0.9375rem;
    min-height: 3rem;
    padding-block: 0.75rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #148b43 0%, #55ca83 46.88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[dir="rtl"] .gradient-text {
  background: linear-gradient(225deg, #148b43 0%, #55ca83 46.88%);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--hero-muted);
  max-width: 672px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-desc { font-size: 1.25rem; }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

.hero-actions .btn {
  width: 100%;
  min-height: 3.25rem;
  padding-block: 0.875rem;
  line-height: 1.25;
  white-space: normal;
  text-wrap: balance;
}

.hero-actions .btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: none;
    gap: 0.875rem;
  }

  .hero-actions .btn {
    width: auto;
    flex: 0 1 auto;
    min-width: 12rem;
    padding-inline: 1.5rem;
  }
}

.hero-features {
  display: none;
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .hero-features {
    display: grid;
  }
}

.hero-feature {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Sections */
.section { padding: 6rem 0; }
.section-alt {
  padding: 5rem 0;
  background: var(--section-alt-bg);
  border-block: 1px solid var(--border);
}

.regions.section {
  padding-bottom: 3rem;
}

.commission.section {
  padding-top: 0;
  padding-bottom: 0;
}

/* Terms of cooperation — Linebet Partners layout */
.terms-band {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 4.5rem;
  background-color: #55ca83;
  background-image: url('../images/brand/coop-terms-bg.svg');
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
  color: #ffffff;
}

.terms-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 2.5rem;
}

.terms-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 959px) {
  .terms-side {
    order: -1;
  }
}

@media (min-width: 960px) {
  .terms-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.85fr);
    gap: 1.5rem;
  }
}

.terms-studio {
  display: block;
}

.terms-workspace {
  background: #ffffff;
  color: #373737;
  border-radius: 1.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(16, 58, 62, 0.28);
}

@media (min-width: 768px) {
  .terms-workspace {
    padding: 2rem 2.25rem 2.15rem;
    gap: 1.75rem;
    border-radius: 2rem;
  }
}

.terms-workspace-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eef1f3;
}

.terms-workspace-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #148b43;
}

.terms-workspace-header h3 {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: #373737;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.terms-workspace-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5c5c5c;
  max-width: 38rem;
}

.terms-workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .terms-workspace-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(15.5rem, 0.85fr);
    gap: 1.25rem;
  }
}

.terms-configure {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.terms-rate-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.35rem 1.4rem 1.3rem;
  border-radius: 1.15rem;
  background: #f4f7f8;
  transition: background 0.3s ease;
}

.terms-studio[data-active-model="cpa"] .terms-rate-box,
.terms-studio[data-active-model="hybrid"] .terms-rate-box {
  background: #ecf6f0;
}

.terms-rate-label {
  font-size: 0.8125rem;
  color: #5c5c5c;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.terms-rate-label[hidden] {
  display: none;
}

.terms-rate-value {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  color: #373737;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.terms-studio[data-active-model="hybrid"] .terms-rate-value {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.terms-rate-control[hidden] {
  display: none;
}

.terms-rate-control {
  width: 100%;
}

.terms-rate-range {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
}

.terms-rate-range > span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}

.terms-rate-control-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.terms-sliders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terms-slider-field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #f7f9fa;
  border: 1px solid #e8eef0;
  width: 100%;
}

.terms-slider-field input[type="range"] {
  width: 100%;
  align-self: stretch;
}

.terms-slider-field[hidden] {
  display: none;
}

.terms-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.terms-slider-meta .calc-label {
  color: #5c5c5c;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.terms-slider-meta .calc-output {
  min-width: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ecf6f0;
  color: #148b43;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Professional range controls */
.terms-studio input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 1.5rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --range-progress: 0%;
}

.terms-studio input[type="range"]:focus {
  outline: none;
}

.terms-studio input[type="range"]:focus-visible {
  outline: 2px solid #55ca83;
  outline-offset: 4px;
  border-radius: 999px;
}

.terms-studio input[type="range"]::-webkit-slider-runnable-track {
  height: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #55ca83 0%,
    #55ca83 var(--range-progress),
    #d7e0e3 var(--range-progress),
    #d7e0e3 100%
  );
}

.terms-studio input[type="range"]::-moz-range-track {
  height: 0.4rem;
  border: none;
  border-radius: 999px;
  background: #d7e0e3;
}

.terms-studio input[type="range"]::-moz-range-progress {
  height: 0.4rem;
  border-radius: 999px;
  background: #55ca83;
}

.terms-studio input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.425rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #55ca83;
  box-shadow: 0 2px 8px rgb(20 139 67 / 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.terms-studio input[type="range"]::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #55ca83;
  box-shadow: 0 2px 8px rgb(20 139 67 / 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.terms-studio input[type="range"]:hover::-webkit-slider-thumb,
.terms-studio input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.08);
  border-color: #30a55e;
  box-shadow: 0 4px 14px rgb(20 139 67 / 0.35);
}

.terms-studio input[type="range"]:hover::-moz-range-thumb,
.terms-studio input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.08);
  border-color: #30a55e;
  box-shadow: 0 4px 14px rgb(20 139 67 / 0.35);
}

/* Arabic / RTL: green fill grows from right to left */
[dir="rtl"] .terms-studio input[type="range"] {
  direction: rtl;
}

[dir="rtl"] .terms-studio input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(
    to left,
    #55ca83 0%,
    #55ca83 var(--range-progress),
    #d7e0e3 var(--range-progress),
    #d7e0e3 100%
  );
}

[dir="rtl"] .terms-studio input[type="range"]::-webkit-slider-thumb {
  margin-top: -0.425rem;
}

[dir="rtl"] .terms-rate-range {
  direction: rtl;
}

.terms-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 1.15rem;
  background: #f4f7f8;
  border: 1px solid #e8eef0;
  align-self: start;
  width: 100%;
  text-align: center;
}

.terms-summary-estimate {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .terms-summary {
    position: sticky;
    top: 5.5rem;
  }
}

.terms-summary-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #148b43;
  text-align: center;
}

.terms-summary-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e8eef0;
}

.terms-summary-main .terms-earn-label {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b7280;
}

.terms-summary-value {
  font-size: clamp(2.25rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #373737;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.terms-summary-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.75rem 0.95rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e8eef0;
}

.terms-summary-sub .terms-earn-label {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b7280;
}

.terms-summary-yearly {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #373737;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-align: center;
}

.terms-earn-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5c5c5c;
}

.terms-earn-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: #148b43;
  font-variant-numeric: tabular-nums;
}

.terms-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

.terms-contact-btn {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #148b43 0%, #55ca83 46.88%);
  border: none;
}

.terms-contact-btn:hover {
  opacity: 1;
  background: linear-gradient(95.37deg, #0f6f34 0%, #30a55e 46.88%);
}

.terms-join-ghost {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #148b43;
  background: #ffffff;
  border: 1px solid #cfe6d8;
}

.terms-join-ghost:hover {
  opacity: 1;
  background: #ecf6f0;
  border-color: #30a55e;
}

.terms-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.terms-glass {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  text-align: start;
  font: inherit;
  cursor: pointer;
  min-height: 10.5rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.terms-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.terms-glass.is-active {
  background: rgba(255, 255, 255, 0.34);
  border-color: #ffffff;
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.35);
}

.terms-glass-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.terms-glass h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.terms-glass p {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.terms-glass-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.terms-glass.is-active .terms-glass-action {
  background: #ffffff;
  color: #148b43;
  border-color: #ffffff;
}

@media (min-width: 640px) and (max-width: 959px) {
  .terms-side {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .terms-glass {
    min-height: 0;
    padding: 1rem 0.9rem;
    border-radius: 1.25rem;
    gap: 0.45rem;
  }

  .terms-glass h3 {
    font-size: 1.05rem;
  }

  .terms-glass p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 1 auto;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .terms-glass-action {
    margin-top: 0.25rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.625rem;
  }
}

@media (max-width: 639px) {
  .terms-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .terms-glass {
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 0;
    height: auto;
    padding: 0.7rem 0.3rem;
    border-radius: 0.9rem;
    text-align: center;
  }

  .terms-glass:hover {
    transform: none;
  }

  .terms-glass-badge {
    order: 1;
    padding: 0.1rem 0.3rem;
    font-size: 0.5rem;
    letter-spacing: 0.01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .terms-glass h3 {
    order: 2;
    font-size: 0.78rem;
    line-height: 1.2;
    text-wrap: balance;
  }

  .terms-glass p,
  .terms-glass-action {
    display: none;
  }
}

/* Commission / terms — mobile UX */
@media (max-width: 767px) {
  .terms-band {
    padding: 2.25rem 0 2.5rem;
    background-position: center bottom;
  }

  .terms-band > .container {
    padding-inline: max(0.85rem, env(safe-area-inset-left)) max(0.85rem, env(safe-area-inset-right));
  }

  .terms-title {
    font-size: 1.5rem;
    margin: 0 0 1.15rem;
  }

  .terms-layout {
    gap: 0.85rem;
  }

  .terms-workspace {
    padding: 1.1rem 1rem 1.15rem;
    gap: 1rem;
    border-radius: 1.25rem;
  }

  .terms-workspace-header {
    padding-bottom: 0.85rem;
  }

  .terms-workspace-kicker {
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
  }

  .terms-workspace-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
  }

  .terms-workspace-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .terms-workspace-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .terms-summary {
    order: unset;
    width: 100%;
    max-width: none;
    display: contents;
    padding: 0;
    border: none;
    background: transparent;
  }

  .terms-summary-estimate {
    order: -1;
    width: 100%;
    padding: 1rem;
    gap: 0.65rem;
    border-radius: 1.1rem;
    background: #f4f7f8;
    border: 1px solid #e8eef0;
  }

  .terms-summary-kicker {
    font-size: 0.75rem;
    margin: 0;
  }

  .terms-summary-main,
  .terms-summary-sub {
    width: 100%;
    padding: 1.15rem 1rem;
    border-radius: 1rem;
    gap: 0.4rem;
    min-width: 0;
    min-height: 6.75rem;
    justify-content: center;
  }

  .terms-summary-main .terms-earn-label,
  .terms-summary-sub .terms-earn-label {
    font-size: 0.8125rem;
  }

  .terms-summary-value {
    font-size: 2.35rem;
  }

  .terms-summary-yearly {
    font-size: 1.65rem;
  }

  .terms-configure {
    order: 0;
    width: 100%;
    gap: 0.75rem;
  }

  .terms-summary-actions {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    border-radius: 1.1rem;
    background: #f4f7f8;
    border: 1px solid #e8eef0;
  }

  .terms-contact-btn,
  .terms-join-ghost {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    border-radius: 0.75rem;
  }

  .terms-rate-box {
    padding: 1.15rem 1.05rem;
    gap: 0.75rem;
    border-radius: 1rem;
    width: 100%;
  }

  .terms-rate-control,
  .terms-rate-range,
  .terms-sliders,
  .terms-slider-field {
    width: 100%;
  }

  .terms-rate-value {
    font-size: 2.35rem;
  }

  .terms-studio[data-active-model="hybrid"] .terms-rate-value {
    font-size: 1.35rem;
  }

  .terms-rate-range > span {
    font-size: 0.75rem;
  }

  .terms-sliders {
    gap: 0.75rem;
  }

  .terms-slider-field {
    padding: 0.9rem 1rem;
    gap: 0.55rem;
    border-radius: 0.95rem;
  }

  .terms-slider-meta .calc-label,
  .terms-slider-meta .calc-output {
    font-size: 0.8125rem;
  }

  .terms-studio input[type="range"] {
    width: 100%;
    height: 1.5rem;
  }

  .commission-rest {
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
  }
}

.commission-rest {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

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

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

.section-header { margin-bottom: 3rem; max-width: 768px; }
.section-header.text-center { margin-inline: auto; text-align: center; }
.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
}

.section-header.text-center h2 { justify-content: center; }

.section-header p,
.section-header .lead {
  color: var(--muted-foreground);
}

.section-header .lead { font-size: 1.125rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--primary-border); }

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-icon .icon { width: 1.5rem; height: 1.5rem; color: var(--primary-text); }

.brand-stat-icon {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  display: block;
}

[data-theme="light"] .stat-icon {
  background: #ecf6f0;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.stat-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Regions */
.regions-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.03) inset,
    var(--shadow);
}

.regions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-header);
}

.regions-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.regions-filters-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.regions-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
}

.regions-filter {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.regions-filter .filter-short {
  display: none;
}

.regions-filter:hover {
  color: var(--foreground);
}

.regions-filter.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary-text);
  box-shadow: none;
}

.regions-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
}

.regions-count span {
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}

.regions-table-scroll {
  max-height: none;
  overflow-y: visible;
  overscroll-behavior: contain;
}

.regions-table-scroll::-webkit-scrollbar {
  width: 8px;
}

.regions-table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.regions-table-scroll::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 999px;
}

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

.regions-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.85rem 1.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: start;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.regions-table th:last-child,
.regions-table td:last-child {
  text-align: end;
  width: 11rem;
}

.regions-table td {
  padding: 0.9rem 1.35rem;
  border-bottom: 1px solid var(--row-border);
  vertical-align: middle;
  color: var(--foreground);
}

.regions-table tbody tr:last-child td {
  border-bottom: none;
}

.regions-table tbody tr {
  transition: background 0.18s;
}

.regions-table tbody tr:hover {
  background: var(--primary-soft);
}

.regions-table tbody tr[hidden] {
  display: none;
}

.country-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.country-flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 1.85rem;
  border-radius: 0.35rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--secondary);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.06),
    0 4px 10px -4px rgb(0 0 0 / 0.45);
}

.country-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-meta {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.country-name {
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.country-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pill-fg);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
}

.region-pill-asia,
.region-pill-africa,
.region-pill-south_america,
.region-pill-middle_east {
  color: var(--pill-fg);
  background: var(--pill-bg);
  border-color: var(--pill-border);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

.status-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--status-bg);
  color: var(--status-fg);
  box-shadow: none;
}

.status-check svg {
  width: 0.9rem;
  height: 0.9rem;
}

.status-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--status-fg);
}

.regions-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding: 0.95rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--panel-header);
}

.regions-showing {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.regions-pagination {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.regions-page-numbers {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.regions-page-btn,
.regions-page-num {
  appearance: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.regions-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  padding: 0.45rem 0.85rem;
  min-height: 2.35rem;
}

.regions-page-btn .icon {
  width: 0.95rem;
  height: 0.95rem;
}

[dir="rtl"] .regions-page-btn .icon {
  transform: scaleX(-1);
}

.regions-page-btn:hover:not(:disabled) {
  border-color: hsl(144 54% 56% / 0.45);
  color: var(--primary-text);
  background: hsl(144 54% 56% / 0.08);
}

.regions-page-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.regions-page-num {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-foreground);
}

.regions-page-num:hover {
  color: var(--foreground);
  border-color: var(--border);
  background: var(--hover-bg);
}

.regions-page-num.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  pointer-events: none;
  box-shadow: 0 8px 18px -10px hsl(144 54% 56% / 0.8);
}

@media (max-width: 640px) {
  .regions-toolbar {
    padding: 0.7rem 0.75rem;
  }

  .regions-count {
    display: none;
  }

  .regions-filters {
    width: 100%;
    gap: 0;
  }

  .regions-filters-label {
    display: none;
  }

  .regions-filter-pills {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.15rem;
    padding: 0.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .regions-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .regions-filter {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.4rem 0.3rem;
    white-space: nowrap;
    text-align: center;
  }

  .regions-filter .filter-full {
    display: none;
  }

  .regions-filter .filter-short {
    display: inline;
  }

  .regions-table th:nth-child(2),
  .regions-table td:nth-child(2) {
    display: none;
  }

  .regions-table thead th,
  .regions-table td {
    padding: 0.8rem 1rem;
  }

  .regions-table th:last-child,
  .regions-table td:last-child {
    width: auto;
  }

  .status-text {
    display: none;
  }

  .regions-table-footer {
    padding: 0.85rem 1rem;
  }

  .regions-page-btn {
    padding-inline: 0.7rem;
  }
}

/* Earnings Calculator */
.calc-panel {
  margin: 0 0 2.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.03) inset,
    var(--shadow);
}

.calc-header {
  padding: 1.35rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-header);
}

.calc-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}

.calc-header p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 46rem;
  line-height: 1.6;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 900px) {
  .calc-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem 1.5rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.calc-field[hidden] {
  display: none;
}

.calc-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.calc-model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
}

.calc-model-tab {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.calc-model-tab .calc-tab-short {
  display: none;
}

.calc-model-tab:hover {
  color: var(--foreground);
}

.calc-model-tab.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary-text);
}

.calc-slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.85rem;
}

.calc-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.calc-output {
  min-width: 3.5rem;
  text-align: end;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--panel-header);
}

@media (min-width: 900px) {
  .calc-results {
    border-top: none;
    border-inline-start: 1px solid var(--border);
    justify-content: center;
  }
}

.calc-result-card {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.calc-result-yearly {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.calc-result-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.35rem;
}

.calc-result-value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.calc-result-yearly .calc-result-value {
  color: var(--primary-text);
}

.calc-cta {
  width: 100%;
  margin-top: 0.25rem;
}

.calc-note {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

@media (max-width: 640px) {
  .calc-header,
  .calc-controls,
  .calc-results {
    padding-inline: 1rem;
  }

  .calc-model-tabs {
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.2rem;
    padding: 0.2rem;
  }

  .calc-model-tab {
    flex: 1 1 0;
    font-size: 0.75rem;
    padding: 0.5rem 0.35rem;
    white-space: nowrap;
    text-align: center;
  }

  .calc-model-tab .calc-tab-full {
    display: none;
  }

  .calc-model-tab .calc-tab-short {
    display: inline;
  }
}

.table-card {
  margin-top: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.table-header h3 {
  font-size: 1.25rem;
  color: var(--foreground);
}

.data-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem 1.5rem;
  text-align: start;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.data-table th {
  font-weight: 600;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.data-table td:first-child { font-weight: 500; width: 33%; }
.data-table tr:last-child td { border-bottom: none; }

/* Tools */
.tools-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .tools-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
  .tools-intro { width: 33.333%; flex-shrink: 0; }
  .tools-grid { width: 66.666%; }
}

.tools-intro h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.tools-intro > p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.tools-image-wrap {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--card);
}

.tools-image {
  width: 100%;
  height: auto;
  display: block;
}

.tools-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(16 58 62 / 0.45), transparent);
  pointer-events: none;
}

[data-theme="light"] .tools-image-wrap::after {
  background: linear-gradient(to top, rgb(249 249 249 / 0.2), transparent);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

.tool-card { padding: 1.5rem; transition: background 0.2s; }
.tool-card:hover { background: var(--hover-bg); }

.tool-card-wide { grid-column: 1 / -1; }

@media (min-width: 640px) {
  .tool-card-wide { grid-column: span 2; }
}

.tool-icon { margin-bottom: 1rem; }
.tool-icon .icon { width: 2rem; height: 2rem; color: var(--primary-text); }

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Registration */
.registration-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .registration-layout {
    flex-direction: row;
    gap: 4rem;
  }
  .registration-content,
  .registration-image { width: 50%; }
}

.registration-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.registration-content .lead {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.steps { display: flex; flex-direction: column; gap: 2rem; }

.step {
  display: flex;
  gap: 1rem;
  position: relative;
}

.step:not(.step-last)::before {
  content: '';
  position: absolute;
  inset-inline-start: 19px;
  top: 2.5rem;
  bottom: -2rem;
  width: 2px;
  background: var(--border);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.step-content p { color: var(--muted-foreground); }

.support-box {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 1.25rem;
  background: linear-gradient(165deg, #ecf6f0 0%, #f7fbf8 55%, #ffffff 100%);
  border: 1px solid #d8eee2;
  box-shadow: 0 12px 28px -22px rgba(20, 139, 67, 0.35);
}

.support-box-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgb(85 202 131 / 0.16);
  border: 1px solid rgb(85 202 131 / 0.35);
  color: #148b43;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.support-box h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #373737;
  letter-spacing: -0.01em;
}

.support-box p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5c5c5c;
}

.support-box-cta {
  margin-top: 0.35rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: linear-gradient(135deg, #148b43 0%, #55ca83 46.88%);
  border: none;
}

.support-box-cta:hover {
  opacity: 1;
  background: linear-gradient(95.37deg, #0f6f34 0%, #30a55e 46.88%);
}

.support-box-cta .icon-telegram {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .support-box {
  background: linear-gradient(165deg, hsl(144 30% 14%) 0%, hsl(200 10% 12%) 100%);
  border-color: rgb(85 202 131 / 0.28);
  box-shadow: none;
}

[data-theme="dark"] .support-box-kicker {
  background: rgb(85 202 131 / 0.14);
  border-color: rgb(85 202 131 / 0.35);
  color: #55ca83;
}

[data-theme="dark"] .support-box h4 {
  color: hsl(0 0% 98%);
}

[data-theme="dark"] .support-box p {
  color: hsl(200 5% 65%);
}

.registration-image {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: transparent;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  position: relative;
  line-height: 0;
}

.registration-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, hsl(144 54% 56% / 0.1), transparent);
  pointer-events: none;
  z-index: 1;
}

.registration-image img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  position: relative;
  z-index: 0;
}

/* Pros & Cons */
.proscons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .proscons-grid { grid-template-columns: repeat(2, 1fr); }
}

.pros-card { border-top: 4px solid var(--primary); }
.cons-card { border-top: 4px solid var(--destructive); }

.proscons-list { padding: 0 1.5rem 1.5rem; }

.proscons-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.625rem;
  flex-shrink: 0;
}

.dot-primary { background: var(--primary); }
.dot-destructive { background: var(--destructive); }

.proscons-grid .card-header h3 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proscons-grid .card-header h3 .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* FAQ */
.faq-list { padding: 1.5rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .faq-item summary { font-size: 1.125rem; }
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted-foreground);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Verdict */
.verdict-card {
  display: grid;
  grid-template-columns: 1fr;
  border-color: var(--primary-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (min-width: 768px) {
  .verdict-card { grid-template-columns: 1fr 2fr; }
}

.verdict-score {
  background: var(--secondary);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .verdict-score {
    border-bottom: none;
    border-inline-end: 1px solid var(--border);
  }
}

.score-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.score-value {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--primary-text);
  line-height: 1;
  margin-bottom: 1rem;
}

.score-value span {
  font-size: 1.875rem;
  color: var(--muted-foreground);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.star {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(144 54% 56% / 0.5);
}

.star.filled { color: var(--primary-text); }

.verdict-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.verdict-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .verdict-content { padding: 3rem; }
}

.verdict-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.verdict-content p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Telegram Modal */
.tg-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tg-modal[hidden] {
  display: none;
}

.tg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tg-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45);
  animation: tg-modal-in 0.22s ease-out;
}

@keyframes tg-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tg-modal-close {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}

.tg-modal-close:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.tg-modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: hsl(199 74% 49% / 0.15);
}

.tg-modal-dialog h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tg-modal-dialog > p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tg-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  text-align: start;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

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

.tg-option-title {
  font-weight: 700;
  font-size: 1rem;
}

.tg-option-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.tg-option-channel {
  background: hsl(199 74% 49% / 0.12);
  border-color: hsl(199 74% 49% / 0.45);
}

.tg-option-channel:hover {
  background: hsl(199 74% 49% / 0.2);
  border-color: #229ED9;
}

.tg-option-channel .tg-option-title {
  color: #4db5e8;
}

.tg-option-manager {
  background: hsl(144 54% 56% / 0.1);
  border-color: hsl(144 54% 56% / 0.4);
}

.tg-option-manager:hover {
  background: hsl(144 54% 56% / 0.18);
  border-color: var(--primary);
}

.tg-option-manager .tg-option-title {
  color: var(--primary-text);
}

body.tg-modal-open {
  overflow: hidden;
}

/* Lead capture modal */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-align: start;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.lead-input-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  min-height: 3rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: left;
}

.lead-input-wrap:focus-within {
  border-color: hsl(144 54% 56% / 0.65);
  box-shadow: 0 0 0 3px hsl(144 54% 56% / 0.18);
}

.lead-prefix {
  color: var(--muted-foreground);
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
  order: 0;
}

.lead-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-weight: 500;
  padding-block: 0.75rem;
  outline: none;
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext;
}

[dir="rtl"] .lead-input-wrap,
[dir="rtl"] .lead-input-wrap input {
  direction: ltr !important;
  text-align: left !important;
}

.lead-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: hsl(0 84% 60% / 0.12);
  border: 1px solid hsl(0 84% 60% / 0.35);
  color: var(--destructive-fg);
  font-size: 0.8125rem;
  font-weight: 500;
}

.lead-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.lead-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  min-width: 0;
}

.footer-brand-title {
  line-height: 1.35;
  min-width: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p { max-width: 672px; line-height: 1.6; }

.footer-legal {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-legal span { cursor: not-allowed; }

/* Selection */
::selection {
  background: hsl(144 54% 56% / 0.3);
  color: var(--primary-foreground);
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .container {
    padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  }

  .section { padding: 3.5rem 0; }
  .section-alt { padding: 3rem 0; }

  .hero {
    padding: 0;
    padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
  }

  .hero > .container {
    max-width: none;
    padding-inline: 0;
    width: 100%;
  }

  .hero-frame {
    border-radius: 0;
    min-height: calc(100svh - 3.5rem - env(safe-area-inset-top, 0px));
    min-height: calc(100dvh - 3.5rem - env(safe-area-inset-top, 0px));
  }

  .hero-content {
    padding: 2rem max(1.25rem, env(safe-area-inset-left)) 2.25rem max(1.25rem, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    text-align: center;
  }

  .hero-content .badge {
    justify-content: center;
    width: fit-content;
    max-width: 100%;
  }

  .hero-title,
  .hero-desc,
  .hero-actions {
    width: 100%;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-logo {
    width: min(100%, 14rem);
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    max-width: none;
    width: 100%;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
    flex-wrap: wrap;
  }

  .section-header:not(.text-center) h2 {
    align-items: flex-start;
  }

  .section-header.text-center h2 {
    justify-content: center;
  }

  .section-header .lead {
    font-size: 1rem;
  }

  .btn,
  .btn-sm,
  .btn-lg {
    font-size: 1rem;
    min-height: var(--touch-min);
  }

  /* Navbar — compact single row on phones */
  .navbar .container.navbar-inner {
    height: 3.5rem;
    gap: 0.5rem;
    padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right));
  }

  .navbar-brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 7.25rem;
  }

  .navbar-brand .brand-logo {
    height: 1.4rem;
    max-width: 100%;
    width: auto;
  }

  .navbar-brand .navbar-title {
    display: none;
  }

  .navbar-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: 0;
  }

  .navbar-buttons {
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .navbar .btn,
  .navbar .btn-sm,
  .navbar .btn-icon {
    min-height: 2.25rem;
    font-size: 0.75rem;
  }

  .navbar .lang-switch {
    min-height: 2.25rem;
    border-radius: 0.55rem;
  }

  .navbar .lang-option {
    font-size: 0.6875rem;
    min-height: 2.25rem;
    min-width: 1.9rem;
    padding-inline: 0.45rem;
    letter-spacing: 0.02em;
  }

  .navbar .btn-theme,
  .navbar .btn-telegram-nav {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 0.55rem;
  }

  .navbar .btn-theme .icon,
  .navbar .btn-telegram-nav .icon {
    width: 0.95rem;
    height: 0.95rem;
  }

  .navbar .btn-visit {
    height: 2.25rem;
    min-height: 2.25rem;
    padding-inline: 0.65rem;
    border-radius: 0.55rem;
    white-space: nowrap;
  }

  .navbar .btn-visit-text {
    display: none;
  }

  .navbar .btn-visit-short {
    display: inline;
  }

  @media (max-width: 380px) {
    .navbar-brand {
      max-width: 5.5rem;
    }

    .navbar .lang-option {
      min-width: 1.75rem;
      padding-inline: 0.35rem;
    }

    .navbar .btn-visit {
      padding-inline: 0.5rem;
      font-size: 0.6875rem;
    }

    .navbar-buttons {
      gap: 0.25rem;
    }
  }

  .card-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .commission-value {
    font-size: 1.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .support-box .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .score-value {
    font-size: 3.5rem;
  }

  .verdict-content p {
    font-size: 1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-legal {
    flex-wrap: wrap;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    max-width: 100%;
  }

  .footer-brand .brand-logo-footer {
    height: 1.65rem;
    max-width: 7rem;
  }

  .footer-brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    text-wrap: balance;
    max-width: 18rem;
  }

  .hero-feature {
    text-align: center;
    padding-inline: 0.5rem;
  }

  .faq-item summary {
    font-size: 1rem;
    line-height: 1.5;
  }

  .proscons-grid .card-header h3 {
    font-size: 1.25rem;
    flex-wrap: wrap;
  }
}

/* Light theme polish — high-contrast charcoal on white */
[data-theme="light"] body {
  color: #373737;
  background: #ffffff;
}

[data-theme="light"] .navbar-links a,
[data-theme="light"] .footer-links a,
[data-theme="light"] .navbar-title,
[data-theme="light"] .footer-brand,
[data-theme="light"] .lang-option,
[data-theme="light"] .btn-ghost,
[data-theme="light"] .btn-outline,
[data-theme="light"] .btn-icon,
[data-theme="light"] .btn-theme {
  color: #373737;
}

[data-theme="light"] .navbar-links a:hover,
[data-theme="light"] .footer-links a:hover {
  color: #30a55e;
}

[data-theme="light"] .footer-copy,
[data-theme="light"] .footer-legal a,
[data-theme="light"] .card-body p,
[data-theme="light"] .section-header p,
[data-theme="light"] .section-header .lead,
[data-theme="light"] .stat-desc,
[data-theme="light"] .tool-card p,
[data-theme="light"] .faq-item p,
[data-theme="light"] .calc-header p,
[data-theme="light"] .calc-label,
[data-theme="light"] .calc-result-label,
[data-theme="light"] .regions-count,
[data-theme="light"] .regions-empty,
[data-theme="light"] .regions-showing,
[data-theme="light"] .step-content p,
[data-theme="light"] .proscons .card-body p,
[data-theme="light"] .verdict-content p,
[data-theme="light"] .tools-intro p,
[data-theme="light"] .registration .lead,
[data-theme="light"] .regions-table td {
  color: #5c5c5c;
}

[data-theme="light"] .commission-rest .table-card {
  background: #ffffff;
  border: 1px solid #cfd8dc;
  box-shadow: 0 12px 28px -20px rgba(55, 55, 55, 0.28);
}

[data-theme="light"] .commission-rest .table-header {
  background: #eff2f4;
  border-bottom: 1px solid #cfd8dc;
}

[data-theme="light"] .commission-rest .table-header h3 {
  color: #373737;
  font-weight: 700;
}

[data-theme="light"] .commission-rest .data-table th {
  background: #f4f7f8;
  color: #373737;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid #cfd8dc;
}

[data-theme="light"] .commission-rest .data-table td {
  color: #373737;
  border-bottom: 1px solid #dce3e6;
}

[data-theme="light"] .commission-rest .data-table td:first-child {
  color: #373737;
  font-weight: 700;
  background: #fafbfc;
}

[data-theme="light"] .commission-rest .data-table td:last-child {
  color: #148b43;
  font-weight: 600;
}

[data-theme="light"] .commission-rest .data-table tbody tr:nth-child(even) td {
  background: #f7f9fa;
}

[data-theme="light"] .commission-rest .data-table tbody tr:nth-child(even) td:first-child {
  background: #f1f4f5;
}

[data-theme="light"] .commission-rest .data-table tbody tr:hover td {
  background: #ecf6f0;
}

[data-theme="light"] .commission-rest .data-table tr:last-child td {
  border-bottom: none;
}

[data-theme="light"] .calc-header h3,
[data-theme="light"] .calc-result-value,
[data-theme="light"] .commission-value,
[data-theme="light"] .tools-intro h2,
[data-theme="light"] .verdict-content h3,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] .stat-title,
[data-theme="light"] .stat-value,
[data-theme="light"] .tool-card h3,
[data-theme="light"] .faq-item summary,
[data-theme="light"] .regions-country,
[data-theme="light"] .card-header h3,
[data-theme="light"] .table-header h3,
[data-theme="light"] .data-table th,
[data-theme="light"] .regions-table th,
[data-theme="light"] .regions-filters-label,
[data-theme="light"] .step-content h4,
[data-theme="light"] .support-box h4 {
  color: #373737;
}

[data-theme="light"] .support-box p {
  color: #5c5c5c;
}

[data-theme="light"] .support-box-kicker {
  color: #148b43;
}

[data-theme="light"] .commission-value.text-primary,
[data-theme="light"] .text-primary,
[data-theme="light"] .icon-primary {
  color: #148b43;
}

[data-theme="light"] .lang-option.active {
  color: #ffffff;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-desc,
[data-theme="light"] .hero-content {
  color: #ffffff;
}

[data-theme="light"] .terms-title,
[data-theme="light"] .terms-glass h3,
[data-theme="light"] .terms-glass p,
[data-theme="light"] .terms-glass-badge,
[data-theme="light"] .terms-glass-action {
  color: #ffffff;
}

[data-theme="light"] .terms-glass.is-active .terms-glass-action {
  color: #148b43;
}

[data-theme="light"] .terms-workspace-header h3,
[data-theme="light"] .terms-rate-value {
  color: #373737;
}

[data-theme="light"] .terms-summary-value {
  color: #373737;
}

[data-theme="light"] .terms-summary-yearly,
[data-theme="light"] .terms-earn-value {
  color: #373737;
}

[data-theme="light"] .hero-content .btn-outline {
  color: #fff;
  border-color: #ffffff;
  background: #ffffff66;
}

[data-theme="light"] .hero-content .btn-outline:hover {
  background: #55ca8399;
  border-color: transparent;
  color: #ffffff;
}

[data-theme="light"] .hero-content .badge-success {
  background: rgb(85 202 131 / 0.2);
  color: #ffffff;
  border-color: rgb(85 202 131 / 0.45);
}

[data-theme="light"] .regions-filter.active,
[data-theme="light"] .calc-model-tab.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary-text);
}

[data-theme="light"] .regions-page-num.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

[data-theme="light"] .calc-result-yearly {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

[data-theme="light"] .calc-result-yearly .calc-result-value {
  color: var(--primary-text);
}

[data-theme="light"] .tg-option-channel .tg-option-title {
  color: #0b7fb8;
}

[data-theme="light"] .tg-option-manager .tg-option-title {
  color: var(--primary-text);
}

[data-theme="light"] .tg-option-channel {
  background: hsl(199 74% 49% / 0.1);
  border-color: hsl(199 74% 49% / 0.3);
}

[data-theme="light"] .tg-option-manager {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

[data-theme="light"] .card,
[data-theme="light"] .regions-panel,
[data-theme="light"] .calc-panel,
[data-theme="light"] .tg-modal-dialog {
  box-shadow: var(--shadow);
}

[data-theme="light"] .navbar {
  background: #ffffff;
  border-bottom-color: transparent;
  box-shadow: none;
}

[data-theme="light"] .section-alt {
  border-block-color: transparent;
}

[data-theme="light"] .footer {
  border-top-color: var(--primary);
}

/* About page */
.about-page {
  padding-top: 4.5rem;
}

.about-hero {
  padding: 3rem 0 2rem;
}

.about-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.about-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
}

.about-back:hover {
  color: var(--primary-text);
}

.about-back .icon {
  width: 1rem;
  height: 1rem;
}

[dir="rtl"] .about-back .icon {
  transform: scaleX(-1);
}

.about-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary-text);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.about-lead {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 48rem;
}

.about-facts {
  padding: 1rem 0 2rem;
}

.about-facts h2,
.about-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .about-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-fact {
  padding: 1rem 1.125rem;
}

.about-fact dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  margin-bottom: 0.35rem;
}

.about-fact dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.5;
}

.about-content {
  padding: 0 0 4rem;
}

.about-section {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.about-section p + p {
  margin-top: 0.85rem;
}

.legal-updated {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.legal-intro {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.legal-intro p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-intro p + p {
  margin-top: 0.85rem;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.65rem;
  color: var(--foreground);
}

.legal-list {
  margin: 0.5rem 0 0.85rem;
  padding-inline-start: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-list li + li {
  margin-top: 0.45rem;
}

.legal-list a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-list a:hover {
  color: var(--primary);
}

.footer-legal a {
  color: var(--muted-foreground);
  text-decoration: none;
}

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

[data-theme="light"] .about-facts {
  background: var(--section-alt-bg);
  border-block: 1px solid var(--border);
}

[data-theme="light"] .about-facts h2,
[data-theme="light"] .about-section h2,
[data-theme="light"] .about-hero h1 {
  color: #373737;
}

[data-theme="light"] .about-lead,
[data-theme="light"] .about-section p {
  color: #5c5c5c;
}

[data-theme="light"] .about-back {
  color: #5c5c5c;
}

[data-theme="light"] .about-back:hover {
  color: #148b43;
}

[data-theme="light"] .about-fact,
[data-theme="light"] .about-section,
[data-theme="light"] .legal-intro {
  background: #ffffff;
  border-color: #d0d0d0;
  box-shadow: 0 0.35rem 1.25rem rgba(55, 55, 55, 0.08);
}

[data-theme="light"] .about-fact dt {
  color: #148b43;
}

[data-theme="light"] .about-fact dd {
  color: #373737;
}

[data-theme="light"] .about-content {
  background: #ffffff;
}
