/* =====================================================================
   ACM GROUP — Premium redesign stylesheet
   "ACM Core" design system · refined cinematic dark · RTL Arabic
   ===================================================================== */

/* ----------------------------- TOKENS ------------------------------ */
:root {
  /* surfaces — deep warm-navy black, layered */
  --bg:            #06080f;
  --bg-2:          #090c16;
  --surface:       #0e1320;
  --surface-2:     #121829;
  --surface-hover: #161d31;
  --line:          rgba(255,255,255,0.075);
  --line-strong:   rgba(255,255,255,0.14);

  /* accents — champagne gold + steel blue (overridable via tweaks) */
  --gold:          #d8b572;
  --gold-bright:   #f1d8a0;
  --gold-deep:     #a17e3e;
  --accent:        #5b8def;
  --accent-bright: #93b6ff;
  /* ink = accent used as readable TEXT/glyphs on the page surface (theme-aware) */
  --ink-gold:      #f1d8a0;
  --ink-accent:    #93b6ff;
  /* core = colors for the 3D object — always vivid, never theme-dimmed */
  --core-gold:     #f1d8a0;
  --core-accent:   #93b6ff;
  --gold-glow:     rgba(216,181,114,0.22);
  --accent-glow:   rgba(91,141,239,0.22);

  /* text */
  --text:          #ecf1fb;
  --text-dim:      #97a5c4;
  --text-mute:     #5c6a8c;

  /* effects */
  --shadow:        0 24px 70px -20px rgba(0,0,0,0.7);
  --shadow-sm:     0 8px 30px -10px rgba(0,0,0,0.55);
  --radius-xs:     8px;
  --radius-sm:     12px;
  --radius:        18px;
  --radius-lg:     26px;
  --radius-xl:     34px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --t:             0.5s var(--ease);

  --font:          'Tajawal', system-ui, sans-serif;
  --mono:          'JetBrains Mono', ui-monospace, monospace;

  --maxw:          1240px;
  --motion:        1; /* tweakable 0..1 multiplier */
}

[data-theme="light"] {
  --bg:            #eef1f8;
  --bg-2:          #f6f8fc;
  --surface:       #ffffff;
  --surface-2:     #ffffff;
  --surface-hover: #f3f6fc;
  --line:          rgba(10,20,45,0.10);
  --line-strong:   rgba(10,20,45,0.18);
  /* keep accent FILLS vivid (buttons, chips, icon plates) for punch on white */
  --gold:          #c89a3f;
  --gold-bright:   #e0bd6a;
  --gold-deep:     #9a7322;
  --accent:        #3a6ae6;
  --accent-bright: #5b8def;
  /* ink TEXT goes deep for contrast on the light background */
  --ink-gold:      #705e3b;
  --ink-accent:    #37558f;
  --gold-glow:     rgba(200,154,63,0.16);
  --accent-glow:   rgba(58,106,230,0.14);
  --text:          #0b1020;
  --text-dim:      #41506f;
  --text-mute:     #7b88a6;
  --shadow:        0 24px 60px -24px rgba(20,30,60,0.22);
  --shadow-sm:     0 10px 30px -14px rgba(20,30,60,0.16);
}

/* ----------------------------- RESET ------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; color: inherit; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--gold); color: #06080f; }

/* grain + vignette overlay */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, transparent 55%, rgba(0,0,0,0.35) 100%);
  mix-blend-mode: normal; opacity: 0.9;
}
[data-theme="light"] body::before { opacity: 0.25; }

.noise {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ----------------------- SHARED PRIMITIVES ------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 130px 0; position: relative; z-index: 3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-gold); margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-gold));
}
[dir="rtl"] .eyebrow::before { background: linear-gradient(270deg, transparent, var(--ink-gold)); }

.s-head { max-width: 680px; margin-bottom: 70px; }
.s-head.center { margin-inline: auto; text-align: center; }
.s-head.center .eyebrow::after {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--ink-gold), transparent);
}

