/* ============== لوحة مميزة للوحة الإعدادات (لون ثابت لا يتغير مع دورة الألوان) ============== */
:root {
  --c-primary: #ff2d92;
  --c-primary-2: #6a5cff;
  --c-primary-3: #00e1ff;
  --c-accent: #ffb547;
  --c-glow: rgba(255, 45, 146, 0.55);
  --c-glow-2: rgba(106, 92, 255, 0.45);

  /* ألوان مستقرة خاصة بلوحات الإعدادات/المالك/المطور */
  --panel-p: #22d3ee;
  --panel-p2: #818cf8;
  --panel-glow: rgba(34, 211, 238, 0.45);
  --admin-p: #f472b6;
  --admin-glow: rgba(244, 114, 182, 0.45);

  --bg: #050614;
  --bg-2: #0a0e24;
  --card: rgba(15, 20, 45, 0.62);
  --card-strong: rgba(8, 11, 26, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f4ff;
  --text-2: #d6deff;
  --muted: #94a3c4;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 14px 44px rgba(0, 0, 0, 0.32);

  --grad-primary: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 55%, var(--c-primary-3) 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(255,45,146,0.18), rgba(106,92,255,0.18), rgba(0,225,255,0.18));
  --grad-text: linear-gradient(135deg, var(--c-primary) 10%, var(--c-primary-2) 50%, var(--c-primary-3) 95%);
  --grad-aura: radial-gradient(circle at center, var(--c-glow) 0%, transparent 65%);
  --grad-button: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  --grad-panel: linear-gradient(135deg, var(--panel-p), var(--panel-p2));
  --grad-admin: linear-gradient(135deg, var(--admin-p), var(--c-primary-2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

/* ============== خلفية الشفق المتحركة (الصفحة الرئيسية) ============== */
.aurora-bg {
  position: fixed; inset: 0; z-index: -4; overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(110, 90, 250, 0.18), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255, 60, 170, 0.16), transparent 42%),
    linear-gradient(180deg, #050614 0%, #0a0e24 100%);
}
.aurora { position: absolute; width: 36rem; height: 36rem; border-radius: 50%; filter: blur(110px); opacity: 0.55; animation: aurora-float 22s ease-in-out infinite; mix-blend-mode: screen; }
.aurora-1 { top: -8rem; left: -8rem; background: var(--c-primary); animation-delay: 0s; }
.aurora-2 { bottom: -10rem; right: -8rem; background: var(--c-primary-2); animation-delay: -7s; }
.aurora-3 { top: 40%; left: 60%; width: 28rem; height: 28rem; background: var(--c-primary-3); animation-delay: -14s; }
.aurora-4 { top: 20%; right: 30%; width: 22rem; height: 22rem; background: var(--c-accent); opacity: 0.35; animation-delay: -3s; }
@keyframes aurora-float { 0%,100%{transform:translate(0,0) scale(1);} 25%{transform:translate(60px,-40px) scale(1.1);} 50%{transform:translate(-40px,60px) scale(0.9);} 75%{transform:translate(40px,40px) scale(1.05);} }

.bg-grid { position: fixed; inset: 0; z-index: -3; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at center, black 30%, transparent 85%); pointer-events: none; }
.bg-dots { position: fixed; inset: 0; z-index: -2; background-image: radial-gradient(rgba(255,255,255,0.05) 1.4px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(circle at center, black, transparent 78%); pointer-events: none; }
.bg-orb { position: fixed; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(80px); z-index: -2; opacity: 0.35; }
.orb-1 { top: -6rem; right: -6rem; background: var(--c-primary); }
.orb-2 { bottom: -8rem; left: -5rem; background: var(--c-primary-2); }

.color-indicator { position: fixed; top: 18px; left: 18px; width: 60px; height: 60px; border-radius: 50%; background: var(--grad-primary); z-index: 999; box-shadow: 0 0 40px var(--c-glow), 0 0 80px var(--c-glow-2); animation: indicator-pulse 2.4s ease-in-out infinite; border: 2px solid rgba(255,255,255,0.18); transition: background 1s linear, box-shadow 1s linear; }
@keyframes indicator-pulse { 0%,100%{transform: scale(1);} 50%{transform: scale(1.12);} }

.shell { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0 14px; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-avatar-wrap { width: 70px; height: 70px; border-radius: 24px; padding: 4px; background: var(--grad-primary); position: relative; box-shadow: 0 14px 40px var(--c-glow); transition: background 1s ease, box-shadow 1s ease; animation: float 6s ease-in-out infinite; }
.brand-glow { position: absolute; inset: -10px; border-radius: 30px; background: var(--grad-primary); opacity: 0.4; filter: blur(20px); z-index: -1; animation: pulse-glow 3s ease-in-out infinite; transition: background 1s ease; }
.brand-avatar { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; filter: grayscale(20%); }
.brand-text strong { display: block; font-size: 1.3rem; font-weight: 900; }
.brand-text p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

.top-actions, .hero-actions, .quick-links, .form-actions, .footer-links, .hero-highlights { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.layout { display: flex; flex-direction: column; gap: 32px; padding-bottom: 40px; }

.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 13px 20px; border-radius: 16px; font-weight: 800; font-size: 0.95rem; transition: transform 0.28s cubic-bezier(.2,.7,.2,1), box-shadow 0.28s ease, background 1s linear, border-color 0.28s ease; isolation: isolate; overflow: hidden; cursor: pointer; background: rgba(255,255,255,0.06); color: var(--text); }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 70%); transform: translateX(-100%); transition: transform 0.7s ease; z-index: -1; }
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 34px rgba(0,0,0,0.32); }
.btn-primary { color: white; background: var(--grad-button); box-shadow: 0 10px 28px var(--c-glow); }
.btn-secondary { color: white; background: linear-gradient(135deg, #0f172a, #1d4ed8, #06b6d4); box-shadow: 0 10px 24px rgba(6,182,212,0.28); }
.btn-soft { color: white; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(10px); }
.btn-outline { color: white; background: transparent; border: 1px solid rgba(255,255,255,0.16); }
.btn-icon { font-size: 1.05rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); position: relative; padding: 26px; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.glass { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; }

/* ============== البطل الرئيسي ============== */
.hero { padding: 48px 36px; overflow: hidden; position: relative; }
.hero-glow { position: absolute; inset: -20%; background: var(--grad-aura); filter: blur(60px); opacity: 0.7; z-index: 0; pointer-events: none; animation: hero-glow-spin 24s linear infinite; transition: background 1s linear; }
@keyframes hero-glow-spin { from{transform: rotate(0deg) scale(1);} to{transform: rotate(360deg) scale(1.05);} }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-text { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.88rem; letter-spacing: 0.12em; padding: 8px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-weight: 700; backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; background: var(--c-primary); border-radius: 50%; box-shadow: 0 0 12px var(--c-primary); animation: dot-pulse 1.6s ease-in-out infinite; transition: background 1s linear; }
@keyframes dot-pulse { 0%,100%{transform: scale(1); opacity: 1;} 50%{transform: scale(1.5); opacity: 0.6;} }
.hero h1 { margin: 18px 0 16px; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; transition: background 1s linear; filter: drop-shadow(0 4px 18px var(--c-glow)); }
.hero p { margin: 0 auto 24px; color: var(--text-2); line-height: 2; max-width: 720px; font-size: 1.05rem; }
.hero-actions { justify-content: center; }
.quick-links { justify-content: center; gap: 14px; margin-top: 18px; }
.quick-links a { padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; font-weight: 600; }
.quick-links a:hover { border-color: var(--c-primary); background: var(--grad-primary-soft); transform: translateY(-2px); transition: border-color 0.3s ease, background 1s linear; }
.link-pulse { width: 8px; height: 8px; background: var(--c-primary); border-radius: 50%; box-shadow: 0 0 10px var(--c-primary); animation: dot-pulse 1.6s ease-in-out infinite; transition: background 1s linear; }

/* الصورة المتحركة */
.hero-portrait-wrap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; padding: 30px 0; }
.portrait-aura { position: absolute; inset: 0; margin: auto; width: 380px; height: 380px; border-radius: 50%; background: var(--grad-aura); filter: blur(40px); z-index: 0; animation: aura-pulse 4s ease-in-out infinite; transition: background 1s linear; }
@keyframes aura-pulse { 0%,100%{transform: scale(1); opacity: 0.6;} 50%{transform: scale(1.2); opacity: 1;} }
.portrait-ring { position: absolute; inset: 0; margin: auto; width: 360px; height: 360px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.18); z-index: 1; animation: spin-slow 30s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.portrait-orbit { position: absolute; border-radius: 50%; z-index: 2; pointer-events: none; }
.orbit-1 { width: 14px; height: 14px; background: var(--c-primary); box-shadow: 0 0 20px var(--c-primary); top: 8%; animation: orbit-1 14s linear infinite; transition: background 1s linear; }
.orbit-2 { width: 10px; height: 10px; background: var(--c-primary-2); box-shadow: 0 0 18px var(--c-primary-2); bottom: 12%; animation: orbit-2 18s linear infinite reverse; transition: background 1s linear; }
.orbit-3 { width: 8px; height: 8px; background: var(--c-primary-3); box-shadow: 0 0 16px var(--c-primary-3); top: 50%; animation: orbit-3 22s linear infinite; transition: background 1s linear; }
@keyframes orbit-1 { 0%{transform: rotate(0deg) translateX(190px) rotate(0deg);} 100%{transform: rotate(360deg) translateX(190px) rotate(-360deg);} }
@keyframes orbit-2 { 0%{transform: rotate(0deg) translateX(220px) rotate(0deg);} 100%{transform: rotate(360deg) translateX(220px) rotate(-360deg);} }
@keyframes orbit-3 { 0%{transform: rotate(0deg) translateX(150px) rotate(0deg);} 100%{transform: rotate(360deg) translateX(150px) rotate(-360deg);} }
.portrait-card { position: relative; width: 320px; height: 420px; border-radius: 36px; padding: 14px; background: var(--card-strong); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 70px var(--c-glow); z-index: 3; overflow: hidden; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform: translateY(0) rotate(0);} 50%{transform: translateY(-18px) rotate(0.5deg);} }
.portrait-shine { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%,100%{transform: translateX(-30%) translateY(0);} 50%{transform: translateX(30%) translateY(0);} }
.portrait-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--c-primary); border-radius: 4px; transition: border-color 1s linear; z-index: 4; }
.corner-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.portrait-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; filter: grayscale(15%) contrast(1.05); border: 1px solid var(--line); }
.portrait-card:hover .portrait-image { filter: grayscale(0%) contrast(1.1); }
.portrait-caption { margin-top: 12px; text-align: center; }
.portrait-caption span { display: inline-block; font-size: 0.78rem; letter-spacing: 0.16em; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.portrait-caption strong { display: block; margin: 10px 0 8px; font-size: 1.4rem; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; transition: background 1s linear; }
.portrait-caption p { margin: 0; line-height: 1.85; color: var(--text-2); font-size: 0.94rem; }
.portrait-particles { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; pointer-events: none; }
.portrait-particles span { position: absolute; width: 6px; height: 6px; background: var(--c-primary); border-radius: 50%; opacity: 0.7; box-shadow: 0 0 10px var(--c-primary); animation: particle-rise 6s ease-in infinite; transition: background 1s linear; }
.portrait-particles span:nth-child(1) { left: 8%; bottom: 0; animation-delay: 0s; }
.portrait-particles span:nth-child(2) { left: 22%; bottom: 0; animation-delay: 1s; }
.portrait-particles span:nth-child(3) { left: 36%; bottom: 0; animation-delay: 2s; }
.portrait-particles span:nth-child(4) { left: 50%; bottom: 0; animation-delay: 0.4s; }
.portrait-particles span:nth-child(5) { left: 64%; bottom: 0; animation-delay: 1.5s; }
.portrait-particles span:nth-child(6) { left: 78%; bottom: 0; animation-delay: 0.8s; }
.portrait-particles span:nth-child(7) { left: 92%; bottom: 0; animation-delay: 2.5s; }
.portrait-particles span:nth-child(8) { left: 14%; bottom: 0; animation-delay: 3s; }
@keyframes particle-rise { 0%{transform: translateY(0) scale(0.5); opacity: 0;} 20%{opacity: 0.9;} 100%{transform: translateY(-460px) scale(1.2); opacity: 0;} }

/* البطاقات العائمة والـ Highlights */
.status-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 880px; margin: 0 auto; width: 100%; }
.floating-card { position: relative; padding: 22px 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(18px); animation: float-card 7s ease-in-out infinite; }
.floating-card:nth-child(2) { animation-delay: -3s; }
@keyframes float-card { 0%,100%{transform: translateY(0);} 50%{transform: translateY(-10px);} }
.floating-card:hover { border-color: var(--c-primary); box-shadow: 0 0 36px var(--c-glow); }
.card-pulse { position: absolute; top: 14px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 14px var(--c-primary); animation: dot-pulse 1.4s ease-in-out infinite; transition: background 1s linear; }
.floating-card span, .hero-stat span { color: var(--muted); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.05em; }
.floating-card strong, .hero-stat strong { display: block; font-size: 2rem; margin-top: 6px; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; transition: background 1s linear; }
.floating-card small, .hero-stat small { display: block; line-height: 1.7; color: var(--muted); margin-top: 4px; }
.hero-highlights { grid-column: 1 / -1; justify-content: center; margin-top: 6px; }
.highlight-chip { position: relative; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text-2); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; font-weight: 600; }
.highlight-chip:hover { border-color: var(--c-primary); background: var(--grad-primary-soft); transform: translateY(-2px); }
.chip-spark { width: 6px; height: 6px; background: var(--c-accent); border-radius: 50%; box-shadow: 0 0 10px var(--c-accent); animation: dot-pulse 1.8s ease-in-out infinite; transition: background 1s linear; }

