/* ============================================================
   خالو — استایل مشترک همه صفحات
   بر پایه‌ی طراحی تاییدشده (Gemini reference) + اضافات لازم برای
   منوی موبایل، فرم سفارش، و پنجره‌ی ورود/ثبت‌نام
   ============================================================ */

:root {
  --bg: #04040a;
  --surface: #0a0a14;
  --surface-light: #121222;
  --border: rgba(255, 255, 255, 0.05);
  --border-highlight: rgba(139, 92, 246, 0.3);
  --primary: #6d28d9;
  --primary-light: #8b5cf6;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --pink: #ec4899;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-glow {
  position: absolute;
  top: 0; left: 0; right: 0; height: 1000px;
  background:
    radial-gradient(circle at 80% 20%, rgba(91, 33, 182, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }
svg { display: block; }

/* ================= HEADER ================= */
header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(4, 4, 10, 0.75);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.header-row-ltr { display: flex; width: 100%; direction: ltr; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--primary-light); object-fit: cover; }
.brand-text { display: flex; flex-direction: column; }
.brand-text b { font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: 0.5px; }
.brand-text span { font-size: 11px; color: var(--text-dim); }

nav.main-nav { display: flex; gap: 32px; direction: rtl; }
nav.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: 0.2s; position: relative; height: 80px; display: flex; align-items: center;
}
nav.main-nav a:hover { color: var(--text-main); }
nav.main-nav a.active { color: var(--primary-light); }
nav.main-nav a.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--primary-light); box-shadow: 0 -2px 10px rgba(139, 92, 246, 0.5);
}

.header-actions { display: flex; gap: 16px; direction: ltr; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; background: transparent;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-main); position: relative; transition: 0.2s; cursor: pointer;
}
.icon-btn:hover { border-color: var(--border-highlight); background: var(--surface-light); }
.icon-btn svg { width: 20px; height: 20px; }
.badge {
  position: absolute; top: -4px; right: -4px; background: var(--primary-light); color: #fff;
  font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.menu-btn { display: none; background: none; border: none; color: var(--text-main); font-size: 22px; cursor: pointer; }
.mobile-nav {
  display: none; flex-direction: column; gap: 2px; padding: 10px 0 16px; border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 6px; border-radius: 10px; color: var(--text-dim); font-weight: 600; font-size: 15px; }
.mobile-nav a:hover { background: var(--surface); color: var(--text-main); }

/* ================= HERO ================= */
.hero { padding: 70px 0; position: relative; }
.hero-flex { display: flex; align-items: center; justify-content: space-between; direction: ltr; gap: 40px; }
.hero-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.hero-image { flex: 1.1; position: relative; display: flex; justify-content: center; }
.hero-image img { width: 100%; max-width: 560px; height: auto; object-fit: contain; }

.eyebrow {
  display: flex; align-items: center; gap: 8px; color: var(--primary-light);
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 16px;
}
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; }