.s-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.01em;
}
.s-title .hl {
  background: linear-gradient(105deg, var(--ink-gold) 0%, var(--ink-gold) 42%, var(--ink-accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.s-sub { color: var(--text-dim); font-size: 1.06rem; margin-top: 20px; max-width: 560px; }
.s-head.center .s-sub { margin-inline: auto; }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
  will-change: transform; overflow: hidden;
}
.btn ion-icon { font-size: 1.15em; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 55%, var(--gold-bright));
  color: #1a1305;
  box-shadow: 0 10px 30px -8px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.45); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
}
.btn-primary:hover::after { animation: sheen 0.9s var(--ease); }
@keyframes sheen { to { transform: translateX(130%); } }

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

/* pill / tag */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px; font-size: 0.74rem; font-weight: 600;
  font-family: var(--mono); letter-spacing: 0.04em;
  border: 1px solid var(--line-strong); color: var(--text-dim);
  background: rgba(255,255,255,0.02);
}

/* ----------------------- REVEAL ANIMATIONS ------------------------ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }
.reveal[data-d="6"] { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  /* never leave hero entrance content stuck in its hidden start-state */
  .hero-badge, .hero-desc, .hero-cta, .hero-stats, .scroll-cue, .stage-label {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .hero-title .ln > span { transform: none !important; animation: none !important; }
}

/* ============================ LOADER ============================== */
#loader {
  position: fixed; inset: 0; z-index: 9999; background: #05070d;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.ld-mark {
  position: relative; width: 96px; height: 96px;
  display: grid; place-items: center;
}
.ld-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-mark span {
  font-family: var(--mono); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--gold), var(--accent-bright));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ld-name {
  font-family: var(--mono); letter-spacing: 0.5em; font-size: 0.85rem;
  color: var(--text-dim); padding-inline-start: 0.5em;
}
.ld-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--accent)); animation: ldfill 1.9s var(--ease) forwards; }
@keyframes ldfill { 0%{width:0} 70%{width:72%} 100%{width:100%} }

/* ============================ NAVBAR ============================== */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  height: 80px; display: flex; align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), height 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 66px; background: rgba(7,9,16,0.72);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-bottom-color: var(--line);
}
[data-theme="light"] .nav.scrolled { background: rgba(246,248,252,0.78); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; position: relative;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-weight: 800; font-size: 1.18rem; letter-spacing: 0.06em; line-height: 1; }
.brand-sub { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.32em; color: var(--text-mute); text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-dim);
  padding: 9px 16px; border-radius: 99px; position: relative;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--ink-gold); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
  font-size: 1.15rem; transition: var(--t);
}
.icon-btn:hover { color: var(--ink-gold); border-color: var(--gold); transform: translateY(-2px); }
.nav-cta { padding: 11px 22px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 19px; height: 1.6px; background: var(--text); border-radius: 2px; transition: var(--t); }
.burger.x span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  clip-path: circle(0% at 100% 0); transition: clip-path 0.7s var(--ease);
}
.mobile-menu.open { clip-path: circle(150% at 100% 0); }
.mobile-menu a { font-size: 1.7rem; font-weight: 700; color: var(--text-dim); transition: var(--t); }
.mobile-menu a:hover { color: var(--gold); }

/* scroll progress */
#progress { position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 0; z-index: 9998;
  background: linear-gradient(90deg, var(--gold), var(--accent-bright)); box-shadow: 0 0 12px var(--gold-glow); }

