/* ═══════════════════════════════════════════════════════════════
   AURA — DESIGN SYSTEM
   Retro-futuristic luxury · Deep cosmos · Aurora gradients
   Fonts: Syne (display) + Plus Jakarta Sans (body)
═══════════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  /* Core Colors — Dark Theme */
  --bg-base:        #080B14;
  --bg-surface:     #0D1117;
  --bg-elevated:    #111827;
  --bg-card:        rgba(17, 24, 39, 0.8);
  --bg-glass:       rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --bg-input:       rgba(255, 255, 255, 0.06);

  /* Aurora Palette */
  --violet:         #7C3AED;
  --violet-light:   #8B5CF6;
  --violet-dim:     rgba(124, 58, 237, 0.15);
  --cyan:           #06B6D4;
  --cyan-light:     #22D3EE;
  --cyan-dim:       rgba(6, 182, 212, 0.15);
  --rose:           #F43F5E;
  --rose-light:     #FB7185;
  --rose-dim:       rgba(244, 63, 94, 0.15);
  --gold:           #F59E0B;
  --gold-dim:       rgba(245, 158, 11, 0.15);
  --emerald:        #10B981;
  --emerald-dim:    rgba(16, 185, 129, 0.15);

  /* Text */
  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary:  #475569;
  --text-muted:     #334155;
  --text-inverse:   #080B14;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.18);
  --border-aurora:  rgba(124, 58, 237, 0.3);

  /* Gradients */
  --grad-aurora:    linear-gradient(135deg, #7C3AED, #06B6D4, #F43F5E);
  --grad-violet:    linear-gradient(135deg, #7C3AED, #4F46E5);
  --grad-cyan:      linear-gradient(135deg, #06B6D4, #0891B2);
  --grad-rose:      linear-gradient(135deg, #F43F5E, #E11D48);
  --grad-gold:      linear-gradient(135deg, #F59E0B, #D97706);
  --grad-surface:   linear-gradient(180deg, rgba(17,24,39,0.95) 0%, rgba(8,11,20,0.98) 100%);

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-xl:      0 20px 60px rgba(0,0,0,0.7), 0 8px 24px rgba(0,0,0,0.5);
  --shadow-aurora:  0 0 30px rgba(124, 58, 237, 0.2), 0 0 60px rgba(6, 182, 212, 0.1);
  --shadow-glow-v:  0 0 20px rgba(124, 58, 237, 0.4);
  --shadow-glow-c:  0 0 20px rgba(6, 182, 212, 0.4);
  --shadow-glow-r:  0 0 20px rgba(244, 63, 94, 0.4);

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --nav-height:       64px;
  --sidebar-left-w:   240px;
  --sidebar-right-w:  280px;
  --content-max:      680px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    150ms;
  --dur-base:    250ms;
  --dur-slow:    400ms;
  --dur-slower:  600ms;
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-base:        #F8FAFC;
  --bg-surface:     #FFFFFF;
  --bg-elevated:    #F1F5F9;
  --bg-card:        rgba(255, 255, 255, 0.95);
  --bg-glass:       rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --bg-input:       rgba(0, 0, 0, 0.05);
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-tertiary:  #94A3B8;
  --text-muted:     #CBD5E1;
  --text-inverse:   #F8FAFC;
  --border-subtle:  rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.10);
  --border-strong:  rgba(0, 0, 0, 0.18);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  color: inherit;
}

input, textarea, select {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

.hidden { display: none !important; }

/* ─── AURORA BACKGROUND ─── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: auroraFloat 20s ease-in-out infinite;
}

.aurora-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}

.aurora-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  top: 30%; right: -150px;
  animation-delay: -7s;
}

.aurora-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #F43F5E, transparent 70%);
  bottom: -100px; left: 30%;
  animation-delay: -14s;
}

.aurora-orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #F59E0B, transparent 70%);
  top: 60%; left: 10%;
  animation-delay: -5s;
  opacity: 0.07;
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(30px, -40px) scale(1.05); }
  50%       { transform: translate(-20px, 30px) scale(0.95); }
  75%       { transform: translate(40px, 20px) scale(1.02); }
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

[data-theme="light"] .aurora-orb { opacity: 0.06; }
[data-theme="light"] .noise-overlay { opacity: 0.2; }

/* ─── APP SHELL ─── */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════
   TOP NAVIGATION
═══════════════════════════════════════════════════════════════ */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-base) var(--ease-smooth);
}

[data-theme="light"] .top-nav {
  background: rgba(248, 250, 252, 0.85);
}

.top-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-base) var(--ease-spring);
}

.nav-logo:hover .logo-mark {
  transform: rotate(15deg) scale(1.1);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search */
.nav-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: var(--space-3);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 var(--space-8) 0 var(--space-8);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--dur-base) var(--ease-smooth);
}

.search-input::placeholder { color: var(--text-tertiary); }

.search-input:focus {
  background: var(--bg-glass-hover);
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}

.search-kbd {
  position: absolute;
  right: var(--space-3);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-family: var(--font-body);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-smooth);
  position: relative;
}

.nav-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.notification-btn { position: relative; }

.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--rose);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-base);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.create-btn {
  background: var(--grad-aurora);
  color: white !important;
  font-weight: 600;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow-v);
  transition: all var(--dur-base) var(--ease-spring);
}

.create-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-glow-v), 0 4px 20px rgba(124,58,237,0.4);
}

.avatar-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  overflow: visible;
  transition: transform var(--dur-base) var(--ease-spring);
}

.avatar-btn:hover { transform: scale(1.08); }

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid transparent;
  background: var(--grad-aurora);
  background-clip: padding-box;
  box-shadow: 0 0 0 2px var(--violet);
}

.online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: var(--emerald);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════════════ */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-left-w) 1fr var(--sidebar-right-w);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════
   LEFT SIDEBAR
═══════════════════════════════════════════════════════════════ */
.sidebar-left {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-3);
  border-right: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.sidebar-left::-webkit-scrollbar { display: none; }

