/* ══════════════════════════════════════════════════
   RUH ART BY RAHMA — Design Tokens & Styles
   Primary: #A31B2C · Accent: #E8582A · Cream: #FAF7F0
   Typography: Cormorant Garamond + Inter + Amiri
   ══════════════════════════════════════════════════ */

:root {
  /* Color palette */
  --ruh-primary: #A31B2C;
  --ruh-primary-light: #D93636;
  --ruh-primary-dark: #7A1524;
  --ruh-gold: #E8582A;
  --ruh-gold-light: #F07040;
  --ruh-cream: #FAF7F0;
  --ruh-cream-dark: #F0EDE4;
  --ruh-white: #FFFFFF;
  --ruh-charcoal: #2C2C2C;
  --ruh-charcoal-light: #555555;
  --ruh-border: #E8E4DC;
  --ruh-success: #2E7D32;
  --ruh-error: #C62828;
  --ruh-warning: #F57F17;
  --ruh-info: #1565C0;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Spacing (4px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Type scale */
  --text-xs: clamp(0.7rem, 0.6rem + 0.2vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.7rem + 0.3vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  --text-md: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.3rem, 1.1rem + 0.7vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-3xl: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.2rem, 1.6rem + 2vw, 3.5rem);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44,44,44,0.06);
  --shadow-md: 0 4px 12px rgba(44,44,44,0.08);
  --shadow-lg: 0 8px 24px rgba(44,44,44,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease-out);
}

/* ─── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ruh-charcoal);
  background: var(--ruh-cream);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ruh-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ruh-primary-dark); }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ─── SKIP LINK ─────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-4);
  background: var(--ruh-primary); color: white; padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm); z-index: 9999;
}
.skip-link:focus { top: var(--sp-4); }

/* ─── LAYOUT ────────────────────────────── */
#app { min-height: calc(100vh - 80px); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ─── NAVIGATION ────────────────────────── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,240,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ruh-border);
  padding: var(--sp-3) 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
}
.nav-logo svg {
  width: 36px;
  height: 36px;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ruh-primary);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}
.nav-links a, .nav-links button {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ruh-charcoal-light);
  background: none;
  border: none;
  padding: var(--sp-2) 0;
  position: relative;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links button:hover,
.nav-links a.active, .nav-links button.active {
  color: var(--ruh-primary);
}
.nav-links a.active::after, .nav-links button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ruh-primary);
  border-radius: 1px;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: var(--sp-2);
}
.nav-hamburger svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ruh-cream);
    border-bottom: 1px solid var(--ruh-border);
    padding: var(--sp-4) var(--sp-6);
    box-shadow: var(--shadow-md);
  }
  .nav-hamburger { display: block; }
}

/* ─── HERO ──────────────────────────────── */
.hero {
  padding: var(--sp-16) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--ruh-cream) 0%, var(--ruh-cream-dark) 100%);
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ruh-gold);
  margin-bottom: var(--sp-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--ruh-primary);
  line-height: 1.15;
  margin-bottom: var(--sp-6);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: var(--text-md);
  color: var(--ruh-charcoal-light);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── BUTTONS ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--ruh-primary);
  color: white;
  border-color: var(--ruh-primary);
}
.btn-primary:hover {
  background: var(--ruh-primary-dark);
  color: white;
}
.btn-outline {
  background: transparent;
  color: var(--ruh-primary);
  border-color: var(--ruh-primary);
}
.btn-outline:hover {
  background: var(--ruh-primary);
  color: white;
}
.btn-gold {
  background: var(--ruh-gold);
  color: white;
  border-color: var(--ruh-gold);
}
.btn-gold:hover {
  background: var(--ruh-gold-light);
  color: white;
}
.btn-sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-xs);
}
.btn-danger {
  background: var(--ruh-error);
  color: white;
  border-color: var(--ruh-error);
}
.btn-success {
  background: var(--ruh-success);
  color: white;
}

