/* ========================================================================
   Ruh Journey — Public Styles
   Built by Perplexity Computer for Ruh Art by Rahma
   ======================================================================== */

/* --- Design Tokens --- */
:root {
  --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;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- 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);
  line-height: 1.6;
  color: var(--ruh-charcoal);
  background: var(--ruh-cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ruh-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--ruh-primary-light);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--ruh-primary);
  color: var(--ruh-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: var(--space-md);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Navigation --- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ruh-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ruh-primary);
  cursor: pointer;
  text-decoration: none;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ruh-charcoal-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ruh-primary);
  background: rgba(163, 27, 44, 0.06);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ruh-charcoal);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ruh-white);
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--ruh-border);
    box-shadow: var(--shadow-md);
    gap: var(--space-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
  }
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ruh-gold);
  background: rgba(232, 88, 42, 0.08);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  font-weight: 700;
  color: var(--ruh-primary-dark);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--ruh-charcoal-light);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ruh-primary);
  color: var(--ruh-white);
  border-color: var(--ruh-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--ruh-primary-dark);
  border-color: var(--ruh-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ruh-primary);
  border-color: var(--ruh-primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--ruh-primary);
  color: var(--ruh-white);
}

.btn-gold {
  background: var(--ruh-gold);
  color: var(--ruh-white);
  border-color: var(--ruh-gold);
}

.btn-gold:hover:not(:disabled) {
  background: var(--ruh-gold-light);
  border-color: var(--ruh-gold-light);
}

.btn-sm {
  font-size: var(--text-xs);
  padding: 8px 16px;
}

/* --- Cards --- */
.card {
  background: var(--ruh-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ruh-border);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Artwork Cards --- */
.artwork-card {
  background: var(--ruh-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ruh-border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.artwork-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ruh-cream);
}

.artwork-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.artwork-card:hover .artwork-card-image img {
  transform: scale(1.05);
}

.artwork-card-image.no-image {
  background: linear-gradient(135deg, var(--ruh-primary) 0%, var(--ruh-primary-dark) 100%);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-card-image.no-image .artwork-card-arabic-overlay {
  position: static;
  font-size: var(--text-2xl);
  color: rgba(255, 255, 255, 0.3);
  text-shadow: none;
}

.artwork-card-arabic-overlay {
  font-family: var(--font-arabic);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.5);
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-md);
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: none;
}

.artwork-card-header {
  background: linear-gradient(135deg, var(--ruh-primary) 0%, var(--ruh-primary-dark) 100%);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.artwork-card-arabic {
  font-family: var(--font-arabic);
  font-size: var(--text-2xl);
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  line-height: 1;
}

.artwork-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ruh-primary-dark);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.artwork-card-subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-xs);
}

.artwork-card-body {
  padding: var(--space-lg);
}

.artwork-card-desc {
  font-size: var(--text-sm);
  color: var(--ruh-charcoal-light);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artwork-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-free {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ruh-success);
}

.badge-gated {
  background: rgba(232, 88, 42, 0.1);
  color: var(--ruh-gold);
}

.badge-mosque {
  background: rgba(163, 27, 44, 0.1);
  color: var(--ruh-primary);
}

.badge-audio {
  background: rgba(21, 101, 192, 0.1);
  color: var(--ruh-info);
}

/* --- Journey Page --- */
.journey-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
}

.journey-page .journey-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--ruh-charcoal-light);
  margin-bottom: var(--space-xl);
  cursor: pointer;
}

.journey-page .journey-back:hover {
  color: var(--ruh-primary);
}