.sidebar-nav { flex: 1; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list-secondary,
.nav-list-tertiary {
  margin-top: var(--space-2);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-smooth);
  position: relative;
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--violet-dim);
  color: var(--violet-light);
}

.nav-item.active .nav-item-icon svg {
  stroke: var(--violet-light);
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}

.nav-item-label {
  flex: 1;
  white-space: nowrap;
}

.nav-item-indicator {
  width: 6px; height: 6px;
  background: var(--violet);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.nav-item.active .nav-item-indicator { opacity: 1; }

.nav-badge-new {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--grad-aurora);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.nav-count-badge {
  min-width: 18px; height: 18px;
  background: var(--rose);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.live-dot-nav {
  width: 8px; height: 8px;
  background: var(--rose);
  border-radius: var(--radius-full);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-3) var(--space-2);
}

/* Sidebar User Card */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  margin-top: var(--space-4);
  transition: background var(--dur-fast);
}

.sidebar-user-card:hover { background: var(--bg-glass-hover); }

.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--violet);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-username {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-trust {
  font-size: 0.7rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 3px;
}

.sidebar-settings-btn {
  color: var(--text-tertiary);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
  flex-shrink: 0;
}

.sidebar-settings-btn:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   CONTENT AREA
═══════════════════════════════════════════════════════════════ */
.content-area {
  min-height: calc(100vh - var(--nav-height));
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.content-area::-webkit-scrollbar { width: 4px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

/* ─── SCREENS ─── */
.screen {
  display: none;
  padding: var(--space-6);
  max-width: var(--content-max);
  margin: 0 auto;
  animation: screenEnter var(--dur-slow) var(--ease-out) both;
}

.screen.active { display: block; }

@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.see-all-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet-light);
  transition: color var(--dur-fast);
}

.see-all-btn:hover { color: var(--cyan); }

/* ═══════════════════════════════════════════════════════════════
   HOME FEED
═══════════════════════════════════════════════════════════════ */
.feed-header {
  margin-bottom: var(--space-6);
}

.feed-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Feed Mode Toggle */
.feed-mode-toggle {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.feed-mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: all var(--dur-base) var(--ease-smooth);
  white-space: nowrap;
}

.feed-mode-btn.active {
  background: var(--violet);
  color: white;
  box-shadow: var(--shadow-glow-v);
}

.feed-mode-btn:not(.active):hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* AI Explain Banner */
.ai-explain-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.1));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  color: var(--text-secondary);
  animation: slideDown var(--dur-slow) var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ai-explain-icon {
  color: var(--violet-light);
  flex-shrink: 0;
}

.ai-explain-banner strong { color: var(--text-primary); }

.ai-explain-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-explain-close {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--dur-fast);
}

.ai-explain-close:hover { color: var(--text-primary); }

/* ─── STORIES BAR ─── */
.stories-bar {
  margin-bottom: var(--space-6);
}

.stories-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.stories-scroll::-webkit-scrollbar { display: none; }

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-spring);
}

.story-item:hover { transform: scale(1.05); }

.story-avatar-wrap {
  position: relative;
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  padding: 2px;
}

.story-unseen {
  background: var(--grad-aurora);
}

.story-seen {
  background: var(--border-default);
}

.story-add-wrap {
  background: var(--bg-glass);
  border: 2px dashed var(--border-default);
}

.story-avatar {
  width: 100%; height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--bg-base);
}

.story-add-btn {
  position: absolute;
  bottom: 0; right: 0;
  width: 22px; height: 22px;
  background: var(--violet);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid var(--bg-base);
}

.story-live-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rose);
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}

.story-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 64px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── POST CARDS ─── */
.feed-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--dur-base) var(--ease-smooth);
  animation: postEnter var(--dur-slow) var(--ease-out) both;
}

@keyframes postEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

/* Post Header */
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
}

.post-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.post-avatar-wrap {
  position: relative;
  width: 42px; height: 42px;
  flex-shrink: 0;
}

.post-avatar {
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.post-avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  z-index: -1;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.verified-badge {
  display: flex;
  align-items: center;
}

.trust-score-mini {
  font-size: 0.65rem;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.post-location {
  display: flex;
  align-items: center;
  gap: 3px;
}

.post-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-follow-btn {
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  color: var(--violet-light);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(124,58,237,0.3);
  transition: all var(--dur-fast) var(--ease-smooth);
}

.post-follow-btn:hover {
  background: var(--violet);
  color: white;
}

.post-more-btn {
  color: var(--text-tertiary);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
}

.post-more-btn:hover { color: var(--text-primary); }

/* Post Media */
.post-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
}

.post-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.post-card:hover .post-image { transform: scale(1.01); }

.post-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.post-save-overlay {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.post-card:hover .post-save-overlay { opacity: 1; }

/* Video Post */
.post-media-video .post-image { aspect-ratio: 16/9; }

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
}

.video-play-btn {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease-spring);
  border: 2px solid rgba(255,255,255,0.3);
}

.video-play-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.video-views {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.reel-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
}

/* Post Actions */
.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
}

.post-actions-left {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-spring);
}

.action-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: scale(1.1);
}

.like-btn.liked {
  color: var(--rose);
}

.like-btn.liked .heart-icon {
  fill: var(--rose);
  stroke: var(--rose);
  animation: heartBeat var(--dur-base) var(--ease-spring);
}