/* بطاقات رأسيّة */
.features-grid-section { padding: 0; }
.section-head.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding: 0 6px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head.compact { margin-bottom: 18px; }
.section-head h1 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; transition: background 1s linear; }
.section-head p { color: var(--muted); line-height: 1.85; margin: 8px 0 0; }
.head-sub { color: var(--muted); font-weight: 700; font-size: 0.95rem; }

.vertical-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vcard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 32px; backdrop-filter: blur(22px); overflow: hidden; transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease, box-shadow 0.4s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.vcard::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--grad-primary); opacity: 0; transition: opacity 0.4s ease, background 1s linear; z-index: -1; filter: blur(20px); }
.vcard:hover { transform: translateY(-6px); border-color: var(--c-primary); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 50px var(--c-glow); }
.vcard:hover::before { opacity: 0.5; }
.vcard-wide { grid-column: 1 / -1; }
.vcard-number { position: absolute; top: 16px; left: 16px; font-size: 1.1rem; font-weight: 900; color: rgba(255,255,255,0.1); letter-spacing: 0.08em; transition: color 1s linear; }
.vcard:hover .vcard-number { color: var(--c-primary); }
.vcard-icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad-primary); margin-bottom: 20px; position: relative; box-shadow: 0 12px 30px var(--c-glow); transition: background 1s linear, box-shadow 1s linear; }
.vcard-icon-wrap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad-primary); filter: blur(20px); opacity: 0.6; z-index: -1; animation: pulse-glow 2.6s ease-in-out infinite; transition: background 1s linear; }
@keyframes pulse-glow { 0%,100%{opacity: 0.35; transform: scale(0.95);} 50%{opacity: 0.7; transform: scale(1.1);} }
.vcard-icon { font-size: 1.8rem; }
.vcard-eyebrow { display: inline-block; font-size: 0.84rem; letter-spacing: 0.14em; font-weight: 800; color: var(--c-primary); padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); margin-bottom: 8px; transition: color 1s linear; }
.vcard h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.01em; }
.vcard > .vcard-body > p { color: var(--text-2); line-height: 1.85; margin: 0 0 14px; }

