/* ════════════════════════════════════════════════
   AdsFlow — Design System "Clear Blue"
   Light-first professional SaaS aesthetic
   Telegram-inspired blue · Manrope typography
   ════════════════════════════════════════════════ */

:root {
  /* Brand */
  --primary: #229ED9;
  --primary-dark: #1877AC;
  --primary-light: #1273AA;
  --blue: #229ED9;
  --blue-dark: #1877AC;
  --purple: #7C5CFC;

  /* Surfaces (legacy variable names kept for compatibility) */
  --dark: #F5F8FC;
  --dark-2: #ECF1F8;
  --dark-3: #DCE5F0;
  --card-bg: #FFFFFF;
  --surface-muted: #F2F6FB;

  /* Text */
  --text-primary: #0B1B33;
  --text-secondary: #4E6080;
  --text-muted: #8598B4;

  /* Borders & tints */
  --border-light: rgba(11,27,51,.09);
  --border: rgba(34,158,217,.32);
  --tint: rgba(34,158,217,.08);
  --tint-strong: rgba(34,158,217,.16);

  /* Status */
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --accent: #229ED9;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg,#33ADF2 0%,#1E8FD3 100%);
  --gradient-hero: linear-gradient(135deg,#33ADF2 0%,#1E8FD3 100%);
  --gradient-card: linear-gradient(180deg,#FFFFFF 0%,#FCFEFF 100%);
  --gradient-orange: linear-gradient(135deg,#33ADF2,#1E8FD3);
  --gradient-blue: linear-gradient(135deg,#33ADF2,#1E8FD3);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13,38,76,.05), 0 1px 3px rgba(13,38,76,.07);
  --shadow-md: 0 2px 6px rgba(13,38,76,.05), 0 8px 24px rgba(13,38,76,.07);
  --shadow-lg: 0 4px 12px rgba(13,38,76,.06), 0 16px 40px rgba(13,38,76,.10);

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ── DARK THEME ── */
[data-theme="dark"] {
  --primary-light: #63C1F0;
  --blue: #63C1F0;
  --blue-dark: #33ADF2;
  --dark: #0A1322;
  --dark-2: #0F1B30;
  --dark-3: #16253E;
  --card-bg: #111F37;
  --surface-muted: rgba(255,255,255,.045);
  --text-primary: #EAF1FA;
  --text-secondary: #9DB0CB;
  --text-muted: #5E7396;
  --border-light: rgba(255,255,255,.08);
  --tint: rgba(34,158,217,.12);
  --tint-strong: rgba(34,158,217,.22);
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;
  --gradient-card: linear-gradient(180deg,#14243F 0%,#0F1B30 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 2px 8px rgba(0,0,0,.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ══════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════ */
h1,h2,h3,h4,h5,h6 { font-weight: 800; line-height: 1.18; letter-spacing: -0.022em; }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.orange-text { color: var(--primary); }
.blue-text { color: var(--blue); }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ══════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--tint);
  border: 1px solid var(--tint-strong);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px,4vw,44px); margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ══════════════════════════════════════════
   NAVBAR (landing)
══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0; transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
[data-theme="dark"] .navbar.scrolled { background: rgba(10,19,34,.85); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.brand-logo {
  width: 38px; height: 38px;
  background: var(--gradient-primary);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white;
  box-shadow: 0 4px 12px rgba(34,158,217,.35);
}
.navbar-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  transition: var(--transition); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary); border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

/* ══════════════════════════════════════════
   APP NAVBAR (inner pages)
══════════════════════════════════════════ */
.app-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
[data-theme="dark"] .app-nav { background: rgba(10,19,34,.88); }
.app-nav-inner {
  height: 58px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  overflow: hidden;
}
.app-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; flex-shrink: 0;
  white-space: nowrap;
}
.app-nav-right {
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; min-width: 0;
}
.app-nav-links {
  display: flex; align-items: center; gap: 2px;
  overflow: hidden; flex-shrink: 1;
}
.app-nav-link {
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: var(--transition); white-space: nowrap;
}
.app-nav-link:hover { color: var(--text-primary); background: var(--surface-muted); }
.app-nav-link.active { color: var(--primary-light); background: var(--tint); }
.app-nav-user {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: var(--transition); border: none; outline: none;
  white-space: nowrap; font-family: inherit; letter-spacing: -.01em;
}
.btn-primary {
  background: var(--gradient-orange);
  color: white;
  box-shadow: 0 4px 14px rgba(34,158,217,.32), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34,158,217,.42), inset 0 1px 0 rgba(255,255,255,.18);
  filter: brightness(1.04);
  color: white;
}
.btn-blue {
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(34,158,217,.28);
}
.btn-blue:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34,158,217,.38); color: white; }
.btn-outline {
  background: var(--card-bg); color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost {
  background: var(--tint); color: var(--primary-light);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--tint-strong); }
.btn-danger { background: rgba(220,38,38,.09); color: var(--danger); border: 1px solid rgba(220,38,38,.25); }
.btn-success { background: rgba(22,163,74,.09); color: var(--success); border: 1px solid rgba(22,163,74,.25); }
.btn-lg { padding: 15px 36px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 8%, rgba(42,171,238,.11) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 88% 18%, rgba(124,92,252,.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(34,158,217,.07) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(11,27,51,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
}
[data-theme="dark"] .hero-grid { background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-radius: 50px; padding: 7px 18px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,.15);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }
.hero h1 { font-size: clamp(38px,6.5vw,76px); margin-bottom: 22px; line-height: 1.08; letter-spacing: -.03em; }
.hero-desc {
  font-size: 18px; color: var(--text-secondary);
  margin-bottom: 44px; max-width: 580px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 72px; padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.hero-stat-number {
  font-size: 34px; font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary); opacity: 0; transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--tint-strong); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.card-icon-orange { background: rgba(245,158,11,.12); }
.card-icon-blue   { background: rgba(34,158,217,.12); }
.card-icon-purple { background: rgba(124,92,252,.12); }
.card-icon-green  { background: rgba(22,163,74,.11); }
.card-icon-yellow { background: rgba(234,179,8,.14); }
.card-icon-cyan   { background: rgba(6,182,212,.12); }
.card-icon-coral  { background: rgba(244,63,94,.10); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ══════════════════════════════════════════
   STEP CARDS
══════════════════════════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.step-card {
  text-align: center; padding: 36px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--tint-strong); }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: white;
  margin: 0 auto 20px;
  box-shadow: 0 6px 18px rgba(34,158,217,.35), inset 0 1px 0 rgba(255,255,255,.25);
}

/* ══════════════════════════════════════════
   REVIEW CARDS
══════════════════════════════════════════ */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.review-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 28px;
  transition: var(--transition); position: relative;
  box-shadow: var(--shadow-sm);
}
.review-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--tint-strong); }
.review-card::before {
  content: '\201C'; position: absolute; top: 16px; right: 20px;
  font-size: 64px; font-weight: 800; line-height: 1;
  color: var(--primary); opacity: .12; font-family: Georgia, serif;
}
.review-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.review-stars span { color: #F59E0B; font-size: 14px; }
.review-text { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: white; flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 700; }
.review-role { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; color: var(--text-primary);
  font-size: 15px; font-weight: 700; text-align: left; cursor: pointer;
  font-family: inherit; transition: var(--transition);
}
.faq-question:hover { color: var(--primary-light); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tint); border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
  font-size: 16px; color: var(--primary-light);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--tint-strong); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding-bottom .4s ease;
  padding: 0 24px;
  padding-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 0 24px 20px; }

