
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

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

:root {
  --primary: #1E3A5F;
  --accent: #2563EB;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --surface: #F8FAFC;
  --footer-bg: #0F1F33;
  --hero-from: #0F2747;
  --hero-to: #1a4a7a;
  --license-bg: #1E293B;
  --license-text: #34D399;
  --text-primary: #0F1F33;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #EDF1F6;
  --shadow-sm: 0 2px 8px rgba(16,30,54,.06);
  --shadow-md: 0 4px 18px rgba(16,30,54,.07);
  --shadow-lg: 0 10px 30px rgba(16,30,54,.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
}

html { direction: rtl; overflow-y: scroll; scrollbar-gutter: stable; }
body { font-family: 'Vazirmatn', sans-serif; background: var(--surface); color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; }

/* ── NAVBAR ── */
.navbar { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 70px; }
.navbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 16px; flex-shrink: 0; }
.logo-title { font-size: 14px; font-weight: 900; color: var(--primary); line-height: 1.3; }
.logo-sub { font-size: 10px; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.btn-track { border: none; cursor: pointer; font-family: 'Vazirmatn', sans-serif; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: var(--radius-md); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: transform .12s, box-shadow .18s; box-shadow: 0 6px 18px rgba(37,99,235,.25); }
.btn-track:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.35); }

/* ── HERO ── */
.hero { background: linear-gradient(150deg, var(--hero-from) 0%, var(--primary) 55%, var(--hero-to) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .45; background: radial-gradient(55% 80% at 90% 0%, rgba(37,99,235,.45), transparent 65%), radial-gradient(45% 60% at 0% 100%, rgba(16,185,129,.25), transparent 60%); }
.hero::after { content: ''; position: absolute; inset: 0; opacity: .04; background-image: linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px); background-size: 36px 36px; }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 56px 24px 48px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-family: 'Vazirmatn', sans-serif; font-weight: 700; border-radius: var(--radius-md); transition: all .15s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; padding: 12px 24px; font-size: 15px; box-shadow: 0 6px 18px rgba(37,99,235,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,99,235,.38); }
.btn-success { background: var(--success); color: #fff; padding: 13px 24px; font-size: 15px; box-shadow: 0 8px 22px rgba(16,185,129,.3); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16,185,129,.4); }
.btn-success-lg { font-size: 17px; padding: 16px 36px; border-radius: 14px; }
.btn-outline { background: none; border: 2px solid var(--accent); color: var(--accent); padding: 11px 22px; font-size: 14px; }
.btn-outline:hover { background: #EFF6FF; }
.btn-ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 10px 18px; font-size: 14px; border-radius: var(--radius-md); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }

/* ── CARDS ── */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-md); }

