/* ═══════════════════════════════════════════════════════════════
   ReachAds 17.2.0 — Flutter-Level Premium Design
   Glassmorphism · Micro-interactions · Smooth Animations
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800;900&display=swap');

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --primary: #4C6FFF;
  --primary-light: #6B8AFF;
  --primary-dark: #3B5CE4;
  --primary-bg: #EEF2FF;
  --primary-gradient: linear-gradient(135deg, #4C6FFF 0%, #6366F1 50%, #8B5CF6 100%);
  --success: #10B981;
  --success-light: #D1FAE5;
  --success-gradient: linear-gradient(135deg, #10B981, #059669);
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --purple: #8B5CF6;
  --purple-light: #EDE9FE;
  --pink: #EC4899;
  --pink-light: #FCE7F3;
  --orange: #F97316;
  --orange-light: #FFEDD5;
  --cyan: #06B6D4;
  --cyan-light: #CFFAFE;
  --bg: #F8FAFC;
  --bg-gradient: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --card: #FFFFFF;
  --card-border: rgba(226,232,240,0.8);
  --border: #E2E8F0;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-primary: 0 8px 32px rgba(76,111,255,0.20);
  --shadow-success: 0 8px 32px rgba(16,185,129,0.20);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  --glass: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.4);
  --font: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: var(--font);
  background: var(--bg-gradient);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  min-height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 88px;
}

.app-main {
  flex: 1;
  padding: 0;
  animation: pageSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── PAGE TRANSITIONS ───────────────────────────────────────── */
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title {
  font-size: 22px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.header-balance {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16,185,129,0.15);
}