@keyframes heartBeat {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.save-btn.saved {
  color: var(--gold);
}

.save-btn.saved svg {
  fill: var(--gold);
  stroke: var(--gold);
}

.tip-btn { color: var(--emerald); }
.tip-btn:hover { background: var(--emerald-dim); }

/* Post Engagement */
.post-engagement {
  padding: 0 var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.post-likes-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.liked-avatars {
  display: flex;
}

.liked-avatar {
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
}

.liked-avatar:first-child { margin-left: 0; }

.post-likes-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-likes-count strong {
  color: var(--text-primary);
  font-weight: 700;
}

.post-caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.post-caption strong {
  color: var(--text-primary);
  font-weight: 700;
}

.post-hashtags {
  color: var(--violet-light);
  font-weight: 500;
}

.view-comments-btn {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-align: left;
  transition: color var(--dur-fast);
}

.view-comments-btn:hover { color: var(--text-secondary); }

.post-comment-input-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.comment-input-avatar {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.comment-input {
  flex: 1;
  height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur-fast);
}

.comment-input:focus {
  border-color: var(--violet);
  background: var(--bg-glass-hover);
}

.comment-ai-btn {
  color: var(--violet-light);
  padding: var(--space-1);
  transition: transform var(--dur-fast);
}

.comment-ai-btn:hover { transform: scale(1.2); }

/* AI Rec Tag */
.ai-rec-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  background: rgba(124,58,237,0.03);
}

/* Subscription Post */
.post-card-subscription {
  overflow: hidden;
}

.subscription-banner {
  padding: var(--space-4);
}

.sub-banner-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sub-creator-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sub-avatar {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--violet);
}

.sub-creator-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.sub-creator-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.sub-preview-blur {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sub-preview-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: blur(12px) brightness(0.6);
}

.sub-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.sub-lock-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.sub-lock-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.sub-unlock-btn {
  background: var(--grad-aurora);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease-spring);
}

.sub-unlock-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-v);
}

/* ═══════════════════════════════════════════════════════════════
   EXPLORE SCREEN
═══════════════════════════════════════════════════════════════ */
.explore-header {
  margin-bottom: var(--space-6);
}

.explore-search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: 0 var(--space-4);
  height: 48px;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  transition: all var(--dur-fast);
}

.explore-search-bar:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}

.explore-search-input {
  flex: 1;
  background: none;
  border: none;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.explore-search-input::placeholder { color: var(--text-tertiary); }

/* Trending Topics */
.trending-topics {
  margin-bottom: var(--space-6);
}

.topics-scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.topics-scroll::-webkit-scrollbar { display: none; }

.topic-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-smooth);
  flex-shrink: 0;
}

.topic-chip:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.topic-chip.active {
  background: var(--violet-dim);
  color: var(--violet-light);
  border-color: rgba(124,58,237,0.3);
}

/* AI Picks */
.ai-picks-banner {
  margin-bottom: var(--space-8);
}

.ai-picks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.ai-picks-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.ai-pulse-dot {
  width: 8px; height: 8px;
  background: var(--violet);
  border-radius: var(--radius-full);
  animation: livePulse 1.5s ease-in-out infinite;
}

.ai-picks-refresh {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet-light);
  transition: all var(--dur-fast);
}

.ai-picks-refresh:hover { color: var(--cyan); }

.ai-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-2);
}

.ai-pick-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring);
}

.ai-pick-card:hover { transform: scale(1.02); }

.ai-pick-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ai-pick-tall { grid-row: span 2; }
.ai-pick-tall img { height: 100%; min-height: 330px; }

.ai-pick-wide { grid-column: span 2; }
.ai-pick-wide img { height: 160px; }

.ai-pick-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3);
  gap: 3px;
}

.ai-pick-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.ai-pick-views {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
}

/* Trending Creators */
.trending-creators-section { margin-bottom: var(--space-8); }

.creators-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.creators-scroll::-webkit-scrollbar { display: none; }

.creator-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  min-width: 140px;
  text-align: center;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-smooth);
  flex-shrink: 0;
}

.creator-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.creator-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.creator-card > * { position: relative; z-index: 1; }

.creator-card-avatar {
  width: 60px; height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-md);
}

.creator-card-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.creator-card-niche {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.creator-card-stats {
  font-size: 0.7rem;
  color: var(--emerald);
  font-weight: 600;
}

.creator-follow-btn {
  height: 28px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  color: var(--violet-light);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(124,58,237,0.3);
  transition: all var(--dur-fast);
}

.creator-follow-btn:hover {
  background: var(--violet);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   CREATOR STUDIO
═══════════════════════════════════════════════════════════════ */
.creator-studio-header {
  margin-bottom: var(--space-6);
}

.creator-studio-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.creator-studio-subtitle {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.creator-period-selector {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.period-btn {
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: all var(--dur-fast);
}

.period-btn.active {
  background: var(--violet);
  color: white;
}

/* Revenue Card */
.revenue-hero-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  overflow: hidden;
  position: relative;
}

.revenue-hero-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
  pointer-events: none;
}

.revenue-card-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.revenue-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-2);
}

.revenue-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.revenue-cents {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.revenue-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--space-2);
}

.revenue-change.positive { color: var(--emerald); }
.revenue-change.negative { color: var(--rose); }

.revenue-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.rev-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
}

.rev-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.rev-source {
  flex: 1;
  color: var(--text-secondary);
}

.rev-amount {
  font-weight: 700;
  color: var(--text-primary);
}

.revenue-chart-area {
  margin-top: var(--space-4);
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 60px;
}

.chart-bar {
  flex: 1;
  background: rgba(124,58,237,0.3);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all var(--dur-base) var(--ease-smooth);
}

.chart-bar.active {
  background: var(--grad-aurora);
  box-shadow: var(--shadow-glow-v);
}

.chart-bar:hover {
  background: var(--violet);
  transform: scaleY(1.05);
  transform-origin: bottom;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all var(--dur-base) var(--ease-smooth);
}

.stat-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.stat-change {
  font-size: 0.7rem;
  font-weight: 600;
}

.stat-change.positive { color: var(--emerald); }

/* AI Assistant Card */
.ai-assistant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-aurora);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.ai-assistant-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-aurora);
}

.ai-assistant-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.ai-assistant-icon {
  position: relative;
  width: 44px; height: 44px;
  background: var(--violet-dim);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-light);
  flex-shrink: 0;
}

.ai-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--violet);
  opacity: 0.4;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%       { transform: scale(1.15); opacity: 0.1; }
}

.ai-assistant-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-assistant-subtitle {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ai-suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--dur-fast);
}

.ai-suggestion-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-default);
}

.ai-suggestion-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ai-suggestion-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-suggestion-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-suggestion-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.ai-suggestion-action {
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  color: var(--violet-light);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(124,58,237,0.3);
  flex-shrink: 0;
  transition: all var(--dur-fast);
}

