/* =========================================================
   یادگیرو | Yadgiro — Design System
   A calm, momentum-driven skills-academy UI.
   ========================================================= */

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

:root{
  /* ---- Palette ---- */
  --ink:        #17231F;
  --ink-soft:   #3C4A44;
  --muted:      #667169;
  --line:       #E3E8E0;
  --line-soft:  #EDF1EA;
  --bg:         #F4F6F1;
  --surface:    #FFFFFF;

  --teal-900:   #0E3A3B;
  --teal-800:   #123F41;
  --teal-700:   #17595B;
  --teal-600:   #1B7274;
  --teal-500:   #218C8C;
  --teal-100:   #DCEEEC;
  --teal-050:   #EEF7F5;

  --amber-600:  #DD8F1E;
  --amber-500:  #F0A72F;
  --amber-400:  #F4BD5C;
  --amber-100:  #FDEDD2;

  --success:    #3E8C5C;
  --success-bg: #E5F3EA;
  --danger:     #C94F4F;
  --danger-bg:  #FBEAEA;
  --info:       #2E6FA7;
  --info-bg:    #E7F0F8;

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(15,40,35,.06);
  --shadow-md:  0 8px 24px rgba(15,40,35,.08);
  --shadow-lg:  0 18px 44px rgba(15,40,35,.14);

  --sidebar-w:  272px;
  --header-h:   72px;

  --font: 'Vazirmatn', -apple-system, sans-serif;
}

.dark{
  --bg:        #0E1614;
  --surface:   #152321;
  --ink:       #EEF3EF;
  --ink-soft:  #C6D2CB;
  --muted:     #93A29A;
  --line:      #223330;
  --line-soft: #1B2926;
  --teal-050:  #16302E;
  --teal-100:  #163634;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  direction:rtl;
  text-align:right;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  transition:background .25s ease,color .25s ease;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea,button{ font-family:inherit; font-size:15px; }
:focus-visible{ outline:2px solid var(--teal-500); outline-offset:2px; }

.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }
.container-sm{ width:100%; max-width:860px; margin:0 auto; padding:0 24px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4{ margin:0; font-weight:800; letter-spacing:-.01em; color:var(--ink); }
h1{ font-size:clamp(30px,4vw,46px); line-height:1.25; }
h2{ font-size:clamp(24px,3vw,32px); line-height:1.3; }
h3{ font-size:20px; }
h4{ font-size:16px; }
p{ margin:0; color:var(--ink-soft); }
.eyebrow{ font-size:13px; font-weight:700; color:var(--teal-600); }
.section-head{ margin-bottom:32px; }
.section-head p{ margin-top:10px; max-width:56ch; }
.muted{ color:var(--muted); }
.text-sm{ font-size:13px; }
.text-center{ text-align:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:12px; border:1px solid transparent;
  font-size:14.5px; font-weight:700; white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-block{ width:100%; }
.btn-sm{ padding:8px 14px; font-size:13px; border-radius:10px; }
.btn-primary{ background:var(--teal-700); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--teal-800); }
.btn-amber{ background:var(--amber-500); color:#241703; box-shadow:var(--shadow-sm); }
.btn-amber:hover{ background:var(--amber-600); }
.btn-outline{ background:transparent; border-color:var(--line); color:var(--ink); }
.btn-outline:hover{ border-color:var(--teal-600); color:var(--teal-700); }
.btn-ghost{ background:var(--teal-050); color:var(--teal-700); }
.btn-ghost:hover{ background:var(--teal-100); }
.btn-danger{ background:var(--danger-bg); color:var(--danger); }
.btn-icon{ width:42px; height:42px; padding:0; border-radius:50%; background:var(--surface); border:1px solid var(--line); color:var(--ink-soft); }
.btn-icon:hover{ border-color:var(--teal-500); color:var(--teal-600); }
.btn[disabled]{ opacity:.5; pointer-events:none; }

/* ---------- Badges ---------- */
.badge{ display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:99px; font-size:12px; font-weight:700; }
.badge-amber{ background:var(--amber-100); color:#8A5A0C; }
.badge-teal{ background:var(--teal-100); color:var(--teal-800); }
.badge-success{ background:var(--success-bg); color:var(--success); }
.badge-danger{ background:var(--danger-bg); color:var(--danger); }
.badge-info{ background:var(--info-bg); color:var(--info); }
.badge-outline{ background:transparent; border:1px solid var(--line); color:var(--muted); }

/* ---------- Cards ---------- */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); }
.card-pad{ padding:24px; }
.stat-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:18px 20px; display:flex; align-items:center; gap:14px;
}
.stat-card .ic{
  width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:var(--teal-050); color:var(--teal-700); flex:none;
}
.stat-card .num{ font-size:20px; font-weight:800; }
.stat-card .lbl{ font-size:12.5px; color:var(--muted); }

