/* IKS by iViRTH — Main Stylesheet */
/* Palette: Deep Dharmic — indigo night sky meets temple gold */

@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Sanskrit:ital@0;1&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core palette */
  --bg-deep:      #0d0c14;
  --bg-card:      #13111f;
  --bg-elevated:  #1a1730;
  --bg-hover:     #211e3a;
  --border:       #2c2848;
  --border-light: #3d3860;

  /* Brand */
  --saffron:      #f97316;
  --saffron-dim:  #c2570c;
  --gold:         #f5c542;
  --gold-dim:     #c49a1a;
  --crimson:      #c0392b;
  --jade:         #1a9974;
  --lotus:        #e879a0;
  --indigo:       #6366f1;

  /* Text */
  --text:         #f0edf7;
  --text-muted:   #9895b3;
  --text-faint:   #5e5a7a;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #0d0c14 0%, #1a0a2e 50%, #0d0c14 100%);
  --grad-gold:    linear-gradient(135deg, var(--saffron), var(--gold));
  --grad-card:    linear-gradient(145deg, #1a1730, #13111f);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.6);
  --glow-gold:    0 0 20px rgba(245,197,66,.15);
  --glow-saffron: 0 0 24px rgba(249,115,22,.2);

  /* Typography */
  --font-display: 'Tiro Devanagari Sanskrit', 'Crimson Pro', Georgia, serif;
  --font-prose:   'Crimson Pro', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  /* Radii */
  --r-sm: .5rem;
  --r-md: .875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-med:  250ms ease;
  --t-slow: 400ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 400; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 400; }
p { color: var(--text-muted); line-height: 1.75; }
a { color: var(--gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--saffron); }

.prose { font-family: var(--font-prose); font-size: 1.125rem; line-height: 1.85; }
.prose p { margin-bottom: 1.25em; }
.prose h2 { margin: 2em 0 .75em; color: var(--gold); }
.prose h3 { margin: 1.75em 0 .6em; color: var(--text); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,12,20,.88);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  height: 64px; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold);
  text-decoration: none; flex-shrink: 0;
}
.nav-logo .om { font-size: 1.5rem; line-height: 1; }
.nav-logo span { font-weight: 400; letter-spacing: -.01em; }
.nav-logo .brand-small { font-family: var(--font-ui); font-size: .7rem; color: var(--text-faint); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: 1.5rem; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  padding: .4rem .75rem; border-radius: var(--r-sm);
  transition: all var(--t-fast);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-elevated); }

.nav-spacer { flex: 1; }

.nav-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 2rem; padding: .4rem .875rem; cursor: text;
  transition: border-color var(--t-fast);
  width: 220px;
}
.nav-search:focus-within { border-color: var(--gold); }
.nav-search input {
  background: none; border: none; outline: none;
  font-family: var(--font-ui); font-size: .8125rem; color: var(--text);
  width: 100%;
}
.nav-search input::placeholder { color: var(--text-faint); }
.nav-search svg { color: var(--text-faint); flex-shrink: 0; }

.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: .75rem; }

.btn-nav {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 600; padding: .45rem 1rem;
  background: var(--grad-gold); color: #0d0c14;
  border-radius: 2rem; border: none; cursor: pointer;
  text-decoration: none; transition: opacity var(--t-fast);
}
.btn-nav:hover { opacity: .9; color: #0d0c14; }

.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elevated); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer; text-decoration: none;
  transition: border-color var(--t-fast);
}
.avatar-btn:hover { border-color: var(--gold); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.nav-mobile-toggle { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .875rem;
  padding: .625rem 1.25rem; border-radius: var(--r-md);
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--t-fast); white-space: nowrap;
}
.btn-primary {
  background: var(--grad-gold); color: #0d0c14;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); color: #0d0c14; }

.btn-saffron {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dim)); color: #fff;
}
.btn-saffron:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { background: var(--bg-elevated); border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  background: transparent; color: var(--text-muted); padding: .5rem .875rem;
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text); }

.btn-lg { font-size: 1rem; padding: .875rem 1.75rem; border-radius: var(--r-lg); }
.btn-sm { font-size: .8125rem; padding: .375rem .875rem; }
.btn-icon { padding: .625rem; border-radius: var(--r-sm); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-med);
}
.card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.card-cover {
  aspect-ratio: 3/4; width: 100%;
  background: var(--bg-elevated);
  position: relative; overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .card-cover img { transform: scale(1.04); }
.card-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
}
.card-cover-placeholder .cover-icon { font-size: 3rem; opacity: .5; }
.card-cover-placeholder .cover-title {
  font-family: var(--font-display); font-size: .85rem; color: var(--text-muted);
  text-align: center; padding: 0 .75rem; line-height: 1.3;
}