.hero h1 {
  font-family: 'Poppins', sans-serif; font-size: clamp(40px, 5.5vw, 68px); font-weight: 900;
  font-style: italic; line-height: 1.08; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 span.accent { color: var(--primary-light); }

.hero-desc { direction: rtl; text-align: right; font-size: 17px; color: var(--text-main); margin-bottom: 30px; line-height: 1.8; }

.hero-buttons { display: flex; gap: 14px; direction: rtl; margin-bottom: 36px; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; cursor: pointer; transition: 0.2s; border: none; font-family: inherit;
}
.btn svg { width: 19px; height: 19px; stroke-width: 2px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-outline { background: var(--surface); color: var(--text-main); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-dim); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

.trust-row { display: flex; gap: 28px; direction: rtl; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--primary-light); }
.trust-icon svg { width: 22px; height: 22px; }
.trust-text { display: flex; flex-direction: column; }
.trust-text b { font-size: 14px; font-weight: 700; }
.trust-text span { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ================= PAGE HEADER (سایر صفحات غیر از خانه) ================= */
.page-hero { padding: 50px 0 10px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 {
  font-family: 'Vazirmatn', sans-serif; font-style: normal; text-transform: none;
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px;
}
.page-hero p { color: var(--text-dim); font-size: 15px; max-width: 520px; margin: 0 auto; }
.breadcrumb { font-size: 12.5px; color: var(--text-dim); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--primary-light); }

/* ================= CATEGORIES GRID ================= */
.section-header { text-align: center; margin-bottom: 44px; }
.section-header .eyebrow { justify-content: center; margin-bottom: 12px; }
.section-header h2 { font-size: 15px; font-weight: 400; color: var(--text-dim); }
.section-header h1.big-title { font-size: clamp(22px,3vw,30px); font-weight: 800; color: var(--text-main); font-style: normal; text-transform: none; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 70px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column; transition: 0.3s;
}
.cat-card:hover { border-color: var(--border-highlight); transform: translateY(-4px); }
.cat-img { height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-body {
  padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column;
  background: rgba(255,255,255,0.035); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.cat-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.cat-card p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 18px; text-align: center; min-height: 40px; }
.cat-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-main);
  background: rgba(var(--tint, 139,92,246), 0.12); border: 1px solid rgba(var(--tint, 139,92,246), 0.35); border-radius: 999px;
  padding: 9px 18px; margin: 0 auto; transition: .2s;
}
.cat-card:hover .cat-link { border-color: rgba(var(--tint, 139,92,246), 0.7); background: rgba(var(--tint, 139,92,246), 0.2); }
.cat-body { background-image: linear-gradient(180deg, rgba(var(--tint, 139,92,246), 0.10), transparent 55%); }
.cat-card.cat-uc { --tint: 234, 179, 8; }
.cat-card.cat-dns { --tint: 99, 102, 241; }
.cat-card.cat-wireguard { --tint: 239, 68, 68; }
.cat-card.cat-other { --tint: 168, 85, 247; }
.soon-pill {
  position: absolute; top: 14px; left: 14px; background: rgba(4,4,10,0.7); border: 1px solid var(--border);
  font-size: 9.5px; font-weight: 800; color: var(--text-dim); padding: 3px 9px; border-radius: 999px; z-index: 2;
}
.cat-card.is-soon { opacity: .82; position: relative; }

/* list rows used on the "سایر خدمات" hub page */
.service-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 60px; }
.service-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px;
  transition: .2s;
}
.service-row:hover { border-color: var(--border-highlight); transform: translateX(-2px); }
.service-row .s-left { display: flex; align-items: center; gap: 14px; }
.service-row .s-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--surface-light);
  display: flex; align-items: center; justify-content: center; color: var(--primary-light); flex-shrink: 0;
}
.service-row .s-icon svg { width: 20px; height: 20px; }
.service-row b { font-size: 14.5px; display: block; margin-bottom: 2px; }
.service-row span.s-desc { font-size: 12px; color: var(--text-dim); }

/* ================= WHY US ================= */
.why-box { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 44px 36px; margin-bottom: 70px; }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.why-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.why-item-icon { margin-bottom: 14px; color: var(--primary-light); }
.why-item-icon svg { width: 40px; height: 40px; stroke-width: 1.5px; }
.why-item b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.why-item span { font-size: 11.5px; color: var(--text-dim); }

