/* ============================================
   TYCHES DESIGN SYSTEM
   Light theme, purple accent, rounded cards, soft shadows
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: #818CF8;
  --secondary: #8B5CF6;
  --accent: #EC4899;

  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #64748B;

  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;

  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --gradient-hero: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-md) 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* User pill in nav */
.user-pill {
  position: relative;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.user-pill:hover {
  background: var(--bg-tertiary);
}

.user-pill > span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 180px;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--border);
  z-index: 100;
}

.user-pill.open .user-dropdown {
  display: flex;
}

.user-dropdown button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.user-dropdown button:hover {
  background: var(--bg-tertiary);
}

.user-dropdown button:last-child {
  color: var(--error);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-market {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-market:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: var(--spacing-xl) 0 var(--spacing-2xl) 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-small-copy {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual / phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 320px;
  height: 580px;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 12px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: 32px;
  padding: 50px 16px 20px;
  overflow: hidden;
}

.market-card-preview {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.preview-avatar-group {
  display: flex;
}

.preview-avatar-group .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: -8px;
  border: 2px solid #fff;
}

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

.preview-badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.preview-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.preview-odds {
  display: flex;
  gap: 0.75rem;
}

.odds-pill {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.odds-pill.yes {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.odds-pill.no {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.odds-pill .odds-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.odds-pill.yes .odds-label { color: #059669; }
.odds-pill.no .odds-label { color: #dc2626; }

.odds-pill .odds-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.odds-pill.yes .odds-value { color: #059669; }
.odds-pill.no .odds-value { color: #dc2626; }

.odds-pill .odds-percent {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.preview-activity {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.activity-icon {
  font-size: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Featured Markets */
.featured-markets {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-primary);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Market Card */
.market-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.market-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.market-creator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.creator-name {
  font-weight: 600;
  color: var(--text-primary);
}

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

.market-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.market-badge.active {
  background: var(--success-light);
  color: var(--success);
}

.market-badge.closed {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.market-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.preview-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: justify;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 8px 0 12px 0;
  padding: 0;
}

.market-odds {
  margin-top: auto;
}

.odds-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.odds-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.odds-fill.yes {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
}

.odds-fill.no {
  background: linear-gradient(90deg, #F87171 0%, #EF4444 100%);
}

.odds-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.odds-label-yes {
  color: #059669;
}

.odds-label-no {
  color: #dc2626;
}

.market-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.market-volume {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-icon {
  font-size: 3rem;
  margin: 1rem 0;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   FEATURES / WHY TYCHES
   ============================================ */

.features {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-name {
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.about-name h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* ============================================
   DASHBOARD (logged-in)
   ============================================ */

.dashboard {
  padding: var(--spacing-xl) 0;
  padding-top: calc(72px + var(--spacing-xl)); /* Account for fixed header */
  background: var(--bg-secondary);
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-column-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Event rows */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-row {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.event-row:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.event-row-main {
  flex: 1;
}

.event-row-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.event-row-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.event-row-odds {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-right: 12px;
}

.event-row-odds.resolved {
  color: var(--text-secondary);
}

/* Activity list */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-row {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.activity-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.activity-text strong {
  color: var(--text-primary);
}

/* ============================================
   CARDS (generic)
   ============================================ */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
select,
textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

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

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-success {
  color: var(--success);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ============================================
   MODALS
   ============================================ */

.modal-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 0.25rem;
  line-height: 1;
  transition: var(--transition);
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ============================================
   GOSSIP FEED
   ============================================ */

.gossip-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gossip-item {
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.gossip-item:nth-child(odd) {
  background: var(--bg-secondary);
}

.gossip-item:nth-child(even) {
  background: var(--bg-tertiary);
}

.gossip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.gossip-content {
  flex: 1;
}

.gossip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

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

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

.gossip-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gossip-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.gossip-form textarea {
  flex: 1;
  min-height: 60px;
}

/* ============================================
   EVENT PAGE
   ============================================ */

.event-page {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 80px);
}

.event-page-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}

.event-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.event-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.event-description-old {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.event-odds-display {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.odds-button {
  flex: 1;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.odds-button.yes {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.odds-button.yes:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success);
}

.odds-button.no {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.odds-button.no:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--error);
}

.odds-button .odds-side {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.odds-button.yes .odds-side { color: #059669; }
.odds-button.no .odds-side { color: #dc2626; }

.odds-button .odds-price {
  font-size: 1.75rem;
  font-weight: 700;
}

.odds-button.yes .odds-price { color: #059669; }
.odds-button.no .odds-price { color: #dc2626; }

.event-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.event-stat {
  text-align: center;
}

.event-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* Trade actions */
.trade-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.trade-actions button {
  flex: 1;
}

.event-detail-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Multiple choice outcomes */
.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.outcome-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.outcome-pill:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-light);
}

.outcome-label {
  font-weight: 500;
  color: var(--text-primary);
}

.outcome-prob {
  font-weight: 600;
  color: var(--primary);
}

.outcomes-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Trade card styling */
.trade-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.binary-odds-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.odds-button {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.odds-button.yes {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.odds-button.yes:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success);
  transform: translateY(-2px);
}

.odds-button.no {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.odds-button.no:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--error);
  transform: translateY(-2px);
}

.odds-button .odds-side {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.odds-button.yes .odds-side { color: #059669; }
.odds-button.no .odds-side { color: #dc2626; }

.odds-button .odds-price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.odds-button.yes .odds-price { color: #059669; }
.odds-button.no .odds-price { color: #dc2626; }

.odds-button .odds-chance {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.odds-bar-container {
  margin-top: 0.5rem;
}

/* Outcomes list for multiple choice */
.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.outcomes-list .outcome-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: left;
  width: 100%;
}

.outcomes-list .outcome-pill:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.outcome-info {
  flex: 1;
}

.outcomes-list .outcome-label {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
}

.outcome-odds {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.outcomes-list .outcome-prob {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.outcome-price {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Event header improvements */
.event-header-content {
  text-align: left;
}

.event-header .event-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.event-header .event-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.event-market-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.event-market-link:hover {
  text-decoration: underline;
}

/* Event details stats - legacy */
.event-description-legacy {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.event-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-stat-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.event-stat-box:last-child {
  border-bottom: none;
}

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

.event-stat-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Event sidebar */
.event-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============================================
   MARKET PAGE
   ============================================ */

.market-page {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 80px);
}

.market-header-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.market-page-header {
  margin-bottom: 0;
}

.market-name {
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.market-desc {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.market-members {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.member-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.member-chip .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Market page layout */
.market-page-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.market-page-avatar {
  font-size: 2.5rem;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

.member-row:hover {
  background: var(--bg-secondary);
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.member-name {
  font-weight: 500;
  color: var(--text-primary);
}

.member-info {
  flex: 1;
}

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

/* Market page grid layout */
.market-page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 1.5rem;
}

.market-main {
  min-width: 0;
}

.market-main .card {
  padding: 1.5rem;
}

.market-sidebar {
  min-width: 0;
}

.market-sidebar .card {
  position: sticky;
  top: 100px;
  padding: 1.5rem;
}

.market-sidebar h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Market page header card */

.market-page-info {
  flex: 1;
}

.market-page-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.market-stat-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Loading state */
.loading-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-tertiary);
}

/* Status badges in event rows */
.event-row .status-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
}

/* Event page layout */
.event-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 1.5rem;
}

.event-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-header {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.event-header .loading-state {
  text-align: center;
  color: var(--text-tertiary);
}

.event-header .event-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.event-header .event-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Event activity chart (recent trading strip) */
.event-activity-chart {
  margin-top: 1rem;
  padding: 0.75rem 0 0.75rem;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--border-light);
}

.activity-chart-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.activity-chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.activity-chart-graph-wrapper {
  position: relative;
  width: 100%;
  height: 64px;
  margin-top: 0.25rem;
}

.activity-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.activity-chart-line {
  fill: none;
  stroke: var(--primary-light);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.activity-chart-dot {
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 1;
}

.activity-chart-avatars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.activity-chart-avatar {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0f172a;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.activity-chart-avatar.yes {
  background: linear-gradient(135deg, #059669, #16a34a);
  border-color: rgba(22, 163, 74, 0.9);
}

.activity-chart-avatar.no {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-color: rgba(239, 68, 68, 0.9);
}

.activity-chart-empty {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* Bar-style activity chart (top traders) */
.activity-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  min-height: 80px;
}

.activity-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.activity-bar-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.activity-bar-column {
  position: relative;
  width: 100%;
  max-width: 32px;
  height: 56px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  overflow: hidden;
  margin-top: 0.25rem;
}

.activity-bar-fill {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 4px 4px 0 0;
  background: #2563eb;
  box-shadow: none;
}

.activity-bar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0f172a;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.8);
  margin-bottom: 0.15rem;
}

.activity-bar-label {
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  max-width: 64px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.event-trade-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.event-gossip {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.event-gossip h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-sidebar {
  min-width: 0;
}

.event-sidebar h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

#event-details {
  /* Styles are in the parent .card */
}

.event-sidebar .card {
  padding: 1.5rem;
}

#event-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.gossip-compose {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gossip-login-hint {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

@media (max-width: 900px) {
  .market-page-grid {
    grid-template-columns: 1fr;
  }
  
  .market-sidebar .card {
    position: static;
  }
  
  .event-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CREATE EVENT PAGE
   ============================================ */

.create-event-page {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 80px);
}

.create-event-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.type-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.type-toggle button {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.type-toggle button.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  color: var(--primary);
}

.slider-group {
  margin-bottom: 1.5rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.slider-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.slider-label.yes { color: #059669; }
.slider-label.no { color: #dc2626; }

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #10B981 0%, #10B981 var(--value, 50%), #EF4444 var(--value, 50%), #EF4444 100%);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  cursor: pointer;
}

/* Pill toggle (binary/multiple choice) */
.pill-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill-toggle button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.pill-toggle button:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.pill-toggle button.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  font-weight: 600;
}

/* Binary row (YES/NO inputs side by side) */
.binary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.binary-row > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.binary-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.binary-row input[readonly] {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

/* Multiple outcome rows */
.multiple-outcome-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.multiple-outcome-row .multi-label {
  flex: 1;
}

.multiple-outcome-row .multi-prob {
  width: 80px;
}

.multiple-outcome-row .remove-outcome {
  background: none;
  border: none;
  color: var(--error);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: var(--transition);
}

.multiple-outcome-row .remove-outcome:hover {
  color: #b91c1c;
}

/* Help text */
.help-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* Dynamic outcome rows */
.outcomes-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.outcome-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.outcome-row input[type="text"] {
  flex: 1;
}

.outcome-row input[type="number"] {
  width: 80px;
}

.outcome-row .btn-remove {
  background: none;
  border: none;
  color: var(--error);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.btn-add-outcome {
  align-self: flex-start;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-page {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 80px);
}

.profile-header {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  min-height: 120px;
}

.profile-header:empty::after {
  content: 'Loading profile...';
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-username {
  color: var(--text-secondary);
}

.profile-meta {
  flex: 1;
}

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

.profile-username {
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.25rem;
}

.profile-email {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.profile-stats {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.profile-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.profile-section {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-section-header h2 {
  margin-bottom: 0;
}

.friends-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.friends-actions input {
  width: 200px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.friends-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.friends-search-results {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.profile-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Friends list */
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.friend-row:hover {
  background: var(--bg-secondary);
}

.friend-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.friend-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-weight: 500;
}

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

.friend-actions {
  display: flex;
  gap: 0.5rem;
}

.friends-requests {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.friends-requests:empty {
  display: none;
}

/* Bets list */
.bets-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.bet-event {
  font-weight: 500;
  font-size: 0.9rem;
}

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

.bet-side {
  font-weight: 600;
  font-size: 0.85rem;
}

.bet-side.yes { color: #059669; }
.bet-side.no { color: #dc2626; }

/* ============================================
   ADMIN PAGE
   ============================================ */

.admin-page {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 80px);
}

.admin-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.15);
  margin-bottom: 1.5rem;
}

.admin-tab {
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

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

.admin-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.admin-left,
.admin-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-secondary);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.open {
  background: var(--success-light);
  color: var(--success);
}

.status-badge.closed {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-badge.resolved {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.admin-metric-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.admin-metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}

.admin-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-metric-sub {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-metric-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.admin-chart h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-list-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.admin-list-item:last-child {
  border-bottom: none;
}

.admin-list-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.admin-list-body {
  flex: 1;
  min-width: 0;
}

.admin-list-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-list-sub {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.4rem;
  margin-left: 0.25rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}

.admin-users-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-users-actions input {
  max-width: 260px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.admin-users-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-users-pagination button {
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.admin-users-pagination button:hover:not(:disabled) {
  background: var(--bg-tertiary);
}

.admin-users-pagination button:disabled {
  opacity: 0.5;
  cursor: default;
}

.admin-users-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-users-row-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

@media (max-width: 1024px) {
  .admin-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }

  .admin-charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VERIFY PAGE
   ============================================ */

.verify-body {
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.verify-wrapper {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

.verify-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.verify-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.verify-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s ease-out;
  border-left: 4px solid var(--primary);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--error);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .event-page-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    gap: 0.75rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .markets-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

/* Empty states */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-tertiary);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.markets-grid:empty::after,
.events-list:empty::after,
.friends-list:empty::after,
.bets-list:empty::after {
  content: 'Nothing here yet';
  display: block;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* Create event layout */
.create-event-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.create-event-main {
  min-width: 0;
}

.create-event-preview {
  position: sticky;
  top: 100px;
}

.create-event-preview .market-card.preview {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.create-event-preview .market-card.preview:empty::after {
  content: 'Your event preview will appear here';
}

@media (max-width: 900px) {
  .create-event-layout {
    grid-template-columns: 1fr;
  }
  
  .create-event-preview {
    position: static;
  }
  
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

/* Trade Modal */
.trade-modal {
  max-width: 480px;
}

.trade-modal-event {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.trade-modal-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.trade-modal-outcome {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
}

.trade-modal-outcome.yes {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.trade-modal-outcome.no {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.trade-modal-outcome.multiple {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

.trade-form .form-group {
  margin-bottom: 1rem;
}

.trade-form input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
}

.trade-form .form-hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.trade-summary {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.5rem 0;
}

.trade-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.trade-summary-row:first-child {
  border-bottom: 1px solid var(--border-light);
}

.trade-summary-row span:first-child {
  color: var(--text-secondary);
}

.trade-summary-row span:last-child {
  font-weight: 600;
}

.text-success {
  color: #059669 !important;
}

.trade-actions-modal {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.trade-actions-modal button {
  flex: 1;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background: #059669;
}

.toast-error {
  background: #dc2626;
}

.toast-info {
  background: var(--primary);
}

/* Improved Gossip Styles */
.gossip-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  margin-bottom: 0.75rem;
}

.gossip-item.alt {
  background: #fff;
  border: 1px solid var(--border-light);
}

.gossip-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.gossip-content {
  flex: 1;
  min-width: 0;
}

.gossip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.gossip-name {
  font-weight: 600;
  color: var(--text-primary);
}

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

.gossip-message {
  color: var(--text-secondary);
  line-height: 1.5;
  word-wrap: break-word;
}

.gossip-compose {
  margin-top: 1.5rem;
}

.gossip-compose textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}

.gossip-compose textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.gossip-compose .btn-primary {
  width: 100%;
  margin-top: 0.75rem;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-tertiary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ============================================
   COOKIE BANNER
   ============================================ */

#cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 0.85rem 0;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
}

#cookie-banner > div {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

#cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
}

#cookie-banner a:hover {
  color: #e5e7eb;
}

#cookie-banner .cookie-actions,
#cookie-banner > div > div:last-child {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#cookie-banner button {
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(249, 250, 251, 0.7);
  transition: var(--transition);
}

#cookie-banner button:first-child {
  background: #020617;
  color: #f9fafb;
}

#cookie-banner button:first-child:hover {
  background: #f9fafb;
  color: #020617;
}

#cookie-banner button:last-child {
  background: transparent;
  color: #d1d5db;
  border-color: #4b5563;
}

#cookie-banner button:last-child:hover {
  background: #374151;
  color: #f9fafb;
}

/* ============================================
   EVENT MANAGEMENT SECTION
   ============================================ */

.event-management-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 2px solid rgba(245, 158, 11, 0.2) !important;
}

.event-management-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
}

.event-management-status .status-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.open {
  background: var(--success-bg, rgba(16, 185, 129, 0.1));
  color: var(--success-color, #059669);
}

.status-badge.closed {
  background: var(--warning-bg, rgba(245, 158, 11, 0.1));
  color: var(--warning-color, #d97706);
}

.status-badge.resolved {
  background: var(--info-bg, rgba(59, 130, 246, 0.1));
  color: var(--info-color, #2563eb);
}

#event-status-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.event-management-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.resolve-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-resolve {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-resolve-yes {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-resolve-yes:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #059669;
}

.btn-resolve-no {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-resolve-no:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #dc2626;
}

.resolve-outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-resolve-outcome {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 2px solid rgba(99, 102, 241, 0.2);
  text-align: left;
}

.btn-resolve-outcome:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.resolved-info {
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  text-align: center;
}

.resolved-winner {
  font-size: 1.1rem;
  color: #059669;
}

.form-message {
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ============================================
   EVENT INVITE SECTION - PROMINENT STYLE
   ============================================ */

/* Prominent Invite Card */
.invite-card-prominent {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid rgba(99, 102, 241, 0.2) !important;
  position: relative;
  overflow: hidden;
}

.invite-card-prominent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
}

.invite-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.invite-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.invite-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.invite-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite-input-group {
  display: flex;
  gap: 8px;
}

.invite-email-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
  background: var(--bg-primary);
  transition: all 0.2s ease;
}

.invite-email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-invite-add {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-invite-add:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.invite-emails-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invite-email-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.invite-email-chip button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.invite-email-chip button:hover {
  color: #ef4444;
}

.btn-send-invites {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 600;
  margin-top: 4px;
}

.btn-send-invites:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.invite-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.875rem;
}

.invite-result.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.invite-result.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Legacy styles */
.invite-members-card {
  margin-top: 1.5rem;
}

.invite-members-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.invite-icon,
.members-icon {
  font-size: 1.2rem;
}

.invite-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.invite-input-group {
  display: flex;
  gap: 0.5rem;
}

.invite-email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.invite-email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

.btn-invite {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.invite-emails-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 0;
}

.invite-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem 0.375rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-primary);
  animation: chipIn 0.2s ease-out;
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chip-email {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.chip-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.btn-send-invites {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-send-invites:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.invite-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  animation: slideIn 0.3s ease-out;
}

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

.invite-result.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.invite-result.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.result-icon {
  font-weight: 700;
}

/* ============================================
   EVENT MEMBERS SECTION
   ============================================ */

.members-card {
  margin-top: 1.5rem;
}

.members-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.member-item:hover {
  background: var(--bg-tertiary);
}

.member-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
}

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

.member-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-role {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.empty-members {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ============================================
   CARD HEADER ROW
   ============================================ */

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-header-row h3 {
  margin-bottom: 0;
}

/* Small button variant */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
}

.btn-invite-members {
  gap: 0.25rem;
}

/* Invite Modal Specific */
.invite-modal {
  max-width: 520px;
}

.invite-modal .modal-body {
  padding-bottom: 0;
}

.invite-modal .invite-description {
  margin-bottom: 1.25rem;
}

.invite-modal .invite-form {
  gap: 0.875rem;
}

.invite-modal .invite-emails-list {
  min-height: 60px;
  max-height: 150px;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.invite-modal .invite-emails-list:empty::before {
  content: 'Email addresses will appear here...';
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-style: italic;
}

/* Old cookie banner styles removed - see new .cookie-banner styles */

/* ============================================
   LEGAL PAGES (Terms, Privacy)
   ============================================ */

.legal-page {
  background: var(--bg-primary);
}

.legal-content {
  padding: 2rem 1rem 4rem;
  min-height: calc(100vh - 80px - 200px);
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-section li strong {
  color: var(--text-primary);
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.legal-section a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.legal-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.legal-highlight h3,
.legal-highlight h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.legal-highlight p {
  margin-bottom: 0.75rem;
}

.legal-highlight p:last-child {
  margin-bottom: 0;
}

.legal-highlight ul {
  margin-bottom: 0;
}

.legal-highlight.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.legal-highlight.warning h3,
.legal-highlight.warning h4 {
  color: #f59e0b;
}

.contact-info {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.legal-footer p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-style: italic;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
  background: var(--bg-primary);
}

.contact-content {
  padding: 2rem 1rem 4rem;
  min-height: calc(100vh - 80px - 200px);
}

.contact-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.contact-info-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-intro {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.contact-method:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-method-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.contact-method-details h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.contact-method-details a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-method-details a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.contact-method-details p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 0;
}

.contact-topics {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.contact-topics li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.contact-topics li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Contact Form */
.contact-form-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group .required {
  color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.form-checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
}

.form-checkbox a {
  color: var(--primary);
  text-decoration: none;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

/* Friend Invite Section (Create Market) */
.invite-friends-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 12px;
  max-height: 180px;
  overflow-y: auto;
}

.invite-friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.friend-invite-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.friend-invite-chip:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.friend-invite-chip.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.friend-invite-chip .chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.friend-invite-chip .chip-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.friend-invite-chip .chip-check {
  display: none;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

.friend-invite-chip.selected .chip-check {
  display: inline;
}

.no-friends-hint {
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.no-friends-hint a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.no-friends-hint a:hover {
  text-decoration: underline;
}

/* Verification Prompt Modal */
.verify-prompt {
  text-align: center;
  padding: 1rem 0;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.verify-prompt p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.verify-prompt .verify-subtext {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.verify-actions .btn-primary,
.verify-actions .btn-secondary {
  width: 100%;
}

.verify-prompt .form-success,
.verify-prompt .form-error {
  margin-top: 1rem;
  text-align: left;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: #ef4444;
  font-size: 0.875rem;
}

.error-icon {
  flex-shrink: 0;
}

.btn-full {
  width: 100%;
}

/* Contact Success */
.contact-success {
  text-align: center;
  padding: 3rem 2rem;
}

.contact-success .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
}

.contact-success h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-success p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 1rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr;
  }
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-brand .logo span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand > p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.375rem 0;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  margin: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR LEGAL/CONTACT
   ============================================ */

@media (max-width: 768px) {
  .legal-header h1,
  .contact-info-section h1 {
    font-size: 2rem;
  }

  .legal-body {
    padding: 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .contact-form-section {
    padding: 1.5rem;
  }

  .footer-links {
    gap: 2rem;
  }
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.cookie-banner-text a:hover {
  opacity: 0.8;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.cookie-btn-accept {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.cookie-btn-accept:hover {
  background: white;
  color: black;
}

.cookie-btn-essential {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-essential:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   APP SHELL - LOGGED IN EXPERIENCE
   Modern tab-based navigation
   ============================================ */

.app-shell {
  --topbar-height: 64px;
  --sidebar-width: 240px;
  --bottomnav-height: 72px;
  font-family: 'Plus Jakarta Sans', var(--font-family);
  background: #f8f9fb;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* App Topbar */
.app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.app-logo svg {
  border-radius: 8px;
}

.topbar-center {
  flex: 1;
  max-width: 280px;
  margin: 0 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

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

/* Search Results Dropdown */
.search-bar {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

@media (max-width: 640px) {
  .search-results-dropdown {
    position: fixed;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    top: 72px;
  }
}

.search-loading,
.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.search-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.search-section:last-child {
  border-bottom: none;
}

.search-section-title {
  padding: 8px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: var(--bg-secondary);
}

.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.search-result-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

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

.search-result-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.search-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search-badge.open {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.search-badge.resolved {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.search-badge.closed {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-tertiary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header Create Button */
.topbar-create-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.topbar-create-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.topbar-create-btn:active {
  transform: translateY(0);
}

.topbar-create-btn svg {
  flex-shrink: 0;
}

/* Hide on mobile - already have bottom nav create button */
@media (max-width: 768px) {
  .topbar-create-btn {
    display: none;
  }
}

.token-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
}

.token-icon {
  font-size: 1rem;
}

.topbar-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

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

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--error);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu {
  position: relative;
}

.user-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  transition: transform 0.2s ease;
}

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

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  padding: 8px;
  display: none;
  z-index: 200;
}

.user-dropdown-menu.open {
  display: block;
}

.dropdown-user-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-user-name {
  font-weight: 600;
  color: var(--text-primary);
}

.dropdown-user-email {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

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

.dropdown-logout {
  color: var(--error);
}

.dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ============================================
   NOTIFICATIONS PANEL
   ============================================ */

.notifications-panel {
  position: fixed;
  top: var(--topbar-height);
  right: 16px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--topbar-height) - 32px);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.notifications-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.notifications-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.notifications-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.notifications-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.notifications-loading {
  padding: 40px;
  text-align: center;
  color: var(--text-tertiary);
}

.notifications-empty {
  padding: 40px 20px;
  text-align: center;
}

.notifications-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.notifications-empty p {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.notifications-empty span {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--bg-secondary);
}

.notification-item.unread {
  background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.notification-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notification-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.4;
}

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

.notifications-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.notifications-footer .btn-ghost {
  font-size: 0.8125rem;
}

/* ============================================
   SETTINGS MODAL
   ============================================ */

.settings-modal {
  max-width: 500px;
  width: 90%;
}

.settings-modal .modal-body {
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
}

.settings-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin: 0 0 16px;
}

.settings-section.danger-zone h3 {
  color: var(--error);
}

.settings-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.settings-item:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.settings-item-info {
  min-width: 0;
}

.settings-item-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.settings-item-value {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.settings-item-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
  line-height: 1.3;
}

.settings-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}

.settings-badge.verified {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.settings-select {
  padding: 8px 12px;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
}

.settings-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* 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;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-tertiary);
  border-radius: 24px;
  transition: 0.2s ease;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

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

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

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid currentColor;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: var(--error);
  color: white;
}

.btn-danger-solid {
  background: var(--error);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger-solid:hover {
  background: #dc2626;
}

.btn-danger-solid:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   DELETE ACCOUNT MODAL
   ============================================ */

.delete-account-modal {
  max-width: 480px;
  width: 90%;
}

.delete-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.delete-warning-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.delete-warning h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--error);
  margin: 0 0 12px;
}

.delete-warning p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.delete-warning ul {
  margin: 0;
  padding-left: 20px;
}

.delete-warning li {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.delete-warning li:last-child {
  margin-bottom: 0;
}

.delete-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* App Main Layout */
.app-main {
  display: flex;
  padding-top: var(--topbar-height);
  min-height: 100vh;
}

/* Sidebar Navigation */
.app-sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 90;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

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

.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--primary);
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
}

.sidebar-actions {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.create-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: white;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* App Content Area */
.app-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px;
  padding-bottom: 100px;
  overflow-x: hidden;
  max-width: calc(100vw - var(--sidebar-width));
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tab-panel.active {
  display: block;
}

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

/* Content Header */
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.content-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.content-header p {
  color: var(--text-tertiary);
  margin: 4px 0 0 0;
  font-size: 0.9375rem;
}

/* Verify Banner */
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.verify-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.verify-banner-icon {
  font-size: 1.5rem;
}

.verify-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verify-banner-text strong {
  color: #b45309;
  font-weight: 600;
}

.verify-banner-text span {
  font-size: 0.875rem;
  color: #92400e;
}

.verify-banner-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verify-banner-btn:hover {
  background: rgba(245, 158, 11, 0.3);
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.stat-icon {
  font-size: 1.75rem;
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* Feed Sections */
.feed-section {
  margin-bottom: 32px;
}


.section-header-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header-app h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.see-all-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.see-all-link:hover {
  text-decoration: underline;
}

/* Events Scroll - Simple horizontal scroll */
.events-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px 4px;
  margin: -8px -4px 0 -4px;
  max-width: calc(100% + 8px);
}

/* Center empty state in events scroll */
.events-scroll .empty-state-app {
  width: 100%;
  flex-shrink: 0;
  min-width: 100%;
}

/* Event Card (New Style) */
.event-card-app {
  min-width: 300px;
  width: 300px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.event-card-app:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.event-market-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.event-market-emoji {
  font-size: 1rem;
}

/* Status badges in event cards */
.event-card-app .status-badge,
.event-card-header > .status-badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

.event-card-app .status-badge.resolved {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.event-card-app .status-badge.closed {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.event-closing {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.event-closing.urgent {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.event-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-odds-bar {
  margin-bottom: 12px;
}

.odds-bar-track {
  height: 8px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.odds-bar-yes {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.odds-labels-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.odds-label-app {
  font-size: 0.8125rem;
  font-weight: 700;
}

.odds-label-app.yes { color: #059669; }
.odds-label-app.no { color: #dc2626; }

.event-meta-row {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Position Card */
.position-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.position-card:hover {
  border-color: var(--primary);
}

.position-info {
  flex: 1;
}

.position-question {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.position-market {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.position-side {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 6px;
}

.position-side.yes {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.position-side.no {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.position-stake {
  text-align: right;
}

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

.position-potential {
  font-size: 0.8125rem;
  color: var(--success);
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.activity-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.activity-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.activity-text strong {
  font-weight: 600;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.activity-market {
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-time {
  color: var(--text-tertiary);
}

/* Markets List */
.markets-list-app {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.market-card-app {
  padding: 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.market-card-app:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.market-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.market-avatar-app {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-secondary);
}

.market-info-app h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.market-info-app p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0;
}

.market-stats-app {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

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

.market-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* Leaderboard */
.leaderboard-container {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 60px 1fr 120px 120px;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 120px;
  gap: 16px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-row:hover {
  background: var(--bg-secondary);
}

.leaderboard-rank {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
}

.leaderboard-rank.gold { color: #f59e0b; }
.leaderboard-rank.silver { color: #94a3b8; }
.leaderboard-rank.bronze { color: #d97706; }

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
}

.leaderboard-name {
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-username {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.leaderboard-tokens,
.leaderboard-accuracy {
  font-weight: 700;
  color: var(--text-primary);
}

/* Profile Tab */
.profile-header-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.profile-info-app h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.profile-username {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
}

.profile-stats-row {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

.profile-content-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-section {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
}

.profile-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

/* Bottom Navigation (Mobile) */
.app-bottomnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottomnav-height);
  background: white;
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 100;
}

.bottomnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.bottomnav-item.active {
  color: var(--primary);
}

.bottomnav-item svg {
  width: 24px;
  height: 24px;
}

.create-btn-mobile .create-btn-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: translateY(-8px);
}

/* Create Menu */
.create-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
}

.create-menu {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  background: white;
  border-radius: 16px;
  padding: 8px;
  z-index: 151;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.create-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.create-menu-item:hover {
  background: var(--bg-secondary);
}

.create-menu-icon {
  font-size: 1.5rem;
}

.create-menu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.create-menu-title {
  font-weight: 600;
  color: var(--text-primary);
}

.create-menu-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Loading Placeholder */
.loading-placeholder {
  padding: 40px;
  text-align: center;
  color: var(--text-tertiary);
}

/* Empty State */
.empty-state-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon-app {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text-app {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .app-sidebar {
    display: none;
  }
  
  .app-content {
    margin-left: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .app-bottomnav {
    display: flex;
  }
  
  .app-content {
    padding-bottom: calc(var(--bottomnav-height) + 24px);
  }
  
  .topbar-center {
    display: none;
  }
  
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-content-app {
    grid-template-columns: 1fr;
  }
  
  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 50px 1fr 100px;
  }
  
  .leaderboard-accuracy {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-topbar {
    padding: 0 12px;
  }
  
  .app-content {
    padding: 16px;
    padding-bottom: calc(var(--bottomnav-height) + 16px);
  }
  
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
  
  .event-card-app {
    min-width: 260px;
    width: 260px;
  }
  
  .markets-list-app {
    grid-template-columns: 1fr;
  }
  
  .content-header h1 {
    font-size: 1.5rem;
  }
  
  .profile-stats-row {
    gap: 24px;
  }
}

/* ============================================
   SUBPAGE LAYOUTS - Market, Event, Profile, Create
   ============================================ */

/* Content Card (Shared) */
.content-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
}

.content-card h2,
.content-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.content-card-header h2,
.content-card-header h3 {
  margin: 0;
}

/* Market Detail Page */
.market-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.market-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg-secondary);
}

.market-detail-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.market-detail-info p {
  color: var(--text-tertiary);
  margin: 0;
}

.market-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.market-events-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.market-event-item:hover {
  background: var(--bg-tertiary);
}

.market-event-question {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.market-event-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.market-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.market-stat-item {
  text-align: center;
}

.market-stat-item .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* Members List */
.members-list-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

.member-name {
  font-weight: 500;
  color: var(--text-primary);
}

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

/* Event Detail Page */
.event-detail-header {
  padding: 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.event-detail-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.event-detail-header .event-meta {
  display: flex;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

/* Gossip List */
.gossip-list-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.gossip-item-app {
  display: flex;
  gap: 12px;
}

.gossip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
  flex-shrink: 0;
}

.gossip-content {
  flex: 1;
}

.gossip-bubble {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 12px;
  border-top-left-radius: 4px;
}

.gossip-author {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gossip-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

.gossip-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.gossip-compose-app {
  display: flex;
  gap: 12px;
}

.gossip-compose-app textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  resize: none;
}

.gossip-compose-app textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Event Details List */
.event-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: justify;
  margin: 0 0 16px 0;
  word-wrap: break-word;
}

.event-description br {
  display: block;
  content: "";
  margin-top: 0.5em;
}

.event-stats-grid {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

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

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

.event-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.event-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.event-detail-row:last-child {
  border-bottom: none;
}

.event-detail-label {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.event-detail-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   EVENT PAGE REDESIGN v2
   ============================================ */

/* Event Header - Market Link */
.market-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.market-pill:hover {
  text-decoration: underline;
}

.meta-sep {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* Event Stats inline */
.event-stats-inline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.event-stats-inline strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== Outcome Cards with Probability Fill ===== */
.outcomes-card-v2 {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}

.outcomes-card-v2 .section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.outcomes-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outcome-card-v2 {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  overflow: hidden;
}

.outcome-card-v2:hover {
  border-color: var(--border);
}

.outcome-card-v2.selected {
  border-color: var(--primary);
}

/* Probability fill background */
.outcome-fill-v2 {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  opacity: 0.5;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  transition: width 0.3s ease;
}

.outcome-card-v2[data-outcome-type="yes"] .outcome-fill-v2 {
  background: rgba(16, 185, 129, 0.2);
}

.outcome-card-v2[data-outcome-type="no"] .outcome-fill-v2 {
  background: rgba(248, 113, 113, 0.2);
}

.outcome-card-v2[data-outcome-type="other"] .outcome-fill-v2 {
  background: rgba(251, 191, 36, 0.2);
}

.outcome-content-v2 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.outcome-info-v2 {
  flex: 1;
}

.outcome-name-v2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.outcome-bettors-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.outcome-bettors-v2 .bettor-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: white;
  margin-left: -6px;
}

.outcome-bettors-v2 .bettor-avatar:first-child {
  margin-left: 0;
}

.outcome-card-v2.selected .bettor-avatar {
  border-color: rgba(16, 185, 129, 0.2);
}

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

.outcome-odds-v2 {
  text-align: right;
}

.odds-percent-v2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.outcome-card-v2[data-outcome-type="yes"] .odds-percent-v2 {
  color: #10b981;
}

.outcome-card-v2[data-outcome-type="no"] .odds-percent-v2 {
  color: #f87171;
}

.outcome-card-v2[data-outcome-type="other"] .odds-percent-v2 {
  color: #fbbf24;
}

/* ===== Compact Inline Betting ===== */
.bet-section-v2 {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--primary);
  border-radius: var(--radius-md);
  color: white;
}

.bet-row-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bet-label-v2 {
  font-size: 0.875rem;
  font-weight: 500;
}

.bet-label-v2 strong {
  font-weight: 700;
}

.bet-input-wrap-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-lg);
  flex: 1;
  max-width: 200px;
}

.bet-input-v2 {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  flex: 1;
  min-width: 60px;
  outline: none;
  font-family: inherit;
}

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

.bet-return-v2 {
  flex: 1;
  font-size: 0.875rem;
  opacity: 0.9;
}

.bet-return-v2 strong {
  font-size: 1.125rem;
  font-weight: 700;
}

.bet-btn-v2 {
  padding: 12px 24px;
  background: white;
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.bet-btn-v2:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bet-btn-v2:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Gossip Card Style ===== */
.gossip-card-v2 {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  border: 1px solid var(--border);
}

.gossip-header-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.gossip-icon-v2 {
  font-size: 1.25rem;
  opacity: 0.7;
}

.gossip-title-v2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gossip-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.gossip-item-v2 {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.gossip-avatar-v2 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.gossip-body-v2 {
  flex: 1;
}

.gossip-meta-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gossip-author-v2 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gossip-time-v2 {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.gossip-text-v2 {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.gossip-bet-tag-v2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Empty state for gossip */
.gossip-empty-v2 {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-tertiary);
}

.gossip-empty-icon-v2 {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.gossip-empty-text-v2 {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Gossip Compose */
.gossip-compose-v2 {
  display: flex;
  gap: 12px;
  align-items: center;
}

.gossip-compose-input-v2 {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-secondary);
  transition: all 0.15s;
}

.gossip-compose-input-v2:focus {
  border-color: var(--primary);
  background: white;
}

.gossip-compose-input-v2::placeholder {
  color: var(--text-tertiary);
}

.gossip-send-btn-v2 {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.gossip-send-btn-v2:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.gossip-send-btn-v2:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== Sidebar Description ===== */
.details-description-v2 {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.description-label-v2 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.description-text-v2 {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Compact Attendees ===== */
.attendees-list-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attendee-pill-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  background: var(--bg-secondary);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.attendee-pill-v2 .attendee-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: white;
}

.attendee-badge-v2 {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

/* Profile Page */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.profile-avatar-xl {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.profile-info-main h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.profile-info-main .profile-username {
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.profile-quick-stats {
  display: flex;
  gap: 24px;
}

.profile-quick-stat {
  text-align: center;
}

.profile-quick-stat .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.profile-content-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

/* Friends Section - Enhanced Social Media Style */
.friends-card {
  overflow: hidden;
}

.friends-search-bar {
  padding: 0 0 16px 0;
}

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

.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
  z-index: 1;
}

.friends-search-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 0.9375rem;
  background: var(--bg-secondary);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.friends-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

/* Friends Tabs */
.friends-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 16px;
}

.friends-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.friends-tab:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.05);
}

.friends-tab.active {
  background: var(--bg-primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.friends-tab .tab-icon {
  font-size: 1rem;
}

.friends-tab .tab-label {
  display: none;
}

@media (min-width: 480px) {
  .friends-tab .tab-label {
    display: inline;
  }
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  border-radius: 10px;
  color: var(--text-secondary);
}

.tab-count-alert {
  background: var(--accent);
  color: white;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Tab Content */
.friends-tab-content {
  display: none;
  min-height: 200px;
}

.friends-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

/* Friends List Grid */
.friends-list-grid {
  display: grid;
  gap: 12px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.friend-card:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.friend-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

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

.friend-name-lg {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-username-lg {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.friend-actions-row {
  display: flex;
  gap: 8px;
}

/* Friend Requests */
.friends-requests-list {
  display: grid;
  gap: 12px;
}

.friend-request-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
}

.friend-request-card .friend-info {
  flex: 1;
}

.request-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.request-actions {
  display: flex;
  gap: 8px;
}

/* Suggested Friends */
.friends-suggested-section {
  padding-top: 8px;
}

.section-subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.suggested-friends-grid {
  display: grid;
  gap: 10px;
}

.suggested-friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.suggested-friend-card:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}

.suggestion-reason {
  font-size: 0.75rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.suggestion-reason::before {
  content: '✨';
  font-size: 0.625rem;
}

/* Search Results */
.friends-search-results {
  margin-bottom: 20px;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-results-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-results-clear {
  font-size: 0.8125rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.search-results-clear:hover {
  background: rgba(99, 102, 241, 0.1);
}

.search-results-grid {
  display: grid;
  gap: 10px;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.search-result-card:hover {
  background: var(--bg-tertiary);
}

/* Empty States */
.empty-state-mini {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-tertiary);
}

.empty-state-mini .empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state-mini .empty-state-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.empty-state-mini .empty-state-subtext {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Button Variants for Friends */
.btn-add-friend {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-friend:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.btn-add-friend:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-add-friend.sent {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.btn-accept {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accept:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-decline {
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-decline:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.btn-unfriend {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unfriend:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

/* Legacy support */
.friends-search {
  display: flex;
  gap: 8px;
}

.search-input-sm {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  width: 200px;
}

.friends-list-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 10px;
}

.password-form-app .form-group {
  margin-bottom: 16px;
}

.password-form-app label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.password-form-app input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
}

/* Create Event Page */
.create-event-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.create-event-form-section .form-group {
  margin-bottom: 20px;
}

.create-event-form-section label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* WYSIWYG textarea - matches display styling */
.wysiwyg-textarea {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: justify;
  min-height: 150px;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text-secondary);
}

.wysiwyg-textarea::placeholder {
  color: var(--text-tertiary);
  text-align: left;
  white-space: pre-wrap;
}

.help-text {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.pill-toggle {
  display: flex;
  gap: 8px;
}

.pill-toggle button {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-toggle button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.probability-row {
  display: flex;
  gap: 16px;
}

.prob-input {
  flex: 1;
}

.prob-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.prob-label.yes { color: #059669; }
.prob-label.no { color: #dc2626; }

.prob-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.prob-input-wrap input {
  width: 80px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.prob-unit {
  font-weight: 600;
  color: var(--text-tertiary);
}

.form-actions {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-actions .btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Participants Checkbox List */
.participants-checkbox-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: var(--bg-secondary);
}

label.participant-checkbox-item,
.participant-checkbox-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-bottom: 4px;
  background: white;
}

.participant-checkbox-item:last-child {
  margin-bottom: 0;
}

.participant-checkbox-item:hover {
  background: var(--bg-tertiary);
}

label.participant-checkbox-item input[type="checkbox"],
.participant-checkbox-item input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0 !important;
  flex-shrink: 0;
}

.participant-checkbox-item .participant-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.participant-checkbox-item .participant-info {
  flex: 1;
  min-width: 0;
  display: block !important;
}

.participant-checkbox-item .participant-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.3;
  display: block;
  margin-bottom: 2px;
}

.participant-checkbox-item .participant-username {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.2;
  display: block;
}

/* Resolution / Visibility Toggle Pills with Icons */
.pill-toggle button {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Event Preview Card */
.event-preview-card {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  min-height: 200px;
}

.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Responsive for Subpages */
@media (max-width: 1024px) {
  .market-detail-grid,
  .event-detail-grid,
  .profile-content-grid,
  .create-event-grid {
    grid-template-columns: 1fr;
  }
  
  .market-detail-sidebar,
  .event-detail-sidebar,
  .profile-sidebar-content,
  .create-event-preview-section {
    order: -1;
  }
  
  /* On mobile, only show invite card at top, other sidebar items go to bottom */
  .event-detail-sidebar {
    display: contents;
  }
  
  .event-detail-sidebar .invite-card-prominent {
    order: -2; /* Show invite first, before main content */
    margin-bottom: 16px;
  }
  
  .event-detail-sidebar .content-card:not(.invite-card-prominent) {
    order: 1; /* Details and members go after main content */
  }
}

@media (max-width: 640px) {
  .event-detail-grid {
    gap: 16px;
  }
  
  .invite-card-header {
    flex-direction: row;
  }
  
  .invite-icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .invite-input-group {
    flex-direction: column;
  }
  
  .invite-email-input {
    width: 100%;
  }
  
  .btn-invite-add {
    width: 100%;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .market-detail-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-header-card {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-quick-stats {
    justify-content: center;
  }
  
  .friends-search {
    flex-direction: column;
  }
  
  .search-input-sm {
    width: 100%;
  }
}

/* ============================================
   MINIMAL LANDING PAGE
   Clean, simple, not overwhelming
   ============================================ */

.landing-page {
  --font-landing: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--font-landing);
  background: #FAFAFA;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar-landing {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container-landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-landing {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text-primary);
}

.logo-icon svg {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-landing-primary {
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: var(--text-primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-landing-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-landing-secondary {
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 2px solid var(--text-primary);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-landing-secondary:hover {
  background: var(--text-primary);
  color: white;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-landing {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 60px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
  top: -150px;
  right: -100px;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  bottom: -50px;
  left: -50px;
}

.hero-container-landing {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container-landing {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-content-landing {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content-landing {
    text-align: left;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title-landing {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle-landing {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 440px;
}

@media (min-width: 1024px) {
  .hero-subtitle-landing {
    margin-left: 0;
  }
}

@media (max-width: 1023px) {
  .hero-subtitle-landing {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta-landing {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-cta-landing {
    justify-content: flex-start;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: var(--gradient-primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
  font-family: inherit;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}

.btn-hero-primary svg {
  transition: transform 0.2s ease;
}

.btn-hero-primary:hover svg {
  transform: translateX(3px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-hero-secondary:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-trust {
    justify-content: flex-start;
  }
}

.trust-avatars {
  display: flex;
}

.trust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  border: 2px solid white;
  margin-left: -8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

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

/* Phone Mockup */
.hero-visual-landing {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 270px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 
    0 40px 80px -20px rgba(0, 0, 0, 0.2),
    0 20px 40px -20px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.phone-content {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 32px;
  overflow: hidden;
  padding: 40px 14px 14px;
}

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

.app-market-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.app-live-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  color: white;
  background: #10b981;
  padding: 3px 7px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.prediction-card-demo {
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
}

.prediction-question {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.prediction-odds-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.odds-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  overflow: hidden;
}

.odds-option .odds-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 10px;
  z-index: 0;
}

.yes-option {
  background: rgba(16, 185, 129, 0.1);
}

.yes-option .odds-bar-fill {
  background: rgba(16, 185, 129, 0.2);
}

.no-option {
  background: rgba(239, 68, 68, 0.1);
}

.no-option .odds-bar-fill {
  background: rgba(239, 68, 68, 0.2);
}

.odds-option .odds-label,
.odds-option .odds-value {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 0.75rem;
}

.yes-option .odds-label { color: #059669; }
.no-option .odds-label { color: #dc2626; }

.prediction-meta {
  display: flex;
  gap: 14px;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

.gossip-preview {
  padding: 0 2px;
}

.gossip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.gossip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.gossip-bubble {
  background: white;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

/* Floating Cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: floatCard 5s ease-in-out infinite;
}

.floating-card .fc-emoji {
  font-size: 1.125rem;
}

.card-1 {
  top: 12%;
  right: -15px;
}

.card-2 {
  bottom: 18%;
  left: -25px;
  animation-delay: 2.5s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1023px) {
  .floating-card {
    display: none;
  }
}

/* Simple Steps Section */
.simple-steps {
  padding: 60px 0;
  background: white;
  border-top: 1px solid var(--border);
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .steps-row {
    gap: 40px;
  }
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-icon {
  font-size: 1.5rem;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-text span {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.step-divider {
  width: 40px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}

@media (max-width: 767px) {
  .step-divider {
    display: none;
  }
  
  .steps-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* Simple CTA */
.simple-cta {
  padding: 48px 0;
  background: var(--bg-secondary);
}

.cta-box {
  text-align: center;
}

.cta-tagline {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.btn-cta-dark {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: var(--text-primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-cta-dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Why Tyches Section */
.why-tyches {
  padding: 56px 0;
  background: white;
  border-top: 1px solid var(--border);
}

.why-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.why-icon {
  margin-bottom: 16px;
}

.why-icon svg {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.why-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.why-content p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.why-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.why-content a:hover {
  color: var(--primary-dark);
}

/* Compact Footer */
.footer-compact {
  padding: 48px 0 24px;
  background: #0f172a;
  color: white;
}

.footer-main-compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand-compact .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand-compact .brand-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-brand-compact .brand-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-cols {
  display: flex;
  gap: 64px;
}

@media (max-width: 640px) {
  .footer-cols {
    gap: 40px;
  }
}

.footer-col-compact h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.footer-col-compact a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-col-compact a:hover {
  color: white;
}

.footer-bottom-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-compact span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

/* Mini Cookie Banner */
/* Cookie Banner - Dark Theme */
.cookie-banner-dark {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner-dark .cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cookie-banner-dark .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner-dark .cookie-banner-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner-dark .cookie-banner-text a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.cookie-banner-dark .cookie-banner-text a:hover {
  opacity: 0.8;
}

.cookie-banner-dark .cookie-banner-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .cookie-banner-dark .cookie-banner-buttons {
    margin-top: 0;
  }
}

.cookie-banner-dark .cookie-btn-accept {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid white;
}

.cookie-banner-dark .cookie-btn-accept:hover {
  background: white;
  color: black;
}

.cookie-banner-dark .cookie-btn-essential {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  background: transparent;
  color: #d1d5db;
  border: 1px solid #6b7280;
}

.cookie-banner-dark .cookie-btn-essential:hover {
  background: #374151;
  color: white;
}

/* ============================================
   EVENTS PAGE
   ============================================ */

.page-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.page-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.page-header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.page-header-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.events-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.events-filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.events-filter-tab:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.events-filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.events-filter-tab .tab-icon {
  font-size: 1rem;
}

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

.event-card-page {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-card-page:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.event-card-page .event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.event-card-page .event-market-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.event-card-page .event-market-emoji {
  font-size: 1rem;
}

.event-card-page .event-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card-page .event-private-badge {
  font-size: 0.875rem;
  opacity: 0.7;
}

.event-card-page .event-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-page .event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.event-card-page .event-odds-mini {
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-card-page .yes-odds {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--success);
}

.event-card-page .multi-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.event-card-page .event-time {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.event-card-page .event-time.urgent {
  color: var(--warning);
  font-weight: 600;
}

/* Resolved event winner display */
.event-card-page .event-result,
.event-result-banner {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-page .event-result.winner-yes,
.event-result-banner.winner-yes {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.event-card-page .event-result.winner-no,
.event-result-banner.winner-no {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.event-result-banner {
  text-align: center;
  justify-content: center;
  margin: 8px 0;
}

.event-card-page .event-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .page-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .page-header-card .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .events-grid-page {
    grid-template-columns: 1fr;
  }
}

/* Cookie Banner - Mini (fallback) */
.cookie-banner-mini {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--text-primary);
  color: white;
  border-radius: 100px;
  font-size: 0.8125rem;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner-mini a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.cookie-banner-mini button {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: white;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  /* Hide hamburger on landing page - not needed for logged out users */
  .navbar-landing .mobile-menu-btn {
    display: none;
  }
  
  /* Make nav buttons smaller on mobile */
  .btn-landing-primary,
  .btn-landing-secondary {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
  
  .hero-landing {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 40px;
  }
  
  .hero-cta-landing {
    flex-direction: column;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .phone-frame {
    width: 240px;
    height: 500px;
  }
}