/* ============================= HERO ============================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 90px; overflow: hidden; z-index: 3; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 22% 42%, var(--accent-glow), transparent 62%),
    radial-gradient(46% 44% at 78% 60%, var(--gold-glow), transparent 60%);
  opacity: 0.85;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 25%, transparent 78%);
}
#spotlight {
  position: absolute; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.6s var(--ease);
  filter: blur(10px);
}

.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; position: relative; z-index: 2; }

/* 3D canvas holder (left in RTL) */
/* 3D canvas holder — a deliberate dark showcase panel (intentional in both themes) */
.hero-stage {
  position: relative; height: 560px; order: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 22%, #141d33 0%, #0a0f1c 55%, #06080f 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="light"] .hero-stage {
  border-color: rgba(20,30,60,0.14);
  box-shadow: 0 40px 80px -34px rgba(25,40,80,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
#core-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 18%, transparent 76%);
}
.hero-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  border-radius: inherit; box-shadow: inset 0 0 80px 22px rgba(6,8,15,0.72);
}
.stage-ring { position: absolute; inset: 0; pointer-events: none; }
.stage-label {
  position: absolute; padding: 7px 13px; border-radius: 10px; z-index: 4;
  background: rgba(10,14,24,0.74); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px); font-family: var(--mono); font-size: 0.68rem;
  color: #c6d0e8; letter-spacing: 0.05em; display: flex; align-items: center; gap: 7px;
  opacity: 0; animation: floatIn 0.9s var(--ease) forwards; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.stage-label b { color: var(--core-gold); font-weight: 500; }
.stage-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--core-accent); box-shadow: 0 0 8px var(--core-accent); }
.stage-label.l1 { top: 8%; inset-inline-start: 6%; animation-delay: 0.9s; }
.stage-label.l2 { top: 44%; inset-inline-end: 5%; animation-delay: 1.1s; }
.stage-label.l3 { bottom: 9%; inset-inline-start: 10%; animation-delay: 1.3s; }
@keyframes floatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stage-label.float { animation: floatIn 0.9s var(--ease) forwards, bob 5s ease-in-out infinite; }

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

/* hero copy (right in RTL) */
.hero-copy { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 7px;
  border-radius: 99px; background: rgba(255,255,255,0.03); border: 1px solid var(--line-strong);
  font-size: 0.8rem; color: var(--text-dim); margin-bottom: 30px; white-space: nowrap;
  opacity: 0; animation: upFade 0.8s var(--ease) 0.2s forwards;
}
.hero-badge i {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px;
  background: linear-gradient(135deg, var(--gold), var(--accent)); color: #0a0d16; font-style: normal; font-size: 0.7rem;
}
.hero-badge b { color: var(--ink-gold); font-weight: 700; }

.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: block; transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.hero-title .ln:nth-child(1) > span { animation-delay: 0.35s; }
.hero-title .ln:nth-child(2) > span { animation-delay: 0.47s; }
.hero-title .ln:nth-child(3) > span { animation-delay: 0.59s; }
@keyframes lineUp { to { transform: none; } }
.hero-title .hl {
  background: linear-gradient(100deg, var(--ink-gold) 0%, var(--ink-gold) 40%, var(--ink-accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc { color: var(--text-dim); font-size: 1.12rem; max-width: 500px; margin: 26px 0 38px;
  opacity: 0; animation: upFade 0.9s var(--ease) 0.8s forwards; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: upFade 0.9s var(--ease) 0.95s forwards; }
@keyframes upFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-stats { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; opacity: 0; animation: upFade 0.9s var(--ease) 1.1s forwards; }
.hstat-num { font-family: var(--mono); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink-gold), var(--ink-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hstat-label { font-size: 0.78rem; color: var(--text-mute); font-weight: 500; margin-top: 2px; }
.hstat-div { width: 1px; align-self: stretch; background: var(--line); }

/* hero scroll cue */
.scroll-cue { position: absolute; bottom: 30px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-mute);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.3em; opacity: 0; animation: upFade 1s var(--ease) 1.6s forwards; }
.scroll-cue .mouse { width: 22px; height: 34px; border: 1px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ''; position: absolute; top: 6px; inset-inline-start: 50%; transform: translateX(-50%); width: 3px; height: 6px; border-radius: 2px; background: var(--ink-gold); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0%{ opacity:0; transform: translate(-50%,0);} 30%{opacity:1;} 100%{ opacity:0; transform: translate(-50%,10px);} }

/* ========================= MARQUEE / TRUST ======================= */
.marquee-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); padding: 26px 0; position: relative; z-index: 3; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }
[dir="rtl"] .marquee { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(-50%); } }
.mq-item { display: flex; align-items: center; gap: 12px; color: var(--text-mute); font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.mq-item ion-icon { font-size: 1.3rem; color: var(--gold); opacity: 0.8; }

/* ========================= SYSTEMS GRID ========================= */
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sys-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; cursor: pointer; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.sys-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(120% 90% at var(--mx,50%) 0%, var(--accent-glow), transparent 55%);
}
.sys-card::after {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform 0.6s var(--ease);
}
.sys-card:hover { transform: translateY(-7px); border-color: var(--line-strong); background: var(--surface-2); box-shadow: var(--shadow); }
.sys-card:hover::before { opacity: 1; }
.sys-card:hover::after { transform: scaleX(1); }