.ai-suggestion-action:hover {
  background: var(--violet);
  color: white;
}

/* Monetization */
.monetization-section { margin-bottom: var(--space-6); }

.monetization-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.mono-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--dur-base) var(--ease-smooth);
}

.mono-tool-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mono-tool-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mono-tool-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.mono-tool-stat {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.mono-tool-btn {
  height: 30px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.mono-tool-btn:hover {
  background: var(--violet-dim);
  color: var(--violet-light);
  border-color: rgba(124,58,237,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE SCREEN
═══════════════════════════════════════════════════════════════ */
.profile-hero {
  margin: calc(-1 * var(--space-6));
  margin-bottom: var(--space-6);
}

.profile-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.profile-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg-base) 100%);
}

.profile-cover-edit {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background var(--dur-fast);
}

.profile-cover-edit:hover { background: rgba(0,0,0,0.7); }

.profile-info-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  margin-top: -60px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.profile-avatar-section { flex-shrink: 0; }

.profile-avatar-wrap {
  position: relative;
  width: 100px; height: 100px;
}

.profile-avatar-large {
  width: 100px; height: 100px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--bg-base);
}

.profile-avatar-ring-gradient {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  z-index: -1;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 28px; height: 28px;
  background: var(--violet);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid var(--bg-base);
}

.profile-details {
  flex: 1;
  min-width: 200px;
  padding-bottom: var(--space-2);
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.profile-display-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-verified-badge {
  display: flex;
  align-items: center;
}

.profile-trust-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245,158,11,0.2);
}

.profile-username {
  display: block;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.profile-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.profile-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.profile-link {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 500;
  transition: color var(--dur-fast);
}

.profile-link:hover { color: var(--violet-light); }

.profile-actions-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  flex-shrink: 0;
}

.profile-edit-btn {
  height: 36px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--dur-fast);
}

.profile-edit-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-strong);
}

.profile-share-btn {
  height: 36px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet-light);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--dur-fast);
}

.profile-share-btn:hover {
  background: var(--violet);
  color: white;
}

/* Profile Stats Bar */
.profile-stats-bar {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-stats-bar::-webkit-scrollbar { display: none; }

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--dur-fast);
}

.profile-stat:hover { transform: scale(1.05); }

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.profile-stat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.profile-stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-4);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--dur-fast);
}

.profile-tab:hover { color: var(--text-primary); }

.profile-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--violet);
}

/* Profile Grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: var(--space-6);
}

.profile-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.profile-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.profile-grid-item:hover img { transform: scale(1.05); }

.profile-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  transition: opacity var(--dur-fast);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.profile-grid-item:hover .profile-grid-overlay { opacity: 1; }

.profile-grid-video-icon {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: 0.8rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   MESSAGES SCREEN
═══════════════════════════════════════════════════════════════ */
#screen-messages {
  max-width: 100%;
  padding: 0;
}

.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - var(--nav-height));
}

.conversations-panel {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.conversations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-3);
}

.conv-action-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.conv-action-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.e2e-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-5) var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--emerald-dim);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--emerald);
}

.conv-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-5) var(--space-4);
  padding: 0 var(--space-3);
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.conv-search input {
  flex: 1;
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.conv-search input::placeholder { color: var(--text-tertiary); }

/* Voice Rooms */
.voice-rooms-section {
  padding: 0 var(--space-5) var(--space-4);
}

.voice-rooms-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: var(--space-3);
}

.voice-rooms-scroll {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.voice-room-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--dur-fast);
}

.voice-room-item.active-room {
  border-color: rgba(124,58,237,0.3);
  background: var(--violet-dim);
}

.voice-room-icon { font-size: 1rem; }

.voice-room-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.voice-room-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.voice-room-count {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.voice-join-btn {
  height: 24px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--violet);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all var(--dur-fast);
}

.voice-join-btn:hover { background: var(--violet-light); }

/* Conversation List */
.conv-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.conv-list::-webkit-scrollbar { display: none; }

.conv-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  transition: background var(--dur-fast);
}

.conv-item:hover { background: var(--bg-glass); }

.conv-item.active { background: var(--violet-dim); }

.conv-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.conv-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.conv-online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: var(--emerald);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}

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

.conv-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.conv-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.conv-time {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.conv-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conv-preview {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.conv-unread-badge {
  min-width: 18px; height: 18px;
  background: var(--violet);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}

/* Chat Window */
.chat-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8,11,20,0.5);
  backdrop-filter: blur(10px);
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-header-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--violet);
}

.chat-header-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--emerald);
}

.online-indicator {
  width: 7px; height: 7px;
  background: var(--emerald);
  border-radius: var(--radius-full);
  animation: livePulse 2s ease-in-out infinite;
}

.chat-header-actions {
  display: flex;
  gap: var(--space-1);
}

.chat-action-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.chat-action-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.chat-date-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.chat-date-divider::before,
.chat-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  animation: msgEnter var(--dur-base) var(--ease-out);
}

@keyframes msgEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg-received { flex-direction: row; }
.chat-msg-sent { flex-direction: row-reverse; }

.chat-msg-avatar {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.chat-msg-bubble {
  max-width: 70%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  position: relative;
}

.chat-msg-received .chat-msg-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-msg-sent .chat-msg-bubble {
  background: var(--grad-violet);
  border-bottom-right-radius: var(--radius-sm);
}

.chat-msg-bubble p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.chat-msg-sent .chat-msg-bubble p { color: white; }

.chat-msg-time {
  display: block;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.chat-msg-sent .chat-msg-time { color: rgba(255,255,255,0.6); }

.chat-msg-read {
  font-size: 0.65rem;
  color: var(--cyan);
  margin-left: var(--space-2);
}

/* Typing indicator */
.chat-msg-typing {
  padding: var(--space-3) var(--space-4);
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px; height: 6px;
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-6px); }
}

/* Chat Input */
.chat-input-area {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  background: rgba(8,11,20,0.5);
  backdrop-filter: blur(10px);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.chat-media-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--dur-fast);
  flex-shrink: 0;
}

