/* Built from src/css/ — 2026-08-20T15:57:32.603Z */

/* === 00-tokens.css === */
/* ═══════════════════════════════════════════
   DEALT — Design Tokens
   00-tokens.css
   Inspired by Pokémon TCG Pocket — premium, immersive, addictive
   ═══════════════════════════════════════════ */

:root {
  /* ── Brand Colors — Deep, rich, premium ── */
  --dealt-black:     #050508;
  --dealt-dark:      #0c0c14;
  --dealt-surface:   #14141e;
  --dealt-card:      #1a1a28;
  --dealt-border:    #252536;
  --dealt-muted:     #6e6e8a;
  --dealt-text:      #eaeaf4;
  --dealt-white:     #f8f8ff;

  --dealt-primary:   #7c3aed;
  --dealt-primary-dim: #5b21b6;
  --dealt-primary-glow: rgba(124,58,237,0.4);
  --dealt-secondary: #ec4899;
  --dealt-accent:    #f59e0b;
  --dealt-success:   #10b981;
  --dealt-danger:    #ef4444;
  --dealt-info:      #06b6d4;

  /* Rarity colors — vivid and jewel-toned */
  --rarity-common:    #94a3b8;
  --rarity-uncommon:  #34d399;
  --rarity-rare:      #38bdf8;
  --rarity-epic:      #a78bfa;
  --rarity-legendary: #fbbf24;

  /* ── Gradients ── */
  --gradient-hero: linear-gradient(165deg, #7c3aed 0%, #4f46e5 30%, #0891b2 100%);
  --gradient-surface: linear-gradient(180deg, #14141e 0%, #0c0c14 100%);
  --gradient-card: linear-gradient(145deg, #1e1e2e 0%, #14141e 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.15) 0%, transparent 70%);

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base: 1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;

  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ── Radii ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 999px;

  /* ── Shadows — layered for depth ── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.6), 0 8px 16px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 24px var(--dealt-primary-glow);
  --shadow-glow-strong: 0 0 48px var(--dealt-primary-glow), 0 0 96px rgba(124,58,237,0.15);

  /* ── Z-Index ── */
  --z-base: 0;
  --z-card: 10;
  --z-nav: 100;
  --z-modal: 200;
  --z-overlay: 300;
  --z-toast: 400;
  --z-pack: 500;

  /* ── Transitions — spring-physics feel ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-reveal: 600ms;

  /* ── App Chrome ── */
  --app-max-width: 430px;
  --nav-height: 64px;
  --header-height: 56px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}


/* === 01-reset.css === */
/* ═══════════════════════════════════════════
   01-reset.css — Modern CSS Reset
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--dealt-text);
  background: var(--dealt-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior: none;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--font-semibold); line-height: var(--leading-tight); }
:focus-visible { outline: 2px solid var(--dealt-primary); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--dealt-primary); color: var(--dealt-white); }
input::placeholder { color: var(--dealt-muted); }


/* === 02-layout.css === */
/* ═══════════════════════════════════════════
   02-layout.css — App Shell & Phone Frame
   Premium glass-morphism chrome
   ═══════════════════════════════════════════ */

/* Desktop: phone-sized centered container */
.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--dealt-dark);
  overflow: hidden;
}

/* On desktop, add phone border effect */
@media (min-width: 500px) {
  body {
    background: var(--dealt-black);
    background-image: var(--gradient-glow);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
  }
  .app-shell {
    min-height: 100dvh;
    box-shadow:
      0 0 80px rgba(124,58,237,0.06),
      0 0 1px rgba(255,255,255,0.08),
      inset 0 0 80px rgba(0,0,0,0.3);
    border-left: 1px solid rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.04);
  }
}

/* Header bar — glass effect */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-4);
  padding-top: var(--safe-area-top);
  background: rgba(12,12,20,0.85);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-black);
  letter-spacing: var(--tracking-tight);
  background: linear-gradient(135deg, #a78bfa 0%, var(--dealt-primary) 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions { display: flex; gap: var(--space-2); align-items: center; }

/* Bottom navigation — frosted glass */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--nav-height);
  padding-bottom: var(--safe-area-bottom);
  background: rgba(12,12,20,0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  color: var(--dealt-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-item.active { color: var(--dealt-primary); }
.nav-item.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--dealt-primary);
  box-shadow: 0 0 8px var(--dealt-primary-glow);
}
.nav-item .nav-icon { font-size: 22px; transition: transform var(--duration-fast) var(--ease-spring); }
.nav-item.active .nav-icon { transform: scale(1.1); }
.nav-item .nav-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--dealt-danger);
  box-shadow: 0 0 6px var(--dealt-danger);
}

/* Page content area */
.page {
  display: none;
  min-height: calc(100dvh - var(--header-height) - var(--nav-height));
  padding: var(--space-4);
  padding-bottom: calc(var(--nav-height) + var(--space-4));
  animation: pageEnter var(--duration-slow) var(--ease-out) both;
}
.page.active { display: block; }

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


/* === 03-components.css === */
/* ═══════════════════════════════════════════
   03-components.css — Buttons, Forms, Cards
   Premium glass-morphism, depth, polish
   ═══════════════════════════════════════════ */

/* ── Buttons — glossy with depth ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  border-radius: var(--radius-xl);
  transition: all var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.btn-primary {
  background: linear-gradient(145deg, var(--dealt-primary), var(--dealt-primary-dim));
  color: white;
  box-shadow: var(--shadow-md), 0 4px 16px var(--dealt-primary-glow);
}
.btn-primary:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--dealt-surface);
  color: var(--dealt-text);
  border: 1px solid var(--dealt-border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--dealt-primary);
  box-shadow: var(--shadow-md), 0 0 12px var(--dealt-primary-glow);
}

.btn-danger { background: linear-gradient(145deg, var(--dealt-danger), #dc2626); color: white; box-shadow: var(--shadow-md); }
.btn-success { background: linear-gradient(145deg, var(--dealt-success), #059669); color: white; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--dealt-muted); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { color: var(--dealt-text); background: rgba(255,255,255,0.04); }

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); border-radius: var(--radius-2xl); }
.btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-full); }
.btn-icon.lg { width: 56px; height: 56px; font-size: var(--text-xl); }

/* ── Inputs — subtle glow on focus ── */
.input-group { display: flex; flex-direction: column; gap: var(--space-1); }
.input-label { font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--dealt-muted); }

.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(20,20,30,0.8);
  border: 1px solid var(--dealt-border);
  border-radius: var(--radius-xl);
  color: var(--dealt-text);
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--ease-out);
}
.input:focus {
  border-color: var(--dealt-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12), 0 0 16px rgba(124,58,237,0.08);
}
.input.error { border-color: var(--dealt-danger); }

textarea.input { resize: vertical; min-height: 80px; }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236e6e8a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Cards — layered glass depth ── */
.card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast);
}
.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.card-title { font-size: var(--text-lg); font-weight: var(--font-bold); }

