/* ============================================
   ALTEEZ — Design System v2.0
   Modern UI · Dark Mode · Glassmorphism
   ============================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   1. VARIABLES — Light Theme (Default)
   ============================================ */
:root {
  --primary:       #4CC9F0;
  --primary-dark:  #3AB0D8;
  --primary-rgb:   76, 201, 240;
  --accent:        #F72585;

  --like:          #00D48A;
  --nope:          #FF4757;

  --bg:            #F2F5F9;
  --surface:       #FFFFFF;
  --surface-2:     #F7F8FB;
  --surface-3:     #EEF1F6;

  --text:          #1A1A2E;
  --text-muted:    #7A7A9A;
  --text-soft:     #A0A0BC;

  --border:        rgba(0, 0, 0, 0.07);
  --shadow-xs:     0 1px 4px rgba(0,0,0,0.05);
  --shadow-sm:     0 2px 10px rgba(0,0,0,0.07);
  --shadow:        0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.13);
  --shadow-xl:     0 20px 60px rgba(0,0,0,0.18);

  --nav-height:    76px;
  --header-height: 62px;

  --r-sm:   10px;
  --r:      18px;
  --r-lg:   26px;
  --r-full: 9999px;

  --t:      0.22s ease;
}

/* ============================================
   2. DARK THEME
   ============================================ */
body.dark {
  --bg:        #0E0E1C;
  --surface:   #191929;
  --surface-2: #222236;
  --surface-3: #2C2C44;

  --text:      #E8E8F5;
  --text-muted:#8888AA;
  --text-soft: #5A5A78;

  --border:     rgba(255, 255, 255, 0.07);
  --shadow-xs:  0 1px 4px rgba(0,0,0,0.4);
  --shadow-sm:  0 2px 10px rgba(0,0,0,0.45);
  --shadow:     0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.7);
}

/* ============================================
   3. RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0A0A12;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   4. APP SHELL
   ============================================ */
.mobile-container {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0,0,0,0.7);
}

/* ============================================
   5. HEADER
   ============================================ */
.header {
  height: var(--header-height);
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}
.header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.logo-text {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1;
}
.logo-text span { color: var(--primary); }

/* ============================================
   6. NAVIGATION BAR
   ============================================ */
.nav-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  z-index: 999;
  height: var(--nav-height);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.nav-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-soft);
  width: 60px;
  padding: 6px 0;
  position: relative;
  transition: color var(--t);
}
.nav-item i { font-size: 1.45rem; line-height: 1; }
.nav-item span {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.nav-item.active { color: var(--primary); }
.nav-item.active i { filter: drop-shadow(0 0 6px rgba(76,201,240,0.5)); }
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============================================
   7. CARD STACK
   ============================================ */
.card-stack {
  flex: 1;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding-top: 16px;
  perspective: 1200px;
  overflow: hidden;
}

.card {
  position: absolute;
  width: calc(100% - 36px);
  height: 58vh;
  background: #111;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  top: 16px;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  --i: 0;
  transform: translate3d(0, calc(var(--i) * 12px), calc(var(--i) * -20px));
  filter: brightness(calc(1 - var(--i) * 0.07));
  z-index: calc(100 - var(--i));
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:active { cursor: grabbing; }
.card.is-moving { transition: none !important; }

.card-photo { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.card-gradient {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 72%;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.6) 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.card-info {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 22px 22px 26px;
  color: white;
  pointer-events: none;
  z-index: 2;
}
.card-info h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(76,201,240,0.9);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
}
.card-info p {
  color: rgba(255,255,255,0.8);
  font-size: 0.87rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stamps */
.stamp {
  position: absolute;
  top: 28px;
  padding: 5px 14px;
  border: 4px solid;
  border-radius: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}
.stamp-nope { right: 22px; color: var(--nope); border-color: var(--nope); transform: rotate(-14deg); }
.stamp-like { left: 22px;  color: var(--like); border-color: var(--like); transform: rotate(14deg); }

/* Action Buttons */
.actions {
  position: absolute;
  bottom: calc(var(--nav-height) + 20px);
  left: 0; width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  z-index: 200;
  pointer-events: none;
}
.action-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  font-size: 1.65rem;
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto;
}
.action-btn:active { transform: scale(0.88); }
.btn-yes { border: 2px solid rgba(0,212,138,0.25); }
.btn-no  { border: 2px solid rgba(255,71,87,0.25); }

/* Empty state */
.no-profiles {
  text-align: center;
  padding: 32px 24px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
}
.no-profiles-emoji { font-size: 3.5rem; margin-bottom: 16px; }
.no-profiles h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.no-profiles p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

/* ============================================
   8. MATCH OVERLAY
   ============================================ */
.match-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.match-overlay.active {
  pointer-events: all;
  opacity: 1;
}
.match-backdrop {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #08081A 0%, #1A0830 50%, #200818 100%);
  opacity: 0.97;
}
.match-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 28px;
  text-align: center;
  width: 100%;
  max-width: 430px;
  gap: 18px;
}

/* Confetti */
.confetti-container {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0.5); opacity: 0; }
}
.confetti-piece {
  position: absolute;
  top: -10px;
  width: 10px; height: 10px;
  border-radius: 2px;
  animation: confettiFall linear infinite;
}

