/* ═══════════════════════════════════════════
   CoreX AI — Stylesheet v7 (CoreX 3)
   Author: عبدالرحمن محمد عبدالنافع
═══════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --bg: #f3f1ff;
  --bg-card: rgba(255,255,255,0.88);
  --bg-card-hover: rgba(255,255,255,0.98);
  --bg-glass: rgba(255,255,255,0.7);
  --bg-input: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(168,85,247,0.4);
  --primary: #a855f7;
  --primary-hover: #9333ea;
  --secondary: #6366f1;
  --text: #0f0f0f;
  --text-sec: #374151;
  --text-muted: #52525b;
  --text-subtle: #9ca3af;
  --success: #10b981;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-glow: 0 0 32px rgba(168,85,247,0.15);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --nav-height: 60px;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Space Grotesk', sans-serif;
  --t: 0.25s cubic-bezier(0.4,0,0.2,1);
}
html.dark {
  --bg: #060610;
  --bg-card: rgba(13,13,26,0.75);
  --bg-card-hover: rgba(20,20,40,0.95);
  --bg-glass: rgba(8,8,18,0.7);
  --bg-input: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(168,85,247,0.5);
  --text: #f2f0ff;
  --text-sec: #d1d5db;
  --text-muted: #9ca3af;
  --text-subtle: #4b5563;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(168,85,247,0.12);
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .3s, color .3s;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media(min-width:768px) { .container { padding: 0 32px; } }

/* ─── Section ─── */
.section { padding: 72px 0; position: relative; z-index: 1; }
@media(min-width:768px) { .section { padding: 96px 0; } }

.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: clamp(1.65rem,5vw,2.8rem); font-weight: 800; margin: 10px 0 12px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-muted); font-size: .94rem; max-width: 540px; margin: 0 auto; }

.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.2);
  color: var(--primary); font-size: .78rem; font-weight: 700; letter-spacing: .3px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius);
  font-family: var(--font-ar); font-weight: 700; font-size: .9rem;
  transition: all var(--t); cursor: pointer; border: 2px solid transparent;
  white-space: nowrap; text-align: center; letter-spacing: .1px;
}
.btn-primary {
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(168,85,247,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(168,85,247,.45);
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(168,85,247,.06);
}
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,85,247,.3);
}
.btn-sm { padding: 8px 16px; font-size: .82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 30px; font-size: .96rem; border-radius: 14px; }
.btn-full { width: 100%; justify-content: center; }

.gradient-text {
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ══════════ BLOBS ══════════ */
.blob-container { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.blob-1 { width: 500px; height: 500px; background: rgba(168,85,247,.22); top: -100px; left: -100px; animation: bf1 20s ease-in-out infinite; }
.blob-2 { width: 400px; height: 400px; background: rgba(99,102,241,.16); top: 30%; right: -80px; animation: bf2 25s ease-in-out infinite; }
.blob-3 { width: 350px; height: 350px; background: rgba(168,85,247,.12); bottom: -60px; left: 30%; animation: bf3 18s ease-in-out infinite; }
.blob-4 { width: 300px; height: 300px; background: rgba(99,102,241,.12); top: 60%; right: 20%; animation: bf4 22s ease-in-out infinite; }
html.dark .blob-1 { background: rgba(168,85,247,.14); }
html.dark .blob-2 { background: rgba(99,102,241,.1); }
html.dark .blob-3 { background: rgba(168,85,247,.08); }
html.dark .blob-4 { background: rgba(99,102,241,.08); }
@keyframes bf1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,80px) scale(1.05)} }
@keyframes bf2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-80px,60px) scale(1.08)} }
@keyframes bf3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(50px,-70px) scale(1.06)} }
@keyframes bf4 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-60px,-50px) scale(.94)} }