.feature-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); transition: all 0.3s ease; }
.feature-link:hover { transform: translateX(-4px); border-color: var(--c-primary); background: var(--grad-primary-soft); }
.feature-link-accent { background: linear-gradient(135deg, rgba(37,211,102,0.11), rgba(6,182,212,0.1)); }
.link-bullet { width: 8px; height: 8px; background: var(--c-primary); border-radius: 50%; box-shadow: 0 0 10px var(--c-primary); flex: 0 0 8px; transition: background 1s linear; }
.feature-link > div { flex: 1; }
.feature-link > div > span { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; }
.feature-link strong { display: block; color: white; font-size: 1rem; font-weight: 800; line-height: 1.7; word-break: break-word; }

.feature-list { list-style: none; padding: 0; margin: 12px 0 0; line-height: 2; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--text-2); }
.list-dot { width: 8px; height: 8px; background: var(--c-primary); border-radius: 50%; box-shadow: 0 0 10px var(--c-primary); flex: 0 0 8px; transition: background 1s linear; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.stat-card { position: relative; padding: 18px 16px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); text-align: center; overflow: hidden; transition: all 0.3s ease; }
.stat-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-primary); opacity: 0; transition: opacity 0.3s ease; z-index: 0; }
.stat-card:hover { transform: translateY(-4px); border-color: var(--c-primary); }
.stat-card:hover::before { opacity: 0.15; }
.stat-card span, .stat-card strong { position: relative; z-index: 1; }
.stat-card span { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.stat-card strong { display: block; font-size: 1.6rem; font-weight: 900; color: white; }
.cta-blue { box-shadow: inset 0 0 0 1px rgba(96,165,250,0.18); }
.cta-purple { box-shadow: inset 0 0 0 1px rgba(192,132,252,0.18); }
.cta-green { box-shadow: inset 0 0 0 1px rgba(74,222,128,0.18); }
.cta-orange { box-shadow: inset 0 0 0 1px rgba(251,191,36,0.18); }
.cta-cyan { box-shadow: inset 0 0 0 1px rgba(34,211,238,0.18); }
.cta-pink { box-shadow: inset 0 0 0 1px rgba(244,114,182,0.18); }
.cta-gold { box-shadow: inset 0 0 0 1px rgba(250,204,21,0.18); }
.cta-red { box-shadow: inset 0 0 0 1px rgba(248,113,113,0.18); }

.progress-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.progress-card { padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 0.88rem; }
.label-row span { color: var(--muted); }
.label-row strong { color: var(--c-primary); font-weight: 900; transition: color 1s linear; }
.progress-bar { width: 100%; height: 10px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-primary); transition: width 0.6s ease, background 1s linear; }
.bar-success { background: linear-gradient(135deg, #25d366, #06b6d4) !important; }
.updated-tag { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }

/* النماذج */
.comment-form, .single-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.comment-form label { display: flex; flex-direction: column; gap: 8px; }
.comment-form label span { color: var(--text-2); font-weight: 700; font-size: 0.9rem; }
.comment-form input, .comment-form textarea, .reply-form textarea { border: 1px solid var(--line); background: rgba(4, 8, 22, 0.72); color: white; border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.comment-form textarea, .reply-form textarea { resize: vertical; min-height: 130px; }
.comment-form input:focus, .comment-form textarea:focus, .reply-form textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-glow); }
.full { grid-column: 1 / -1; }
.form-status { min-height: 24px; margin: 0; }
.form-status.success { color: #86efac; }
.form-status.error { color: #fca5a5; }

.comments-feed { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.comments-feed.empty-state { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; }
.comment-item { padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); transition: border-color 0.3s ease, background 0.3s ease; }
.comment-item:hover { border-color: var(--c-primary); background: var(--grad-primary-soft); }
.comment-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.comment-name { font-weight: 800; }
.comment-message { line-height: 1.9; color: #e9edff; white-space: pre-wrap; }
.comment-meta { font-size: 0.82rem; color: var(--muted); }
.comment-contact { font-size: 0.92rem; color: #bfdbfe; margin-bottom: 8px; }
.comment-reply { margin-top: 14px; padding: 14px; border-radius: 18px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.14); }
.comment-reply strong { display: block; margin-bottom: 8px; }

.mini-note-box { padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); margin-top: 16px; }
.mini-note-box strong { display: block; margin-bottom: 8px; }
.mini-note-box p { color: var(--muted); margin: 0; line-height: 1.9; }

/* ============== المنطقة الحساسة: تنسيق لوحة الإعدادات (لوحة المالك) ============== */
.panel-body { background: var(--bg); }
.panel-layout { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
.panel-layout-extended { margin-top: 16px; }
.panel-topbar { padding: 20px 0; }
.panel-login-card { padding: 30px; }
.panel-login-help { margin-top: 18px; padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.panel-login-help strong { display: block; margin-bottom: 6px; color: var(--panel-p); }
.panel-login-help p { margin: 0; color: var(--muted); line-height: 1.85; }
.panel-header { padding: 26px 30px; }
.panel-header h2 { margin: 8px 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 900; }
.panel-footer { padding: 14px 4px; }
.panel-footer p { margin: 0; line-height: 1.8; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(34, 197, 94, 0.18); border: 1px solid rgba(34, 197, 94, 0.3); color: #bbf7d0; font-size: 0.85rem; font-weight: 800; }

/* لوحة الإعدادات - الشبكة الرأسيّة */
.panel-settings {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.panel-settings::before { display: none; }
.panel-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.panel-group::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: var(--panel-p);
  opacity: 0.06;
  filter: blur(50px);
  pointer-events: none;
  border-radius: 50%;
  transform: translate(40%, -40%);
}
.panel-group:hover { border-color: var(--panel-p); box-shadow: 0 18px 50px rgba(0,0,0,0.4), 0 0 30px var(--panel-glow); }
.panel-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-group-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 22px var(--panel-glow);
  flex: 0 0 48px;
}
.panel-group-title { display: flex; flex-direction: column; gap: 2px; }
.panel-group-title strong { font-size: 1.1rem; font-weight: 900; }
.panel-group-title span { color: var(--muted); font-size: 0.85rem; }

.panel-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.panel-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel-field--full { grid-column: 1 / -1; }
.panel-field > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-2);
}
.panel-field input,
.panel-field select,
.panel-field textarea {
  border: 1px solid var(--line);
  background: rgba(4, 8, 22, 0.75);
  color: white;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  min-height: 44px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.panel-field textarea { min-height: 110px; resize: vertical; }
.panel-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--panel-p) 50%), linear-gradient(135deg, var(--panel-p) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-left: 36px;
  padding-right: 36px;
  cursor: pointer;
}
.panel-field input:focus,
.panel-field select:focus,
.panel-field textarea:focus {
  border-color: var(--panel-p);
  box-shadow: 0 0 0 4px var(--panel-glow);
  background: rgba(8, 12, 28, 0.85);
}
.panel-field-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-weight: 800;
}
.panel-field-switch span { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-p); box-shadow: 0 0 10px var(--panel-p); }
.panel-save-bar {
  position: sticky;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(11, 16, 31, 0.92);
  border: 1px solid var(--panel-p);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 30px var(--panel-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
}
.panel-save-bar > div { display: flex; gap: 10px; }
.panel-save-bar .form-status { margin: 0; }
.hint-line { display: block; color: var(--muted); font-size: 0.85rem; }

/* متجر المزايا */
.wallet-grid, .store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dashboard-two-col, .feature-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.wallet-card, .status-visibility-card, .coin-store-card, .panel-pair-card, .panel-password-card { padding: 26px; }
.wallet-balance { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 16px; }
.wallet-balance strong { font-size: 2.6rem; font-weight: 900; background: linear-gradient(135deg, var(--panel-p), var(--panel-p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wallet-balance span { color: var(--muted); font-size: 1.05rem; }
.wallet-tx { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-tx strong { font-weight: 900; }
.wallet-tx small { color: var(--muted); }
.wallet-tx.dir-plus strong { color: #86efac; }
.wallet-tx.dir-minus strong { color: #fca5a5; }

.store-card { padding: 18px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); transition: all 0.3s ease; }
.store-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-card h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 900; }
.store-card p { color: var(--muted); line-height: 1.7; margin: 0 0 12px; font-size: 0.92rem; }
.store-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.store-meta strong { background: linear-gradient(135deg, var(--panel-p), var(--panel-p2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.15rem; font-weight: 900; }
.store-card-buy { width: 100%; margin-top: 12px; justify-content: center; }

.tier-badge { display: inline-flex; align-items: center; margin-inline-start: 12px; padding: 8px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; color: #cbd5e1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.tier-badge.vip { color: #fde68a; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.28); }

/* سجل التفاعلات */
.reaction-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(129, 140, 248, 0.1)); border: 1px solid rgba(34, 211, 238, 0.2); margin-bottom: 18px; }
.reaction-hero strong { font-size: 2rem; font-weight: 900; background: linear-gradient(135deg, var(--panel-p), var(--panel-p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reaction-log { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.reaction-log.empty-state { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; }
.reaction-item { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.reaction-item-emoji { font-size: 1.6rem; width: 44px; height: 44px; border-radius: 14px; background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.22); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; }
.reaction-item-body { flex: 1; }
.reaction-item-body strong { display: block; font-weight: 800; }
.reaction-item-body small { color: var(--muted); }
.reaction-item-status { font-size: 0.85rem; color: #bbf7d0; background: rgba(37,211,102,0.12); padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(37,211,102,0.22); }

/* بطاقة عدّاد الأرقام الحيّ (بدال السجل الأفقي) */
.reaction-count-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 30px 28px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  min-height: 150px;
}
.reaction-count-card.empty-state { color: var(--muted); }
.reaction-count-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at center, var(--count-glow, var(--c-primary)) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.7;
  z-index: -1;
  animation: pulse-glow 3s ease-in-out infinite;
  transition: background 0.6s linear;
}
.reaction-count-ring {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--grad-count, linear-gradient(135deg, var(--c-primary), var(--c-primary-2)));
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 40px var(--count-glow, var(--c-glow));
  flex: 0 0 130px;
  transition: background 0.6s linear, box-shadow 0.6s linear;
  animation: count-float 4s ease-in-out infinite;
}
.reaction-count-ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--count-stroke, var(--c-primary));
  opacity: 0.55;
  animation: spin-slow 18s linear infinite;
  transition: border-color 0.6s linear;
}
.reaction-count-ring::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--count-glow, var(--c-glow)) 0%, transparent 70%);
  opacity: 0.6;
  z-index: -1;
  animation: aura-pulse 3s ease-in-out infinite;
  transition: background 0.6s linear;
}
.reaction-count-num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  animation: count-pop 0.5s ease-out;
}
.reaction-count-label {
  font-size: 0.85rem;
  opacity: 0.92;
  margin-top: 2px;
  letter-spacing: 0.08em;
}
.reaction-count-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.reaction-count-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--count-accent, var(--c-primary));
  text-transform: none;
  transition: color 0.6s linear;
}
.reaction-count-title {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--grad-count-text, var(--grad-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background 0.6s linear;
}
.reaction-count-sub { color: var(--muted); font-size: 0.88rem; }

.reaction-count-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.reaction-count-orbit span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 12px var(--c-primary);
  opacity: 0.7;
  animation: particle-rise 6s ease-in infinite;
  transition: background 0.6s linear;
}
.reaction-count-orbit span:nth-child(1) { left: 12%; bottom: 0; animation-delay: 0s; }
.reaction-count-orbit span:nth-child(2) { left: 50%; bottom: 0; animation-delay: 2s; }
.reaction-count-orbit span:nth-child(3) { left: 85%; bottom: 0; animation-delay: 4s; }