/* ── Avatar / Photo ── */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--dealt-surface);
}
.avatar.lg { width: 80px; height: 80px; }
.avatar.xl { width: 120px; height: 120px; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.badge-verified { background: var(--dealt-success); color: white; }
.badge-rarity-common { background: var(--rarity-common); color: var(--dealt-black); }
.badge-rarity-uncommon { background: var(--rarity-uncommon); color: white; }
.badge-rarity-rare { background: var(--rarity-rare); color: white; }
.badge-rarity-epic { background: var(--rarity-epic); color: white; }
.badge-rarity-legendary { background: var(--rarity-legendary); color: var(--dealt-black); }

/* ── Chip / Tag ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--dealt-surface);
  border: 1px solid var(--dealt-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  cursor: pointer;
}
.chip.selected { background: var(--dealt-primary); border-color: var(--dealt-primary); color: white; }

/* ── Toast ── */
.toast-container { position: fixed; top: var(--space-4); left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-2); width: calc(100% - var(--space-8)); max-width: var(--app-max-width); pointer-events: none; }
.toast {
  padding: var(--space-3) var(--space-4);
  background: var(--dealt-card);
  border: 1px solid var(--dealt-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  animation: slideDown var(--duration-normal) var(--ease-spring);
  pointer-events: auto;
}
.toast.error { border-color: var(--dealt-danger); }
.toast.success { border-color: var(--dealt-success); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn var(--duration-fast) var(--ease-out);
}
.modal {
  width: 100%;
  max-width: var(--app-max-width);
  max-height: 85dvh;
  background: var(--dealt-dark);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--space-6);
  overflow-y: auto;
  animation: slideUp var(--duration-normal) var(--ease-spring);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.modal-title { font-size: var(--text-xl); font-weight: var(--font-bold); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── Stat ── */
.stat { text-align: center; }
.stat-value { font-size: var(--text-2xl); font-weight: var(--font-bold); font-family: var(--font-display); }
.stat-label { font-size: var(--text-xs); color: var(--dealt-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: var(--space-16) var(--space-4); color: var(--dealt-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: var(--space-4); }
.empty-state-title { font-size: var(--text-lg); font-weight: var(--font-semibold); color: var(--dealt-text); margin-bottom: var(--space-2); }

/* ── Skeleton loader ── */
.skeleton { background: linear-gradient(90deg, var(--dealt-surface) 25%, var(--dealt-card) 50%, var(--dealt-surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


/* === 04-auth.css === */
/* ═══════════════════════════════════════════
   04-auth.css — Login / Register Screens
   ═══════════════════════════════════════════ */

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  letter-spacing: var(--tracking-tight);
  background: linear-gradient(135deg, var(--dealt-primary), var(--dealt-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.auth-tagline {
  color: var(--dealt-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-switch {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--dealt-muted);
}
.auth-switch a, .auth-switch button {
  color: var(--dealt-primary);
  font-weight: var(--font-medium);
  text-decoration: underline;
  cursor: pointer;
}

.auth-error {
  padding: var(--space-3);
  background: rgba(239,68,68,0.1);
  border: 1px solid var(--dealt-danger);
  border-radius: var(--radius-lg);
  color: var(--dealt-danger);
  font-size: var(--text-sm);
}

/* ── Onboarding ── */
.onboarding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-height));
  padding: var(--space-6);
  text-align: center;
}
.onboarding-icon { font-size: 56px; margin-bottom: var(--space-4); }
.onboarding h2 { font-family: var(--font-display); font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.intention-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.intention-opt {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 2px solid var(--dealt-border);
  background: var(--dealt-surface);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.intention-opt:hover { border-color: var(--dealt-primary); }
.intention-opt.selected {
  border-color: var(--dealt-primary);
  background: rgba(139,92,246,0.1);
  font-weight: var(--font-medium);
}


/* === 05-packs.css === */
/* ═══════════════════════════════════════════
   05-packs.css — Pack Opening System
   Premium TCG Pocket-inspired experience
   Immersive, addictive, weighty
   ═══════════════════════════════════════════ */

/* ── Pack Stage — The Arena ── */
.pack-stage {
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-height) - var(--nav-height) - var(--space-8));
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

/* Deep ambient glow — TCG Pocket style radiating energy */
.pack-stage::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 180%;
  height: 180%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(124,58,237,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(6,182,212,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 30%, rgba(236,72,153,0.04) 0%, transparent 40%);
  pointer-events: none;
  animation: ambientPulse 8s ease-in-out infinite;
}
@keyframes ambientPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1) rotate(0deg); }
  33% { opacity: 0.8; transform: translateX(-50%) scale(1.02) rotate(0.5deg); }
  66% { opacity: 0.6; transform: translateX(-50%) scale(0.98) rotate(-0.3deg); }
}

/* Canvas for particle effects */
.pack-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Sealed Pack — Thick, weighty, premium ── */
.pack-wrapper {
  position: relative;
  width: 240px;
  height: 360px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-spring), filter 0.5s ease;
  z-index: var(--z-card);
  filter: drop-shadow(0 24px 48px rgba(124,58,237,0.35));
}
.pack-wrapper:hover {
  transform: translateY(-12px) rotateX(2deg) scale(1.04);
  filter: drop-shadow(0 36px 64px rgba(124,58,237,0.45));
}
.pack-wrapper:active {
  transform: scale(0.93) rotateX(-2deg);
  transition-duration: 0.1s;
}

.pack-face {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background:
    linear-gradient(155deg, #3b1d8e 0%, #1e0f5c 35%, #0d0628 70%, #1a0e4a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  border: 2.5px solid;
  border-image: linear-gradient(to bottom, rgba(167,139,250,0.6), rgba(124,58,237,0.2)) 1;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  /* Fix border-image killing border-radius */
  border: 2.5px solid rgba(167,139,250,0.4);
}

/* Multi-layer holographic sweep */
.pack-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      rgba(167,139,250,0.15) 28%,
      rgba(6,182,212,0.1) 38%,
      rgba(236,72,153,0.08) 48%,
      transparent 55%,
      rgba(251,191,36,0.05) 68%,
      rgba(167,139,250,0.08) 78%,
      transparent 85%
    );
  background-size: 300% 100%;
  animation: packShimmer 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes packShimmer {
  0% { background-position: 300% 0; }
  100% { background-position: -300% 0; }
}

/* Inner pattern texture */
.pack-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 4px,
      rgba(255,255,255,0.008) 4px,
      rgba(255,255,255,0.008) 5px
    );
  pointer-events: none;
}

.pack-icon {
  font-size: 80px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.7));
  animation: packFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes packFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.pack-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-black);
  color: white;
  text-shadow: 0 2px 16px rgba(124,58,237,0.6), 0 0 40px rgba(124,58,237,0.2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.pack-subtitle {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: subtitlePulse 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes subtitlePulse {
  0%, 100% { opacity: 0.4; letter-spacing: 0.2em; }
  50% { opacity: 1; letter-spacing: 0.25em; }
}

.pack-count {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
  background: rgba(255,255,255,0.04);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}

/* ── Pack Open Animation — explosive ── */
.pack-wrapper.opening {
  animation: packTear 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes packTear {
  0% { transform: scale(1) rotateZ(0); filter: brightness(1) saturate(1); }
  15% { transform: scale(1.06) rotateZ(0.5deg); filter: brightness(1.3) saturate(1.2); }
  35% { transform: scale(1.12) rotateZ(-0.5deg); filter: brightness(1.8) saturate(1.5); }
  60% { transform: scale(1.2) rotateZ(0); filter: brightness(3) saturate(2); opacity: 0.8; }
  80% { transform: scale(1.35); filter: brightness(5) saturate(2.5); opacity: 0.4; }
  100% { transform: scale(0.3) rotateZ(-8deg); filter: brightness(8) saturate(3); opacity: 0; }
}

.pack-flash {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.95) 0%, rgba(167,139,250,0.5) 30%, rgba(124,58,237,0.2) 60%, transparent 100%);
  z-index: var(--z-pack);
  animation: flashBurst 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes flashBurst {
  0% { opacity: 1; transform: scale(0.6); filter: blur(0); }
  30% { opacity: 1; transform: scale(1.1); filter: blur(0); }
  60% { opacity: 0.6; transform: scale(1.4); filter: blur(2px); }
  100% { opacity: 0; transform: scale(2.5); filter: blur(8px); }
}

/* ── Card Reveal Stage (Hinge-style with TCG Pocket polish) ── */
.hinge-card-stage {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-height) - var(--nav-height));
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

/* ── Rarity Frame Glow — the whole card gets framed ── */
.hinge-card-stage[data-rarity="uncommon"] {
  box-shadow: inset 0 0 0 1px rgba(52,211,153,0.2), 0 0 20px rgba(52,211,153,0.05);
}
.hinge-card-stage[data-rarity="rare"] {
  box-shadow: inset 0 0 0 1.5px rgba(56,189,248,0.3), 0 0 30px rgba(56,189,248,0.08);
}
.hinge-card-stage[data-rarity="epic"] {
  box-shadow: inset 0 0 0 2px rgba(167,139,250,0.4), 0 0 40px rgba(167,139,250,0.12), 0 0 80px rgba(124,58,237,0.06);
  animation: epicFramePulse 4s ease-in-out infinite;
}
.hinge-card-stage[data-rarity="legendary"] {
  box-shadow: inset 0 0 0 2px rgba(251,191,36,0.5), 0 0 50px rgba(251,191,36,0.15), 0 0 100px rgba(251,191,36,0.08);
  animation: legendaryFramePulse 3s ease-in-out infinite;
}

@keyframes epicFramePulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(167,139,250,0.3), 0 0 30px rgba(167,139,250,0.08); }
  50% { box-shadow: inset 0 0 0 2px rgba(167,139,250,0.6), 0 0 50px rgba(167,139,250,0.15), 0 0 80px rgba(124,58,237,0.08); }
}
@keyframes legendaryFramePulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(251,191,36,0.4), 0 0 40px rgba(251,191,36,0.1); }
  50% { box-shadow: inset 0 0 0 2.5px rgba(251,191,36,0.7), 0 0 60px rgba(251,191,36,0.2), 0 0 120px rgba(251,191,36,0.08); }
}

