/* ═══════════════════════════════════════════════════════
   Princesa Design System
   Dark luxury: midnight navy + champagne gold
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --midnight: #0A0E21;
  --deep: #0D1229;
  --surface: #111633;
  --surface-hover: #161b3d;
  --gold: #D4AF37;
  --gold-light: #E8D48B;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.08);
  --text: #E8E6E3;
  --text-muted: #8B8A88;
  --text-dim: #5a5957;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(212, 175, 55, 0.12);
  --glass-border-hover: rgba(212, 175, 55, 0.25);
  --danger: #e74c3c;
  --danger-dim: rgba(231, 76, 60, 0.15);
  --success: #2ecc71;
  --success-dim: rgba(46, 204, 113, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--midnight);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── Ambient Background ───────────────────────────── */
.ambient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}
.ambient .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}
.ambient .orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.2), transparent 70%);
  top: -100px; right: -100px;
  animation: float-1 20s ease-in-out infinite;
}
.ambient .orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
  bottom: 20%; left: -80px;
  animation: float-2 25s ease-in-out infinite;
}

@keyframes float-1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 60px); } }
@keyframes float-2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, -40px); } }

/* ─── Typography ───────────────────────────────────── */
.serif { font-family: 'Cormorant Garamond', serif; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; }

/* ─── Layout ───────────────────────────────────────── */
.page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav Bar ──────────────────────────────────────── */
.app-nav {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.app-nav .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: lowercase;
  text-decoration: none;
}

.app-nav .logo-dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: middle;
  margin-bottom: 6px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-user-name {
  font-size: 13px;
  color: var(--text-muted);
}

.nav-btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.nav-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--text);
}

/* ─── Cards / Glass Panels ─────────────────────────── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.card:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #c9a431);
  color: var(--midnight);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--gold); }

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(231, 76, 60, 0.2);
}
.btn-danger:hover {
  background: rgba(231, 76, 60, 0.25);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Forms ────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--deep);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-input::placeholder {
  color: var(--text-dim);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ─── Auth Pages ───────────────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: lowercase;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 36px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--gold);
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  background: var(--danger-dim);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 20px;
  display: none;
}
.auth-error.visible {
  display: block;
}

/* ─── Modals / Overlays ────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--deep);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--text); }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ─── Badges / Tags ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-sealed {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.badge-open {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(46, 204, 113, 0.2);
}
.badge-past {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Empty States ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}
.empty-state .emoji {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.empty-state h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ─── Invite Code Display ──────────────────────────── */
.invite-code {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--gold);
  padding: 16px 32px;
  background: var(--gold-dim);
  border: 2px dashed var(--gold);
  border-radius: 16px;
  user-select: all;
}

/* ─── Countdown Specific ───────────────────────────── */
.countdown-display {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-unit {
  text-align: center;
  min-width: 70px;
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.countdown-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Letter Card ──────────────────────────────────── */
.letter-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
  cursor: pointer;
}
.letter-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}
.letter-card.sealed {
  background: var(--gold-glow);
  border-color: rgba(212, 175, 55, 0.2);
}

.letter-seal {
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
}

.letter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.letter-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
}

.letter-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 300;
  white-space: pre-wrap;
}

/* ─── Dashboard Grid ───────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.gadget-section {
  margin-bottom: 40px;
}

.gadget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gadget-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gadget-title h2 {
  font-size: 24px;
  color: var(--gold-light);
}

.gadget-title .icon {
  font-size: 24px;
}

/* ─── Pairing Screen ───────────────────────────────── */
.pairing-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 24px;
  text-align: center;
}

.pairing-screen h1 {
  font-size: 40px;
  color: var(--text);
  margin-bottom: 12px;
}

.pairing-screen h1 em {
  color: var(--gold);
  font-style: italic;
}

.pairing-screen > p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.pairing-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.pairing-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 32px;
  width: 320px;
  text-align: center;
  transition: all 0.3s;
}
.pairing-card:hover {
  border-color: var(--glass-border-hover);
}

