/* Modern CSS Design System for PathTale Interactive Gamebooks */

:root,
[data-theme="pathtale"] {
  --bg-primary: #120e0c;
  --bg-navbar: #181412;
  --bg-card: #1d1815;
  --bg-card-hover: #29211c;
  --border-color: #382c25;
  
  --text-main: #f4eaab;
  --text-muted: #c4b39b;
  --text-dim: #8c7a69;
  
  --accent-gold: #d9b382;
  --accent-gold-bright: #e8c697;
  --accent-primary: #d9b382;
  --accent-hover: #c59862;
  --accent-light: #f0d5b1;
  --accent-gradient: linear-gradient(135deg, #e5c07b 0%, #b88646 100%);

  --btn-login-border: #4a3b32;
  --btn-login-hover: #d9b382;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --font-family-sans: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-family-serif: 'Merriweather', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(217, 179, 130, 0.25);

  --font-body-size: 1.15rem;
  --line-height-body: 1.8;
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-navbar: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --border-color: #334155;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-gold: #6366f1;
  --accent-gold-bright: #818cf8;
  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

  --btn-login-border: #334155;
  --btn-login-hover: #818cf8;
}

[data-theme="light"] {
  --bg-primary: #f6f1e8;
  --bg-navbar: #ede4d4;
  --bg-card: #ffffff;
  --bg-card-hover: #f1e9dc;
  --border-color: #d9ccb9;
  
  --text-main: #2a201b;
  --text-muted: #6b5749;
  --text-dim: #947e6e;
  
  --accent-gold: #9e6b38;
  --accent-gold-bright: #b3783e;
  --accent-primary: #9e6b38;
  --accent-hover: #7d5228;
  --accent-light: #c48a4d;
  --accent-gradient: linear-gradient(135deg, #a66e38 0%, #784a1e 100%);

  --btn-login-border: #c4b5a2;
  --btn-login-hover: #8c5a2b;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Navbar */
.navbar {
  width: 100%;
  height: 68px;
  background-color: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-svg-icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  display: inline-block;
  vertical-align: middle;
  transition: stroke 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-main);
}

.nav-btn.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-btn-login {
  background: transparent;
  border: 1px solid var(--btn-login-border);
  color: var(--text-main);
  font-family: var(--font-family-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn-login:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.nav-btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-btn-icon:hover {
  color: var(--text-main);
  background-color: var(--bg-card-hover);
}

/* Views */
.main-content {
  flex: 1;
  padding: 1.5rem 1.25rem 3rem 1.25rem;
}

.view {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.view.active {
  display: block;
  opacity: 1;
}

/* Library Hero Cover Banner */
.hero-cover-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.75rem;
  border: 1px solid var(--border-color);
}

.hero-cover-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.25rem;
}

.library-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.view-toggle-wrap {
  display: inline-flex;
  gap: 0.4rem;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.btn-toggle {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 5px 12px;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-toggle:hover {
  color: var(--text-main);
}

.btn-toggle.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* Compact Table View Mode */
.library-grid.view-table {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.library-grid.view-table .book-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem 1rem;
  flex-direction: row;
}

.library-grid.view-table .book-card:hover {
  transform: translateX(4px);
}

.library-grid.view-table .book-cover {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.library-grid.view-table .book-badge {
  display: none;
}

.library-grid.view-table .book-info {
  padding: 0;
}

.library-grid.view-table .book-title {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.library-grid.view-table .book-author {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.book-series {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  width: fit-content;
}

.library-grid.view-table .book-series {
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
  padding: 1px 6px;
}

.library-grid.view-table .book-actions {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-glow);
}

.book-cover {
  width: 100%;
  height: 200px;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--accent-gradient);
  opacity: 0.8;
}

.book-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.book-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.book-author {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.book-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-progress-wrap {
  margin-top: auto;
  padding-top: 0.75rem;
}

.book-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-bar-wrap {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.4s ease;
}

.book-actions {
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.btn-primary {
  flex: 1;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--danger);
}

.btn-secondary-sm {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-secondary-sm:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* Game View */
.game-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.game-meta {
  flex: 1;
}

.game-meta h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  background: var(--bg-secondary);
  color: var(--accent-light);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Story Card */
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.node-image-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.node-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.node-header {
  margin-bottom: 1.5rem;
}

.node-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.node-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
}

.node-text {
  font-family: var(--font-family-serif);
  font-size: var(--font-body-size);
  line-height: var(--line-height-body);
  color: var(--text-main);
  margin-bottom: 2rem;
  white-space: pre-line;
}

/* Media Controls */
.media-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.audio-player-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-media {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-media:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

.btn-play {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.audio-timeline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audio-timeline input[type="range"] {
  flex: 1;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.btn-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.voice-input-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-voice {
  border-color: var(--accent-primary);
  color: var(--accent-light);
}

.btn-voice.recording {
  background: #dc2626;
  color: #fff;
  border-color: #ef4444;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

/* Toast */
.transcription-toast {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Choices */
.choices-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-muted);

}

.choices-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Option Buttons (Matching 'Responder por Voz' theme) */
.btn-choice {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--accent-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-choice:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold-bright);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(217, 179, 130, 0.2);
  transform: translateY(-1px);
}

.btn-choice:active {
  transform: translateY(0);
}

.btn-choice .choice-num {
  font-weight: 800;
  color: var(--accent-light);
  font-size: 1.05rem;
  min-width: 1.5rem;
}

.btn-choice .choice-text {
  flex: 1;
}

.btn-choice .choice-arrow {
  color: var(--accent-light);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn-choice:hover .choice-arrow {
  transform: translateX(4px);
  color: var(--accent-gold-bright);
}

/* Drawers & Modals */
.drawer, .modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
}

.drawer.open, .modal.open {
  display: flex;
}

.modal-content, .drawer-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 90%;
  max-width: 480px;
}

.modal-header, .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.setting-item {
  margin-bottom: 1.25rem;
}

.setting-item label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.select-input {
  width: 100%;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
}

.switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* Spinner */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  grid-column: 1 / -1;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem auto;
}

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

/* Auth Modal & Profile Styles */
.auth-modal-content {
  max-width: 420px;
}

.auth-tabs {
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.text-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.text-input:focus {
  border-color: var(--accent-gold);
}

.auth-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: #fca5a5;
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.btn-primary-block {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-primary-block:hover {
  opacity: 0.92;
}

.auth-footer-link {
  margin-top: 1rem;
  text-align: center;
}

.auth-footer-link a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer-link a:hover {
  color: var(--accent-gold);
}

/* Tagline for Unauthenticated Visitors */
.landing-tagline {
  text-align: center;
  padding: 2.5rem 1rem 3.5rem 1rem;
}

.landing-tagline h2 {
  font-family: var(--font-family-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold-bright);
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.landing-tagline p {
  font-family: var(--font-family-sans);
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* User Profile Header in Settings */
.user-profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.profile-avatar {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.profile-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.profile-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-stats {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-badge {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  text-align: center;
}

.stat-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.25rem 0;
}

.profile-logout-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-danger-outline {
  width: 100%;
  background: transparent;
  border: 1px solid var(--danger);
  color: #fca5a5;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover {
  background: var(--danger);
  color: #fff;
}

/* Landing Page (Unauthenticated View) */
.landing-container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-hero-wrap {
  width: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-cover-img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.landing-auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 14, 12, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
}

.landing-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

.landing-auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.landing-auth-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.landing-auth-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.landing-auth-footer {
  margin-top: 1.25rem;
  text-align: center;
}

.landing-auth-footer a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-auth-footer a:hover {
  color: var(--accent-gold);
}
