/* ============================================
   NIGHTLIFE APP — Design System & Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette */
  --bg-primary: #000000;
  --bg-secondary: #0a0000;
  --bg-card: rgba(20, 0, 0, 0.75);
  --bg-glass: rgba(255, 30, 30, 0.04);
  --bg-glass-hover: rgba(255, 30, 30, 0.09);

  /* Accent gradients */
  --accent-primary: #e8173a;
  --accent-secondary: #c21131;
  --accent-tertiary: #8b0000;
  --gradient-main: linear-gradient(135deg, #ff4d6d 0%, #e8173a 50%, #c21131 100%);
  --gradient-card: linear-gradient(135deg, rgba(232, 23, 58, 0.15) 0%, rgba(194, 17, 49, 0.1) 100%);
  --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #e8173a 100%);
  --gradient-cool: linear-gradient(135deg, #8b0000 0%, #c21131 100%);
  --gradient-neon: linear-gradient(135deg, #ff6b35 0%, #e8173a 50%, #8b0000 100%);

  /* Text */
  --text-primary: #f8f0f0;
  --text-secondary: rgba(248, 240, 240, 0.6);
  --text-muted: rgba(248, 240, 240, 0.35);
  --text-accent: #fca5a5;

  /* Borders */
  --border-subtle: rgba(255, 40, 40, 0.08);
  --border-glass: rgba(255, 40, 40, 0.14);
  --border-accent: rgba(225, 29, 72, 0.3);

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(232, 23, 58, 0.18);
  --shadow-neon: 0 0 20px rgba(232, 23, 58, 0.45), 0 0 60px rgba(232, 23, 58, 0.12);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-medium: 0.35s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(225, 29, 72, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(190, 18, 60, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(127, 29, 29, 0.04) 0%, transparent 50%);
  z-index: -1;
  animation: ambientDrift 20s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(-3%, -3%) rotate(3deg);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* ---------- App Container ---------- */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 90px;
  padding-top: 58px;
}

/* ---------- App Header / Logo Bar ---------- */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(232, 23, 58, 0.2);
  padding: 12px var(--space-md);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 7px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
}

.logo-party {
  color: #ffffff;
}

.logo-flex {
  color: #e8173a;
  text-shadow: 0 0 20px rgba(232, 23, 58, 0.5);
}

.app-header-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(248, 240, 240, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}


.view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
  padding: var(--space-md);
}

.view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Bottom Navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(8, 0, 0, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-sm) var(--space-md);
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), transform var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-fast);
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-item.active {
  color: var(--accent-primary);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(225, 29, 72, 0.5));
  transform: scale(1.1);
}

.nav-item::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
}

.nav-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-item.active:hover {
  color: var(--accent-primary);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: var(--space-sm) 0 var(--space-lg);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 0, 0, 0.85) 80%, var(--bg-primary) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-xs);
}

.hero-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.section-link:hover {
  opacity: 0.7;
}

/* ---------- Filter Chips ---------- */
.chip-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: var(--space-sm);
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.chip:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass);
}

.chip.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

/* ---------- Party Cards ---------- */
.party-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.party-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
}

.party-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.party-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  position: relative;
}

.party-card-body {
  padding: var(--space-md);
}

.party-card-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.party-card-type.club {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(190, 18, 60, 0.2));
  color: #fca5a5;
}

.party-card-type.house {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.2), rgba(159, 18, 57, 0.2));
  color: #fda4af;
}

.party-card-visibility-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  margin-left: var(--space-xs);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(202, 138, 4, 0.15));
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.25);
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.1);
}

.party-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.party-card-venue {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.party-card-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.meta-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.meta-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.meta-badge.live {
  color: #06ffa5;
  border: 1px solid rgba(6, 255, 165, 0.15);
}

.meta-badge.live .pulse-dot {
  width: 6px;
  height: 6px;
  background: #06ffa5;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(6, 255, 165, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(6, 255, 165, 0);
  }
}

/* Capacity bar on party card */
.capacity-bar-wrap {
  margin-top: var(--space-md);
}

