/* ═══════════════════════════════════════════════════════════════
   URliink — Design System v4.0
   Black × Gold × White — Saudi Creator Platform
   RTL Arabic-first, Cairo font
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --gold:        #C9A84C;
  --gold-lt:     #E8C96A;
  --gold-dk:     #A07830;
  --gold-dim:    rgba(201,168,76,.12);
  --gold-glow:   rgba(201,168,76,.25);

  --bg:          #080808;
  --bg1:         #101010;
  --bg2:         #181818;
  --bg3:         #222222;
  --bg4:         #2C2C2C;

  --border:      rgba(255,255,255,.08);
  --border-gold: rgba(201,168,76,.35);

  --text:        #F0EDE6;
  --text2:       #A8A49C;
  --text3:       #68655E;

  --ok:          #2D9E6B;
  --ok-bg:       rgba(45,158,107,.12);
  --er:          #D94F4F;
  --er-bg:       rgba(217,79,79,.12);
  --wn:          #C9873C;
  --wn-bg:       rgba(201,135,60,.12);
  --info:        #4A8EC9;
  --info-bg:     rgba(74,142,201,.12);

  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow:      0 2px 16px rgba(0,0,0,.6);
  --shadow-gold: 0 0 24px rgba(201,168,76,.15);

  --trans:       0.18s cubic-bezier(.4,0,.2,1);

  --sidebar-w:   240px;
  --topbar-h:    60px;
  --font:        'Cairo', 'Cairo Play', system-ui, sans-serif;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }
input, textarea, select, button { font-family: var(--font); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--gold-dim); color: var(--gold-lt); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dk); }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.3; }
h1 { font-size: 2rem;    font-weight: 700; }
h2 { font-size: 1.5rem;  font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem;    font-weight: 600; }
p  { line-height: 1.7; color: var(--text2); }
small { font-size: .8125rem; color: var(--text3); }

/* ── DIVIDER ─────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 1.5rem 0;
}
.divider-text {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text3); font-size: .875rem; margin: 1.5rem 0;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ═══════════════════════════════════════════════════════
   LAYOUT — AUTH
═══════════════════════════════════════════════════════ */
body.auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}
body.auth::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,168,76,.06) 0%, transparent 70%);
  pointer-events: none;
}
.auth-wrap {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 2rem 1rem;
  position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.auth-logo {
  text-align: center; margin-bottom: 2rem;
}
.auth-logo .brand-name {
  font-size: 1.75rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 60%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.5px;
}
.auth-logo .brand-tag { font-size: .8125rem; color: var(--text3); margin-top: .25rem; }
.auth-title { font-size: 1.375rem; font-weight: 700; text-align: center; margin-bottom: .375rem; }
.auth-sub   { font-size: .9rem; color: var(--text2); text-align: center; margin-bottom: 2rem; }

/* Steps (OTP flow) */
.auth-steps {
  display: flex; gap: .5rem; margin-bottom: 2rem;
  padding: 0 1rem;
}
.auth-step {
  flex: 1; height: 3px; background: var(--bg4);
  border-radius: 2px; overflow: hidden;
}
.auth-step.done { background: var(--gold); }
.auth-step.active { background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%); }

/* ═══════════════════════════════════════════════════════
   LAYOUT — DASHBOARD & ADMIN
═══════════════════════════════════════════════════════ */
body.dash, body.adm {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
}
.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 100;
}
.topbar-start, .topbar-end {
  display: flex; align-items: center; gap: .75rem;
}
.topbar-brand {
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-title {
  font-size: 1rem; font-weight: 600; color: var(--text2);
}
.main-layout {
  flex: 1; display: flex; overflow: hidden;
}
/* Sidebar */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg1);
  border-inline-start: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto;
  transition: transform var(--trans);
}
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-section {
  padding: .375rem 1rem;
  font-size: .7rem; font-weight: 600; color: var(--text3);
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: .75rem;
}
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem 1.25rem;
  color: var(--text2); font-size: .9375rem;
  border-radius: 0; cursor: pointer;
  transition: color var(--trans), background var(--trans);
  border-inline-start: 2px solid transparent;
  position: relative;
}
.nav-item svg { flex-shrink: 0; opacity: .7; }
.nav-item:hover { color: var(--text); background: var(--bg2); }
.nav-item.active {
  color: var(--gold-lt); background: var(--gold-dim);
  border-inline-start-color: var(--gold);
}
.nav-item.active svg { opacity: 1; }
.nav-badge {
  margin-inline-start: auto;
  background: var(--er); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; min-width: 18px;
  text-align: center;
}
.nav-badge.gold { background: var(--gold); color: var(--bg); }
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex; align-items: center; gap: .75rem;
}
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.sidebar-user-info .u-name { font-size: .875rem; font-weight: 600; }
.sidebar-user-info .u-role { font-size: .75rem; color: var(--text3); }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 90;
}
/* Main content area */
.main-content {
  flex: 1; overflow-y: auto; padding: 1.75rem;
  background: var(--bg);
}
.page-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem; gap: 1rem;
}
.page-header h2 { font-size: 1.375rem; }
.section-panel { display: none; }
.section-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════
   LAYOUT — LANDING
