/* ==========================================================================
   فَرَح | Farah Invitations — Luxury Open Digital Wedding Invitation Platform
   Design System & Styling
   ========================================================================== */

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

:root {
  /* Royal Dark Palette (Emerald & Midnight) */
  --bg-deep: #060e0a;
  --bg-primary: #0b1813;
  --bg-card: #11221b;
  --bg-card-hover: #162b22;
  --bg-card-subtle: rgba(17, 34, 27, 0.7);
  --bg-glass: rgba(15, 29, 24, 0.75);
  
  /* Royal Gold & Metallic Accents */
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-rich: #c5a059;
  --gold-deep: #997a15;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-gradient: linear-gradient(135deg, #f9f0c7 0%, #d4af37 50%, #aa820a 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(243, 229, 171, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  --emerald-gradient: linear-gradient(135deg, #132a21 0%, #0b1813 100%);

  /* Ivory / Contrast Colors */
  --ivory-pure: #ffffff;
  --ivory-warm: #faf5ec;
  --ivory-dim: #d8cfc0;
  --sage-muted: #8b9e93;
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-bright: rgba(212, 175, 55, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Status Colors */
  --success: #2ec4b6;
  --success-bg: rgba(46, 196, 182, 0.12);
  --danger: #e76f51;
  --danger-bg: rgba(231, 111, 81, 0.12);

  /* Typography */
  --font-arabic-title: 'Amiri', serif;
  --font-arabic-ui: 'Cairo', system-ui, sans-serif;
  --font-latin-title: 'Playfair Display', serif;
  --font-latin-ui: 'Outfit', sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.2);
  --shadow-gold-lg: 0 0 45px rgba(212, 175, 55, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

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

body {
  font-family: var(--font-arabic-ui);
  background-color: var(--bg-deep);
  color: var(--ivory-warm);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(19, 42, 33, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(11, 24, 19, 0.5) 0%, transparent 100%);
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-rich);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, .calligraphy {
  font-family: var(--font-arabic-title);
  color: var(--ivory-warm);
  line-height: 1.3;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  font-size: 22px;
  font-weight: bold;
  box-shadow: var(--shadow-gold);
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 11px;
  color: var(--gold-light);
  display: block;
  font-family: var(--font-arabic-ui);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--ivory-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-arabic-ui);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #121c16;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ivory-warm);
  border-color: var(--border-gold);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ivory-warm);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--gold-rich);
  color: var(--gold-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.badge-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 196, 182, 0.15);
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 10px #38ef7d;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--ivory-dim);
  line-height: 1.8;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-muted);
  font-size: 13px;
}

.guarantee-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* Phone Mockup Frame in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.phone-mockup-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 46px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  z-index: 0;
}

.phone-mockup-wrapper {
  position: relative;
  width: 380px;
  max-width: 100%;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  z-index: 1;
  background: #000;
  border: 8px solid #232d27;
  border-radius: 44px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(212, 175, 55, 0.25);
  overflow: hidden;
  height: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.phone-camera-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #000;
  border-radius: var(--radius-full);
  z-index: 10;
}

.phone-screen {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-primary);
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Live Floating Invitation inside Phone Mockup */
.mock-invitation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-top: 15px;
  position: relative;
}

.mock-quran-verse {
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-family: var(--font-arabic-title);
  opacity: 0.9;
}

.mock-couple-names {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 12px;
  font-family: var(--font-arabic-title);
}

.mock-seal {
  width: 50px;
  height: 50px;
  margin: 12px auto;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  font-size: 18px;
  box-shadow: var(--shadow-gold);
  border: 2px solid #fff;
  cursor: pointer;
  animation: sealPulse 2.5s infinite;
}

@keyframes sealPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(212, 175, 55, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.mock-countdown-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 16px 0;
}

.mock-time-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 6px 2px;
}

.mock-time-val {
  font-size: 14px;
  font-weight: bold;
  color: var(--gold-light);
}

.mock-time-lbl {
  font-size: 9px;
  color: var(--sage-muted);
}

.mock-venue-chip {
  font-size: 11px;
  color: var(--ivory-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Feature Showcase */
.section {
  padding: 85px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.section-tag {
  color: var(--gold-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--ivory-dim);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-gold);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ivory-warm);
}

.feature-text {
  font-size: 14px;
  color: var(--sage-muted);
  line-height: 1.7;
}

.feature-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #38ef7d;
  background: rgba(56, 239, 125, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Template Showcase Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-bright);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.template-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}

.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.template-card:hover .template-thumb img {
  transform: scale(1.05);
}

.template-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11, 24, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.template-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-info {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.template-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ivory-warm);
}

.template-style-desc {
  font-size: 13px;
  color: var(--sage-muted);
  margin-bottom: 16px;
}