.journey-mosque-header {
  background: linear-gradient(135deg, var(--ruh-primary) 0%, var(--ruh-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  color: var(--ruh-white);
  text-align: center;
}

.journey-mosque-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.journey-mosque-header p {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.journey-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--ruh-primary-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.journey-subtitle {
  font-size: var(--text-lg);
  color: var(--ruh-charcoal-light);
  margin-bottom: var(--space-2xl);
}

/* --- Breath Sections --- */
.breath-section {
  margin-bottom: var(--space-3xl);
}

.breath-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ruh-gold);
  background: rgba(232, 88, 42, 0.08);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.breath-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ruh-primary-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

/* --- Verse Blocks --- */
.verse-block {
  background: var(--ruh-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ruh-border);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.verse-block-ar {
  padding: var(--space-xl);
  text-align: right;
  direction: rtl;
  border-bottom: 1px solid var(--ruh-border);
  background: linear-gradient(135deg, rgba(163,27,44,0.02) 0%, rgba(232,88,42,0.02) 100%);
}

.verse-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ruh-primary-dark);
  line-height: 2;
}

.verse-block-en,
.verse-block-bn,
.verse-block-translation {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--ruh-border);
}

.verse-block-en p,
.verse-block-bn p,
.verse-block-translation p {
  font-size: var(--text-base);
  color: var(--ruh-charcoal);
  line-height: 1.8;
}

.verse-block-en .verse-lang-label,
.verse-block-bn .verse-lang-label,
.verse-block-translation .verse-lang-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ruh-charcoal-light);
  margin-bottom: var(--space-sm);
}

.verse-reference {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  color: var(--ruh-charcoal-light);
  font-style: italic;
}

/* --- Reflection --- */
.reflection-prompts {
  margin-bottom: var(--space-xl);
}

.reflection-prompt {
  background: var(--ruh-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--ruh-border);
  border-left: 4px solid var(--ruh-gold);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
  color: var(--ruh-charcoal);
  line-height: 1.7;
  font-style: italic;
}

.explanation-text,
.significance-text {
  font-size: var(--text-base);
  color: var(--ruh-charcoal);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.explanation-text {
  padding-left: var(--space-lg);
  border-left: 3px solid var(--ruh-border);
}

/* --- Media --- */
.media-section {
  margin-bottom: var(--space-xl);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ruh-charcoal);
  margin-bottom: var(--space-md);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.audio-player {
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.audio-player audio {
  flex: 1;
  height: 40px;
}

.audio-player-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--ruh-primary);
  color: var(--ruh-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.audio-player-btn:hover {
  background: var(--ruh-primary-dark);
}

/* --- Dua Form --- */
.dua-form {
  background: var(--ruh-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ruh-border);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.dua-form h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ruh-primary-dark);
  margin-bottom: var(--space-md);
}

.dua-form textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  resize: vertical;
  line-height: 1.6;
  transition: border-color var(--transition-fast);
  color: var(--ruh-charcoal);
  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(--space-xs);
  margin-bottom: var(--space-md);
}

.dua-char-count.over-limit {
  color: var(--ruh-error);
  font-weight: 600;
}

.dua-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* --- CTA Strip --- */
.cta-strip {
  background: linear-gradient(135deg, var(--ruh-primary) 0%, var(--ruh-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: var(--ruh-white);
  margin-bottom: var(--space-xl);
}

.cta-strip h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.cta-strip p {
  font-size: var(--text-sm);
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

.cta-strip .btn {
  background: var(--ruh-gold);
  color: var(--ruh-white);
  border-color: var(--ruh-gold);
}

.cta-strip .btn:hover {
  background: var(--ruh-gold-light);
  border-color: var(--ruh-gold-light);
}

/* --- Continue Cards --- */
.continue-cards {
  margin-bottom: var(--space-xl);
}

.continue-cards h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ruh-primary-dark);
  margin-bottom: var(--space-lg);
}

.continue-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: var(--space-sm);
  text-decoration: none;
  color: inherit;
}

.continue-card:hover {
  border-color: var(--ruh-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.continue-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ruh-primary-dark);
}

.continue-card-sub {
  font-size: var(--text-xs);
  color: var(--ruh-charcoal-light);
}

.continue-card-arrow {
  margin-left: auto;
  color: var(--ruh-charcoal-light);
  font-size: var(--text-lg);
}

/* --- Dua Wall --- */
.dua-wall-header {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
}

.dua-wall-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--ruh-primary-dark);
  margin-bottom: var(--space-sm);
}

.dua-wall-header p {
  font-size: var(--text-lg);
  color: var(--ruh-charcoal-light);
}

.dua-wall-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-lg);
}