═══════════════════════════════════════════════════════ */
body.land { overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════
   LAYOUT — PROFILE
═══════════════════════════════════════════════════════ */
body.prof { background: var(--bg); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .6875rem 1.25rem;
  border-radius: var(--radius); font-family: var(--font);
  font-size: .9375rem; font-weight: 600;
  transition: all var(--trans); cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  text-decoration: none; position: relative; overflow: hidden;
  user-select: none;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { flex-shrink: 0; }

/* Gold (primary) */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: #0A0800; border-color: transparent;
}
.btn-gold:hover:not(:disabled) {
  box-shadow: 0 4px 20px var(--gold-glow);
  filter: brightness(1.08);
}
.btn-gold:active:not(:disabled) { filter: brightness(.94); }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--gold); border-color: var(--border-gold);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--gold-dim); color: var(--gold-lt);
  border-color: var(--gold);
}

/* Dark (secondary) */
.btn-dark {
  background: var(--bg3); color: var(--text);
  border-color: var(--border);
}
.btn-dark:hover:not(:disabled) {
  background: var(--bg4); border-color: rgba(255,255,255,.15);
}

/* Danger */
.btn-er {
  background: transparent; color: var(--er);
  border-color: rgba(217,79,79,.35);
}
.btn-er:hover:not(:disabled) { background: var(--er-bg); }

/* Success */
.btn-ok {
  background: transparent; color: var(--ok);
  border-color: rgba(45,158,107,.35);
}
.btn-ok:hover:not(:disabled) { background: var(--ok-bg); }

/* Icon-only */
.btn-ico {
  padding: .5rem; width: 38px; height: 38px;
  border-radius: var(--radius-sm);
}