.capacity-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.capacity-bar {
  height: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-neon);
  transition: width 1s var(--ease-out);
}

.capacity-fill.high {
  background: var(--gradient-warm);
}

/* ---------- Party Detail View ---------- */
.detail-header {
  position: relative;
  height: 260px;
  margin: calc(-1 * var(--space-md));
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.detail-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 0, 0, 0.3) 0%, rgba(8, 0, 0, 0.95) 85%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg);
}

.detail-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.detail-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.detail-title-block {
  min-width: 0;
}

.detail-type-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fca5a5;
  margin-bottom: var(--space-xs);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.detail-venue-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Live metrics panel */
.metrics-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Drink pricing */
.drinks-section {
  margin-bottom: var(--space-lg);
}

.drink-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.drink-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.drink-item:hover {
  background: var(--bg-glass-hover);
}

.drink-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.drink-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-primary);
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.btn-primary {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-main);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(225, 29, 72, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
}

/* ---------- Create Party View ---------- */
.create-toggle {
  display: flex;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  padding: 3px;
  margin-bottom: var(--space-xl);
}

.create-toggle-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
}

.create-toggle-btn.active {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(240,240,248,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-range-wrap {
  position: relative;
}

.form-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  outline: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--gradient-main);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

.form-range-value {
  text-align: center;
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Drink editor */
.drink-editor {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.drink-editor-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.drink-editor-row .form-input {
  flex: 1;
}

.drink-editor-row .form-input:last-of-type {
  max-width: 120px;
}

.drink-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.drink-add-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.drink-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.drink-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Party preview card */
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.preview-card-body {
  padding: var(--space-md);
}

/* ---------- Clan View ---------- */
.clan-header-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.clan-header-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.clan-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.clan-member-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.clan-avatars {
  display: flex;
  justify-content: center;
  margin: var(--space-lg) 0;
}

.clan-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-left: -12px;
  position: relative;
  transition: all var(--transition-fast);
}

.clan-avatar:first-child {
  margin-left: 0;
}

.clan-avatar:hover {
  transform: translateY(-4px);
  z-index: 2;
}

.clan-avatar.online::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #06ffa5;
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
}

/* Clan member list */
.member-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.member-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.member-item:hover {
  background: var(--bg-glass-hover);
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.member-info {
  flex: 1;
}

.member-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.member-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.member-location-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.member-location-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* GPS Map simulation */
.clan-map {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  height: 200px;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clan-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  animation: mapPulse 2s ease-in-out infinite;
}

@keyframes mapPulse {

  0%,
  100% {
    box-shadow: 0 0 12px var(--accent-primary);
  }

  50% {
    box-shadow: 0 0 24px var(--accent-primary), 0 0 48px rgba(225, 29, 72, 0.3);
  }
}

/* Clan perks */
.perk-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.perk-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-fast);
}

.perk-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.perk-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.perk-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.perk-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- Chat View ---------- */
.chat-tabs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scrollbar-width: none;
  margin-bottom: var(--space-md);
}

.chat-tabs::-webkit-scrollbar {
  display: none;
}

.chat-tab {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chat-tab.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass) transparent;
}

.chat-msg {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  animation: msgSlideIn 0.3s var(--ease-out);
}

@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.chat-msg-bubble {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-top-left-radius: 4px;
  padding: var(--space-sm) var(--space-md);
  max-width: 80%;
}

.chat-msg-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 2px;
}