.sys-num { position: absolute; top: 26px; inset-inline-end: 30px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-mute); letter-spacing: 0.1em; }
.sys-ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px;
  font-size: 1.65rem; position: relative; z-index: 1;
  background: linear-gradient(140deg, rgba(216,181,114,0.14), rgba(91,141,239,0.12));
  border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.sys-ic ion-icon { color: var(--ink-gold); }
.sys-tag { position: relative; z-index: 1; display: inline-block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-accent); margin-bottom: 12px; }
.sys-title { position: relative; z-index: 1; font-size: 1.28rem; font-weight: 800; margin-bottom: 10px; }
.sys-desc { position: relative; z-index: 1; color: var(--text-dim); font-size: 0.92rem; line-height: 1.7; margin-bottom: 22px; }
.sys-feats { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.sys-feat { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--text-dim); }
.sys-feat ion-icon { color: var(--ink-gold); font-size: 1rem; flex-shrink: 0; }
.sys-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: var(--text); transition: gap 0.35s var(--ease), color 0.35s var(--ease); }
.sys-link ion-icon { transition: transform 0.35s var(--ease); }
.sys-card:hover .sys-link { color: var(--ink-gold); gap: 12px; }
[dir="rtl"] .sys-card:hover .sys-link ion-icon { transform: translateX(-4px); }

/* ============================ ABOUT ============================= */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-frame {
  position: relative; aspect-ratio: 4/4.4; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line-strong);
  display: grid; place-items: center;
}
.about-frame .ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.about-frame .ring.r1 { inset: 14%; animation: spin 28s linear infinite; }
.about-frame .ring.r2 { inset: 26%; border-color: var(--line-strong); animation: spin 20s linear infinite reverse; }
.about-frame .ring.r3 { inset: 38%; animation: spin 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-core { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(140deg, var(--gold-deep), var(--gold)); color: #0a0d16;
  box-shadow: 0 0 50px var(--gold-glow); }
.about-tiles { position: absolute; inset: 0; }
.about-tile {
  position: absolute; padding: 14px 16px; border-radius: 14px; min-width: 116px;
  background: rgba(12,16,26,0.78); border: 1px solid var(--line-strong); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); animation: bob 6s ease-in-out infinite;
}
[data-theme="light"] .about-tile { background: rgba(255,255,255,0.85); }
.about-tile .n { font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--ink-gold), var(--ink-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-tile .l { font-size: 0.7rem; color: var(--text-mute); }
.about-tile.t1 { top: 7%; inset-inline-start: -6%; animation-delay: 0s; }
.about-tile.t2 { bottom: 10%; inset-inline-end: -7%; animation-delay: 1.2s; }
.about-tile.t3 { bottom: 30%; inset-inline-start: -9%; animation-delay: 2.2s; }

.about-copy p { color: var(--text-dim); font-size: 1rem; margin-bottom: 18px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.val {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: var(--t);
}
.val:hover { border-color: var(--gold); background: var(--surface-2); transform: translateY(-3px); }
.val-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(140deg, rgba(216,181,114,0.16), rgba(91,141,239,0.14)); border: 1px solid var(--line-strong); }
.val-ic ion-icon { color: var(--ink-gold); font-size: 1.2rem; }
.val-t { font-weight: 700; font-size: 0.92rem; }
.val-s { font-size: 0.76rem; color: var(--text-mute); }

/* ============================ PROCESS ============================ */
.process-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: st; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: var(--t); }
.step:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.step-n { font-family: var(--mono); font-size: 2.4rem; font-weight: 700; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--line-strong); margin-bottom: 18px; transition: var(--t); }
.step:hover .step-n { -webkit-text-stroke: 1px var(--gold); color: var(--gold-glow); }
.step-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(216,181,114,0.14), rgba(91,141,239,0.12)); border: 1px solid var(--line-strong); }
.step-ic ion-icon { color: var(--ink-gold); font-size: 1.3rem; }
.step h4 { font-size: 1.06rem; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 0.86rem; color: var(--text-dim); }