/* Sizes */
.btn-sm  { padding: .4375rem 1rem; font-size: .875rem; }
.btn-lg  { padding: .875rem 1.75rem; font-size: 1.0625rem; }
.btn-xl  { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-blk { width: 100%; }

/* Loading state */
.btn.loading { pointer-events: none; }
.btn.loading::after {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.loading > * { opacity: 0; }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — FORMS
═══════════════════════════════════════════════════════ */
.field {
  display: flex; flex-direction: column;
  gap: .5rem; margin-bottom: 1.25rem;
}
.field:last-of-type { margin-bottom: 0; }
.lbl {
  font-size: .875rem; font-weight: 600; color: var(--text2);
}
.lbl .req { color: var(--er); margin-inline-start: .25rem; }
.inp {
  width: 100%; padding: .6875rem 1rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: .9375rem; font-family: var(--font);
  transition: border-color var(--trans), background var(--trans), box-shadow var(--trans);
  outline: none; -webkit-appearance: none;
}
.inp:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
  background: var(--bg1);
}
.inp::placeholder { color: var(--text3); }
.inp:read-only { cursor: default; opacity: .65; }
.inp.err { border-color: var(--er); }
.inp.err:focus { box-shadow: 0 0 0 3px var(--er-bg); }
textarea.inp { resize: vertical; min-height: 100px; line-height: 1.6; }
select.inp { cursor: pointer; }
select.inp option { background: var(--bg2); }
.inp-wrap {
  position: relative; display: flex; align-items: center;
}
.inp-wrap .inp { padding-inline-end: 3rem; }
.inp-wrap .inp-end {
  position: absolute; inset-inline-end: .875rem;
  color: var(--text3); cursor: pointer;
  display: flex; align-items: center;
  transition: color var(--trans);
}
.inp-wrap .inp-end:hover { color: var(--gold); }
.field-hint { font-size: .8125rem; color: var(--text3); }
.field-err  { font-size: .8125rem; color: var(--er); display: none; }
.field.has-err .field-err { display: block; }
.field.has-err .lbl { color: var(--er); }

/* OTP cells */
.otp-group {
  display: flex; gap: .5rem; justify-content: center;
  direction: ltr;
}
.otp-cell {
  width: 48px; height: 54px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 1.375rem; font-weight: 700;
  text-align: center; outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.otp-cell:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.otp-cell.filled { border-color: var(--gold); background: var(--bg1); }

/* Checkbox & Radio */
.check-row {
  display: flex; align-items: flex-start; gap: .625rem;
  cursor: pointer; font-size: .9rem; color: var(--text2);
  user-select: none;
}
.check-row input { display: none; }
.check-box {
  flex-shrink: 0; width: 18px; height: 18px;
  border: 1.5px solid var(--border); border-radius: 4px;
  background: var(--bg2); margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.check-row input:checked ~ .check-box {
  background: var(--gold); border-color: var(--gold);
}
.check-row input:checked ~ .check-box::after {
  content: ''; display: block;
  width: 5px; height: 9px;
  border: 2px solid #0A0800;
  border-top: none; border-inline-start: none;
  transform: rotate(45deg) translate(-1px,-1px);
}

/* Toggle switch */
.toggle-wrap {
  display: flex; align-items: center; gap: .75rem;
  cursor: pointer; user-select: none;
}
.toggle-wrap input { display: none; }
.toggle-track {
  width: 40px; height: 22px;
  background: var(--bg4); border-radius: 11px;
  position: relative; transition: background var(--trans);
  flex-shrink: 0;
}
.toggle-track::after {
  content: ''; position: absolute;
  top: 3px; inset-inline-start: 3px;
  width: 16px; height: 16px;
  background: var(--text2); border-radius: 50%;
  transition: all var(--trans);
}
.toggle-wrap input:checked + .toggle-track { background: var(--gold); }
.toggle-wrap input:checked + .toggle-track::after {
  inset-inline-start: 21px; background: var(--bg);
}

/* Range slider */
.range-inp {
  width: 100%; height: 4px;
  background: var(--bg4); border-radius: 2px;
  appearance: none; outline: none; cursor: pointer;
}
.range-inp::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-glow);
}

/* Captcha */
.cap-row {
  display: flex; align-items: center; gap: .75rem;
}
.cap-q {
  flex-shrink: 0; background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem .875rem;
  font-size: 1rem; font-weight: 700;
  color: var(--gold); letter-spacing: .15em;
  font-variant-numeric: tabular-nums;
  direction: ltr; text-align: center; min-width: 80px;
}
.cap-inp { flex: 1; }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — PASSWORD STRENGTH
═══════════════════════════════════════════════════════ */
.pw-strength { margin-top: .5rem; }
.pw-bars {
  display: flex; gap: 3px; margin-bottom: .25rem;
}
.pw-bar {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--bg4); transition: background var(--trans);
}
.pw-bar.s1 { background: var(--er); }
.pw-bar.s2 { background: var(--wn); }
.pw-bar.s3 { background: var(--info); }
.pw-bar.s4 { background: var(--ok); }
.pw-label { font-size: .775rem; color: var(--text3); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — CARDS
═══════════════════════════════════════════════════════ */
.card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-gold {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.card-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem;
}
.card-header h3 { font-size: 1.0625rem; }
.card-body {}
.card-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Stat card */
.stat-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.5rem;
  display: flex; align-items: flex-start;
  gap: 1rem;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--gold-dim); color: var(--gold);
}
.stat-icon.ok { background: var(--ok-bg); color: var(--ok); }
.stat-icon.er { background: var(--er-bg); color: var(--er); }
.stat-icon.info { background: var(--info-bg); color: var(--info); }
.stat-body { flex: 1; min-width: 0; }
.stat-val {
  font-size: 1.625rem; font-weight: 800; color: var(--text);
  line-height: 1.2;
}
.stat-val small { font-size: .9rem; font-weight: 400; color: var(--text3); }
.stat-lbl { font-size: .85rem; color: var(--text2); margin-top: .25rem; }
.stat-delta {
  font-size: .775rem; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  margin-top: .5rem; display: inline-flex;
  align-items: center; gap: .25rem;
}
.stat-delta.up   { background: var(--ok-bg); color: var(--ok); }
.stat-delta.down { background: var(--er-bg); color: var(--er); }