.card-badge {
  position: absolute; top: .625rem; left: .625rem;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .25rem .6rem; border-radius: .375rem;
}
.badge-free { background: var(--jade); color: #fff; }
.badge-featured { background: var(--gold); color: #0d0c14; }
.badge-new { background: var(--saffron); color: #fff; }
.badge-manuscript { background: #7c3aed; color: #fff; }

.card-body { padding: 1rem; }
.card-type {
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); margin-bottom: .375rem;
}
.card-title {
  font-family: var(--font-display); font-size: 1rem; color: var(--text);
  line-height: 1.3; margin-bottom: .25rem; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-author { font-size: .8125rem; color: var(--text-muted); margin-bottom: .75rem; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; border-top: 1px solid var(--border);
}
.card-price { font-weight: 700; color: var(--gold); font-size: .9375rem; }
.card-price .original { text-decoration: line-through; color: var(--text-faint); font-size: .8rem; font-weight: 400; margin-right: .25rem; }

/* ── Article Cards ───────────────────────────────────────────────────────── */
.article-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem;
  transition: all var(--t-med);
}
.article-card:hover { border-color: var(--border-light); transform: translateY(-1px); }
.article-thumb {
  width: 90px; height: 90px; border-radius: var(--r-sm);
  background: var(--bg-elevated); overflow: hidden; flex-shrink: 0;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info { display: flex; flex-direction: column; gap: .375rem; }
.article-category {
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--saffron);
}
.article-title {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--text);
  line-height: 1.3; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--text-faint); margin-top: auto; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 85vh; display: flex; align-items: center;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(245,197,66,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(99,102,241,.07) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(249,115,22,.03) 0%, transparent 70%);
}
.hero-mandala {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: clamp(300px, 45vw, 650px); height: clamp(300px, 45vw, 650px);
  opacity: .07; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--saffron); margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--saffron); }
.hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-family: var(--font-prose); font-size: 1.2rem; color: var(--text-muted); max-width: 540px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-stat-value { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: var(--text-faint); margin-top: .25rem; }

/* ── Section Headers ─────────────────────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }
.section-eyebrow {
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--saffron); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem;
}
.section-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--saffron); }
.section-title { color: var(--text); margin-bottom: .625rem; }
.section-desc { color: var(--text-muted); max-width: 560px; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; }

/* ── Grids ───────────────────────────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.5rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* ── Category Pills ──────────────────────────────────────────────────────── */
.category-chips { display: flex; flex-wrap: wrap; gap: .625rem; }
.chip {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem 1rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 2rem;
  font-size: .8125rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: all var(--t-fast); cursor: pointer;
  white-space: nowrap;
}
.chip:hover, .chip.active { background: var(--bg-hover); border-color: var(--gold); color: var(--gold); }
.chip .chip-icon { font-size: 1rem; }
.chip .chip-count { font-size: .7rem; color: var(--text-faint); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: .5rem; }
.form-hint { font-size: .8rem; color: var(--text-faint); margin-top: .375rem; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--r-md);
  font-family: var(--font-ui); font-size: .9375rem;
  padding: .75rem 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,66,.1);
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-select option { background: var(--bg-elevated); }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: .375rem;
  font-size: .75rem; color: var(--text-muted);
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { font-size: .8125rem; color: var(--text-faint); }
.breadcrumb a:hover { color: var(--text-muted); }
.breadcrumb .sep { color: var(--text-faint); font-size: .75rem; }
.breadcrumb .current { font-size: .8125rem; color: var(--text-muted); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: .375rem; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); font-size: .875rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; text-decoration: none; transition: all var(--t-fast);
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: #0d0c14; font-weight: 700; }

/* ── Rating Stars ────────────────────────────────────────────────────────── */
.stars { display: flex; gap: 2px; color: var(--gold); font-size: 1rem; }
.stars .empty { color: var(--border-light); }

