@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;800;900&display=swap');
/* ============================================================================
   TROF — الهوية الجديدة «Aurora 2»
   يُحمَّل آخراً في كل الصفحات فيعيد تلوين وتحريك الموقع كاملاً.
   • 5 لوحات ألوان (data-accent) • خلفية شفق متحركة • بطاقات زجاجية بحدود دوّارة
   • أضواء تتبع المؤشر • أزرار بلمعة • حركات دخول متنوعة • تتعطل مع prefers-reduced-motion
   ============================================================================ */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 50%; }

:root, [data-theme="dark"] {
  --c-bg: #060402; --c-bg-alt: #0e0903;
  --c-surface: rgba(255, 207, 110, .045); --c-surface-2: rgba(255, 207, 110, .075); --c-surface-3: rgba(255, 207, 110, .115); --c-surface-4: rgba(255, 207, 110, .17);
  --c-border: rgba(255, 200, 90, .15); --c-border-hi: rgba(255, 210, 110, .32); --c-border-lo: rgba(255, 200, 90, .07);
  --c-text: #fff7e6; --c-text-mut: #cdb98f; --c-text-dim: #8b7a55;
  --tx-a: #e5ad2c; --tx-b: #f7d446; --tx-c: #ff9d1c; --tx-d: #c2410c; --gold-deep: #8d5107; --gold-mid: #cd8915;
  --hair: rgba(255, 214, 120, .26);
  --tx-radius: 24px; --fx-ease: cubic-bezier(.22, 1, .36, 1);
  --tx-glow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 70px -30px rgba(0, 0, 0, .9);
  --head: 'Cairo', 'Tajawal', system-ui, sans-serif;
}
[data-accent="gold"] { --tx-a: #e5ad2c; --tx-b: #f7d446; --tx-c: #ff9d1c; --tx-d: #c2410c; }
[data-accent="aurora"]  { --tx-a: #5b7cff; --tx-b: #19e3c6; --tx-c: #ffd166; --tx-d: #ff6bd6; }
[data-accent="sunset"]  { --tx-a: #ff6b4a; --tx-b: #ffb347; --tx-c: #ffe066; --tx-d: #ff4d8d; }
[data-accent="emerald"] { --tx-a: #10d98a; --tx-b: #22d3ee; --tx-c: #d9f99d; --tx-d: #34d399; }
[data-accent="royal"]   { --tx-a: #8b5cf6; --tx-b: #ec4899; --tx-c: #fbbf24; --tx-d: #60a5fa; }
[data-accent="ice"]     { --tx-a: #38bdf8; --tx-b: #a5b4fc; --tx-c: #f0abfc; --tx-d: #67e8f9; }
[data-theme="light"] { --c-bg: #fbf6ea; --c-bg-alt: #f3e9cf; --c-text: #2a1a05; --c-text-mut: #6d5530; --c-text-dim: #9b8660; --c-surface: rgba(255,255,255,.7); --c-surface-2: rgba(255,255,255,.92); --c-border: rgba(141,81,7,.2); --c-border-hi: rgba(141,81,7,.4); }

/* ───────── الخلفية: شفق متحرك + حبيبات ───────── */
html { background: var(--c-bg); }
body { background: var(--c-bg) !important; background-attachment: initial !important; font-family: 'Tajawal', system-ui, sans-serif !important; }
body::before { content: ''; position: fixed; inset: -20vmax; z-index: -3; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 15% 10%, color-mix(in srgb, var(--tx-a) 38%, transparent), transparent 70%),
    radial-gradient(34vmax 28vmax at 88% 20%, color-mix(in srgb, var(--tx-b) 28%, transparent), transparent 70%),
    radial-gradient(40vmax 30vmax at 55% 105%, color-mix(in srgb, var(--tx-d) 22%, transparent), transparent 70%),
    radial-gradient(26vmax 20vmax at 5% 85%, color-mix(in srgb, var(--tx-c) 14%, transparent), transparent 70%);
  animation: fx-aurora 26s ease-in-out infinite alternate; filter: saturate(1.15); }
@keyframes fx-aurora { 0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } 50% { transform: translate3d(3vmax, -2vmax, 0) rotate(4deg) scale(1.08); } 100% { transform: translate3d(-3vmax, 2vmax, 0) rotate(-4deg) scale(1.04); } }
body::after { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
::selection { background: color-mix(in srgb, var(--tx-a) 55%, transparent); color: #fff; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--tx-a), var(--tx-b)); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
h1, h2, h3, .big, .sec-h h2, .dash-page-title, .tx-hero h1, .brand { font-family: var(--head); }
html { scrollbar-color: var(--tx-a) transparent; }
#fx-scroll { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 10000; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, var(--tx-b), var(--tx-a), var(--tx-d), var(--tx-c)); box-shadow: 0 0 14px var(--tx-b); }

/* ───────── الأزرار ───────── */
.btn { position: relative; isolation: isolate; border-radius: 16px !important; font-weight: 800 !important; transition: transform .3s var(--fx-ease), box-shadow .3s, filter .2s, background .3s !important; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg); width: 60%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: none; pointer-events: none; }
.btn:hover::before { animation: fx-sweep .9s var(--fx-ease); } @keyframes fx-sweep { to { transform: translateX(260%) skewX(-20deg); } }
.btn-primary { background: linear-gradient(120deg, var(--tx-a), var(--tx-b)) !important; background-size: 200% 100% !important; color: #1a0f00 !important; border: 0 !important; box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--tx-a) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4) !important; }
.btn-primary:hover { background-position: 100% 0 !important; transform: translateY(-3px); box-shadow: 0 22px 44px -12px color-mix(in srgb, var(--tx-b) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5) !important; }
.btn-secondary { background: var(--c-surface-2) !important; border: 1px solid var(--c-border-hi) !important; color: var(--c-text) !important; backdrop-filter: blur(10px); }
.btn-secondary:hover { background: var(--c-surface-3) !important; border-color: var(--tx-b) !important; transform: translateY(-2px); }
.btn:active { transform: scale(.96) !important; } .btn:focus-visible, .tx-input:focus-visible, .tx-select:focus-visible { outline: 2px solid var(--tx-b); outline-offset: 3px; }
.btn-glow { color: #1a0f00 !important; }
.btn-xl { padding: 17px 34px !important; font-size: 1.08rem !important; }

/* ───────── البطاقات الزجاجية + حدود دوّارة + ضوء المؤشر ───────── */
.tx-card, .dash-card, .tx-stat, .dash-stat, .dash-welcome, .bx, .plan, .dash-quick-action, .bd-card, .demo, .bld-c, .fx-chal, .stats div, .faq details {
  --card: color-mix(in srgb, var(--c-bg-alt) 72%, transparent);
  position: relative; border: 1px solid transparent !important; border-radius: var(--tx-radius) !important;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(140deg, var(--hair), rgba(255,214,120,.04) 40%, rgba(255,214,120,.16)) border-box !important;
  box-shadow: var(--tx-glow); transition: transform .45s var(--fx-ease), box-shadow .45s, background .3s;
}
.tx-card::after, .dash-card::after, .tx-stat::after, .bx::after, .plan::after, .bd-card::after, .demo::after, .bld-c::after, .dash-quick-action::after, .dash-stat::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--tx-b) 22%, transparent), transparent 60%); mix-blend-mode: screen;
}
.tx-card:hover::after, .dash-card:hover::after, .tx-stat:hover::after, .bx:hover::after, .plan:hover::after, .bd-card:hover::after, .demo:hover::after, .bld-c:hover::after, .dash-quick-action:hover::after, .dash-stat:hover::after { opacity: 1; }
.bx:hover, .plan:hover, .bd-card:hover, .dash-quick-action:hover, .dash-stat:hover, .tx-stat:hover {
  background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--ang), transparent 0 55%, var(--tx-b), var(--tx-a), var(--tx-d), transparent 90%) border-box !important;
  animation: fx-spin-ang 3.2s linear infinite; transform: translateY(-6px); box-shadow: 0 40px 80px -36px color-mix(in srgb, var(--tx-a) 70%, #000);
}
@keyframes fx-spin-ang { to { --ang: 360deg; } }

/* ───────── الحقول ───────── */
.tx-input, .tx-select, input[type=text], input[type=number], input[type=search], input[type=password], textarea, select {
  border-radius: 14px !important; border: 1px solid var(--c-border) !important; background: color-mix(in srgb, var(--c-bg) 60%, transparent) !important; color: var(--c-text);
  transition: border-color .25s, box-shadow .25s, background .25s !important;
}
.tx-input:focus, .tx-select:focus, input:focus, textarea:focus, select:focus { border-color: var(--tx-b) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tx-b) 20%, transparent) !important; outline: 0; }
.tx-chip, .tx-tab { border-radius: 100px !important; transition: .25s var(--fx-ease) !important; } .tx-chip:hover, .tx-tab:hover { transform: translateY(-2px); }
.tx-chip.on, .tx-tab.on { background: linear-gradient(120deg, var(--tx-a), var(--tx-b)) !important; color: #1a0f00 !important; border-color: transparent !important; box-shadow: 0 10px 24px -10px var(--tx-a); }
.tx-pill { border-radius: 100px; backdrop-filter: blur(8px); }

/* ───────── اللوحة: القائمة الجانبية والشريط العلوي ───────── */
.dash-sidebar { background: color-mix(in srgb, var(--c-bg-alt) 70%, transparent) !important; backdrop-filter: blur(26px) saturate(170%); border-inline-end: 1px solid var(--c-border) !important; box-shadow: 30px 0 80px -50px #000; }
.dash-sidebar-logo { filter: drop-shadow(0 0 14px var(--tx-a)); animation: fx-float 5s ease-in-out infinite; }
.dash-nav-label { letter-spacing: .12em; font-family: var(--head); font-weight: 800; opacity: .6; }
.dash-nav-item { position: relative; border-radius: 14px !important; transition: transform .3s var(--fx-ease), background .25s, color .25s !important; }
.dash-nav-item:hover { transform: translateX(-4px); background: var(--c-surface-2) !important; } html[dir="ltr"] .dash-nav-item:hover { transform: translateX(4px); }
.dash-nav-item.active { background: linear-gradient(120deg, color-mix(in srgb, var(--tx-a) 38%, transparent), color-mix(in srgb, var(--tx-b) 20%, transparent)) !important; color: #fff !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tx-a) 60%, transparent), 0 12px 28px -14px var(--tx-a); }
.dash-nav-item.active::before { content: ''; position: absolute; inset-inline-end: -1px; top: 20%; bottom: 20%; width: 4px; border-radius: 4px; background: linear-gradient(var(--tx-b), var(--tx-a)); box-shadow: 0 0 14px var(--tx-b); }
.dash-nav-icon { transition: transform .35s var(--fx-ease); } .dash-nav-item:hover .dash-nav-icon, .dash-nav-item.active .dash-nav-icon { transform: scale(1.18) rotate(-6deg); }
.dash-topbar { background: color-mix(in srgb, var(--c-bg) 55%, transparent) !important; backdrop-filter: blur(22px) saturate(170%); border-bottom: 1px solid var(--c-border) !important; }
.dash-topbar-btn, .dash-topbar-server { border-radius: 14px !important; transition: .25s var(--fx-ease) !important; } .dash-topbar-btn:hover, .dash-topbar-server:hover { transform: translateY(-2px); border-color: var(--tx-b) !important; }
.dash-page-content { animation: fx-page .6s var(--fx-ease) both; } @keyframes fx-page { from { opacity: 0; transform: translateY(22px) scale(.99); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.dash-page-title { background: linear-gradient(100deg, #fff, var(--tx-b) 60%, var(--tx-a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-welcome { background: linear-gradient(135deg, color-mix(in srgb, var(--tx-a) 30%, transparent), color-mix(in srgb, var(--tx-b) 14%, transparent)), var(--c-surface) !important; overflow: hidden; }
.tx-hero { position: relative; overflow: hidden; border-radius: 30px !important; border: 1px solid var(--c-border-hi) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--tx-a) 34%, transparent), color-mix(in srgb, var(--tx-b) 14%, transparent) 60%, transparent), var(--c-surface) !important; }
.tx-hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tx-d) 40%, transparent), transparent 65%); animation: fx-drift 12s ease-in-out infinite alternate; pointer-events: none; }
@keyframes fx-drift { to { transform: translate(-60px, 50px) scale(1.2); } }
.global-loader { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tx-a) 22%, #060402), #060402 70%) !important; }
.spinner { border-color: color-mix(in srgb, var(--tx-b) 25%, transparent) !important; border-top-color: var(--tx-b) !important; }
.tx-modal .m { background: color-mix(in srgb, var(--c-bg-alt) 88%, transparent) !important; backdrop-filter: blur(30px); border: 1px solid var(--c-border-hi) !important; border-radius: 28px !important; box-shadow: 0 60px 120px -40px #000, 0 0 0 1px color-mix(in srgb, var(--tx-a) 30%, transparent) !important; }
.tx-modal { backdrop-filter: blur(8px); background: rgba(6, 4, 2, .75) !important; }

/* ───────── الصفحة الرئيسية ───────── */
.nav .in { background: color-mix(in srgb, var(--c-bg) 55%, transparent) !important; border-color: var(--c-border-hi) !important; transition: .4s var(--fx-ease); }
.nav.scrolled .in { width: min(940px, 100%); background: color-mix(in srgb, var(--c-bg) 82%, transparent) !important; box-shadow: 0 24px 60px -24px #000, 0 0 0 1px color-mix(in srgb, var(--tx-a) 25%, transparent); }
.brand { font-weight: 900; background: linear-gradient(90deg, #fff, var(--tx-b), var(--tx-c)) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; background-size: 200% auto !important; animation: fx-shine 5s linear infinite; }
@keyframes fx-shine { to { background-position: 200% center; } }
.links a { position: relative; } .links a::after { content: ''; position: absolute; inset-inline: 16px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--tx-b), var(--tx-a)); transform: scaleX(0); transition: transform .35s var(--fx-ease); } .links a:hover::after { transform: scaleX(1); }
.hero { padding: 150px 0 70px !important; text-align: start !important; overflow: clip; }
.hero .orb { display: none; }
.aur { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } .aur i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; mix-blend-mode: screen; animation: fx-drift 16s ease-in-out infinite alternate; }
.aur i:nth-child(1) { width: 520px; height: 520px; background: var(--tx-a); top: -120px; inset-inline-start: -120px; } .aur i:nth-child(2) { width: 440px; height: 440px; background: var(--tx-b); top: 120px; inset-inline-end: -100px; animation-delay: -6s; } .aur i:nth-child(3) { width: 360px; height: 360px; background: var(--tx-d); bottom: -120px; left: 38%; opacity: .32; animation-delay: -10s; }
.gridbg { position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(var(--c-border-lo) 1px, transparent 1px), linear-gradient(90deg, var(--c-border-lo) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 5vw, 60px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .cta { justify-content: center !important; } .hero-vis { display: none; } }
h1.big { font-size: clamp(2.6rem, 7.4vw, 5.6rem) !important; line-height: 1.06 !important; font-weight: 900; letter-spacing: -1px !important; }
.grad { background: linear-gradient(100deg, var(--tx-b), var(--tx-a) 40%, var(--tx-d) 70%, var(--tx-c)) !important; background-size: 220% auto !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; animation: fx-shine 6s linear infinite !important; }
.hero .sub { margin: 0 0 30px !important; max-width: 560px; } .hero .cta { justify-content: flex-start !important; }
.rot { display: inline-block; min-width: 4.2em; padding: 0 .35em; border-radius: 10px; font-weight: 900; color: var(--tx-b); background: color-mix(in srgb, var(--tx-b) 14%, transparent); border: 1px dashed color-mix(in srgb, var(--tx-b) 55%, transparent); text-align: center; }
.rot.swap { animation: fx-word .5s var(--fx-ease) both; } @keyframes fx-word { from { opacity: 0; transform: translateY(14px) scale(.9); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.word { display: inline-block; opacity: 0; transform: translateY(.6em) rotateX(-40deg); animation: fx-word-in .8s var(--fx-ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); } @keyframes fx-word-in { to { opacity: 1; transform: none; } }
.pill { background: color-mix(in srgb, var(--c-bg) 50%, transparent) !important; backdrop-filter: blur(14px); } .pill i { animation: fx-ping 2s infinite; } @keyframes fx-ping { 0% { box-shadow: 0 0 0 0 rgba(52, 245, 166, .7); } 100% { box-shadow: 0 0 0 12px rgba(52, 245, 166, 0); } }
/* بطاقات عائمة بجانب الهيرو */
.hero-vis { position: relative; height: 470px; perspective: 1100px; }
.fv { position: absolute; width: min(300px, 78%); padding: 16px 18px; border-radius: 22px; background: color-mix(in srgb, var(--c-bg-alt) 70%, transparent); backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--c-border-hi); box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .12); animation: fx-bob 7s ease-in-out infinite; will-change: transform; }
.fv b { display: block; margin-bottom: 4px; } .fv small { color: var(--c-text-mut); } .fv .row { display: flex; align-items: center; gap: 10px; }
.fv .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, var(--tx-a), var(--tx-b)); flex: none; }
.fv .bar { height: 8px; border-radius: 8px; background: var(--c-surface-3); overflow: hidden; margin-top: 10px; } .fv .bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--tx-b), var(--tx-a)); animation: fx-fill 2.4s var(--fx-ease) both .6s; } @keyframes fx-fill { from { width: 0; } }
.fv-1 { top: 0; inset-inline-start: 4%; transform: rotate(-4deg); } .fv-2 { top: 116px; inset-inline-end: 0; animation-delay: -2s; transform: rotate(3deg); } .fv-3 { top: 252px; inset-inline-start: 0; animation-delay: -4s; transform: rotate(-2deg); } .fv-4 { top: 350px; inset-inline-end: 6%; width: 230px; animation-delay: -5.5s; transform: rotate(5deg); }
@keyframes fx-bob { 50% { translate: 0 -16px; } }
.fv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .fv-chips span { padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 800; background: var(--c-surface-3); }
/* شريط النماذج المتحرك */
.marquee { position: relative; margin: 10px 0 0; padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq { display: flex; gap: 12px; width: max-content; animation: fx-mq 60s linear infinite; padding: 6px 0; } .mq.rev { animation-direction: reverse; animation-duration: 75s; } .marquee:hover .mq { animation-play-state: paused; }
.mq span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 100px; white-space: nowrap; font-weight: 800; font-size: .9rem; background: var(--c-surface-2); border: 1px solid var(--c-border); transition: .3s var(--fx-ease); } .mq span:hover { transform: translateY(-4px) scale(1.06); border-color: var(--tx-b); background: color-mix(in srgb, var(--tx-b) 14%, transparent); }
@keyframes fx-mq { to { transform: translateX(50%); } } html[dir="rtl"] .mq { animation-name: fx-mq-r; } @keyframes fx-mq-r { to { transform: translateX(-50%); } }
.stats { margin-top: 10px !important; } .stats b { font-family: var(--head); background: linear-gradient(120deg, #fff, var(--tx-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-h h2 { font-size: clamp(1.8rem, 5vw, 3rem) !important; font-weight: 900; } .sec-h .k { display: inline-block; padding: 5px 16px; border-radius: 100px; background: color-mix(in srgb, var(--tx-b) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tx-b) 40%, transparent); color: var(--tx-b) !important; }
.bx .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--tx-a) 40%, transparent), color-mix(in srgb, var(--tx-b) 22%, transparent)); font-size: 1.8rem; transition: transform .5s var(--fx-ease); } .bx:hover .ic { transform: scale(1.15) rotate(-8deg); }
.bx .tag { background: linear-gradient(120deg, var(--tx-d), var(--tx-a)) !important; color: #fff !important; border-radius: 100px; box-shadow: 0 6px 16px -6px var(--tx-d); }
.final { background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--tx-a) 40%, transparent), transparent), var(--c-surface) !important; }