@keyframes count-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}
@keyframes count-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* بطاقات الفوتر */
.footer-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.foot-card { position: relative; padding: 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: all 0.3s ease; }
.foot-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-primary); opacity: 0; transition: opacity 0.4s ease, background 1s linear; z-index: -1; }
.foot-card:hover { transform: translateY(-4px); border-color: var(--c-primary); }
.foot-card:hover::before { opacity: 0.12; }
.foot-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 12px; box-shadow: 0 10px 24px var(--c-glow); transition: background 1s linear; }
.foot-card span { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.foot-card strong { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.foot-card .arrow { transition: transform 0.3s ease; display: inline-block; }
.foot-card .btn:hover .arrow { transform: translateX(-4px); }

/* ============== تذييل الصفحة الرئيسية ============== */
.site-footer { margin: 0 auto 36px; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-copy strong { display: block; margin-bottom: 6px; }
.footer-copy p { margin: 0; line-height: 1.8; color: var(--muted); }
.footer-links a { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); transition: all 0.3s ease; }
.footer-links a:hover { border-color: var(--c-primary); background: var(--grad-primary-soft); }

/* ============== صفحة المساعد الذكي ============== */
.ai-body { background: var(--bg); }
.ai-topbar { padding-bottom: 22px; }
.ai-layout { display: flex; flex-direction: column; gap: 28px; padding-bottom: 40px; }
.ai-hero { overflow: hidden; }
.ai-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; }
.ai-hero-copy p { max-width: 760px; }
.glass-card-modern {
  position: relative;
  padding: 28px;
  min-height: 280px;
  border-radius: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.34), 0 0 40px rgba(0,225,255,0.14);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.glass-card-modern::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.14), transparent 55%);
  animation: spin-slow 18s linear infinite;
}
.ai-avatar-core {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00e1ff, #6a5cff, #ff2d92);
  box-shadow: 0 0 30px rgba(0,225,255,0.35);
  z-index: 1;
}
.typing-visual-modern { display: inline-flex; gap: 8px; align-items: center; z-index: 1; }
.typing-visual-modern span,
.ai-typing-bubble span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00e1ff;
  box-shadow: 0 0 14px rgba(0,225,255,0.65);
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-visual-modern span:nth-child(2), .ai-typing-bubble span:nth-child(2) { animation-delay: -0.18s; }
.typing-visual-modern span:nth-child(3), .ai-typing-bubble span:nth-child(3) { animation-delay: -0.36s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.55); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}
.ai-chat-shell { overflow: hidden; }
.ai-chat-grid { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 20px; align-items: start; }
.ai-side-panel { display: flex; flex-direction: column; gap: 18px; }
.ai-suggestion-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ai-suggestion {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: right;
  font-weight: 700;
  transition: all 0.25s ease;
}
.ai-suggestion:hover { border-color: var(--c-primary); background: var(--grad-primary-soft); transform: translateY(-2px); }
.ai-conversation-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(6,10,25,0.78);
  padding: 18px;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(18px);
}
.ai-messages {
  flex: 1;
  min-height: 420px;
  max-height: 62vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-inline-end: 6px;
}
.ai-msg { display: flex; flex-direction: column; gap: 8px; max-width: min(85%, 720px); }
.ai-msg-user { align-self: flex-start; }
.ai-msg-bot { align-self: flex-end; }
.ai-msg-badge { font-size: 0.82rem; color: var(--muted); font-weight: 800; padding-inline: 6px; }
.ai-msg-bubble {
  border-radius: 22px;
  padding: 16px 18px;
  line-height: 1.95;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.24);
}
.ai-msg-user .ai-msg-bubble { background: linear-gradient(135deg, rgba(255,45,146,0.16), rgba(106,92,255,0.16)); }
.ai-msg-bot .ai-msg-bubble { background: linear-gradient(135deg, rgba(0,225,255,0.12), rgba(106,92,255,0.12)); }
.ai-typing-bubble { display: inline-flex; align-items: center; gap: 8px; min-width: 86px; }
.ai-chat-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.ai-input-wrap textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 20px;
  padding: 16px 18px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.ai-input-wrap textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(255,45,146,0.16);
  transform: translateY(-1px);
}
.ai-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ai-particles { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ai-particle {
  position: absolute;
  bottom: -10vh;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,225,255,0.7);
  box-shadow: 0 0 18px rgba(0,225,255,0.8);
  animation: aiParticleRise linear infinite;
}
@keyframes aiParticleRise {
  from { transform: translateY(0) translateX(0) scale(0.7); opacity: 0; }
  15% { opacity: 0.85; }
  to { transform: translateY(-120vh) translateX(30px) scale(1.2); opacity: 0; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============== لوحة المطور (لون وردي) ============== */
.admin-body { background: var(--bg); }
.admin-layout { display: flex; flex-direction: column; gap: 24px; padding-top: 60px; padding-bottom: 40px; min-height: 100vh; align-items: center; justify-content: center; }
.admin-login-card, .admin-comments-card { padding: 32px 36px; max-width: 900px; width: 100%; margin: 0 auto; }
.admin-login-card .btn { margin-top: 14px; }
.admin-login-card h1 { font-size: 1.8rem; margin: 10px 0 6px; font-weight: 900; }
.admin-login-card p { color: var(--muted); line-height: 1.85; margin: 0; }
.admin-comments-card .btn { margin-top: 16px; }
.reply-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* ============== Reveal ============== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hidden { display: none !important; }

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

@media (max-width: 980px) {
  .wallet-grid, .store-grid, .dashboard-two-col, .feature-badges, .panel-fields, .ai-hero-grid, .ai-chat-grid { grid-template-columns: 1fr; }
  .footer-cards { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .vertical-cards { grid-template-columns: 1fr; }
  .vcard-wide { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-wrap { grid-template-columns: 1fr; }
  .status-stack { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: stretch; }
  .top-actions { width: 100%; }
}
@media (max-width: 720px) {
  .hero { padding: 32px 22px; }
  .vcard { padding: 24px; }
  .panel-group { padding: 22px; }
  .comment-form, .single-col { grid-template-columns: 1fr; }
  .reaction-hero, .wallet-tx, .reaction-item, .store-card-head, .store-meta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .top-actions, .form-actions, .footer-links, .ai-form-actions { flex-direction: column; width: 100%; }
  .top-actions .btn, .form-actions .btn, .footer-links a, .ai-form-actions .btn { width: 100%; justify-content: center; }
  .section-head.main-head { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .portrait-card { width: 280px; height: 380px; }
  .portrait-aura, .portrait-ring { width: 320px; height: 320px; }
  .color-indicator { width: 48px; height: 48px; top: 10px; left: 10px; }
  .ai-conversation-card { min-height: 560px; }
  .ai-msg { max-width: 100%; }
}


/* ===== 2026 landing + panel refresh ===== */
.welcome-marquee-shell { padding-top: 18px; }
.welcome-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(37,211,102,0.16), rgba(14,165,233,0.14), rgba(168,85,247,0.16));
  box-shadow: 0 14px 40px rgba(0,0,0,0.22), 0 0 30px var(--c-glow);
  backdrop-filter: blur(18px);
}
.welcome-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,6,20,0.88), transparent 12%, transparent 88%, rgba(5,6,20,0.88));
  pointer-events: none;
}
.welcome-track {
  display: flex;
  width: max-content;
  gap: 56px;
  padding: 16px 24px;
  white-space: nowrap;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  font-weight: 900;
  color: #fff;
  animation: marquee-rtl 14s linear infinite;
}
.welcome-track span { text-shadow: 0 0 14px rgba(255,255,255,0.18); }
@keyframes marquee-rtl {
  from { transform: translateX(10%); }
  to { transform: translateX(-55%); }
}

