/* ============================================================
   MyLegacy — Global Stylesheet
   Navy (#1a1a2e) · Gold (#d4a574) · White
   Mobile-first, Inter font
   ============================================================ */

/* ── 1. Variables ─────────────────────────────────────────── */
:root {
  --navy:        #1a1a2e;
  --navy-light:  #252542;
  --navy-dark:   #12122a;
  --navy-mid:    #1e1e3a;
  --gold:        #d4a574;
  --gold-light:  #e8c99b;
  --gold-dark:   #b88c5a;
  --white:       #ffffff;
  --off-white:   #f8f7f4;
  --card-bg:     #ffffff;
  --text-body:   #1a1a2e;
  --text-medium: #4a4a6a;
  --text-muted:  #8888a8;
  --border:      #e8e6f0;
  --border-dark: rgba(255,255,255,0.1);
  --success:     #5cb85c;
  --danger:      #e05252;

  --shadow-sm:   0 1px 4px rgba(26,26,46,0.08);
  --shadow-md:   0 4px 16px rgba(26,26,46,0.12);
  --shadow-lg:   0 16px 48px rgba(26,26,46,0.18);
  --shadow-gold: 0 4px 24px rgba(212,165,116,0.3);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --nav-h:       68px;
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; }
ul { list-style: none; }

