/* ================================================
   SAMADI CAPITAL - Complete Design System
   Dark Gold Premium | RTL Persian | Vazirmatn
================================================ */

/* فونت Vazirmatn local — کار می‌کنه حتی بدون VPN */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Vazirmatn-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/Vazirmatn-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Vazirmatn-700.ttf') format('truetype');
}

/* ---- CSS Variables ---- */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C96B;
  --gold-lighter: #F5E08A;
  --gold-dark: #9A7A2E;
  --gold-gradient: linear-gradient(135deg, #9A7A2E 0%, #C9A84C 40%, #E8C96B 70%, #C9A84C 100%);
  --gold-gradient-h: linear-gradient(90deg, #9A7A2E, #C9A84C, #E8C96B, #C9A84C, #9A7A2E);

  --black: #050505;
  --dark-1: #0A0A0A;
  --dark-2: #111111;
  --dark-3: #181818;
  --dark-4: #222222;
  --dark-5: #2D2D2D;

  --text-primary: #F0F0F0;
  --text-secondary: #BBBBBB;
  --text-muted: #777777;

  --success: #2ECC71;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;

  --border-gold: rgba(201,168,76,0.18);
  --border-gold-hover: rgba(201,168,76,0.55);

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 28px rgba(0,0,0,0.65);
  --shadow-lg: 0 10px 50px rgba(0,0,0,0.75);
  --shadow-gold: 0 4px 28px rgba(201,168,76,0.22);
  --shadow-gold-lg: 0 8px 44px rgba(201,168,76,0.35);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { direction:rtl; scroll-behavior:smooth; font-size:16px; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--dark-1);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration:none; color:inherit; transition:var(--transition); }
img { max-width:100%; height:auto; display:block; }
button { cursor:pointer; font-family:'Vazirmatn',sans-serif; }
input, textarea, select { font-family:'Vazirmatn',sans-serif; }
ul { list-style:none; }

::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:var(--dark-2); }
::-webkit-scrollbar-thumb { background:var(--gold-dark); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--gold); }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem,5vw,3.6rem); font-weight:900; line-height:1.2; }
h2 { font-size: clamp(1.5rem,3.5vw,2.4rem); font-weight:800; line-height:1.3; }
h3 { font-size: clamp(1.1rem,2.5vw,1.6rem); font-weight:700; }
h4 { font-size:1.1rem; font-weight:600; }

/* ---- Utilities ---- */
.container { max-width:1240px; margin:0 auto; padding:0 24px; }
.text-gold { color:var(--gold); }
.text-center { text-align:center; }
.text-muted { color:var(--text-muted); }
.d-flex { display:flex; }
.align-center { align-items:center; }
.gap-8 { gap:8px; }
.gap-12 { gap:12px; }
.gap-16 { gap:16px; }
.gap-24 { gap:24px; }
.mt-8 { margin-top:8px; }
.mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; }
.mb-8 { margin-bottom:8px; }
.mb-16 { margin-bottom:16px; }
.mb-24 { margin-bottom:24px; }
.mb-32 { margin-bottom:32px; }
.w-full { width:100%; }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: 'Vazirmatn', sans-serif;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content:'';
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0);
  transition:var(--transition);
}
.btn:hover::after { background:rgba(255,255,255,0.04); }

.btn-gold {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform:translateY(-2px); box-shadow:var(--shadow-gold-lg); }
.btn-gold:active { transform:translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background:rgba(201,168,76,0.08); box-shadow:var(--shadow-gold); }

.btn-dark {
  background: var(--dark-4);
  color: var(--text-primary);
  border: 1px solid var(--dark-5);
}
.btn-dark:hover { background:var(--dark-5); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--dark-5);
}
.btn-ghost:hover { border-color:var(--gold); color:var(--gold); }

.btn-danger {
  background: rgba(231,76,60,0.12);
  color: var(--danger);
  border: 1px solid rgba(231,76,60,0.3);
}
.btn-danger:hover { background:rgba(231,76,60,0.2); }

.btn-sm { padding:8px 18px; font-size:0.85rem; }
.btn-lg { padding:17px 44px; font-size:1.1rem; }
.btn-xl { padding:20px 56px; font-size:1.15rem; border-radius:var(--radius-lg); }
.btn-icon { width:38px; height:38px; padding:0; border-radius:var(--radius-sm); }

/* ---- Badge ---- */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 12px; border-radius:50px; font-size:0.75rem; font-weight:600;
}
.badge-gold { background:rgba(201,168,76,0.12); color:var(--gold); border:1px solid rgba(201,168,76,0.3); }
.badge-blue { background:rgba(52,152,219,0.12); color:var(--info); border:1px solid rgba(52,152,219,0.3); }
.badge-green { background:rgba(46,204,113,0.12); color:var(--success); border:1px solid rgba(46,204,113,0.3); }
.badge-red { background:rgba(231,76,60,0.12); color:var(--danger); border:1px solid rgba(231,76,60,0.3); }
.badge-gray { background:var(--dark-4); color:var(--text-muted); border:1px solid var(--dark-5); }
.badge-lg { padding:6px 16px; font-size:0.875rem; }