/* ── Holographic shimmer overlay for rare+ ── */
.hinge-scroll[data-rarity="rare"]::before,
.hinge-scroll[data-rarity="epic"]::before,
.hinge-scroll[data-rarity="legendary"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  animation: holoShimmer 6s ease-in-out infinite;
  border-radius: 24px;
}
.hinge-scroll[data-rarity="rare"]::before {
  background: linear-gradient(135deg, transparent 30%, rgba(56,189,248,0.06) 50%, transparent 70%);
  animation-duration: 8s;
}
.hinge-scroll[data-rarity="epic"]::before {
  background: linear-gradient(135deg, transparent 20%, rgba(167,139,250,0.08) 40%, rgba(236,72,153,0.05) 60%, transparent 80%);
  animation-duration: 6s;
}
.hinge-scroll[data-rarity="legendary"]::before {
  background: linear-gradient(135deg, transparent 10%, rgba(251,191,36,0.1) 30%, rgba(236,72,153,0.06) 50%, rgba(56,189,248,0.06) 70%, transparent 90%);
  animation-duration: 4s;
}
@keyframes holoShimmer {
  0%, 100% { opacity: 0; transform: translateX(-100%) rotate(15deg); }
  50% { opacity: 1; transform: translateX(100%) rotate(15deg); }
}

.hinge-card-stage:focus {
  outline: none;
}

/* Card counter — rarity-aware */
.hinge-card-counter {
  text-align: center;
  padding: 10px 0 6px;
  font-size: 11px;
  color: var(--dealt-muted);
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.rarity-label {
  font-size: 10px;
  font-weight: var(--font-black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 10px;
}
.rarity-label[data-rarity="common"] {
  color: var(--rarity-common);
  background: rgba(148,163,184,0.1);
}
.rarity-label[data-rarity="uncommon"] {
  color: var(--rarity-uncommon);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.2);
}
.rarity-label[data-rarity="rare"] {
  color: var(--rarity-rare);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  text-shadow: 0 0 8px rgba(56,189,248,0.5);
}
.rarity-label[data-rarity="epic"] {
  color: var(--rarity-epic);
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.3);
  text-shadow: 0 0 8px rgba(167,139,250,0.6);
  animation: epicLabelGlow 2s ease-in-out infinite;
}
.rarity-label[data-rarity="legendary"] {
  color: var(--rarity-legendary);
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(236,72,153,0.1));
  border: 1px solid rgba(251,191,36,0.4);
  text-shadow: 0 0 10px rgba(251,191,36,0.7);
  animation: legendaryLabelGlow 2s ease-in-out infinite;
}
@keyframes epicLabelGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(167,139,250,0.4); }
  50% { text-shadow: 0 0 12px rgba(167,139,250,0.8), 0 0 20px rgba(124,58,237,0.3); }
}
@keyframes legendaryLabelGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(251,191,36,0.5); }
  50% { text-shadow: 0 0 14px rgba(251,191,36,0.9), 0 0 24px rgba(236,72,153,0.4); }
}

/* Scrollable profile area */
.hinge-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  animation: hingeSlideIn 0.5s var(--ease-out) both;
}
/* Thin scrollbar for discoverability */
.hinge-scroll::-webkit-scrollbar { width: 4px; }
.hinge-scroll::-webkit-scrollbar-track { background: transparent; }
.hinge-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.hinge-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }

@keyframes hingeSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Hinge Sections — glass cards with depth ── */
.hinge-section {
  border-radius: 16px;
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* Hero photo section — immersive, full bleed */
.hinge-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.5;
  min-height: 280px;
  max-height: 55vh;
  background: var(--dealt-dark);
  border: none;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.hinge-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.hinge-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(180deg, var(--dealt-surface) 0%, var(--dealt-dark) 100%);
  border-radius: 20px;
}