/* ─── CARDS ─────────────────────────────── */
.card {
  background: var(--ruh-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ruh-border);
  padding: var(--sp-6);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
}
@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ─── ARTWORK CARD ──────────────────────── */
.artwork-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.artwork-card-header {
  padding: var(--sp-8) var(--sp-6);
  background: linear-gradient(135deg, var(--ruh-primary) 0%, var(--ruh-primary-dark) 100%);
  text-align: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) 0;
}
.artwork-card-arabic {
  font-family: var(--font-arabic);
  font-size: var(--text-3xl);
  color: var(--ruh-gold-light);
  line-height: 1.4;
  direction: rtl;
}
.artwork-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ruh-charcoal);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.artwork-card-desc {
  font-size: var(--text-sm);
  color: var(--ruh-charcoal-light);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.artwork-card-badges {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: 99px;
  gap: 4px;
}
.badge-free { background: #E8F5E9; color: var(--ruh-success); }
.badge-gated { background: #FFF3E0; color: var(--ruh-warning); }
.badge-mosque { background: #E3F2FD; color: var(--ruh-info); }
.badge-published { background: #E8F5E9; color: var(--ruh-success); }
.badge-draft { background: #FFF3E0; color: var(--ruh-warning); }

/* ─── JOURNEY PAGE ──────────────────────── */
.journey-page {
  padding: var(--sp-8) 0 var(--sp-16);
}
.journey-mosque-header {
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.journey-mosque-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.journey-mosque-prompt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ruh-primary);
}

.breath-section {
  background: var(--ruh-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ruh-border);
  padding: var(--sp-8);
  margin-bottom: var(--sp-8);
}
.breath-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ruh-gold);
  margin-bottom: var(--sp-4);
}
.breath-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ruh-primary);
  margin-bottom: var(--sp-6);
}

/* Verse blocks */
.verse-block {
  padding: var(--sp-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  position: relative;
}
.verse-block-ar {
  background: linear-gradient(135deg, var(--ruh-primary) 0%, var(--ruh-primary-dark) 100%);
  text-align: center;
  padding: var(--sp-10) var(--sp-8);
}
.verse-arabic {
  font-family: var(--font-arabic);
  font-size: var(--text-3xl);
  color: var(--ruh-gold-light);
  direction: rtl;
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.verse-block-en {
  background: var(--ruh-cream);
  border: 1px solid var(--ruh-border);
}
.verse-block-bn {
  background: var(--ruh-cream-dark);
  border: 1px solid var(--ruh-border);
}
.verse-lang-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ruh-charcoal-light);
  margin-bottom: var(--sp-2);
}
.verse-text {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--ruh-charcoal);
}
.copy-btn {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--text-xs);
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.copy-btn:hover { opacity: 1; }
.verse-block-ar .copy-btn { color: white; }

.source-note {
  font-size: var(--text-sm);
  color: var(--ruh-charcoal-light);
  font-style: italic;
  padding: var(--sp-4);
  border-left: 3px solid var(--ruh-gold);
  margin-top: var(--sp-4);
  background: var(--ruh-cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Reflection section */
.reflection-prompts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.reflection-prompt {
  padding: var(--sp-5);
  background: var(--ruh-cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--ruh-primary);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--ruh-charcoal);
  line-height: 1.6;
}
.explanation-text, .significance-text {
  font-size: var(--text-base);
  color: var(--ruh-charcoal);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.significance-text {
  color: var(--ruh-charcoal-light);
}

/* Video/Audio */
.media-section {
  margin: var(--sp-6) 0;
}
.video-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ruh-charcoal);
  margin-bottom: var(--sp-4);
}
.video-container video {
  width: 100%;
  display: block;
}
.audio-player {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--ruh-cream);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
}
.audio-player button {
  background: var(--ruh-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dua form */
.dua-form {
  margin-top: var(--sp-6);
}
.dua-form textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--sp-4);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  resize: vertical;
  font-size: var(--text-base);
  line-height: 1.6;
  transition: border-color var(--transition);
  background: var(--ruh-cream);
}
.dua-form textarea:focus {
  outline: none;
  border-color: var(--ruh-primary);
  box-shadow: 0 0 0 3px rgba(163,27,44,0.1);
}
.dua-char-count {
  font-size: var(--text-xs);
  color: var(--ruh-charcoal-light);
  text-align: right;
  margin-top: var(--sp-1);
}
.dua-form-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