.chat-media-btn:hover { color: var(--violet-light); }

.chat-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.chat-input {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-10) 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  font-size: 0.875rem;
  transition: all var(--dur-fast);
}

.chat-input:focus {
  border-color: var(--violet);
  background: var(--bg-glass-hover);
}

.chat-emoji-btn {
  position: absolute;
  right: 36px;
  font-size: 1rem;
  transition: transform var(--dur-fast);
}

.chat-emoji-btn:hover { transform: scale(1.2); }

.chat-ai-reply-btn {
  position: absolute;
  right: var(--space-3);
  color: var(--violet-light);
  transition: transform var(--dur-fast);
}

.chat-ai-reply-btn:hover { transform: scale(1.2); }

.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--grad-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease-spring);
  box-shadow: var(--shadow-glow-v);
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-v), 0 4px 16px rgba(124,58,237,0.4);
}

.ai-smart-replies {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.ai-replies-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.ai-reply-chip {
  height: 26px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.ai-reply-chip:hover {
  background: var(--violet-dim);
  color: var(--violet-light);
  border-color: rgba(124,58,237,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   LIVE STREAMING
═══════════════════════════════════════════════════════════════ */
.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.go-live-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 38px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--rose);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--dur-base) var(--ease-spring);
  box-shadow: var(--shadow-glow-r);
}

.go-live-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-r), 0 4px 20px rgba(244,63,94,0.4);
}

.live-dot-btn {
  width: 8px; height: 8px;
  background: white;
  border-radius: var(--radius-full);
  animation: livePulse 1s ease-in-out infinite;
}

.featured-live-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xl);
}

.featured-live-media {
  position: relative;
}

.featured-live-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.featured-live-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-4);
}

.live-top-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.live-badge-large {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--rose);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-dot-large {
  width: 7px; height: 7px;
  background: white;
  border-radius: var(--radius-full);
  animation: livePulse 1s ease-in-out infinite;
}

.live-viewers {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-duration {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.live-bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.live-host-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.live-host-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid white;
}

.live-host-name {
  display: block;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.live-host-title {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}

.live-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.live-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--dur-fast);
}

.live-action-btn:hover { background: rgba(255,255,255,0.25); }

.live-join-btn {
  height: 36px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--dur-base) var(--ease-spring);
}

.live-join-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-v);
}

/* Live Comments Overlay */
.live-comments-overlay {
  position: absolute;
  bottom: 80px;
  left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.live-comment {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  animation: commentSlide 0.3s var(--ease-out);
}

@keyframes commentSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.live-comment img {
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.live-comment-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violet-light);
}

.live-comment-text {
  font-size: 0.75rem;
  color: white;
}

/* Live Grid */
.live-grid-section { margin-bottom: var(--space-6); }

.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.live-grid-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring);
}

.live-grid-card:hover { transform: scale(1.02); }

.live-grid-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.live-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-2);
}

.live-badge-small {
  background: var(--rose);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.live-grid-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.live-grid-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.live-grid-viewers {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════════════════
   COMMUNITIES
═══════════════════════════════════════════════════════════════ */
.communities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.create-community-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  color: var(--violet-light);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(124,58,237,0.3);
  transition: all var(--dur-fast);
}

.create-community-btn:hover {
  background: var(--violet);
  color: white;
}

.your-communities { margin-bottom: var(--space-8); }

.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-smooth);
}

.community-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.community-card-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-emoji { font-size: 2rem; }

.community-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.community-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.community-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.community-stats {
  display: flex;
  gap: var(--space-3);
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.community-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.community-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.community-badge-expert {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(245,158,11,0.2);
}

.community-badge-mod {
  background: var(--violet-dim);
  color: var(--violet-light);
  border: 1px solid rgba(124,58,237,0.2);
}

.community-badge-member {
  background: var(--bg-glass);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

/* Challenges */
.challenges-section { margin-bottom: var(--space-6); }

.challenges-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.challenges-scroll::-webkit-scrollbar { display: none; }

.challenge-card {
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease-smooth);
}

.challenge-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.challenge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.challenge-emoji { font-size: 1.5rem; }

.challenge-prize {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.challenge-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--violet-light);
}

.challenge-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.challenge-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.challenge-progress-bar {
  height: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.challenge-progress-fill {
  height: 100%;
  background: var(--grad-aurora);
  border-radius: var(--radius-full);
  transition: width var(--dur-slow) var(--ease-out);
}

.challenge-progress-text {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.challenge-join-btn {
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all var(--dur-base) var(--ease-spring);
}

.challenge-join-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-v);
}

/* ═══════════════════════════════════════════════════════════════
   AI CAMERA
═══════════════════════════════════════════════════════════════ */
.camera-studio { }

.camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.camera-mode-tabs {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.camera-mode-tab {
  height: 30px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: all var(--dur-fast);
}

.camera-mode-tab.active {
  background: var(--violet);
  color: white;
}

.camera-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-5);
}

.camera-preview-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.camera-viewfinder {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xl);
}

.camera-preview-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.camera-ui-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.camera-grid-lines {
  position: absolute;
  inset: 0;
}

.grid-line {
  position: absolute;
  background: rgba(255,255,255,0.15);
}

.grid-h1 { top: 33.33%; left: 0; right: 0; height: 1px; }
.grid-h2 { top: 66.66%; left: 0; right: 0; height: 1px; }
.grid-v1 { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.grid-v2 { left: 66.66%; top: 0; bottom: 0; width: 1px; }

.camera-ai-tags {
  position: absolute;
  inset: 0;
}

.ai-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(124,58,237,0.4);
  pointer-events: auto;
}

.ai-tag-dot {
  width: 6px; height: 6px;
  background: var(--violet);
  border-radius: var(--radius-full);
  animation: livePulse 1.5s ease-in-out infinite;
}

.ai-tag-label { color: rgba(255,255,255,0.9); }

.camera-ai-score {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,58,237,0.3);
  pointer-events: auto;
}