/* Name/details overlay — stronger gradient for legibility */
.hinge-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 72px 20px 20px;
  background: linear-gradient(to top, rgba(5,5,8,0.92) 0%, rgba(5,5,8,0.6) 40%, rgba(5,5,8,0.15) 70%, transparent 100%);
  border-radius: 0 0 20px 20px;
}
.hinge-hero-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--font-black);
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hinge-hero-details {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.hinge-verified {
  font-size: 11px;
  background: rgba(16,185,129,0.9);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: var(--font-bold);
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.hinge-intention {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Compatibility ring (top-right of hero) — glass bubble */
.hinge-compat {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,8,0.5);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.hinge-compat-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.hinge-compat-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 3;
}
.hinge-compat-fill {
  fill: none;
  stroke: var(--dealt-primary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s var(--ease-out);
  filter: drop-shadow(0 0 3px var(--dealt-primary-glow));
}
/* Compat ring colors by score level */
.compat-high .hinge-compat-fill {
  stroke: #10b981;
  filter: drop-shadow(0 0 6px rgba(16,185,129,0.6));
}
.compat-high {
  border-color: rgba(16,185,129,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 16px rgba(16,185,129,0.2);
  animation: compatHighPulse 3s ease-in-out infinite;
}
.compat-mid .hinge-compat-fill {
  stroke: var(--dealt-primary);
}
.compat-low .hinge-compat-fill {
  stroke: var(--dealt-muted);
  filter: none;
}
@keyframes compatHighPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 12px rgba(16,185,129,0.15); }
  50% { box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 20px rgba(16,185,129,0.3); }
}
.hinge-compat-text {
  font-size: 11px;
  font-weight: var(--font-black);
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  z-index: 1;
}

/* Rarity pip — glowing orb indicator */
.hinge-rarity-pip {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}
.hinge-rarity-pip[data-rarity="common"]   { color: var(--rarity-common); background: var(--rarity-common); box-shadow: none; opacity: 0.4; }
.hinge-rarity-pip[data-rarity="uncommon"] { color: var(--rarity-uncommon); background: var(--rarity-uncommon); }
.hinge-rarity-pip[data-rarity="rare"]     { color: var(--rarity-rare); background: var(--rarity-rare); }
.hinge-rarity-pip[data-rarity="epic"]     { color: var(--rarity-epic); background: var(--rarity-epic); animation: pipPulse 2s ease-in-out infinite; }
.hinge-rarity-pip[data-rarity="legendary"]{ color: var(--rarity-legendary); background: var(--rarity-legendary); animation: pipPulse 1.5s ease-in-out infinite, pipSpin 6s linear infinite; }
@keyframes pipPulse {
  0%, 100% { box-shadow: 0 0 6px currentColor, 0 0 14px currentColor; transform: scale(1); }
  50% { box-shadow: 0 0 14px currentColor, 0 0 28px currentColor; transform: scale(1.2); }
}
@keyframes pipSpin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

/* Rarity border glow on the hero for epic+ */
.hinge-hero[data-rarity="epic"] {
  border: 2px solid rgba(167,139,250,0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 40px rgba(124,58,237,0.08), 0 0 24px rgba(167,139,250,0.15);
}
.hinge-hero[data-rarity="legendary"] {
  border: 2px solid rgba(251,191,36,0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 50px rgba(251,191,36,0.08), 0 0 32px rgba(251,191,36,0.2);
  animation: legendaryHeroGlow 3s ease-in-out infinite;
}
@keyframes legendaryHeroGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 24px rgba(251,191,36,0.15); }
  50% { box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 48px rgba(251,191,36,0.25), 0 0 80px rgba(251,191,36,0.1); }
}

/* ── Bio section ── */
.hinge-basics-section {
  padding: 16px 22px 14px;
  border: none;
  background: none;
  box-shadow: none;
}
.hinge-tagline {
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  line-height: 1.4;
}
.hinge-basics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hinge-basics-row span {
  font-size: 12px;
  color: var(--dealt-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.hinge-bio-section {
  padding: 20px 22px;
  border-left: 3px solid var(--dealt-primary-dim);
  margin-left: 2px;
  margin-right: 2px;
  border-radius: 4px 16px 16px 4px;
  overflow: visible;
}
.hinge-bio {
  font-size: 14px;
  color: var(--dealt-text);
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* ── Prompt sections — signature TCG Pocket-inspired cards ── */
.hinge-prompt {
  padding: 20px 22px;
  background: var(--gradient-card);
  position: relative;
  border-radius: 16px;
}
.hinge-prompt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(to bottom, var(--dealt-primary), var(--dealt-secondary));
}
/* Rarity-colored prompt accent */
[data-rarity="rare"] .hinge-prompt::before {
  background: linear-gradient(to bottom, #38bdf8, #06b6d4);
}
[data-rarity="epic"] .hinge-prompt::before {
  background: linear-gradient(to bottom, #a78bfa, #ec4899);
}
[data-rarity="legendary"] .hinge-prompt::before {
  background: linear-gradient(to bottom, #fbbf24, #f97316, #ec4899);
}
[data-rarity="epic"] .hinge-prompt {
  border: 1px solid rgba(167,139,250,0.12);
}
[data-rarity="legendary"] .hinge-prompt {
  border: 1px solid rgba(251,191,36,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 0 20px rgba(251,191,36,0.02);
}
.hinge-prompt-q {
  font-size: 12px;
  font-weight: var(--font-bold);
  color: var(--dealt-primary);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  opacity: 0.9;
}
.hinge-prompt-a {
  font-size: 16px;
  font-weight: var(--font-medium);
  color: var(--dealt-white);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Extra photo section */
.hinge-photo-section {
  border: none;
  background: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.hinge-extra-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ── Anthem section ── */
.hinge-anthem-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
}
.hinge-anthem-icon {
  font-size: 18px;
}
.hinge-anthem-text {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

/* ── Traits section ── */
.hinge-traits-section {
  padding: 16px 20px;
}
.hinge-traits-section .trait-group {
  margin-bottom: 10px;
}
.hinge-traits-section .trait-group:last-child {
  margin-bottom: 0;
}
.hinge-traits-section .trait-group-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.hinge-traits-section .trait-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hinge-traits-section .trait-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

/* ── Stats section — glass bar ── */
.hinge-stats {
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
}
.hinge-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hinge-stats-row + .hinge-stats-row {
  margin-top: 8px;
}
.hinge-stat {
  font-size: 12px;
  color: var(--dealt-muted);
  letter-spacing: 0.02em;
}
.hinge-stat-warn { color: #fbbf24; }
.hinge-stat-good { color: #34d399; }

/* ── Action buttons — floating glass bar ── */
.hinge-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 14px 0 max(14px, env(safe-area-inset-bottom));
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(12,12,20,0.85);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
}
.hinge-action-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 2px solid;
  position: relative;
}
.hinge-action-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hinge-action-btn:active { transform: scale(0.8); }
.hinge-action-btn:hover { transform: scale(1.15) translateY(-3px); }
.hinge-action-btn:hover::after { opacity: 1; }

.hinge-pass {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
}
.hinge-pass::after { box-shadow: 0 0 20px rgba(239,68,68,0.3); }
.hinge-pass:hover { background: #ef4444; color: white; border-color: #ef4444; }

.hinge-like {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.4);
  color: #34d399;
}
.hinge-like::after { box-shadow: 0 0 20px rgba(16,185,129,0.3); }
.hinge-like:hover { background: #10b981; color: white; border-color: #10b981; }

/* Like button gets extra glow for epic/legendary */
.hinge-actions[data-rarity="epic"] .hinge-like {
  border-color: rgba(167,139,250,0.5);
  color: #a78bfa;
  animation: epicLikeGlow 3s ease-in-out infinite;
}
.hinge-actions[data-rarity="legendary"] .hinge-like {
  border-color: rgba(251,191,36,0.5);
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
  animation: legendaryLikeGlow 2s ease-in-out infinite;
}
@keyframes epicLikeGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(167,139,250,0.15); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 24px rgba(167,139,250,0.3), 0 0 48px rgba(124,58,237,0.1); }
}
@keyframes legendaryLikeGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 16px rgba(251,191,36,0.2); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 32px rgba(251,191,36,0.35), 0 0 64px rgba(251,191,36,0.15); }
}

/* ── Like Message Drawer — glass slide-up ── */
.like-message-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom));
  background: rgba(12,12,20,0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 -12px 48px rgba(0,0,0,0.7);
  z-index: var(--z-modal, 100);
  animation: drawerSlideUp 0.35s var(--ease-out);
}
@keyframes drawerSlideUp {
  from { transform: translateY(100%); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
.like-message-drawer textarea {
  width: 100%;
  min-height: 64px;
  padding: var(--space-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  color: var(--dealt-text);
  resize: none;
  font-size: var(--text-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.like-message-drawer textarea:focus {
  outline: none;
  border-color: var(--dealt-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}

/* ── No Packs / Done States ── */
.no-packs {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}
.no-packs-icon {
  font-size: 72px;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  display: flex;
  justify-content: center;
}
.no-packs-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--dealt-text), var(--dealt-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.no-packs-text {
  color: var(--dealt-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Rarity Badge Styles — polished pills ── */
.badge-rarity-common   { background: rgba(156,163,175,0.1); color: #9ca3af; border: 1px solid rgba(156,163,175,0.15); }
.badge-rarity-uncommon { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-rarity-rare     { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); box-shadow: 0 0 8px rgba(59,130,246,0.1); }
.badge-rarity-epic     { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid rgba(124,58,237,0.25); box-shadow: 0 0 12px rgba(124,58,237,0.15); }
.badge-rarity-legendary{ background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); box-shadow: 0 0 16px rgba(251,191,36,0.15); animation: badgeLegendaryShimmer 3s ease-in-out infinite; }
@keyframes badgeLegendaryShimmer {
  0%, 100% { box-shadow: 0 0 12px rgba(251,191,36,0.1); }
  50% { box-shadow: 0 0 20px rgba(251,191,36,0.25); }
}


/* === 06-matches.css === */
/* ═══════════════════════════════════════════
   06-matches.css — Matches & Chat
   ═══════════════════════════════════════════ */

.matches-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.match-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--dealt-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--dealt-border);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.match-item:hover { background: var(--dealt-surface); }
.match-item.new { border-color: var(--dealt-primary); }

.match-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--dealt-surface);
  flex-shrink: 0;
}

.match-info { flex: 1; min-width: 0; }
.match-name { font-weight: var(--font-semibold); font-size: var(--text-base); }
.match-preview { font-size: var(--text-sm); color: var(--dealt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-time { font-size: var(--text-xs); color: var(--dealt-muted); flex-shrink: 0; }
.match-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

/* ── Match Rarity Tiers ── */
.match-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.match-rarity-ring {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  pointer-events: none;
}

/* Uncommon — subtle green glow */
.match-item[data-rarity="uncommon"] {
  border-color: rgba(34, 197, 94, 0.3);
}
.match-item[data-rarity="uncommon"] .match-rarity-ring {
  border-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

/* Rare — blue shimmer */
.match-item[data-rarity="rare"] {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, var(--dealt-card) 0%, rgba(59, 130, 246, 0.05) 100%);
}
.match-item[data-rarity="rare"] .match-rarity-ring {
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
.match-item[data-rarity="rare"] .match-name {
  color: #60a5fa;
}

/* Epic — purple glow */
.match-item[data-rarity="epic"] {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, var(--dealt-card) 0%, rgba(139, 92, 246, 0.08) 100%);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.15);
}
.match-item[data-rarity="epic"] .match-rarity-ring {
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  animation: match-ring-pulse 2s infinite;
}
.match-item[data-rarity="epic"] .match-name {
  color: #a78bfa;
}

/* Legendary — gold + animated glow */
.match-item[data-rarity="legendary"] {
  border-color: rgba(234, 179, 8, 0.6);
  background: linear-gradient(135deg, var(--dealt-card) 0%, rgba(234, 179, 8, 0.08) 50%, rgba(234, 100, 8, 0.04) 100%);
  box-shadow: 0 2px 16px rgba(234, 179, 8, 0.2);
}
.match-item[data-rarity="legendary"] .match-rarity-ring {
  border-color: #eab308;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.6);
  animation: match-ring-pulse-gold 2s infinite;
}
.match-item[data-rarity="legendary"] .match-name {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
}

@keyframes match-ring-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
  50% { box-shadow: 0 0 16px rgba(139, 92, 246, 0.7); }
}
@keyframes match-ring-pulse-gold {
  0%, 100% { box-shadow: 0 0 10px rgba(234, 179, 8, 0.4); }
  50% { box-shadow: 0 0 20px rgba(234, 179, 8, 0.8); }
}

/* Engagement label */
.match-engagement-label {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.match-item[data-rarity="uncommon"] .match-engagement-label { color: #22c55e; }
.match-item[data-rarity="rare"] .match-engagement-label { color: #60a5fa; }
.match-item[data-rarity="epic"] .match-engagement-label { color: #a78bfa; }
.match-item[data-rarity="legendary"] .match-engagement-label { color: #fbbf24; }

/* New badge */
.match-new-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--dealt-primary);
  color: white;
  letter-spacing: 0.05em;
}

/* ── Chat View ── */
.chat-view {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-height) - var(--nav-height));
  margin: calc(-1 * var(--space-4));
  margin-bottom: calc(-1 * var(--nav-height) - var(--space-4));
  padding: 0;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--dealt-border);
  background: var(--dealt-dark);
}
.chat-back { font-size: var(--text-xl); color: var(--dealt-muted); }
.chat-name { font-weight: var(--font-semibold); }
.chat-status { font-size: var(--text-xs); color: var(--dealt-muted); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.chat-bubble {
  max-width: 80%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  animation: bubbleIn var(--duration-normal) var(--ease-spring);
}
.chat-bubble.sent {
  align-self: flex-end;
  background: var(--dealt-primary);
  color: white;
  border-bottom-right-radius: var(--radius-sm);
}
.chat-bubble.received {
  align-self: flex-start;
  background: var(--dealt-surface);
  border-bottom-left-radius: var(--radius-sm);
}
.chat-bubble-time {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  text-align: right;
}
.chat-bubble.received .chat-bubble-time { color: var(--dealt-muted); text-align: left; }

@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.chat-input-bar {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + var(--safe-area-bottom));
  border-top: 1px solid var(--dealt-border);
  background: var(--dealt-dark);
}
.chat-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--dealt-surface);
  border: 1px solid var(--dealt-border);
  border-radius: var(--radius-full);
  color: var(--dealt-text);
}
.chat-send {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--dealt-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-send:disabled { opacity: 0.4; }

/* ── Match Menu Overlay ── */
.match-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: var(--z-modal, 1000);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
}
.match-menu {
  width: 100%;
  max-width: 360px;
  background: var(--dealt-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-2);
}
.match-menu-item {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: background var(--duration-fast);
}
.match-menu-item:hover { background: var(--dealt-surface); }
.match-menu-danger { color: var(--dealt-danger); }

/* ── Date Plan UI ── */
.date-plan-form {
  padding: var(--space-4);
  background: var(--dealt-surface);
  border-top: 1px solid var(--dealt-border);
  border-bottom: 1px solid var(--dealt-border);
}
.date-plan-header {
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}
.date-plans-container {
  padding: var(--space-2) var(--space-4);
  background: var(--dealt-surface);
  border-bottom: 1px solid var(--dealt-border);
  max-height: 140px;
  overflow-y: auto;
}
.date-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}
.date-plan-card + .date-plan-card { border-top: 1px solid var(--dealt-border); }
.date-plan-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.date-plan-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.date-plan-actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

/* ── Star Rating ── */
.star-rating {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: var(--space-2) 0;
}
.star-btn {
  font-size: 28px;
  background: none;
  border: none;
  color: var(--dealt-muted);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  padding: 2px;
}
.star-btn.active,
.star-btn:hover { color: #fbbf24; transform: scale(1.15); }

/* ── Profile Overlay ── */
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.profile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.profile-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.profile-overlay-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85dvh;
  background: var(--dealt-dark);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.profile-overlay.open .profile-overlay-content {
  transform: translateY(0);
}
.profile-overlay-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.profile-overlay-scroll {
  overflow-y: auto;
  max-height: 85dvh;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.profile-overlay-photos {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-overlay-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.profile-overlay-photo:first-child {
  border-radius: 24px 24px 0 0;
}
.profile-overlay-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-overlay-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--font-black);
  color: var(--dealt-white);
}
.profile-overlay-bio {
  padding: 14px 20px;
  font-size: 15px;
  color: var(--dealt-text);
  line-height: 1.6;
  border-left: 3px solid var(--dealt-primary-dim);
  margin: 16px 20px 0;
  border-radius: 0 8px 8px 0;
  background: var(--gradient-card);
}
.profile-overlay-prompt {
  margin: 12px 20px 0;
  padding: 16px 18px;
  background: var(--gradient-card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.profile-overlay-prompt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(to bottom, var(--dealt-primary), var(--dealt-secondary));
}
.profile-overlay-prompt-q {
  font-size: 11px;
  font-weight: var(--font-black);
  color: var(--dealt-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.profile-overlay-prompt-a {
  font-size: 16px;
  color: var(--dealt-white);
  line-height: 1.5;
}
.profile-overlay-stats {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--dealt-muted);
  border-top: 1px solid rgba(255,255,255,0.04);
}


/* === 07-profile.css === */
/* ═══════════════════════════════════════════
   07-profile.css — Profile & Stats Views
   ═══════════════════════════════════════════ */

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.profile-photo-main {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--dealt-primary);
  box-shadow: var(--shadow-glow);
}

.profile-name-display {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}

.profile-section { margin-bottom: var(--space-6); }
.profile-section-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--dealt-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.profile-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.profile-photos-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Photo cell with actions */
.photo-cell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.photo-cell-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.photo-cell:hover .photo-cell-actions,
.photo-cell:active .photo-cell-actions {
  opacity: 1;
}
/* Always show on touch devices */
@media (hover: none) {
  .photo-cell-actions { opacity: 1; }
}
.photo-move-btn,
.photo-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: white;
  transition: all var(--duration-fast);
}
.photo-move-btn:hover { background: rgba(255,255,255,0.3); }
.photo-delete-btn:hover { background: rgba(239,68,68,0.7); }
.photo-move-btn svg, .photo-delete-btn svg { width: 14px; height: 14px; }
.photo-primary-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--dealt-primary);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.profile-photo-add {
  width: 100%;
  aspect-ratio: 1;
  border: 2px dashed var(--dealt-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dealt-muted);
  font-size: var(--text-2xl);
  cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.profile-photo-add svg { width: 24px; height: 24px; }
.profile-photo-add:hover { border-color: var(--dealt-primary); color: var(--dealt-primary); }

/* Prompts */
.prompt-card {
  background: var(--dealt-surface);
  border: 1px solid var(--dealt-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.prompt-question { font-size: var(--text-xs); color: var(--dealt-primary); font-weight: var(--font-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-2); }
.prompt-answer { font-size: var(--text-base); line-height: var(--leading-relaxed); }

/* Stats Dashboard */
.stats-section { margin-bottom: var(--space-6); }
.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.stats-tab-bar {
  display: flex;
  gap: var(--space-1);
  background: var(--dealt-surface);
  padding: var(--space-1);
  border-radius: var(--radius-full);
}
.stats-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--dealt-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.stats-tab.active { background: var(--dealt-primary); color: white; }

/* Intention badge */
.intention-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}
.intention-relationship { background: rgba(236,72,153,0.15); color: var(--dealt-secondary); border: 1px solid rgba(236,72,153,0.3); }
.intention-casual { background: rgba(245,158,11,0.15); color: var(--dealt-accent); border: 1px solid rgba(245,158,11,0.3); }
.intention-friends { background: rgba(34,197,94,0.15); color: var(--dealt-success); border: 1px solid rgba(34,197,94,0.3); }
.intention-unsure { background: rgba(107,107,128,0.15); color: var(--dealt-muted); border: 1px solid rgba(107,107,128,0.3); }

/* Deal Breakers Grid */
.deal-breaker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.deal-breaker-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dealt-border);
  background: var(--dealt-surface);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.deal-breaker-opt input { display: none; }
.deal-breaker-opt:hover { border-color: var(--dealt-primary); }
.deal-breaker-opt.selected {
  background: rgba(139,92,246,0.1);
  border-color: var(--dealt-primary);
  color: var(--dealt-text);
}

/* ── Traits Grid ── */
.traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trait-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trait-label {
  font-size: 11px;
  font-weight: var(--font-bold);
  color: var(--dealt-muted);
  letter-spacing: 0.02em;
}
.input-sm {
  font-size: 13px;
  padding: 6px 10px;
}

/* ── Trait Pills (preview) ── */
.profile-overlay-traits {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trait-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trait-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dealt-muted);
  padding-left: 2px;
}

.trait-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trait-pill {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--dealt-text);
  white-space: nowrap;
  line-height: 1;
}

/* ── Deal Breaker Pills (preview) ── */
.profile-overlay-dealbreakers {
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 8px;
}
.db-label {
  font-size: 11px;
  color: var(--dealt-muted);
  font-weight: var(--font-bold);
  margin-right: 4px;
}
.db-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
}

/* ── Preview Banner ── */
.preview-banner {
  position: sticky;
  bottom: 0;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: var(--font-bold);
  background: var(--dealt-primary);
  color: white;
  letter-spacing: 0.04em;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.stat-item {
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(124,58,237,0.06);
}
.stat-value {
  font-size: 20px;
  font-weight: var(--font-bold);
  color: var(--dealt-text);
  line-height: 1.2;
}
.stat-label {
  font-size: 10px;
  color: var(--dealt-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Basics Grid ── */
.basics-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.basics-grid .input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dealt-border);
}

.basics-grid .input-group:last-child {
  border-bottom: none;
}

.basics-grid .input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 110px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dealt-muted);
  margin: 0;
  white-space: nowrap;
}

.basics-grid .input {
  flex: 1;
  min-width: 0;
  background: var(--dealt-surface);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 0.15s;
}

.basics-grid .input:focus {
  border-color: var(--dealt-primary);
  outline: none;
}

.basics-grid select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* ── Bio warning (under 140 chars) ── */
.input-warning {
  border-color: rgba(251,191,36,0.6) !important;
}

/* ── Profile overlay extras ── */
.profile-overlay-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--dealt-muted);
  padding: 0 20px 8px;
}
.profile-overlay-basics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 20px 12px;
}
.profile-overlay-basics span {
  font-size: 12px;
  color: var(--dealt-muted);
  white-space: nowrap;
}

/* ── Verification Steps ── */
.verify-step {
  background: var(--dealt-surface);
  border: 1px solid var(--dealt-border);
  border-radius: 16px;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  transition: all 0.2s ease;
}
.verify-step.complete {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.05);
}
.verify-step-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.verify-step-icon {
  font-size: 20px;
}
.verify-step-title {
  font-weight: 600;
  font-size: var(--text-sm);
  flex: 1;
}
.verify-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: #22c55e;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.verify-step-body {
  margin-top: var(--space-3);
}
.verify-complete {
  text-align: center;
  padding: var(--space-4);
}