/* Quick stat (topbar) */
.q-stat { text-align: center; }
.q-stat .val { font-size: 1rem; font-weight: 700; color: var(--gold-lt); }
.q-stat .lbl { font-size: .7rem; color: var(--text3); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — BADGE / CHIP
═══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 3px 10px; border-radius: 20px;
  font-size: .775rem; font-weight: 600;
}
.badge-ok   { background: var(--ok-bg);   color: var(--ok); }
.badge-er   { background: var(--er-bg);   color: var(--er); }
.badge-wn   { background: var(--wn-bg);   color: var(--wn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-gold { background: var(--gold-dim); color: var(--gold-lt); }
.badge-muted { background: var(--bg3); color: var(--text2); }
.badge::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   COMPONENTS — ALERTS
═══════════════════════════════════════════════════════ */
.alert {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius); font-size: .9rem;
  border: 1px solid;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-ok   { background: var(--ok-bg);   color: var(--ok);   border-color: rgba(45,158,107,.25); }
.alert-er   { background: var(--er-bg);   color: var(--er);   border-color: rgba(217,79,79,.25); }
.alert-wn   { background: var(--wn-bg);   color: var(--wn);   border-color: rgba(201,135,60,.25); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: rgba(74,142,201,.25); }
.alert-body p { color: inherit; }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — TABLE
═══════════════════════════════════════════════════════ */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tbl {
  width: 100%; border-collapse: collapse;
  font-size: .9rem;
}
.tbl thead th {
  padding: .75rem 1rem;
  background: var(--bg2);
  color: var(--text2); font-weight: 600; font-size: .8rem;
  text-align: start; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.tbl tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}
.tbl tbody tr:last-child { border-bottom: none; }
.tbl tbody tr:hover { background: var(--bg2); }
.tbl td { padding: .875rem 1rem; vertical-align: middle; }
.tbl .user-cell { display: flex; align-items: center; gap: .625rem; }
.tbl .u-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; background: var(--bg3);
  border: 1px solid var(--border); flex-shrink: 0;
}
.tbl .u-name  { font-weight: 600; font-size: .875rem; }
.tbl .u-email { font-size: .775rem; color: var(--text3); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — TOAST
═══════════════════════════════════════════════════════ */
.toast {
  display: flex; align-items: center; gap: .625rem;
  padding: .75rem 1.125rem;
  border-radius: var(--radius); font-size: .9rem; font-weight: 500;
  min-width: 240px; max-width: 340px;
  pointer-events: all;
  animation: toast-in .25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  border: 1px solid;
}
.toast.ok   { background: var(--bg2); color: var(--ok);   border-color: rgba(45,158,107,.3);  }
.toast.er   { background: var(--bg2); color: var(--er);   border-color: rgba(217,79,79,.3);   }
.toast.wn   { background: var(--bg2); color: var(--wn);   border-color: rgba(201,135,60,.3);  }
.toast.info { background: var(--bg2); color: var(--info); border-color: rgba(74,142,201,.3);  }
.toast-msg { flex: 1; }
.toast-close {
  cursor: pointer; opacity: .5; padding: 2px;
  transition: opacity var(--trans);
}
.toast-close:hover { opacity: 1; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  to   { opacity: 0; transform: translateX(16px); }
}

/* ═══════════════════════════════════════════════════════
   COMPONENTS — MODAL
═══════════════════════════════════════════════════════ */
.modal-bg {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.85); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  animation: modal-in .22s ease;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.modal-lg { max-width: 640px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.375rem 1.75rem 0;
}
.modal-header h3 { font-size: 1.125rem; }
.modal-close {
  color: var(--text2); transition: color var(--trans);
  padding: .25rem;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.25rem 1.75rem 1.75rem; }
@keyframes modal-in {
  from { opacity: 0; transform: scale(.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   COMPONENTS — PROGRESS / GOAL
═══════════════════════════════════════════════════════ */
.progress-wrap { display: flex; flex-direction: column; gap: .5rem; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: .875rem; color: var(--text2);
}
.progress-label .pct { color: var(--gold); font-weight: 600; }
.progress-bar {
  height: 6px; background: var(--bg4);
  border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.progress-fill.ok { background: linear-gradient(90deg, var(--ok) 0%, #3AB87A 100%); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — PAGINATION
═══════════════════════════════════════════════════════ */
.pgn {
  display: flex; align-items: center; gap: .375rem;
  justify-content: center; padding: 1rem 0;
}
.pgn-btn {
  min-width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600;
  color: var(--text2); cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: all var(--trans);
}
.pgn-btn:hover { border-color: var(--gold); color: var(--gold); }
.pgn-btn.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.pgn-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — TOPBAR NOTIFICATIONS & AVATAR
═══════════════════════════════════════════════════════ */
.topbar-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text2); cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--trans); position: relative;
}
.topbar-btn:hover { background: var(--bg2); color: var(--text); border-color: var(--border); }
.topbar-btn .notif-dot {
  position: absolute; top: 6px; inset-inline-end: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--er); border: 2px solid var(--bg1);
}
.topbar-btn .notif-count {
  position: absolute; top: 4px; inset-inline-end: 4px;
  background: var(--er); color: #fff;
  font-size: .625rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg1);
}
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color var(--trans);
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.topbar-avatar:hover { border-color: var(--gold); }
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Language toggle */
.lang-btn {
  height: 34px; padding: 0 .875rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2); font-size: .8125rem; font-weight: 600;
  cursor: pointer; transition: all var(--trans);
  display: flex; align-items: center; gap: .35rem;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — TABS
═══════════════════════════════════════════════════════ */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: .625rem 1.25rem; font-size: .9375rem; font-weight: 600;
  color: var(--text2); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--trans);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — PROFILE (Dash)
═══════════════════════════════════════════════════════ */
.profile-cover {
  height: 140px; background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover-edit {
  position: absolute; inset-inline-end: .75rem; bottom: .75rem;
}
.profile-avatar-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--bg1);
  position: relative; margin-top: -44px; margin-inline-start: 1.25rem;
  overflow: hidden; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 1.25rem;
  flex-wrap: wrap; gap: .75rem;
}
.profile-info { padding: .375rem 0; }
.profile-name { font-size: 1.125rem; font-weight: 700; }
.profile-handle { font-size: .875rem; color: var(--gold); margin-top: .125rem; }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — TRANSACTION ROW
═══════════════════════════════════════════════════════ */
.tx-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}
.tx-row:last-child { border-bottom: none; }
.tx-icon {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tx-icon.in  { background: var(--ok-bg);   color: var(--ok); }
.tx-icon.out { background: var(--er-bg);   color: var(--er); }
.tx-icon.pnd { background: var(--wn-bg);   color: var(--wn); }
.tx-body { flex: 1; min-width: 0; }
.tx-desc { font-size: .9rem; font-weight: 500; }
.tx-date { font-size: .775rem; color: var(--text3); margin-top: .125rem; }
.tx-amount { font-size: .9375rem; font-weight: 700; }
.tx-amount.cr { color: var(--ok); }
.tx-amount.dr { color: var(--er); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — WITHDRAWAL CARD
═══════════════════════════════════════════════════════ */
.wd-method-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  cursor: pointer; transition: all var(--trans);
  background: var(--bg2);
}
.wd-method-card:hover { border-color: var(--gold); background: var(--bg1); }
.wd-method-card.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-dim); }
.wd-method-icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--bg3); display: flex; align-items: center;
  justify-content: center; color: var(--gold); flex-shrink: 0;
}
.wd-method-body { flex: 1; min-width: 0; }
.wd-method-name { font-weight: 600; font-size: .9375rem; }
.wd-method-desc { font-size: .8125rem; color: var(--text3); margin-top: .125rem; }
.wd-radio { flex-shrink: 0; }