/* ── 3. Typography ────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }

.gold-text { color: var(--gold); font-style: italic; }
.gold-text em { font-style: italic; }

/* ── 4. Utility ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.hidden { display: none !important; }
.hide-mobile { display: none; }

@media (min-width: 768px) { .hide-mobile { display: inline; } }

/* ── 5. Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid var(--border-dark);
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--gold); background: rgba(212,165,116,0.12); }

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

.nav-user-name {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 767px) {
  .nav-mobile-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy-light);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border-dark);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; border-radius: var(--radius-md); }
  .nav-user-name { display: none; }
}

/* Page body offset when nav is visible */
body:has(#nav:not(.hidden)) .app-main { padding-top: var(--nav-h); }

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover:not(:disabled) {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--navy);
  background: rgba(26,26,46,0.05);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger-outline { color: var(--danger); border-color: rgba(224,82,82,0.3); }
.btn-danger-outline:hover { background: rgba(224,82,82,0.06); border-color: var(--danger); }

/* White outline variant (on dark bg) */
.btn-outline-white {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-white:hover:not(:disabled) {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ── 7. Forms ─────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.15);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238888a8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.input-with-toggle { position: relative; }
.input-with-toggle input { width: 100%; padding-right: 48px; }
.input-toggle-btn {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 4px;
}
.input-toggle-btn:hover { color: var(--text-body); }

.form-error {
  padding: 10px 14px;
  background: rgba(224,82,82,0.1);
  border: 1px solid rgba(224,82,82,0.3);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 500;
}

.label-hint {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8em;
}

/* ── 8. Loading ───────────────────────────────────────────── */
.loading-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  width: 100%;
  grid-column: 1 / -1;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-spinner-sm {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(26,26,46,0.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── 9. Toast ─────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--navy-light);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 360px;
}
.toast-visible { opacity: 1; transform: translateX(0); }

.toast-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.toast-success .toast-icon { background: rgba(92,184,92,0.2); color: #5cb85c; }
.toast-error .toast-icon { background: rgba(224,82,82,0.2); color: var(--danger); }
.toast-info .toast-icon { background: rgba(212,165,116,0.2); color: var(--gold); }

/* ── 10. Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,25,0.85);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-wide { max-width: 820px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  z-index: 1;
}
.modal-close:hover { background: var(--off-white); color: var(--text-body); }

/* Modal player */
.modal-player { padding: 24px; }
.modal-player-media {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.modal-video {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
}
.modal-audio-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  background: var(--navy);
  border-radius: var(--radius-lg);
}
.modal-audio { width: 100%; max-width: 360px; }
.modal-audio-icon { opacity: 0.8; }
.modal-player-info { margin-bottom: 20px; }
.modal-player-info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-prompt {
  color: var(--text-medium);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.modal-meta {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.modal-player-actions { display: flex; gap: 12px; }

/* ── 11. Landing Page ─────────────────────────────────────── */
.page-landing { background: var(--white); }

/* Hero */
.hero {
  min-height: 100svh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(212,165,116,0.2);
  top: -100px; right: -100px;
  animation: floatOrb 7s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(212,165,116,0.12);
  bottom: -50px; left: 10%;
  animation: floatOrb 9s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(100,150,220,0.15);
  top: 40%; left: 30%;
  animation: floatOrb 11s ease-in-out infinite 2s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr 420px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,165,116,0.12);
  border: 1px solid rgba(212,165,116,0.3);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.hero-avatars {
  display: flex;
}
.hero-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-left: -8px;
}
.hero-avatars .hero-avatar:first-child { margin-left: 0; }

/* Hero visual frame */
.hero-visual {
  display: none;
}
@media (min-width: 900px) {
  .hero-visual { display: block; }
}

.hero-frame {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: floatFrame 4s ease-in-out infinite;
}
@keyframes floatFrame {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.hero-frame-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rec-dot {
  width: 8px; height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: pulse-dot 1s ease-in-out infinite;
}
.rec-label { color: #ff6666; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; }
.rec-timer { margin-left: auto; color: rgba(255,255,255,0.6); font-size: 0.8rem; font-family: monospace; }

.hero-frame-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(26,26,46,0.6);
  min-height: 200px;
}
.hero-frame-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(212,165,116,0.1);
  border: 2px dashed rgba(212,165,116,0.3);
  display: flex; align-items: center; justify-content: center;
}

.hero-frame-prompt {
  padding: 16px 20px;
  background: rgba(212,165,116,0.08);
  border-top: 1px solid rgba(212,165,116,0.15);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background: var(--off-white);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 500px;
  margin-bottom: 60px;
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
@media (min-width: 768px) { .steps-grid { flex-wrap: nowrap; } }

.step-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 200px;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.step-number {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}
.step-icon {
  width: 56px; height: 56px;
  background: rgba(212,165,116,0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.step-card h3 { margin-bottom: 10px; color: var(--navy); }
.step-card p { color: var(--text-medium); font-size: 0.95rem; line-height: 1.6; }

.step-connector {
  padding: 0 12px;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 768px) { .step-connector { display: block; } }

/* Features */
.features-section {
  padding: 100px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(212,165,116,0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 6px; }
.feature-item p { color: var(--text-medium); font-size: 0.9rem; line-height: 1.55; }

/* Quote */
.quote-section {
  padding: 80px 0;
  background: var(--navy);
}
.pullquote {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  display: block;
  margin: 0 auto 24px;
}
.pullquote p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 24px;
}
.pullquote footer {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA */
.cta-section {
  padding: 100px 0;
  background: var(--off-white);
}
.cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0f3460 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,165,116,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.cta-card h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-card p { color: rgba(255,255,255,0.65); font-size: 1.1rem; margin-bottom: 32px; }

/* Footer */
.site-footer {
  padding: 40px 0;
  background: var(--navy-dark);
  border-top: 1px solid var(--border-dark);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
.footer-tagline { color: rgba(255,255,255,0.45); font-size: 0.9rem; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* ── 12. Auth ─────────────────────────────────────────────── */
.page-auth {
  background: var(--off-white);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-layout {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-brand {
  text-align: center;
}
.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-brand-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: -1px;
}
.auth-tab:hover { color: var(--text-body); }
.auth-tab.active { color: var(--navy); border-bottom-color: var(--gold); }

.auth-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-terms {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-faceid { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 14px; }

/* ── 13. Recording Studio ─────────────────────────────────── */
.page-studio {
  background: var(--navy-dark);
  min-height: 100svh;
  color: var(--white);
}

.studio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 20px;
  min-height: calc(100svh - var(--nav-h));
  max-width: 1160px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .studio-layout { grid-template-columns: 1fr 340px; gap: 28px; }
}

.studio-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-preview-wrap { display: flex; flex-direction: column; gap: 20px; }

.studio-preview {
  position: relative;
  background: #0a0a1a;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.studio-idle-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}
.studio-idle-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(212,165,116,0.1);
  border: 1px solid rgba(212,165,116,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.studio-idle-screen h3 { font-size: 1.2rem; color: var(--white); }
.studio-idle-screen p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 280px; }

.studio-mode-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.mode-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.mode-btn:hover { border-color: rgba(255,255,255,0.35); color: var(--white); }
.mode-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,165,116,0.1);
}

.studio-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Audio-only visualization */
.studio-audio-viz {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--navy-dark);
}
.audio-icon { opacity: 0.7; }
.audio-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
}
.audio-bar {
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
  height: 8px;
  animation: audioBar 0.8s ease-in-out infinite alternate;
  animation-play-state: paused;
}
@keyframes audioBar {
  from { height: 4px; opacity: 0.4; }
  to   { height: 40px; opacity: 1; }
}
.studio-audio-viz p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

/* Recording badge */
.studio-rec-badge {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,100,100,0.4);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff6666;
  letter-spacing: 0.05em;
}
.rec-dot-live {
  width: 8px; height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

/* Studio Controls */
.studio-controls {
  display: flex;
  justify-content: center;
}

.btn-record {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-full);
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(212,165,116,0.35);
}
.btn-record:hover:not(:disabled) {
  background: var(--gold-light);
  box-shadow: 0 8px 32px rgba(212,165,116,0.5);
  transform: translateY(-2px);
}
.btn-record:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(224,82,82,0.15);
  border: 2px solid rgba(224,82,82,0.6);
  color: #ff8888;
  border-radius: var(--radius-full);
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  animation: pulseBorder 1.5s ease-in-out infinite;
}
.btn-stop:hover {
  background: rgba(224,82,82,0.25);
  border-color: #ff6666;
  color: var(--white);
}
@keyframes pulseBorder {
  0%,100% { box-shadow: 0 0 0 0 rgba(224,82,82,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(224,82,82,0); }
}

.ctrl-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Save dialog */
.save-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,25,0.8);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.save-dialog {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.save-dialog h3 { color: var(--white); margin-bottom: 8px; }
.save-dialog p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 20px; }
.save-dialog .form-group label { color: rgba(255,255,255,0.7); }
.save-dialog .form-group input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}
.save-dialog .form-group input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.1);
}
.save-dialog-actions { display: flex; gap: 12px; margin-top: 20px; }
.save-dialog .btn-outline { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.save-dialog .btn-outline:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

/* Studio sidebar */
.studio-sidebar {
  display: flex;
  flex-direction: column;
}

.studio-prompt-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.prompt-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prompt-panel-header h3 { color: var(--white); font-size: 1rem; }
.prompt-counter { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.prompt-card-studio {
  background: rgba(212,165,116,0.08);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.prompt-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.prompt-text {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--white);
  font-style: italic;
}

.prompt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.btn-prompt-nav {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-prompt-nav:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.prompt-nav .btn-outline {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.15);
  font-size: 0.82rem;
  padding: 7px 14px;
}
.prompt-nav .btn-outline:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

.prompt-tips h4 {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.prompt-tips ul { display: flex; flex-direction: column; gap: 6px; }
.prompt-tips li {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  padding-left: 14px;
  position: relative;
}
.prompt-tips li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── 14. Vault ────────────────────────────────────────────── */
.page-vault { background: var(--off-white); min-height: 100svh; }

.vault-layout { padding: 40px 20px; }

.vault-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.vault-header h1 { margin-bottom: 6px; }
.page-subtitle { color: var(--text-muted); font-size: 0.95rem; }

.vault-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.vault-search {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}
.vault-search svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.vault-search input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vault-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.12);
}

.vault-filters {
  display: flex;
  gap: 6px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.vault-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .vault-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .vault-grid { grid-template-columns: 1fr 1fr 1fr; } }

.vault-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.vault-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vault-card:hover .vault-card-play-overlay { opacity: 1; }

.vault-card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-dark); }
.vault-card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.vault-card:hover .vault-card-thumb { transform: scale(1.04); }

.vault-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-dark);
}