/* ---- Card ---- */
.card {
  background:var(--dark-3);
  border:1px solid var(--border-gold);
  border-radius:var(--radius-lg);
  padding:28px;
  transition:var(--transition);
}
.card:hover { border-color:var(--border-gold-hover); box-shadow:var(--shadow-gold); }

/* ---- Form Controls ---- */
.form-group { margin-bottom:18px; }
.form-label { display:block; color:var(--text-secondary); font-size:0.875rem; font-weight:500; margin-bottom:8px; }
.form-control {
  width:100%; background:var(--dark-4); border:1.5px solid var(--dark-5);
  border-radius:var(--radius); padding:13px 16px; color:var(--text-primary);
  font-family:'Vazirmatn',sans-serif; font-size:0.95rem; transition:var(--transition);
  direction:rtl; outline:none;
}
.form-control:focus { border-color:var(--gold); background:var(--dark-3); box-shadow:0 0 0 3px rgba(201,168,76,0.1); }
.form-control::placeholder { color:var(--text-muted); }
.form-select {
  width:100%; background:var(--dark-4); border:1.5px solid var(--dark-5);
  border-radius:var(--radius); padding:13px 16px; color:var(--text-primary);
  font-family:'Vazirmatn',sans-serif; font-size:0.95rem; cursor:pointer; outline:none; direction:rtl;
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:left 14px center;
}
.form-select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,168,76,0.1); }
.form-select option { background:var(--dark-3); color:var(--text-primary); }
textarea.form-control { resize:vertical; min-height:90px; }

/* ---- Alert ---- */
.alert {
  padding:13px 18px; border-radius:var(--radius); font-size:0.9rem;
  display:flex; align-items:center; gap:10px; margin-bottom:16px;
}
.alert-warning { background:rgba(243,156,18,0.1); border:1px solid rgba(243,156,18,0.3); color:var(--warning); }
.alert-success { background:rgba(46,204,113,0.1); border:1px solid rgba(46,204,113,0.3); color:var(--success); }
.alert-danger  { background:rgba(231,76,60,0.1);  border:1px solid rgba(231,76,60,0.3);  color:var(--danger); }
.alert-info    { background:rgba(201,168,76,0.1);  border:1px solid rgba(201,168,76,0.3);  color:var(--gold); }

/* ---- Divider ---- */
.gold-divider { width:60px; height:3px; background:var(--gold-gradient); margin:14px auto; border-radius:2px; }
.gold-divider-full { width:100%; height:1px; background:var(--border-gold); margin:20px 0; }

/* ---- Section Title ---- */
.section-title { text-align:center; margin-bottom:64px; }
.section-title .tag {
  display:inline-block; background:rgba(201,168,76,0.1);
  color:var(--gold); border:1px solid var(--border-gold);
  padding:6px 20px; border-radius:50px; font-size:0.8rem; margin-bottom:16px;
}
.section-title h2 { margin-bottom:14px; }
.section-title p { color:var(--text-secondary); max-width:580px; margin:0 auto; font-size:1.05rem; }