/* Balance display */
.balance-display {
  text-align: center; padding: 1.5rem 1rem;
}
.balance-display .bal-lbl { font-size: .875rem; color: var(--text2); margin-bottom: .375rem; }
.balance-display .bal-val {
  font-size: 2.25rem; font-weight: 800; color: var(--gold-lt); line-height: 1;
}
.balance-display .bal-val small { font-size: .9rem; font-weight: 400; color: var(--text3); }
.balance-display .bal-pending {
  font-size: .8125rem; color: var(--text3); margin-top: .375rem;
}

/* ═══════════════════════════════════════════════════════
   COMPONENTS — SUBSCRIBER CARD
═══════════════════════════════════════════════════════ */
.sub-card {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 0; border-bottom: 1px solid var(--border);
}
.sub-card:last-child { border-bottom: none; }
.sub-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  object-fit: cover; flex-shrink: 0;
}
.sub-info { flex: 1; min-width: 0; }
.sub-name  { font-size: .9rem; font-weight: 600; }
.sub-since { font-size: .775rem; color: var(--text3); margin-top: .125rem; }
.sub-pkg { font-size: .8rem; color: var(--gold); margin-top: .125rem; }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — LINK PACKAGES
═══════════════════════════════════════════════════════ */
.pkg-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; background: var(--bg2);
  display: flex; flex-direction: column; gap: .875rem;
}
.pkg-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: .75rem;
}
.pkg-name { font-size: 1rem; font-weight: 700; }
.pkg-price {
  font-size: 1.0625rem; font-weight: 800; color: var(--gold-lt);
}
.pkg-price small { font-size: .75rem; font-weight: 400; color: var(--text3); }
.pkg-desc { font-size: .875rem; color: var(--text2); }
.pkg-actions { display: flex; gap: .5rem; }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — GOAL WIDGET
═══════════════════════════════════════════════════════ */
.goal-widget {
  background: var(--bg2); border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg); padding: 1.375rem;
  box-shadow: var(--shadow-gold);
}
.goal-info {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 1rem; gap: .75rem;
}
.goal-title { font-size: 1rem; font-weight: 700; }
.goal-amount {
  font-size: .875rem; color: var(--text2); margin-top: .25rem;
}
.goal-amount strong { color: var(--gold-lt); }
.goal-pct { font-size: 1.5rem; font-weight: 800; color: var(--gold-lt); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — GRID LAYOUTS
═══════════════════════════════════════════════════════ */
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — LANDING PAGE
═══════════════════════════════════════════════════════ */

/* Landing topbar */
.land-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: 66px; display: flex; align-items: center;
  padding: 0 max(1.5rem, calc(50vw - 600px));
  transition: background var(--trans), border-color var(--trans);
}
.land-nav.scrolled {
  background: rgba(8,8,8,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.land-nav-inner {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.land-logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.land-nav-links {
  display: flex; align-items: center; gap: .25rem;
}
.land-nav-links a {
  padding: .5rem .875rem; color: var(--text2);
  font-size: .9375rem; border-radius: var(--radius-sm);
  transition: color var(--trans), background var(--trans);
  -webkit-text-fill-color: initial;
}
.land-nav-links a:hover { color: var(--text); background: var(--bg2); }
.land-nav-actions { display: flex; align-items: center; gap: .5rem; }
.land-mob-menu-btn {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--text2); cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg2); transition: all var(--trans);
}
.land-mob-menu-btn:hover { color: var(--text); border-color: var(--gold); }

/* Mobile nav */
.mob-nav-panel {
  display: none; position: fixed; inset: 0; z-index: 99;
  flex-direction: column;
  background: rgba(8,8,8,.97);
  padding: 5rem 1.5rem 2rem;
}
.mob-nav-panel.open { display: flex; }
.mob-nav-panel a {
  padding: .875rem 0; font-size: 1.125rem; font-weight: 600;
  color: var(--text2); border-bottom: 1px solid var(--border);
  -webkit-text-fill-color: initial;
}
.mob-nav-panel a:hover { color: var(--gold-lt); }
.mob-nav-panel .mob-nav-actions {
  display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem;
}

/* Hero */
.land-hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem max(1.5rem, calc(50vw - 600px)) 4rem;
  position: relative; overflow: hidden;
}
.land-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(201,168,76,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(201,168,76,.04) 0%, transparent 60%);
}
.land-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  position: relative; z-index: 1;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  color: var(--gold-lt); font-size: .8125rem; font-weight: 600;
  padding: .375rem .875rem; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: '●'; font-size: .5rem; }
