/* ============================================================
   موقع شات — نظام التصميم (Design System)
   خارق · متناسق · سريع
   ============================================================ */

/* ---------- الخطوط المحلية (بدون طلبات خارجية = أسرع) ---------- */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+1EE00-1EEBB;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/cairo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- التوكنز (Tokens) — مصدر الحقيقة الواحد ---------- */
:root {
  --bg: #070B14;
  --bg-soft: #0D1425;
  --bg-deep: #05070E;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(109, 93, 246, 0.55);

  --primary: #6D5DF6;
  --primary-2: #9A5CF6;
  --primary-glow: rgba(109, 93, 246, 0.35);
  --accent: #10B981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --text: #F4F6FB;
  --text-muted: #8B95B3;
  --danger: #F43F5E;
  --gold: #F5C451;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --sh-md: 0 6px 24px rgba(0, 0, 0, 0.35);
  --sh-glow: 0 8px 32px var(--primary-glow);

  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-num: 'Inter', 'Cairo', sans-serif;

  --nav-h: 68px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  --grad-bg: radial-gradient(1100px 700px at 80% -10%, rgba(109, 93, 246, 0.22), transparent 60%),
              radial-gradient(900px 600px at 0% 110%, rgba(154, 92, 246, 0.12), transparent 55%),
              var(--bg);
}

[data-theme="light"] {
  --bg: #F6F7FB;
  --bg-soft: #FFFFFF;
  --bg-deep: #EEF0F7;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(13, 20, 37, 0.1);
  --border-hover: rgba(109, 93, 246, 0.6);
  --text: #131A2E;
  --text-muted: #5A6480;
  --sh-sm: 0 2px 10px rgba(20, 30, 60, 0.08);
  --sh-md: 0 6px 24px rgba(20, 30, 60, 0.1);
  --sh-glow: 0 8px 32px rgba(109, 93, 246, 0.25);
  --grad-bg: radial-gradient(1100px 700px at 80% -10%, rgba(109, 93, 246, 0.12), transparent 60%),
              radial-gradient(900px 600px at 0% 110%, rgba(154, 92, 246, 0.08), transparent 55%),
              var(--bg);
}

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--grad-bg) fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--primary); color: #fff; }

.num { font-family: var(--font-num); font-feature-settings: 'tnum'; letter-spacing: -0.01em; }

.container { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------- كروت زجاجية ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
}

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  animation: fadeDown .6s var(--ease) both;
}

.header-inner { display: flex; align-items: center; gap: var(--sp-4); height: 100%; }

.logo { display: flex; align-items: center; gap: var(--sp-2); font-weight: 900; font-size: 1.2rem; }
.logo img { width: 34px; height: 34px; }

.nav-links { display: flex; gap: var(--sp-4); margin-inline-start: var(--sp-4); }
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--sp-3); }

/* زر الثيم */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: transform .2s var(--spring), background .2s var(--ease);
}
.theme-toggle:hover { transform: translateY(-2px); background: var(--glass-strong); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-weight: 800; font-size: .98rem;
  padding: 0.72em 1.5em;
  border-radius: 14px;
  transition: transform .2s var(--spring), box-shadow .25s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--primary-glow); }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--glass-strong); }

.btn-lg { padding: 0.9em 2.2em; font-size: 1.05rem; border-radius: 16px; }

/* معيار «متاح» */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-8) 0;
  overflow: hidden;
  text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--accent-soft);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  font-size: .9rem; font-weight: 700;
  animation: fadeUp .7s var(--ease) both .15s;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: var(--sp-5) auto var(--sp-4);
  max-width: 22ch;
  animation: fadeUp .7s var(--ease) both .3s;
}
.hero h1 .grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 56ch;
  margin-inline: auto;
  animation: fadeUp .7s var(--ease) both .45s;
}

.hero-cta {
  display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap;
  margin-top: var(--sp-6);
  animation: fadeUp .7s var(--ease) both .6s;
}