/* ---- Progress Bar ---- */
.progress-wrap { margin-top:8px; }
.progress-label { display:flex; justify-content:space-between; font-size:0.78rem; color:var(--text-muted); margin-bottom:6px; }
.progress-bg { background:var(--dark-5); border-radius:50px; height:7px; overflow:hidden; }
.progress-fill { height:100%; border-radius:50px; background:var(--gold-gradient); transition:width 1.2s cubic-bezier(0.4,0,0.2,1); }
.progress-fill-blue { background:linear-gradient(90deg,#2980B9,#3498DB); }
.progress-fill-green { background:linear-gradient(90deg,#27AE60,#2ECC71); }

/* ---- Notification Toast ---- */
.toast {
  position:fixed; top:20px; left:50%; transform:translateX(-50%) translateY(-120px);
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius); padding:13px 24px;
  display:flex; align-items:center; gap:10px;
  z-index:9999; transition:transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:var(--shadow-md); font-size:0.9rem; white-space:nowrap; min-width:200px;
}
.toast.show { transform:translateX(-50%) translateY(0); }
.toast.success { border-color:var(--success); color:var(--success); }
.toast.error   { border-color:var(--danger);  color:var(--danger); }
.toast.info    { border-color:var(--gold);    color:var(--gold); }
.toast.warning { border-color:var(--warning); color:var(--warning); }

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position:fixed; top:0; right:0; left:0; z-index:900;
  padding:18px 0; transition:var(--transition);
}
.navbar.scrolled {
  background:rgba(10,10,10,0.96);
  backdrop-filter:blur(24px);
  border-bottom:1px solid var(--border-gold);
  padding:12px 0;
  box-shadow:var(--shadow-md);
}
.navbar .container { display:flex; align-items:center; justify-content:space-between; }
.navbar-brand { display:flex; align-items:center; gap:12px; }
.navbar-logo { height:46px; width:auto; filter:drop-shadow(0 0 10px rgba(201,168,76,0.3)); }
.navbar-text .name { font-size:1.05rem; font-weight:700; color:var(--gold); line-height:1.2; }
.navbar-text .tag  { font-size:0.65rem; color:var(--text-muted); letter-spacing:1px; }
.navbar-actions { display:flex; align-items:center; gap:10px; }

/* ============================================
   HERO
============================================ */
.hero {
  min-height:100vh; display:flex; align-items:center;
  position:relative; overflow:hidden;
  background:radial-gradient(ellipse at 50% 40%, #1c1000 0%, #0D0D0D 45%, #050505 100%);
}
/* Grid overlay */
.hero::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size:70px 70px;
  pointer-events:none;
}
/* Center glow */
.hero-glow {
  position:absolute; top:30%; left:50%; transform:translate(-50%,-50%);
  width:700px; height:700px;
  background:radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events:none; animation:glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity:0.6; transform:translate(-50%,-50%) scale(1); }
  50% { opacity:1; transform:translate(-50%,-50%) scale(1.1); }
}
/* Floating particles */
.particles { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.particle {
  position:absolute; border-radius:50%;
  background:var(--gold); opacity:0;
  animation:floatUp var(--d,10s) var(--delay,0s) infinite ease-in;
}
@keyframes floatUp {
  0%   { transform:translateY(110vh) scale(0.3); opacity:0; }
  10%  { opacity:var(--op,0.4); }
  90%  { opacity:var(--op,0.4); }
  100% { transform:translateY(-10vh) scale(1); opacity:0; }
}
.hero-content {
  position:relative; z-index:2; width:100%;
  text-align:center; padding:130px 24px 80px;
}
.hero-logo {
  width:150px; height:150px; object-fit:contain;
  margin:0 auto 32px;
  filter:drop-shadow(0 0 40px rgba(201,168,76,0.5));
  animation:logoPulse 3.5s ease-in-out infinite alternate;
}
@keyframes logoPulse {
  from { filter:drop-shadow(0 0 25px rgba(201,168,76,0.35)); transform:scale(1); }
  to   { filter:drop-shadow(0 0 60px rgba(201,168,76,0.75)); transform:scale(1.03); }
}
.hero-tag {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(201,168,76,0.08); border:1px solid rgba(201,168,76,0.3);
  color:var(--gold); padding:8px 22px; border-radius:50px;
  font-size:0.85rem; margin-bottom:22px;
  backdrop-filter:blur(10px);
}
.hero h1 { margin-bottom:14px; letter-spacing:-0.5px; }
.hero-subtitle {
  font-size:clamp(0.9rem,2vw,1.25rem); color:var(--gold);
  letter-spacing:5px; text-transform:uppercase; font-weight:300;
  margin-bottom:22px;
}
.hero-desc {
  color:var(--text-secondary); font-size:1.05rem; max-width:580px;
  margin:0 auto 40px; line-height:1.85;
}
.hero-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:60px; }
.hero-scroll {
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--text-muted); font-size:0.72rem; letter-spacing:2px;
  text-transform:uppercase; animation:scrollBounce 2s ease-in-out infinite;
}
.scroll-line { width:1px; height:38px; background:linear-gradient(var(--gold),transparent); }
@keyframes scrollBounce {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50% { transform:translateX(-50%) translateY(8px); }
}

/* ============================================
   STATS BAR
============================================ */
.stats-bar {
  background:var(--dark-2);
  border-top:1px solid var(--border-gold);
  border-bottom:1px solid var(--border-gold);
  padding:50px 0;
}
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:40px; }
.stat-item { text-align:center; }
.stat-num {
  font-size:2.8rem; font-weight:900;
  background:var(--gold-gradient);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  line-height:1; margin-bottom:6px; display:block;
}
.stat-label { color:var(--text-secondary); font-size:0.9rem; }

/* ============================================
   BENEFITS
============================================ */
.benefits-section { padding:100px 0; }
.benefits-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.benefit-card {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:32px;
  transition:var(--transition); position:relative; overflow:hidden;
}
.benefit-card::after {
  content:''; position:absolute; top:-30px; right:-30px;
  width:100px; height:100px;
  background:radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
  pointer-events:none;
}
.benefit-card:hover { border-color:var(--gold); transform:translateY(-5px); box-shadow:var(--shadow-gold-lg); }
.benefit-icon {
  width:58px; height:58px; background:rgba(201,168,76,0.1);
  border:1px solid var(--border-gold); border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; margin-bottom:20px; transition:var(--transition);
}
.benefit-card:hover .benefit-icon { background:rgba(201,168,76,0.18); box-shadow:var(--shadow-gold); }
.benefit-card h3 { font-size:1.05rem; color:var(--gold-light); margin-bottom:10px; }
.benefit-card p { color:var(--text-secondary); font-size:0.92rem; line-height:1.75; }

