/* ============================================================
   SACHIN TEKRIWAL ACADEMY — SHARED DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:       #f9f8f5;
  --bg2:      #f2f1ec;
  --bg3:      #eceae3;
  --surface:  #ffffff;
  --ink:      #111111;
  --ink2:     #444444;
  --ink3:     #888888;
  --ink4:     #bbbbbb;
  --accent:   #e8522a;
  --accent2:  #f07a52;
  --blue:     #1a4fd6;
  --blue-bg:  #eef2fd;
  --green:    #16a34a;
  --green-bg: #ecfdf5;
  --gold:     #b45309;
  --gold-bg:  #fef3c7;
  --danger:   #dc2626;
  --rule:     #e5e3dc;
  --rule2:    #d4d2cb;
  --r:        10px;
  --r2:       16px;
  --shadow:   0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow2:  0 2px 8px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule2); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
.serif { font-family: 'Playfair Display', serif; }
h1, h2, h3 { font-family: 'Playfair Display', serif; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; }
p { color: var(--ink2); line-height: 1.75; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 64px; display: flex; align-items: center;
  padding: 0 5vw; gap: 2rem;
  background: rgba(249,248,245,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em; white-space: nowrap;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--rule2);
}
.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
  list-style: none; flex: 1;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink3);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.65rem 1.5rem; border-radius: var(--r);
  cursor: pointer; text-decoration: none; border: none;
  transition: all .2s; white-space: nowrap;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,82,42,0.3); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--rule2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1340b0; transform: translateY(-1px); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.78rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 0.92rem; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.pt-nav { padding-top: 64px; }

/* ── SECTION LABEL ── */
.sec-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent);
  margin-bottom: 0.85rem;
}
.sec-label::before { content: ''; width: 20px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r2);
  padding: 1.75rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow2); transform: translateY(-3px); border-color: var(--rule2); }

/* ── TAGS / BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.25rem 0.65rem; border-radius: 20px;
}
.badge-orange { background: #fff3ee; color: var(--accent); }
.badge-blue   { background: var(--blue-bg); color: var(--blue); }
.badge-green  { background: var(--green-bg); color: var(--green); }
.badge-gold   { background: var(--gold-bg); color: var(--gold); }
.badge-red    { background: #fef2f2; color: var(--danger); }
.badge-dark   { background: var(--ink); color: #fff; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; }
.form-control {
  border: 1.5px solid var(--rule2); border-radius: var(--r);
  padding: 0.65rem 0.9rem; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem; color: var(--ink); background: var(--surface);
  outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,82,42,0.12); }
.form-control::placeholder { color: var(--ink4); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--rule); }

/* ── CHIP LIST ── */
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.75rem; font-weight: 600; color: var(--ink2);
  background: var(--bg2); border: 1px solid var(--rule);
  padding: 0.25rem 0.7rem; border-radius: 20px;
}

/* ── STAT BOX ── */
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-num span { color: var(--accent); }
.stat-lbl { font-size: 0.78rem; font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }

/* ── COURSE PRICE HIGHLIGHT ── */
.price-original { font-size: 0.85rem; color: var(--ink3); text-decoration: line-through; }
.price-main { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.price-girls {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: linear-gradient(135deg, #fff0f0, #ffe8e8);
  border: 1px solid #fca5a5;
  color: var(--danger); font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 0.7rem; border-radius: 6px; margin-top: 0.4rem;
}

/* ── SCARCITY BAND ── */
.scarcity-band {
  background: #fff8ed; border: 1px solid #fde68a;
  border-radius: 8px; padding: 0.6rem 1rem;
  font-size: 0.78rem; font-weight: 700; color: #92400e;
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.75rem;
}
.scarcity-band .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.5s infinite; flex-shrink: 0; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* ── AVATAR / PROFILE ── */
.avatar {
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--rule2); flex-shrink: 0;
}
.avatar-bw { filter: grayscale(100%); }

/* ── OFFLINE BADGE ── */
.offline-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--ink); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 20px;
}

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 60px 5vw 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: #fff; margin-bottom: 0.75rem; display: block; text-decoration: none; }
.footer-tagline { font-size: 0.83rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { font-size: 0.85rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; }
.footer-bottom span { color: rgba(255,255,255,0.3); }

/* ── DRAWER ── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(660px, 100vw); background: var(--surface);
  z-index: 1001; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  position: sticky; top: 0; background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 1.75rem; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--rule2); background: var(--bg);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ink2); transition: .2s;
}
.drawer-close:hover { background: var(--ink); color: #fff; }
.drawer-body { padding: 2rem 1.75rem; flex: 1; }
.drawer-foot {
  position: sticky; bottom: 0; background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 1.25rem 1.75rem;
  display: flex; gap: 0.75rem;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 1100; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s; padding: 1rem;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--r2);
  width: 100%; max-width: 500px;
  transform: scale(0.96); transition: transform .25s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-head {
  padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); z-index: 5;
}
.modal-head h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.modal-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }
.modal-foot { padding: 1.25rem 1.75rem; border-top: 1px solid var(--rule); display: flex; gap: 0.75rem; }

/* ── DASHBOARD SHELL ── */
.dash-layout { display: flex; min-height: 100vh; padding-top: 64px; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--rule);
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto; padding: 1.5rem 0;
}
.sidebar-user {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.sidebar-user .u-name { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.sidebar-user .u-role { font-size: 0.72rem; color: var(--ink3); }
.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.25rem; font-size: 0.85rem; font-weight: 600;
  color: var(--ink2); text-decoration: none; transition: .2s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--bg); color: var(--accent);
  border-left-color: var(--accent);
}
.sidebar-nav .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-section-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink4);
  padding: 1.25rem 1.25rem 0.5rem;
}
.dash-main { flex: 1; padding: 2.5rem 3vw; max-width: calc(100% - 240px); overflow-x: hidden; }
.dash-header { margin-bottom: 2rem; }
.dash-header h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; }
.dash-header p { color: var(--ink3); font-size: 0.88rem; margin-top: 0.3rem; }

/* ── STATS GRID ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 1.25rem;
}
.stat-card .s-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 0.5rem; }
.stat-card .s-num { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-card .s-sub { font-size: 0.75rem; color: var(--ink3); margin-top: 0.25rem; }
.stat-card .s-icon { font-size: 1.4rem; float: right; margin-top: -2px; }

/* ── VIDEO CARD ── */
.video-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  overflow: hidden; transition: .25s;
}
.video-card:hover { box-shadow: var(--shadow); }
.video-thumb {
  background: var(--bg3); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.video-thumb .play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.7); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
}
.video-thumb .locked-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.4rem;
  color: rgba(255,255,255,0.8); font-size: 0.82rem; font-weight: 600;
}
.video-info { padding: 0.9rem 1rem; }
.video-info .v-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.video-info .v-meta { font-size: 0.75rem; color: var(--ink3); margin-top: 0.2rem; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink3); padding: 0.65rem 1rem; background: var(--bg2); border-bottom: 1px solid var(--rule); }
.data-table td { padding: 0.8rem 1rem; font-size: 0.85rem; color: var(--ink2); border-bottom: 1px solid var(--rule); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg); }

/* ── PROGRESS BAR ── */
.progress-track { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 1s ease; }

/* ── TOAST (success) ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--ink); color: #fff;
  padding: 1rem 1.5rem; border-radius: var(--r);
  font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.75rem;
  transform: translateY(120%); transition: transform .3s ease;
  box-shadow: var(--shadow2);
}
.toast.show { transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .dash-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .dash-main { max-width: 100%; padding: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .drawer { width: 100%; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.86rem; }
}