/* ── Toast ───────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .625rem;
}
.toast {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .875rem 1.125rem;
  box-shadow: var(--shadow-lg); font-size: .875rem;
  animation: slideInToast .25s ease;
  min-width: 260px; max-width: 380px;
}
.toast.success { border-color: var(--jade); }
.toast.error   { border-color: var(--crimson); }
.toast.info    { border-color: var(--gold); }
@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none;
  transition: opacity var(--t-med);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform var(--t-med);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem 1.5rem; display: flex; gap: .75rem; justify-content: flex-end; }

/* ── Rich Text Editor ────────────────────────────────────────────────────── */
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: .25rem;
  padding: .625rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.editor-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: .375rem;
  color: var(--text-muted); cursor: pointer; font-size: .875rem;
  transition: all var(--t-fast);
}
.editor-btn:hover { background: var(--bg-hover); border-color: var(--border); color: var(--text); }
.editor-btn.active { background: var(--bg-hover); border-color: var(--gold); color: var(--gold); }
.editor-separator { width: 1px; height: 24px; background: var(--border); margin: 0 .25rem; align-self: center; }
#article-editor {
  min-height: 400px; padding: 1.25rem; outline: none;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-family: var(--font-prose); font-size: 1.1rem; color: var(--text);
  line-height: 1.85;
}
#article-editor:empty::before { content: attr(data-placeholder); color: var(--text-faint); }
#article-editor h2 { color: var(--gold); margin: 1.5em 0 .5em; }
#article-editor h3 { color: var(--text); margin: 1.25em 0 .4em; }
#article-editor blockquote {
  border-left: 3px solid var(--gold); padding-left: 1rem; margin: 1.25em 0;
  color: var(--text-muted); font-style: italic;
}
#article-editor a { color: var(--gold); }
#article-editor img { max-width: 100%; border-radius: var(--r-sm); }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1.25rem;
}
.sidebar-title {
  font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-faint); margin-bottom: 1rem;
}

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; background: var(--grad-gold);
  transition: width .1s linear; width: 0%;
}

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 100vh; }
.dashboard-nav {
  background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 1.5rem 1rem; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.dashboard-nav-section { margin-bottom: 1.75rem; }
.dashboard-nav-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-faint); padding: 0 .625rem; margin-bottom: .5rem;
}
.dashboard-nav a {
  display: flex; align-items: center; gap: .625rem;
  padding: .6rem .625rem; border-radius: var(--r-sm);
  font-size: .875rem; color: var(--text-muted); text-decoration: none;
  transition: all var(--t-fast);
}
.dashboard-nav a:hover { background: var(--bg-elevated); color: var(--text); }
.dashboard-nav a.active { background: var(--bg-hover); color: var(--gold); }
.dashboard-main { padding: 2rem; }
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h1 { font-size: 1.75rem; font-weight: 400; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem;
}
.stat-card-value { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.stat-card-label { font-size: .8125rem; color: var(--text-muted); margin-top: .375rem; }

/* ── Admin ───────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { 
  padding: .75rem 1rem; text-align: left; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint);
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
}
.data-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg-card); }
.data-table .text-main { color: var(--text); font-weight: 500; }
.status-pill {
  display: inline-flex; align-items: center;
  padding: .2rem .625rem; border-radius: 2rem; font-size: .75rem; font-weight: 600;
}
.status-published { background: rgba(26,153,116,.2); color: var(--jade); }
.status-draft { background: rgba(245,197,66,.1); color: var(--gold); }
.status-review { background: rgba(99,102,241,.2); color: var(--indigo); }
.status-archived { background: rgba(94,90,122,.2); color: var(--text-faint); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.375rem; color: var(--gold); margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; color: var(--text-faint); max-width: 300px; line-height: 1.7; }
.footer-col h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .875rem; color: var(--text-muted); margin-bottom: .5rem; text-decoration: none; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .8125rem; color: var(--text-faint); }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.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; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Scroll divider (Om pattern) ─────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 1rem; margin: 3rem 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-icon { color: var(--gold); font-size: 1.25rem; opacity: .5; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-nav { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-muted); cursor: pointer; }
  .hero { min-height: auto; padding: 4rem 0; }
  .hero-mandala { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .section { padding: 3rem 0; }
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}
.animate-fade-up { animation: fadeUp .6s ease both; }
.animate-fade-up-delay { animation: fadeUp .6s ease .2s both; }
.animate-fade-up-delay-2 { animation: fadeUp .6s ease .4s both; }

/* ── Loading skeleton ────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Special hero Mandala SVG ────────────────────────────────────────────── */
.mandala-ring {
  transform-origin: center;
  animation: spinSlow 60s linear infinite;
}
.mandala-ring-rev {
  transform-origin: center;
  animation: spinSlow 40s linear infinite reverse;
}

/* ── User menu dropdown ──────────────────────────────────────────────────── */
.user-menu { position: relative; }
.user-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 250px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all var(--t-fast); z-index: 150;
}
.user-menu-panel.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.user-menu-head { padding: .625rem .75rem .75rem; border-bottom: 1px solid var(--border); margin-bottom: .375rem; }
.user-menu-name { font-size: .875rem; font-weight: 600; color: var(--text); }
.user-menu-email { font-size: .75rem; color: var(--text-faint); margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-panel a { display: block; padding: .55rem .75rem; border-radius: var(--r-sm); font-size: .875rem; color: var(--text-muted); text-decoration: none; transition: all var(--t-fast); }
.user-menu-panel a:hover { background: var(--bg-elevated); color: var(--text); }
.user-menu-sep { height: 1px; background: var(--border); margin: .4rem 0; }

/* ── Mobile drawer ───────────────────────────────────────────────────────── */
.mobile-drawer {
  display: none; flex-direction: column; gap: .125rem;
  padding: .75rem 1.5rem 1.25rem; border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { padding: .65rem .25rem; color: var(--text-muted); font-size: .9375rem; text-decoration: none; border-radius: var(--r-sm); }
.mobile-drawer a:hover { color: var(--text); }

/* ── Icon / toggle buttons (like, bookmark) ─────────────────────────────────*/
.icon-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 2rem; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-muted);
  font-size: .8125rem; font-weight: 600; font-family: var(--font-ui);
  cursor: pointer; transition: all var(--t-fast);
}
.icon-btn:hover { border-color: var(--border-light); color: var(--text); }
.icon-btn.active { border-color: var(--lotus); color: var(--lotus); background: rgba(232,121,160,.1); }
.icon-btn.active.bookmark-active { border-color: var(--gold); color: var(--gold); background: rgba(245,197,66,.1); }
.icon-btn svg { flex-shrink: 0; }