/* ============================================
   JOURNEY TIMELINE
============================================ */
.journey-section { padding:100px 0; background:var(--dark-2); }
.timeline { max-width:860px; margin:0 auto; position:relative; }
.timeline::before {
  content:''; position:absolute; right:27px; top:0; bottom:0;
  width:2px;
  background:linear-gradient(to bottom, var(--gold) 0%, rgba(201,168,76,0.2) 80%, transparent 100%);
}
.timeline-item { display:flex; gap:22px; margin-bottom:32px; position:relative; }
.timeline-dot {
  width:56px; height:56px; flex-shrink:0;
  background:var(--dark-3); border:2px solid var(--border-gold);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; z-index:1; transition:var(--transition);
  box-shadow:0 0 0 4px var(--dark-2);
}
.timeline-item.active .timeline-dot {
  border-color:var(--gold); background:rgba(201,168,76,0.15);
  box-shadow:0 0 20px rgba(201,168,76,0.4), 0 0 0 4px var(--dark-2);
}
.timeline-item.done .timeline-dot { border-color:var(--success); background:rgba(46,204,113,0.15); }
.timeline-body {
  flex:1; background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:22px 24px; transition:var(--transition);
}
.timeline-body:hover { border-color:var(--border-gold-hover); }
.timeline-step { font-size:0.72rem; color:var(--gold); letter-spacing:2px; text-transform:uppercase; margin-bottom:7px; }
.timeline-body h3 { font-size:1rem; margin-bottom:6px; }
.timeline-body p  { color:var(--text-secondary); font-size:0.88rem; line-height:1.6; }
.timeline-link {
  display:inline-flex; align-items:center; gap:6px;
  color:var(--gold); font-size:0.82rem; margin-top:10px;
  border:1px solid var(--border-gold); padding:5px 13px; border-radius:50px; transition:var(--transition);
}
.timeline-link:hover { background:rgba(201,168,76,0.1); }

/* ============================================
   MARKETS
============================================ */
.markets-section { padding:80px 0; }
.markets-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.market-card {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:32px 22px; text-align:center; transition:var(--transition);
}
.market-card:hover { border-color:var(--gold); box-shadow:var(--shadow-gold); transform:translateY(-5px); }
.market-emoji { font-size:2.6rem; margin-bottom:14px; display:block; }
.market-card h3 { font-size:1.05rem; color:var(--gold); margin-bottom:7px; }
.market-card p  { color:var(--text-muted); font-size:0.82rem; }

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  padding:100px 0; text-align:center; position:relative; overflow:hidden;
  background:var(--dark-2);
}
.cta-section::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at center, rgba(201,168,76,0.06), transparent 65%);
}
.cta-section .container { position:relative; z-index:1; }
.cta-section h2 { margin-bottom:16px; }
.cta-section p  { color:var(--text-secondary); max-width:480px; margin:0 auto 38px; font-size:1.05rem; }
.cta-note { color:var(--text-muted); font-size:0.82rem; margin-top:16px; }