h1.hero-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.2; margin-bottom: 1.25rem;
}
h1.hero-title .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.0625rem; color: var(--text2); line-height: 1.75; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .875rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.hero-stat .val { font-size: 1.375rem; font-weight: 800; color: var(--gold-lt); }
.hero-stat .lbl { font-size: .8125rem; color: var(--text3); margin-top: .125rem; }

/* Phone mockup */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.phone-mockup {
  width: 260px; background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 32px; padding: 1.5rem 1.25rem;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(201,168,76,.1);
  position: relative; overflow: hidden;
}
.phone-mockup::before {
  content: ''; position: absolute; top: 0; inset-inline: 30%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.phone-notch {
  width: 60px; height: 6px; background: var(--bg4);
  border-radius: 3px; margin: 0 auto 1.25rem;
}
.phone-screen-inner { display: flex; flex-direction: column; gap: .75rem; }
.mock-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dk) 0%, var(--gold) 100%);
  margin: 0 auto .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: var(--bg);
}
.mock-name { text-align: center; font-weight: 700; font-size: .9375rem; }
.mock-handle { text-align: center; font-size: .775rem; color: var(--gold); }
.mock-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .5rem; margin-top: .5rem;
}
.mock-stat-item {
  background: var(--bg3); border-radius: var(--radius-sm);
  padding: .625rem; text-align: center;
}
.mock-stat-item .mv { font-size: 1rem; font-weight: 700; color: var(--gold-lt); }
.mock-stat-item .ml { font-size: .7rem; color: var(--text3); }
.mock-links { display: flex; flex-direction: column; gap: .375rem; margin-top: .5rem; }
.mock-link-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .5rem .75rem;
  font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text2);
}
.mock-link-item .ml-icon { color: var(--gold); }