/* ========================= TESTIMONIALS ========================= */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); transition: var(--t);
}
.tst:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.tst-stars { display: flex; gap: 3px; color: var(--ink-gold); margin-bottom: 16px; font-size: 0.95rem; }
.tst-q { color: var(--text); font-size: 0.98rem; line-height: 1.85; margin-bottom: 24px; font-weight: 500; }
.tst-foot { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line); }
.tst-av { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; color: #0a0d16;
  background: linear-gradient(135deg, var(--gold), var(--accent)); }
.tst-name { font-weight: 700; font-size: 0.92rem; }
.tst-role { font-size: 0.76rem; color: var(--text-mute); }
.tst-mark { position: absolute; top: 26px; inset-inline-end: 30px; font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; color: var(--line-strong); }

/* ============================== FAQ ============================= */
.faq-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.faq.open { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-glow), var(--shadow-sm); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; cursor: pointer; font-weight: 700; font-size: 1.04rem; user-select: none; transition: color 0.3s var(--ease); }
.faq-q:hover { color: var(--ink-gold); }
.faq-ic { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 0.9rem;
  border: 1px solid var(--line-strong); transition: var(--t); }
.faq.open .faq-ic { transform: rotate(135deg); background: var(--gold); border-color: var(--gold); color: #0a0d16; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease), padding 0.4s var(--ease); padding: 0 26px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.85; }
.faq.open .faq-a { max-height: 340px; padding: 0 26px 24px; }

/* ============================ CONTACT =========================== */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.c-card { display: flex; align-items: center; gap: 16px; padding: 19px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; transition: var(--t); }
.c-card:hover { border-color: var(--gold); transform: translateX(-5px); box-shadow: 5px 0 24px -10px var(--gold-glow); }
[dir="rtl"] .c-card:hover { transform: translateX(5px); box-shadow: -5px 0 24px -10px var(--gold-glow); }
.c-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.25rem; color: #fff; }
.c-ic.map { background: linear-gradient(135deg, #e35d4d, #c0392b); }
.c-ic.tel { background: linear-gradient(135deg, var(--accent-bright), var(--accent)); }
.c-ic.ig  { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.c-ic.tt  { background: #0b0b0b; border: 1px solid #333; }
.c-label { font-size: 0.72rem; color: var(--text-mute); font-weight: 600; margin-bottom: 3px; }
.c-val { font-weight: 700; font-size: 0.95rem; }
.c-val a { transition: color 0.3s var(--ease); }
.c-val a:hover { color: var(--ink-gold); }
.phone-ltr { direction: ltr; unicode-bidi: embed; font-family: var(--mono); letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 8px; }
.copy-btn { color: var(--text-mute); font-size: 0.85rem; padding: 2px; transition: color 0.3s var(--ease); }
.copy-btn:hover { color: var(--ink-gold); }
.socials { display: flex; gap: 11px; margin-top: 22px; }
.soc { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; color: var(--text-dim); font-weight: 600; font-size: 0.85rem; transition: var(--t); }
.soc ion-icon { font-size: 1.25rem; }
.soc:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink-accent); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 38px; position: relative; overflow: hidden; }
.form-card::before { content: ''; position: absolute; top: -40%; inset-inline-end: -20%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--gold-glow), transparent 65%); pointer-events: none; }
.form-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; position: relative; }
.form-note { font-size: 0.85rem; color: var(--text-mute); margin-bottom: 26px; position: relative; }
.fg { margin-bottom: 16px; position: relative; }
.fl { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.fi { width: 100%; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: 0.92rem; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.fi:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.fi::placeholder { color: var(--text-mute); }
textarea.fi { resize: vertical; min-height: 120px; }
select.fi { cursor: pointer; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }

/* ============================ FOOTER =========================== */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 70px 0 32px; position: relative; z-index: 3; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--text-mute); font-size: 0.9rem; margin-top: 18px; max-width: 300px; line-height: 1.8; }
.footer-col h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-gold); margin-bottom: 18px; }
.footer-col a, .footer-col .fline { display: flex; align-items: center; gap: 8px; color: var(--text-mute); font-size: 0.9rem; padding: 6px 0; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; font-size: 0.82rem; color: var(--text-mute); }
.footer-bot a { color: var(--gold); }