.layout-tight { gap: 28px; }
.section-shell { display: flex; flex-direction: column; gap: 18px; }
.landing-hero { padding: 34px; overflow: hidden; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); gap: 28px; align-items: stretch; }
.landing-copy { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.whatsapp-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wa-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.wa-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 65%);
}
.wa-card:hover { transform: translateY(-4px); border-color: var(--c-primary); box-shadow: 0 14px 34px rgba(0,0,0,0.3), 0 0 24px var(--c-glow); }
.wa-card strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.wa-card p { margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--muted); }
.wa-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 58px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}
.wa-icon svg { width: 34px; height: 34px; }
.wa-official .wa-icon { background: linear-gradient(135deg, #25d366, #128c7e); }
.wa-business .wa-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.wa-classic .wa-icon { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

.pairing-showcase { position: relative; padding: 24px; border-radius: 28px; background: rgba(9, 14, 35, 0.82); border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(0,0,0,0.36); }
.pairing-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.25); color: #86efac; font-weight: 800; font-size: 0.85rem; margin-bottom: 14px; }
.public-pair-form { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.pair-terms { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.pair-terms input { width: 18px; height: 18px; accent-color: #25d366; }
.pair-result { margin-top: 16px; padding: 18px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid rgba(37,211,102,0.22); }
.pair-code-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pair-code-line code { direction: ltr; font-size: 1.25rem; font-weight: 900; letter-spacing: 0.2em; padding: 12px 16px; border-radius: 16px; background: rgba(37,211,102,0.12); color: #bbf7d0; }
.pair-copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pair-copy-row .hint-line { margin: 0; }
.pair-steps { margin: 14px 0 0; padding: 0 18px 0 0; line-height: 2; color: var(--text-2); }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card-lite { padding: 22px; border-radius: 24px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-card strong { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--grad-primary); margin-bottom: 14px; font-size: 1rem; font-weight: 900; }
.step-card h3 { margin: 0 0 8px; font-size: 1.14rem; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.85; }
.feature-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 20px; }
.feature-spotlight, .feature-list-card { padding: 28px; }
.comments-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; }
.site-footer { padding: 0 0 38px; }
.site-footer p { margin: 0; padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); text-align: center; color: var(--muted); }
.site-footer a { color: #93c5fd; }
.panel-anchor-rail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; position: sticky; top: 12px; z-index: 8; }
.panel-anchor-rail a { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text-2); font-weight: 700; }
.panel-anchor-rail a:hover { border-color: var(--panel-p); color: white; }

#publicPairNumber,
#portalNumber,
#panelNumberInput,
#panelPairNumber {
  background: #ffffff !important;
  color: #000000 !important;
  caret-color: #000000;
  border-color: rgba(255,255,255,0.28) !important;
  font-weight: 800;
}
#publicPairNumber::placeholder,
#portalNumber::placeholder,
#panelNumberInput::placeholder,
#panelPairNumber::placeholder {
  color: #475569 !important;
}