.vault-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.vault-play-btn {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transform: scale(0.8);
  transition: transform var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.vault-card:hover .vault-play-btn { transform: scale(1); }

.vault-card-type-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.vault-card-body { padding: 16px 18px 12px; }
.vault-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--navy);
}
.vault-card-prompt {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}
.vault-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.vault-card-duration { font-weight: 600; }

.vault-card-actions {
  display: flex;
  gap: 4px;
  padding: 0 10px 12px;
  justify-content: flex-end;
}
.vault-action-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  background: var(--off-white);
}
.vault-action-btn:hover { background: var(--border); color: var(--navy); }
.vault-action-delete:hover { background: rgba(224,82,82,0.1); color: var(--danger); }

.vault-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-muted);
}
.vault-empty h3 { color: var(--text-body); }
.vault-empty p { max-width: 360px; line-height: 1.6; }

/* ── 15. Dashboard ────────────────────────────────────────── */
.page-dashboard { background: var(--off-white); min-height: 100svh; }

.dashboard-layout { padding: 40px 20px; }

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.dashboard-greeting { margin-bottom: 6px; }
.dashboard-sub { color: var(--text-muted); }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 480px) { .dashboard-stats { grid-template-columns: 1fr 1fr; } }

.stat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.ice-status-none { color: var(--text-muted); }
.ice-status-partial { color: var(--gold); }
.ice-status-complete { color: var(--success); }