/* Match photos */
.match-photos-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}
.match-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.match-photo:last-child { margin-left: -24px; z-index: 1; }

@keyframes heartPulse {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50%       { transform: scale(1.3) rotate(5deg); }
}
.match-heart-icon {
  font-size: 2rem;
  margin: 0 -8px;
  z-index: 2;
  animation: heartPulse 0.75s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(247,37,133,0.8));
}

@keyframes matchTitleReveal {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.match-fire { font-size: 2.5rem; animation: heartPulse 1s ease-in-out infinite; }

.match-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: matchTitleReveal 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.27) 0.1s both;
}
.match-name-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  margin-top: -8px;
}
.match-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: -6px;
}
.match-buttons {
  display: flex; flex-direction: column;
  gap: 10px; width: 100%;
  margin-top: 6px;
}
.match-btn-msg {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary), #7B2FBE);
  color: white; font-weight: 700; font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(76,201,240,0.35);
  transition: transform 0.15s;
}
.match-btn-msg:active { transform: scale(0.97); }
.match-btn-skip {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  padding: 13px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.match-btn-skip:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }

/* ============================================
   9. AUTH FORMS
   ============================================ */
.auth-page {
  flex: 1;
  overflow-y: auto;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo-text { font-size: 2.4rem; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -0.5px; }
.auth-header p  { font-size: 0.87rem; color: var(--text-muted); }

/* Role Tabs */
.role-tabs {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.role-tab {
  flex: 1; padding: 10px 8px; border: none;
  background: transparent; font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  border-radius: var(--r-full); cursor: pointer;
  transition: all var(--t);
}
.role-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Photo upload */
.photo-upload-area {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px; margin-bottom: 20px;
}
.photo-circle {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px dashed var(--border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color var(--t);
}
.photo-circle:hover { border-color: var(--primary); border-style: solid; }
.photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.photo-circle-icon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.22);
  color: white; font-size: 1.3rem; gap: 1px;
}
.photo-circle-icon span { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.photo-upload-hint { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* Form */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.74rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 7px;
}
.form-control {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.93rem; font-family: 'Inter', sans-serif;
  background: var(--surface); color: var(--text);
  outline: none; -webkit-appearance: none;
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,201,240,0.12);
}
.form-control::placeholder { color: var(--text-soft); }
textarea.form-control { resize: none; min-height: 82px; line-height: 1.5; }
select.form-control { cursor: pointer; }

/* Role sections */
.role-section { display: none; }
.role-section.active { display: block; animation: fadeInUp 0.35s ease; }

/* ============================================
   10. BUTTONS
   ============================================ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px;
  border-radius: var(--r-full);
  font-size: 0.93rem; font-weight: 700; font-family: 'Inter', sans-serif;
  text-align: center; border: none; text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  letter-spacing: 0.2px; -webkit-appearance: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(76,201,240,0.35);
}
.btn-secondary { background: var(--text); color: var(--bg); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-danger { background: var(--nope); color: white; box-shadow: 0 6px 20px rgba(255,71,87,0.3); }
.btn + .btn { margin-top: 10px; }

/* ============================================
   11. ALERTS
   ============================================ */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 16px; border: 1px solid;
}
.alert-error   { background: rgba(255,71,87,0.08);  color: #e53e3e; border-color: rgba(255,71,87,0.18); }
.alert-success { background: rgba(0,212,138,0.08);  color: #00a86b; border-color: rgba(0,212,138,0.2); }
body.dark .alert-error   { color: #ff7085; }
body.dark .alert-success { color: #00d48a; }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-soft); font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ============================================
   12. CHAT
   ============================================ */
.chat-header {
  height: var(--header-height);
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px; flex-shrink: 0;
}
.chat-back-btn {
  color: var(--text); text-decoration: none; font-size: 1.3rem;
  display: flex; align-items: center; padding: 6px;
  border-radius: 50%;
  transition: background-color var(--t);
}
.chat-back-btn:hover { background: var(--surface-2); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-header-name { font-weight: 700; font-size: 0.97rem; color: var(--text); }
.chat-header-sub  { font-size: 0.73rem; color: var(--text-muted); margin-top: 1px; }

.chat-container { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.messages-area {
  flex: 1; overflow-y: auto;
  padding: 16px 14px; background: var(--bg);
  display: flex; flex-direction: column; gap: 7px;
  -webkit-overflow-scrolling: touch;
}
.msg {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 0.9rem; line-height: 1.5;
  word-break: break-word;
}
.msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border-bottom-right-radius: 5px;
}
.msg.them {
  align-self: flex-start;
  background: var(--surface); color: var(--text);
  border-bottom-left-radius: 5px; box-shadow: var(--shadow-xs);
}
.msg-time { font-size: 0.63rem; opacity: 0.55; margin-top: 3px; display: block; }
.msg.me .msg-time   { text-align: right; color: rgba(255,255,255,0.8); }
.msg.them .msg-time { color: var(--text-muted); }
.chat-day-label {
  text-align: center; font-size: 0.7rem;
  color: var(--text-soft); font-weight: 600; margin: 6px 0;
}

.chat-input-area {
  padding: 10px 12px; background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; gap: 9px; align-items: center; flex-shrink: 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.chat-input-area input {
  flex: 1; padding: 11px 16px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text);
  outline: none;
  transition: border-color var(--t), background-color var(--t);
}
.chat-input-area input:focus { border-color: var(--primary); }
.chat-input-area input::placeholder { color: var(--text-soft); }
.chat-send-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; color: white; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 14px rgba(76,201,240,0.4);
  transition: transform 0.15s;
}
.chat-send-btn:active { transform: scale(0.9); }

/* Match List */
.match-list {
  list-style: none; padding: 14px; overflow-y: auto; flex: 1;
  padding-bottom: calc(var(--nav-height) + 14px);
  -webkit-overflow-scrolling: touch;
}
.match-item {
  background: var(--surface); padding: 13px 14px; margin-bottom: 9px;
  border-radius: var(--r); display: flex; align-items: center;
  justify-content: space-between; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-xs); border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.match-item:active { transform: scale(0.98); box-shadow: var(--shadow); }
.match-item-left { display: flex; align-items: center; gap: 12px; }
.match-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.match-name  { font-weight: 700; font-size: 0.93rem; color: var(--text); margin-bottom: 2px; }
.match-sub   { font-size: 0.77rem; color: var(--text-muted); }
.match-arrow { color: var(--text-soft); font-size: 0.9rem; }

/* ============================================
   13. PROFILE / SETTINGS
   ============================================ */
.profile-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px 18px; background: var(--surface);
  border-bottom: 1px solid var(--border); gap: 10px; flex-shrink: 0;
}
.profile-avatar-wrap { position: relative; width: 84px; height: 84px; }
.profile-avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface); box-shadow: var(--shadow);
}
.profile-avatar-edit-btn {
  position: absolute; bottom: 2px; right: 2px;
  width: 26px; height: 26px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7rem; border: 2px solid var(--surface); cursor: pointer;
}
.profile-name-display { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.profile-role-display { font-size: 0.77rem; color: var(--text-muted); font-weight: 500; }

.settings-scroll {
  flex: 1; overflow-y: auto;
  padding: 18px 16px;
  padding-bottom: calc(var(--nav-height) + 16px);
  -webkit-overflow-scrolling: touch;
}
.settings-section-label {
  font-size: 0.69rem; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 8px; padding: 0 4px;
}
.settings-card {
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  overflow: hidden; margin-bottom: 20px;
}
.settings-row {
  display: flex; align-items: center;
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  gap: 12px;
}
.settings-row:last-child { border-bottom: none; }
.settings-row-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.settings-row-body { flex: 1; }
.settings-row-title { font-size: 0.91rem; font-weight: 600; color: var(--text); }
.settings-row-sub   { font-size: 0.74rem; color: var(--text-muted); margin-top: 1px; }
.settings-row-right { color: var(--text-muted); font-size: 0.8rem; }

/* Toggle Switch */
.toggle-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--surface-3); border-radius: var(--r-full);
  cursor: pointer; border: 1px solid var(--border);
  transition: background-color var(--t);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 2px; bottom: 2px;
  background: white; border-radius: 50%;
  transition: transform var(--t);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ============================================
   14. PASSWORD RESET / OTP
   ============================================ */
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-box {
  width: 48px; height: 58px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.5rem; font-weight: 800; text-align: center;
  background: var(--surface); color: var(--text); outline: none;
  -webkit-appearance: none; font-family: 'Inter', sans-serif;
  transition: border-color var(--t), box-shadow var(--t);
}
.otp-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(76,201,240,0.12); }

.reset-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 24px; }
.reset-step {
  height: 4px; width: 28px; border-radius: 2px;
  background: var(--surface-3);
  transition: background-color var(--t), width var(--t);
}
.reset-step.active { background: var(--primary); width: 48px; }
.reset-step.done   { background: var(--like); }

/* ============================================
   15. UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 0.85rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-4  { margin-top: 4px;  } .mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }

.link { color: var(--primary); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 60px 24px; }
.empty-state-emoji { font-size: 3.2rem; margin-bottom: 14px; }
.empty-state h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================
   16. ANIMATIONS
   ============================================ */
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn   { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.animate-in    { animation: fadeInUp 0.4s ease both; }
.animate-fade  { animation: fadeIn 0.35s ease both; }
.animate-scale { animation: scaleIn 0.35s cubic-bezier(0.17,0.89,0.32,1.27) both; }

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.10s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.20s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