.chat-msg-text {
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg-time {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-msg.self {
  flex-direction: row-reverse;
}

.chat-msg.self .chat-msg-avatar {
  background: var(--gradient-warm);
}

.chat-msg.self .chat-msg-bubble {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.2);
  border-radius: var(--radius-md);
  border-top-right-radius: 4px;
}

.chat-msg.self .chat-msg-name {
  text-align: right;
}

.chat-input-wrap {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.chat-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: var(--space-sm) var(--space-md);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

/* ---------- Profile View ---------- */
.profile-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.profile-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-md);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-main);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-neon);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.profile-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--gradient-main);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.profile-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Settings list */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.settings-item:hover {
  background: var(--bg-glass-hover);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.settings-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.settings-item-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.settings-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle input:checked~.toggle-track {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.toggle input:checked~.toggle-thumb {
  transform: translateX(20px);
  background: white;
}

/* Party history list */
.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.history-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.history-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.history-info {
  flex: 1;
}

.history-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.history-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Modal / Overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s var(--ease-out);
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  overflow-y: auto;
  padding: var(--space-xl);
  animation: slideUp 0.35s var(--ease-spring);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
}

/* ---------- Toast / Snackbar ---------- */
.toast {
  position: fixed;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-elevated);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: transform 0.4s var(--ease-spring);
  max-width: 420px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  font-size: 1.1rem;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.empty-state-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ---------- Page Titles ---------- */
.page-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ---------- Success Animation ---------- */
.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  animation: successPop 0.5s var(--ease-spring);
}

@keyframes successPop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.success-check svg {
  width: 40px;
  height: 40px;
  color: white;
}

/* ---------- Verification & Security ---------- */
.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-neon);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(6, 255, 165, 0.3);
}

.profile-gender-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-sm) auto 0;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.15), rgba(159, 18, 57, 0.15));
  color: #fda4af;
  border: 1px solid rgba(127, 29, 29, 0.2);
}

.gender-icon {
  font-size: 0.9rem;
}

.verify-panel {
  margin-bottom: var(--space-xl);
}

.trust-score-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
}

.trust-score-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.trust-ring-svg {
  width: 100%;
  height: 100%;
}

.trust-score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-score-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.trust-score-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.verify-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.verify-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.verify-item:hover {
  background: var(--bg-glass-hover);
}

.verify-item.verified {
  border-color: rgba(6, 255, 165, 0.1);
}

.verify-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.verify-info {
  flex: 1;
}

.verify-label {
  font-weight: 600;
  font-size: 0.85rem;
}

.verify-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.verify-status.done {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06ffa5, #17d9e0);
  color: #0a0a12;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verify-action-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gradient-main);
  color: white;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.verify-action-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.verify-report-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-lg);
}

.verify-report-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.verify-report-info {
  flex: 1;
}

.verify-report-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.verify-report-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Verified badge on party cards */
.meta-badge.verified-user {
  color: #06ffa5;
  border: 1px solid rgba(6, 255, 165, 0.15);
}

/* ---------- Search Bar ---------- */
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  transition: all var(--transition-fast);
}

.search-bar-wrap:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.15);
}

.search-icon {
  flex-shrink: 0;
  opacity: 0.4;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.search-clear:hover {
  background: var(--bg-glass-hover);
}

/* ---------- Venue Directory ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.venue-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.venue-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.venue-card-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.venue-card-name {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-card-area {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.venue-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.venue-card-rating {
  font-size: 0.65rem;
  color: #fbbf24;
}

.venue-card-type {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(225, 29, 72, 0.1);
  color: var(--accent-primary);
}

.venue-search-empty {
  text-align: center;
  padding: var(--space-xl);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.empty-text {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.empty-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.link-btn {
  background: none;
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ---------- Stories Bar ---------- */
.stories-bar {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scrollbar-width: none;
  margin-bottom: var(--space-sm);
}

.stories-bar::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.story-avatar-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-main);
  transition: transform var(--transition-fast);
}

.story-item:hover .story-avatar-wrap {
  transform: scale(1.08);
}

.story-item.seen .story-avatar-wrap {
  background: var(--border-glass);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
}

.story-avatar.add {
  font-size: 1.4rem;
  color: var(--accent-primary);
  background: var(--bg-glass);
}

.add-story .story-avatar-wrap {
  background: var(--border-glass);
  border: 2px dashed var(--border-glass);
  padding: 1px;
}

.story-name {
  font-size: 0.65rem;
  color: var(--text-muted);
  max-width: 64px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-item.live .story-avatar-wrap {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: storyPulse 2s ease-in-out infinite;
}

@keyframes storyPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}

.story-live-badge {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: white;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--bg-primary);
}

/* ---------- Live Streams ---------- */
.live-streams-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scrollbar-width: none;
  margin-bottom: var(--space-sm);
}