.offline-badge {
  font-size: 11px;
  color: var(--danger);
  background: var(--danger-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  animation: pulse 2s infinite;
}

/* ─── PAGE HEAD ──────────────────────────────────────────────── */
.page-head {
  padding: 20px 18px 16px;
}

.page-head h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.page-head p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ─── HERO BALANCE CARD ──────────────────────────────────────── */
.balance-card {
  margin: 0 16px 20px;
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
  animation: scaleIn 0.4s ease-out;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.balance-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -15%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

.balance-main {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.balance-main small {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.balance-main b {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.balance-main span {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.balance-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.balance-stats div {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 12px 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.balance-stats small {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.balance-stats b {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.balance-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.balance-actions .btn {
  flex: 1;
  max-width: 150px;
}

/* ─── QUICK ACTIONS ──────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 24px;
}

.qa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font);
  box-shadow: var(--shadow-xs);
}

.qa-card:hover, .qa-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.qa-card:active {
  transform: translateY(0) scale(0.98);
}

.qa-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-icon svg {
  width: 22px;
  height: 22px;
}

.qa-icon.blue { background: var(--primary-bg); color: var(--primary); }
.qa-icon.green { background: var(--success-light); color: var(--success); }
.qa-icon.orange { background: var(--warning-light); color: var(--warning); }
.qa-icon.purple { background: var(--purple-light); color: var(--purple); }
.qa-icon.pink { background: var(--pink-light); color: var(--pink); }
.qa-icon.cyan { background: var(--cyan-light); color: var(--cyan); }

.qa-card > div {
  flex: 1;
  min-width: 0;
}

.qa-card b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.qa-card span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ─── FEATURE CARDS ──────────────────────────────────────────── */
.feature-cards {
  padding: 0 16px;
  margin-bottom: 24px;
}

.feature-cards > h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
  animation: slideUp 0.4s ease-out backwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card:active {
  transform: scale(0.98);
}

.feature-illustration {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 30px;
}

.feature-illustration.gradient-1 { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); }
.feature-illustration.gradient-2 { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); }
.feature-illustration.gradient-3 { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); }

.feature-info {
  flex: 1;
}

.feature-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.feature-btn:hover {
  transform: scale(1.05);
}

.feature-btn.blue { background: var(--primary); }
.feature-btn.green { background: var(--success); }
.feature-btn.purple { background: var(--purple); }

/* ─── SECTION CARD ───────────────────────────────────────────── */
.section-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  margin: 0 16px 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  animation: slideUp 0.4s ease-out backwards;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.section-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.section-link {
  font-size: 13px;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
}

/* ─── ROW CARD ───────────────────────────────────────────────── */
.row-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  margin: 0 16px 8px;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.row-card:hover {
  background: var(--card);
  border-color: var(--card-border);
  box-shadow: var(--shadow-sm);
}

.row-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.row-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.row-card > div {
  flex: 1;
  min-width: 0;
}

.row-card b {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.row-card small {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

/* ─── MARKETPLACE ────────────────────────────────────────────── */
.market-search {
  margin: 0 16px 16px;
  display: flex;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow-xs);
}

.market-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
}

.market-search button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.market-search button:hover {
  background: var(--primary-dark);
}

.market-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin: 0 16px 10px;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.market-channel:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.channel-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-avatar svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.channel-info {
  flex: 1;
  min-width: 0;
}

.channel-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-info small {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.channel-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--primary-bg);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.score-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.channel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

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

.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* ─── FILTER TABS ────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs .tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-tabs .tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

/* ─── WALLET ─────────────────────────────────────────────────── */
.wallet-balance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.wb-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.wb-card small {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.wb-card b {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  display: block;
}

.wb-available b { color: var(--success); }
.wb-held b { color: var(--warning); }
.wb-withdrawable b { color: var(--primary); }

.wallet-actions {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 20px;
}

/* ─── SUPPORT ────────────────────────────────────────────────── */
.support-options {
  padding: 0 16px;
  margin-bottom: 20px;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  box-shadow: var(--shadow-xs);
}

.support-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.support-card svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.support-card b {
  font-size: 14px;
  font-weight: 700;
  display: block;
  color: var(--text);
}

.support-card small {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── FAB ────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 96px;
  right: 16px;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--success-gradient);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-success);
  transition: all 0.2s;
  z-index: 150;
  animation: float 4s ease-in-out infinite;
}

.fab:hover {
  transform: scale(1.08);
}

.fab:active {
  transform: scale(0.95);
}

.fab svg {
  width: 24px;
  height: 24px;
}

/* ─── BOTTOM NAV ─────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px 12px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--card-border);
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  position: relative;
  color: var(--text-muted);
  transition: all 0.2s ease;
  font-family: var(--font);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: all 0.2s;
}

.nav-item span {
  font-size: 10px;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  transform: scale(1.15);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-badge {
  position: absolute;
  top: -1px;
  right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(76,111,255,0.30);
}

.btn-success {
  background: var(--success-gradient);
  color: #fff;
  box-shadow: var(--shadow-success);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* ─── LIST ITEM ──────────────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}

.list-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.list-item:hover {
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}

/* ─── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  padding: 0;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px 20px 32px;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body .form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-body .field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.modal-body .field input,
.modal-body .field textarea,
.modal-body .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-alt);
  outline: none;
  transition: all 0.2s;
}

.modal-body .field input:focus,
.modal-body .field textarea:focus,
.modal-body .field select:focus {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.modal-body .field textarea {
  min-height: 80px;
  resize: vertical;
}

/* ─── PROFILE ────────────────────────────────────────────────── */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  margin: 0 16px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.profile-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.profile-card small {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 16px;
}

.profile-stats div {
  text-align: center;
}

.profile-stats b {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.profile-stats small {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-actions {
  padding: 0 16px;
}

/* ─── ADMIN ──────────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}

.admin-tabs .tab {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.admin-tabs .tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-overview h3 {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
}

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ─── SKELETON ───────────────────────────────────────────────── */
.skeleton-card {
  padding: 16px;
  margin: 0 16px 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-title {
  height: 16px;
  width: 60%;
}

.skeleton-text {
  width: 80%;
}

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  z-index: 600;
  display: none;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.3s ease;
}

.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-warning { background: var(--warning); color: #fff; }

/* ─── ERROR SCREEN ───────────────────────────────────────────── */
.error-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px;
  text-align: center;
}

.error-screen h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.error-screen p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ─── BOOT SCREEN ────────────────────────────────────────────── */
.boot-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-gradient);
}

.boot-card {
  text-align: center;
  padding: 40px;
  animation: scaleIn 0.5s ease-out;
}

.boot-logo img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.boot-card .eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.boot-card h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}

.boot-progress {
  width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 12px;
  overflow: hidden;
}

.boot-progress i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--primary-gradient);
  border-radius: 2px;
  animation: shimmer 1.5s ease-in-out infinite;
}

.boot-card small {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── STATUS BADGES ──────────────────────────────────────────── */
.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.status-pending { background: var(--warning-light); color: var(--warning); }
.status-active { background: var(--success-light); color: var(--success); }
.status-completed { background: var(--primary-bg); color: var(--primary); }
.status-cancelled { background: var(--danger-light); color: var(--danger); }
.status-rejected { background: var(--danger-light); color: var(--danger); }

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 360px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .balance-main b { font-size: 38px; }
  .page-head h1 { font-size: 24px; }
}


/* Founder round hardening */
:root{--tg-safe-bottom:var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom,0px));}
.app-main,.page-content,main{padding-bottom:calc(96px + var(--tg-safe-bottom))!important}
.bottom-nav{padding-bottom:calc(8px + var(--tg-safe-bottom))!important}
button.is-loading{position:relative;pointer-events:none;opacity:.72}
button.is-loading::after{content:'';width:16px;height:16px;border:2px solid currentColor;border-left-color:transparent;border-radius:50%;animation:ra-spin .65s linear infinite;margin-inline-start:8px;display:inline-block;vertical-align:middle}
@keyframes ra-spin{to{transform:rotate(360deg)}}
button:disabled{cursor:not-allowed}
@media(max-width:380px){.page-header{padding-inline:14px}.section-card{margin-inline:12px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-actions{grid-template-columns:1fr 1fr}}

.support-reply{display:block;margin-top:6px;color:var(--success);font-weight:700}
.channel-owner-row{align-items:center}.channel-photo{width:48px;height:48px;border-radius:15px;overflow:hidden;display:grid;place-items:center;background:var(--primary-bg);flex:0 0 auto}.channel-photo img{width:100%;height:100%;object-fit:cover}.row-actions{display:flex;gap:6px;margin-inline-start:auto}.payment-note,.wizard-summary{padding:12px 14px;border-radius:14px;background:var(--primary-bg);color:var(--text-secondary);font-size:12px;line-height:1.7}.wizard-summary{display:flex;justify-content:space-between;gap:8px;align-items:center}.wizard-summary span{color:var(--text-muted);font-size:10px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.package-row{padding:12px 0;border-bottom:1px solid var(--border)}.package-row small{display:block;color:var(--text-muted)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-grid>div{padding:12px;border-radius:14px;background:var(--surface-soft)}.detail-grid small,.detail-grid b{display:block}
@media(max-width:390px){.form-two,.detail-grid{grid-template-columns:1fr}.wizard-summary{align-items:flex-start;flex-direction:column}}


/* ═══ 17.2.0 POLISH & MOBILE HARDENING ═══ */
html { height: auto !important; min-height: 100%; overflow-y: auto !important; }
body {
  height: auto !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
#app {
  width: 100%;
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
}
.app-main {
  flex: 1 0 auto;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.command-center,.market-page,.orders-page,.wallet-page,.notifications-page,.profile-page,.channels-page,.campaigns-page,.support-page,.admin-page {
  height: auto !important;
  min-height: calc(100dvh - 150px);
  overflow: visible !important;
  padding-bottom: 28px;
}
.app-header {
  min-height: 68px;
  padding: 10px 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 0 rgba(15,23,42,.05);
}
.header-profile { display:flex;align-items:center;gap:10px;border:0;background:transparent;font-family:var(--font);color:var(--text);cursor:pointer;padding:4px 0;min-width:0; }
.header-avatar { width:42px;height:42px;border-radius:14px;background:var(--primary-bg);display:grid;place-items:center;overflow:hidden;color:var(--primary);flex:0 0 auto; }
.header-avatar img { width:100%;height:100%;object-fit:cover; }
.header-avatar svg { width:21px;height:21px; }
.header-user { display:flex;flex-direction:column;align-items:flex-start;line-height:1.2;min-width:0; }
.header-user b { max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px; }
.header-user small { color:var(--text-muted);font-size:10px;margin-top:4px; }
.header-actions { display:flex;align-items:center;gap:8px; }
.header-brand { font-size:15px;font-weight:900;color:var(--primary);letter-spacing:-.3px; }
.page-head { padding:22px 18px 14px; }
.page-head h1 { font-size:clamp(27px,8vw,34px);line-height:1.25; }
.page-head p { font-size:14px;line-height:1.8; }
.section-card,.row-card,.qa-card,.wallet-balance,.profile-card,.support-card { border:1px solid rgba(226,232,240,.8);box-shadow:0 8px 28px rgba(15,23,42,.045); }
.row-card { margin-inline:16px; }
.empty-state { min-height:260px;padding:44px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center; }
.empty-state h3 { font-size:20px; }
.empty-state p { max-width:280px;text-align:center;line-height:1.8; }
.bottom-nav { padding-bottom:calc(8px + env(safe-area-inset-bottom)) !important; background:rgba(255,255,255,.96); }
.nav-item { min-width:58px;min-height:58px;border-radius:16px; }
.nav-item.active { background:var(--primary-bg); }
.nav-item.active::before { content:'';position:absolute;top:-7px;width:30px;height:3px;border-radius:99px;background:var(--primary); }
.fab { bottom:calc(94px + env(safe-area-inset-bottom)); }
.modal-overlay { overflow-y:auto !important;align-items:flex-end;padding-top:64px;-webkit-overflow-scrolling:touch; }
.modal-content { max-height:calc(100dvh - 72px) !important;overflow:hidden;display:flex;flex-direction:column; }
.modal-body { overflow-y:auto !important;-webkit-overflow-scrolling:touch;padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
bdi { unicode-bidi:isolate; }
@media (max-width:380px){ .nav-item{padding-inline:7px;min-width:52px}.header-user small{display:none}.page-head h1{font-size:27px}.balance-main b{font-size:42px} }
@media (min-width:720px){ #app{max-width:720px;margin-inline:auto}.bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(720px,100%)}.fab{right:calc((100vw - min(720px,100vw))/2 + 18px)} }
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important} }

/* ═══ 17.3.0 VIEWPORT & NAVIGATION FOUNDATION ═══
   Telegram Android is most reliable when the app owns one explicit
   scroll container instead of delegating scrolling to body. */
html,
body {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body {
  position: fixed !important;
  inset: 0 !important;
  touch-action: manipulation;
}
#app {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100dvh !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.app-header {
  flex: 0 0 auto;
  position: relative;
  z-index: 210;
}
.app-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: calc(118px + env(safe-area-inset-bottom)) !important;
}
.app-main::-webkit-scrollbar { display: none; }
.command-center,
.market-page,
.orders-page,
.wallet-page,
.notifications-page,
.profile-page,
.channels-page,
.campaigns-page,
.support-page,
.admin-page {
  min-height: 100% !important;
  height: auto !important;
  overflow: visible !important;
  padding-bottom: 32px !important;
}
.bottom-nav {
  flex: 0 0 auto;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
}
.fab { position: absolute !important; }
.modal-overlay {
  position: absolute !important;
  inset: 0 !important;
}
@media (min-width:720px) {
  #app { max-width:720px; margin-inline:auto; position:relative; }
  .bottom-nav { width:100% !important; transform:none !important; }
}

/* Telegram exposes a stable viewport height that excludes its native chrome. */
#app {
  height: var(--ra-viewport-height, 100dvh) !important;
  max-height: var(--ra-viewport-height, 100dvh) !important;
}

/* ═══ 17.4.0 POLISH & COMPLETION — authoritative final layer ═══ */
:root { --ra-nav-height: 82px; --ra-header-height: 72px; }
html, body {
  width:100% !important;
  height:100% !important;
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
body {
  position:fixed !important;
  inset:0 !important;
  touch-action:none !important;
  background:linear-gradient(180deg,#fbfdff 0%,#f2f7ff 100%) !important;
}
#app {
  display:grid !important;
  grid-template-rows:auto minmax(0,1fr) auto !important;
  width:100% !important;
  height:var(--ra-viewport-height,100dvh) !important;
  min-height:0 !important;
  max-height:var(--ra-viewport-height,100dvh) !important;
  overflow:hidden !important;
  padding:0 !important;
  position:relative !important;
}
.app-header {
  grid-row:1;
  position:relative !important;
  min-height:var(--ra-header-height);
  z-index:30;
  background:rgba(255,255,255,.94) !important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(148,163,184,.18);
}
.app-main {
  grid-row:2;
  min-width:0 !important;
  min-height:0 !important;
  height:100% !important;
  overflow-x:hidden !important;
  overflow-y:scroll !important;
  -webkit-overflow-scrolling:touch !important;
  overscroll-behavior-y:contain !important;
  touch-action:pan-y pinch-zoom !important;
  scroll-behavior:auto !important;
  padding-bottom:calc(28px + env(safe-area-inset-bottom)) !important;
  contain:layout style;
}
.app-main.is-modal-open { overscroll-behavior:none !important; }
.bottom-nav {
  grid-row:3;
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  min-height:var(--ra-nav-height);
  transform:none !important;
  z-index:40;
  background:rgba(255,255,255,.97) !important;
  border-top:1px solid rgba(148,163,184,.20) !important;
  box-shadow:0 -10px 28px rgba(15,23,42,.06) !important;
  padding-bottom:calc(8px + env(safe-area-inset-bottom)) !important;
}
.fab {
  position:absolute !important;
  right:18px !important;
  bottom:calc(var(--ra-nav-height) + 18px + env(safe-area-inset-bottom)) !important;
  z-index:45 !important;
}
.modal-overlay {
  position:absolute !important;
  inset:0 !important;
  z-index:1000 !important;
  overflow:hidden !important;
  touch-action:none !important;
}
.modal-content {
  width:100% !important;
  max-height:calc(var(--ra-viewport-height,100dvh) - 42px) !important;
  display:flex !important;
  flex-direction:column !important;
}
.modal-body {
  min-height:0 !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
  touch-action:pan-y !important;
}
.command-center,.market-page,.orders-page,.wallet-page,.notifications-page,.profile-page,.channels-page,.campaigns-page,.support-page,.admin-page {
  min-height:max-content !important;
  height:auto !important;
  padding-bottom:24px !important;
}
.page-head { padding-top:28px !important; }
.readiness-card {
  margin:0 16px 16px;
  display:grid;
  grid-template-columns:88px 1fr;
  gap:16px;
  align-items:center;
  padding:16px;
  border-radius:24px;
  background:linear-gradient(135deg,#ffffff 0%,#f2f6ff 100%);
  border:1px solid rgba(76,111,255,.12);
  box-shadow:0 12px 30px rgba(43,69,143,.08);
}
.readiness-ring {
  --progress:0;
  width:82px;height:82px;border-radius:50%;
  display:grid;place-content:center;text-align:center;
  background:radial-gradient(circle at center,#fff 58%,transparent 59%),conic-gradient(var(--primary) calc(var(--progress)*1%),#e7edff 0);
  box-shadow:inset 0 0 0 1px rgba(76,111,255,.08);
}
.readiness-ring b{font-size:20px;color:var(--primary);line-height:1}.readiness-ring small{font-size:9px;color:var(--text-muted);margin-top:5px}
.readiness-copy small{color:var(--primary);font-weight:800}.readiness-copy h3{font-size:17px;margin:4px 0}.readiness-copy p{font-size:12px;line-height:1.7;color:var(--text-secondary)}
.market-advanced {
  margin:0 16px 12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  padding:12px;
  border-radius:20px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.market-advanced select,.market-advanced input {
  width:100%;min-width:0;height:44px;border:1px solid var(--border);border-radius:13px;background:var(--surface-soft);padding:0 11px;font:inherit;color:var(--text-primary);outline:none;
}
.market-advanced select:focus,.market-advanced input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(76,111,255,.10)}
.results-summary{margin:0 18px 10px;color:var(--text-muted);font-size:12px;font-weight:600}
.icon-btn.is-favorite{color:#ef476f;background:#fff0f4;border-color:#ffd4df}.icon-btn.is-favorite svg{fill:currentColor}
.btn-ghost{background:var(--surface-soft);color:var(--text-secondary);border:1px solid var(--border)}
.row-card,.market-channel,.qa-card,.section-card{transform:translateZ(0)}
button,input,select,textarea{touch-action:manipulation}
@media(max-width:390px){.readiness-card{grid-template-columns:74px 1fr}.readiness-ring{width:70px;height:70px}.market-advanced{grid-template-columns:1fr}}
@media(min-width:720px){#app{max-width:720px;margin-inline:auto}.bottom-nav{width:100%!important}.fab{right:18px!important}}

/* ReachAds 17.6.0 launch polish */
:root{--ra-header-height:68px;--ra-nav-height:78px;--content-max:720px;--primary:#4f6df5;--primary-2:#7455ee;--ink:#101828;--muted:#667085;--line:#e7ecf3;--shadow:0 10px 30px rgba(16,24,40,.06)}
html,body{height:100%!important;overflow:hidden!important;background:#f5f7fb!important}body{color:var(--ink)}
#app{height:var(--ra-viewport-height,100dvh)!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:linear-gradient(180deg,#fbfcff,#f1f5fb)}
.app-header{position:relative!important;inset:auto!important;flex:0 0 var(--ra-header-height);height:var(--ra-header-height)!important;display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;padding:8px 14px!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;z-index:20}
.header-brand-wrap{justify-self:start;display:flex;align-items:center;gap:8px;direction:ltr}.header-brand-wrap>span:last-child{display:flex;flex-direction:column;line-height:1.05}.header-brand-wrap b{font-size:14px;color:var(--primary)}.header-brand-wrap small{font-size:9px;color:#98a2b3}.header-brand-mark{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:white;font-weight:900}
.header-profile{justify-self:end;display:flex!important;align-items:center;gap:8px!important;background:none!important;border:0!important;padding:0!important;min-width:0}.header-user{text-align:right;min-width:0}.header-user b{display:block;font-size:13px;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-user small{display:block;color:#98a2b3;font-size:10px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-avatar{width:39px!important;height:39px!important;border-radius:13px!important;border:1px solid var(--line);overflow:hidden;display:grid;place-items:center;background:#eef2ff}.header-avatar img{width:100%;height:100%;object-fit:cover}.header-avatar svg{width:20px}.header-balance{justify-self:center;font-size:11px;font-weight:800;padding:7px 9px;border-radius:10px;background:#f0f4ff;color:var(--primary);white-space:nowrap}
.app-main{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scrollbar-width:none;padding-bottom:28px!important}.app-main::-webkit-scrollbar{display:none}
.bottom-nav{position:relative!important;inset:auto!important;flex:0 0 calc(var(--ra-nav-height) + env(safe-area-inset-bottom));height:calc(var(--ra-nav-height) + env(safe-area-inset-bottom))!important;padding:6px 10px calc(6px + env(safe-area-inset-bottom))!important;border-top:1px solid var(--line)!important;background:rgba(255,255,255,.98)!important;box-shadow:0 -8px 24px rgba(16,24,40,.04)!important;z-index:25}.nav-item{border-radius:16px!important;min-width:0}.nav-item.active{background:#edf1ff!important}.nav-item svg{width:23px!important;height:23px!important}.nav-item span{font-size:10px!important}
.fab{position:fixed!important;right:18px!important;bottom:calc(var(--ra-nav-height) + 16px + env(safe-area-inset-bottom))!important;width:54px!important;height:54px!important;border-radius:18px!important;background:linear-gradient(135deg,#12b886,#02a66a)!important;box-shadow:0 12px 28px rgba(2,166,106,.24)!important;z-index:30}.fab svg{width:23px!important}
.command-center,.market-page,.orders-page,.wallet-page,.notifications-page,.profile-page,.channels-page,.campaigns-page,.support-page,.admin-page{width:min(100%,var(--content-max));margin:0 auto;padding:0 14px 34px!important}.page-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px;padding:22px 2px 16px!important}.page-head h1{font-size:28px!important;line-height:1.2!important}.page-head p{font-size:13px!important;color:var(--muted)!important;line-height:1.55!important;margin-top:5px}.page-head>div{min-width:0}
.home-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.home-action{display:flex;align-items:center;gap:10px;text-align:right;border:0;border-radius:18px;padding:14px;color:#fff;box-shadow:var(--shadow)}.home-action svg{width:25px;flex:none}.home-action span{display:flex;flex-direction:column}.home-action b{font-size:15px}.home-action small{font-size:10px;opacity:.88;margin-top:3px}.home-action.primary{background:linear-gradient(135deg,var(--primary),var(--primary-2))}.home-action.publisher{background:linear-gradient(135deg,#0ea879,#16c79a)}
.readiness-card.compact{min-height:0!important;padding:15px!important;margin:0 0 12px!important;display:flex!important;align-items:center!important;gap:14px!important}.readiness-card.compact .readiness-ring{width:72px!important;height:72px!important;flex:none}.readiness-card.compact .readiness-ring b{font-size:19px!important}.readiness-card.compact .readiness-copy h3{font-size:16px!important;margin:3px 0}.readiness-card.compact .readiness-copy p{font-size:11px!important}.balance-card.compact-balance{padding:18px!important;border-radius:22px!important;margin-bottom:12px!important;min-height:0!important}.compact-balance .balance-main{display:flex;align-items:baseline;gap:8px}.compact-balance .balance-main b{font-size:31px!important}.compact-balance .balance-main em{font-size:17px;font-style:normal}.balance-mini{display:flex;gap:8px;margin:14px 0}.balance-mini span{flex:1;padding:10px;border-radius:13px;background:rgba(255,255,255,.13);font-size:10px}.balance-mini b{display:block;margin-top:3px;font-size:13px}.balance-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:9px}.btn-soft{background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.25)!important;color:white!important}
.quick-actions.compact-grid{grid-template-columns:1fr 1fr!important;gap:10px!important;margin-bottom:14px!important}.compact-grid .qa-card{min-height:88px!important;padding:12px!important;border-radius:18px!important}.compact-grid .qa-icon{width:45px!important;height:45px!important;border-radius:14px!important}.compact-grid .qa-card b{font-size:14px!important}.compact-grid .qa-card span{font-size:10px!important}.section-card{border-radius:20px!important;padding:16px!important;margin:12px 0!important;min-height:0!important}.trust-strip{display:flex;gap:11px;padding:14px;border-radius:18px;background:#eef4ff;color:#344054;margin-top:12px}.trust-strip>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#fff;color:var(--primary)}.trust-strip svg{width:20px}.trust-strip b{display:block;font-size:13px}.trust-strip small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:3px}
.filter-trigger,.compact-action{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:8px 10px;font:inherit;font-size:11px;color:#475467}.filter-trigger svg,.compact-action svg{width:16px}.market-advanced{overflow:hidden;max-height:500px;opacity:1;transition:.22s ease;margin:10px 0!important;padding:14px!important;border-radius:18px!important}.market-advanced.collapsed{max-height:0!important;opacity:0!important;padding-top:0!important;padding-bottom:0!important;margin:0!important;border-width:0!important}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.market-channel{display:block!important;padding:0!important;border:1px solid var(--line)!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--shadow)!important;margin-bottom:11px!important;overflow:hidden}.channel-main{width:100%;display:flex;gap:11px;align-items:center;text-align:right;border:0;background:transparent;padding:14px}.channel-avatar{width:55px!important;height:55px!important;border-radius:17px!important;flex:none}.channel-avatar.large{width:74px!important;height:74px!important}.channel-title-line{display:flex;align-items:center;gap:5px}.channel-title-line h3{font-size:15px!important}.verified-mark{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--primary);color:#fff}.verified-mark svg{width:12px}.channel-kpis{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}.channel-kpis span{font-size:9px;color:#667085}.channel-footer{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-top:1px solid #f0f2f5;background:#fbfcff}.channel-footer small{display:block;font-size:9px;color:#98a2b3}.channel-footer b{font-size:15px;color:var(--primary)}.channel-actions{display:flex;align-items:center;gap:7px}
.scroll-tabs{overflow-x:auto!important;justify-content:flex-start!important;scrollbar-width:none}.scroll-tabs .tab{white-space:nowrap!important;flex:0 0 auto!important}.empty-state{min-height:190px!important;padding:28px 16px!important;border-radius:20px!important}.empty-icon{width:64px!important;height:64px!important}.empty-state h3{font-size:18px!important}.empty-state p{font-size:11px!important;line-height:1.65!important}.empty-cta{margin-top:12px!important}
.wallet-overview{border-radius:24px;padding:20px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:white;box-shadow:0 16px 36px rgba(79,109,245,.2)}.wallet-total small,.wallet-total span{display:block;opacity:.8;font-size:11px}.wallet-total b{display:block;font-size:34px;margin:5px 0}.wallet-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.wallet-breakdown>div{padding:12px;background:rgba(255,255,255,.13);border-radius:14px}.wallet-breakdown small{display:block;font-size:9px}.wallet-breakdown b{font-size:13px}.wallet-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:9px;margin:11px 0!important}.wallet-note{display:flex;gap:9px;padding:12px;border-radius:15px;background:#eef4ff;color:#475467;font-size:10px}.wallet-note svg{width:18px;flex:none;color:var(--primary)}
.notice-types{display:flex;gap:7px;overflow-x:auto;padding-bottom:12px}.notice-types span{flex:none;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:10px;color:#667085}.profile-card.refined{display:flex!important;align-items:center!important;text-align:right!important;gap:14px!important;padding:18px!important}.refined .profile-avatar{width:82px!important;height:82px!important;flex:none}.profile-identity h3{font-size:20px!important}.account-role{display:inline-block;margin-top:8px;padding:5px 9px;border-radius:999px;background:#edf1ff;color:var(--primary);font-size:10px;font-weight:700}.profile-stats{gap:8px!important}.profile-stats div{background:#fff!important;border:1px solid var(--line);border-radius:15px;padding:12px 8px!important}.profile-stats b{font-size:14px!important}.profile-stats small{font-size:9px!important}.profile-actions .list-item{display:flex!important;align-items:center!important;gap:12px!important;padding:14px!important}.profile-actions .list-item>span{flex:1;text-align:right}.profile-actions .list-item b{display:block;font-size:13px}.profile-actions .list-item small{display:block;font-size:9px;color:#98a2b3;margin-top:3px}.profile-actions .list-item svg{width:21px!important;flex:none}
.detail-hero{text-align:center}.detail-hero .channel-avatar{margin:0 auto 10px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.detail-grid>div,.setting-row{padding:12px;border-radius:14px;background:#f7f9fc}.detail-grid small,.setting-row small{display:block;font-size:9px;color:#98a2b3}.detail-description,.legal-copy p{font-size:11px;line-height:1.8;color:#667085}.settings-list{display:grid;gap:8px}.setting-row{display:flex;justify-content:space-between;align-items:center}.ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
.modal-content{max-height:calc(var(--ra-viewport-height,100dvh) - 36px)!important}.modal-body{overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding-bottom:calc(22px + env(safe-area-inset-bottom))!important}
@media(max-width:390px){.header-brand-wrap small{display:none}.header-user b{max-width:85px}.header-balance{font-size:9px}.page-head h1{font-size:25px!important}.home-primary-actions{grid-template-columns:1fr}.filter-grid{grid-template-columns:1fr}.command-center,.market-page,.orders-page,.wallet-page,.notifications-page,.profile-page,.channels-page,.campaigns-page,.support-page,.admin-page{padding-left:10px!important;padding-right:10px!important}}
@media(prefers-color-scheme:dark){body,#app{background:#111827!important;color:#f8fafc}.app-header,.bottom-nav{background:rgba(17,24,39,.98)!important;border-color:#273449!important}.section-card,.qa-card,.market-channel,.profile-stats div,.list-item,.row-card{background:#182234!important;border-color:#29364a!important;color:#f8fafc!important}.channel-footer,.setting-row,.detail-grid>div{background:#141e2d!important}.page-head p,.detail-description,.legal-copy p{color:#94a3b8!important}}


/* ═══ ReachAds 17.6 Release Candidate hardening ═══ */
.app-header{height:68px;min-height:68px;padding:8px 16px;gap:10px;background:color-mix(in srgb,var(--surface) 96%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.header-brand-wrap{min-width:0;gap:9px}.header-brand-wrap>span:last-child{display:flex;flex-direction:column;line-height:1.1}.header-brand-wrap small{font-size:10px}.header-brand-mark{width:34px;height:34px;border-radius:11px;font-size:17px}
.header-tools{display:flex;align-items:center;gap:7px;min-width:0}.header-support{width:38px;height:38px;border:1px solid var(--border);background:var(--surface);border-radius:12px;color:var(--primary);display:grid;place-items:center}.header-support svg{width:19px;height:19px}.header-balance{white-space:nowrap;padding:7px 10px;font-size:12px}.header-profile{max-width:150px;min-width:42px}.header-user{max-width:92px}.header-user b,.header-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-avatar{width:40px;height:40px;border-radius:13px}
.app-main{padding-top:14px;padding-bottom:calc(104px + env(safe-area-inset-bottom));scroll-padding-bottom:130px}.page-head{margin-bottom:18px;align-items:flex-start}.page-head h1{font-size:clamp(28px,7vw,38px);line-height:1.15}.page-head p{font-size:14px;line-height:1.7;margin-top:5px}.command-center,.market-page,.orders-page,.wallet-page,.notifications-page,.profile-page,.support-page,.channels-page,.campaigns-page,.admin-page{padding-inline:16px}
.bottom-nav{height:78px;padding:7px 7px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(30,50,90,.08)}.nav-item{min-width:0;border-radius:18px;gap:2px}.nav-item svg{width:23px;height:23px}.nav-item span{font-size:11px}.nav-item.active{background:var(--primary-bg)}
.fab{display:none!important}.readiness-card{width:100%;border:1px solid var(--border);text-align:inherit;font:inherit;cursor:pointer}.readiness-card:active{transform:scale(.99)}
.section-card{min-height:0}.empty-state{min-height:210px;padding:28px 18px}.empty-state p{max-width:310px}.empty-cta{margin-top:14px}.row-card{min-height:82px}.row-card>div{min-width:0}.row-card b,.row-card small{overflow-wrap:anywhere}
.notice-types{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}.notice-types button{border:1px solid var(--border);background:var(--surface);padding:9px 15px;border-radius:999px;white-space:nowrap;color:var(--text-muted);font:inherit}.notice-types button.active{background:var(--primary);border-color:var(--primary);color:#fff}
.channel-connect-guide,.guide-steps{background:var(--primary-bg);border:1px solid color-mix(in srgb,var(--primary) 22%,var(--border));border-radius:18px;padding:15px;margin-bottom:16px}.channel-connect-guide ol{margin:10px 0 0;padding-inline-start:22px;color:var(--text-muted);line-height:1.9}.guide-steps{display:grid;gap:12px}.guide-steps>div{background:var(--surface);border-radius:14px;padding:13px}.guide-steps p{margin:5px 0 0;color:var(--text-muted);line-height:1.7}
.wizard-steps{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:13px}.wizard-steps i{width:27px;height:27px;border-radius:50%;border:1px solid var(--border);font-style:normal;display:grid;place-items:center;font-size:12px}.wizard-steps i.done{background:var(--primary);color:#fff;border-color:var(--primary)}.wizard-steps span{height:2px;width:36px;background:var(--border)}
.ad-preview{overflow:hidden;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}.ad-preview>img{width:100%;max-height:240px;object-fit:cover;display:block}.ad-preview-body{padding:18px}.ad-preview-body>b{font-size:18px}.ad-preview-body p{line-height:1.75;white-space:normal}.preview-link{display:block;color:var(--primary);font-size:12px;overflow:hidden;text-overflow:ellipsis;margin:10px 0}.preview-overlay{z-index:1200}.preview-modal{max-height:85dvh}
.compact-mode .app-main{padding-top:8px}.compact-mode .page-head{margin-bottom:12px}.compact-mode .section-card{padding:14px}.compact-mode .quick-actions{gap:8px}.compact-mode .qa-card{min-height:84px}.compact-mode .row-card{min-height:70px}
@media(max-width:390px){.header-brand-wrap small,.header-user{display:none}.header-profile{max-width:44px}.header-balance{font-size:11px;padding:6px 8px}.app-header{padding-inline:11px}.command-center,.market-page,.orders-page,.wallet-page,.notifications-page,.profile-page,.support-page,.channels-page,.campaigns-page,.admin-page{padding-inline:12px}.home-primary-actions{grid-template-columns:1fr}.wallet-actions,.form-two{grid-template-columns:1fr}.page-head h1{font-size:29px}}


/* ReachAds 19 — Grand Polish Design System */
:root{
  --font:'Alexandria','Noto Sans Arabic',Tahoma,Arial,sans-serif;
  --ink:#101426;--ink-2:#526077;--muted:#8792a6;
  --canvas:#f4f6fb;--surface:#fff;--surface-2:#f7f8fc;--line:#e7eaf2;
  --primary:#6057e8;--primary-2:#7869f5;--primary-3:#4d73f8;
  --primary-soft:#eeedff;--cyan:#0bbfd6;--success:#13aa82;--warning:#e7a321;--danger:#e25365;
  --grad:linear-gradient(135deg,#5d55e5 0%,#6d62ed 50%,#4779f6 100%);
  --grad-deep:radial-gradient(circle at 8% 0%,rgba(80,205,230,.2),transparent 32%),linear-gradient(135deg,#3530a9 0%,#554bc9 48%,#3972df 100%);
  --shadow-xs:0 3px 10px rgba(24,31,55,.045);
  --shadow-sm:0 9px 24px rgba(26,33,64,.075);
  --shadow-md:0 18px 44px rgba(36,43,79,.12);
  --radius-sm:14px;--radius:20px;--radius-lg:28px;
}
*{font-family:var(--font)!important;-webkit-tap-highlight-color:transparent}
html,body{font-size:14px;background:radial-gradient(circle at 95% -5%,rgba(96,87,232,.11),transparent 30%),linear-gradient(180deg,#f8f9fd 0%,#f2f4fa 100%);color:var(--ink)}
body{font-weight:400}
button{cursor:pointer}
.app-header{min-height:68px;padding:9px 14px;background:rgba(255,255,255,.88);backdrop-filter:blur(20px) saturate(150%);border-bottom:1px solid rgba(222,226,237,.8);box-shadow:0 1px 0 rgba(17,24,39,.02)}
.header-brand-wrap{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--ink);text-align:right;padding:0}
.header-brand-wrap>span:last-child{display:flex;flex-direction:column;line-height:1.15}.header-brand-wrap b{font-size:16px;font-weight:800;letter-spacing:-.35px}.header-brand-wrap small{font-size:8.5px;color:var(--muted);margin-top:3px;font-weight:600}
.header-brand-mark{width:41px!important;height:41px!important;border-radius:13px!important;overflow:hidden;background:#fff!important;border:1px solid var(--line);box-shadow:var(--shadow-xs)!important}.header-brand-mark img{width:100%;height:100%;object-fit:cover}
.header-tools{gap:7px}.header-support{width:39px!important;height:39px!important;border-radius:13px!important;background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--ink-2)!important}.header-support svg{width:19px;height:19px}
.header-balance{height:39px;min-width:65px;padding:0 11px;border-radius:13px;border:1px solid #dedcfb;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;gap:5px}.header-balance span{font-size:13px}.header-balance b{font-size:12px;font-weight:800}
.header-profile{gap:7px}.header-avatar{width:39px!important;height:39px!important;border-radius:13px!important;border:2px solid #fff;box-shadow:0 0 0 1px var(--line)}.header-user b{font-size:12px;font-weight:700}.header-user small{font-size:8.5px;color:var(--muted)}
.app-main{scrollbar-width:none;padding-bottom:calc(102px + env(safe-area-inset-bottom))}.app-main::-webkit-scrollbar{display:none}
.page-head{padding:20px 17px 12px;align-items:end}.page-kicker{display:flex;align-items:center;gap:6px;color:var(--primary);font-size:8px;font-weight:800;letter-spacing:1.5px;margin-bottom:5px}.page-kicker i{width:15px;height:2px;border-radius:2px;background:var(--grad)}.page-head h1{font-size:25px;line-height:1.35;font-weight:800;letter-spacing:-.65px;color:var(--ink)}.page-head p{font-size:11.5px;line-height:1.75;color:var(--ink-2);margin-top:4px;max-width:290px}
.home-value-strip{margin:0 17px 12px;display:flex;align-items:center;gap:8px;overflow:auto;scrollbar-width:none}.home-value-strip span{white-space:nowrap;font-size:9.5px;font-weight:650;color:var(--ink-2);background:rgba(255,255,255,.72);border:1px solid var(--line);padding:7px 10px;border-radius:999px}.home-value-strip span:first-child{color:var(--success)}.live-dot{display:inline-block;width:6px;height:6px;background:var(--success);border-radius:50%;margin-left:4px;box-shadow:0 0 0 4px rgba(19,170,130,.11)}
.home-primary-actions{padding:0 17px 12px;gap:10px}.home-action{position:relative;min-height:112px;border-radius:24px;padding:18px 17px;overflow:hidden;border:1px solid rgba(255,255,255,.18);box-shadow:0 15px 32px rgba(70,67,180,.17);isolation:isolate}.home-action:after{content:"";position:absolute;left:-22px;bottom:-35px;width:100px;height:100px;border-radius:50%;background:rgba(255,255,255,.13);filter:blur(1px);z-index:-1}.home-action.primary{background:var(--grad-deep)}.home-action.publisher{background:linear-gradient(135deg,#078b7a,#0ab997)}.home-action b{font-size:18px;font-weight:800;letter-spacing:-.3px}.home-action small{font-size:10px;line-height:1.55;opacity:.86}.home-action svg{width:31px;height:31px;stroke-width:1.8}
.readiness-card{margin:0 17px 13px;padding:15px 16px;border-radius:21px;background:rgba(255,255,255,.82);border:1px solid var(--line);box-shadow:var(--shadow-xs);text-align:right}.readiness-ring{width:70px!important;height:70px!important}.readiness-ring b{font-size:17px}.readiness-ring small{font-size:8px}.readiness-copy small{font-size:9px;color:var(--primary);font-weight:700}.readiness-copy h3{font-size:15px!important;font-weight:800;margin:2px 0}.readiness-copy p{font-size:10px!important;color:var(--ink-2)}
.balance-card{margin:0 17px 13px;padding:19px;border-radius:24px;background:var(--grad-deep);box-shadow:0 18px 40px rgba(54,58,160,.20);border:1px solid rgba(255,255,255,.18)}.balance-main small{font-size:10px;opacity:.82}.balance-main b{font-size:29px!important;font-weight:800}.balance-mini{gap:7px}.balance-mini>span{padding:9px 10px!important;border-radius:14px!important;font-size:9px}.balance-mini b{font-size:10px}.balance-actions{gap:8px}.balance-actions .btn{min-height:42px;border-radius:13px;font-size:10px}
.quick-actions{padding:0 17px;gap:9px}.qa-card{min-height:91px;border-radius:19px;background:rgba(255,255,255,.86);border:1px solid var(--line);box-shadow:var(--shadow-xs);padding:12px;transition:transform .15s ease,box-shadow .15s ease}.qa-card:active{transform:scale(.975)}.qa-card b{font-size:13px;font-weight:750}.qa-card span{font-size:9px;color:var(--muted)}.qa-icon{width:45px!important;height:45px!important;border-radius:14px!important}.qa-icon svg{width:22px;height:22px}
.section-card{margin:14px 17px;border-radius:22px;background:rgba(255,255,255,.9);border:1px solid var(--line);box-shadow:var(--shadow-xs);padding:16px}.section-header{margin-bottom:10px}.section-header h2{font-size:15px;font-weight:800}.section-link{font-size:9.5px;font-weight:700;color:var(--primary)}.trust-strip,.wallet-note{margin:13px 17px;border-radius:18px;padding:13px 14px;background:#f1f5ff!important;color:#415173!important;border:1px solid #dfe7fb!important}.trust-strip b{font-size:11px}.trust-strip small{font-size:9px;line-height:1.55}
.filter-trigger,.compact-action{height:39px;padding:0 12px;border-radius:13px;border:1px solid var(--line);background:#fff;color:var(--ink-2);font-size:9.5px;font-weight:700}.filter-trigger svg,.compact-action svg{width:17px;height:17px}
.market-search{margin:0 17px 10px;height:54px;border-radius:17px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-xs)}.market-search input{font-size:12px;padding:0 15px}.market-search button{width:46px!important;height:46px!important;border-radius:14px!important;margin:3px!important;background:var(--grad)}
.filter-tabs,.notice-types,.scroll-tabs{padding:2px 17px 10px;gap:7px}.tab,.notice-types button{min-height:39px;padding:8px 14px;border-radius:13px;font-size:9.5px;font-weight:700;background:#fff;border:1px solid var(--line);color:var(--ink-2)}.tab.active,.notice-types button.active{background:var(--grad);color:#fff;border-color:transparent;box-shadow:0 7px 15px rgba(96,87,232,.18)}
.market-advanced{margin:0 17px 12px;border-radius:19px;padding:13px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-xs)}.filter-grid{gap:8px}.filter-grid input,.filter-grid select{height:43px;border-radius:12px;background:var(--surface-2);font-size:10px}.filter-actions .btn{min-height:39px}
.results-summary{margin:0 18px 9px;font-size:9.5px;color:var(--muted)}.market-channel{margin:0 17px 11px;border-radius:21px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-xs)}.channel-main{padding:14px}.channel-avatar{width:53px!important;height:53px!important;border-radius:16px!important}.channel-title-line b{font-size:14px;font-weight:800}.channel-title-line small{font-size:9px}.channel-kpis{gap:5px}.channel-kpis span{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:5px 7px;font-size:8.5px}.channel-footer{padding:11px 14px;background:#fafbfe;border-top:1px solid var(--line)}
.wallet-overview{margin:0 17px 12px;padding:20px;border-radius:24px;background:var(--grad-deep);border:1px solid rgba(255,255,255,.17);box-shadow:0 18px 42px rgba(52,57,155,.2)}.wallet-total small{font-size:10px}.wallet-total b{font-size:31px!important;font-weight:800}.wallet-total span{font-size:8px}.wallet-breakdown{gap:7px}.wallet-breakdown>div{border-radius:14px!important;padding:10px!important}.wallet-breakdown small{font-size:8px}.wallet-breakdown b{font-size:10px}.wallet-actions{padding:0 17px;gap:8px}.wallet-actions .btn{min-height:44px;font-size:10px}
.btn{min-height:44px;border-radius:13px;font-size:10.5px;font-weight:750;transition:transform .15s ease,filter .15s ease}.btn:active{transform:scale(.98)}.btn-primary{background:var(--grad);box-shadow:0 9px 18px rgba(96,87,232,.17)}.btn-outline{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn-soft,.btn-ghost{background:var(--surface-2);color:var(--ink-2);border:1px solid var(--line)}
.empty-state{min-height:235px;padding:28px 18px!important}.empty-icon{width:74px!important;height:74px!important;border-radius:23px!important;background:linear-gradient(145deg,#f1efff,#e8efff)!important;box-shadow:inset 0 0 0 1px rgba(96,87,232,.08)}.empty-icon svg{width:32px;height:32px}.empty-state h3{font-size:17px!important;font-weight:800!important}.empty-state p{font-size:10px!important;line-height:1.7;max-width:260px}.empty-cta{margin-top:13px!important}
.row-card,.list-item,.setting-row{border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:none}.row-card{padding:13px}.row-card b,.list-item b{font-size:11px;font-weight:750}.row-card small,.list-item small{font-size:8.5px}.row-icon{width:39px;height:39px;border-radius:12px;background:var(--primary-soft)}
.profile-card{margin:0 17px 12px;border-radius:23px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-xs)}.profile-avatar{width:78px!important;height:78px!important}.profile-identity h3{font-size:18px;font-weight:800}.profile-identity small{font-size:9px}.account-role{font-size:8px}.profile-stats{margin:0 17px 12px;gap:8px}.profile-stats>div{border-radius:16px;background:#fff;border:1px solid var(--line);padding:12px}.profile-stats b{font-size:13px}.profile-stats small{font-size:8px}.profile-actions{padding:0 17px;gap:8px}.list-item{min-height:64px;padding:11px 13px}.list-item>svg{width:20px;height:20px;color:var(--primary)}
.modal-overlay{background:rgba(10,14,29,.58);backdrop-filter:blur(10px)}.modal-content{border-radius:25px 25px 0 0!important;background:#fff;border:1px solid var(--line);box-shadow:0 -24px 65px rgba(8,12,25,.24);max-height:min(88dvh,760px)}.modal-header{padding:15px 17px}.modal-header h3{font-size:16px;font-weight:800}.modal-body{padding:0 17px 20px}.field label{font-size:9px;font-weight:700}.field input,.field select,.field textarea{border-radius:13px!important;background:var(--surface-2)!important;border:1px solid var(--line)!important;min-height:45px;font-size:10.5px;color:var(--ink)!important}.field textarea{min-height:92px}.payment-note{border-radius:14px;font-size:9px;line-height:1.65}.recharge-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.recharge-presets button{height:44px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2);border-radius:13px;font:700 10px var(--font)}.recharge-presets button.active{background:var(--grad);color:#fff;border-color:transparent;box-shadow:0 8px 16px rgba(96,87,232,.18)}
.bottom-nav{height:76px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);backdrop-filter:blur(22px) saturate(150%);border-top:1px solid rgba(222,226,237,.85);box-shadow:0 -12px 30px rgba(31,38,67,.055)}.nav-item{height:57px;border-radius:17px;color:#8a94a7}.nav-item.active{background:var(--primary-soft);color:var(--primary)}.nav-item svg{width:22px;height:22px;stroke-width:1.85}.nav-item span{font-size:8px;font-weight:700}.nav-indicator{display:none}.nav-badge{font-size:7px}
.skeleton-card{border-radius:16px!important;background:#fff!important;border:1px solid var(--line)!important}.skeleton-line{background:linear-gradient(90deg,#f0f2f7,#fafbfc,#f0f2f7)!important;background-size:200% 100%!important}
.toast{border-radius:15px!important;font-size:10px!important;box-shadow:var(--shadow-md)!important}
.ltr{font-family:Inter,Arial,sans-serif!important;unicode-bidi:isolate}
@media(max-width:380px){.header-user,.header-brand-wrap>span:last-child{display:none}.header-brand-mark{width:39px!important;height:39px!important}.page-head h1{font-size:23px}.home-action{min-height:102px;padding:15px}.home-action b{font-size:16px}.quick-actions{grid-template-columns:1fr 1fr}.qa-card{min-height:86px}.recharge-presets{grid-template-columns:repeat(2,1fr)}}
@media(prefers-color-scheme:dark){:root{--ink:#f5f7ff;--ink-2:#c1c9d8;--muted:#8793aa;--canvas:#090e1b;--surface:#121a2b;--surface-2:#172238;--line:#27344d;--primary-soft:#20284b}.app-header,.bottom-nav{background:rgba(9,14,27,.91)!important;border-color:var(--line)!important}.header-brand-wrap{color:var(--ink)}.header-brand-mark{border-color:var(--line)}.header-balance{background:#20284b;border-color:#303b68}.header-support{background:var(--surface-2)!important;border-color:var(--line)!important}.section-card,.qa-card,.market-channel,.profile-card,.profile-stats>div,.list-item,.row-card,.market-advanced,.market-search,.tab,.notice-types button,.btn-outline,.modal-content,.skeleton-card{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}.page-head h1,.section-header h2,.row-card b,.list-item b,.empty-state h3,.channel-title-line b{color:var(--ink)!important}.page-head p,.row-card small,.list-item small,.empty-state p,.results-summary{color:var(--ink-2)!important}.channel-footer,.field input,.field select,.field textarea,.recharge-presets button{background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--ink)!important}.wallet-note,.trust-strip{background:#172747!important;color:#d7e2ff!important;border-color:#29406d!important}.tab.active,.notice-types button.active,.recharge-presets button.active{background:var(--grad)!important;color:#fff!important}.nav-item.active{background:#20284b!important}.empty-icon{background:#20284b!important}.home-value-strip span{background:rgba(18,26,43,.86);border-color:var(--line);color:var(--ink-2)}.readiness-card{background:rgba(18,26,43,.9);border-color:var(--line)}body{background:radial-gradient(circle at 95% -5%,rgba(96,87,232,.18),transparent 30%),linear-gradient(180deg,#090e1b,#0c1322)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ReachAds 20 — Platform Evolution */
.evolution-hero{margin:0 17px 13px;padding:20px;border-radius:24px;display:flex;gap:15px;align-items:center;background:linear-gradient(135deg,#171b4b,#6257e8);color:#fff;box-shadow:0 18px 45px rgba(61,55,171,.22)}
.evolution-hero .hero-orb{width:62px;height:62px;border-radius:20px;display:grid;place-items:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);flex:0 0 auto}.evolution-hero svg{width:29px;height:29px}.evolution-hero small{font-size:8px;letter-spacing:1.6px;opacity:.78}.evolution-hero h2{font-size:19px;margin:3px 0 5px}.evolution-hero p{font-size:9.5px;line-height:1.75;opacity:.86}
.evolution-stats{margin:0 17px 13px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.evolution-stats>div{padding:13px 8px;border-radius:17px;background:var(--surface);border:1px solid var(--line);text-align:center}.evolution-stats b{display:block;font-size:16px;color:var(--primary)}.evolution-stats small{font-size:7.5px;color:var(--muted)}
.growth-channel-card,.match-card,.score-card,.health-card,.payment-method{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--line);background:var(--surface);border-radius:17px;margin-bottom:9px}.growth-channel-card>div:nth-child(2),.match-card>div:nth-child(2),.score-card>div:nth-child(2),.health-card>div,.payment-method>div{min-width:0;flex:1}.growth-channel-card b,.match-card b,.score-card b,.health-card b,.payment-method b{font-size:11px}.growth-channel-card small,.match-card small,.score-card small,.health-card small,.payment-method small{display:block;font-size:8px;color:var(--muted);margin-top:3px}.match-score{width:51px;height:51px;border-radius:16px;background:var(--primary-soft);display:grid;place-content:center;text-align:center;color:var(--primary)}.match-score b{font-size:15px}.match-score small{font-size:7px;margin:0}
.forecast-card{margin:0 17px 13px;padding:18px 20px;border-radius:22px;background:linear-gradient(145deg,#f2f7ff,#eeecff);border:1px solid #dfe5fb;display:flex;align-items:center;justify-content:space-between}.forecast-card b{display:block;font-size:23px;color:var(--primary);margin:4px 0}.forecast-card small,.forecast-card span{font-size:8.5px;color:var(--muted)}.forecast-card svg{width:45px;height:45px;color:var(--primary)}
.score-ring{--score:0;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--primary) calc(var(--score)*1%),var(--primary-soft) 0);position:relative}.score-ring:after{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--surface)}.score-ring b{position:relative;z-index:1;color:var(--primary);font-size:14px}.score-card p,.health-card p{font-size:8.5px;color:var(--ink-2);margin-top:5px;line-height:1.6}.health-card strong{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:var(--success-light);color:var(--success);font-size:15px}
.subscription-current{margin:0 17px 12px;padding:14px 16px;border-radius:18px;background:var(--primary-soft);border:1px solid rgba(96,87,232,.14)}.subscription-current b,.subscription-current small{display:block}.subscription-current b{font-size:11px;color:var(--primary)}.subscription-current small{font-size:8px;color:var(--muted);margin-top:3px}.plans-grid{padding:0 17px;display:grid;gap:11px}.plan-card{padding:20px;border-radius:23px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-xs)}.plan-card.current{border-color:var(--primary);box-shadow:0 12px 30px rgba(96,87,232,.14)}.plan-icon{width:48px;height:48px;border-radius:15px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.plan-icon svg{width:23px;height:23px}.plan-card h3{font-size:18px;margin:11px 0 4px}.plan-card p{font-size:9px;color:var(--muted);line-height:1.7}.plan-price{display:flex;align-items:end;gap:5px;margin:12px 0}.plan-price b{font-size:28px;color:var(--primary)}.plan-price span{font-size:8px;color:var(--muted);padding-bottom:5px}.plan-card ul{list-style:none;margin:0 0 14px}.plan-card li{display:flex;gap:7px;align-items:center;font-size:9px;color:var(--ink-2);padding:5px 0}.plan-card li svg{width:15px;height:15px;color:var(--success)}
.money-flow{margin:0 17px 13px;padding:14px;border-radius:20px;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;text-align:center}.money-flow>div{flex:1}.money-flow span{width:26px;height:26px;margin:auto;border-radius:9px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:9px;font-weight:800}.money-flow b,.money-flow small{display:block}.money-flow b{font-size:8px;margin-top:5px}.money-flow small{font-size:6.5px;color:var(--muted)}.money-flow i{height:1px;width:20px;background:var(--line)}.payment-methods{padding:0 17px}.payment-method.disabled{opacity:.62}.payment-method-icon{width:49px;height:49px;border-radius:15px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.payment-method-icon svg{width:23px;height:23px}.method-title{display:flex;align-items:center;gap:7px}.method-title span{font-size:7px;padding:3px 7px;border-radius:8px;background:var(--surface-2);color:var(--muted)}.payment-method p{font-size:8.5px;color:var(--ink-2);margin:5px 0}.revenue-model{display:flex;flex-wrap:wrap;gap:7px}.revenue-model span{padding:7px 9px;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-size:8px;font-weight:700}.legal-hint{font-size:8px;color:var(--muted);line-height:1.7;margin-top:12px}
@media(max-width:380px){.evolution-hero{padding:16px}.evolution-hero .hero-orb{width:51px;height:51px}.evolution-stats{gap:5px}.money-flow{padding:11px 8px}.money-flow i{width:10px}.payment-method{align-items:flex-start;flex-wrap:wrap}.payment-method .btn{margin-right:auto}}
@media(prefers-color-scheme:dark){.forecast-card{background:linear-gradient(145deg,#131e35,#211d46);border-color:var(--line)}.subscription-current,.plan-icon,.payment-method-icon,.match-score{background:#20284b}.plan-card,.growth-channel-card,.match-card,.score-card,.health-card,.payment-method,.money-flow{background:var(--surface);border-color:var(--line)}}
.referral-hero{padding:18px;border-radius:20px;background:var(--grad);color:#fff;text-align:center;margin-bottom:12px}.referral-hero small,.referral-hero b{display:block}.referral-hero small{font-size:8px;opacity:.8}.referral-hero b{font:800 25px Inter,Arial,sans-serif;letter-spacing:2px;margin:6px 0 12px}.achievement-summary{text-align:center;padding:15px;border-radius:17px;background:var(--primary-soft);margin-bottom:10px}.achievement-summary b,.achievement-summary small{display:block}.achievement-summary b{font-size:20px;color:var(--primary)}.achievement-summary small{font-size:8px;color:var(--muted)}.achievement-list{display:grid;gap:8px}.achievement-item{display:flex;align-items:center;gap:10px;padding:12px;border-radius:16px;border:1px solid var(--line);background:var(--surface)}.achievement-item>span{width:42px;height:42px;border-radius:13px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.achievement-item>span svg{width:20px;height:20px}.achievement-item>div{flex:1}.achievement-item b,.achievement-item small{display:block}.achievement-item b{font-size:10px}.achievement-item small{font-size:8px;color:var(--muted);margin-top:3px}.achievement-item>i{color:var(--success)}.achievement-item.locked{opacity:.48;filter:grayscale(.4)}.admin-money-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 17px 12px}.admin-money-grid>div{padding:14px 8px;text-align:center;border-radius:16px;background:var(--surface);border:1px solid var(--line)}.admin-money-grid small,.admin-money-grid b{display:block}.admin-money-grid small{font-size:7px;color:var(--muted)}.admin-money-grid b{font-size:13px;color:var(--primary);margin-top:4px}


/* ReachAds 22 — Final Core Phase One */
:root{--core-glow:0 18px 50px rgba(82,77,220,.16);--core-line:rgba(96,87,232,.14)}
.featured-qa{background:linear-gradient(145deg,rgba(238,237,255,.96),rgba(237,247,255,.96))!important;border-color:var(--core-line)!important}
.insights-page{padding-bottom:24px}.insight-hero{margin:0 17px 13px;padding:20px;border-radius:26px;background:radial-gradient(circle at 90% 0,rgba(95,218,232,.25),transparent 38%),linear-gradient(135deg,#3430a8,#6357dc 54%,#3979ec);color:#fff;box-shadow:var(--core-glow);display:grid;grid-template-columns:1.15fr .85fr;gap:14px;align-items:center}.insight-hero>div:first-child{display:flex;flex-direction:column;gap:5px}.insight-hero span{font-size:10px;opacity:.82}.insight-hero b{font-size:29px;font-weight:800}.insight-hero small{font-size:8.7px;line-height:1.55;opacity:.78}.loyalty-orb{min-height:112px;border-radius:21px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.17);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px}.loyalty-orb strong{font-size:15px}.loyalty-orb i{display:block;width:100%;height:6px;background:rgba(255,255,255,.18);border-radius:999px;margin-top:9px;overflow:hidden}.loyalty-orb em{display:block;height:100%;width:0;background:#fff;border-radius:inherit;transition:width .4s ease}.core-kpi-grid{margin:0 17px 13px;display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.core-kpi-grid article{padding:14px;border-radius:19px;background:rgba(255,255,255,.9);border:1px solid var(--line);box-shadow:var(--shadow-xs);display:grid;grid-template-columns:38px 1fr;column-gap:9px;align-items:center}.core-kpi-grid article>span{grid-row:1/3;width:38px;height:38px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.core-kpi-grid svg{width:18px}.core-kpi-grid small{font-size:8.5px;color:var(--muted)}.core-kpi-grid b{font-size:14px}.live-chip{font-size:8px;padding:5px 8px;border-radius:999px;background:#e8fbf5;color:#118c70;font-weight:800}.opportunity-card{width:100%;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;text-align:right;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);margin-bottom:8px;color:var(--ink)}.opportunity-card>span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff;color:var(--primary)}.opportunity-card svg{width:19px}.opportunity-card b{display:block;font-size:11px}.opportunity-card small{display:block;font-size:8.5px;line-height:1.6;color:var(--ink-2);margin-top:3px}.opportunity-card strong{font-size:10px;color:var(--success)}.priority-high{border-color:rgba(226,83,101,.24);background:#fff9fa}.priority-medium{border-color:rgba(231,163,33,.25);background:#fffcf5}.valuation-card{padding:13px;border:1px solid var(--line);border-radius:17px;background:var(--surface-2);margin-bottom:8px}.valuation-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.valuation-card b{font-size:11px}.valuation-card small{font-size:8.2px;color:var(--muted)}.valuation-numbers{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.valuation-numbers span{background:#fff;border:1px solid var(--line);padding:9px;border-radius:12px}.valuation-numbers span b{display:block;margin-top:3px;color:var(--primary)}.health-line{width:100%;display:grid;grid-template-columns:43px 1fr auto;align-items:center;gap:10px;padding:10px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:right;color:var(--ink)}.health-line:last-child{border-bottom:0}.health-score{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--primary) calc(var(--score,70)*1%),#e8eaf4 0);position:relative;font-size:11px;font-weight:800}.health-score:after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--surface)}.health-score{isolation:isolate}.health-score::before{content:attr(data-score);position:relative;z-index:2}.health-line div b{font-size:11px}.health-line div small{display:block;font-size:8.5px;color:var(--muted);margin-top:3px}.estimate-disclaimer{margin:12px 19px 0;font-size:8.3px;line-height:1.7;color:var(--muted);text-align:center}.campaign-timeline{position:relative;padding:4px 2px}.timeline-event{display:grid;grid-template-columns:22px 1fr;gap:10px;position:relative;padding-bottom:18px}.timeline-event:before{content:"";position:absolute;right:10px;top:18px;bottom:0;width:2px;background:var(--line)}.timeline-event:last-child:before{display:none}.timeline-event>span{width:20px;height:20px;border-radius:50%;background:#fff;border:5px solid var(--line);z-index:1}.timeline-event.done>span{border-color:var(--success)}.timeline-event.current>span{border-color:var(--primary);box-shadow:0 0 0 5px rgba(96,87,232,.10)}.timeline-event b{font-size:11px}.timeline-event small{display:block;font-size:8.5px;color:var(--muted);margin-top:3px}
@media(max-width:360px){.insight-hero{grid-template-columns:1fr;padding:17px}.loyalty-orb{min-height:85px}.core-kpi-grid{grid-template-columns:1fr 1fr}.core-kpi-grid article{grid-template-columns:32px 1fr;padding:11px}.core-kpi-grid article>span{width:32px;height:32px}}
@media(prefers-color-scheme:dark){.featured-qa,.core-kpi-grid article,.valuation-card{background:rgba(18,25,44,.94)!important}.opportunity-card{background:#121a2c}.opportunity-card>span,.valuation-numbers span{background:#172139}.priority-high{background:#251720}.priority-medium{background:#251f13}}


/* ReachAds 22 — Final Core Phase One */
:root{--core-glow:0 18px 50px rgba(82,77,220,.16);--core-line:rgba(96,87,232,.14)}
.featured-qa{background:linear-gradient(145deg,rgba(238,237,255,.96),rgba(237,247,255,.96))!important;border-color:var(--core-line)!important}
.insights-page{padding-bottom:24px}.insight-hero{margin:0 17px 13px;padding:20px;border-radius:26px;background:radial-gradient(circle at 90% 0,rgba(95,218,232,.25),transparent 38%),linear-gradient(135deg,#3430a8,#6357dc 54%,#3979ec);color:#fff;box-shadow:var(--core-glow);display:grid;grid-template-columns:1.15fr .85fr;gap:14px;align-items:center}.insight-hero>div:first-child{display:flex;flex-direction:column;gap:5px}.insight-hero span{font-size:10px;opacity:.82}.insight-hero b{font-size:29px;font-weight:800}.insight-hero small{font-size:8.7px;line-height:1.55;opacity:.78}.loyalty-orb{min-height:112px;border-radius:21px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.17);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px}.loyalty-orb strong{font-size:15px}.loyalty-orb i{display:block;width:100%;height:6px;background:rgba(255,255,255,.18);border-radius:999px;margin-top:9px;overflow:hidden}.loyalty-orb em{display:block;height:100%;width:0;background:#fff;border-radius:inherit;transition:width .4s ease}.core-kpi-grid{margin:0 17px 13px;display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.core-kpi-grid article{padding:14px;border-radius:19px;background:rgba(255,255,255,.9);border:1px solid var(--line);box-shadow:var(--shadow-xs);display:grid;grid-template-columns:38px 1fr;column-gap:9px;align-items:center}.core-kpi-grid article>span{grid-row:1/3;width:38px;height:38px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.core-kpi-grid svg{width:18px}.core-kpi-grid small{font-size:8.5px;color:var(--muted)}.core-kpi-grid b{font-size:14px}.live-chip{font-size:8px;padding:5px 8px;border-radius:999px;background:#e8fbf5;color:#118c70;font-weight:800}.opportunity-card{width:100%;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;text-align:right;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);margin-bottom:8px;color:var(--ink)}.opportunity-card>span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff;color:var(--primary)}.opportunity-card svg{width:19px}.opportunity-card b{display:block;font-size:11px}.opportunity-card small{display:block;font-size:8.5px;line-height:1.6;color:var(--ink-2);margin-top:3px}.opportunity-card strong{font-size:10px;color:var(--success)}.priority-high{border-color:rgba(226,83,101,.24);background:#fff9fa}.priority-medium{border-color:rgba(231,163,33,.25);background:#fffcf5}.valuation-card{padding:13px;border:1px solid var(--line);border-radius:17px;background:var(--surface-2);margin-bottom:8px}.valuation-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.valuation-card b{font-size:11px}.valuation-card small{font-size:8.2px;color:var(--muted)}.valuation-numbers{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.valuation-numbers span{background:#fff;border:1px solid var(--line);padding:9px;border-radius:12px}.valuation-numbers span b{display:block;margin-top:3px;color:var(--primary)}.health-line{width:100%;display:grid;grid-template-columns:43px 1fr auto;align-items:center;gap:10px;padding:10px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:right;color:var(--ink)}.health-line:last-child{border-bottom:0}.health-score{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--primary) calc(var(--score,70)*1%),#e8eaf4 0);position:relative;font-size:11px;font-weight:800}.health-score:after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--surface)}.health-score{isolation:isolate}.health-score::before{content:attr(data-score);position:relative;z-index:2}.health-line div b{font-size:11px}.health-line div small{display:block;font-size:8.5px;color:var(--muted);margin-top:3px}.estimate-disclaimer{margin:12px 19px 0;font-size:8.3px;line-height:1.7;color:var(--muted);text-align:center}.campaign-timeline{position:relative;padding:4px 2px}.timeline-event{display:grid;grid-template-columns:22px 1fr;gap:10px;position:relative;padding-bottom:18px}.timeline-event:before{content:"";position:absolute;right:10px;top:18px;bottom:0;width:2px;background:var(--line)}.timeline-event:last-child:before{display:none}.timeline-event>span{width:20px;height:20px;border-radius:50%;background:#fff;border:5px solid var(--line);z-index:1}.timeline-event.done>span{border-color:var(--success)}.timeline-event.current>span{border-color:var(--primary);box-shadow:0 0 0 5px rgba(96,87,232,.10)}.timeline-event b{font-size:11px}.timeline-event small{display:block;font-size:8.5px;color:var(--muted);margin-top:3px}
@media(max-width:360px){.insight-hero{grid-template-columns:1fr;padding:17px}.loyalty-orb{min-height:85px}.core-kpi-grid{grid-template-columns:1fr 1fr}.core-kpi-grid article{grid-template-columns:32px 1fr;padding:11px}.core-kpi-grid article>span{width:32px;height:32px}}
@media(prefers-color-scheme:dark){.featured-qa,.core-kpi-grid article,.valuation-card{background:rgba(18,25,44,.94)!important}.opportunity-card{background:#121a2c}.opportunity-card>span,.valuation-numbers span{background:#172139}.priority-high{background:#251720}.priority-medium{background:#251f13}}

/* ReachAds 23 Feature Lock */
.market-toolbar,.wallet-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 14px}.market-toolbar select,.wallet-tools select,.wallet-tools input{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:14px;padding:11px 12px;font:inherit}.wallet-tools input{flex:1;min-width:0}.compare-dock{position:sticky;bottom:calc(82px + env(safe-area-inset-bottom));z-index:15;margin:16px;border:1px solid rgba(99,102,241,.25);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(18px);border-radius:18px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 18px 45px rgba(15,23,42,.14)}.compare-dock[hidden]{display:none}.compare-dock small{display:block;color:var(--muted);margin-top:2px}.compare-toggle.is-favorite{background:var(--primary);color:#fff}.compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.compare-grid article{border:1px solid var(--border);border-radius:18px;padding:16px;background:var(--surface-2);text-align:center}.compare-grid .channel-avatar{margin:0 auto 10px}.compare-grid dl{display:grid;gap:8px;margin:14px 0}.compare-grid dl div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed var(--border);padding-bottom:7px}.compare-grid dt{color:var(--muted)}.compare-grid dd{font-weight:800}.growth-performance{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 16px 16px}.growth-performance article{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:14px;text-align:center}.growth-performance small{display:block;color:var(--muted);margin-bottom:5px}.growth-performance b{font-size:20px}.transaction-row .tx-reference{display:block;font-size:11px;color:var(--muted);font-style:normal;margin-top:4px;direction:ltr;text-align:right}@media(max-width:480px){.market-toolbar,.wallet-tools{align-items:stretch;flex-direction:column}.market-toolbar select,.wallet-tools select,.wallet-tools input{width:100%}.growth-performance{grid-template-columns:1fr}.compare-grid{grid-template-columns:1fr}.compare-dock{bottom:calc(76px + env(safe-area-inset-bottom));margin:10px}}


/* ReachAds 24 — Intelligence & Monetization */
.boot-logo{overflow:hidden;padding:0}.boot-logo img{width:100%;height:100%;object-fit:cover;border-radius:24px}.studio-launch-card{margin:0 16px 16px;padding:16px;display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;background:linear-gradient(135deg,rgba(76,111,255,.14),rgba(139,92,246,.10));border:1px solid rgba(76,111,255,.2);border-radius:20px}.studio-launch-card>span{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#4c6fff,#8b5cf6);color:#fff}.studio-launch-card small{display:block;color:var(--text-secondary);margin-top:4px;line-height:1.65}.studio-result,.studio-form #studio-result{grid-column:1/-1}.studio-score{display:flex;align-items:center;justify-content:space-between;padding:16px;border-radius:18px;background:var(--surface-soft);margin-top:14px}.studio-score b{font-size:28px;color:var(--primary)}.studio-recommendations{display:grid;gap:8px;margin-top:10px}.studio-recommendations article{padding:12px;border-radius:14px;background:var(--surface-soft);border-inline-start:4px solid var(--warning)}.studio-recommendations article.severity-high{border-color:var(--danger)}.studio-recommendations article.severity-low{border-color:var(--success)}.studio-recommendations small{display:block;margin-top:4px;color:var(--text-secondary)}.projection-card{padding:16px;border-radius:18px;background:linear-gradient(135deg,#111827,#312e81);color:#fff;margin-top:10px}.projection-card b{display:block;font-size:24px;margin:4px 0}.projection-card span{font-size:11px;opacity:.78}.studio-channels{display:grid;gap:8px;margin-top:10px}.studio-channels article,.featured-picker button,.loyalty-rewards article{padding:12px;border-radius:14px;background:var(--surface-soft);border:1px solid var(--border);text-align:start}.studio-channels small{display:block;color:var(--text-secondary);margin-top:3px}.loyalty-balance{text-align:center;padding:22px;border-radius:22px;background:linear-gradient(135deg,#4c6fff,#8b5cf6);color:#fff}.loyalty-balance b{display:block;font-size:38px;margin:5px}.loyalty-rewards{display:grid;gap:10px;margin-top:14px}.loyalty-rewards article{display:flex;justify-content:space-between;align-items:center}.loyalty-rewards small{display:block;color:var(--text-secondary);margin-top:3px}.featured-picker{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.featured-picker b{grid-column:1/-1;margin-top:6px}.featured-picker button{font:inherit;color:var(--text-primary);cursor:pointer}@media(max-width:380px){.studio-launch-card{grid-template-columns:44px 1fr}.studio-launch-card .btn{grid-column:1/-1}.featured-picker{grid-template-columns:1fr}}

.market-channel.is-featured{position:relative;border-color:rgba(245,158,11,.55);box-shadow:0 12px 34px rgba(245,158,11,.12)}.featured-ribbon{position:absolute;inset-inline-start:12px;top:10px;z-index:3;display:flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff;font-size:10px;font-weight:800}.featured-ribbon svg{width:13px;height:13px}


/* ReachAds 25 — World Class Polish */
:root {
  color-scheme: light dark;
  --ra-primary: #5b5cf0;
  --ra-primary-strong: #4446d8;
  --ra-primary-soft: rgba(91, 92, 240, .12);
  --ra-success: #16a36a;
  --ra-warning: #d99312;
  --ra-danger: #e4485d;
  --ra-text: #111827;
  --ra-muted: #64748b;
  --ra-surface: rgba(255,255,255,.94);
  --ra-surface-2: #f7f8fc;
  --ra-line: rgba(15,23,42,.09);
  --ra-shadow: 0 14px 42px rgba(30,41,59,.10);
  --ra-shadow-soft: 0 8px 24px rgba(30,41,59,.07);
  --ra-radius-sm: 12px;
  --ra-radius-md: 18px;
  --ra-radius-lg: 24px;
  --ra-tap: 46px;
  --ra-content: 760px;
}

html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Alexandria', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--ra-text);
  background:
    radial-gradient(circle at 88% -10%, rgba(91,92,240,.14), transparent 36%),
    linear-gradient(180deg, #fbfcff 0%, #f2f5fb 100%);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button, input, select, textarea { font: inherit; }
button, [role="button"], a { min-height: var(--ra-tap); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(91,92,240,.32) !important;
  outline-offset: 2px;
}
button:disabled, .is-loading { cursor: wait; opacity: .68; }

#app { width: 100%; }
.app-shell, #app > div { width: 100%; }
.app-header {
  border-bottom: 1px solid var(--ra-line);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.app-main {
  width: min(100%, var(--ra-content));
  margin-inline: auto;
  padding-inline: clamp(14px, 3.6vw, 24px);
  scrollbar-width: thin;
  scrollbar-color: rgba(91,92,240,.34) transparent;
}
.app-main::-webkit-scrollbar { width: 5px; }
.app-main::-webkit-scrollbar-thumb { background: rgba(91,92,240,.34); border-radius: 999px; }

.card, .panel, .stat-card, .wallet-card, .channel-card, .profile-card, .empty-state, .smart-card {
  border: 1px solid var(--ra-line) !important;
  box-shadow: var(--ra-shadow-soft) !important;
  background: var(--ra-surface) !important;
}
.card:hover, .channel-card:hover { transform: translateY(-1px); }

.btn, button.primary, .btn-primary {
  border-radius: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}
.btn-primary, button.primary {
  background: linear-gradient(135deg, var(--ra-primary), var(--ra-primary-strong)) !important;
  box-shadow: 0 10px 24px rgba(91,92,240,.24) !important;
}
.btn:active, button:active { transform: scale(.985); }

.page-title, .section-title, h1, h2, h3 { text-wrap: balance; letter-spacing: -.025em; }
p, .muted, .section-subtitle { text-wrap: pretty; }
.ltr, [dir="ltr"] { unicode-bidi: isolate; }

.bottom-nav {
  border-top: 1px solid var(--ra-line) !important;
  background: rgba(255,255,255,.91) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 -10px 30px rgba(30,41,59,.08) !important;
}
.bottom-nav button { min-width: 58px; border-radius: 15px; }
.bottom-nav button.active { background: var(--ra-primary-soft); color: var(--ra-primary); }

.toast {
  max-width: min(92vw, 430px);
  border-radius: 16px !important;
  box-shadow: var(--ra-shadow) !important;
  backdrop-filter: blur(14px);
}
.modal-overlay { padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); }
.modal-content { border: 1px solid var(--ra-line); box-shadow: 0 24px 70px rgba(15,23,42,.24); }
.modal-close { min-width: 44px; min-height: 44px; }

.skeleton { position: relative; overflow: hidden; background: rgba(148,163,184,.16) !important; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  transform: translateX(100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: ra-shimmer 1.25s infinite;
}
@keyframes ra-shimmer { to { transform: translateX(-100%); } }

.offline-banner, .error-banner { border-radius: 14px; }
.empty-state { padding: clamp(24px, 7vw, 44px) 20px !important; }
.empty-state svg { width: 48px; height: 48px; }

@media (max-width: 420px) {
  :root { --ra-tap: 44px; }
  .app-main { padding-inline: 12px; }
  .app-header { padding-inline: 10px !important; }
  .header-brand-wrap small, .header-user small { display: none; }
  .header-brand-mark, .header-avatar { width: 38px !important; height: 38px !important; }
  .bottom-nav button { min-width: 52px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ra-text: #f4f7ff;
    --ra-muted: #a8b2c6;
    --ra-surface: rgba(19,24,37,.94);
    --ra-surface-2: #101522;
    --ra-line: rgba(226,232,240,.10);
    --ra-shadow: 0 18px 50px rgba(0,0,0,.34);
    --ra-shadow-soft: 0 10px 28px rgba(0,0,0,.22);
  }
  body {
    background:
      radial-gradient(circle at 86% -8%, rgba(91,92,240,.22), transparent 34%),
      linear-gradient(180deg, #0c111c 0%, #101725 100%);
  }
  .app-header, .bottom-nav { background: rgba(12,17,28,.88) !important; }
  .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent); }
}

@media (prefers-contrast: more) {
  :root { --ra-line: rgba(15,23,42,.26); }
  .muted, .section-subtitle { color: #475569 !important; }
  @media (prefers-color-scheme: dark) { .muted, .section-subtitle { color: #cbd5e1 !important; } }
}

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