.dashboard-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) { .dashboard-sections { grid-template-columns: 1fr 380px; } }

.dashboard-section {}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 1.15rem; }
.link-subtle { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.link-subtle:hover { color: var(--gold-dark); }

/* Recent recordings */
.recent-recordings { display: flex; flex-direction: column; gap: 10px; }

.recent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.recent-card:hover { box-shadow: var(--shadow-md); transform: translateX(2px); }

.recent-thumb {
  width: 60px; height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.recent-thumb-placeholder {
  width: 60px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.recent-meta { flex: 1; min-width: 0; }
.recent-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-info { font-size: 0.78rem; color: var(--text-muted); }

.btn-play-small {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.btn-play-small:hover { background: var(--gold-light); transform: scale(1.1); }

.empty-state-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.empty-state-small p a { color: var(--gold-dark); font-weight: 500; }

/* Prompt of day */
.prompt-of-day-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0f3460 100%);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pod-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.pod-text {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  font-style: italic;
}

/* ── 16. Profile ──────────────────────────────────────────── */
.page-profile { background: var(--off-white); min-height: 100svh; }

.profile-layout { padding: 40px 20px; }
.profile-header { margin-bottom: 32px; }
.profile-header h1 { margin-bottom: 6px; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .profile-grid {
    grid-template-columns: 380px 1fr;
  }
  .ice-card { grid-row: 1 / 3; grid-column: 2; }
  .danger-zone-card { grid-column: 1; }
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.profile-card-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--navy), #0f3460);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}
.profile-email { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.profile-stats-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.profile-stat { display: flex; flex-direction: column; gap: 2px; }
.profile-stat-val { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.profile-stat-label { font-size: 0.78rem; color: var(--text-muted); }

.profile-form { display: flex; flex-direction: column; gap: 16px; }

/* ICE Card */
.ice-card { }
.ice-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ice-header-icon {
  width: 52px; height: 52px;
  background: rgba(212,165,116,0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ice-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-top: 3px; }

.ice-explainer {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.ice-explainer p { font-size: 0.88rem; color: var(--text-medium); line-height: 1.55; }

.ice-chain-status { margin-bottom: 20px; }
.ice-status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}
.ice-status-none { background: rgba(136,136,168,0.08); border-color: rgba(136,136,168,0.2); }
.ice-status-partial { background: rgba(212,165,116,0.08); border-color: rgba(212,165,116,0.2); }
.ice-status-complete { background: rgba(92,184,92,0.08); border-color: rgba(92,184,92,0.2); }

.ice-status-label { font-weight: 600; font-size: 0.9rem; }
.ice-status-detail { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

.ice-form { display: flex; flex-direction: column; gap: 16px; }
.ice-form h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }

.ice-chain-section {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ice-chain-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.ice-form-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Danger zone */
.danger-zone-card { }
.danger-zone-card h2 { margin-bottom: 8px; }
.danger-zone-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.danger-zone-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 17. Animations ───────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-landing .hero-content,
.page-auth .auth-layout,
.page-dashboard .dashboard-layout,
.page-vault .vault-layout,
.page-profile .profile-layout {
  animation: fadeIn 0.4s ease both;
}

/* ── 18. Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,26,46,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,26,46,0.3); }

/* ── 19. Focus visible ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 20. Print ────────────────────────────────────────────── */
@media print {
  .nav, .toast-container, .modal-overlay { display: none !important; }
}