/* ══════════ NAVBAR ══════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border); transition: all var(--t);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); gap: 12px; }

.logo-img { height: 36px; width: auto; object-fit: contain; transition: filter var(--t); }
.footer-logo { height: 30px; width: auto; object-fit: contain; margin-bottom: 12px; }
html:not(.dark) .footer-logo { filter: brightness(0); }

.nav-links {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); flex-direction: column; padding: 8px; gap: 2px; z-index: 999;
}
.nav-links.open { display: flex; }
.nav-links a {
  padding: 11px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .87rem;
  color: var(--text-muted); transition: all var(--t); display: block;
}
.nav-links a:hover { color: var(--text); background: rgba(168,85,247,.08); }
@media(min-width:960px) {
  .nav-links { display: flex; position: static; background: none; border: none; flex-direction: row; padding: 0; gap: 2px; backdrop-filter: none; flex-shrink: 1; }
  .nav-links a { padding: 7px 11px; }
}

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

.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--t); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
html.dark .icon-sun { display: flex; } html.dark .icon-moon { display: none; }
html:not(.dark) .icon-sun { display: none; } html:not(.dark) .icon-moon { display: flex; }

@media(max-width:480px) { .btn-ghost.btn-sm { display: none; } }

.hamburger {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
@media(min-width:960px) { .hamburger { display: none; } }

/* ══════════ HERO ══════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 20px 72px;
  overflow: hidden; z-index: 1;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(168,85,247,.05) 1px,transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(168,85,247,.25); background: rgba(168,85,247,.08);
  font-size: .82rem; font-weight: 600; color: var(--primary); margin-bottom: 22px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot { 70%{box-shadow:0 0 0 8px rgba(16,185,129,0)} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0)} }

.hero-title { font-size: clamp(2rem,7vw,4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 18px; }
.hero-sub-line { color: var(--text-muted); font-weight: 700; font-size: .8em; }
.hero-desc { font-size: clamp(.88rem,2vw,1.04rem); color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; line-height: 1.8; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
@media(max-width:400px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 24px; box-shadow: var(--shadow);
}
@media(min-width:500px) { .hero-stats { gap: 28px; } }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat strong { font-size: 1.3rem; font-weight: 900; color: var(--primary); font-family: var(--font-en); line-height: 1; }
.stat span { font-size: .74rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
@media(max-width:380px) { .stat-divider { display: none; } .hero-stats { gap: 12px; } }

.hero-scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scroll-arrow { width: 20px; height: 20px; border-left: 2px solid var(--text-subtle); border-bottom: 2px solid var(--text-subtle); transform: rotate(-45deg); animation: scroll-bounce 2s ease-in-out infinite; }
@keyframes scroll-bounce { 0%,100%{transform:rotate(-45deg) translateY(0)} 50%{transform:rotate(-45deg) translateY(6px)} }

/* ══════════ MODELS MARQUEE — SINGLE ROW CSS ANIMATION ══════════ */
.models-section { padding: 60px 0; position: relative; z-index: 1; overflow: hidden; }