.dua-wall-filters select {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  background: var(--ruh-white);
  color: var(--ruh-charcoal);
  cursor: pointer;
  min-width: 160px;
}

.dua-wall-filters select:focus {
  outline: none;
  border-color: var(--ruh-primary);
}

.dua-masonry {
  column-count: 3;
  column-gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
}

@media (max-width: 900px) {
  .dua-masonry {
    column-count: 2;
  }
}

@media (max-width: 580px) {
  .dua-masonry {
    column-count: 1;
  }
}

.dua-card {
  break-inside: avoid;
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.dua-card:hover {
  box-shadow: var(--shadow-md);
}

.dua-card-text {
  font-size: var(--text-base);
  color: var(--ruh-charcoal);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  white-space: pre-wrap;
  word-break: break-word;
}

.dua-card-meta {
  font-size: var(--text-xs);
  color: var(--ruh-charcoal-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Unlock Page --- */
.unlock-page {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.unlock-page h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ruh-primary-dark);
  margin-bottom: var(--space-sm);
}

.unlock-page p {
  color: var(--ruh-charcoal-light);
  margin-bottom: var(--space-xl);
}

.unlock-box {
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.unlock-input {
  width: 100%;
  padding: 14px var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--ruh-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
  color: var(--ruh-charcoal);
  background: var(--ruh-cream);
}

.unlock-input:focus {
  outline: none;
  border-color: var(--ruh-primary);
  box-shadow: 0 0 0 3px rgba(163, 27, 44, 0.1);
}

.unlock-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  color: var(--ruh-charcoal-light);
  opacity: 0.5;
}

/* --- Certificate Page --- */
.cert-page {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.cert-card {
  background: var(--ruh-white);
  border: 2px solid var(--ruh-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--ruh-gold) 0%, var(--ruh-gold-light) 100%);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  color: var(--ruh-white);
  font-size: var(--text-2xl);
}

.cert-card h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ruh-primary-dark);
  margin-bottom: var(--space-xs);
}

.cert-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--ruh-charcoal-light);
  margin-bottom: var(--space-xl);
}

.cert-details {
  text-align: left;
  border-top: 1px solid var(--ruh-border);
  padding-top: var(--space-lg);
}

.cert-details dt {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ruh-charcoal-light);
  margin-bottom: var(--space-xs);
}

.cert-details dd {
  font-size: var(--text-base);
  color: var(--ruh-charcoal);
  margin-bottom: var(--space-md);
}

/* --- Toast --- */
#toast-container {
  position: fixed;
  top: 80px;
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  background: var(--ruh-white);
  border: 1px solid var(--ruh-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  color: var(--ruh-charcoal);
  pointer-events: auto;
  animation: toastIn 300ms ease forwards;
  max-width: 360px;
}

.toast.toast-success {
  border-left: 4px solid var(--ruh-success);
}

.toast.toast-error {
  border-left: 4px solid var(--ruh-error);
}

.toast.toast-info {
  border-left: 4px solid var(--ruh-info);
}

.toast.toast-out {
  animation: toastOut 300ms ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--ruh-charcoal-light);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--ruh-charcoal);
}

.empty-state p {
  font-size: var(--text-sm);
  max-width: 400px;
  margin: 0 auto;
}

/* --- Loading --- */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--ruh-border);
  border-top-color: var(--ruh-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Footer --- */
.site-footer {
  background: var(--ruh-white);
  border-top: 1px solid var(--ruh-border);
  padding: var(--space-xl) var(--space-lg);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--ruh-charcoal-light);
  font-weight: 500;
}

.footer-attr {
  font-size: var(--text-xs);
  color: var(--ruh-charcoal-light);
}

.footer-attr a {
  color: var(--ruh-primary);
  font-weight: 500;
}

/* --- Print --- */
@media print {
  .nav-bar,
  .site-footer,
  #toast-container,
  .dua-form,
  .cta-strip,
  .hero-cta-group,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .verse-block {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  .journey-page {
    max-width: 100%;
    padding: 0;
  }

  .cert-card {
    border-color: #999;
    box-shadow: none;
  }
}