.ai-score-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-score-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--emerald);
}

.camera-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.camera-ctrl-btn {
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
  overflow: hidden;
}

.camera-ctrl-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.camera-gallery-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.camera-shutter-btn {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: white;
  border: 4px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-spring);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

.camera-shutter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.15);
}

.camera-shutter-btn:active { transform: scale(0.95); }

.shutter-inner {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid rgba(0,0,0,0.1);
}

/* Camera Tools Panel */
.camera-tools-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tools-panel-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.ai-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-2);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: 0.65rem;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.ai-tool-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.ai-tool-btn.active {
  background: var(--violet-dim);
  color: var(--violet-light);
  border-color: rgba(124,58,237,0.3);
}

.ai-tool-icon { font-size: 1.2rem; }

.filters-scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.filters-scroll::-webkit-scrollbar { display: none; }

.filter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-preview {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all var(--dur-fast);
}

.filter-item.active .filter-preview {
  border-color: var(--violet);
  box-shadow: var(--shadow-glow-v);
}

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

.filter-aurora img { filter: hue-rotate(240deg) saturate(1.5); }
.filter-noir img { filter: grayscale(1) contrast(1.2); }
.filter-golden img { filter: sepia(0.5) saturate(1.5) brightness(1.1); }
.filter-neon img { filter: hue-rotate(180deg) saturate(2) brightness(0.9); }

.filter-item span {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

/* AI Caption Generator */
.ai-caption-generator {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.05));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ai-caption-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violet-light);
}

.ai-caption-output {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

.ai-caption-actions {
  display: flex;
  gap: var(--space-2);
}

.ai-caption-btn {
  flex: 1;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.ai-caption-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.ai-caption-use {
  background: var(--violet-dim);
  color: var(--violet-light);
  border-color: rgba(124,58,237,0.3);
}

.ai-caption-use:hover {
  background: var(--violet);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   STORIES CREATOR
═══════════════════════════════════════════════════════════════ */
.stories-creator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.stories-publish-btn {
  height: 38px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--dur-base) var(--ease-spring);
  box-shadow: var(--shadow-glow-v);
}

.stories-publish-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-v), 0 4px 20px rgba(124,58,237,0.4);
}

.stories-creator-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-5);
}

.story-canvas-area {
  display: flex;
  justify-content: center;
}

.story-canvas {
  position: relative;
  width: 280px;
  height: 500px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.story-canvas-bg {
  width: 100%; height: 100%;
  object-fit: cover;
}

.story-canvas-elements {
  position: absolute;
  inset: 0;
}

.story-element {
  position: absolute;
  cursor: move;
}

.story-text-content {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.story-poll {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  min-width: 220px;
  border: 1px solid rgba(255,255,255,0.2);
}

.story-poll-question {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: var(--space-3);
}

.story-poll-options {
  display: flex;
  gap: var(--space-2);
}

.story-poll-option {
  flex: 1;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all var(--dur-fast);
}

.story-poll-option:hover { background: rgba(255,255,255,0.35); }

.story-tools-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.story-elements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.story-element-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-2);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: 0.65rem;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.story-element-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.story-element-btn span:first-child { font-size: 1.2rem; }

.story-templates-scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.story-templates-scroll::-webkit-scrollbar { display: none; }

.story-template {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  flex-shrink: 0;
}

.story-template img {
  width: 60px; height: 100px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--dur-fast);
}

.story-template.active img {
  border-color: var(--violet);
  box-shadow: var(--shadow-glow-v);
}

.story-template span {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   MARKETPLACE
═══════════════════════════════════════════════════════════════ */
.marketplace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.marketplace-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--dur-fast);
}

.marketplace-search:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}

.marketplace-search input {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-primary);
  width: 180px;
}

.marketplace-search input::placeholder { color: var(--text-tertiary); }

.featured-store-banner {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border-subtle);
}

.featured-store-bg {
  position: absolute;
  inset: 0;
}

.featured-store-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.featured-store-avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--violet);
}

.featured-store-info { flex: 1; }

.featured-store-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 2px;
}

.featured-store-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.featured-store-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.featured-store-visit {
  height: 36px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--dur-base) var(--ease-spring);
}

.featured-store-visit:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-v);
}

.product-categories {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-6);
  scrollbar-width: none;
}

.product-categories::-webkit-scrollbar { display: none; }

.product-cat {
  height: 32px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--dur-fast);
}

.product-cat:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.product-cat.active {
  background: var(--violet-dim);
  color: var(--violet-light);
  border-color: rgba(124,58,237,0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-smooth);
}

.product-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.product-card:hover .product-image { transform: scale(1.03); }

.product-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--gold);
  color: var(--text-inverse);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-badge-new { background: var(--emerald); color: white; }
.product-badge-limited { background: var(--rose); color: white; }

.product-wishlist-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.product-card:hover .product-wishlist-btn { opacity: 1; }

.product-info {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-creator {
  font-size: 0.7rem;
  color: var(--violet-light);
  font-weight: 600;
}

.product-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.stars {
  font-size: 0.75rem;
  color: var(--gold);
}

.rating-count {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-buy-btn {
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--dur-fast) var(--ease-spring);
}

.product-buy-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-v);
}

/* ═══════════════════════════════════════════════════════════════
   PRIVACY DASHBOARD
═══════════════════════════════════════════════════════════════ */
.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.privacy-score-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-dim);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(16,185,129,0.2);
}

.privacy-overview-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.05));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.privacy-overview-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.privacy-shield-icon {
  width: 56px; height: 56px;
  background: var(--emerald-dim);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-overview-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.privacy-overview-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.privacy-stats-row {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.privacy-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privacy-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emerald);
}

.privacy-stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.privacy-controls-section { margin-bottom: var(--space-6); }

.privacy-controls-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.privacy-control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  transition: background var(--dur-fast);
}

.privacy-control-item:hover { background: var(--bg-elevated); }

.privacy-control-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.privacy-control-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.privacy-control-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.privacy-select {
  height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease-smooth);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease-spring);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--violet);
  border-color: var(--violet);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: white;
}