/* Comparison Table (100% Free vs Others) */
.comparison-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  padding: 48px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 700;
}

.comparison-table td {
  font-size: 14px;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.highlight-col {
  color: #38ef7d !important;
  font-weight: 700;
}

.restricted-col {
  color: var(--danger) !important;
}

/* ==========================================================================
   Interactive Invitation View (Wax Seal & Envelope Experience)
   ========================================================================== */
.invitation-page-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.envelope-stage {
  perspective: 1200px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.envelope-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--gold-rich);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  box-shadow: var(--shadow-lg), var(--shadow-gold-lg);
  text-align: center;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-card.sealed {
  cursor: pointer;
  background: radial-gradient(circle at center, #183327 0%, #0d1e17 100%);
  padding: 80px 32px;
}

.envelope-card.sealed:hover {
  transform: translateY(-4px) scale(1.01);
}

.wax-seal-container {
  margin: 0 auto 24px;
  width: 90px;
  height: 90px;
  position: relative;
  cursor: pointer;
}

.wax-seal {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6e6b4 0%, #d4af37 50%, #8f6f14 100%);
  border: 4px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1813;
  font-size: 34px;
  font-family: var(--font-arabic-title);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.wax-seal:hover {
  transform: scale(1.08) rotate(3deg);
}

.seal-prompt {
  font-size: 16px;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 14px;
  animation: pulseText 2s infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 10px var(--gold-light); }
}

/* Audio Player Floating Button */
.music-toggle-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transition: var(--transition);
}

.music-toggle-btn.playing {
  animation: rotateMusic 4s linear infinite;
}

@keyframes rotateMusic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Live Countdown Component */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 32px 0;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 80px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.countdown-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-latin-ui);
  line-height: 1;
}

.countdown-label {
  font-size: 12px;
  color: var(--sage-muted);
  margin-top: 6px;
}

/* RSVP Card Form */
.rsvp-section-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 36px;
  text-align: right;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ivory-dim);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(11, 24, 19, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--ivory-warm);
  font-family: var(--font-arabic-ui);
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.rsvp-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.radio-card input {
  accent-color: var(--gold-primary);
}

.radio-card.active {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}

/* Wizard / Editor Page */
.editor-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  padding: 40px 0;
  align-items: start;
}

.wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.wizard-steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sage-muted);
}

.step-indicator.active {
  color: var(--gold-light);
  font-weight: 700;
}

.step-indicator .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step-indicator.active .step-num {
  background: var(--gold-gradient);
  color: #0b1813;
  border-color: transparent;
  font-weight: bold;
}

/* Dashboard View */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-latin-ui);
}

.stat-label {
  font-size: 13px;
  color: var(--sage-muted);
}

.guest-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-toolbar {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 16px 20px;
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--ivory-dim);
  font-size: 13px;
  font-weight: 600;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  box-shadow: var(--shadow-lg), var(--shadow-gold-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--ivory-warm);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--ivory-warm);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .editor-layout {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 40px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 32px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .countdown-box {
    padding: 10px 12px;
    min-width: 64px;
  }
  .countdown-value {
    font-size: 22px;
  }
}

/* ==========================================================================
   SUPER ADMIN DASHBOARD STYLES (لوحة المشرف العام)
   ========================================================================== */
.admin-header-box {
  background: linear-gradient(135deg, rgba(20, 36, 28, 0.95), rgba(8, 15, 12, 0.98));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 26px 30px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.admin-header-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-primary));
}

.admin-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--ivory-dim);
}

.admin-status-pill.active {
  background: rgba(56, 239, 125, 0.12);
  border-color: rgba(56, 239, 125, 0.35);
  color: #38ef7d;
}

.admin-status-pill.gold {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
}

.admin-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-tab-btn {
  padding: 12px 22px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--sage-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px 8px 0 0;
}

.admin-tab-btn.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 8px 8px 0 0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: var(--transition-normal);
}

.admin-kpi-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.admin-kpi-card .kpi-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-arabic-title);
  line-height: 1.1;
}

.admin-kpi-card .kpi-label {
  font-size: 13px;
  color: var(--sage-muted);
}

.admin-kpi-card .kpi-sub {
  font-size: 11px;
  color: #38ef7d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status.active {
  background: rgba(56, 239, 125, 0.15);
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.3);
}

.badge-status.apology {
  background: rgba(230, 57, 70, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.badge-template {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* Template Hub Cards in Admin */
.admin-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.admin-tpl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.admin-tpl-card:hover {
  border-color: var(--border-gold);
}

.admin-tpl-img-box {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.admin-tpl-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-tpl-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Enhanced Preview Modal Header Bar */
.preview-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(10, 18, 14, 0.98);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
  flex-shrink: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