/* ====================== FLOATING ACTIONS ====================== */
.wa-float { position: fixed; bottom: 28px; inset-inline-end: 28px; z-index: 1500; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e); display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,0.5); transition: var(--t); animation: waring 2.6s ease-in-out infinite; }
.wa-float ion-icon { font-size: 1.8rem; color: #fff; }
.wa-float:hover { transform: scale(1.1) translateY(-2px); }
@keyframes waring { 0%,100%{ box-shadow: 0 10px 30px -6px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.35);} 50%{ box-shadow: 0 10px 30px -6px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0);} }
.back-top { position: fixed; bottom: 28px; inset-inline-start: 28px; z-index: 800; width: 48px; height: 48px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-dim); display: grid; place-items: center; font-size: 1.2rem;
  opacity: 0; transform: translateY(70px); transition: var(--t); }
.back-top.show { opacity: 1; transform: none; }
.back-top:hover { background: var(--gold); border-color: var(--gold); color: #0a0d16; transform: translateY(-4px); }

/* ============================= TOAST ========================== */
.toast { position: fixed; bottom: 100px; inset-inline-start: 50%; transform: translate(-50%, 18px); z-index: 3000;
  background: var(--surface); border: 1px solid var(--gold); border-radius: 14px; padding: 14px 26px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: var(--t); display: flex; align-items: center; gap: 10px; }
.toast ion-icon { color: var(--gold); font-size: 1.3rem; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================= MODAL ========================== */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px;
  background: rgba(4,6,12,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease); }
.modal.active { opacity: 1; visibility: visible; }
.modal-box { width: 100%; max-width: 880px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl); box-shadow: var(--shadow); transform: scale(0.92) translateY(24px); transition: transform 0.5s var(--ease); }
.modal.active .modal-box { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head-info { display: flex; align-items: center; gap: 16px; }
.modal-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0;
  background: linear-gradient(140deg, rgba(216,181,114,0.2), rgba(91,141,239,0.18)); border: 1px solid var(--line-strong); }
.modal-ic ion-icon { color: var(--ink-gold); }
.modal-title { font-size: 1.32rem; font-weight: 800; }
.modal-sub { font-size: 0.84rem; color: var(--text-mute); }
.modal-close { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-dim); display: grid; place-items: center; font-size: 1.2rem; transition: var(--t); }
.modal-close:hover { background: #e35d4d; border-color: #e35d4d; color: #fff; }
.modal-body { padding: 32px; }
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 30px; border: 1px solid var(--line); }
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-ph { position: absolute; inset: 0; display: grid; place-items: center; gap: 16px; align-content: center;
  background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--bg)); text-align: center; }
.play-btn { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: #0a0d16;
  background: linear-gradient(135deg, var(--gold), var(--accent)); box-shadow: 0 0 44px var(--gold-glow); animation: playpulse 2.4s ease infinite; }