/* ================= ORDER CARD (فرم خرید UC) ================= */
.order-wrap { display: flex; justify-content: center; padding-bottom: 60px; }
.order-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); position: relative;
  width: 100%; max-width: 420px;
}
.order-card::before {
  content: "سفارش سریع"; position: absolute; top: -13px; right: 22px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 12.5px;
  padding: 5px 14px; border-radius: 999px;
}
.seg { display: flex; background: var(--bg); border-radius: 11px; padding: 4px; margin: 14px 0; border: 1px solid var(--border); }
.seg button {
  flex: 1; padding: 9px; border: none; background: transparent; color: var(--text-dim);
  border-radius: 8px; font-family: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: .15s;
}
.seg button.active { background: var(--primary); color: #fff; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-main); font-family: inherit; font-size: 14.5px;
}
.field input:focus { outline: 2px solid var(--primary-light); outline-offset: 1px; }
.pkg-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.pkg { border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; cursor: pointer; background: var(--bg); transition: .15s; }
.pkg:hover { border-color: var(--primary-light); }
.pkg.active { border-color: var(--primary-light); background: rgba(139,92,246,0.14); }
.pkg .uc { font-weight: 800; font-size: 15px; }
.pkg .price { font-size: 11.5px; color: var(--text-dim); margin-top: 3px; }
.order-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px dashed var(--border); margin-top: 4px; }
.order-total .amount { font-size: 20px; font-weight: 800; color: var(--primary-light); }
.order-card .btn { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.note { font-size: 11.5px; color: var(--text-dim); text-align: center; margin-top: 10px; }
.mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

/* ================= COMING SOON PAGE ================= */
.soon-box {
  max-width: 480px; margin: 0 auto 80px; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 48px 32px;
}
.soon-box .why-item-icon { margin: 0 auto 18px; }
.soon-box .why-item-icon svg { width: 52px; height: 52px; }
.soon-box h2 { font-size: 20px; margin-bottom: 10px; }
.soon-box p { color: var(--text-dim); font-size: 13.5px; margin-bottom: 22px; }

/* ================= FOOTER ================= */
footer { border-top: 1px solid var(--border); padding: 56px 0 30px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 50px; }
.foot-col h4 { font-size: 16px; font-weight: 800; margin-bottom: 18px; color: var(--text-main); }
.foot-col ul { display: flex; flex-direction: column; gap: 12px; }
.foot-col a { font-size: 13px; color: var(--text-dim); transition: 0.2s; }
.foot-col a:hover { color: var(--primary-light); }
.newsletter p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }
.nl-form { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.nl-form input { flex: 1; background: transparent; border: none; outline: none; padding: 0 16px; color: var(--text-main); font-family: inherit; font-size: 13px; }
.nl-form button { background: var(--primary-light); border: none; border-radius: 8px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.nl-form button svg { width: 18px; height: 18px; transform: scaleX(-1); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 22px; }
.copyright { font-size: 12px; color: var(--text-dim); }
.socials { display: flex; gap: 16px; }
.socials a { color: var(--text-main); opacity: 0.7; transition: 0.2s; }
.socials a:hover { opacity: 1; color: var(--primary-light); }
.socials svg { width: 20px; height: 20px; }

/* ================= TOAST ================= */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-light); border: 1px solid var(--primary-light); color: var(--text-main);
  padding: 14px 22px; border-radius: 12px; font-size: 13.5px; max-width: 90%;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100; text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= AUTH MODAL ================= */
.modal-overlay { position: fixed; inset: 0; background: rgba(4,4,10,0.8); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; position: relative; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6); }
.modal-close { position: absolute; top: 14px; left: 14px; background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text-main); }
.modal-tabs { display: flex; background: var(--bg); border-radius: 11px; padding: 4px; margin-bottom: 20px; }
.modal-tabs button { flex: 1; padding: 9px; border: none; background: transparent; color: var(--text-dim); border-radius: 8px; font-family: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.modal-tabs button.active { background: var(--primary); color: #fff; }
.modal-panel { display: none; }
.modal-panel.active { display: block; }
.modal-panel .btn { width: 100%; justify-content: center; padding: 12px; margin-top: 4px; }
.modal-error { color: var(--pink); font-size: 12.5px; margin: -6px 0 12px; display: none; }
.modal-error.show { display: block; }
.modal-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-dim); font-size: 12px; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tg-widget-wrap { display: flex; justify-content: center; min-height: 40px; }
.account-note { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 14px; }

/* ================= PROFILE PAGE ================= */
.profile-shell { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; padding-bottom: 70px; }
.profile-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.welcome-banner {
  position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(120deg, #1a0f2e 0%, #0a0a18 55%);
  padding: 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 170px;
}
.welcome-bg {
  position: absolute; top: 50%; left: 24px; transform: translateY(-50%); height: 220px; width: auto;
  opacity: 0.9; object-fit: contain; z-index: 0; pointer-events: none;
  mask-image: linear-gradient(90deg, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, black 60%, transparent 100%);
}
.welcome-text { position: relative; z-index: 1; flex: 1; }
.welcome-text h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.welcome-text h2 svg { width: 18px; height: 18px; color: var(--primary-light); }
.welcome-text > p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.welcome-meta { display: flex; gap: 26px; flex-wrap: wrap; font-size: 12.5px; }
.welcome-meta div { display: flex; flex-direction: column; gap: 3px; }
.welcome-meta b { font-size: 13.5px; font-weight: 700; }
.welcome-meta span.wm-label { color: var(--text-dim); font-size: 11.5px; }
.welcome-avatar-wrap { position: relative; z-index: 1; width: 96px; height: 96px; flex-shrink: 0; }
.welcome-avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); background: var(--surface-light); }
.welcome-avatar-edit {
  position: absolute; bottom: 0; left: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.welcome-avatar-edit svg { width: 14px; height: 14px; stroke: #fff; }

.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 14px; text-align: center;
}
.stat-card .stat-icon { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--primary-light); }
.stat-card .stat-icon svg { width: 100%; height: 100%; }
.stat-card b { display: block; font-size: 19px; font-weight: 800; margin-bottom: 3px; }
.stat-card span { font-size: 11px; color: var(--text-dim); }
.stat-card.is-soon { opacity: .6; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-row:last-of-type { border-bottom: none; }
.info-row span.i-label { color: var(--text-dim); }
.info-row b { font-weight: 700; }
.status-tag { background: rgba(34,197,94,0.15); color: #4ade80; font-size: 10.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

.security-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.security-row:last-of-type { border-bottom: none; }
.security-row .sec-status { font-size: 12px; color: var(--text-dim); }
.security-row .sec-status.on { color: #4ade80; }
.small-btn { font-size: 12px; padding: 7px 16px; border-radius: 8px; background: var(--surface-light); border: 1px solid var(--border); color: var(--text-main); cursor: pointer; font-family: inherit; }
.small-btn:hover { border-color: var(--border-highlight); }

.edit-form { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.edit-form.open { display: block; }

.cta-banner {
  position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(120deg, #1a0f2e 0%, #0a0a18 60%);
  padding: 46px 40px; text-align: center; min-height: 190px; display: flex; align-items: center; justify-content: center;
}
.cta-left, .cta-right { position: absolute; bottom: -6px; height: 150px; width: auto; opacity: 0.9; z-index: 0; pointer-events: none; }
.cta-left { left: -14px; }
.cta-right { right: -14px; }
.cta-banner-text { position: relative; z-index: 1; max-width: 380px; margin: 0 auto; }
.cta-banner-text h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.cta-banner-text p { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }

.profile-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 10px; }
.sidebar-card h4 { font-size: 12.5px; color: var(--text-dim); padding: 10px 14px 6px; }
.sidebar-card nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-card nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); transition: .15s; }
.sidebar-card nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-card nav a:hover { background: var(--surface-light); color: var(--text-main); }
.sidebar-card nav a.active { background: rgba(139,92,246,0.15); color: var(--primary-light); }
.sidebar-card nav a.danger { color: #f87171; }
.sidebar-card nav a.danger:hover { background: rgba(239,68,68,0.1); }

.promo-card { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(99,102,241,0.06)); border: 1px solid var(--border-highlight); border-radius: 18px; padding: 18px; text-align: center; }
.promo-card h4 { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; font-weight: 600; }
.promo-code {
  font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 800; letter-spacing: 2px;
  background: var(--surface); border: 1px dashed var(--border-highlight); border-radius: 10px; padding: 10px; margin-bottom: 10px;
}
.promo-card p { font-size: 11.5px; color: var(--text-dim); margin-bottom: 14px; }
.promo-card .btn { width: 100%; justify-content: center; padding: 10px; font-size: 13px; }

@media (max-width: 980px) {
  .profile-shell { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; text-align: center; }
  .welcome-bg { display: none; }
  .welcome-meta { justify-content: center; }
}
@media (max-width: 520px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .menu-btn { display: block; }
  .hero-flex { flex-direction: column; direction: rtl; }
  .hero-content { align-items: center; text-align: center; }
  .hero-buttons { justify-content: center; }
  .trust-row { justify-content: center; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pkg-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