/* CTA Strip */
.cta-strip {
  background: linear-gradient(135deg, var(--ruh-primary) 0%, var(--ruh-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  margin-top: var(--sp-6);
}
.cta-strip h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: white;
  margin-bottom: var(--sp-3);
}
.cta-strip p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}
.cta-strip .btn { background: var(--ruh-gold); color: white; border-color: var(--ruh-gold); }

/* Continue cards */
.continue-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.continue-card {
  background: var(--ruh-cream);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.continue-card:hover {
  border-color: var(--ruh-primary);
  box-shadow: var(--shadow-sm);
}
.continue-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ruh-gold);
  margin-bottom: var(--sp-2);
}
.continue-card-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ruh-charcoal);
  margin-bottom: var(--sp-1);
}
.continue-card-desc {
  font-size: var(--text-xs);
  color: var(--ruh-charcoal-light);
}

/* ─── DUA WALL ──────────────────────────── */
.dua-wall-header {
  text-align: center;
  padding: var(--sp-12) 0 var(--sp-8);
}
.dua-wall-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--ruh-primary);
  margin-bottom: var(--sp-3);
}
.dua-wall-header p {
  color: var(--ruh-charcoal-light);
  font-size: var(--text-md);
  max-width: 500px;
  margin: 0 auto;
}
.dua-wall-filters {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  align-items: center;
}
.dua-wall-filters select {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  background: var(--ruh-white);
  font-size: var(--text-sm);
  color: var(--ruh-charcoal);
}
.dua-masonry {
  columns: 3;
  column-gap: var(--sp-4);
}
@media (max-width: 900px) { .dua-masonry { columns: 2; } }
@media (max-width: 500px) { .dua-masonry { columns: 1; } }

.dua-card {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  cursor: pointer;
  transition: all var(--transition);
}
.dua-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--ruh-primary);
}
.dua-card-artwork {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ruh-primary);
  margin-bottom: var(--sp-2);
}
.dua-card-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--ruh-charcoal);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}
.dua-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--ruh-charcoal-light);
}

/* ─── UNLOCK PAGE ───────────────────────── */
.unlock-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
}
.unlock-box {
  background: var(--ruh-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ruh-border);
  padding: var(--sp-10);
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.unlock-box h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ruh-primary);
  margin-bottom: var(--sp-3);
}
.unlock-box p {
  color: var(--ruh-charcoal-light);
  margin-bottom: var(--sp-6);
  font-size: var(--text-sm);
}
.unlock-input {
  width: 100%;
  padding: var(--sp-4);
  border: 2px solid var(--ruh-border);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  text-align: center;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: var(--sp-4);
  transition: border-color var(--transition);
}
.unlock-input:focus {
  outline: none;
  border-color: var(--ruh-primary);
}

/* ─── CERTIFICATE PAGE ──────────────────── */
.cert-page {
  padding: var(--sp-12) 0;
}
.cert-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--ruh-white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--ruh-gold);
  padding: var(--sp-10);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 99px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--sp-6);
}
.cert-badge-active { background: #E8F5E9; color: var(--ruh-success); }
.cert-badge-revoked { background: #FFEBEE; color: var(--ruh-error); }
.cert-card h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ruh-charcoal);
  margin-bottom: var(--sp-2);
}
.cert-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ruh-primary);
  margin-bottom: var(--sp-6);
}
.cert-details {
  text-align: left;
  border-top: 1px solid var(--ruh-border);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
}
.cert-detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--ruh-cream-dark);
}
.cert-detail-label { color: var(--ruh-charcoal-light); }
.cert-detail-value { font-weight: 500; color: var(--ruh-charcoal); }