.marquee-outer {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
@media (max-width: 640px) {
  .marquee-outer {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-inner {
    animation-duration: 28s;
  }
}

/* The inner track: two identical sets side by side, CSS animates the first half */
.marquee-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  /* Duration: ~40s feels smooth. Lower = faster */
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Pill styles ── */
.model-pill {
  display: flex; align-items: center; gap: 9px; padding: 10px 18px;
  background: var(--bg-card); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 100px;
  white-space: nowrap; cursor: default; flex-shrink: 0;
  filter: grayscale(1); opacity: .5;
  transition: filter .3s, opacity .3s, border-color .3s, transform .3s, box-shadow .3s;
  user-select: none;
}
.model-pill:hover {
  filter: grayscale(0); opacity: 1;
  border-color: rgba(168,85,247,.4);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(168,85,247,.25);
}
.model-pill-featured:hover { border-color: var(--primary); box-shadow: 0 8px 28px rgba(168,85,247,.35); }
.mpill-img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
html.dark  .mpill-dark  { display: block; } html.dark  .mpill-light { display: none; }
html:not(.dark) .mpill-dark  { display: none; } html:not(.dark) .mpill-light { display: block; }
.model-pill span { font-weight: 700; font-size: .86rem; font-family: var(--font-en); }

/* Tooltip */
.model-tooltip {
  position: fixed; z-index: 9000; pointer-events: none;
  background: var(--bg-card); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.model-tooltip.visible { opacity: 1; transform: translateY(0); }
.model-tooltip strong { font-size: .85rem; color: var(--text); }
.model-tooltip span { font-size: .76rem; color: var(--text-muted); }

/* ══════════ BUILDER ══════════ */
.builder-grid { display: grid; gap: 40px; }
@media(min-width:900px) { .builder-grid { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } }

.builder-content h2 { font-size: clamp(1.7rem,4vw,2.5rem); font-weight: 900; margin: 10px 0 16px; }
.builder-desc { color: var(--text-muted); font-size: .95rem; line-height: 1.8; margin-bottom: 24px; }
.builder-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.builder-features li { display: flex; align-items: flex-start; gap: 12px; }
.feature-icon-wrap { width: 38px; height: 38px; border-radius: 10px; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.18); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.builder-features li div { display: flex; flex-direction: column; gap: 1px; }
.builder-features li div strong { font-weight: 700; font-size: .88rem; }
.builder-features li div span { font-size: .81rem; color: var(--text-muted); }

.code-window { background: #07070f; border: 1px solid rgba(168,85,247,.2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.4); font-family: 'Courier New',monospace; }
.code-window-bar { background: #0d0d1a; padding: 10px 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(168,85,247,.15); }
.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.win-red { background: #ef4444; } .win-yellow { background: #f59e0b; } .win-green { background: #10b981; }
.code-window-title { margin-right: auto; font-family: var(--font-ar); font-size: .73rem; color: #4b5563; }
.code-window-body { padding: 20px; position: relative; min-height: 180px; }
.code-line { line-height: 1.9; font-size: .84rem; } .ci { padding-right: 16px; } .ci2 { padding-right: 32px; }
.ct { color: #a855f7; } .cc { color: #4b5563; font-style: italic; } .cs { color: #7dd3fc; }
.cursor { display: inline-block; color: var(--primary); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.code-ai-label { position: absolute; bottom: 12px; left: 12px; background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.25); color: #a855f7; font-size: .7rem; font-family: var(--font-ar); padding: 3px 10px; border-radius: 6px; }

/* ══════════ PRODUCTS SLIDER — CLEAN & SIMPLE ══════════ */
.products-section { overflow: hidden; }

.products-slider {
  position: relative;
}

/* Viewport clips the track */
.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 8px 0 16px;
}

/* Track: flexbox, slides via transform */
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform .45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  /* RTL: track moves in opposite direction, JS uses positive offset */
  direction: ltr;
}

/* Cards: fixed width, no 3D tricks */
.pcard {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  background: var(--bg-card); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  direction: rtl;
}
.pcard:hover {
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 8px 32px rgba(168,85,247,.15);
  transform: translateY(-4px);
}

@media(max-width:1023px) {
  .pcard { flex: 0 0 calc((100% - 20px) / 2); }
}
@media(max-width:639px) {
  .pcard { flex: 0 0 100%; }
}

.pcard-thumb {
  width: 100%; height: 190px; overflow: hidden; position: relative;
  background: linear-gradient(135deg,rgba(168,85,247,.08),rgba(99,102,241,.06));
}
.pcard-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.pcard:hover .pcard-img { transform: scale(1.04); }

.pcard-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg,rgba(168,85,247,.07),rgba(99,102,241,.05));
}
.pcard-soon-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(168,85,247,.18); border: 1px solid rgba(168,85,247,.35);
  color: var(--primary); font-size: .73rem; font-weight: 800; padding: 3px 10px;
  border-radius: 100px;
}
.pcard-soon-icon { color: var(--primary); opacity: .45; }
.pcard-soon > span { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); font-family: var(--font-en); }

.pcard-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcard-name { font-size: 1.05rem; font-weight: 800; font-family: var(--font-en); }
.pcard-badge {
  padding: 3px 10px; border-radius: 100px; margin-right: auto;
  font-size: .7rem; font-weight: 700;
}
.pcard-badge[style*="#a855f7"] { color: #a855f7; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.25); }
.pcard-badge[style*="#3b82f6"] { color: #3b82f6; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); }
.pcard-badge[style*="#10b981"] { color: #10b981; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); }
.pcard-badge[style*="#f59e0b"] { color: #d97706; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); }
.pcard-badge[style*="#8b5cf6"] { color: #8b5cf6; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25); }
.pcard-badge[style*="#14b8a6"] { color: #14b8a6; background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.25); }
.pcard-badge[style*="#f97316"] { color: #f97316; background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.25); }

.pcard-desc { color: var(--text-muted); font-size: .85rem; line-height: 1.7; flex: 1; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard-tags span { padding: 3px 9px; border-radius: 6px; background: rgba(168,85,247,.06); border: 1px solid var(--border); font-size: .72rem; font-weight: 600; color: var(--text-muted); }

/* Slider controls */
.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 28px;
}

.slider-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); box-shadow: var(--shadow); flex-shrink: 0;
}
.slider-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: scale(1.1); box-shadow: 0 4px 20px rgba(168,85,247,.35);
}
.slider-btn:disabled { opacity: .3; pointer-events: none; }

/* Dots */
.slider-dots { display: flex; align-items: center; gap: 7px; }
.sdot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--border); transition: all .3s ease;
}
.sdot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.sdot:hover:not(.active) { background: rgba(168,85,247,.4); }

/* ══════════ PRICING ══════════ */
.payment-notice {
  display: flex; align-items: center; gap: 10px;
  background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 28px;
  color: var(--success); font-size: .86rem; font-weight: 600; flex-wrap: wrap;
}

.pricing-grid-5 { display: grid; gap: 12px; margin-bottom: 28px; grid-template-columns: 1fr; }
@media(min-width:520px) { .pricing-grid-5 { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .pricing-grid-5 { grid-template-columns: repeat(3,1fr); } }
@media(min-width:1200px) { .pricing-grid-5 { grid-template-columns: repeat(5,1fr); } }

.plan-card {
  background: var(--bg-card); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: all var(--t); overflow: hidden;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: rgba(168,85,247,.3); }
.plan-card-popular { border-color: var(--primary)!important; background: linear-gradient(155deg,rgba(168,85,247,.1),rgba(99,102,241,.07))!important; }
.plan-card-enterprise { border-color: rgba(239,68,68,.18); background: linear-gradient(155deg,rgba(239,68,68,.05),transparent)!important; }

.popular-ribbon {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color: #fff; font-size: .7rem; font-weight: 800; padding: 4px 16px;
  border-radius: 0 0 10px 10px; white-space: nowrap;
}
.plan-top-row { display: flex; align-items: center; justify-content: space-between; }
.plan-badge { padding: 3px 10px; border-radius: 100px; font-size: .7rem; font-weight: 700; }
.plan-badge-gray { background: rgba(168,85,247,.07); border: 1px solid rgba(168,85,247,.15); color: var(--text-muted); }
.plan-badge-purple { background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.3); color: var(--primary); }
.plan-name { font-size: 1.05rem; font-weight: 800; font-family: var(--font-en); }
.plan-sub { color: var(--text-muted); font-size: .8rem; margin-top: -8px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; }
.plan-price-free { font-size: 1.9rem; font-weight: 900; color: var(--primary); display: block; }
.plan-price-enterprise { font-size: 1.3rem; font-weight: 900; color: #fff; display: block; }
.plan-price-num { font-size: 2rem; font-weight: 900; font-family: var(--font-en); line-height: 1; color: var(--primary); }
.plan-price-cur { font-size: .9rem; font-weight: 700; color: var(--text-muted); }
.plan-features { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.plan-features li { font-size: .79rem; display: flex; align-items: flex-start; gap: 6px; color: var(--text-sec); line-height: 1.5; }
.feat-check { width: 14px; height: 14px; stroke: var(--success); flex-shrink: 0; margin-top: 1px; }
.plan-promo-tag { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); border-radius: var(--radius-sm); padding: 6px 10px; font-size: .74rem; font-weight: 700; color: #d97706; text-align: center; }

.payment-methods { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.pm-label { font-weight: 700; font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.pm-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-item { padding: 3px 10px; border-radius: 100px; background: rgba(168,85,247,.07); border: 1px solid rgba(168,85,247,.18); font-size: .76rem; font-weight: 600; color: var(--primary); }

/* ══════════ COMPARE TABLE ══════════ */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th,.compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
@media(min-width:768px) { .compare-table th,.compare-table td { padding: 14px 18px; } }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table thead { background: rgba(168,85,247,.06); }
.compare-th-feature { font-size: .85rem; font-weight: 800; color: var(--text); width: 35%; }
.compare-th-corex { font-size: .85rem; font-weight: 800; text-align: center; background: rgba(168,85,247,.08); width: 33%; }
.compare-th-direct { font-size: .85rem; font-weight: 800; color: var(--text-muted); text-align: center; width: 32%; }
.compare-corex-label { color: var(--primary); font-weight: 800; }
.compare-table tbody tr:hover { background: rgba(168,85,247,.03); }
.compare-feat { font-size: .84rem; font-weight: 600; display: table-cell; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.compare-yes,.compare-no { text-align: center; font-size: .81rem; font-weight: 600; }
.compare-yes { color: var(--success); background: rgba(16,185,129,.03); }
.compare-no { color: #ef4444; background: rgba(239,68,68,.03); }
.compare-check,.compare-x { display: inline-block; width: 14px; height: 14px; vertical-align: middle; margin-left: 4px; }
.compare-check { stroke: #10b981; } .compare-x { stroke: #ef4444; }

/* ══════════ COMING SOON ══════════ */
.soon-section-tag { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); color: #d97706; }
.coming-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media(min-width:600px) { .coming-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .coming-grid { grid-template-columns: repeat(3,1fr); } }
.coming-card { background: var(--bg-card); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: all var(--t); }
.coming-card:hover { border-color: rgba(168,85,247,.3); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.coming-card-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 100px; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.2); color: var(--primary); font-size: .73rem; font-weight: 700; align-self: flex-start; }
.coming-card-tag-wip { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); color: #d97706; }
.coming-card-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.18); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.coming-card h3 { font-size: 1rem; font-weight: 800; font-family: var(--font-en); }
.coming-card p { color: var(--text-muted); font-size: .84rem; line-height: 1.7; }

/* ══════════ COLLABORATIONS ══════════ */
.collab-section { overflow: visible; }
.collab-stats-bar {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--bg-card); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 0; margin-bottom: 56px; overflow: hidden; box-shadow: var(--shadow);
}
.collab-stat-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 20px 28px; flex: 1; position: relative; }
.collab-stat-item::after { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--border); }
.collab-stat-item:first-child::after { display: none; }
.collab-stat-num { font-size: 1.7rem; font-weight: 900; font-family: var(--font-en); color: var(--primary); line-height: 1; }
.collab-stat-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
@media(max-width:520px) {
  .collab-stats-bar { flex-wrap: wrap; }
  .collab-stat-item { flex: 0 0 50%; border-top: 1px solid var(--border); }
  .collab-stat-item:nth-child(1),.collab-stat-item:nth-child(2) { border-top: none; }
  .collab-stat-item:nth-child(2n+1)::after { display: none; }
}

.collab-roadmap { position: relative; padding-right: 20px; }
@media(min-width:768px) { .collab-roadmap { padding-right: 0; } }

.roadmap-node { display: grid; grid-template-columns: auto 1fr; gap: 0 28px; align-items: start; position: relative; }
@media(min-width:768px) { .roadmap-node { gap: 0 40px; } }

.roadmap-milestone { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 56px; flex-shrink: 0; position: relative; z-index: 2; }
.roadmap-dot {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative;
  box-shadow: 0 0 0 4px var(--bg); transition: transform .3s, box-shadow .3s;
}
.roadmap-node:hover .roadmap-dot { transform: scale(1.12); }
.roadmap-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: .2; animation: dot-ring 3s ease-out infinite; }
@keyframes dot-ring { 0%{transform:scale(1);opacity:.2} 60%{transform:scale(1.4);opacity:0} 100%{transform:scale(1.4);opacity:0} }

.roadmap-dot-comp  { background: linear-gradient(135deg,rgba(245,158,11,.2),rgba(234,179,8,.1));  border: 2px solid rgba(245,158,11,.4);  color: #d97706; }
.roadmap-dot-stem  { background: linear-gradient(135deg,rgba(99,102,241,.2),rgba(79,70,229,.1));   border: 2px solid rgba(99,102,241,.4);  color: #6366f1; }
.roadmap-dot-init  { background: linear-gradient(135deg,rgba(16,185,129,.2),rgba(5,150,105,.1));   border: 2px solid rgba(16,185,129,.4);  color: #10b981; }
.roadmap-dot-event { background: linear-gradient(135deg,rgba(239,68,68,.2),rgba(220,38,38,.1));    border: 2px solid rgba(239,68,68,.4);   color: #ef4444; }
.roadmap-dot-comm  { background: linear-gradient(135deg,rgba(168,85,247,.2),rgba(147,51,234,.1));  border: 2px solid rgba(168,85,247,.4);  color: var(--primary); }
.roadmap-dot-future{ background: linear-gradient(135deg,rgba(168,85,247,.1),rgba(99,102,241,.05)); border: 2px dashed rgba(168,85,247,.35); color: var(--primary); }

.roadmap-label { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.roadmap-cat { font-size: .7rem; font-weight: 800; color: var(--text); letter-spacing: .3px; white-space: nowrap; }
.roadmap-sub { display: none; }
@media(min-width:600px) { .roadmap-sub { display: block; font-size: .65rem; color: var(--text-muted); white-space: nowrap; max-width: 80px; text-align: center; } }

.roadmap-partners { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 24px; align-items: flex-start; }

.roadmap-connector { display: grid; grid-template-columns: 56px 1fr; gap: 0 28px; align-items: center; height: 36px; }
@media(min-width:768px) { .roadmap-connector { gap: 0 40px; } }
.roadmap-connector-line { width: 2px; height: 100%; margin: 0 auto; background: linear-gradient(to bottom,rgba(168,85,247,.4),rgba(168,85,247,.15)); border-radius: 2px; position: relative; }
.roadmap-connector-line::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to bottom,rgba(168,85,247,.6),transparent); animation: line-glow 3s ease-in-out infinite; }
@keyframes line-glow { 0%,100%{top:0;opacity:.8} 50%{top:60%;opacity:.3} }
.roadmap-connector-dashed { background: none; border-left: 2px dashed rgba(168,85,247,.25); }
.roadmap-connector-dashed::after { display: none; }

.collab-pcard {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-card); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 12px; cursor: default;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden; width: 110px;
}
@media(min-width:600px) { .collab-pcard { width: 130px; padding: 16px 14px; } }
.collab-pcard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(168,85,247,.06),transparent); opacity: 0; transition: opacity .3s; }
.collab-pcard:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 8px 28px rgba(168,85,247,.15); }
.collab-pcard:hover::before { opacity: 1; }
.collab-pcard-logo { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: rgba(168,85,247,.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s; }
@media(min-width:600px) { .collab-pcard-logo { width: 60px; height: 60px; } }
.collab-pcard:hover .collab-pcard-logo { transform: scale(1.08); }
.collab-pcard-logo img { width: 100%; height: 100%; object-fit: cover; }
.collab-pcard-name { font-size: .68rem; font-weight: 700; color: var(--text-sec); text-align: center; line-height: 1.35; }
@media(min-width:600px) { .collab-pcard-name { font-size: .73rem; } }

.roadmap-node-future .roadmap-milestone { opacity: .75; }
.roadmap-coming-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; border: 1px dashed rgba(168,85,247,.3); background: rgba(168,85,247,.05); color: var(--primary); font-size: .8rem; font-weight: 700; margin-top: 4px; align-self: center; }

/* ══════════ FAQ ══════════ */
.faq-container { max-width: 700px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--t); }
.faq-item:hover { border-color: rgba(168,85,247,.3); }
.faq-item.open { border-color: var(--primary); }
.faq-question { width: 100%; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-ar); font-size: .9rem; font-weight: 700; text-align: right; background: none; color: var(--text); gap: 12px; }
.faq-arrow { color: var(--text-muted); flex-shrink: 0; transition: transform var(--t); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { padding: 0 18px 16px; color: var(--text-muted); font-size: .86rem; line-height: 1.8; }

/* ══════════ FOUNDER ══════════ */
.founder-section { padding: 64px 0; }
.founder-card { display: flex; align-items: center; gap: 28px; background: linear-gradient(135deg,rgba(168,85,247,.07),rgba(99,102,241,.04)); border: 1px solid rgba(168,85,247,.2); border-radius: var(--radius-xl); padding: 32px 24px; max-width: 820px; margin: 0 auto; backdrop-filter: blur(16px); flex-direction: column; text-align: center; }
@media(min-width:600px) { .founder-card { flex-direction: row; text-align: right; padding: 40px; gap: 36px; } }
.founder-avatar-wrap { position: relative; width: 90px; height: 90px; flex-shrink: 0; }
.founder-avatar { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--secondary)); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; overflow: hidden; }
.founder-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.founder-initials { display: none; font-size: 2rem; font-weight: 900; color: #fff; align-items: center; justify-content: center; }
.founder-ring-1 { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(168,85,247,.3); animation: ring-spin 8s linear infinite; }
.founder-ring-2 { position: absolute; inset: -13px; border-radius: 50%; border: 1px dashed rgba(168,85,247,.15); animation: ring-spin 12s linear infinite reverse; }
@keyframes ring-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.founder-label { font-size: .72rem; font-weight: 700; color: var(--primary); letter-spacing: .5px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.founder-name { font-size: clamp(1.1rem,3vw,1.4rem); font-weight: 900; margin-bottom: 12px; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; justify-content: center; }
@media(min-width:600px) { .founder-tags { justify-content: flex-start; } }
.founder-tags span { padding: 3px 11px; border-radius: 100px; background: rgba(168,85,247,.09); border: 1px solid rgba(168,85,247,.2); font-size: .73rem; font-weight: 700; color: var(--primary); }

/* ══════════ CONTACT ══════════ */
.contact-section { padding: 56px 0; }
.contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 580px; margin: 0 auto; }
.contact-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 28px; border-radius: var(--radius); font-weight: 700; font-size: .9rem; font-family: var(--font-ar); color: #fff; transition: all var(--t); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.contact-btn-wa { background: linear-gradient(135deg,#25d366,#20b954); }
.contact-btn-tg { background: linear-gradient(135deg,#229ed9,#1a86c0); }
.contact-btn-gh { background: linear-gradient(135deg,#24292e,#404448); }
.contact-btn-ig { background: linear-gradient(135deg,#e1306c,#f77737); }
.contact-btn-yt { background: linear-gradient(135deg,#ff0000,#cc0000); }
.contact-btn-li { background: linear-gradient(135deg,#0077b5,#005582); }
.contact-btn-tt { background: linear-gradient(135deg,#010101,#2d2d2d); }
.contact-btn-fb { background: linear-gradient(135deg,#1877f2,#0d5dbf); }

/* ══════════ FOOTER ══════════ */
.footer { background: var(--bg-card); backdrop-filter: blur(20px); border-top: 1px solid var(--border); padding: 48px 0 20px; position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media(min-width:600px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; } }
.footer-brand p { color: var(--text-muted); font-size: .83rem; line-height: 1.7; max-width: 240px; margin-top: 4px; }
.social-links { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.social-link { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--t); }
.social-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(168,85,247,.08); transform: translateY(-2px); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; color: var(--text); }
.footer-col a { font-size: .83rem; color: var(--text-muted); transition: color var(--t); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .78rem; color: var(--text-subtle); }
.footer-dev-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; }
.footer-dev-text { font-size: .7rem; font-weight: 800; letter-spacing: .5px; color: var(--text-subtle); text-transform: uppercase; }

/* ══════════ CHATBOT ══════════ */
.chat-widget {
  position: fixed; bottom: 80px; left: 20px; z-index: 2000;
  width: 320px; max-height: 460px;
  background: var(--bg-card); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.85) translateY(20px); opacity: 0; pointer-events: none;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.chat-widget.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
@media(max-width:400px) { .chat-widget { width: calc(100vw - 40px); left: 20px; right: 20px; } }

.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg,rgba(168,85,247,.12),rgba(99,102,241,.08)); border-bottom: 1px solid var(--border); }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--secondary)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.chat-avatar img { width: 26px; height: 26px; object-fit: contain; }
.chat-header-info strong { display: block; font-size: .88rem; font-weight: 800; }
.chat-header-info span { display: block; font-size: .72rem; color: var(--success); }
.chat-close { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--t); }
.chat-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.chat-msg { max-width: 86%; animation: msg-in .25s ease; }
@keyframes msg-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; }
.chat-msg p { padding: 10px 13px; border-radius: 14px; font-size: .83rem; line-height: 1.6; }
.chat-msg-bot p { background: var(--bg-input); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; }
.chat-msg-user p { background: linear-gradient(135deg,var(--primary),var(--secondary)); color: #fff; border-radius: 14px 4px 14px 14px; }

.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.chat-quick-btn { padding: 5px 11px; border-radius: 100px; background: rgba(168,85,247,.08); border: 1px solid rgba(168,85,247,.2); color: var(--primary); font-size: .75rem; font-weight: 700; font-family: var(--font-ar); transition: all var(--t); cursor: pointer; }
.chat-quick-btn:hover { background: var(--primary); color: #fff; }

.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-glass); }
.chat-input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; font-family: var(--font-ar); font-size: .84rem; color: var(--text); outline: none; transition: border-color var(--t); direction: rtl; }
.chat-input:focus { border-color: var(--primary); }
.chat-send { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--t); }
.chat-send:hover { transform: scale(1.1); }

.chat-toggle {
  position: fixed; bottom: 20px; left: 20px; z-index: 2001;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(168,85,247,.5);
  transition: all var(--t);
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(168,85,247,.6); }

.chat-unread {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: #fff; font-size: .65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
