/* =========================================================
   Veno Store — Discord Bots
   هوية: أسود + أزرق فولاذي + ملمس حجر + خط رفيع دائري
   (نسخة خفيفة: بدون blur ثقيل أو أنيميشن دائم على الخلفية)
   ========================================================= */
:root {
  --bg: #050608;
  --bg-2: #0a0d11;
  --bg-3: #10151b;
  --card: rgba(159, 179, 193, 0.04);
  --card-2: rgba(159, 179, 193, 0.08);
  --line: rgba(159, 179, 193, 0.12);
  --line-2: rgba(159, 179, 193, 0.22);
  --text: #eef3f6;
  --muted: #8796a2;
  --steel: #6b8191;
  --steel-2: #9fb3c1;
  --steel-3: #d6e1e8;
  --steel-dark: #2b3742;
  --silver: linear-gradient(120deg, #ffffff 0%, #c9d6df 40%, #8ea3b2 75%, #dfe8ee 100%);
  --steel-grad: linear-gradient(135deg, #8ea3b2 0%, #4f6372 55%, #2b3742 100%);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --f-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-head: "Alexandria", var(--f-ar);
  --f-brand: "Comfortaa", "Alexandria", sans-serif;
  --stone: url("../assets/brand/texture.jpg");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--steel); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--steel-2), var(--steel-dark)); border-radius: 10px; }

.container { width: min(1240px, 92%); margin-inline: auto; }
.silver-text {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Background (static) ============ */
.bg-layer {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50vw 50vw at 95% -10%, rgba(61, 85, 102, 0.35), transparent 70%),
    radial-gradient(45vw 45vw at 0% 110%, rgba(34, 48, 59, 0.5), transparent 70%),
    var(--bg);
}
.bg-layer { overflow: hidden; }
.bg-layer::before { content: ""; position: absolute; inset: 0; background: var(--stone) center / cover; opacity: 0.06; }

/* شبكة خطوط رفيعة تتلاشى عند الأطراف */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(159, 179, 193, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 179, 193, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
/* توهجات ناعمة تتحرك ببطء (transform فقط = خفيفة على الجهاز) */
.bg-orb { position: absolute; border-radius: 50%; will-change: transform; }
.bg-orb.o1 { width: 60vmax; height: 60vmax; top: -25vmax; right: -20vmax; background: radial-gradient(circle, rgba(110, 140, 165, 0.28), transparent 62%); animation: orbA 38s ease-in-out infinite alternate; }
.bg-orb.o2 { width: 55vmax; height: 55vmax; bottom: -25vmax; left: -20vmax; background: radial-gradient(circle, rgba(70, 95, 120, 0.32), transparent 62%); animation: orbB 46s ease-in-out infinite alternate; }
.bg-orb.o3 { width: 34vmax; height: 34vmax; top: 35%; left: 38%; background: radial-gradient(circle, rgba(214, 225, 232, 0.07), transparent 65%); animation: orbC 30s ease-in-out infinite alternate; }
@keyframes orbA { to { transform: translate(-14vmax, 18vmax) scale(1.1); } }
@keyframes orbB { to { transform: translate(16vmax, -14vmax) scale(1.15); } }
@keyframes orbC { to { transform: translate(-18vmax, 10vmax) scale(0.85); } }
/* نجوم خفيفة تلمع */
.bg-stars { position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; background: transparent; }
.bg-stars.s1 { animation: twinkle 6s ease-in-out infinite alternate; }
.bg-stars.s2 { width: 1px; height: 1px; animation: twinkle 9s ease-in-out infinite alternate-reverse; }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.9; } }
/* شعاع ضوء مائل خفيف */
.bg-beam { position: absolute; top: -20%; left: 30%; width: 40vw; height: 140%; background: linear-gradient(90deg, transparent, rgba(214, 225, 232, 0.035), transparent); transform: rotate(18deg); }

/* إضاءة خلف عنوان كل قسم + خط فاصل لامع بين الأقسام */
.section > .container { position: relative; }
.section .sec-head { position: relative; }
.section .sec-head::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -60px; width: 640px; height: 320px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(159, 179, 193, 0.16), transparent 65%);
}
.server::before, .store::before, .dashboard::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(900px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 225, 232, 0.45), transparent);
}
.server::after, .store::after, .dashboard::after {
  content: ""; position: absolute; top: -3px; left: 50%; translate: -50% 0; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px #fff, 0 0 30px rgba(214, 225, 232, 0.6);
}