.live-streams-scroll::-webkit-scrollbar {
  display: none;
}

.live-stream-card {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
}

.live-stream-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.15);
}

.live-stream-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  position: relative;
}

.live-stream-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 18, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-sm);
}

.live-badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-badge-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.live-viewer-count {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.live-stream-info {
  padding: var(--space-sm) var(--space-md);
}

.live-stream-host {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

.live-host-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
}

.live-host-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.live-stream-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Story viewer overlay */
.story-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.story-viewer.active {
  display: flex;
}

.story-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 2;
}

.story-progress-bar {
  display: flex;
  gap: 3px;
  width: 100%;
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  right: var(--space-md);
  width: calc(100% - var(--space-xl));
}

.story-progress-segment {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: white;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.1s linear;
}

.story-progress-fill.active {
  animation: storyProgress 5s linear forwards;
}

.story-progress-fill.done {
  width: 100%;
}

@keyframes storyProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.story-viewer-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.story-viewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.story-viewer-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.story-viewer-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.story-viewer-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.story-viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.story-viewer-content {
  width: 100%;
  max-width: 420px;
  height: 70vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-viewer-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-viewer-text {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-lg);
  right: var(--space-lg);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
}

/* Live stream viewer */
.livestream-viewer {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 3000;
  display: none;
  flex-direction: column;
}

.livestream-viewer.active {
  display: flex;
}

.livestream-video {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.livestream-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.livestream-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg);
}

.livestream-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.livestream-host-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.livestream-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.livestream-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.livestream-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.livestream-comments {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-height: 180px;
  overflow-y: auto;
}

.livestream-comment {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  animation: msgSlideIn 0.3s var(--ease-out);
}

.livestream-comment-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  white-space: nowrap;
}

.livestream-comment-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.livestream-input-wrap {
  display: flex;
  gap: var(--space-sm);
}

.livestream-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  color: white;
  font-size: 0.85rem;
}

.livestream-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.livestream-react-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.livestream-react-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.15);
}

/* ---------- Game Panels ---------- */
.game-panel {
  display: none;
}

.game-panel.active {
  display: block;
  animation: fadeIn 0.3s var(--ease-out);
}

/* Truth or Dare */
.tod-card-area {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.tod-card {
  width: 100%;
  max-width: 340px;
  height: 220px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tod-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-spring);
  transform-style: preserve-3d;
}

.tod-card-inner.flipped {
  transform: rotateY(180deg);
}

.tod-card-front,
.tod-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.tod-card-front {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
}

.tod-card-emoji {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.tod-card-prompt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tod-card-back {
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-neon);
  transform: rotateY(180deg);
  gap: var(--space-md);
}

.tod-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-main);
  color: white;
}

.tod-badge.dare {
  background: var(--gradient-warm);
}

.tod-text {
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.6;
  color: var(--text-primary);
}

.tod-controls {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.tod-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.tod-btn-emoji {
  font-size: 1.1rem;
}

/* Game Player Management UI */
.game-player-setup {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.game-player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-sm);
  min-height: 32px;
  align-items: center;
}

.game-player-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: linear-gradient(135deg, rgba(225,29,72,0.15), rgba(168,85,247,0.1));
  border: 1px solid rgba(225,29,72,0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: tagFadeIn 0.25s var(--ease-out);
}

.game-player-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 50%;
  transition: color var(--transition-fast), background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.game-player-remove:hover {
  color: #ef4444;
  background: rgba(239,68,68,0.15);
}

.game-player-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.game-empty-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.tod-scoreboard {
  margin-top: var(--space-md);
}