/* Section wrapper */
.land-section {
  padding: 5rem max(1.5rem, calc(50vw - 600px));
}
.section-eyebrow {
  text-align: center; color: var(--gold); font-size: .875rem;
  font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.section-title {
  text-align: center; font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; margin-bottom: .75rem; line-height: 1.25;
}
.section-sub {
  text-align: center; color: var(--text2); font-size: 1.0625rem;
  max-width: 540px; margin: 0 auto 3rem; line-height: 1.7;
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feat-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.625rem;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.feat-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.feat-icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.125rem;
}
.feat-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
.feat-desc  { font-size: .875rem; color: var(--text2); line-height: 1.65; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.price-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.price-card.featured {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
}
.price-card.featured::before {
  content: 'الأكثر شيوعاً';
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  background: var(--gold-dim); color: var(--gold-lt);
  border: 1px solid var(--border-gold);
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.price-name  { font-size: 1.0625rem; font-weight: 700; }
.price-amount {
  font-size: 2.25rem; font-weight: 800; color: var(--text); line-height: 1;
}
.price-amount span { font-size: .9rem; color: var(--text2); font-weight: 400; }
.price-amount.free { color: var(--ok); }
.price-features { display: flex; flex-direction: column; gap: .625rem; flex: 1; }
.price-feat {
  display: flex; align-items: center; gap: .625rem;
  font-size: .9rem; color: var(--text2);
}
.price-feat::before {
  content: '';
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--ok-bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--ok-bg);
}
.price-feat.inc::before { background: var(--ok); }

/* Steps / How-it-works */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps-grid::before {
  content: ''; position: absolute;
  top: 22px; inset-inline: 10%; height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, var(--border-gold) 50%, var(--border) 100%);
}
.step-card { text-align: center; position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border-gold);
  color: var(--gold); font-size: .9375rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  position: relative; z-index: 1;
}
.step-title { font-size: .9375rem; font-weight: 700; margin-bottom: .5rem; }
.step-desc  { font-size: .8125rem; color: var(--text2); line-height: 1.6; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testi-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.testi-body {
  font-size: .9375rem; color: var(--text2); line-height: 1.7;
  margin-bottom: 1.125rem;
  position: relative; padding-top: 1.5rem;
}
.testi-body::before {
  content: '"'; position: absolute; top: 0; inset-inline-start: 0;
  font-size: 2rem; color: var(--gold); line-height: 1;
}
.testi-user { display: flex; align-items: center; gap: .75rem; }
.testi-ava {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  font-size: .875rem; font-weight: 700; color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.testi-name { font-size: .9rem; font-weight: 600; }
.testi-role { font-size: .775rem; color: var(--text3); }

/* FAQ */
.faq-wrap { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; text-align: start; padding: 1.125rem 0;
  font-size: .9375rem; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  transition: color var(--trans);
}
.faq-q:hover { color: var(--gold-lt); }
.faq-q .faq-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--text3);
  transition: all var(--trans);
}
.faq-item.open .faq-q .faq-icon {
  background: var(--gold-dim); border-color: var(--border-gold); color: var(--gold);
  transform: rotate(45deg);
}
.faq-a {
  font-size: .9rem; color: var(--text2);
  line-height: 1.75; padding-bottom: 1.125rem;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(201,168,76,.12) 0%, rgba(201,168,76,.04) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl); padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-gold);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.cta-banner p { font-size: 1rem; color: var(--text2); margin-bottom: 2rem; }