/* ============================================
   FOOTER
============================================ */
.footer { background:var(--black); border-top:1px solid var(--border-gold); padding:60px 0 28px; }
.footer-grid { display:grid; grid-template-columns:2.2fr 1fr 1fr; gap:48px; margin-bottom:40px; }
.footer-brand-row { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-logo { height:44px; }
.footer-brand-name { font-size:1rem; font-weight:700; color:var(--gold); }
.footer-desc { color:var(--text-muted); font-size:0.88rem; line-height:1.8; margin-bottom:20px; }
.footer-social { display:flex; gap:10px; }
.social-btn {
  width:38px; height:38px; background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center;
  font-size:1rem; transition:var(--transition);
}
.social-btn:hover { background:rgba(201,168,76,0.12); border-color:var(--gold); color:var(--gold); }
.footer-col h4 { color:var(--gold); font-size:0.95rem; margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid var(--border-gold); }
.footer-links li { margin-bottom:10px; }
.footer-links a { color:var(--text-muted); font-size:0.88rem; transition:var(--transition); }
.footer-links a:hover { color:var(--gold); padding-right:6px; }
.footer-bottom {
  border-top:1px solid var(--border-gold); padding-top:22px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.footer-bottom p { color:var(--text-muted); font-size:0.82rem; }

/* ============================================
   LOGIN PAGE
============================================ */
.auth-page {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:24px; position:relative; overflow:hidden;
  background:radial-gradient(ellipse at 35% 45%, #180e00 0%, #0D0D0D 50%, #050505 100%);
}
.auth-page::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size:55px 55px;
}
.auth-card {
  position:relative; z-index:1;
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-xl); padding:48px 44px; width:100%; max-width:460px;
  box-shadow:var(--shadow-lg), 0 0 80px rgba(201,168,76,0.06);
}
.auth-logo { text-align:center; margin-bottom:32px; }
.auth-logo img { width:78px; margin:0 auto 12px; filter:drop-shadow(0 0 20px rgba(201,168,76,0.45)); }
.auth-logo h2 { font-size:1.35rem; color:var(--gold); }
.auth-logo p  { color:var(--text-muted); font-size:0.85rem; margin-top:4px; }
.auth-tabs {
  display:flex; background:var(--dark-4); border-radius:var(--radius);
  padding:4px; margin-bottom:28px; gap:4px;
}
.auth-tab {
  flex:1; padding:11px; text-align:center; border-radius:var(--radius-sm);
  cursor:pointer; font-size:0.9rem; font-weight:500; transition:var(--transition);
  color:var(--text-muted); background:transparent; border:none;
  font-family:'Vazirmatn',sans-serif;
}
.auth-tab.active { background:var(--gold-gradient); color:#000; font-weight:700; }
.auth-pane { display:none; }
.auth-pane.active { display:block; }
.auth-error {
  display:none; background:rgba(231,76,60,0.1); border:1px solid rgba(231,76,60,0.3);
  color:var(--danger); padding:12px 16px; border-radius:var(--radius-sm);
  font-size:0.875rem; margin-bottom:14px; text-align:center;
}
.auth-error.show { display:block; }
.auth-back { text-align:center; margin-top:22px; color:var(--text-muted); font-size:0.875rem; }
.auth-back a { color:var(--gold); }

/* ============================================
   DASHBOARD LAYOUT
============================================ */
.dash-layout { display:flex; min-height:100vh; }

/* --- Sidebar --- */
.sidebar {
  width:272px; flex-shrink:0; background:var(--dark-2);
  border-left:1px solid var(--border-gold);
  position:fixed; right:0; top:0; height:100vh; z-index:200;
  display:flex; flex-direction:column; transition:transform 0.3s ease;
}
.sidebar-head {
  padding:20px 22px; border-bottom:1px solid var(--border-gold);
  display:flex; align-items:center; gap:11px;
}
.sidebar-head-logo { height:42px; filter:drop-shadow(0 0 8px rgba(201,168,76,0.3)); }
.sidebar-head-brand .name   { font-size:0.95rem; font-weight:700; color:var(--gold); }
.sidebar-head-brand .tagline{ font-size:0.62rem; color:var(--text-muted); }
.sidebar-profile {
  padding:18px 22px; border-bottom:1px solid var(--border-gold);
  display:flex; align-items:center; gap:12px;
}
.profile-ava {
  width:44px; height:44px; border-radius:50%;
  background:rgba(201,168,76,0.12); border:2px solid var(--gold);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0;
}
.profile-info .pname { font-size:0.95rem; font-weight:600; }
.profile-info .ptype { display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border-radius:50px; font-size:0.7rem; font-weight:700; margin-top:3px; }
.type-vip { background:rgba(201,168,76,0.12); border:1px solid rgba(201,168,76,0.4); color:var(--gold); }
.type-cip { background:rgba(52,152,219,0.12); border:1px solid rgba(52,152,219,0.4); color:var(--info); }
.sidebar-nav { flex:1; padding:14px 12px; overflow-y:auto; }
.nav-cat { font-size:0.66rem; text-transform:uppercase; letter-spacing:2px; color:var(--text-muted); padding:10px 12px 6px; }
.nav-btn {
  display:flex; align-items:center; gap:12px; padding:11px 15px;
  border-radius:var(--radius); color:var(--text-secondary); cursor:pointer;
  transition:var(--transition); font-size:0.92rem; margin-bottom:3px;
  border:none; background:transparent; font-family:'Vazirmatn',sans-serif;
  width:100%; text-align:right;
}
.nav-btn .nicon { font-size:1rem; width:20px; text-align:center; }
.nav-btn:hover { background:rgba(201,168,76,0.07); color:var(--gold-light); }
.nav-btn.active { background:rgba(201,168,76,0.1); color:var(--gold); border:1px solid rgba(201,168,76,0.2); font-weight:600; }
.sidebar-foot { padding:14px 12px; border-top:1px solid var(--border-gold); }

/* --- Main Content --- */
.dash-main { flex:1; margin-right:272px; display:flex; flex-direction:column; }
.dash-topbar {
  background:var(--dark-2); border-bottom:1px solid var(--border-gold);
  padding:18px 30px; display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; z-index:100; backdrop-filter:blur(10px);
}
.topbar-title { font-size:1.25rem; font-weight:700; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.dash-body { padding:28px 30px; flex:1; }

/* --- Dash Cards Grid --- */
.dash-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:18px; margin-bottom:28px; }
.dash-card {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:22px; transition:var(--transition);
}
.dash-card:hover { border-color:var(--gold); box-shadow:var(--shadow-gold); }
.dc-icon {
  width:46px; height:46px; border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; margin-bottom:14px;
  background:rgba(201,168,76,0.1); border:1px solid var(--border-gold);
}
.dc-value { font-size:1.75rem; font-weight:800; color:var(--gold); line-height:1; margin-bottom:5px; }
.dc-label { color:var(--text-muted); font-size:0.82rem; }

/* --- Section Card --- */
.section-card {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:26px; margin-bottom:22px;
}
.section-card-title {
  font-size:1rem; font-weight:700; color:var(--gold);
  margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--border-gold);
  display:flex; align-items:center; gap:9px;
}

/* --- Phase Steps --- */
.phase-wrap { position:relative; }
.phase-wrap::before {
  content:''; position:absolute; right:19px; top:30px; bottom:30px;
  width:2px; background:linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1));
}
.phase-item { display:flex; align-items:flex-start; gap:14px; padding:12px; border-radius:var(--radius); transition:var(--transition); }
.phase-item:hover { background:rgba(201,168,76,0.04); }
.phase-dot {
  width:40px; height:40px; border-radius:50%; flex-shrink:0; z-index:1;
  background:var(--dark-3); border:2px solid var(--dark-5);
  display:flex; align-items:center; justify-content:center;
  font-size:0.8rem; font-weight:700; color:var(--text-muted); transition:var(--transition);
}
.phase-item.done .phase-dot   { border-color:var(--success); color:var(--success); background:rgba(46,204,113,0.1); }
.phase-item.active .phase-dot { border-color:var(--gold); color:var(--gold); background:rgba(201,168,76,0.12); box-shadow:0 0 15px rgba(201,168,76,0.35); animation:dotPulse 2s infinite; }
@keyframes dotPulse { 0%,100%{box-shadow:0 0 12px rgba(201,168,76,0.3);}50%{box-shadow:0 0 25px rgba(201,168,76,0.6);} }
.phase-text .p-name { font-size:0.92rem; font-weight:600; margin-bottom:3px; }
.phase-item.done .p-name   { color:var(--success); }
.phase-item.active .p-name { color:var(--gold); }
.phase-text .p-desc { font-size:0.8rem; color:var(--text-muted); }
.phase-badge { margin-right:auto; font-size:0.7rem; padding:3px 9px; border-radius:50px; }