.online-strip {
  margin: var(--sp-7) auto 0;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6em 1.4em;
  animation: fadeUp .7s var(--ease) both .75s;
}
.online-strip .count {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.online-strip .label { color: var(--text-muted); font-size: .95rem; }

/* ---------- معاينة شات حية (فلكس عائم) ---------- */
.chat-stage {
  position: relative;
  margin-top: var(--sp-7);
  min-height: 420px;
  animation: fadeUp .8s var(--ease) both .9s;
}

.chat-stage .bubble {
  position: absolute;
  max-width: 300px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--sp-3) var(--sp-4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-md);
  font-size: .95rem;
}
.chat-stage .bubble .b-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.chat-stage .bubble .b-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #fff;
}
.chat-stage .bubble .b-name { font-weight: 800; font-size: .85rem; }
.chat-stage .bubble .b-time { margin-inline-start: auto; font-size: .72rem; color: var(--text-muted); }
.chat-stage .bubble .b-msg { color: var(--text); }

.chat-stage .bub-1 { top: 0; inset-inline-start: 6%; animation: floatY 6s ease-in-out infinite; }
.chat-stage .bub-2 { top: 90px; inset-inline-end: 4%; animation: floatY 8s ease-in-out infinite 1s; }
.chat-stage .bub-3 { top: 200px; inset-inline-start: 14%; animation: floatY 7s ease-in-out infinite 2s; }
.chat-stage .bub-4 { top: 310px; inset-inline-end: 12%; animation: floatY 6.5s ease-in-out infinite .5s; }