/* ---------- Top public header ---------- */
.site-header{
  position:sticky; top:0; z-index:60; background:var(--surface); border-bottom:1px solid var(--line);
}
.site-header .bar{ display:flex; align-items:center; justify-content:space-between; gap:20px; height:78px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; }
.brand .mark{
  width:38px; height:38px; border-radius:11px; background:linear-gradient(155deg,var(--teal-600),var(--teal-900));
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:17px; flex:none;
}
.main-nav{ display:flex; align-items:center; gap:6px; }
.main-nav a{ padding:9px 14px; border-radius:9px; font-size:14.5px; font-weight:600; color:var(--ink-soft); }
.main-nav a:hover, .main-nav a.active{ background:var(--teal-050); color:var(--teal-700); }
.header-actions{ display:flex; align-items:center; gap:10px; }
.search-box{
  display:flex; align-items:center; gap:8px; background:var(--bg); border:1px solid var(--line);
  border-radius:11px; padding:9px 14px; width:230px; color:var(--muted);
}
.search-box input{ border:none; background:transparent; width:100%; color:var(--ink); }
.search-box input:focus{ outline:none; }
.mobile-toggle{ display:none; }

.icon-btn{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:var(--surface);
  display:flex; align-items:center; justify-content:center; color:var(--ink-soft); position:relative;
}
.icon-btn .dot{ position:absolute; top:8px; left:9px; width:8px; height:8px; border-radius:50%; background:var(--amber-500); border:2px solid var(--surface); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--teal-900); color:#DCEBE7; margin-top:80px; }
.site-footer a{ color:#DCEBE7; }
.site-footer .top{ padding:56px 0 36px; display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:36px; }
.site-footer h4{ color:#fff; margin-bottom:16px; font-size:15px; }
.site-footer li{ margin-bottom:10px; font-size:14px; color:#B7CBC5; }
.site-footer .foot-brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; color:#fff; margin-bottom:14px; }
.site-footer .foot-brand .mark{ width:36px; height:36px; border-radius:10px; background:var(--amber-500); color:#241703; display:flex; align-items:center; justify-content:center; font-size:16px; }
.site-footer .bottom{ border-top:1px solid rgba(255,255,255,.12); padding:18px 0; font-size:13px; color:#9BB4AC; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.social-row{ display:flex; gap:8px; margin-top:14px; }
.social-row a{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; }

/* ---------- Hero ---------- */
.hero{ padding:56px 0 64px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.hero .eyebrow{ display:inline-flex; align-items:center; gap:8px; background:var(--teal-050); color:var(--teal-700); padding:7px 14px; border-radius:99px; font-weight:700; font-size:13px; margin-bottom:18px; }
.hero h1{ margin-bottom:18px; }
.hero p.lead{ font-size:17px; margin-bottom:28px; max-width:52ch; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:28px; margin-top:34px; flex-wrap:wrap; }
.hero-stats .s-num{ font-size:24px; font-weight:800; color:var(--teal-800); }
.hero-stats .s-lbl{ font-size:12.5px; color:var(--muted); }

/* Signature visual: progress ring + module card stack, replaces stock photography */
.hero-visual{ position:relative; }
.ring-card{
  background:var(--surface); border:1px solid var(--line); border-radius:26px; padding:26px;
  box-shadow:var(--shadow-lg); position:relative; z-index:2;
}
.ring-wrap{ display:flex; align-items:center; gap:20px; }
.ring-copy .rc-title{ font-weight:800; font-size:16px; margin-bottom:4px; }
.ring-copy .rc-sub{ font-size:13px; color:var(--muted); }
.floaty{
  position:absolute; background:var(--surface); border:1px solid var(--line); border-radius:16px;
  padding:12px 16px; box-shadow:var(--shadow-md); display:flex; align-items:center; gap:10px; font-size:13px; font-weight:700;
}
.floaty.f1{ top:-18px; left:-28px; z-index:3; }
.floaty.f2{ bottom:-22px; right:-18px; z-index:3; }
.floaty .ic{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; }

/* ---------- Course card ---------- */
.grid{ display:grid; gap:22px; }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

.course-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden;
  display:flex; flex-direction:column; transition:box-shadow .2s ease, transform .2s ease;
}
.course-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.course-thumb{
  height:150px; position:relative; display:flex; align-items:flex-end; padding:14px;
  background:linear-gradient(155deg,var(--cat-c1,var(--teal-600)),var(--cat-c2,var(--teal-900)));
}
.course-thumb .cat-chip{ background:rgba(255,255,255,.18); backdrop-filter:blur(4px); color:#fff; font-size:12px; font-weight:700; padding:5px 11px; border-radius:99px; }
.course-thumb .lvl{ position:absolute; top:12px; left:12px; background:rgba(0,0,0,.28); color:#fff; font-size:11px; padding:4px 9px; border-radius:99px; }
.course-body{ padding:18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.course-body h3{ font-size:16px; line-height:1.5; }
.course-meta{ display:flex; align-items:center; gap:14px; font-size:12.5px; color:var(--muted); }
.course-meta span{ display:flex; align-items:center; gap:5px; }
.course-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:6px; border-top:1px dashed var(--line); }
.price{ font-weight:800; font-size:15px; color:var(--ink); }
.price .old{ font-size:12px; color:var(--muted); text-decoration:line-through; font-weight:500; margin-left:6px; }
.stars{ color:var(--amber-500); font-size:13px; }

/* ---------- Section rhythm ---------- */
.section{ padding:64px 0; }
.section-alt{ background:var(--teal-050); }
.tabs-row{ display:flex; gap:8px; margin-bottom:28px; flex-wrap:wrap; }
.tab-btn{ padding:9px 16px; border-radius:99px; border:1px solid var(--line); background:var(--surface); font-size:13.5px; font-weight:700; color:var(--ink-soft); }
.tab-btn.active{ background:var(--teal-700); border-color:var(--teal-700); color:#fff; }

/* ---------- Forms ---------- */
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:700; margin-bottom:8px; color:var(--ink-soft); }
.field .hint{ font-size:12px; color:var(--muted); margin-top:6px; }
.input, select.input, textarea.input{
  width:100%; padding:13px 15px; border-radius:11px; border:1px solid var(--line); background:var(--surface);
  color:var(--ink); transition:border-color .15s ease, box-shadow .15s ease;
}
.input:focus{ border-color:var(--teal-500); box-shadow:0 0 0 4px var(--teal-050); outline:none; }
textarea.input{ resize:vertical; min-height:110px; }
.input-icon{ position:relative; }
.input-icon .ic{ position:absolute; top:50%; right:15px; transform:translateY(-50%); color:var(--muted); }
.input-icon .input{ padding-right:44px; }
.radio-row{ display:flex; gap:18px; flex-wrap:wrap; }
.radio-opt{ display:flex; align-items:center; gap:7px; font-size:14px; }
.switch{ position:relative; width:42px; height:24px; }
.switch input{ opacity:0; width:0; height:0; }
.switch .slider{ position:absolute; inset:0; background:var(--line); border-radius:99px; transition:.2s; }
.switch .slider::before{ content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider{ background:var(--teal-600); }
.switch input:checked + .slider::before{ transform:translateX(-18px); }

/* ---------- Auth screens ---------- */
.auth-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; background:var(--teal-900); }
.auth-card{
  width:100%; max-width:960px; background:var(--surface); border-radius:26px; overflow:hidden; display:grid;
  grid-template-columns:1fr 1fr; box-shadow:var(--shadow-lg);
}
.auth-side{
  background:linear-gradient(165deg,var(--teal-700),var(--teal-900)); color:#fff; padding:46px;
  display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden;
}
.auth-side .quote{ font-size:19px; font-weight:700; line-height:1.7; position:relative; z-index:2; }
.auth-side .who{ margin-top:20px; font-size:13px; color:#BFE0DA; position:relative; z-index:2; }
.auth-side .path-mini{ display:flex; gap:10px; margin-top:auto; padding-top:30px; position:relative; z-index:2; }
.auth-side .path-mini .node{ width:34px; height:34px; border-radius:9px; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; font-size:13px; }
.auth-form{ padding:46px 42px; }
.auth-form h1{ font-size:26px; margin-bottom:6px; }
.auth-form .sub{ margin-bottom:26px; color:var(--muted); font-size:14px; }
.otp-boxes{ display:flex; gap:10px; direction:ltr; justify-content:flex-end; }
.otp-boxes input{ width:52px; height:56px; text-align:center; font-size:20px; border-radius:12px; border:1px solid var(--line); }

/* ---------- Dashboard shell ---------- */
.app-shell{ display:flex; min-height:100vh; }
.sidebar{
  width:var(--sidebar-w); flex:none; background:var(--teal-900); color:#DCEAE6; padding:22px 16px;
  position:sticky; top:0; height:100vh; display:flex; flex-direction:column; z-index:70;
}
.sidebar .brand{ color:#fff; padding:0 8px 20px; }
.sidebar .brand .mark{ background:var(--amber-500); color:#241703; }
.side-nav{ flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:3px; }
.side-nav a, .side-group > .side-group-btn{
  display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:11px; font-size:14px; font-weight:600;
  color:#BCD3CC; width:100%; text-align:right; background:transparent; border:none;
}
.side-nav a:hover, .side-group-btn:hover{ background:rgba(255,255,255,.06); color:#fff; }
.side-nav a.active{ background:var(--amber-500); color:#241703; }
.side-nav a.active svg{ color:#241703; }
.side-nav svg{ flex:none; }
.side-group-sub{ padding-right:14px; display:flex; flex-direction:column; gap:2px; margin-top:2px; }
.side-group.open .chev{ transform:rotate(90deg); }
.chev{ transition:transform .2s ease; margin-right:auto; }
.side-logout{ margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.1); }
.side-logout a{ color:#F3B7B7; }

.app-main{ flex:1; min-width:0; }
.app-header{
  height:var(--header-h); display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:0 28px; background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;
}
.app-header .user-chip{ display:flex; align-items:center; gap:11px; }
.avatar{ width:42px; height:42px; border-radius:50%; background:linear-gradient(155deg,var(--amber-400),var(--amber-600)); color:#241703; display:flex; align-items:center; justify-content:center; font-weight:800; flex:none; }
.avatar.lg{ width:76px; height:76px; font-size:22px; }
.uc-name{ font-size:14px; font-weight:700; }
.uc-phone{ font-size:12px; color:var(--muted); direction:ltr; text-align:right; }
.sidebar-toggle{ display:none; }

.app-content{ padding:28px; max-width:1360px; }
.page-title{ margin-bottom:24px; }
.page-title h1{ font-size:24px; }
.page-title p{ margin-top:6px; font-size:13.5px; }

/* Welcome banner */
.welcome-banner{
  background:linear-gradient(150deg,var(--teal-700),var(--teal-900)); border-radius:22px; padding:30px 32px;
  color:#fff; display:flex; align-items:center; justify-content:space-between; gap:24px; overflow:hidden; position:relative;
}
.welcome-banner::after{ content:""; position:absolute; width:260px; height:260px; border-radius:50%; background:rgba(255,255,255,.06); top:-120px; left:-60px; }
.welcome-banner h2{ color:#fff; font-size:22px; margin-bottom:8px; }
.welcome-banner p{ color:#CFE6E0; font-size:13.5px; max-width:44ch; }
.wb-stats{ display:flex; gap:22px; margin-top:18px; }
.wb-stats .n{ font-size:19px; font-weight:800; }
.wb-stats .l{ font-size:11.5px; color:#BFDCD4; }
.wb-mascot{ width:118px; height:118px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; font-size:46px; flex:none; }

/* Dash grid */
.dash-grid{ display:grid; grid-template-columns:2fr 1fr; gap:22px; margin-top:22px; }
.list-panel{ display:flex; flex-direction:column; gap:14px; }
.list-row{ display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.list-row .thumb{ width:52px; height:52px; border-radius:12px; background:var(--teal-050); color:var(--teal-700); display:flex; align-items:center; justify-content:center; flex:none; }
.list-row .meta{ flex:1; min-width:0; }
.list-row .meta .t{ font-weight:700; font-size:14px; }
.list-row .meta .s{ font-size:12px; color:var(--muted); }
.empty-state{ text-align:center; padding:44px 20px; color:var(--muted); }
.empty-state .ic{ width:64px; height:64px; margin:0 auto 16px; border-radius:50%; background:var(--teal-050); display:flex; align-items:center; justify-content:center; color:var(--teal-600); }

.progress{ height:8px; border-radius:99px; background:var(--line-soft); overflow:hidden; }
.progress > span{ display:block; height:100%; background:linear-gradient(90deg,var(--amber-500),var(--teal-600)); border-radius:99px; }

/* Table */
.table-wrap{ overflow-x:auto; }
table{ width:100%; border-collapse:collapse; font-size:13.5px; }
th{ text-align:right; padding:12px 14px; color:var(--muted); font-weight:700; border-bottom:1px solid var(--line); white-space:nowrap; }
td{ padding:14px; border-bottom:1px solid var(--line-soft); white-space:nowrap; }
tr:last-child td{ border-bottom:none; }

/* Tabs (settings) */
.settings-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:22px; }
.settings-tabs button{ padding:10px 16px; border-radius:11px; border:1px solid var(--line); background:var(--surface); font-size:13.5px; font-weight:700; color:var(--ink-soft); display:flex; align-items:center; gap:7px; }
.settings-tabs button.active{ background:var(--teal-700); color:#fff; border-color:var(--teal-700); }
.settings-panel{ display:none; }
.settings-panel.active{ display:block; }

/* Accordion (curriculum) */
.accordion-item{ border:1px solid var(--line); border-radius:14px; overflow:hidden; margin-bottom:12px; background:var(--surface); }
.accordion-head{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px; cursor:pointer; font-weight:700; font-size:14.5px; }
.accordion-head .chev{ transition:transform .2s; }
.accordion-item.open .accordion-head .chev{ transform:rotate(90deg); }
.accordion-body{ display:none; padding:0 18px 16px; }
.accordion-item.open .accordion-body{ display:block; }
.lesson-row{ display:flex; align-items:center; gap:10px; padding:10px 0; font-size:13.5px; color:var(--ink-soft); border-top:1px dashed var(--line); }
.lesson-row:first-child{ border-top:none; }
.lesson-row .dur{ margin-right:auto; color:var(--muted); font-size:12px; }

/* Cart / checkout */
.cart-row{ display:flex; align-items:center; gap:16px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); margin-bottom:14px; }
.cart-row img, .cart-row .ph{ width:74px; height:74px; border-radius:12px; flex:none; background:linear-gradient(155deg,var(--teal-600),var(--teal-900)); }
.summary-row{ display:flex; justify-content:space-between; font-size:14px; padding:9px 0; color:var(--ink-soft); }
.summary-row.total{ font-weight:800; color:var(--ink); font-size:16px; border-top:1px dashed var(--line); margin-top:6px; padding-top:14px; }
.pay-option{ border:1.5px solid var(--line); border-radius:14px; padding:16px; display:flex; align-items:center; gap:12px; cursor:pointer; }
.pay-option.selected{ border-color:var(--teal-600); background:var(--teal-050); }

/* Status pages */
.status-wrap{ min-height:70vh; display:flex; align-items:center; justify-content:center; padding:40px 20px; }
.status-card{ text-align:center; max-width:420px; }
.status-ic{ width:96px; height:96px; border-radius:50%; margin:0 auto 22px; display:flex; align-items:center; justify-content:center; }
.status-ic.ok{ background:var(--success-bg); color:var(--success); }
.status-ic.err{ background:var(--danger-bg); color:var(--danger); }
.status-ic.warn{ background:var(--amber-100); color:#8A5A0C; }

/* Roadmap */
.roadmap-track{ display:flex; align-items:flex-end; gap:26px; padding:60px 10px 30px; overflow-x:auto; }
.rm-node{ flex:none; width:190px; }
.rm-card{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px; box-shadow:var(--shadow-sm); }
.rm-num{ width:28px; height:28px; border-radius:50%; background:var(--teal-700); color:#fff; font-size:12px; display:flex; align-items:center; justify-content:center; font-weight:800; margin-bottom:10px; }
.rm-connector{ height:2px; flex:1; background:repeating-linear-gradient(90deg,var(--line) 0 8px,transparent 8px 14px); align-self:center; min-width:24px; }

/* Blog */
.blog-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden; }
.blog-thumb{ height:170px; background:linear-gradient(155deg,var(--cat-c1,var(--teal-600)),var(--cat-c2,var(--teal-900))); }
.blog-card .b-body{ padding:18px; }
.blog-card .b-body .date{ font-size:12px; color:var(--muted); margin-bottom:8px; }

/* Pagination */
.pagination{ display:flex; align-items:center; gap:6px; justify-content:center; margin-top:34px; }
.pagination button{ width:38px; height:38px; border-radius:10px; border:1px solid var(--line); background:var(--surface); font-weight:700; font-size:13.5px; }
.pagination button.active{ background:var(--teal-700); color:#fff; border-color:var(--teal-700); }

/* Utilities */
.flex{ display:flex; }
.flex-col{ flex-direction:column; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.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; } .mt-32{ margin-top:32px; }
.mb-8{ margin-bottom:8px; } .mb-16{ margin-bottom:16px; } .mb-24{ margin-bottom:24px; }
.w-full{ width:100%; }
.hide-mobile{ display:block; }
.show-mobile{ display:none; }

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .grid-4{ grid-template-columns:repeat(3,1fr); }
  .dash-grid{ grid-template-columns:1fr; }
  .site-footer .top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .main-nav, .search-box{ display:none; }
  .mobile-toggle{ display:flex; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:380px; margin:0 auto 8px; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns:repeat(2,1fr); }
  .auth-card{ grid-template-columns:1fr; }
  .auth-side{ display:none; }
  .site-footer .top{ grid-template-columns:1fr; }

  .sidebar{ position:fixed; right:0; top:0; transform:translateX(100%); transition:transform .25s ease; box-shadow:var(--shadow-lg); }
  .sidebar.open{ transform:translateX(0); }
  .sidebar-toggle{ display:flex; }
  .app-content{ padding:18px; }
  .welcome-banner{ flex-direction:column; align-items:flex-start; }
  .wb-mascot{ display:none; }
  .hide-mobile{ display:none; }
  .show-mobile{ display:block; }
}
@media (max-width:520px){
  .grid-4, .grid-3, .grid-2{ grid-template-columns:1fr; }
  .hero{ padding:36px 0 44px; }
  .section{ padding:44px 0; }
  .otp-boxes input{ width:44px; height:50px; }
}

/* Backdrop for mobile sidebar */
.backdrop{ position:fixed; inset:0; background:rgba(10,20,18,.45); z-index:65; display:none; }
.backdrop.show{ display:block; }