/* ── Notifications ───────────────────────────────────────────────────────── */
.notif-item { display: flex; gap: .875rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background var(--t-fast); }
.notif-item:hover { background: var(--bg-elevated); }
.notif-item.unread { background: rgba(245,197,66,.04); }
.notif-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.notif-title { font-size: .875rem; color: var(--text); margin-bottom: .2rem; line-height: 1.4; }
.notif-time { font-size: .75rem; color: var(--text-faint); }

/* ── Upload dropzone ─────────────────────────────────────────────────────── */
.upload-dropzone {
  border: 2px dashed var(--border); border-radius: var(--r-lg);
  padding: 2rem 1.5rem; text-align: center; cursor: pointer;
  transition: all var(--t-fast); color: var(--text-faint); font-size: .875rem;
}
.upload-dropzone:hover, .upload-dropzone.drag { border-color: var(--gold); color: var(--gold); background: rgba(245,197,66,.04); }
.upload-dropzone input[type=file] { display: none; }
.upload-preview { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.upload-preview img { width: 100%; display: block; }
.upload-preview .remove-btn {
  position: absolute; top: .625rem; right: .625rem;
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: rgba(13,12,20,.75); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Toggle switch ───────────────────────────────────────────────────────── */
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 2rem; cursor: pointer; transition: all var(--t-fast); }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 50%; transform: translateY(-50%); background: var(--text-faint); border-radius: 50%; transition: all var(--t-fast); }
.toggle-switch input:checked + .toggle-slider { background: rgba(245,197,66,.15); border-color: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { left: calc(100% - 19px); background: var(--gold); }

/* ── Misc badges / states ────────────────────────────────────────────────── */
.badge-rented { background: var(--indigo); color: #fff; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-faint); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.profile-avatar-wrap { position: relative; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--bg-elevated); border: 2px solid var(--border); flex-shrink: 0; }
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ── Contact / two-col content layout ───────────────────────────────────── */
.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) { .split-grid { grid-template-columns: 1fr; } }

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.25); border-top-color: currentColor; border-radius: 50%; animation: spinSlow .7s linear infinite; display: inline-block; }

@media (max-width: 768px) {
  .user-menu-panel { right: -8px; }
}