/* ══════════════════════════════════════════
   WHO USES
══════════════════════════════════════════ */
.who-uses-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.who-uses-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 44px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.who-uses-card:hover { box-shadow: var(--shadow-lg); border-color: var(--tint-strong); }
.who-uses-card ul { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.who-uses-card li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary); font-size: 14px;
}
.who-uses-card li::before {
  content: '\2713'; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(22,163,74,.11); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PRICE BOX
══════════════════════════════════════════ */
.price-box {
  background: var(--tint);
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius-md); padding: 24px;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 14px; color: var(--text-secondary);
}
.price-row.total {
  border-top: 1px solid var(--border-light); margin-top: 10px; padding-top: 14px;
  font-size: 17px; font-weight: 800; color: var(--text-primary);
}
.price-amount-big { font-size: 22px; font-weight: 800; color: var(--warning); }

/* ══════════════════════════════════════════
   MESSAGES
══════════════════════════════════════════ */
.messages-container {
  position: fixed; top: 76px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; animation: slideIn .3s ease;
  box-shadow: var(--shadow-md);
}
.alert-success { background: var(--card-bg); border: 1px solid rgba(22,163,74,.35); border-left: 3px solid var(--success); color: var(--success); }
.alert-error   { background: var(--card-bg); border: 1px solid rgba(220,38,38,.35);  border-left: 3px solid var(--danger);  color: var(--danger); }
.alert-warning { background: var(--card-bg); border: 1px solid rgba(217,119,6,.35);  border-left: 3px solid var(--warning); color: var(--warning); }
.alert-info    { background: var(--card-bg); border: 1px solid rgba(34,158,217,.35); border-left: 3px solid var(--primary); color: var(--primary-light); }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 13px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 14px; transition: var(--transition); outline: none; font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34,158,217,.15);
}
.form-input::placeholder { color: var(--text-muted); }
select.form-input option { background: #fff; color: #0B1B33; }
[data-theme="dark"] select.form-input option { background: #14243F; color: #EAF1FA; }
textarea.form-input { resize: vertical; min-height: 110px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 700;
}
.badge-active    { background: rgba(22,163,74,.1);  color: var(--success); }
.badge-pending   { background: rgba(217,119,6,.1);  color: var(--warning); }
.badge-accepted  { background: rgba(22,163,74,.1);  color: var(--success); }
.badge-completed { background: rgba(34,158,217,.1); color: var(--primary-light); }
.badge-rejected  { background: rgba(220,38,38,.09); color: var(--danger); }
.badge-warning   { background: rgba(217,119,6,.1);  color: var(--warning); }
.badge-draft     { background: var(--surface-muted); color: var(--text-muted); }

/* ══════════════════════════════════════════
   DATA TABLE
══════════════════════════════════════════ */
.data-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.data-card-header h3 { font-size: 16px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 18px; text-align: left;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
  background: var(--surface-muted);
}
.data-table td { padding: 14px 18px; border-top: 1px solid var(--border-light); font-size: 14px; color: var(--text-secondary); }
.data-table tr:hover td { background: var(--tint); }

/* ══════════════════════════════════════════
   STATS CARDS
══════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: var(--gradient-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 22px;
  display: flex; align-items: flex-start; gap: 14px; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-value { font-size: 28px; font-weight: 800; line-height: 1.05; margin-bottom: 3px; letter-spacing: -.02em; }
.stat-label { font-size: 12px; color: var(--text-secondary); }

/* ══════════════════════════════════════════
   CHANNEL CARDS
══════════════════════════════════════════ */
.ch-card {
  background: var(--gradient-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 24px;
  transition: var(--transition); display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.ch-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ch-platform-icon { font-size: 30px; margin-bottom: 10px; }
.ch-name { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.ch-niche {
  font-size: 11px; color: var(--primary-light);
  background: var(--tint); padding: 2px 10px;
  border-radius: 50px; display: inline-block; margin-bottom: 14px;
}
.ch-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.ch-stat { text-align: center; padding: 8px; background: var(--surface-muted); border-radius: 8px; }
.ch-stat-val { font-size: 14px; font-weight: 800; }
.ch-stat-lbl { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.ch-price { font-size: 14px; font-weight: 800; color: var(--warning); margin-bottom: 14px; }

/* ══════════════════════════════════════════
   ORDER CARDS
══════════════════════════════════════════ */
.order-card {
  background: var(--gradient-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 22px; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.order-card:hover { border-color: var(--tint-strong); box-shadow: var(--shadow-md); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.order-number { font-size: 12px; color: var(--text-muted); }
.order-ad-preview {
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
  background: var(--surface-muted); border-radius: 8px;
  padding: 12px; margin-bottom: 14px;
  border-left: 3px solid var(--primary); white-space: pre-line;
}
.order-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.order-meta { font-size: 13px; color: var(--text-muted); }
.order-actions { display: flex; gap: 8px; }

/* ══════════════════════════════════════════
   CHANNEL MINI
══════════════════════════════════════════ */
.channel-mini {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--surface-muted); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); margin-bottom: 24px;
}
.channel-mini-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PUBLISHER CARDS (compat)
══════════════════════════════════════════ */
.publisher-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white;
}
.publisher-niche {
  display: inline-block; padding: 3px 10px;
  background: var(--tint);
  border-radius: 50px; font-size: 11px; color: var(--primary-light); margin-bottom: 0;
}

/* ══════════════════════════════════════════
   ROLE TAGS
══════════════════════════════════════════ */
.role-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 700;
}
.role-advertiser { background: rgba(124,92,252,.1); color: #7C5CFC; }
[data-theme="dark"] .role-advertiser { color: #A78BFA; }
.role-publisher  { background: rgba(34,158,217,.1); color: var(--primary-light); }

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.empty-sm { text-align: center; padding: 48px 16px; color: var(--text-secondary); }
.empty-sm-icon { font-size: 44px; opacity: .5; margin-bottom: 14px; }

/* ══════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════ */
.page-header {
  padding: 40px 0 32px; text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, var(--tint) 0%, transparent 65%);
}
.page-header h1 { font-size: clamp(26px,4vw,44px); margin-bottom: 10px; }
.page-header p { font-size: 15px; color: var(--text-secondary); }

/* ══════════════════════════════════════════
   SETUP / AUTH PAGES
══════════════════════════════════════════ */
.setup-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
  background:
    radial-gradient(ellipse 55% 45% at 20% 10%, rgba(42,171,238,.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(124,92,252,.07) 0%, transparent 55%),
    var(--dark);
}
.setup-card {
  background: var(--gradient-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 44px; width: 100%; max-width: 640px;
  box-shadow: var(--shadow-lg);
}

/* ══════════════════════════════════════════
   FILTERS BAR
══════════════════════════════════════════ */
.filters-bar {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.filters-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { flex: 1; min-width: 140px; }
.filter-group label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 7px; }

/* ══════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════ */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-light), transparent); }

/* ══════════════════════════════════════════
   PROFILE GRID
══════════════════════════════════════════ */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.profile-sidebar-card {
  background: var(--gradient-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 28px; text-align: center; height: fit-content;
  box-shadow: var(--shadow-sm);
}
.profile-avatar-large {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; color: white; margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(34,158,217,.3);
}
.profile-username { font-size: 20px; font-weight: 800; }
.profile-type { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

/* ══════════════════════════════════════════
   SCROLLBAR & SELECTION & DECOR
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(11,27,51,.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }
::selection { background: rgba(34,158,217,.22); }

.blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; opacity: .5;
  animation: blobFloat 8s ease-in-out infinite;
}
@keyframes blobFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,-20px) scale(1.05)} }

.gradient-border {
  position: relative; background: var(--gradient-card); border-radius: var(--radius-md);
}
.gradient-border::before {
  content: ''; position: absolute; inset: 0; padding: 1px;
  border-radius: inherit;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ══════════════════════════════════════════
   SETTINGS PANEL
══════════════════════════════════════════ */
.settings-bar { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: transparent; border: 1px solid var(--border-light);
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.lang-btn:hover { color: var(--text-primary); border-color: var(--primary); }
.lang-btn.active { background: var(--tint); color: var(--primary-light); border-color: var(--primary); }
.theme-mode-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-light);
  background: transparent; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.theme-mode-btn:hover { border-color: var(--primary); }
.theme-mode-btn.active { background: var(--tint); border-color: var(--primary); }
.color-dots { display: flex; gap: 5px; align-items: center; }
.color-dot {
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  box-shadow: inset 0 0 0 1px rgba(11,27,51,.08);
}
.color-dot:hover, .color-dot.active { border-color: var(--primary); transform: scale(1.15); }
.settings-sep { width: 1px; height: 20px; background: var(--border-light); }

/* ══════════════════════════════════════════
   FLOATING SETTINGS PANEL (landing)
══════════════════════════════════════════ */
.settings-toggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 990;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.settings-toggle:hover { transform: scale(1.08) rotate(30deg); border-color: var(--primary); }

.settings-float-panel {
  position: fixed; bottom: 84px; right: 28px; z-index: 989;
  width: 210px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 18px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.96);
  opacity: 0; pointer-events: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.settings-float-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1; pointer-events: all;
}

.sf-label {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-muted); margin-bottom: 8px;
}
.sf-lang-group { display: flex; flex-direction: column; gap: 5px; }
.sf-lang-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: var(--transition); font-family: inherit; text-align: left;
  width: 100%;
}
.sf-lang-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.sf-lang-btn.active { background: var(--tint); border-color: var(--primary); color: var(--primary-light); }
.sf-lang-flag { font-size: 16px; }

.sf-mode-group { display: flex; gap: 6px; }
.sf-mode-btn {
  flex: 1; padding: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: transparent; cursor: pointer; font-size: 16px;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.sf-mode-btn:hover { border-color: var(--primary); }
.sf-mode-btn.active { background: var(--tint); border-color: var(--primary); }

.sf-color-group { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sf-color-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  transition: var(--transition); font-family: inherit;
}
.sf-color-btn:hover { border-color: var(--primary); color: var(--text-primary); }
.sf-color-btn.active { border-color: var(--primary); color: var(--text-primary); background: var(--tint); }
.sf-color-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

@media (max-width: 480px) {
  .settings-toggle { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 16px; }
  .settings-float-panel { bottom: 70px; right: 16px; width: 195px; }
}

/* ══════════════════════════════════════════
   COMING SOON
══════════════════════════════════════════ */
.coming-soon-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
}
.cs-card {
  background: var(--gradient-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 22px 16px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cs-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 7px; border-radius: 50px;
  background: var(--tint); color: var(--primary-light);
}
.cs-icon { font-size: 28px; margin-bottom: 10px; }
.cs-title { font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.cs-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 768px) { .coming-soon-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 480px) { .coming-soon-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ══════════════════════════════════════════
   CALCULATOR
══════════════════════════════════════════ */
.calc-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-lg);
}
.calc-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) var(--pct,30%), var(--dark-3) var(--pct,30%));
  outline: none; cursor: pointer; margin: 16px 0;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(13,38,76,.2); cursor: pointer;
}
.calc-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.calc-result-row.highlight { background: var(--tint); border: 1px solid var(--tint-strong); }