.tod-scores {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tod-score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.tod-score-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.tod-score-counts {
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.tod-score-counts span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ludo Game */
.ludo-container {
  text-align: center;
}

.ludo-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  margin: 0 auto var(--space-lg);
  padding: var(--space-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.ludo-cell {
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  aspect-ratio: 1;
}

.ludo-cell.home-red {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.ludo-cell.home-blue {
  background: rgba(127, 29, 29, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.ludo-cell.home-green {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.ludo-cell.home-yellow {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
}

.ludo-cell.center {
  background: var(--gradient-card);
  border-color: var(--border-accent);
  font-size: 1.2rem;
}

.ludo-cell.path {
  background: rgba(255, 255, 255, 0.02);
}

.ludo-cell.path.active-cell {
  box-shadow: inset 0 0 8px rgba(225, 29, 72, 0.3);
}

.ludo-piece {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: absolute;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.ludo-piece.red {
  background: #ef4444;
}

.ludo-piece.blue {
  background: #881337;
}

.ludo-piece.green {
  background: #22c55e;
}

.ludo-piece.yellow {
  background: #eab308;
}

.ludo-piece.bounce {
  animation: pieceBounce 0.4s var(--ease-spring);
}

@keyframes pieceBounce {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.ludo-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.ludo-turn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.ludo-turn-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px currentColor;
}

.ludo-dice-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  flex: none;
}

.ludo-dice-face {
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease-spring);
}

.ludo-dice-btn:active .ludo-dice-face {
  transform: rotate(720deg) scale(1.2);
}

.ludo-dice-result {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 2.4rem;
}

.ludo-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.ludo-player {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
}

.ludo-player-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ludo-player-score {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-primary);
}

/* Would You Rather */
.wyr-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.wyr-option {
  width: 100%;
  padding: var(--space-xl);
  background: var(--bg-glass);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-align: center;
}

.wyr-option:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.wyr-option.selected-a {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(190, 18, 60, 0.1));
  box-shadow: var(--shadow-neon);
}

.wyr-option.selected-b {
  border-color: var(--accent-tertiary);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.15), rgba(139, 92, 246, 0.1));
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.wyr-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.wyr-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.wyr-votes {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.wyr-vs {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Never Have I Ever */
.nhie-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-medium);
}

.nhie-emoji {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.nhie-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.nhie-actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.nhie-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.nhie-tally {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: var(--space-md);
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.nhie-tally #nhie-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Spin the Bottle */
.spin-container {
  text-align: center;
}

.spin-circle {
  position: relative;
  width: 260px;
  height: 260px;
  margin: var(--space-lg) auto;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 2px solid var(--border-accent);
}

.spin-player {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  left: 50%;
  top: 50%;
  transform: rotate(var(--angle)) translateY(-108px) rotate(calc(-1 * var(--angle)));
  margin-left: -22px;
  margin-top: -22px;
  transition: all var(--transition-fast);
}

.spin-player.selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.5);
  transform: rotate(var(--angle)) translateY(-108px) rotate(calc(-1 * var(--angle))) scale(1.2);
}

.spin-bottle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  font-size: 2.5rem;
  transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  cursor: pointer;
}

.spin-bottle-icon.spinning {
  transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.spin-result {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

.spin-dare-card {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 2px solid var(--accent-secondary);
  border-radius: var(--radius-xl);
  animation: fadeIn 0.4s var(--ease-out);
}

.spin-dare-emoji {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.spin-dare-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.spin-names {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.spin-name-tag {
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Kiss Marry Kill */
.kmk-container {
  text-align: center;
}

.kmk-round {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-lg);
}

.kmk-people {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.kmk-person {
  flex: 1;
  max-width: 140px;
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-glass);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-align: center;
}

.kmk-person:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.kmk-person.selected {
  border-color: var(--accent-primary);
  background: rgba(225, 29, 72, 0.1);
  box-shadow: var(--shadow-glow);
}

.kmk-person.assigned-kiss {
  border-color: #be123c;
  background: rgba(190, 18, 60, 0.1);
}

.kmk-person.assigned-marry {
  border-color: #06ffa5;
  background: rgba(6, 255, 165, 0.1);
}

.kmk-person.assigned-kill {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.kmk-person-emoji {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.kmk-person-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.kmk-slots {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.kmk-slot {
  flex: 1;
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.kmk-slot:hover {
  border-color: var(--accent-primary);
}

.kmk-slot[data-action="kiss"]:hover,
.kmk-slot[data-action="kiss"].filled {
  border-color: #be123c;
}

.kmk-slot[data-action="marry"]:hover,
.kmk-slot[data-action="marry"].filled {
  border-color: #06ffa5;
}

.kmk-slot[data-action="kill"]:hover,
.kmk-slot[data-action="kill"].filled {
  border-color: #ef4444;
}

.kmk-slot-emoji {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.kmk-slot-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kmk-slot-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  #app {
    max-width: 520px;
  }

  .party-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero {
    height: 320px;
  }
}

@media (min-width: 1024px) {
  #app {
    max-width: 560px;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

/*  For You Section  */
#for-you-section {
  margin-bottom: var(--space-lg);
}

.for-you-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.pref-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  animation: tagFadeIn 0.4s ease-out both;
}

.pref-tag.type-vibe {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pref-tag.type-area {
  background: linear-gradient(135deg, rgba(6, 255, 165, 0.2), rgba(6, 255, 165, 0.08));
  color: #06ffa5;
  border: 1px solid rgba(6, 255, 165, 0.25);
}

.pref-tag.type-price {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.08));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.pref-tag.type-keyword {
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.2), rgba(236, 72, 153, 0.08));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

@keyframes tagFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/*  Taste Profile Card  */
.taste-profile-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 255, 165, 0.05) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.taste-section {
  margin-bottom: var(--space-lg);
}

.taste-section:last-child {
  margin-bottom: 0;
}

.taste-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.taste-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 6px;
}

.taste-bar-label {
  font-size: 0.8rem;
  min-width: 90px;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.taste-bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.taste-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.taste-bar-fill.purple {
  background: linear-gradient(90deg, #9f1239, #a78bfa);
}

.taste-bar-fill.green {
  background: linear-gradient(90deg, #06ffa5, #34d399);
}

.taste-bar-fill.gold {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.taste-bar-fill.pink {
  background: linear-gradient(90deg, #be123c, #f472b6);
}

.taste-bar-fill.cyan {
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.taste-bar-value {
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 30px;
  text-align: right;
}

.taste-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.taste-keyword {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.15), rgba(159, 18, 57, 0.15));
  color: #f0abfc;
  border: 1px solid rgba(190, 18, 60, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.taste-keyword:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(190, 18, 60, 0.3);
}

.taste-accuracy {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  margin-top: var(--space-md);
}

.taste-accuracy-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.taste-accuracy-info {
  flex: 1;
}

.taste-accuracy-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.taste-accuracy-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.match-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #9f1239, #be123c);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.party-card {
  position: relative;
}

/*  Inbox Bell  */
.inbox-bell {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: transform 0.2s, background 0.2s;
  z-index: 5;
}

.inbox-bell:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.inbox-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #be123c, #f43f5e);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.5);
}

@keyframes badgePop {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/*  Inbox View  */
.inbox-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0 var(--space-md);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.inbox-back-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.inbox-title {
  flex: 1;
  font-size: 1.3rem;
  font-weight: 800;
}

.inbox-clear-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.inbox-clear-btn:hover {
  color: #f43f5e;
  border-color: #f43f5e;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: 100px;
}

/*  Inbox Message Card  */
.inbox-msg {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  animation: inboxSlideIn 0.4s ease-out both;
  transition: transform 0.2s, box-shadow 0.2s;
}

.inbox-msg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.inbox-msg.unread {
  border-left: 3px solid #9f1239;
}

@keyframes inboxSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inbox-msg-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.inbox-msg-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.inbox-msg-icon.created {
  background: linear-gradient(135deg, rgba(6, 255, 165, 0.2), rgba(6, 255, 165, 0.08));
}

.inbox-msg-icon.joined {
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.2), rgba(139, 92, 246, 0.08));
}

.inbox-msg-icon.clan {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.08));
}

.inbox-msg-title-wrap {
  flex: 1;
  min-width: 0;
}

.inbox-msg-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-msg-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.inbox-msg-body {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.inbox-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.inbox-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}

.inbox-detail-label {
  color: var(--text-muted);
}

.inbox-detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.inbox-drinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.inbox-drink-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(159, 18, 57, 0.2);
  border-radius: 14px;
  color: #a78bfa;
}

.inbox-map-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(127, 29, 29, 0.2);
  border-radius: var(--radius-lg);
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.inbox-map-link:hover {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.2), rgba(127, 29, 29, 0.1));
  transform: translateY(-1px);
}

.inbox-map-link svg {
  flex-shrink: 0;
}

/*  Inbox Empty State  */
.inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.inbox-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.inbox-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.inbox-empty-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

/* Profile Gallery */
.profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/*  Profile Edit Button  */
.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-sm) auto var(--space-md);
  padding: 8px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.profile-edit-btn:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: rgba(225, 29, 72, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2);
}