.privacy-enabled-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-dim);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Data Transparency */
.data-transparency-section { margin-bottom: var(--space-6); }

.data-transparency-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.data-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-fast);
}

.data-item:last-child { border-bottom: none; }
.data-item:hover { background: var(--bg-glass); }

.data-item span {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.data-download-btn {
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.data-download-btn:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(6,182,212,0.3);
}

.data-item-danger:hover { background: rgba(244,63,94,0.05); }

.data-delete-btn {
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rose);
  transition: all var(--dur-fast);
}

.data-delete-btn:hover {
  background: var(--rose);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   WELLNESS DASHBOARD
═══════════════════════════════════════════════════════════════ */
.wellness-header {
  margin-bottom: var(--space-6);
}

.wellness-subtitle {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.usage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.usage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.usage-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.usage-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.usage-time-display {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.usage-circle {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
}

.usage-ring {
  width: 120px; height: 120px;
}

.usage-circle-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.usage-time-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.usage-time-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.usage-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.usage-breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.usage-breakdown-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.usage-breakdown-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--dur-slow) var(--ease-out);
}

.usage-breakdown-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  min-width: 100px;
}

.usage-breakdown-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

/* Wellness Goals */
.wellness-goals-section { margin-bottom: var(--space-6); }

.wellness-goals-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.wellness-goal-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  transition: background var(--dur-fast);
}

.wellness-goal-item:hover { background: var(--bg-elevated); }

.wellness-goal-icon { font-size: 1.2rem; flex-shrink: 0; }

.wellness-goal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.wellness-goal-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.wellness-goal-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.wellness-goal-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.wellness-goal-bar {
  height: 4px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.wellness-goal-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.wellness-goal-text {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.wellness-goal-edit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet-light);
  flex-shrink: 0;
  transition: color var(--dur-fast);
}

.wellness-goal-edit:hover { color: var(--cyan); }

/* Mood Check-in */
.mood-checkin-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(244,63,94,0.05));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.mood-checkin-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.mood-checkin-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
}

.mood-options {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--bg-glass);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-spring);
  min-width: 60px;
}

.mood-btn:hover {
  background: var(--bg-glass-hover);
  transform: scale(1.05);
}

.mood-btn.active {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet-light);
}

.mood-btn span:first-child { font-size: 1.5rem; }

.mood-ai-response {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-glass);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

.mood-ai-icon { font-size: 1.2rem; flex-shrink: 0; }

.mood-ai-response p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   REELS SCREEN
═══════════════════════════════════════════════════════════════ */
#screen-reels {
  max-width: 100%;
  padding: 0;
}

.reels-container {
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.reel-fullscreen {
  position: relative;
  height: 100%;
}

.reel-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.3) 100%),
              linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 40%);
  display: flex;
  align-items: flex-end;
}

.reel-right-actions {
  position: absolute;
  right: var(--space-4);
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.reel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-spring);
}

.reel-action:hover { transform: scale(1.1); }

.reel-bottom-info {
  padding: var(--space-5);
  flex: 1;
}

.reel-creator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.reel-creator-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid white;
}

.reel-creator-name {
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.reel-follow-btn {
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--dur-fast);
}

.reel-follow-btn:hover {
  background: white;
  color: var(--bg-base);
}

.reel-caption {
  font-size: 0.875rem;
  color: white;
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.reel-music {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════════════════════════════
   RIGHT SIDEBAR
═══════════════════════════════════════════════════════════════ */
.sidebar-right {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  scrollbar-width: none;
}

.sidebar-right::-webkit-scrollbar { display: none; }

.right-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.widget-see-all {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet-light);
  transition: color var(--dur-fast);
}

.widget-see-all:hover { color: var(--cyan); }

/* Suggested List */
.suggested-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.suggested-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.suggested-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

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

.suggested-name {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggested-reason {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggested-follow-btn {
  height: 26px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  color: var(--violet-light);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(124,58,237,0.3);
  flex-shrink: 0;
  transition: all var(--dur-fast);
}

.suggested-follow-btn:hover {
  background: var(--violet);
  color: white;
}

/* Trending List */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.trending-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: transform var(--dur-fast);
}

.trending-item:hover { transform: translateX(2px); }

.trending-rank {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-tertiary);
  min-width: 16px;
}

.trending-info { flex: 1; }

.trending-tag {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.trending-count {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.trending-fire { font-size: 0.9rem; }

/* Live Now Widget */
.live-dot-widget {
  width: 8px; height: 8px;
  background: var(--rose);
  border-radius: var(--radius-full);
  animation: livePulse 1.5s ease-in-out infinite;
}

.live-now-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.live-now-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.live-now-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--rose);
  flex-shrink: 0;
}

.live-now-info { flex: 1; }

.live-now-name {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.live-now-viewers {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.live-now-join {
  height: 26px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--rose-dim);
  color: var(--rose-light);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(244,63,94,0.3);
  flex-shrink: 0;
  transition: all var(--dur-fast);
}

.live-now-join:hover {
  background: var(--rose);
  color: white;
}

/* Footer */
.right-footer {
  padding: var(--space-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer-links a {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.footer-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   STORY VIEWER MODAL
═══════════════════════════════════════════════════════════════ */
.story-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-viewer-modal[hidden] { display: none; }

.story-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
}

.story-viewer-content {
  position: relative;
  width: 360px;
  height: 640px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.story-viewer-progress {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  z-index: 10;
}

.story-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: white;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width linear;
}

.story-viewer-header {
  position: absolute;
  top: var(--space-6);
  left: var(--space-3);
  right: var(--space-3);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.story-viewer-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.story-viewer-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid white;
}

.story-viewer-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.story-viewer-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}

.story-viewer-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}

.story-viewer-close:hover { background: rgba(0,0,0,0.6); }

.story-viewer-media {
  width: 100%; height: 100%;
}

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

.story-viewer-footer {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-3);
  right: var(--space-3);
  z-index: 10;
  display: flex;
  gap: var(--space-2);
}

.story-reply-input {
  flex: 1;
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.875rem;
}

.story-reply-input::placeholder { color: rgba(255,255,255,0.6); }

.story-reply-send {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease-spring);
}