/* ── MODULE CARD ── */
.module-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; overflow: hidden; position: relative; transition: transform .15s, box-shadow .2s; cursor: pointer; display: flex; flex-direction: column; }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.module-card .ribbon { position: absolute; top: 20px; left: 0; width: 120px; text-align: center; background: var(--danger); color: #fff; font-size: 9px; font-weight: 800; padding: 5px 0; transform: rotate(-45deg) translateX(-36px) translateY(-4px); pointer-events: none; letter-spacing: .3px; }
.module-card .icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 14px; }
.module-card .cat-tag { display: inline-block; background: #F1F5F9; color: var(--text-secondary); font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 8px; }
.module-card h3 { font-size: 16px; font-weight: 800; color: var(--text-primary); text-align: center; margin-bottom: 6px; }
.module-card .desc { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.module-card .stars { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; margin-bottom: 8px; }
.module-card .price-orig { font-size: 13px; color: #CBD5E1; text-decoration: line-through; text-align: center; }
.module-card .price { font-size: 24px; font-weight: 900; color: var(--success); text-align: center; margin-bottom: 14px; }
.module-card .price span { font-size: 14px; }
.module-card .action-row { display: flex; gap: 8px; margin-bottom: 8px; }
.module-card .action-row button { flex: 1; background: #F1F5F9; color: var(--text-secondary); border: none; cursor: pointer; font-family: 'Vazirmatn', sans-serif; font-size: 13px; font-weight: 700; padding: 9px; border-radius: var(--radius-sm); transition: background .15s; }
.module-card .action-row button:hover { background: #E2E8F0; }
.module-card .buy-btn { width: 100%; border: none; cursor: pointer; font-family: 'Vazirmatn', sans-serif; background: var(--success); color: #fff; font-size: 14.5px; font-weight: 800; padding: 13px; border-radius: var(--radius-md); transition: filter .15s, transform .12s; box-shadow: 0 6px 18px rgba(16,185,129,.28); margin-top: auto; }
.module-card .buy-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── GRID ── */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 32px; }
.section-tag { font-size: 13px; font-weight: 700; color: var(--success); margin-bottom: 8px; }
.section-title { font-size: 30px; font-weight: 900; color: var(--text-primary); }
.section-sub { font-size: 15px; color: var(--text-muted); margin-top: 8px; line-height: 1.7; }

/* ── CHIPS ── */
.chip-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.chip { border: 1px solid #E2E8F0; background: #F1F5F9; color: var(--text-secondary); font-family: 'Vazirmatn', sans-serif; font-size: 13.5px; font-weight: 700; padding: 9px 18px; border-radius: var(--radius-pill); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── LICENSE BOX ── */
.license-box { background: var(--license-bg); border-radius: var(--radius-xl); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.license-code { font-family: 'Courier New', Courier, monospace; color: var(--license-text); font-size: 17px; letter-spacing: 2px; font-weight: 900; }
.license-copy-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; font-size: 13px; font-family: 'Vazirmatn', sans-serif; transition: all .15s; flex-shrink: 0; }
.license-copy-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.license-copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ── TOAST ── */
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; padding: 12px 24px; border-radius: var(--radius-pill); box-shadow: 0 8px 24px rgba(15,31,51,.25); animation: toastIn .2s ease, toastOut .2s ease 2.3s forwards; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity:0; transform: translateY(-12px); } to { opacity:1; transform: translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; } }

/* ── FOOTER ── */
.site-footer { background: var(--footer-bg); color: #fff; margin-top: auto; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer-col h4 { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13.5px; transition: color .15s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 16px 24px; font-size: 12px; color: rgba(255,255,255,.3); }

/* ── TABS ── */
.tab-bar { display: flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.tab-btn { flex: 1; border: none; background: none; font-family: 'Vazirmatn', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--text-muted); padding: 14px; cursor: pointer; transition: all .15s; border-left: 1px solid var(--border); }
.tab-btn:last-child { border-left: none; }
.tab-btn.active { background: #EFF6FF; color: var(--accent); }

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.form-input { border: 1.5px solid #E2E8F0; border-radius: var(--radius-md); padding: 12px 16px; font-family: 'Vazirmatn', sans-serif; font-size: 14.5px; outline: none; transition: border-color .15s; background: #fff; }
.form-input:focus { border-color: var(--accent); }
.form-input.error { border-color: var(--danger); }
.form-input.success { border-color: var(--success); }
.form-error { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.form-hint { font-size: 12.5px; color: var(--text-muted); }
input::placeholder, textarea::placeholder { color: #CBD5E1; }

/* ── MODAL ── */
.modal-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(15,31,51,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.hidden { display: none; }
.modal { background: #fff; border-radius: var(--radius-xl); max-width: 480px; width: 100%; box-shadow: 0 24px 60px rgba(15,31,51,.22); overflow: hidden; animation: fadeUp .25s ease; }
.modal-header { background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 16px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.modal-close { background: rgba(255,255,255,.15); border: none; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,.25); }
.modal-body { padding: 22px; max-height: 70vh; overflow-y: auto; }

/* ── STEPS ── */
.steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 32px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; }
.step.done .step-num { background: var(--success); color: #fff; }
.step.active .step-num { background: var(--accent); color: #fff; }
.step.pending .step-num { background: #E2E8F0; color: var(--text-muted); }
.step.active .step-label { color: var(--accent); }
.step.done .step-label, .step.pending .step-label { color: var(--text-muted); }
.step-line { width: 40px; height: 2px; background: #E2E8F0; }
.step-line.done { background: var(--success); }

/* ── MISC ── */
.section-wrap { max-width: 1240px; margin: 0 auto; padding: 48px 24px; }
.section-wrap-lg { max-width: 1240px; margin: 0 auto; padding: 64px 24px; }
.divider { height: 1px; background: var(--border); }
.badge-sale { background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: var(--radius-pill); }
.badge-success { background: #ECFDF5; color: var(--success); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.badge-pending { background: #FEF3C7; color: #D97706; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.badge-verified { background: #ECFDF5; color: var(--success); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: 'Courier New', Courier, monospace; }
@keyframes fadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(16,185,129,.5); } 50% { box-shadow:0 0 0 10px rgba(16,185,129,0); } }

/* ── RESPONSIVE ── */
@media(max-width:768px){
  .nav-links, .btn-track { display: none !important; }
  .navbar-inner { padding: 0 16px; }
  .section-wrap, .section-wrap-lg { padding: 32px 16px; }
  .modules-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 40px 16px 36px; }
}