/* ============ Reveal animations ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bots .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.bots .reveal:nth-child(3n + 3) { transition-delay: 0.16s; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
body.ready .fade-in { opacity: 1; transform: none; }
body.ready .fade-in:nth-child(2) { transition-delay: 0.08s; }
body.ready .fade-in:nth-child(3) { transition-delay: 0.16s; }
body.ready .fade-in:nth-child(4) { transition-delay: 0.24s; }
body.ready .fade-in:nth-child(5) { transition-delay: 0.32s; }
body.ready .fade-in:nth-child(6) { transition-delay: 0.4s; }

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn i { font-size: 18px; }
.btn-primary { background: linear-gradient(120deg, #ffffff, #c9d6df 60%, #9fb3c1); color: #0a0d11; box-shadow: 0 10px 40px -12px rgba(201, 214, 223, 0.55); }
.btn-primary:hover { box-shadow: 0 16px 50px -10px rgba(201, 214, 223, 0.7); }
.btn-ghost { background: rgba(10, 13, 17, 0.6); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--steel-2); background: rgba(159, 179, 193, 0.1); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 8px 30px -12px #5865f2; }
.btn-discord:hover { background: #4752e0; }
.btn-lg { padding: 17px 36px; font-size: 17px; }

/* ============ Navbar ============ */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; padding: 18px 0; border-bottom: 1px solid transparent; transition: transform 0.5s var(--ease), padding 0.4s var(--ease), background 0.4s, border-color 0.4s; }
.nav.scrolled { padding: 10px 0; background: rgba(5, 6, 8, 0.9); border-color: var(--line); }
.nav.hide { transform: translateY(-110%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; direction: ltr; }
.logo img { width: 44px; height: 44px; border-radius: 50%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--f-brand); font-weight: 300; font-size: 24px; letter-spacing: 0.04em; }
.logo-text small { font-family: var(--f-brand); font-size: 9px; letter-spacing: 0.75em; color: var(--steel-2); margin-top: 3px; }
.nav-links { display: flex; gap: 2px; padding: 6px; border-radius: 100px; background: rgba(10, 13, 17, 0.8); border: 1px solid var(--line); }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.3s, background 0.3s, box-shadow 0.3s; }
.nav-links a i { font-size: 16px; opacity: 0.8; }
.nav-links a:hover { color: #fff; background: var(--card-2); }
.nav-links a.active { color: #0a0d11; background: linear-gradient(120deg, #ffffff, #c9d6df 60%, #9fb3c1); box-shadow: 0 6px 20px -8px rgba(201, 214, 223, 0.6); }
.nav-links a.active i { opacity: 1; }

/* login + user menu */
.btn-login { background: linear-gradient(120deg, #ffffff, #c9d6df 60%, #9fb3c1); color: #0a0d11; box-shadow: 0 8px 30px -12px rgba(201, 214, 223, 0.6); }
.btn-login:hover { background: linear-gradient(120deg, #ffffff, #dbe4ea 60%, #b3c4cf); }
.btn-login[hidden], .user-menu[hidden] { display: none; }
.user-menu { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border-radius: 100px; background: rgba(10, 13, 17, 0.8); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; transition: border-color 0.3s; }
.user-chip:hover { border-color: var(--steel-2); }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-chip span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip i { color: var(--muted); transition: transform 0.3s; }
.user-menu.open .user-chip i { transform: rotate(180deg); }
.user-drop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 200px; padding: 8px; border-radius: 18px; background: #0d1116; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px #000; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: 0.3s var(--ease); z-index: 10; }
.user-menu.open .user-drop { opacity: 1; transform: none; pointer-events: auto; }
.user-drop a, .user-drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 14px; color: var(--steel-3); text-align: start; }
.user-drop a:hover, .user-drop button:hover { background: var(--card-2); color: #fff; }
.user-drop button { color: #f87171; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; border-radius: 2px; transition: 0.4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 90px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 200px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 100px; font-size: 13.5px; background: rgba(10, 13, 17, 0.7); border: 1px solid var(--line-2); color: var(--steel-3); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }

.hero-title { margin: 26px 0 10px; }
.hero-title .kicker { display: block; font-family: var(--f-head); font-weight: 300; font-size: clamp(20px, 2.2vw, 28px); color: var(--steel-3); }
.brand-word { display: inline-flex; flex-direction: column; align-items: flex-start; direction: ltr; line-height: 0.95; margin-top: 6px; }
.brand-word .w { font-family: var(--f-brand); font-weight: 300; font-size: clamp(84px, 11vw, 170px); letter-spacing: 0.02em; }
.brand-word .s { font-family: var(--f-brand); font-weight: 300; font-size: clamp(14px, 1.5vw, 22px); letter-spacing: 1.05em; color: var(--steel-2); align-self: center; margin-top: 8px; padding-left: 1.05em; }
.hero-sub { font-family: var(--f-head); font-weight: 300; font-size: clamp(18px, 1.9vw, 23px); color: var(--steel-3); min-height: 1.6em; margin-top: 22px; }
.caret { color: var(--steel-2); margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { color: var(--muted); font-size: 16.5px; max-width: 520px; margin: 12px 0 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; }
.stat b { display: block; font-family: var(--f-brand); font-size: 28px; font-weight: 700; direction: ltr; text-align: right; }
.stat span { color: var(--muted); font-size: 14px; }
.stat + .stat { padding-inline-start: 36px; border-inline-start: 1px solid var(--line); }

.hero-visual { position: relative; height: min(680px, 78vh); width: 100%; }
.statue {
  position: absolute; inset: 0; margin: auto; width: 100%; height: 100%;
  background: url("../assets/brand/statue.jpg") center 20% / cover;
  -webkit-mask-image: radial-gradient(ellipse 46% 46% at 50% 50%, #000 25%, transparent 90%);
  mask-image: radial-gradient(ellipse 46% 46% at 50% 50%, #000 25%, transparent 90%);
}
.hero-ring { position: absolute; width: 78%; aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -52%; border-radius: 50%; border: 1px solid rgba(214, 225, 232, 0.14); }
.hero-ring .dot { position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px #fff; }
.hero-ring-wrap { position: absolute; inset: 0; animation: spin 26s linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-logo { position: absolute; bottom: 9%; right: 12%; width: 118px; height: 118px; border-radius: 50%; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 9px; border-radius: 18px;
  background: rgba(10, 13, 17, 0.85); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
}
.float-card b { display: block; font-size: 14px; font-family: var(--f-brand); font-weight: 700; direction: ltr; text-align: right; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-icon i { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--steel-grad); color: #fff; }
.fc-4 i { background: #5865f2; }
.fc-1 { top: 10%; right: 0; }
.fc-2 { top: 46%; right: -6%; }
.fc-3 { top: 20%; left: -2%; }
.fc-4 { bottom: 12%; left: 4%; }

/* ============ Sections ============ */
.section { padding: 110px 0; position: relative; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px; font-size: 13px; color: var(--steel-3); background: var(--card); border: 1px solid var(--line-2); }
.eyebrow i { color: #fff; }
.sec-head h2 { font-family: var(--f-head); font-weight: 600; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.25; margin: 18px 0 12px; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* ============ Store ============ */
.store-hero {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 30px;
  padding: 34px; margin-bottom: 30px; border-radius: 32px; overflow: hidden; border: 1px solid rgba(214, 225, 232, 0.3);
  background: linear-gradient(120deg, rgba(16, 21, 27, 0.95), rgba(10, 13, 17, 0.8));
  box-shadow: 0 30px 80px -40px rgba(159, 179, 193, 0.35);
}
.store-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--stone) center / cover; opacity: 0.12; pointer-events: none; }
.store-hero > * { position: relative; z-index: 1; }
.store-hero .sh-img { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); display: grid; place-items: center; }
.store-hero .sh-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.store-hero .sh-img > i { font-size: 90px; color: var(--steel-2); }
.store-hero:hover .sh-img img { transform: scale(1.04); }
.store-hero h3 { font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 2.8vw, 38px); margin: 14px 0 8px; }
.store-hero p { color: var(--muted); margin-bottom: 20px; }
.sh-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sh-feats span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; font-size: 13px; background: var(--card-2); border: 1px solid var(--line); }
.sh-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.bots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bot-card {
  position: relative; padding: 30px; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(159, 179, 193, 0.07), rgba(159, 179, 193, 0.015));
  border: 1px solid var(--line);
  transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.bot-card.in:hover { transition-delay: 0s; transform: translateY(-6px); border-color: rgba(214, 225, 232, 0.4); box-shadow: 0 30px 60px -30px rgba(159, 179, 193, 0.45); }
.bot-card.featured-bot { border-color: rgba(214, 225, 232, 0.3); }
.bot-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.bot-icon { flex-shrink: 0; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--steel-grad); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); overflow: hidden; }
.bot-icon img { width: 100%; height: 100%; object-fit: cover; }
.bot-icon.has-img { background: #000; }
.bot-badge { padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; background: #fff; color: #0a0d11; }
.bot-card h3 { font-family: var(--f-head); font-size: 23px; font-weight: 600; direction: ltr; text-align: right; }
.bot-card > p { color: var(--muted); font-size: 15px; margin: 6px 0 20px; }
.bot-feats { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.bot-feats li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.bot-feats i { color: var(--steel-2); font-size: 18px; }
.bot-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.bot-foot .btn { padding: 12px 20px; }

.price { line-height: 1.2; }
.price b { font-family: var(--f-brand); font-size: 30px; font-weight: 700; unicode-bidi: isolate; }
.price .cur { font-size: 15px; font-weight: 600; color: var(--steel-3); margin-inline-start: 5px; }
.price s { display: inline-block; color: var(--muted); font-size: 14px; margin-inline-start: 10px; }
.price small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ============ Library ============ */
.tabs { position: relative; display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 6px; border-radius: 100px; background: rgba(10, 13, 17, 0.7); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; color: var(--muted); font-weight: 600; white-space: nowrap; transition: color 0.4s; }
.tab i { font-size: 18px; }
.tab em { font-style: normal; font-size: 11px; font-family: var(--f-brand); font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--card-2); }
.tab.active { color: #0a0d11; }
.tab.active em { background: rgba(10, 13, 17, 0.12); }
.tab-glider { position: absolute; top: 6px; bottom: 6px; border-radius: 100px; background: linear-gradient(120deg, #ffffff, #c9d6df 60%, #9fb3c1); box-shadow: 0 8px 30px -10px rgba(201, 214, 223, 0.6); transition: left 0.5s var(--ease), width 0.5s var(--ease); z-index: 0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.toolbar[hidden] { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 17px; border-radius: 100px; font-size: 14px; color: var(--muted); background: var(--card); border: 1px solid var(--line); transition: 0.3s var(--ease); }
.chip:hover { color: #fff; border-color: var(--line-2); }
.chip.active { color: #fff; background: rgba(159, 179, 193, 0.16); border-color: var(--steel-2); }
.search { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 46px; min-width: 260px; border-radius: 100px; background: var(--card); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s; margin-inline-start: auto; }
.search:focus-within { border-color: var(--steel-2); box-shadow: 0 0 0 4px rgba(159, 179, 193, 0.12); }
.search i { color: var(--muted); }
.search input { flex: 1; font: inherit; color: inherit; background: none; border: 0; outline: 0; }
.search input::placeholder { color: var(--muted); }

.gallery { display: grid; gap: 20px; }
.gallery[data-type="avatars"] { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery[data-type="profiles"] { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.gallery[data-type="banners"] { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gallery[data-type="wallpapers"] { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.g-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); cursor: zoom-in; transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease); }
.g-card:hover { transform: translateY(-4px); border-color: rgba(214, 225, 232, 0.45); box-shadow: 0 25px 60px -25px rgba(159, 179, 193, 0.45); }
.g-media { position: relative; overflow: hidden; background: var(--bg-3); }
.g-card.avatar .g-media { aspect-ratio: 1; }
.g-card.banner .g-media { aspect-ratio: 17 / 6; }
.g-card.wallpaper .g-media { aspect-ratio: 16 / 9; }
.g-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s, transform 0.8s var(--ease); }
.g-media img.loaded { opacity: 1; }
.g-card:hover .g-media img { transform: scale(1.06); }

.g-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(to top, rgba(5, 6, 8, 0.92), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.g-card:hover .g-overlay, .g-card:focus-within .g-overlay { opacity: 1; }
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-title { font-family: var(--f-brand); font-weight: 700; font-size: 14px; direction: ltr; }
.g-actions { display: flex; gap: 8px; }
.ic-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-2); transition: 0.3s var(--ease); }
.ic-btn:hover { background: #fff; color: var(--bg); }
.ic-btn.dl { background: linear-gradient(120deg, #ffffff, #b9c8d3); color: #0a0d11; border-color: transparent; }
.badge-new { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; padding: 3px 11px; border-radius: 100px; font-size: 12px; font-weight: 700; background: #fff; color: #0a0d11; }
.badge-gif { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 700; font-family: var(--f-brand); background: rgba(5, 6, 8, 0.8); border: 1px solid var(--line-2); }

/* Profile card (Discord-like) */
.p-card { position: relative; border-radius: 24px; overflow: hidden; background: #0d1116; border: 1px solid var(--line); transition: border-color 0.4s, box-shadow 0.4s; }
.p-card:hover { border-color: rgba(214, 225, 232, 0.4); box-shadow: 0 25px 60px -25px rgba(159, 179, 193, 0.5); }
.p-banner { aspect-ratio: 17 / 6; cursor: zoom-in; }
.p-head { position: relative; padding: 0 20px; height: 54px; }
.p-avatar { position: absolute; top: -52px; inset-inline-start: 18px; width: 104px; height: 104px; border-radius: 50%; border: 7px solid #0d1116; background: #0d1116; cursor: zoom-in; }
.p-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.p-avatar .status { position: absolute; bottom: 2px; inset-inline-end: 2px; width: 24px; height: 24px; border-radius: 50%; background: #22c55e; border: 5px solid #0d1116; }
.p-body { margin: 0 14px 14px; padding: 14px 16px; border-radius: 16px; background: rgba(159, 179, 193, 0.05); }
.p-body h4 { font-family: var(--f-brand); font-weight: 700; font-size: 18px; direction: ltr; text-align: right; }
.p-body .uname { color: var(--muted); font-size: 13px; direction: ltr; text-align: right; display: block; }
.p-body hr { border: 0; height: 1px; background: var(--line); margin: 12px 0; }
.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 100px; font-size: 13.5px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line); transition: 0.3s var(--ease); }
.p-actions button:hover { background: #fff; color: #0a0d11; border-color: transparent; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 28px; background: var(--card); }
.empty i { font-size: 50px; display: block; margin-bottom: 6px; color: var(--steel-2); }
.empty p { font-size: 16px; }
.more-wrap { display: flex; justify-content: center; margin-top: 44px; }
.more-wrap:has(#loadMore[style*="none"]) { display: none; }

/* ============ Lightbox ============ */
.lb { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 70px 80px; background: rgba(3, 4, 6, 0.95); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.lb.open { opacity: 1; visibility: visible; }
.lb-fig { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; max-height: 100%; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 200px); border-radius: 18px; object-fit: contain; }
.lb-fig figcaption { display: flex; align-items: center; gap: 16px; font-family: var(--f-brand); font-weight: 700; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--card-2); border: 1px solid var(--line-2); transition: 0.3s; }
.lb-btn:hover { background: #fff; color: #0a0d11; }
.lb-x { top: 20px; inset-inline-end: 20px; }
.lb-prev { right: 20px; top: 50%; translate: 0 -50%; }
.lb-next { left: 20px; top: 50%; translate: 0 -50%; }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }

/* ============ Toast ============ */
.toast { position: fixed; bottom: 30px; left: 50%; z-index: 700; transform: translate(-50%, 200%); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 100px; background: rgba(16, 21, 27, 0.96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; transition: transform 0.5s var(--ease), opacity 0.3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast i { color: #22c55e; font-size: 20px; }

/* ============ Reviews ============ */
.stars { display: inline-flex; gap: 2px; color: #fbbf24; direction: ltr; }
.stars i { font-size: 15px; }
.bot-rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; min-height: 0; }
.bot-rating:empty { display: none; }
.bot-rating b { font-family: var(--f-brand); }
.bot-rating span { color: var(--muted); }
.modal-box .bot-rating { margin: 0 0 6px; }
.m-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.m-lock-bot { display: flex; align-items: center; gap: 14px; text-align: start; margin: 4px 0 18px; padding: 14px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); }
.m-lock-bot .bot-icon { width: 54px; height: 54px; font-size: 24px; flex-shrink: 0; }
.m-lock-bot b { font-family: var(--f-head); font-size: 18px; }
.m-lock-bot .m-desc { margin: 0; font-size: 13px; }
.m-lock-bot .bot-rating { margin: 2px 0 4px; }
/* كروت المتجر بدون وصف — نخلي الاسم والمميزات مرتبين */
.bot-card h3 { margin-bottom: 18px; }

.reviews { margin-top: 70px; }
.rv-head { text-align: center; margin-bottom: 30px; }
.rv-head h3 { font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 3vw, 38px); margin-top: 14px; }
.rv-overall { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; padding: 8px 20px; border-radius: 100px; background: var(--card); border: 1px solid rgba(251, 191, 36, 0.25); color: var(--muted); font-size: 14px; }
.rv-overall > b { font-family: var(--f-brand); font-size: 20px; color: #fde68a; }
.rv-overall span b { color: var(--text); }
.rv-overall .stars i { font-size: 16px; }

.rv-tracks { display: grid; gap: 18px; min-width: 0; margin-inline: calc((100vw - min(1240px, 92vw)) / -2); }
.rv-track { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rv-belt { display: flex; gap: 16px; width: max-content; animation: rvMove var(--dur, 40s) linear infinite; will-change: transform; }
.rv-track.rev .rv-belt { animation-direction: reverse; }
.rv-track:hover .rv-belt { animation-play-state: paused; }
@keyframes rvMove { to { transform: translateX(-50%); } }
.reviews[hidden] { display: none; }
.rv-card { direction: rtl; width: 290px; flex-shrink: 0; padding: 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(159, 179, 193, 0.08), rgba(159, 179, 193, 0.02)); border: 1px solid var(--line); transition: border-color 0.3s; }
.rv-card:hover { border-color: rgba(214, 225, 232, 0.35); }
.rv-top { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.rv-top img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.rv-who { flex: 1; min-width: 0; }
.rv-who b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-who .stars i { font-size: 12.5px; }
.rv-bot { padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; font-family: var(--f-brand); color: var(--steel-3); background: var(--card-2); border: 1px solid var(--line); white-space: nowrap; direction: ltr; }
.rv-card p { color: var(--steel-3); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.7em * 2); }
.rv-letter { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--steel-grad); border: 1px solid var(--line-2); }
.rv-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.rv-foot small { color: var(--muted); font-size: 11.5px; }
.rv-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: #4ade80; }
.rv-ver i { font-size: 13px; }

/* rating modal */
.rate-stars { display: flex; justify-content: center; gap: 8px; margin: 18px 0 14px; direction: ltr; }
.rate-stars button { font-size: 34px; color: rgba(159, 179, 193, 0.25); transition: transform 0.2s, color 0.2s; }
.rate-stars button.on { color: #fbbf24; }
.rate-stars button:hover { transform: scale(1.15); }
.rate-text { width: 100%; min-height: 110px; padding: 14px 16px; margin-bottom: 16px; border-radius: 18px; resize: vertical; font: inherit; color: var(--text); background: var(--card-2); border: 1px solid var(--line-2); outline: 0; }
.rate-text:focus { border-color: var(--steel-2); }
.sub-rate { grid-column: 1 / -1; color: #fde68a; border-color: rgba(251, 191, 36, 0.3); }

.dot-on { display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; vertical-align: middle; }

/* ============ Server panel (premium frame) ============ */
.server-panel {
  position: relative; padding: 28px; border-radius: 34px;
  background: linear-gradient(160deg, rgba(16, 21, 27, 0.92), rgba(8, 10, 13, 0.92)) padding-box,
              linear-gradient(160deg, rgba(214, 225, 232, 0.35), rgba(159, 179, 193, 0.06) 40%, rgba(214, 225, 232, 0.2)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 90px -50px rgba(159, 179, 193, 0.35);
}
.server-panel .tabs { margin-bottom: 24px; }
.server-panel .empty { background: rgba(5, 6, 8, 0.4); }

/* ============ Dashboard ============ */
.dash-lock, .m-lock { text-align: center; }
.dash-lock {
  max-width: 620px; margin: 0 auto; padding: 50px 30px; border-radius: 34px;
  background: linear-gradient(160deg, rgba(16, 21, 27, 0.92), rgba(8, 10, 13, 0.92)) padding-box,
              linear-gradient(160deg, rgba(214, 225, 232, 0.35), rgba(159, 179, 193, 0.06) 40%, rgba(214, 225, 232, 0.2)) border-box;
  border: 1px solid transparent;
}
.dash-lock-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: #fff; background: var(--steel-grad); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.dash-lock h3, .m-lock h3 { font-family: var(--f-head); font-weight: 600; font-size: 26px; margin-bottom: 8px; }
.dash-lock p, .m-lock p { color: var(--muted); margin: 0 auto 26px; max-width: 440px; }
.m-lock .btn { width: 100%; justify-content: center; }
.dash-perks { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.dash-perks li { display: flex; align-items: center; gap: 7px; }
.dash-perks i { color: var(--steel-2); font-size: 17px; }

.dash-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.dash-profile {
  position: relative; overflow: hidden; text-align: center; padding: 0 24px 24px; border-radius: 30px;
  background: linear-gradient(160deg, rgba(16, 21, 27, 0.95), rgba(8, 10, 13, 0.95)) padding-box,
              linear-gradient(160deg, rgba(214, 225, 232, 0.35), rgba(159, 179, 193, 0.06) 50%) border-box;
  border: 1px solid transparent;
}
.dp-cover { height: 96px; margin: 0 -24px; background: var(--stone) center / cover; opacity: 0.55; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.dp-avatar { width: 96px; height: 96px; margin: -52px auto 12px; position: relative; border-radius: 50%; object-fit: cover; border: 5px solid #0d1116; box-shadow: 0 10px 30px -10px #000; }
.dash-profile h3 { font-family: var(--f-head); font-weight: 600; font-size: 22px; }
.dp-user { display: block; color: var(--muted); font-size: 14px; direction: ltr; }
.dp-id { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 100px; font-family: var(--f-brand); font-size: 12px; color: var(--steel-3); background: var(--card-2); border: 1px solid var(--line); direction: ltr; transition: border-color 0.3s; }
.dp-id:hover { border-color: var(--steel-2); }
.dp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.dp-stats div { padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.dp-stats b { display: block; font-family: var(--f-brand); font-size: 22px; font-weight: 700; }
.dp-stats span { color: var(--muted); font-size: 11.5px; }
.dp-logout { width: 100%; justify-content: center; color: #f87171; }

.dash-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dash-main-head h3 { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: 22px; }
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.sub-card { padding: 22px; border-radius: 26px; background: linear-gradient(160deg, rgba(159, 179, 193, 0.07), rgba(159, 179, 193, 0.015)); border: 1px solid var(--line); transition: border-color 0.4s, transform 0.4s var(--ease); --st: #22c55e; }
.sub-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.sub-card.s-soon { --st: #f59e0b; }
.sub-card.s-expired { --st: #ef4444; }
.sub-top { display: flex; align-items: center; gap: 14px; }
.sub-top .bot-icon { width: 54px; height: 54px; font-size: 24px; }
.sub-name { flex: 1; min-width: 0; }
.sub-name h4 { font-family: var(--f-head); font-weight: 600; font-size: 18px; direction: ltr; text-align: right; }
.sub-name small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.sub-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 700; color: var(--st); background: color-mix(in srgb, var(--st) 12%, transparent); border: 1px solid color-mix(in srgb, var(--st) 30%, transparent); white-space: nowrap; }
.sub-status i { font-size: 8px; }
.sub-bar { height: 6px; margin: 20px 0 10px; border-radius: 6px; background: var(--card-2); overflow: hidden; }
.sub-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--steel-2), #fff); }
.s-soon .sub-bar span, .s-expired .sub-bar span { background: var(--st); }
.sub-dates { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sub-dates b { color: var(--text); font-size: 13.5px; }
.sub-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sub-actions .btn { justify-content: center; padding: 11px 14px; font-size: 14px; }
.dash-empty { text-align: center; padding: 46px 20px; border-radius: 26px; border: 1px dashed var(--line-2); background: var(--card); }
.dash-empty i { font-size: 46px; color: var(--steel-2); }
.dash-empty h4 { font-family: var(--f-head); font-weight: 600; font-size: 20px; margin: 6px 0; }
.dash-empty p { color: var(--muted); margin-bottom: 20px; }

/* modal extras */
.m-account { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); }
.m-account img { width: 40px; height: 40px; border-radius: 50%; }
.m-account div { flex: 1; min-width: 0; }
.m-account b { display: block; font-size: 15px; }
.m-account small { color: var(--muted); font-size: 12px; direction: ltr; display: block; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-account span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #22c55e; }
.m-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.modal-box .m-actions .btn { width: auto; justify-content: center; }

/* ============ Why ============ */
.why { padding-top: 20px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), border-color 0.4s, background 0.4s; }
.why-card.in:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--card-2); }
.why-card i { font-size: 28px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--steel-grad); color: #fff; margin-bottom: 18px; }
.why-card h3 { font-family: var(--f-head); font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: 14.5px; }

/* ============ CTA ============ */
.cta { position: relative; text-align: center; padding: 90px 30px; border-radius: 40px; overflow: hidden; border: 1px solid var(--line-2); background: #07090c; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--stone) center / cover; opacity: 0.35; }
.cta-statue {
  position: absolute; left: 0; bottom: 0; width: 38%; height: 100%;
  background: url("../assets/brand/statue.jpg") center top / cover; opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, #000 25%, transparent);
  mask-image: linear-gradient(to right, #000 25%, transparent);
}
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5, 6, 8, 0.35), rgba(5, 6, 8, 0.92) 75%); }
.cta > *:not(.cta-statue) { position: relative; z-index: 1; }
.cta-logo { width: 110px; height: 110px; margin: 0 auto; border-radius: 50%; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8); }
.cta h2 { font-family: var(--f-head); font-weight: 600; font-size: clamp(32px, 4.5vw, 58px); margin: 18px 0 10px; }
.cta p { color: var(--steel-3); font-size: 18px; margin-bottom: 32px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 50px 0 26px; background: rgba(5, 6, 8, 0.8); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.f-brand p { color: var(--muted); margin-top: 12px; font-size: 14px; }
.f-links { display: flex; gap: 24px; flex-wrap: wrap; }
.f-links a { color: var(--muted); transition: color 0.3s; }
.f-links a:hover { color: #fff; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--card); border: 1px solid var(--line); transition: 0.3s var(--ease); cursor: pointer; }
.f-social a:hover { background: #fff; color: #0a0d11; border-color: transparent; transform: translateY(-3px); }
.copy { text-align: center; color: var(--muted); font-size: 13px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ============ Modal ============ */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 6, 0.88); opacity: 0; transition: opacity 0.3s; }
.modal-box { position: relative; width: min(480px, 100%); padding: 34px; border-radius: 30px; overflow: hidden; background: linear-gradient(160deg, #121820, #080b0e); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); opacity: 0; transform: translateY(30px) scale(0.96); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: var(--card-2); font-size: 20px; display: grid; place-items: center; }
.modal-x:hover { background: #fff; color: #0a0d11; }
.m-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.m-head h3 { font-family: var(--f-head); font-weight: 600; font-size: 24px; direction: ltr; text-align: right; }
.m-head .price b { font-size: 22px; }
.m-steps { list-style: none; display: grid; gap: 12px; margin: 20px 0 26px; counter-reset: s; }
.m-steps li { display: flex; gap: 12px; align-items: center; color: var(--steel-3); font-size: 15px; counter-increment: s; }
.m-steps li::before { content: counter(s); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-brand); font-weight: 700; font-size: 13px; background: var(--card-2); border: 1px solid var(--line-2); }
.modal-box .btn { width: 100%; justify-content: center; }

/* ============ To-top ============ */
.to-top { position: fixed; bottom: 28px; right: 28px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 21, 27, 0.9); border: 1px solid var(--line-2); opacity: 0; transform: translateY(20px); pointer-events: none; transition: 0.4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top i { font-size: 20px; }

/* ============ Support chat ============ */
.support { position: fixed; left: 26px; bottom: 26px; z-index: 450; }
.sp-fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #0a0d11;
  background: linear-gradient(135deg, #ffffff, #c9d6df 55%, #8ea3b2);
  box-shadow: 0 14px 40px -10px rgba(201, 214, 223, 0.6), inset 0 1px 0 #fff; transition: transform 0.3s var(--ease);
}
.sp-fab:hover { transform: scale(1.07); }
.sp-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(214, 225, 232, 0.35); animation: spPulse 2.6s ease-out infinite; }
@keyframes spPulse { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.sp-fab i { position: absolute; transition: transform 0.35s var(--ease), opacity 0.25s; }
.sp-fab .ic-close { opacity: 0; transform: rotate(-90deg); }
.support.open .sp-fab .ic-open { opacity: 0; transform: rotate(90deg); }
.support.open .sp-fab .ic-close { opacity: 1; transform: none; }
.support.open .sp-fab::before { display: none; }

.sp-panel {
  position: absolute; left: 0; bottom: 78px; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
  background: linear-gradient(170deg, #121820, #07090c) padding-box,
              linear-gradient(160deg, rgba(214, 225, 232, 0.4), rgba(159, 179, 193, 0.06) 45%, rgba(214, 225, 232, 0.2)) border-box;
  border: 1px solid transparent; box-shadow: 0 40px 90px -30px #000;
  opacity: 0; transform: translateY(16px) scale(0.96); transform-origin: bottom left; pointer-events: none; transition: 0.35s var(--ease);
}
.support.open .sp-panel { opacity: 1; transform: none; pointer-events: auto; }
.sp-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: rgba(159, 179, 193, 0.05); }
.sp-head img { width: 40px; height: 40px; border-radius: 50%; }
.sp-head div { flex: 1; }
.sp-head b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 16px; }
.sp-head small { color: var(--muted); font-size: 12px; }
.sp-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--card-2); }
.sp-x:hover { background: #fff; color: #0a0d11; }
.sp-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.sp-msg { display: flex; flex-direction: column; max-width: 85%; animation: spIn 0.35s var(--ease); }
@keyframes spIn { from { opacity: 0; transform: translateY(8px); } }
.sp-msg.bot { align-self: flex-start; }
.sp-msg.me { align-self: flex-end; align-items: flex-end; }
.sp-bubble { padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.7; word-break: break-word; }
.sp-msg.bot .sp-bubble { background: var(--card-2); border: 1px solid var(--line); border-start-start-radius: 6px; }
.sp-msg.me .sp-bubble { background: linear-gradient(120deg, #ffffff, #c9d6df); color: #0a0d11; border-start-end-radius: 6px; font-weight: 600; }
.sp-msg small { color: var(--muted); font-size: 10.5px; margin: 4px 6px 0; }
.sp-num { font-family: var(--f-brand); color: #fff; }
.sp-login { display: flex; width: 100%; justify-content: center; margin-top: 10px; padding: 10px 16px; font-size: 14px; }
.sp-options { display: grid; gap: 8px; }
.sp-options button { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; font-weight: 600; font-size: 14.5px; text-align: start; background: rgba(159, 179, 193, 0.06); border: 1px solid var(--line-2); transition: 0.25s var(--ease); animation: spIn 0.4s var(--ease); }
.sp-options button i { font-size: 18px; color: var(--steel-2); }
.sp-options button:hover { background: #fff; color: #0a0d11; border-color: transparent; }
.sp-options button:hover i { color: #0a0d11; }
.sp-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.sp-input[hidden] { display: none; }
.sp-input textarea { flex: 1; resize: none; max-height: 120px; padding: 11px 14px; border-radius: 16px; font: inherit; font-size: 14px; color: var(--text); background: var(--card-2); border: 1px solid var(--line-2); outline: 0; }
.sp-input textarea:focus { border-color: var(--steel-2); }
.sp-input button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #0a0d11; background: linear-gradient(120deg, #fff, #b9c8d3); }
.sp-typing { display: inline-flex; gap: 4px; }
.sp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel-2); animation: spDot 1s infinite; }
.sp-typing i:nth-child(2) { animation-delay: 0.15s; }
.sp-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes spDot { 50% { transform: translateY(-4px); opacity: 0.4; } }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .bots { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { position: fixed; top: 76px; inset-inline: 4%; flex-direction: column; padding: 12px; border-radius: 24px; background: rgba(10, 13, 17, 0.98); opacity: 0; transform: translateY(-14px); pointer-events: none; transition: 0.4s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 18px; font-size: 16px; border-radius: 14px; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .brand-word { align-items: center; }
  .hero-desc { margin-inline: auto; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; height: 440px; max-width: 460px; margin-inline: auto; }
  .store-hero { grid-template-columns: 1fr; gap: 26px; }
  .dash-grid { grid-template-columns: 1fr; }
  .rv-card { width: 260px; }
  .support { left: 16px; bottom: 16px; }
  .sp-fab { width: 56px; height: 56px; font-size: 25px; }
  .sp-panel { bottom: 70px; height: 70vh; }
  .to-top { right: 16px; bottom: 16px; }
  .bg-grid { background-size: 44px 44px; }
  .section .sec-head::before { width: 360px; }
  .dash-profile { max-width: 460px; width: 100%; margin: 0 auto; }
  .store-hero .sh-img { order: -1; }
  .section { padding: 80px 0; }
}
@media (max-width: 680px) {
  .bots { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-actions .btn span, .user-chip span { display: none; }
  .server-panel { padding: 16px; border-radius: 26px; }
  .subs { grid-template-columns: 1fr; }
  .m-actions { grid-template-columns: 1fr; }
  .nav-actions .btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .logo-text small { display: none; }
  .hero { padding-top: 100px; }
  .hero-visual { height: 360px; }
  .hero-logo { width: 84px; height: 84px; right: auto; left: 6%; bottom: 10%; }
  .hero-stats { gap: 18px; }
  .stat + .stat { padding-inline-start: 18px; }
  .stat b { font-size: 22px; }
  .float-card { scale: 0.82; }
  .fc-1 { right: -2%; top: 6%; }
  .fc-2 { right: -4%; top: 40%; }
  .fc-3, .fc-4 { display: none; }
  .cta-statue { width: 60%; opacity: 0.3; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery[data-type="avatars"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery[data-type="avatars"] .g-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gallery[data-type="profiles"], .gallery[data-type="banners"], .gallery[data-type="wallpapers"] { grid-template-columns: 1fr; }
  .g-overlay { opacity: 1; }
  .ic-btn { width: 34px; height: 34px; font-size: 15px; }
  .search { min-width: 0; width: 100%; }
  .lb { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
  .bot-card, .store-hero { padding: 22px; }
  .cta { padding: 60px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .f-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .fade-in { opacity: 1; transform: none; }
}