.pairing-card h3 {
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.pairing-card p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ─── Spinner ──────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text);
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Loading State ────────────────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* ─── Gadget Grid (Home Dashboard) ────────────────── */
.gadget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.gadget-tile {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.gadget-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.gadget-tile:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.gadget-tile-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.gadget-tile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.gadget-tile-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ─── Gadget Page Header ──────────────────────────── */
.gadget-page-header {
  margin-bottom: 32px;
}

.gadget-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.gadget-page-title h1 {
  font-size: 32px;
  color: var(--gold-light);
}

.gadget-page-desc {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 300;
  margin-top: 4px;
  margin-left: 42px;
}

/* ─── Daily Quote Widget (Home) ───────────────────── */
.quote-widget {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  position: relative;
  margin-bottom: 16px;
}

.quote-widget-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: var(--gold-dim);
  line-height: 0.5;
  margin-bottom: 8px;
  opacity: 0.6;
}

.quote-widget-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.quote-widget-author {
  color: var(--gold);
  font-size: 13px;
  margin-top: 12px;
  font-weight: 400;
}

/* ─── Quote Card Featured ─────────────────────────── */
.quote-card-featured {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
}
.quote-card-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  color: var(--gold-dim);
  line-height: 0.5;
  margin-bottom: 16px;
  opacity: 0.5;
}

.quote-text-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.quote-author-lg {
  color: var(--gold);
  font-size: 15px;
  margin-top: 16px;
  font-weight: 500;
}

/* ─── Mood Tracker ────────────────────────────────── */
.mood-today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mood-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.mood-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.mood-picker-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.mood-picker-btn.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.mood-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mood-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.mood-history-emoji {
  font-size: 24px;
}

/* ─── Playlist ────────────────────────────────────── */
.playlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 10px;
  transition: all 0.3s;
}
.playlist-item:hover {
  border-color: var(--glass-border-hover);
}

.playlist-item-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-light);
}

.playlist-item-artist {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.playlist-item-note {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 4px;
}

.playlist-item-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.playlist-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ─── Love Language ───────────────────────────────── */
.love-lang-primary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-container {
  max-width: 600px;
  margin: 0 auto;
}

.quiz-progress {
  background: var(--glass);
  border-radius: 100px;
  height: 6px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px;
  transition: width 0.3s ease;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 24px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  line-height: 1.5;
}
.quiz-option:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: translateX(4px);
}

/* ─── Memory Timeline ─────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-dim), var(--glass-border));
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  font-size: 18px;
  width: 28px;
  text-align: center;
}

.timeline-content {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s;
}
.timeline-content:hover {
  border-color: var(--glass-border-hover);
}

.timeline-date {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 18px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-top: 8px;
}

.timeline-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ─── Draw Pad ────────────────────────────────────── */
.draw-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.draw-colors {
  display: flex;
  gap: 6px;
}

.draw-color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.draw-color-btn.active, .draw-color-btn:hover {
  border-color: white;
  transform: scale(1.2);
}

.draw-sizes {
  display: flex;
  gap: 6px;
  align-items: center;
}

.draw-size-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.draw-size-btn.active, .draw-size-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.canvas-wrapper {
  background: var(--deep);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

#drawCanvas {
  background: var(--deep);
  cursor: crosshair;
  display: block;
  touch-action: none;
}

.drawings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ─── Star Rating ─────────────────────────────────── */
.star-rating {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.star-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.2s;
  filter: grayscale(50%);
}
.star-btn:hover {
  transform: scale(1.3);
  filter: grayscale(0);
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .gadget-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gadget-tile {
    padding: 20px 16px;
  }
  .gadget-tile-emoji {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .gadget-tile-name {
    font-size: 15px;
  }
  .gadget-tile-desc {
    font-size: 11px;
  }
  .app-nav {
    padding: 16px 20px;
  }
  .auth-card {
    padding: 36px 28px;
  }
  .pairing-options {
    flex-direction: column;
    align-items: center;
  }
  .modal {
    padding: 32px 24px;
  }
  .countdown-number {
    font-size: 32px;
  }
  .mood-today-grid {
    grid-template-columns: 1fr;
  }
  .mood-picker-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .quote-text-lg {
    font-size: 20px;
  }
  .gadget-page-title h1 {
    font-size: 26px;
  }
  .gadget-page-desc {
    margin-left: 0;
  }
  .draw-toolbar {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .gadget-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .mood-picker-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .mood-picker-btn {
    padding: 8px 4px;
  }
  .mood-picker-btn span:first-child {
    font-size: 24px !important;
  }
}