.profile-edit-btn:active {
  transform: translateY(0);
}

/* ========== WhatsApp Simulated Banner ========== */
.whatsapp-banner {
  position: fixed;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  z-index: 99999;
  transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-banner.show {
  top: 14px;
}

.whatsapp-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-logo-svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.whatsapp-content {
  flex: 1;
  min-width: 0;
}

.whatsapp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.whatsapp-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #25D366;
  letter-spacing: 0.02em;
}

.whatsapp-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

.whatsapp-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Login / Auth Screen ========== */
.auth-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  overflow-y: auto;
}

.auth-logo {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.auth-logo-flame {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
  display: block;
  filter: drop-shadow(0 0 24px rgba(232,23,58,0.6));
  animation: authPulse 2.5s ease-in-out infinite;
}

@keyframes authPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 24px rgba(232,23,58,0.6)); }
  50% { transform: scale(1.07); filter: drop-shadow(0 0 40px rgba(232,23,58,0.9)); }
}

.auth-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-elevated);
}

.auth-step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.auth-step-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.phone-input-wrap {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.phone-flag {
  font-size: 1.5rem;
  flex-shrink: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  line-height: 1;
}

.phone-input-main {
  flex: 1;
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.phone-input-main:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37,211,102,0.12);
}

.auth-btn-whatsapp {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: all var(--transition-fast);
  margin-bottom: var(--space-md);
}