/* ───────── ظهور متنوع عند التمرير ───────── */
.reveal { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(8px); transition: opacity .9s var(--fx-ease), transform .9s var(--fx-ease), filter .9s var(--fx-ease); }
.reveal[data-reveal="left"] { transform: translateX(60px); } .reveal[data-reveal="right"] { transform: translateX(-60px); } .reveal[data-reveal="zoom"] { transform: scale(.85); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.bento .bx:nth-child(2n).reveal { transition-delay: .08s; } .bento .bx:nth-child(3n).reveal { transition-delay: .16s; }

/* ───────── تبديل الألوان ───────── */
#fx-theme { position: fixed; z-index: 9990; inset-inline-start: 16px; bottom: calc(16px + var(--fx-safe-b, 0px)); display: grid; gap: 10px; justify-items: start; }
#fx-theme > button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--c-border-hi); cursor: pointer; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--tx-a), var(--tx-b)); box-shadow: 0 14px 34px -10px var(--tx-a); transition: transform .4s var(--fx-ease); } #fx-theme > button:hover { transform: rotate(90deg) scale(1.1); }
#fx-theme .pop { display: none; padding: 12px; border-radius: 22px; background: color-mix(in srgb, var(--c-bg-alt) 90%, transparent); backdrop-filter: blur(24px); border: 1px solid var(--c-border-hi); box-shadow: 0 30px 70px -20px #000; animation: fx-pop .35s var(--fx-ease); }
#fx-theme.open .pop { display: grid; gap: 10px; } #fx-theme .pop b { font-size: .8rem; color: var(--c-text-mut); } .sw-row { display: flex; gap: 8px; }
.sw-row button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: .25s var(--fx-ease); } .sw-row button:hover { transform: scale(1.2); } .sw-row button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }

@media (max-width: 640px) { .hero { padding-top: 120px !important; } h1.big { font-size: clamp(2.2rem, 11vw, 3.4rem) !important; } #fx-theme { bottom: calc(86px + var(--fx-safe-b, 0px)); } #fx-theme > button { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { body::before, .aur i, .fv, .mq, .grad, .brand, .tx-hero::before { animation: none !important; } .reveal { opacity: 1; transform: none; filter: none; } .word { opacity: 1; transform: none; animation: none; } }
.grad .word { background: inherit; background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-word-in .8s var(--fx-ease) forwards, fx-shine 6s linear infinite; animation-delay: calc(var(--i) * 70ms + 150ms), 0s; }

/* ============================================================================
   👑 هوية TROF الذهبية — مأخوذة من الشعار والبانر (أسود دافئ + ذهب معدني)
   ============================================================================ */
.btn-primary, .btn-glow { background: linear-gradient(115deg, #8d5107 0%, #cd8915 18%, #f7d446 38%, #fff1a8 50%, #f7d446 62%, #cd8915 82%, #8d5107 100%) !important; background-size: 260% 100% !important; color: #1a0f00 !important; text-shadow: 0 1px 0 rgba(255, 241, 168, .6); animation: none !important; border: 0 !important; box-shadow: 0 14px 34px -12px rgba(229, 173, 44, .75), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(141, 81, 7, .55) !important; }
.btn-primary:hover, .btn-glow:hover { background-position: 100% 0 !important; box-shadow: 0 24px 50px -12px rgba(247, 212, 70, .8), inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(141, 81, 7, .55) !important; }
.grad { background: linear-gradient(100deg, #cd8915, #f7d446 30%, #fff1a8 50%, #f7d446 70%, #cd8915) !important; background-size: 240% auto !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.tx-chip.on, .tx-tab.on, .bd-cat.on { background: linear-gradient(120deg, #cd8915, #f7d446) !important; color: #1a0f00 !important; }
.dash-page-title, .stats b { background: linear-gradient(100deg, #fff1a8, #f7d446 55%, #cd8915) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.brand { background: linear-gradient(90deg, #cd8915, #fff1a8, #f7d446, #cd8915) !important; background-size: 220% auto !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(247, 212, 70, .7)); animation: fx-float 5s ease-in-out infinite; -webkit-text-fill-color: initial; }
.dash-sidebar-logo { border-radius: 50%; box-shadow: 0 0 0 2px rgba(247, 212, 70, .5), 0 0 28px rgba(247, 212, 70, .45); }
.gridbg { background-image: linear-gradient(rgba(255, 200, 90, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 200, 90, .07) 1px, transparent 1px); }
.fv, .tx-modal .m, .dash-sidebar { border-color: var(--hair) !important; }
.fv .ic { color: #1a0f00; box-shadow: 0 8px 20px -8px #e5ad2c; }
/* مجسّم الشعار خلف بطاقات الهيرو */
.hero-emblem { position: absolute; inset: 6% 10% auto auto; width: min(380px, 80%); aspect-ratio: 1; z-index: 0; pointer-events: none; }
.hero-emblem img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 80px rgba(247, 212, 70, .4), 0 0 0 2px rgba(247, 212, 70, .5); animation: fx-bob 8s ease-in-out infinite; }
.hero-emblem::before, .hero-emblem::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed rgba(247, 212, 70, .45); animation: fx-rot 40s linear infinite; }
.hero-emblem::after { inset: -34px; border: 1px solid rgba(247, 212, 70, .22); animation-direction: reverse; animation-duration: 60s; }
@keyframes fx-rot { to { transform: rotate(360deg); } }
.fv { z-index: 2; backdrop-filter: blur(18px); }
/* عرض البانر */
.showcase { position: relative; margin: 30px auto 10px; max-width: 1080px; padding: 14px; border-radius: 34px; background: linear-gradient(135deg, rgba(247, 212, 70, .35), rgba(141, 81, 7, .15) 40%, rgba(247, 212, 70, .3)); box-shadow: 0 50px 120px -40px rgba(229, 173, 44, .65), 0 0 0 1px var(--hair); }
.showcase::before { content: ''; position: absolute; inset: -2px; border-radius: 36px; padding: 2px; background: conic-gradient(from var(--ang), transparent 0 50%, #fff1a8, #f7d446, transparent 85%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: fx-spin-ang 6s linear infinite; pointer-events: none; }
.showcase img { display: block; width: 100%; height: auto; border-radius: 24px; background: #000; }
.showcase figcaption { text-align: center; margin-top: 10px; color: var(--c-text-mut); font-size: .85rem; }