.cta-banner .cta-actions { display: flex; gap: .875rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.land-footer {
  padding: 3rem max(1.5rem, calc(50vw - 600px));
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand-name {
  font-size: 1.375rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .625rem;
}
.footer-brand p { font-size: .875rem; max-width: 240px; line-height: 1.7; }
.footer-col h4 { font-size: .875rem; font-weight: 700; margin-bottom: .875rem; color: var(--text); }
.footer-col a {
  display: block; font-size: .875rem; color: var(--text2);
  padding: .25rem 0; transition: color var(--trans);
  -webkit-text-fill-color: initial;
}
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .75rem;
  font-size: .8125rem; color: var(--text3);
}
.footer-bottom a { font-size: .8125rem; color: var(--text3); -webkit-text-fill-color: initial; }
.footer-bottom a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   COMPONENTS — ONBOARDING
═══════════════════════════════════════════════════════ */
.onboard-wrap {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 2rem 1rem;
  position: relative; z-index: 1;
}
.onboard-card {
  width: 100%; max-width: 520px;
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  box-shadow: var(--shadow);
}
.onboard-stepper {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 2.5rem;
}
.onboard-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text3); font-size: .775rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--trans);
}
.onboard-step-dot.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.onboard-step-dot.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.onboard-step-line {
  flex: 1; height: 1px; background: var(--border);
}
.onboard-step-line.done { background: var(--ok); }

/* ═══════════════════════════════════════════════════════
   PROFILE PAGE
═══════════════════════════════════════════════════════ */
.prof-wrap {
  max-width: 520px; margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.prof-header {
  text-align: center; padding: 2rem 0 1.5rem;
}
.prof-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; margin: 0 auto .875rem;
  border: 3px solid var(--border-gold);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--gold);
  overflow: hidden;
}
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-name { font-size: 1.25rem; font-weight: 800; margin-bottom: .25rem; }
.prof-bio  { font-size: .9rem; color: var(--text2); line-height: 1.65; max-width: 360px; margin: 0 auto; }
.prof-links { display: flex; flex-direction: column; gap: .625rem; margin-top: 1.25rem; }
.prof-link {
  display: flex; align-items: center; justify-content: center;
  gap: .625rem; padding: .875rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text); font-size: .9375rem; font-weight: 600;
  cursor: pointer; transition: all var(--trans);
  text-decoration: none;
}
.prof-link:hover { border-color: var(--gold); background: var(--bg1); color: var(--gold-lt); }
.prof-link-icon { color: var(--gold); flex-shrink: 0; }
.prof-pkg-card {
  background: var(--bg2); border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg); padding: 1.375rem;
  margin-top: .625rem;
  transition: transform var(--trans), box-shadow var(--trans);
}
.prof-pkg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.prof-pkg-name { font-size: 1rem; font-weight: 700; }
.prof-pkg-price { font-size: 1.375rem; font-weight: 800; color: var(--gold-lt); margin-top: .25rem; }
.prof-pkg-desc  { font-size: .875rem; color: var(--text2); margin-top: .5rem; }
.prof-footer {
  text-align: center; margin-top: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.prof-powered { font-size: .8rem; color: var(--text3); }
.prof-powered a { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════ */
.text-gold { color: var(--gold-lt) !important; }
.text-muted { color: var(--text2) !important; }
.text-dim { color: var(--text3) !important; }
.text-ok { color: var(--ok) !important; }
.text-er { color: var(--er) !important; }
.text-wn { color: var(--wn) !important; }
.text-center { text-align: center; }
.text-start  { text-align: start; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.vis-hidden { visibility: hidden; }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-right {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.animate-fade { animation: fade-in .3s ease; }
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s infinite;
  border-radius: 4px;
}
@keyframes skeleton-wave {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; --topbar-h: 56px; }
  body.dash, body.adm { height: auto; overflow: auto; }
  .main-layout { flex-direction: column; overflow: visible; }
  .main-content { overflow: visible; }
  .sidebar {
    position: fixed; inset-inline-start: 0; top: 0; bottom: 0;
    z-index: 200; transform: translateX(100%);
    border-inline-start: none; border-inline-end: 1px solid var(--border);
  }
  [dir=ltr] .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; }
  .sidebar-overlay.visible { opacity: 1; pointer-events: all; }

  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .features-grid, .pricing-grid, .testimonials-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .land-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .land-nav-links { display: none; }
  .land-mob-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.375rem; }
  .onboard-card { padding: 1.75rem 1.375rem; }
  .cta-banner { padding: 2rem 1.25rem; }
  .main-content { padding: 1.25rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .otp-cell { width: 42px; height: 48px; }
}