.chat-stage .bubble .avatar-mine { background: linear-gradient(135deg, var(--accent), #34D399); }
.chat-stage .avatar-p1 { background: linear-gradient(135deg, #F43F5E, #FB7185); }
.chat-stage .avatar-p2 { background: linear-gradient(135deg, #6366F1, #818CF8); }
.chat-stage .avatar-p3 { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.chat-stage .avatar-p4 { background: linear-gradient(135deg, #06B6D4, #22D3EE); }

.chat-stage .typing {
  position: absolute;
  bottom: 0; inset-inline-start: 30%;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--sp-2) var(--sp-3);
}
.chat-stage .typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.2s ease-in-out infinite;
}
.chat-stage .typing i:nth-child(2) { animation-delay: .15s; }
.chat-stage .typing i:nth-child(3) { animation-delay: .3s; }

/* ---------- الأقسام ---------- */
.section { padding: var(--sp-8) 0; }

.sec-head { text-align: center; max-width: 60ch; margin: 0 auto var(--sp-7); }
.sec-tag {
  display: inline-block;
  font-size: .8rem; font-weight: 800;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 999px;
  padding: 0.35em 1em;
  margin-bottom: var(--sp-3);
}
.sec-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 900; margin-bottom: var(--sp-3); }
.sec-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- شبكة الغرف ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}

.room-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  overflow: hidden;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .3s var(--ease);
  animation: fadeUp .6s var(--ease) both;
}
.room-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 180px at 80% -20%, var(--card-glow, rgba(109,93,246,.28)), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.room-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--sh-glow);
}
.room-card:hover::before { opacity: 1; }

.room-card .r-ico {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
  box-shadow: var(--sh-sm);
}
.room-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: var(--sp-1); }
.room-card .r-desc { font-size: .88rem; color: var(--text-muted); margin-bottom: var(--sp-4); }
.room-card .r-online { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: .85rem; font-weight: 700; color: #34D399; }
.room-card .r-arrow {
  position: absolute; inset-inline-end: var(--sp-4); bottom: var(--sp-4);
  color: var(--text-muted);
  transition: transform .25s var(--spring), color .2s var(--ease);
}
.room-card:hover .r-arrow { transform: translateX(-4px); color: var(--primary); }

.rooms-more { text-align: center; margin-top: var(--sp-6); }

/* ---------- لماذا نحن ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
}
.feature {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform .3s var(--spring), border-color .3s var(--ease), box-shadow .3s var(--ease);
  animation: fadeUp .6s var(--ease) both;
}
.feature:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--sh-md); }
.feature .f-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  margin-bottom: var(--sp-4);
}
.feature h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: var(--sp-2); }
.feature p { color: var(--text-muted); font-size: .95rem; }

/* ---------- شريط الأرقام الحية ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-4);
  background: var(--grad-primary);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--sh-glow);
  text-align: center;
  color: #fff;
}
.stat .stat-num { font-family: var(--font-num); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.stat .stat-label { opacity: .85; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700; font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  margin-inline-start: auto;
  font-size: 1.5rem; font-weight: 400;
  color: var(--primary);
  transition: transform .3s var(--spring);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-ans { padding: 0 var(--sp-5) var(--sp-4); color: var(--text-muted); font-size: .96rem; }

/* ---------- CTA ختامي ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--grad-primary);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  color: #fff;
  box-shadow: var(--sh-glow);
}
.cta-panel::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(400px 200px at 30% 30%, rgba(255,255,255,.14), transparent 60%);
}
.cta-panel h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 900; position: relative; z-index: 1; }
.cta-panel p { opacity: .9; margin: var(--sp-3) auto var(--sp-5); max-width: 46ch; position: relative; z-index: 1; }
.cta-panel .btn { background: #fff; color: var(--primary); position: relative; z-index: 1; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ---------- الفوتر ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--sp-7) 0 var(--sp-6); margin-top: var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-6); }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: var(--sp-3); }
.footer-col a { display: block; color: var(--text-muted); font-size: .95rem; padding-block: 4px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-brand p { color: var(--text-muted); font-size: .95rem; margin-top: var(--sp-2); max-width: 34ch; }
.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  color: var(--text-muted); font-size: .88rem;
}

/* ---------- شريط التنقل السفلي (موبايل) ---------- */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; inset-inline: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.bottom-nav a {
  flex: 1; text-align: center;
  padding: var(--sp-3) var(--sp-2);
  font-size: .72rem; font-weight: 700;
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: color .2s var(--ease);
}
.bottom-nav a:hover, .bottom-nav a.active { color: var(--primary); }
.bottom-nav svg { width: 22px; height: 22px; }

/* ---------- حركات ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- الظهور عند التمرير ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .chat-stage { min-height: 380px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .hero { padding-top: var(--sp-6); }
  .hero-cta { flex-direction: column; align-items: center; }
  .chat-stage { min-height: 340px; }
  .chat-stage .bubble { max-width: 240px; font-size: .88rem; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 64px; }
  .header-actions .btn-primary span.cta-txt { display: none; }
  .header-actions .btn-primary { padding: 0.95em; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* تقليل الحركة لمن يحبها */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ===== هوية موقع شات ===== */
:root, html[data-theme="light"]{
  --primary:#6D4AFF;--primary-2:#9B7BFF;
  --primary-glow:rgba(109,74,255,.22);
  --accent:#7C5CFF;--accent-soft:rgba(124,92,255,.12);
  --border-hover:rgba(109,74,255,.45);
  --grad-primary:linear-gradient(135deg,#6D4AFF 0%,#9B7BFF 100%);
  --sh-glow:0 10px 26px rgba(109,74,255,.24);
  --brand:#6D4AFF;--brand-2:#9B7BFF;--brand-ink:#4A2AD6;
  --brand-soft:rgba(109,74,255,.11);
  --ring:0 0 0 3px rgba(109,74,255,.22);
  --grad-bg:radial-gradient(760px 480px at 100% -8%, rgba(155,123,255,.20), transparent 62%),
            radial-gradient(680px 420px at -4% 104%, rgba(109,74,255,.12), transparent 60%);
}
html[data-theme="dark"]{
  --primary:#9B7BFF;--primary-2:#B79BFF;--accent:#B79BFF;
  --accent-soft:rgba(155,123,255,.16);--brand:#9B7BFF;--brand-2:#B79BFF;
  --brand-soft:rgba(155,123,255,.14);
}