.play-btn:hover { transform: scale(1.08); }
@keyframes playpulse { 0%,100%{ box-shadow: 0 0 44px var(--gold-glow), 0 0 0 0 var(--gold-glow);} 50%{ box-shadow: 0 0 44px var(--gold-glow), 0 0 0 18px transparent;} }
.video-label { color: var(--text-dim); font-size: 0.88rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.spec { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px; transition: border-color 0.3s var(--ease); }
.spec:hover { border-color: var(--gold); }
.spec ion-icon { color: var(--ink-gold); font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.spec-t { font-size: 0.74rem; color: var(--text-mute); font-weight: 600; margin-bottom: 3px; }
.spec-v { font-size: 0.9rem; font-weight: 700; }
.feats-title { font-size: 1.05rem; font-weight: 800; color: var(--ink-gold); margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.feats-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat-item { display: flex; align-items: center; gap: 11px; font-size: 0.88rem; color: var(--text-dim); padding: 11px 15px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; }
.feat-item .ck { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 0.62rem; color: #0a0d16;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright)); }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { order: 2; height: 420px; margin-top: 10px; }
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .section { padding: 90px 0; }
  .hero { padding: 108px 0 70px; }
  .hero-stage { height: 400px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .specs, .feats-list { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sys-grid, .tst-grid, .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bot { flex-direction: column; gap: 8px; text-align: center; }
  .hero-stage { height: 340px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 44px; }
  .hstat-div { display: none; }
  .hstat-num { font-size: 1.8rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .modal-body, .modal-head { padding: 22px; }
  .form-card { padding: 26px; }
  .socials { flex-direction: column; }
  .s-head { margin-bottom: 48px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 18px; }
  .hero-title { font-size: 2.15rem; }
  .hero-badge { font-size: 0.72rem; padding: 6px 12px 6px 6px; }
  .s-title { font-size: 1.7rem; }
  .hero-stage { height: 300px; }
  .sys-card, .tst, .form-card { padding: 24px; }
}

/* ============================ TWEAKS PANEL ====================== */
#tweaks-panel {
  position: fixed; bottom: 96px; right: 26px; left: auto; z-index: 4000;
  width: 290px; border-radius: var(--radius); overflow: hidden;
  background: rgba(13,18,28,0.94); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  color: var(--text); font-family: var(--font); direction: rtl;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.98);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease);
}
[data-theme="light"] #tweaks-panel { background: rgba(255,255,255,0.96); }
#tweaks-panel.open { opacity: 1; visibility: visible; transform: none; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: grab; }
.tw-head:active { cursor: grabbing; }
.tw-title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.95rem; font-family: var(--mono); letter-spacing: 0.04em; }
.tw-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--accent)); box-shadow: 0 0 8px var(--gold-glow); }
.tw-close { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--text-dim); border: 1px solid var(--line); font-size: 1rem; transition: var(--t); }
.tw-close:hover { color: #fff; background: #e35d4d; border-color: #e35d4d; }
.tw-body { padding: 16px; }
.tw-sec { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin: 4px 0 12px; }
.tw-sec:not(:first-child) { margin-top: 22px; }
.tw-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.tw-sw { height: 38px; border-radius: 11px; border: 1px solid var(--line-strong); display: flex; overflow: hidden; transition: var(--t); padding: 0; }
.tw-sw span { flex: 1; }
.tw-sw:hover { transform: translateY(-2px); }
.tw-sw.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-glow); }
.tw-row { display: flex; align-items: center; gap: 12px; }
.tw-row input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: var(--line-strong); outline: none; }
.tw-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: 0 0 0 4px var(--gold-glow); }
.tw-row input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--gold); cursor: pointer; }
.tw-val { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); min-width: 26px; text-align: center; }
.tw-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 0.86rem; color: var(--text-dim); cursor: pointer; }
.tw-toggle input { display: none; }
.tw-toggle i { width: 40px; height: 22px; border-radius: 99px; background: var(--line-strong); position: relative; transition: var(--t); flex-shrink: 0; }
.tw-toggle i::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: var(--t); }
.tw-toggle input:checked + i { background: linear-gradient(135deg, var(--gold-deep), var(--gold)); }
.tw-toggle input:checked + i::after { inset-inline-start: 20px; }
@media (max-width: 600px) { #tweaks-panel { left: 12px; right: 12px; width: auto; bottom: 90px; } }