.auth-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

.auth-btn-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}

.otp-input-wrap {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.otp-digit {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--bg-glass);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  caret-color: var(--accent-primary);
}

.otp-digit:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.15);
  outline: none;
}

.otp-digit.filled {
  border-color: var(--accent-primary);
  background: rgba(225,29,72,0.08);
}

.auth-back-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  width: 100%;
  text-align: center;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
}

.auth-back-link:hover { color: var(--text-secondary); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Resend timer */
.resend-timer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.resend-timer button {
  background: none;
  border: none;
  color: #25D366;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Multi-user online indicator in chat */
.chat-msg.other .chat-msg-avatar {
  background: var(--gradient-cool);
}

.chat-online-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #06ffa5;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  box-shadow: 0 0 6px #06ffa5;
}

/* Auth shake animation for wrong OTP / invalid phone */
@keyframes authShake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-8px); }
  30%  { transform: translateX(8px); }
  45%  { transform: translateX(-6px); }
  60%  { transform: translateX(6px); }
  75%  { transform: translateX(-4px); }
  90%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* ---------- Direct Messages ---------- */
.dm-section {
  margin-bottom: var(--space-md);
  padding: 0 var(--space-sm);
}

.dm-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.dm-users-list {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-xs) 0;
  scrollbar-width: none;
}

.dm-users-list::-webkit-scrollbar {
  display: none;
}

.dm-user-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  width: 58px;
}

.dm-user-item:hover {
  transform: translateY(-2px);
}

.dm-user-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
}

.dm-user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.dm-user-item.active .dm-user-avatar {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
  background: var(--gradient-main);
  color: white;
}

.dm-user-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #06ffa5;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 6px #06ffa5;
}

.dm-user-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.dm-user-item.active .dm-user-name {
  color: var(--accent-primary);
  font-weight: 600;
}

.btn-find-friends:hover {
  background: rgba(225, 29, 72, 0.15) !important;
  border-color: rgba(225, 29, 72, 0.4) !important;
  transform: translateY(-1px);
}