@media (max-width: 1100px) {
  .landing-grid, .feature-showcase, .comments-layout { grid-template-columns: 1fr; }
  .stats-strip, .steps-grid, .whatsapp-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .landing-hero { padding: 22px; }
  .stats-strip, .steps-grid, .whatsapp-showcase { grid-template-columns: 1fr; }
  .pair-code-line { align-items: flex-start; }
  .pair-code-line code { width: 100%; text-align: center; letter-spacing: 0.12em; }
  .pair-copy-row { align-items: stretch; }
  .pair-copy-row .btn { width: 100%; justify-content: center; }
  .panel-anchor-rail { position: static; }
}


/* ===== bot vertical refresh 2026 ===== */
.bot-vertical-single {
  grid-template-columns: 1fr;
  max-width: 1040px;
  margin: 0 auto;
}
.bot-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bot-mini-stats-grid {
  margin-top: 18px;
}
.deploy-only-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.9fr);
}
.comment-form input,
.comment-form textarea,
.public-pair-form input {
  color: #fff;
}
@media (max-width: 1100px) {
  .bot-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bot-stats-grid, .bot-mini-stats-grid, .deploy-only-grid { grid-template-columns: 1fr; }
}

/* Fares shared analog clock and one-second luxury color cycle */
.fares-clock-widget{display:flex;align-items:center;gap:14px;padding:10px 14px;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:rgba(10,16,38,.72);box-shadow:0 0 28px var(--c-glow,rgba(37,211,102,.25));animation:faresHue 8s linear infinite;z-index:5}.fares-clock-widget strong{display:block;font-size:1.15rem;color:#fff}.fares-clock-widget small{display:block;color:#b9c6e5;font-size:.76rem;margin-top:3px}.analog-clock{width:72px;height:72px;border-radius:50%;position:relative;border:3px solid var(--c-primary,#25d366);background:radial-gradient(circle,#15234a 0 58%,#0a1026 59%);box-shadow:0 0 22px var(--c-glow,rgba(37,211,102,.4));transition:border-color 1s,box-shadow 1s}.clock-number{position:absolute;font-size:.58rem;font-weight:900;color:#fff;z-index:1}.n12{top:3px;left:50%;transform:translateX(-50%)}.n3{right:5px;top:50%;transform:translateY(-50%)}.n6{bottom:3px;left:50%;transform:translateX(-50%)}.n9{left:5px;top:50%;transform:translateY(-50%)}.hand{position:absolute;left:50%;bottom:50%;width:2px;border-radius:5px;transform-origin:bottom center;z-index:2}.hand-hour{height:20px;background:#fff}.hand-minute{height:27px;background:#8be9fd}.hand-second{height:30px;background:#fb7185;width:1px}.clock-center{position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3}@keyframes faresHue{0%{filter:hue-rotate(0deg)}50%{filter:hue-rotate(55deg)}100%{filter:hue-rotate(0deg)}}