/* ── Photo Crop Overlay ── */
.crop-overlay-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.crop-header {
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.crop-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.crop-container {
  position: relative;
  margin: 0 auto;
  width: 320px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  touch-action: none;
}

.crop-container canvas {
  display: block;
  width: 100%;
}

.crop-box {
  position: absolute;
  border: 2px solid white;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  cursor: move;
  touch-action: none;
}

.crop-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.crop-corner-tl { top: -10px; left: -10px; cursor: nw-resize; }
.crop-corner-tr { top: -10px; right: -10px; cursor: ne-resize; }
.crop-corner-bl { bottom: -10px; left: -10px; cursor: sw-resize; }
.crop-corner-br { bottom: -10px; right: -10px; cursor: se-resize; }

.crop-actions {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  justify-content: center;
}

.crop-actions .btn {
  flex: 1;
  max-width: 140px;
}


/* === 08-utilities.css === */
/* ═══════════════════════════════════════════
   08-utilities.css — Utility Classes
   ═══════════════════════════════════════════ */

/* ── Lucide Icon Utilities ── */
.icon-inline {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.text-center { text-align: center; }
.text-muted { color: var(--dealt-muted); }
.text-primary { color: var(--dealt-primary); }
.text-success { color: var(--dealt-success); }
.text-danger { color: var(--dealt-danger); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.font-bold { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.p-4 { padding: var(--space-4); }

.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.divider { height: 1px; background: var(--dealt-border); margin: var(--space-4) 0; }


/* === 09-settings.css === */
/* ═══════════════════════════════════════════
   ⚙️ 09 — Settings Page
   ═══════════════════════════════════════════ */

.settings-page {
  padding-bottom: var(--space-6);
}

.settings-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--dealt-text);
}

/* Section */
.settings-section {
  margin-bottom: var(--space-4);
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  padding-left: var(--space-1);
}

.settings-section-icon {
  font-size: 16px;
}

.settings-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dealt-muted);
}