/* ─── ADMIN ─────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 120px);
}
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; position: fixed; inset: 0; z-index: 200; background: var(--ruh-cream); padding: var(--sp-6); }
}
.admin-sidebar {
  background: var(--ruh-white);
  border-right: 1px solid var(--ruh-border);
  padding: var(--sp-6) var(--sp-4);
}
.admin-sidebar-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ruh-primary);
  margin-bottom: var(--sp-6);
  padding: 0 var(--sp-2);
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ruh-charcoal-light);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: var(--sp-1);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.admin-nav-item:hover { background: var(--ruh-cream); color: var(--ruh-charcoal); }
.admin-nav-item.active { background: var(--ruh-primary); color: white; }
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.admin-content {
  padding: var(--sp-6);
  overflow-y: auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.admin-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ruh-charcoal);
}

/* Form styles */
.form-group {
  margin-bottom: var(--sp-5);
}
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ruh-charcoal);
  margin-bottom: var(--sp-2);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  background: var(--ruh-white);
  font-size: var(--text-base);
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--ruh-primary);
  box-shadow: 0 0 0 3px rgba(163,27,44,0.1);
}
.form-textarea {
  min-height: 80px;
  resize: vertical;
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--ruh-charcoal-light);
  margin-top: var(--sp-1);
}
.form-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
}
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--ruh-border);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-switch.on { background: var(--ruh-primary); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.on::after { transform: translateX(20px); }

/* Language tabs */
.lang-tabs {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--ruh-border);
}
.lang-tab {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ruh-charcoal-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-tab.active {
  color: var(--ruh-primary);
  border-bottom-color: var(--ruh-primary);
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}
.data-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  color: var(--ruh-charcoal-light);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ruh-border);
  background: var(--ruh-cream);
  position: sticky;
  top: 0;
}
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--ruh-cream-dark);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--ruh-cream); }

/* ─── TOAST ─────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.toast {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s var(--ease-out);
  max-width: 360px;
}
.toast-success { background: var(--ruh-success); }
.toast-error { background: var(--ruh-error); }
.toast-info { background: var(--ruh-info); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── EMPTY STATE ───────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  color: var(--ruh-charcoal-light);
}
.empty-state svg { margin: 0 auto var(--sp-4); opacity: 0.3; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ruh-charcoal);
  margin-bottom: var(--sp-2);
}

/* ─── LOADING ───────────────────────────── */
.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--ruh-border);
  border-top-color: var(--ruh-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--sp-16);
}

/* ─── FOOTER ────────────────────────────── */
.site-footer {
  background: var(--ruh-charcoal);
  color: rgba(255,255,255,0.6);
  padding: var(--sp-6) 0;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-2);
}
.footer-attr a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
.footer-attr a:hover { color: rgba(255,255,255,0.7); }

/* ─── AGENT STATUS ──────────────────────── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.agent-card {
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
}
.agent-card-id {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ruh-primary);
  margin-bottom: var(--sp-1);
}
.agent-card-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ruh-charcoal);
  margin-bottom: var(--sp-2);
}
.agent-card-domain {
  font-size: var(--text-xs);
  color: var(--ruh-charcoal-light);
  line-height: 1.5;
}

/* ─── ORCHESTRATOR DASHBOARD ─────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.stat-card {
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ruh-primary);
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ruh-charcoal-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-1);
}

/* ─── LOGIN OVERLAY ──────────────────────── */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,44,44,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  backdrop-filter: blur(4px);
}
.login-box {
  background: var(--ruh-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.login-box h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ruh-primary);
  margin-bottom: var(--sp-6);
}

/* Status labels */
.status-queued { color: var(--ruh-charcoal-light); }
.status-active { color: var(--ruh-info); }
.status-blocked { color: var(--ruh-error); }
.status-review { color: var(--ruh-warning); }
.status-complete { color: var(--ruh-success); }

/* Print PDF */
@media print {
  .nav-bar, .site-footer, .btn, .no-print { display: none !important; }
  .cert-card { border: 2px solid var(--ruh-gold); box-shadow: none; }
  body { background: white; }
}