/* --- Exam Card --- */
.exam-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.exam-card {
  background:var(--dark-4); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:20px; transition:var(--transition);
}
.exam-card:hover { border-color:var(--gold); box-shadow:var(--shadow-gold); }
.exam-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:11px; }
.exam-icon { font-size:1.5rem; }
.exam-card h4 { font-size:0.92rem; margin-bottom:5px; }
.exam-card p  { color:var(--text-muted); font-size:0.78rem; margin-bottom:13px; }

/* --- Channel Card --- */
.channel-item {
  background:var(--dark-4); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:18px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin-bottom:11px; transition:var(--transition);
}
.channel-item:hover { border-color:var(--gold); box-shadow:var(--shadow-gold); }
.channel-left { display:flex; align-items:center; gap:13px; }
.channel-ico {
  width:42px; height:42px; border-radius:var(--radius);
  background:rgba(0,136,204,0.12); border:1px solid rgba(0,136,204,0.3);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0;
}
.channel-name { font-size:0.95rem; font-weight:600; margin-bottom:3px; }
.channel-desc { font-size:0.78rem; color:var(--text-muted); }

/* --- Countdown --- */
.countdown-box {
  background:linear-gradient(135deg, var(--dark-3), rgba(201,168,76,0.04));
  border:1px solid var(--gold); border-radius:var(--radius-lg);
  padding:24px; text-align:center; margin-bottom:22px;
}
.countdown-label { color:var(--text-secondary); font-size:0.88rem; margin-bottom:16px; }
.countdown-blocks { display:flex; justify-content:center; gap:10px; }
.cd-block { background:var(--dark-4); border:1px solid var(--border-gold); border-radius:var(--radius); padding:13px 18px; min-width:68px; }
.cd-num { font-size:1.9rem; font-weight:800; color:var(--gold); line-height:1; }
.cd-unit{ font-size:0.68rem; color:var(--text-muted); margin-top:4px; }

/* --- Payment Card --- */
.pay-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 0; border-bottom:1px solid rgba(201,168,76,0.05);
}
.pay-row:last-child { border-bottom:none; }
.pay-row .pl { color:var(--text-muted); font-size:0.88rem; }
.pay-row .pv { font-weight:600; font-size:0.95rem; }
.pv-green  { color:var(--success); }
.pv-red    { color:var(--danger); }
.pv-gold   { color:var(--gold); }