/* Card */
.settings-card {
  background: var(--dealt-surface);
  border-radius: 16px;
  padding: var(--space-4) var(--space-4);
  border: 1px solid var(--dealt-border);
}

/* Row */
.settings-row {
  margin-bottom: var(--space-4);
}

.settings-row:last-child {
  margin-bottom: 0;
}

.settings-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dealt-text);
  margin-bottom: var(--space-2);
}

.settings-value {
  font-weight: 700;
  color: var(--dealt-primary);
  font-size: 12px;
  background: rgba(139, 92, 246, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Range sliders */
.settings-range-row {
  position: relative;
  display: flex;
  align-items: center;
  height: 32px;
}

.settings-range-row .settings-slider {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  background: transparent;
}

.settings-range-row .settings-slider::-webkit-slider-thumb {
  pointer-events: auto;
}

.settings-range-row .settings-slider::-moz-range-thumb {
  pointer-events: auto;
}

/* Track fill indicator for dual range */
.settings-range-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--dealt-border);
}

.settings-range-fill {
  position: absolute;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--dealt-primary), var(--dealt-accent, #a78bfa));
  pointer-events: none;
  transition: left 0.05s ease, right 0.05s ease;
}

.settings-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--dealt-border);
  outline: none;
  cursor: pointer;
}