.story-reply-send:hover {
  transform: scale(1.1);
  background: var(--violet-light);
}

/* ═══════════════════════════════════════════════════════════════
   CREATE MODAL
═══════════════════════════════════════════════════════════════ */
.create-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.create-modal[hidden] { display: none; }

.create-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
}

.create-modal-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalEnter var(--dur-slow) var(--ease-spring);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.create-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.create-modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.create-modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}

.create-modal-close:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.create-modal-body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.create-type-selector {
  display: flex;
  gap: var(--space-2);
}

.create-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.create-type-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.create-type-btn.active {
  background: var(--violet-dim);
  color: var(--violet-light);
  border-color: rgba(124,58,237,0.3);
}

.create-upload-area { }

.create-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--bg-glass);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--text-tertiary);
  transition: all var(--dur-fast);
  cursor: pointer;
}

.create-upload-zone:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet-light);
}

.upload-browse-btn {
  color: var(--violet-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.create-caption-area {
  display: flex;
  gap: var(--space-3);
}

.create-caption-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.create-caption-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.create-caption-input {
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  font-size: 0.875rem;
  resize: none;
  line-height: 1.5;
  transition: all var(--dur-fast);
}

.create-caption-input:focus {
  border-color: var(--violet);
  background: var(--bg-glass-hover);
}

.create-caption-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.caption-tool-btn {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}

.caption-tool-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.caption-ai-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  color: var(--violet-light);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(124,58,237,0.3);
  margin-left: auto;
  transition: all var(--dur-fast);
}

.caption-ai-btn:hover {
  background: var(--violet);
  color: white;
}

.create-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  gap: var(--space-4);
}

.create-settings {
  display: flex;
  gap: var(--space-2);
}

.create-setting-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.create-setting-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.create-publish-btn {
  height: 38px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--dur-base) var(--ease-spring);
  box-shadow: var(--shadow-glow-v);
}

.create-publish-btn:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow-v), 0 4px 20px rgba(124,58,237,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION PANEL
═══════════════════════════════════════════════════════════════ */
.notif-panel {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-2));
  right: var(--space-4);
  width: 380px;
  max-height: 500px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  z-index: 150;
  overflow: hidden;
  animation: notifEnter var(--dur-base) var(--ease-out);
}

.notif-panel[hidden] { display: none; }

@keyframes notifEnter {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.notif-panel-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.notif-mark-all {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet-light);
  transition: color var(--dur-fast);
}

.notif-mark-all:hover { color: var(--cyan); }

.notif-list {
  overflow-y: auto;
  max-height: 420px;
  scrollbar-width: none;
}

.notif-list::-webkit-scrollbar { display: none; }

.notif-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-fast);
  cursor: pointer;
}

.notif-item:hover { background: var(--bg-glass); }

.notif-unread { background: rgba(124,58,237,0.04); }

.notif-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.notif-system-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-content strong { color: var(--text-primary); }

.notif-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.notif-thumb img {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.notif-follow-back {
  height: 26px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  color: var(--violet-light);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(124,58,237,0.3);
  flex-shrink: 0;
  transition: all var(--dur-fast);
}

.notif-follow-back:hover {
  background: var(--violet);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
═══════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(8,11,20,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 0 var(--space-4);
  align-items: center;
  justify-content: space-around;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  transition: all var(--dur-fast) var(--ease-spring);
}

.mobile-nav-btn.active { color: var(--violet-light); }

.mobile-nav-btn:hover { transform: scale(1.1); }

.mobile-create-btn {
  width: 52px; height: 52px;
}

.mobile-create-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow-v);
}

.mobile-nav-avatar {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--text-tertiary);
}

.mobile-nav-btn.active .mobile-nav-avatar {
  border-color: var(--violet);
}

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADERS
═══════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-glass) 25%,
    var(--bg-glass-hover) 50%,
    var(--bg-glass) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING
═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ═══════════════════════════════════════════════════════════════
   FOCUS STYLES (ACCESSIBILITY)
═══════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  :root {
    --sidebar-right-w: 240px;
  }
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: var(--sidebar-left-w) 1fr;
  }

  .sidebar-right { display: none; }

  .camera-layout {
    grid-template-columns: 1fr;
  }

  .stories-creator-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-left-w: 0px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    padding-bottom: 64px;
  }

  .sidebar-left { display: none; }
  .mobile-bottom-nav { display: flex; }

  .top-nav-inner {
    padding: 0 var(--space-4);
  }

  .nav-search { display: none; }

  .screen {
    padding: var(--space-4);
  }

  .feed-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .monetization-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .profile-info-row {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -40px;
  }

  .profile-actions-col {
    flex-direction: row;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .chat-window { display: none; }

  .ai-picks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-pick-tall { grid-row: span 1; }
  .ai-pick-tall img { min-height: 160px; }
  .ai-pick-wide { grid-column: span 2; }

  .live-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-cards-grid {
    grid-template-columns: 1fr;
  }

  .revenue-card-inner {
    flex-direction: column;
  }

  .notif-panel {
    right: var(--space-2);
    left: var(--space-2);
    width: auto;
  }
}

@media (max-width: 480px) {
  .feed-mode-toggle {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-stats-bar {
    gap: var(--space-3);
  }

  .profile-grid {
    padding: var(--space-3);
  }

  .ai-picks-grid {
    grid-template-columns: 1fr;
  }

  .ai-pick-wide { grid-column: span 1; }

  .live-grid {
    grid-template-columns: 1fr;
  }

  .create-type-selector {
    flex-wrap: wrap;
  }

  .create-type-btn {
    min-width: calc(50% - var(--space-1));
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════════════ */
@media print {
  .aurora-bg,
  .top-nav,
  .sidebar-left,
  .sidebar-right,
  .mobile-bottom-nav { display: none; }

  .main-layout { grid-template-columns: 1fr; }
  .content-area { border: none; }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}