/* --- Profile Header --- */
.profile-header-card {
  background:linear-gradient(135deg, var(--dark-3), rgba(201,168,76,0.04));
  border:1px solid var(--border-gold); border-radius:var(--radius-lg);
  padding:28px; display:flex; align-items:center; gap:22px; margin-bottom:22px;
}
.ph-avatar {
  width:76px; height:76px; background:rgba(201,168,76,0.12);
  border:2px solid var(--gold); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:1.9rem; flex-shrink:0;
}
.ph-name { font-size:1.35rem; font-weight:700; margin-bottom:5px; }
.ph-sub  { color:var(--text-muted); font-size:0.88rem; margin-bottom:10px; }
.info-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:13px; }
.info-card {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius); padding:15px;
}
.ic-label { color:var(--text-muted); font-size:0.72rem; margin-bottom:5px; }
.ic-value { font-weight:600; font-size:0.95rem; }

/* ============================================
   ADMIN PANEL
============================================ */
.admin-layout { display:flex; min-height:100vh; }
.admin-sidebar {
  width:256px; flex-shrink:0; background:var(--dark-2);
  border-left:1px solid var(--border-gold);
  position:fixed; right:0; top:0; height:100vh; z-index:200;
  display:flex; flex-direction:column; transition:transform 0.3s ease;
}
.admin-head {
  padding:20px 22px; border-bottom:1px solid var(--border-gold);
  background:linear-gradient(135deg, rgba(201,168,76,0.08), transparent);
}
.admin-head-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.admin-head-logo { height:40px; filter:drop-shadow(0 0 8px rgba(201,168,76,0.3)); }
.admin-lbl {
  background:var(--gold-gradient); color:#000;
  padding:3px 11px; border-radius:50px; font-size:0.68rem; font-weight:800; letter-spacing:1px;
}
.admin-head-name { font-size:0.85rem; color:var(--text-muted); }
.admin-main { flex:1; margin-right:256px; display:flex; flex-direction:column; }

/* Admin Stats */
.admin-stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:26px; }
.astat {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:20px 22px;
  display:flex; align-items:center; gap:14px; transition:var(--transition);
}
.astat:hover { box-shadow:var(--shadow-gold); border-color:var(--gold); }
.astat-icon {
  width:48px; height:48px; border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0;
}
.astat-gold   { background:rgba(201,168,76,0.12); color:var(--gold); }
.astat-blue   { background:rgba(52,152,219,0.12);  color:var(--info); }
.astat-green  { background:rgba(46,204,113,0.12);  color:var(--success); }
.astat-purple { background:rgba(155,89,182,0.12);  color:#9B59B6; }
.astat-val { font-size:1.75rem; font-weight:800; color:var(--text-primary); line-height:1; }
.astat-label { font-size:0.78rem; color:var(--text-muted); margin-top:4px; }

/* Table */
.table-wrap {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); overflow:hidden;
}
.table-top {
  padding:18px 22px; border-bottom:1px solid var(--border-gold);
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  background:var(--dark-2);
}
.table-ttl { font-size:1rem; font-weight:600; }
.search-inp {
  display:flex; align-items:center; gap:9px;
  background:var(--dark-4); border:1px solid var(--dark-5);
  border-radius:var(--radius); padding:9px 15px; min-width:230px;
  transition:var(--transition);
}
.search-inp:focus-within { border-color:var(--gold); }
.search-inp input { background:transparent; border:none; outline:none; color:var(--text-primary); font-family:'Vazirmatn',sans-serif; font-size:0.88rem; width:100%; direction:rtl; }
.search-inp input::placeholder { color:var(--text-muted); }
.data-table { width:100%; border-collapse:collapse; font-size:0.88rem; }
.data-table thead tr { background:var(--dark-2); border-bottom:1px solid var(--border-gold); }
.data-table thead th { padding:13px 18px; text-align:right; color:var(--gold); font-weight:600; white-space:nowrap; font-size:0.82rem; }
.data-table tbody tr { border-bottom:1px solid rgba(201,168,76,0.04); transition:var(--transition); }
.data-table tbody tr:hover { background:rgba(201,168,76,0.03); }
.data-table tbody td { padding:13px 18px; color:var(--text-secondary); vertical-align:middle; }
.data-table tbody td:first-child { color:var(--text-primary); font-weight:500; }
.data-table .no-data { text-align:center; padding:50px; color:var(--text-muted); font-size:0.9rem; }
.act-btns { display:flex; gap:6px; }
.act-btn {
  width:30px; height:30px; border-radius:var(--radius-sm); border:none;
  cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:0.85rem; transition:var(--transition);
}
.act-edit   { background:rgba(201,168,76,0.1); color:var(--gold); }
.act-edit:hover { background:rgba(201,168,76,0.22); }
.act-view   { background:rgba(52,152,219,0.1); color:var(--info); }
.act-view:hover { background:rgba(52,152,219,0.22); }
.act-delete { background:rgba(231,76,60,0.1); color:var(--danger); }
.act-delete:hover { background:rgba(231,76,60,0.22); }