.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dealt-primary);
  border: 3px solid var(--dealt-bg);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.settings-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.6);
}

.settings-slider::-webkit-slider-thumb:active {
  transform: scale(1.25);
  box-shadow: 0 2px 16px rgba(139, 92, 246, 0.7);
}

.settings-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dealt-primary);
  border: 3px solid var(--dealt-bg);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
  cursor: pointer;
}

.settings-slider::-moz-range-track {
  background: transparent;
}

/* Single slider with fill (distance) */
.settings-single-range {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.settings-single-range::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--dealt-border);
}

.settings-single-range .settings-slider {
  position: absolute;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 1;
}

.settings-single-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--dealt-primary), var(--dealt-accent, #a78bfa));
  pointer-events: none;
  transition: width 0.05s ease;
}

.settings-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--dealt-muted);
  margin-top: var(--space-1);
}

/* Location */
.settings-location-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.settings-location-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dealt-muted);
  flex-shrink: 0;
}

.settings-location-dot.active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: location-pulse 2s infinite;
}

@keyframes location-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.7); }
}

/* Intention picker grid */
.settings-intention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-2);
}

.settings-intention-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-2);
  border-radius: 12px;
  border: 2px solid var(--dealt-border);
  background: transparent;
  color: var(--dealt-text);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-intention-opt:hover {
  border-color: var(--dealt-primary);
  background: rgba(139, 92, 246, 0.05);
}

.settings-intention-opt.active {
  border-color: var(--dealt-primary);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.settings-intention-opt span {
  font-weight: 500;
}

/* Toggle switch */
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--dealt-text);
}

.settings-toggle-row + .settings-toggle-row {
  border-top: 1px solid var(--dealt-border);
}

.settings-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--dealt-border);
  border-radius: 24px;
  transition: 0.25s ease;
}

.settings-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.25s ease;
}

.settings-toggle input:checked + .settings-toggle-slider {
  background: var(--dealt-primary);
}

.settings-toggle input:checked + .settings-toggle-slider::before {
  transform: translateX(20px);
}

/* Utility overrides for settings */
.settings-card .input {
  margin-top: 0;
}

.settings-card .btn-sm {
  width: 100%;
}


/* === 10-magic.css === */
/* ═══════════════════════════════════════════
   10-magic.css — UI Polish, Micro-interactions & Animations
   The secret sauce that makes Dealt feel alive
   ═══════════════════════════════════════════ */