/* ══════════════════════════════════════════
   TOP CHANNELS (landing)
══════════════════════════════════════════ */
.top-ch-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
}
.top-ch-card {
  background: var(--gradient-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px; text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.top-ch-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.top-ch-avatar {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white;
  margin: 0 auto 12px;
}

@media (max-width: 768px) { .top-ch-grid { grid-template-columns: repeat(2,1fr); gap: 12px; } }
@media (max-width: 480px) { .top-ch-grid { grid-template-columns: repeat(2,1fr); gap: 10px; } .top-ch-card { padding: 14px; } }

/* ══════════════════════════════════════════
   REVIEW FORM
══════════════════════════════════════════ */
.review-form-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 28px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}
.star-rating { display: flex; gap: 6px; margin-bottom: 16px; }
.star-btn {
  font-size: 24px; cursor: pointer; background: none; border: none;
  color: var(--text-muted); transition: var(--transition); line-height: 1;
}
.star-btn:hover, .star-btn.selected { color: #F59E0B; }

/* ══════════════════════════════════════════
   GRID HELPERS
══════════════════════════════════════════ */
.grid-2-col        { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start; }
.grid-2-col-center { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.grid-footer       { display:grid; grid-template-columns:2fr 1fr 1fr; gap:48px; }
.hero-stat-divider { width:1px; background:var(--border-light); align-self:stretch; flex-shrink:0; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
/* ── 1024px ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .grid-footer { grid-template-columns: 1fr 1fr; }
}

/* ── 860px ── */
@media (max-width: 860px) {
  .color-dots { display: none; }
  .settings-sep:last-of-type { display: none; }
}

/* ── 768px ── */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .who-uses-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .role-tag { display: none; }
  .app-nav-link { padding: 5px 8px; font-size: 12px; }
  .btn-sm { padding: 6px 12px; font-size: 12px; }
}

/* ── 640px (mobile) ── */
@media (max-width: 640px) {
  .settings-bar { display: none; }
  .app-nav-user .role-tag { display: none; }
  .app-nav-right { gap: 6px; }
  .grid-2-col, .grid-2-col-center { grid-template-columns: 1fr !important; gap: 20px !important; }
  .grid-footer { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-stat-divider { display: none !important; }
  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: 22px; }
  .section-header p { font-size: 14px; }
  .section-tag { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: 28px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 18px; }
  .hero-desc { font-size: 14px; margin-bottom: 26px; }
  .hero-actions { gap: 10px; }
  .hero-stats {
    flex-direction: row !important;
    gap: 0 !important;
    justify-content: space-around;
    margin-top: 32px;
    padding-top: 22px;
  }
  .hero-stat-number { font-size: 22px; }
  .hero-stat-label { font-size: 10px; }
  .steps-grid { gap: 12px; }
  .step-card { padding: 22px 14px; }
  .step-number { width: 50px; height: 50px; font-size: 20px; margin-bottom: 14px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 12px; }
  .review-card { padding: 20px 16px; }
  .review-card::before { font-size: 44px; top: 10px; right: 12px; }
  .review-stars span { font-size: 13px; }
  .review-text { font-size: 13px; }
  .faq-list { gap: 8px; max-width: 100%; }
  .faq-question { font-size: 13px; padding: 14px 16px; }
  .faq-icon { width: 22px; height: 22px; font-size: 13px; }
  .faq-answer { padding: 0 16px; font-size: 13px; }
  .faq-item.open .faq-answer { padding: 0 16px 16px; max-height: 800px; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }
  .btn { font-size: 13px; }
  .card { padding: 18px; }
  .card-icon { width: 44px; height: 44px; font-size: 20px; }
  .card h3 { font-size: 16px; }
  .ch-card { padding: 16px; }
  .ch-name { font-size: 15px; }
  .ch-stat-val { font-size: 13px; }
  .order-card { padding: 16px; }
  .order-card-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .order-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .order-actions { flex-wrap: wrap; gap: 6px; }
  .order-ad-preview { font-size: 12px; padding: 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-value { font-size: 22px; }
  .stat-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 9px; }
  .stat-label { font-size: 11px; }
  .data-card { overflow-x: auto; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 12px; }
  .data-card-header { padding: 14px 16px; }
  .data-card-header h3 { font-size: 15px; }
  .channel-mini { flex-wrap: wrap; gap: 10px; padding: 14px; margin-bottom: 18px; }
  .profile-grid { gap: 16px; }
  .profile-sidebar-card { padding: 20px; }
  .profile-avatar-large { width: 72px; height: 72px; font-size: 28px; }
  .setup-card { padding: 22px 16px; }
  .page-header { padding: 24px 0 18px; }
  .page-header h1 { font-size: 22px; }
  .page-header p { font-size: 13px; }
  .price-box { padding: 18px; }
  .price-row { font-size: 13px; }
  .price-row.total { font-size: 15px; }
  .price-amount-big { font-size: 18px; }
  .ch-niche { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── 400px ── */
@media (max-width: 400px) {
  .app-brand span { display: none; }
  .hero h1 { font-size: 23px; }
  .hero-stat-number { font-size: 18px; }
  .hero-stat-label { font-size: 9px; }
  .grid-footer { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.mt-8{margin-top:8px} .mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px}
.mb-8{margin-bottom:8px} .mb-16{margin-bottom:16px} .mb-24{margin-bottom:24px} .mb-32{margin-bottom:32px}
.flex{display:flex} .flex-center{display:flex;align-items:center;justify-content:center}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.gap-8{gap:8px} .gap-12{gap:12px} .gap-16{gap:16px} .gap-24{gap:24px}
.text-center{text-align:center} .w-full{width:100%}

/* ══════════════════════════════════════════
   CABINET LAYOUT (dashboard with sidebar)
══════════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--card-bg);
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  padding: 24px 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand {
  padding: 0 8px 22px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}
.sidebar-brand .navbar-brand { font-size: 19px; }
.sidebar-brand .brand-logo { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.sidebar-nav {
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}
.sidebar-link:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}
.sidebar-link.active {
  background: var(--tint);
  border-color: var(--tint-strong);
  color: var(--primary-light);
}
.sidebar-link-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 14px; margin-top: 14px;
}

.dashboard-main {
  flex: 1; min-width: 0;
  padding: 32px 36px 64px;
  max-width: 1160px;
}
.dashboard-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.dashboard-title { font-size: clamp(22px,3vw,30px); margin-bottom: 6px; }
.dashboard-subtitle { color: var(--text-secondary); font-size: 15px; }

/* ══════════════════════════════════════════
   CAMPAIGN CARDS
══════════════════════════════════════════ */
.campaign-card {
  display: flex; flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.campaign-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.campaign-card-title { font-size: 15px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.campaign-card-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 14px; flex: 1;
}
.campaign-card-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--border-light); padding-top: 12px;
}
.campaign-meta-item { font-size: 12px; color: var(--text-muted); }

/* Campaign row (list) */
.camp-row {
  display: flex; align-items: center; gap: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px 22px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.camp-row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.camp-meta { font-size: 13px; color: var(--text-muted); }

/* Match badge */
.match-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 50px;
  background: rgba(22,163,74,.1); color: var(--success);
  font-size: 12px; font-weight: 700;
  border: 1px solid rgba(22,163,74,.2);
}

/* ══════════════════════════════════════════
   EMPTY STATE / HINTS / STATUS
══════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 64px 32px;
  background: var(--gradient-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
}
.empty-state-icon {
  font-size: 52px; margin-bottom: 18px;
  opacity: .6;
  filter: grayscale(.4);
}
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }

.hint-box {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--tint);
  border: 1px solid var(--tint-strong);
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.help-box {
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
  box-shadow: var(--shadow-sm);
}
.help-link { color: var(--primary-light); font-weight: 700; }
.help-link:hover { text-decoration: underline; }
.status-card {
  padding: 18px; border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
  text-align: center;
}

.meta-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.meta-row:last-child { border-bottom: none; }

/* Profile stats */
.profile-stat {
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 16px;
  text-align: center;
}
.profile-stat-val { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.profile-stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .6px; }

/* Filters card */
.filter-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.filter-lbl {
  display: block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 7px;
}

/* Region chips & verify dot */
.region-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 50px;
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
  font-size: 12px; color: var(--text-secondary); font-weight: 600;
}
.verify-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}
.contact-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.contact-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}

/* Publishers grid */
.publishers-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px;
}
.publisher-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 18px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.publisher-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.publisher-name { font-size: 14px; font-weight: 800; }
.publisher-platform { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Fade-in entrance animation */
.fade-in { animation: fadeInUp .45s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cabinet responsive */
@media (max-width: 1024px) {
  .dashboard-main { padding: 24px 20px 48px; }
}
@media (max-width: 860px) {
  .dashboard-layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    border-right: none; border-bottom: 1px solid var(--border-light);
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-brand { padding: 0 12px 0 0; border-bottom: none; margin-bottom: 0; border-right: 1px solid var(--border-light); flex-shrink: 0; }
  .sidebar-brand span { display: none; }
  .sidebar-nav { flex-direction: row; gap: 2px; flex: 1; }
  .sidebar-link { white-space: nowrap; padding: 7px 11px; font-size: 13px; }
  .sidebar-link-icon { width: auto; }
  .sidebar-footer { border-top: none; padding-top: 0; margin-top: 0; margin-left: auto; flex-shrink: 0; display: flex; align-items: center; }
  .sidebar-footer > div:first-child { display: none; }
  .sidebar-footer .sidebar-link { padding: 7px 11px; }
}
@media (max-width: 640px) {
  .empty-state { padding: 40px 18px; }
  .empty-state-icon { font-size: 42px; }
  .camp-row { padding: 16px; gap: 12px; flex-direction: column; align-items: stretch; }
  .camp-row > div:last-child { text-align: left !important; }
  .dashboard-header { margin-bottom: 20px; }
}

/* ══════════════════════════════════════════
   COLOR VARIANTS
   (blue is the default — no attribute needed)
══════════════════════════════════════════ */
[data-color="orange"] {
  --primary: #F59E0B;
  --primary-dark: #D97706;
  --primary-light: #B45309;
  --gradient-primary: linear-gradient(135deg,#FBBF24 0%,#F59E0B 100%);
  --gradient-orange: linear-gradient(135deg,#FBBF24,#F59E0B);
  --gradient-blue: linear-gradient(135deg,#FB923C,#EA580C);
  --border: rgba(245,158,11,.35);
  --tint: rgba(245,158,11,.1);
  --tint-strong: rgba(245,158,11,.2);
}
[data-theme="dark"][data-color="orange"] { --primary-light: #FCD34D; }

[data-color="purple"] {
  --primary: #7C5CFC;
  --primary-dark: #6544E8;
  --primary-light: #6244E5;
  --purple: #7C5CFC;
  --gradient-primary: linear-gradient(135deg,#9B82FF 0%,#7C5CFC 100%);
  --gradient-orange: linear-gradient(135deg,#9B82FF,#7C5CFC);
  --gradient-blue: linear-gradient(135deg,#8B5CF6,#6D28D9);
  --border: rgba(124,92,252,.35);
  --tint: rgba(124,92,252,.09);
  --tint-strong: rgba(124,92,252,.18);
}
[data-theme="dark"][data-color="purple"] { --primary-light: #A78BFA; }

[data-color="green"] {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #047857;
  --gradient-primary: linear-gradient(135deg,#34D399 0%,#10B981 100%);
  --gradient-orange: linear-gradient(135deg,#34D399,#10B981);
  --gradient-blue: linear-gradient(135deg,#06B6D4,#0891B2);
  --border: rgba(16,185,129,.35);
  --tint: rgba(16,185,129,.09);
  --tint-strong: rgba(16,185,129,.18);
}
[data-theme="dark"][data-color="green"] { --primary-light: #34D399; }

/* ══════════════════════════════════════════
   DASHBOARD LAYOUT (sidebar + main)
══════════════════════════════════════════ */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--card-bg);
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-brand .navbar-brand { font-size: 19px; gap: 8px; }
.sidebar-brand .brand-logo { width: 34px; height: 34px; font-size: 13px; }
.sidebar-nav {
  padding: 14px 12px; display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  transition: var(--transition); white-space: nowrap;
}
.sidebar-link:hover { color: var(--text-primary); background: var(--surface-muted); }
.sidebar-link.active {
  color: var(--primary-light);
  background: var(--tint);
}
.sidebar-link-icon { width: 22px; text-align: center; font-size: 16px; flex-shrink: 0; }
.sidebar-footer {
  padding: 14px 12px; border-top: 1px solid var(--border-light);
}

.dashboard-main {
  flex: 1; min-width: 0;
  padding: 28px 32px 48px;
  background:
    radial-gradient(ellipse 45% 28% at 85% 0%, rgba(34,158,217,.05) 0%, transparent 60%),
    var(--dark);
}
.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 26px; flex-wrap: wrap;
}
.dashboard-title { font-size: clamp(22px,3vw,30px); letter-spacing: -.02em; }
.dashboard-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

.fade-in { animation: fadeInUp .4s ease both; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }

/* ══════════════════════════════════════════
   CAMPAIGN & PUBLISHER CARDS
══════════════════════════════════════════ */
.campaign-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.campaign-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.campaign-card-title { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.campaign-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }
.campaign-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.camp-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

.publishers-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px;
}
.publisher-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 18px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.publisher-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.publisher-name { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.publisher-platform { font-size: 12px; color: var(--text-muted); }
.region-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; background: var(--surface-muted);
  border: 1px solid var(--border-light); border-radius: 50px;
  font-size: 11px; color: var(--text-secondary); font-weight: 600;
}

/* ══════════════════════════════════════════
   EMPTY STATE & PROFILE STATS
══════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 56px 24px;
  background: var(--gradient-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
}
.empty-state-icon { font-size: 52px; opacity: .55; margin-bottom: 14px; }
.empty-state h3 { font-size: 17px; margin-bottom: 6px; }
.empty-state p { color: var(--text-secondary); font-size: 14px; max-width: 380px; margin: 0 auto 18px; line-height: 1.7; }

.profile-stat {
  text-align: center; padding: 16px 10px;
  background: var(--surface-muted); border-radius: var(--radius-sm);
}
.profile-stat-val { font-size: 20px; font-weight: 800; }
.profile-stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ══════════════════════════════════════════
   FILTER CARD
══════════════════════════════════════════ */
.filter-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.filter-lbl {
  display: block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 7px;
}

/* ══════════════════════════════════════════
   MISC KOMPONENTLAR
══════════════════════════════════════════ */
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); align-items: center; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-muted); border-radius: var(--radius-sm); margin-bottom: 8px; }
.contact-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.help-box {
  background: var(--tint); border: 1px solid var(--tint-strong);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.hint-box {
  background: var(--surface-muted); border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.status-card {
  background: var(--gradient-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.match-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 800;
  background: rgba(22,163,74,.1); color: var(--success);
}
.match-hint { font-size: 11px; color: var(--text-muted); }
.match-corner { position: absolute; top: 12px; right: 12px; }
.verify-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,.15);
  display: inline-block;
}

/* ══════════════════════════════════════════
   DASHBOARD RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 992px) {
  .dashboard-layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--border-light);
    flex-direction: column;
  }
  .sidebar-nav {
    flex-direction: row; overflow-x: auto; gap: 4px;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-link { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .dashboard-main { padding: 20px 16px 40px; }
}
@media (max-width: 640px) {
  .dashboard-header { margin-bottom: 18px; }
  .dashboard-title { font-size: 20px; }
}

/*@@CHUNK-END@@*/