/* Modal */
.modal-bg {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,0.82);
  z-index:800; backdrop-filter:blur(10px); align-items:center; justify-content:center; padding:20px;
}
.modal-bg.open { display:flex; }
.modal {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-xl); padding:36px; width:100%; max-width:660px;
  max-height:92vh; overflow-y:auto; box-shadow:var(--shadow-lg);
  animation:modalSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalSlideIn {
  from { opacity:0; transform:scale(0.88) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:26px; padding-bottom:18px; border-bottom:1px solid var(--border-gold);
}
.modal-ttl { font-size:1.15rem; color:var(--gold); display:flex; align-items:center; gap:9px; }
.modal-x {
  width:34px; height:34px; background:var(--dark-4); border:1px solid var(--dark-5);
  border-radius:var(--radius-sm); cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-size:1rem; color:var(--text-muted); transition:var(--transition);
}
.modal-x:hover { background:rgba(231,76,60,0.12); color:var(--danger); border-color:var(--danger); }
.modal-foot {
  display:flex; gap:10px; justify-content:flex-end;
  margin-top:26px; padding-top:18px; border-top:1px solid var(--border-gold);
}
.form-2col { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.form-full  { grid-column:1/-1; }

/* Settings */
.settings-block {
  background:var(--dark-3); border:1px solid var(--border-gold);
  border-radius:var(--radius-lg); padding:26px; margin-bottom:18px;
}
.settings-block-title {
  font-size:0.95rem; font-weight:600; color:var(--gold);
  margin-bottom:22px; padding-bottom:12px; border-bottom:1px solid var(--border-gold);
  display:flex; align-items:center; gap:8px;
}

/* Tab System */
.tab-bar { display:flex; gap:4px; background:var(--dark-3); border:1px solid var(--border-gold); border-radius:var(--radius); padding:4px; margin-bottom:22px; overflow-x:auto; }
.tab-btn { flex-shrink:0; padding:9px 18px; border-radius:var(--radius-sm); border:none; background:transparent; color:var(--text-muted); font-family:'Vazirmatn',sans-serif; font-size:0.88rem; cursor:pointer; transition:var(--transition); white-space:nowrap; }
.tab-btn.active { background:var(--gold-gradient); color:#000; font-weight:700; }
.tab-pane { display:none; }
.tab-pane.active { display:block; }

/* Section Header */
.sec-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; flex-wrap:wrap; gap:10px; }
.sec-hd h2 { font-size:1.15rem; display:flex; align-items:center; gap:8px; }

/* Mobile Toggle */
.mob-toggle {
  display:none; position:fixed; bottom:22px; left:22px;
  width:48px; height:48px; background:var(--gold-gradient);
  border:none; border-radius:50%; cursor:pointer; z-index:300;
  align-items:center; justify-content:center; font-size:1.3rem;
  box-shadow:var(--shadow-gold-lg);
}

/* Fade Animation */
.fade-in { opacity:0; transform:translateY(18px); transition:opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width:1100px) {
  .benefits-grid { grid-template-columns:repeat(2,1fr); }
  .markets-grid  { grid-template-columns:repeat(2,1fr); }
  .stats-grid    { grid-template-columns:repeat(2,1fr); }
  .admin-stats-row { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px) {
  .footer-grid { grid-template-columns:1fr 1fr; }
  .sidebar { transform:translateX(100%); }
  .sidebar.open { transform:translateX(0); }
  .dash-main { margin-right:0; }
  .admin-sidebar { transform:translateX(100%); }
  .admin-sidebar.open { transform:translateX(0); }
  .admin-main { margin-right:0; }
  .mob-toggle { display:flex; }
  .dash-topbar, .dash-body { padding-left:16px; padding-right:16px; }
}
@media (max-width:640px) {
  .benefits-grid { grid-template-columns:1fr; }
  .markets-grid  { grid-template-columns:repeat(2,1fr); }
  .stats-grid    { grid-template-columns:repeat(2,1fr); }
  .footer-grid   { grid-template-columns:1fr; }
  .admin-stats-row { grid-template-columns:repeat(2,1fr); }
  .form-2col     { grid-template-columns:1fr; }
  .auth-card     { padding:32px 24px; }
  .hero-actions  { flex-direction:column; align-items:center; }
  .dash-cards    { grid-template-columns:repeat(2,1fr); }
  .exam-grid     { grid-template-columns:1fr; }
  .countdown-blocks { gap:6px; }
  .cd-block      { padding:11px 12px; min-width:58px; }
}
@media (max-width:420px) {
  .stats-grid { grid-template-columns:1fr; }
  .dash-cards { grid-template-columns:1fr; }
  .admin-stats-row { grid-template-columns:1fr; }
}