/* ── Page Transitions ── */
.page {
  animation: none;
}
.page.active {
  animation: pageIn 0.35s var(--ease-out) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Auth Screen — Floating particles background ── */
.auth-page {
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(124,58,237,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 70%, rgba(236,72,153,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 20%, rgba(6,182,212,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 60%, rgba(167,139,250,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 85%, rgba(251,191,36,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 45%, rgba(124,58,237,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 50%, rgba(236,72,153,0.2) 0%, transparent 100%);
  animation: authParticleDrift 20s linear infinite;
  pointer-events: none;
}
@keyframes authParticleDrift {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-5%) translateX(2%); }
  50% { transform: translateY(-3%) translateX(-1%); }
  75% { transform: translateY(-7%) translateX(3%); }
  100% { transform: translateY(0) translateX(0); }
}

/* Auth logo entrance */
.auth-logo {
  animation: logoReveal 1s var(--ease-spring) both;
  animation-delay: 0.2s;
}
@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.7) translateY(20px); filter: blur(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
.auth-tagline {
  animation: fadeInUp 0.6s var(--ease-out) both;
  animation-delay: 0.5s;
}
.auth-form {
  animation: fadeInUp 0.6s var(--ease-out) both;
  animation-delay: 0.7s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Input Focus Glow Ring ── */
.input {
  transition: all var(--duration-fast) var(--ease-out), box-shadow 0.3s ease;
}
.input:focus {
  box-shadow:
    0 0 0 3px rgba(124,58,237,0.15),
    0 0 20px rgba(124,58,237,0.1),
    0 4px 12px rgba(0,0,0,0.2);
}

/* ── Button Press Ripple ── */
.btn {
  transform-origin: center;
}
.btn:active {
  transform: scale(0.94);
  transition-duration: 80ms;
}
.btn-primary:active {
  box-shadow: var(--shadow-sm), 0 0 24px var(--dealt-primary-glow);
}

/* ── Nav Bar Haptic Press Effect ── */
.nav-item {
  transition: all var(--duration-fast) var(--ease-spring);
}
.nav-item:active {
  transform: scale(0.88);
  transition-duration: 80ms;
}
.nav-item:active .nav-icon {
  transform: scale(0.9);
}

/* Nav active indicator glow pulse */
.nav-item.active::after {
  animation: navGlowPulse 2s ease-in-out infinite;
}
@keyframes navGlowPulse {
  0%, 100% { box-shadow: 0 0 8px var(--dealt-primary-glow); opacity: 1; }
  50% { box-shadow: 0 0 16px var(--dealt-primary-glow), 0 0 32px rgba(124,58,237,0.15); opacity: 0.8; }
}

/* ── Card Hover Lift ── */
.card {
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(124,58,237,0.05);
}

/* ── Toast Animations — slide + fade + blur ── */
.toast {
  animation: toastIn 0.4s var(--ease-spring) both;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-24px) scale(0.92); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ── Header Logo Shimmer ── */
.header-logo {
  position: relative;
  overflow: hidden;
}
.header-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: logoShimmer 6s ease-in-out infinite;
}
@keyframes logoShimmer {
  0%, 80%, 100% { left: -100%; }
  40% { left: 200%; }
}

/* ── Skeleton Loading Pulse ── */
.skeleton {
  background: linear-gradient(90deg,
    var(--dealt-surface) 25%,
    rgba(255,255,255,0.04) 50%,
    var(--dealt-surface) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Match Item Stagger Entrance ── */
.match-item {
  animation: matchSlideIn 0.3s var(--ease-out) both;
}
.match-item:nth-child(1) { animation-delay: 0ms; }
.match-item:nth-child(2) { animation-delay: 50ms; }
.match-item:nth-child(3) { animation-delay: 100ms; }
.match-item:nth-child(4) { animation-delay: 150ms; }
.match-item:nth-child(5) { animation-delay: 200ms; }
.match-item:nth-child(6) { animation-delay: 250ms; }
.match-item:nth-child(7) { animation-delay: 300ms; }
.match-item:nth-child(8) { animation-delay: 350ms; }
@keyframes matchSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Stats Counter Animate ── */
.stat-value {
  transition: all 0.4s var(--ease-spring);
}

/* ── Chip/Tag Interactive Polish ── */
.chip {
  transition: all var(--duration-fast) var(--ease-spring);
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.chip:active {
  transform: scale(0.95);
}
.chip.selected {
  box-shadow: 0 2px 12px var(--dealt-primary-glow);
  animation: chipSelect 0.3s var(--ease-spring);
}
@keyframes chipSelect {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ── Onboarding Intention Picker ── */
.intention-opt {
  transition: all var(--duration-fast) var(--ease-spring);
}
.intention-opt:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.intention-opt:active {
  transform: scale(0.95);
}
.intention-opt.selected {
  animation: intentionPop 0.3s var(--ease-spring);
  box-shadow: 0 0 16px rgba(124,58,237,0.3), 0 4px 12px rgba(0,0,0,0.2);
}
@keyframes intentionPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ── Modal Backdrop Enhancement ── */
.modal-overlay {
  animation: modalOverlayIn 0.25s ease-out both;
}
@keyframes modalOverlayIn {
  from { opacity: 0; backdrop-filter: blur(0); }
  to { opacity: 1; backdrop-filter: blur(4px); }
}
.modal {
  animation: modalSlideUp 0.35s var(--ease-spring) both;
}
@keyframes modalSlideUp {
  from { transform: translateY(100%) scale(0.95); opacity: 0.5; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Hinge Card Actions Bounce ── */
.hinge-actions .hinge-action-btn {
  transition: all var(--duration-fast) var(--ease-spring);
}
.hinge-actions .hinge-action-btn:hover {
  transform: translateY(-3px) scale(1.08);
}
.hinge-actions .hinge-action-btn:active {
  transform: scale(0.85);
  transition-duration: 80ms;
}

/* Like button pulse when hovered */
.hinge-actions .hinge-like:hover {
  box-shadow: 0 0 20px rgba(236,72,153,0.4), 0 8px 24px rgba(0,0,0,0.3);
}

/* ── Smooth Avatar Load ── */
.avatar {
  transition: transform 0.2s var(--ease-spring);
}
.avatar:hover {
  transform: scale(1.05);
}

/* ── Chat Message Entrance ── */
.chat-bubble {
  animation: msgAppear 0.25s var(--ease-out) both;
}
@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Verified Badge Sparkle ── */
.hinge-verified {
  position: relative;
  overflow: hidden;
}
.hinge-verified::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: verifiedSparkle 3s ease-in-out infinite;
}
@keyframes verifiedSparkle {
  0%, 70%, 100% { left: -80%; }
  35% { left: 180%; }
}

/* ── Rarity Label Float ── */
.rarity-label[data-rarity="legendary"] {
  animation: legendaryLabelGlow 2s ease-in-out infinite, legendaryFloat 3s ease-in-out infinite;
}
@keyframes legendaryFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

/* ── Pack Wrapper Breathing ── */
.pack-wrapper {
  animation: packBreathe 4s ease-in-out infinite;
}
@keyframes packBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
}
.pack-wrapper:hover {
  animation: none;
}

/* ── Profile Photo Upload Hover ── */
.profile-photo-add:hover {
  border-color: var(--dealt-primary);
  box-shadow: 0 0 16px var(--dealt-primary-glow);
  transform: scale(1.02);
  transition: all 0.2s var(--ease-spring);
}
.profile-photo-thumb {
  transition: transform 0.2s var(--ease-spring);
}
.profile-photo-thumb:hover {
  transform: scale(1.03);
}

/* ── Glassmorphism Enhancement on Scrolling ── */
.header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ── Scrollbar Glow (webkit) ── */
.hinge-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(124,58,237,0.4);
  box-shadow: 0 0 4px var(--dealt-primary-glow);
}

/* ── Empty State Animations ── */
.empty-state {
  animation: emptyFadeIn 0.6s var(--ease-out) both;
}
@keyframes emptyFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Badge Notification Dot Pulse ── */
.nav-badge {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ── Focus Ring Animation ── */
:focus-visible {
  animation: focusRingIn 0.2s var(--ease-spring) both;
}
@keyframes focusRingIn {
  from { outline-offset: 6px; opacity: 0.5; }
  to { outline-offset: 2px; opacity: 1; }
}

/* ── Reduced Motion — respect user preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pack-wrapper { animation: none; }
  .nav-item.active::after { animation: none; }
  .auth-page::before { animation: none; }
}


