/* ============================================
   CRITICAL CSS - Loaded synchronously to prevent FOUC
   ============================================ */

/* Base reset and critical styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0a0f1a; /* Very dark electric blue */
  color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#root {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Loading state styles */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0a0f1a; /* Very dark electric blue */
  color: #ffffff;
  font-size: 1.1rem;
}

/* Prevent layout shift during hydration */
[data-reactroot] {
  contain: layout style;
}
/* CoinTracer Design System: Crypto-Native Dark Theme */
:root {
  /* ============================================
     PRIMARY COLOR PALETTE
     Black & dark gray foundation
     Electric blue & purple accents
     ============================================ */
  
  /* BASE COLORS - Surfaces */
  --base-black: #000000;               /* Pure black base */
  --base-dark-gray: #0a0a0a;           /* Very dark gray */
  --base-surface: #101010;             /* Dark surface */
  --base-surface-light: #1a1a1a;       /* Light surface */
  
  /* ACCENT COLORS - Minimal, Intentional */
  --accent-primary: #0099ff;           /* Electric blue (primary actions only) */
  --accent-primary-light: #33b1ff;     /* Bright blue for hover/active */
  --accent-primary-dark: #0066cc;      /* Darker blue for contrast */
  
  --accent-secondary: #9d4edd;         /* Electric purple (rankings) */
  --accent-secondary-light: #c77dff;   /* Bright purple for hover */
  --accent-secondary-dark: #6a0dad;    /* Dark purple for active */
  
  /* STATUS COLORS - Keep Crypto Standard */
  --accent-success: #00d084;           /* Bright green (gains/profit) */
  --accent-success-light: #1aff8f;     /* Lighter green for hover */
  --accent-success-dark: #00a85a;      /* Dark green for active */
  
  --accent-error: #ff3333;             /* Bright red (losses/short) */
  --accent-error-light: #ff6666;       /* Lighter red for hover */
  --accent-error-dark: #cc0000;        /* Dark red for active */
  
  /* Gold accent for rankings/achievements */
  --accent-gold: #ffd700;              /* Gold for ranking badges */
  --accent-gold-light: #ffed4e;        /* Bright gold */
  --accent-gold-dark: #ccaa00;         /* Dark gold */
  
  /* DEPRECATED - Gold removed from accent hierarchy */
  /* (only for backward compatibility in existing components) */
  --accent-ctr: #ffd700;               /* Gold (de-emphasized) */
  --accent-ctr-light: #ffed4e;
  --accent-ctr-dark: #ccaa00;
  
  /* Fallback for secondary elements */
  --accent-warning: #ff9500;           /* Orange warning */
  --accent-info: #0099ff;              /* Info (uses primary blue) */
  
  /* Orange accent for CT tokens and actions */
  --accent-orange: #ff6b35;            /* Bright orange for CT tokens */
  --accent-orange-light: #ff8c5a;      /* Lighter orange for hover */
  --accent-orange-dark: #ff4500;       /* Darker orange for active */
  
  /* ============================================
     BACKGROUND PALETTE
     Pure black backgrounds
     ============================================ */
  --bg-primary: #000000;               /* Page background (pure black) */
  --bg-secondary: #0a0a0a;             /* Secondary surfaces (very dark gray) */
  --bg-tertiary: #141414;              /* Tertiary containers (dark gray) */
  --bg-quaternary: #1a1a1a;            /* Elevated surfaces/cards (darker gray) */
  --bg-hover: #1f1f1f;                 /* Hover state (slightly lighter) */
  --bg-active: #242424;                /* Active/selected state (lighter gray) */
  
  /* Overlay backgrounds */
  --bg-overlay-dark: rgba(0, 0, 0, 0.95);
  --bg-overlay-light: rgba(10, 10, 10, 0.8);
  
  /* ============================================
     TEXT & TYPOGRAPHY COLORS
     High contrast hierarchy
     ============================================ */
  --text-primary: #ffffff;             /* Primary text (pure white) */
  --text-secondary: #b0b8c1;           /* Secondary text (gray-blue) */
  --text-muted: #757d87;               /* Muted text (lower contrast) */
  --text-disabled: #5a6270;            /* Disabled state */
  --text-tertiary: #757d87;            /* Tertiary (alias for muted) */
  
  /* ============================================
     BORDERS & DIVIDERS
     Minimal use - electric blue for accents only
     ============================================ */
  --border-color: #2a2a2a;             /* Standard border (dark gray) */
  --border-light: #333333;             /* Light border (slightly lighter gray) */
  --border-subtle: #1a1a1a;            /* Subtle border (minimal contrast) */
  --border-accent: #0099ff;            /* Accent border (electric blue) */
  --border-accent-secondary: #9d4edd;  /* Secondary accent border (purple) */
  
  /* ============================================
     SHADOWS & DEPTH
     Stronger for contrast on black
     ============================================ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
  
  /* Glow effects - Electric feeling */
  --glow-primary: 0 0 16px rgba(0, 153, 255, 0.25);
  --glow-secondary: 0 0 16px rgba(157, 78, 221, 0.25);
  --glow-success: 0 0 16px rgba(0, 208, 132, 0.25);
  --glow-error: 0 0 16px rgba(255, 51, 51, 0.25);
  
  /* ============================================
     GRADIENTS
     Subtle, minimal use
     ============================================ */
  
  /* Subtle background: pure black */
  --gradient-brand: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* Blue accent (minimal) */
  --gradient-blue: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
  
  /* Purple accent (minimal) */
  --gradient-purple: linear-gradient(135deg, #9d4edd 0%, #6a0dad 100%);
  
  /* Success gradient */
  --gradient-success: linear-gradient(135deg, #00d084 0%, #00a85a 100%);
  
  /* Orange gradient for CT tokens and actions */
  --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  --gradient-orange-hover: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  --accent-orange-shadow: rgba(255, 107, 53, 0.4);
  
  /* Card gradient: pure black with subtle contrast */
  --gradient-card: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.9) 100%);

  /* Elevated card: slightly lighter */
  --gradient-card-elevated: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%);

  /* Subtle header gradient: pure black */
  --gradient-header: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.9));

  /* Pure black background gradient */
  --gradient-bg-electric: linear-gradient(135deg,
    #000000 0%,
    #000000 100%);
  
  /* Common gradient patterns for reuse */
  --gradient-card-standard: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
  --gradient-card-elevated-standard: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  --gradient-page-bg: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* ============================================
     BORDER RADIUS
     Sharp corners for crypto/technical feel
     ============================================ */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  
  /* ============================================
     SPACING SCALE
     Consistent spacing throughout
     ============================================ */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  /* Font family stack */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  
  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Font sizes for hierarchy */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */
  
  /* Line heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ============================================
     TRANSITIONS & ANIMATIONS
     ============================================ */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-slower: 0.5s ease;
  
  /* ============================================
     BREAKPOINTS
     Mobile-first responsive design
     Use these variables in media queries for consistency
     ============================================ */
  --breakpoint-xs: 480px;    /* Extra small devices (mobile portrait) */
  --breakpoint-sm: 640px;    /* Small devices (mobile landscape) */
  --breakpoint-md: 768px;    /* Medium devices (tablets) */
  --breakpoint-lg: 1024px;   /* Large devices (desktops) */
  --breakpoint-xl: 1280px;   /* Extra large devices */
  --breakpoint-2xl: 1536px;  /* 2X large devices */
  
  /* Mobile-first max-width breakpoints (for max-width queries) */
  --max-xs: 479px;
  --max-sm: 639px;
  --max-md: 767px;
  --max-lg: 1023px;
  --max-xl: 1279px;
  
  /* Tablet breakpoint range */
  --breakpoint-tablet-min: 768px;
  --breakpoint-tablet-max: 1023px;
  
  /* ============================================
     COMPONENT SIZING
     ============================================ */
  --header-height: 60px;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --button-height: 40px;
  --button-height-sm: 32px;
  --button-height-lg: 48px;
  
  /* ============================================
     Z-INDEX SCALE
     Logical stacking context
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 1000;
  --z-modal: 1001;
  --z-tooltip: 1100;
}
/* ============================================
   UTILITY CLASSES
   ============================================ */
/* TEXT COLORS */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-disabled { color: var(--text-disabled); }
/* BACKGROUND COLORS */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-quaternary { background: var(--bg-quaternary); }
/* BORDER COLORS */
.border-primary { border-color: var(--border-color); }
.border-light { border-color: var(--border-light); }
.border-subtle { border-color: var(--border-subtle); }
.border-accent { border-color: var(--border-accent); }
.border-accent-secondary { border-color: var(--border-accent-secondary); }
/* SHADOW UTILITIES */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-primary { box-shadow: var(--shadow-primary); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
/* GLOW UTILITIES */
.glow-primary { box-shadow: var(--glow-primary); }
.glow-secondary { box-shadow: var(--glow-secondary); }
.glow-success { box-shadow: var(--glow-success); }
.glow-error { box-shadow: var(--glow-error); }
/* ACCENT COLORS */
.accent-primary { color: var(--accent-primary); }
.accent-secondary { color: var(--accent-secondary); }
.accent-info { color: var(--accent-info); }
.accent-success { color: var(--accent-success); }
.accent-error { color: var(--accent-error); }
.accent-warning { color: var(--accent-warning); }
/* BACKGROUND ACCENTS */
.bg-accent-primary { background: var(--accent-primary); }
.bg-accent-secondary { background: var(--accent-secondary); }
.bg-accent-success { background: var(--accent-success); }
.bg-accent-error { background: var(--accent-error); }
/* GRADIENT BACKGROUNDS */
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-blue { background: var(--gradient-blue); }
.bg-gradient-purple { background: var(--gradient-purple); }
.bg-gradient-success { background: var(--gradient-success); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-gradient-electric { background: var(--gradient-bg-electric); }
/* ROUNDED CORNERS */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
/* SPACING UTILITIES */
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
/* TYPOGRAPHY */
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-normal { font-weight: var(--font-weight-normal); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
/* TRANSITIONS */
.transition-fast { transition: all var(--transition-fast); }
.transition-base { transition: all var(--transition-base); }
.transition-slow { transition: all var(--transition-slow); }
.header {
  height: var(--header-height);
  background: var(--gradient-header);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-xl);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 153, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  backdrop-filter: blur(8px);
}
/* Mobile: show header */
@media (max-width: var(--breakpoint-md)) {
  .header {
    display: flex;
    margin-left: 0;
    width: 100vw;
    padding: 0 1rem;
  }
}
/* Desktop: hide header (sidebar is used instead) */
@media (min-width: 769px) {
  .header {
    display: none;
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--spacing-lg);
}
/* Mobile: adjust nav layout */
@media (max-width: var(--breakpoint-md)) {
  .nav {
    padding: 0;
    gap: 0.5rem;
  }
}
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: 1.35rem;
  transition: all var(--transition-base);
  background: linear-gradient(135deg, #ffffff 0%, #b3b8c5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-link:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 8px rgba(0, 153, 255, 0.2));
}
.logo-icon {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-text {
  letter-spacing: -0.02em;
}
/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: all 0.3s ease;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
  justify-content: center;
  max-width: 900px;
}
.auth-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  z-index: 1001;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1.125rem;
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  font-size: 0.95rem;
  position: relative;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 153, 255, 0);
  transition: background var(--transition-base);
  z-index: -1;
  border-radius: var(--radius-lg);
}
.nav-link:hover {
  color: var(--accent-primary);
  background: rgba(0, 153, 255, 0.1);
  transform: translateY(-2px);
}
.nav-link.active {
  color: var(--accent-primary);
  background: rgba(0, 153, 255, 0.15);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--glow-primary);
}
.user-profile-link { text-decoration: none; margin-left: 1rem; }
.user-profile { display: none; }
.username { display: none; }
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  box-shadow: var(--glow-primary);
  transition: all var(--transition-base);
  flex-shrink: 0;
}
.avatar-only {
  background: rgba(0, 153, 255, 0.12);
  border-color: rgba(0, 153, 255, 0.45);
}
.user-profile:hover .avatar-circle {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
  transform: scale(1.05);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-btn, .logout-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.login-btn:hover, .logout-btn:hover {
  background: rgba(0, 153, 255, 0.15);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}
.login-btn:focus-visible, .logout-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
/* Token Balances Container */
.token-balances-container {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}
.token-balance {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gradient-ctr);
  border: 1px solid var(--accent-ctr);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-base);
  box-shadow: var(--glow-ctr);
  white-space: nowrap;
  flex-shrink: 0;
}
.token-balance.super {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
.token-balance.super:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(167, 139, 250, 0.15) 100%);
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}
.token-balance.super .token-amount,
.token-balance.super .token-label {
  color: #a78bfa;
}
.token-balance:hover {
  background: var(--gradient-ctr);
  border-color: var(--accent-ctr);
  box-shadow: var(--glow-ctr), 0 0 30px rgba(0, 153, 255, 0.4);
  transform: translateY(-2px);
}
.token-icon {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 153, 255, 0.3));
}
.token-amount {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.token-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  line-height: 1;
}
/* Notifications */
.notifications-wrapper {
  position: relative;
}
.notifications-bell {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  padding: 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.notifications-bell:hover {
  background: var(--bg-quaternary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
}
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-error);
  color: white;
  font-size: 0.7rem;
  font-weight: var(--font-weight-bold);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
  box-shadow: var(--glow-error);
}
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 360px;
  max-height: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: slideDown var(--transition-slow);
  backdrop-filter: blur(8px);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
}
.notifications-header h3 {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--text-primary);
}
.mark-all-read {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mark-all-read:hover {
  background: rgba(0, 153, 255, 0.1);
}
.notifications-list {
  overflow-y: auto;
  max-height: 400px;
}
.notification-item {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-base);
}
.notification-item:hover {
  background: var(--bg-quaternary);
}
.notification-item.unread {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-primary);
  padding-left: calc(var(--spacing-lg) - 3px);
}
.notification-title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}
.notification-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-normal);
}
.notification-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.no-notifications {
  padding: var(--spacing-2xl);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.avatar-link {
  display: inline-flex;
  flex-shrink: 0;
}
.header-logout {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}
/* Tablet and below */
@media (max-width: 1024px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 0;
    max-width: 700px;
  }
  
  .nav-link {
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
  }

  .token-balance {
    padding: 0.4rem 0.7rem;
    gap: 0.3rem;
  }

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

  .token-amount {
    font-size: 0.9rem;
  }

  .token-label {
    font-size: 0.7rem;
  }

  .avatar-circle {
    width: 36px;
    height: 36px;
  }
}
/* Mobile Navigation */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
    order: 2;
  }

  .nav-brand {
    order: 1;
  }

  .auth-actions {
    order: 3;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: rgba(0, 0, 0, 0.6);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0;
    padding: 0;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: none;
    overflow: hidden;
  }

  .nav-links.mobile-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Navigation content panel */
  .nav-links-content {
    width: min(320px, 80vw);
    height: 100%;
    background: linear-gradient(135deg, rgba(19, 19, 19, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 5rem var(--spacing-lg) var(--spacing-xl) var(--spacing-lg);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 153, 255, 0.15);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.mobile-open .nav-links-content {
    transform: translateX(0);
  }

  /* Backdrop overlay - removed since parent handles it */
  .nav-links::before {
    display: none;
  }

  .nav-links.mobile-open::before {
    display: none;
  }

  /* Mobile menu close button */
  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 153, 255, 0.15);
    border: 2px solid rgba(0, 153, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
  }

  .mobile-menu-close:hover {
    background: rgba(0, 153, 255, 0.25);
    border-color: rgba(0, 153, 255, 0.5);
    transform: rotate(90deg);
  }

  .mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
  }

  .nav-link {
    width: 100%;
    max-width: none;
    text-align: left;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border-bottom: none;
    transition: all var(--transition-base);
  }

  .nav-link:hover {
    background: rgba(0, 153, 255, 0.15);
    transform: translateX(4px);
  }

  .nav-link.active {
    background: rgba(0, 153, 255, 0.25);
    border-bottom: none;
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(1.25rem - 3px);
  }

  .nav-link::before {
    border-radius: var(--radius-lg);
  }
}
/* Small mobile devices */
@media (max-width: 640px) {
  .header {
    padding: 0 0.75rem;
  }
  
  .nav {
    padding: 0;
    gap: 0.4rem;
  }

  .logo-text {
    display: none;
  }

  .logo-icon {
    height: 28px;
    width: auto;
  }

  .auth-actions {
    gap: 8px;
  }

  .token-balance {
    padding: 0.35rem 0.6rem;
    gap: 0.25rem;
  }

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

  .token-amount {
    font-size: 0.85rem;
  }

  .token-label {
    display: none;
  }

  .avatar-circle {
    width: 32px;
    height: 32px;
  }

  .logout-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }

  /* Mobile menu adjustments for small screens */
  .nav-links-content {
    width: min(280px, 85vw);
    padding: 4.5rem 1.25rem 1.5rem 1.25rem;
  }

  .mobile-menu-close {
    width: 36px;
    height: 36px;
    top: 1rem;
    right: 1rem;
    font-size: 1.35rem;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
}
/* Very small devices */
@media (max-width: 400px) {
  .header {
    padding: 0 0.5rem;
  }
  
  .nav {
    padding: 0;
    gap: 0.3rem;
  }

  .auth-actions {
    gap: 6px;
  }

  .logout-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  /* Compact mobile menu for very small screens */
  .nav-links-content {
    width: min(260px, 90vw);
    padding: 4rem 1rem 1.25rem 1rem;
    gap: 0.2rem;
  }

  .mobile-menu-close {
    width: 32px;
    height: 32px;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 1.25rem;
  }

  .nav-link {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }
}
/* Hide close button on desktop */
.mobile-menu-close {
  display: none;
}
/* Large screens - more breathing room */
@media (min-width: 1400px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }
}
/* Sidebar Navigation - Crypto-Native Premium */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 153, 255, 0.3);
  border-radius: 3px;
  transition: background var(--transition-base);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 153, 255, 0.5);
}

/* Mobile: hide by default */
@media (max-width: var(--breakpoint-md)) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar-open {
    transform: translateX(0);
  }
}

/* Desktop: always visible */
@media (min-width: 769px) {
  .sidebar {
    transform: translateX(0) !important;
  }
}

/* Sidebar Header */
.sidebar-header {
  padding: var(--spacing-xl) var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-base);
  padding: var(--spacing-sm);
  border-radius: var(--radius-lg);
}

.sidebar-logo:hover {
  background: rgba(0, 153, 255, 0.15);
  transform: translateX(2px);
  box-shadow: var(--glow-primary);
}

.logo-icon {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 153, 255, 0.3));
  transition: transform var(--transition-base);
}

.sidebar-logo:hover .logo-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 153, 255, 0.5));
}

.logo-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-ctr) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  list-style: none;
  padding: var(--spacing-lg) 0;
  margin: 0;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-xs) 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
}

/* Animated background gradient on hover */
.sidebar-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.15), transparent);
  transition: left var(--transition-slow);
}

.sidebar-nav-item:hover::before {
  left: 100%;
}

.sidebar-nav-item:hover {
  background: rgba(0, 153, 255, 0.1);
  color: var(--accent-primary);
  transform: translateX(4px);
  box-shadow: var(--glow-primary);
}

.sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.2) 0%, rgba(0, 153, 255, 0.1) 100%);
  color: var(--accent-primary);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--glow-primary), inset 3px 0 0 0 var(--accent-primary);
}

.sidebar-nav-item.active::after {
  content: '';
  position: absolute;
  right: var(--spacing-md);
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: var(--glow-primary);
  animation: pulse-dot var(--transition-slower) ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.nav-icon {
  font-size: 1.35rem;
  line-height: 1;
  min-width: 1.5rem;
  text-align: center;
  transition: transform var(--transition-base);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.sidebar-nav-item:hover .nav-icon {
  transform: scale(1.15);
}

.sidebar-nav-item.active .nav-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 153, 255, 0.5));
}

.nav-label {
  flex: 1;
  letter-spacing: var(--spacing-xs);
}

/* Footer */
.sidebar-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

/* ELITE Badge Button */
.elite-badge-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.2) 0%, rgba(0, 200, 255, 0.1) 100%);
  border: 2px solid rgba(0, 153, 255, 0.6);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-bold);
  color: #00c8ff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.4), inset 0 0 20px rgba(0, 153, 255, 0.1);
}

.elite-badge-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 200, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.elite-badge-button:hover {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.3) 0%, rgba(0, 200, 255, 0.2) 100%);
  border-color: rgba(0, 200, 255, 0.8);
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.6), inset 0 0 30px rgba(0, 153, 255, 0.2);
  transform: translateY(-2px);
}

.elite-badge-button .elite-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 4px rgba(0, 153, 255, 0.8));
}

.elite-badge-button .elite-label {
  font-size: var(--text-base);
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.elite-badge-button .elite-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse-glow 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ELITE Active State */
.elite-badge-button.elite-active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.6);
  color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.elite-badge-button.elite-active:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.2) 100%);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.2);
}

.elite-badge-button.elite-active .elite-icon {
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
}

.elite-badge-button.elite-active .elite-label {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.sidebar-token-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  background: var(--gradient-ctr);
  border: 1px solid var(--accent-ctr);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  transition: all var(--transition-base);
  box-shadow: var(--glow-ctr);
}

.sidebar-token-balance:hover {
  background: var(--gradient-ctr);
  border-color: var(--accent-ctr);
  box-shadow: var(--glow-ctr), 0 0 30px rgba(0, 153, 255, 0.4);
  transform: translateY(-2px);
}

/* Super CTR Token Balance */
.sidebar-token-balance.super {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.sidebar-token-balance.super:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(167, 139, 250, 0.15) 100%);
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* Convert Button */
.convert-button {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--glow-primary);
}

.convert-button:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.convert-button:active {
  transform: translateY(0);
}

/* Conversion Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--spacing-lg);
  backdrop-filter: blur(8px);
}

.convert-modal {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-2xl);
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(139, 92, 246, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-2xl);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h2 {
  margin: 0;
  color: #a78bfa;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: var(--spacing-sm);
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
}

.modal-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: var(--spacing-2xl) var(--spacing-xl);
}

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

.convert-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
}

.convert-info p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-xl);
}

.token-conversion-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-xl);
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.token-before,
.token-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.token-before .token-icon,
.token-after .token-icon {
  font-size: 2rem;
}

.token-value {
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: var(--text-lg);
}

.conversion-arrow {
  font-size: 2rem;
  color: #a78bfa;
}

.current-balance {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-top: var(--spacing-lg);
}

.convert-error {
  color: var(--accent-error);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-lg);
  text-align: center;
  font-weight: var(--font-weight-semibold);
}

.modal-actions {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.btn-cancel,
.btn-convert {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-convert {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  box-shadow: var(--glow-primary);
}

.btn-convert:hover:not(:disabled) {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

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

/* Sidebar Notifications */
.sidebar-notifications-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.sidebar-notifications-bell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(25, 118, 210, 0.08);
  border: 1px solid rgba(25, 118, 210, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-notifications-bell:hover {
  background: rgba(25, 118, 210, 0.12);
  border-color: rgba(25, 118, 210, 0.35);
  color: white;
  transform: translateX(2px);
}

.sidebar-notifications-bell.has-unread {
  background: linear-gradient(135deg, rgba(224, 155, 45, 0.15) 0%, rgba(74, 158, 255, 0.15) 100%);
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, #0099ff 0%, #0099ff 100%) 1;
  color: #0099ff;
  box-shadow: 
    0 0 15px rgba(224, 155, 45, 0.3),
    0 0 30px rgba(74, 158, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.2);
  animation: sidebar-notification-pulse 2s ease-in-out infinite;
}

.sidebar-notifications-bell.has-unread:hover {
  box-shadow: 
    0 0 25px rgba(224, 155, 45, 0.5),
    0 0 50px rgba(74, 158, 255, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}

@keyframes sidebar-notification-pulse {
  0%, 100% {
    box-shadow: 
      0 0 15px rgba(224, 155, 45, 0.3),
      0 0 30px rgba(74, 158, 255, 0.2),
      0 2px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 0 25px rgba(224, 155, 45, 0.5),
      0 0 50px rgba(74, 158, 255, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

.notifications-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.notifications-label {
  flex: 1;
  text-align: left;
}

.sidebar-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #0099ff 0%, #0099ff 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 
    0 0 8px rgba(224, 155, 45, 0.5),
    0 0 15px rgba(74, 158, 255, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.sidebar-notifications-dropdown {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 400px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease;
  overflow: hidden;
}

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

.sidebar-notifications-dropdown .notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

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

.sidebar-notifications-dropdown .notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: column;
  align-items: flex-end;
}

.sidebar-notifications-dropdown .mark-all-read {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-notifications-dropdown .mark-all-read:hover {
  background: rgba(74, 158, 255, 0.1);
}

.sidebar-notifications-dropdown .view-all-notifications {
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-notifications-dropdown .view-all-notifications:hover {
  background: rgba(74, 158, 255, 0.1);
  text-decoration: underline;
}

.sidebar-notifications-dropdown .notifications-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  text-align: center;
}

.sidebar-notifications-dropdown .view-all-link {
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-notifications-dropdown .view-all-link:hover {
  text-decoration: underline;
  color: var(--accent-secondary);
}

.sidebar-notifications-dropdown .notifications-list {
  overflow-y: auto;
  max-height: 300px;
}

.sidebar-notifications-dropdown .notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}

.sidebar-notifications-dropdown .notification-item:hover {
  background: var(--bg-tertiary);
}

.sidebar-notifications-dropdown .notification-item.unread {
  background: linear-gradient(90deg, rgba(224, 155, 45, 0.08) 0%, rgba(74, 158, 255, 0.05) 100%);
  border-left: 3px solid transparent;
  border-image: linear-gradient(135deg, #0099ff 0%, #0099ff 100%) 1;
}

.sidebar-notifications-dropdown .notification-content {
  flex: 1;
  min-width: 0;
}

.sidebar-notifications-dropdown .notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.sidebar-notifications-dropdown .notification-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.sidebar-notifications-dropdown .notification-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sidebar-notifications-dropdown .notification-unread-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0099ff 0%, #0099ff 100%);
  box-shadow: 0 0 8px rgba(224, 155, 45, 0.6), 0 0 12px rgba(74, 158, 255, 0.4);
  flex-shrink: 0;
  margin-top: 0.25rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

.sidebar-notifications-dropdown .no-notifications {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.sidebar-notifications-dropdown .no-notifications p {
  margin: 0;
}

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

.token-amount {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  color: var(--accent-error);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-logout-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.15) 100%);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: var(--glow-error);
  transform: translateY(-2px);
}

.logout-icon {
  font-size: 1rem;
  line-height: 1;
}

.logout-label {
  flex: 1;
  text-align: center;
}

.sidebar-footer-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 153, 255, 0.18);
  transition: all var(--transition-base);
  cursor: default;
}

.sidebar-footer-info:hover {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.15) 0%, rgba(0, 153, 255, 0.12) 100%);
  border-color: rgba(0, 153, 255, 0.25);
  box-shadow: var(--glow-primary);
}

.footer-icon {
  font-size: 1.75rem;
  line-height: 1;
  animation: float var(--transition-slower) ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 153, 255, 0.3));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.footer-text {
  flex: 1;
}

.footer-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: white;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.footer-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Mobile toggle button */
.sidebar-toggle {
  position: fixed;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  z-index: 1001;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-ctr) 100%);
  border: none;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-primary), var(--glow-primary);
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-shadow var(--transition-slower) ease-in-out infinite;
}

@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: var(--shadow-primary), var(--glow-primary);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 153, 255, 0.2);
  }
}

.sidebar-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.sidebar-toggle:active {
  transform: scale(0.95);
}

/* Hide on desktop and mobile (Header has hamburger menu on mobile) */
@media (min-width: 769px) {
  .sidebar-toggle {
    display: none;
  }
}

/* Hide sidebar toggle on mobile - Header already has hamburger menu */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: none !important;
  }
}

/* Hamburger icon */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar-open .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.sidebar-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.sidebar-open .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .sidebar-overlay {
    display: block;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .sidebar {
    width: 280px;
  }

  .sidebar-header {
    padding: 1.5rem 1rem;
  }

  .sidebar-logo {
    font-size: 1.35rem;
  }

  .logo-icon {
    height: 24px;
    width: auto;
  }

  .sidebar-nav {
    padding: 0.75rem 0;
  }

  .sidebar-nav-item {
    padding: 0.75rem 1rem;
    margin: 0.2rem 0.5rem;
    font-size: 0.9rem;
  }

  .nav-icon {
    font-size: 1.25rem;
  }

  .sidebar-footer {
    padding: 0.75rem;
  }

  .sidebar-token-balance {
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }

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

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

  .sidebar-logout-btn {
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
  }

  .logout-icon {
    font-size: 0.9rem;
  }

  .sidebar-footer-info {
    padding: 0.875rem;
  }

  .footer-icon {
    font-size: 1.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .sidebar {
    width: 260px;
  }

  .sidebar-toggle {
    width: 46px;
    height: 46px;
    top: 0.875rem;
    left: 0.875rem;
  }

  .hamburger-icon {
    width: 20px;
    gap: 4px;
  }

  .hamburger-icon span {
    height: 2px;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .sidebar-nav-item {
    padding: 1rem 1.25rem;
    margin: 0.3rem 0.75rem;
  }

  .sidebar-nav-item:active {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(0.98);
  }
}

/* Accessibility improvements */
.sidebar-nav-item:focus-visible {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

.sidebar-toggle:focus-visible {
  outline: 3px solid #1976d2;
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .sidebar-nav-item,
  .sidebar-logo,
  .hamburger-icon span,
  .sidebar-toggle {
    transition: none;
    animation: none;
  }

  .logo-icon,
  .footer-icon {
    animation: none;
  }

  .sidebar-nav-item::before {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .sidebar {
    border-right-width: 2px;
  }

  .sidebar-nav-item.active {
    border: 2px solid #1976d2;
  }

  .sidebar-footer-info {
    border-width: 2px;
  }
}
/* Post Card Styling - Matches MyFeed but smaller */
.activity-post-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  transition: var(--transition-base);
  cursor: pointer;
}

.activity-post-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--glow-primary);
}

.activity-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
}

.activity-post-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.activity-post-author:hover .activity-post-author-name {
  color: var(--accent-primary);
}

.activity-post-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-post-author-info {
  display: flex;
  flex-direction: column;
}

.activity-post-author-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.activity-post-timestamp {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.activity-post-content {
  padding-left: var(--spacing-2xl);
}

.activity-post-content p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--text-secondary);
  word-wrap: break-word;
}

/* Trade Card Styling - Matches MyFeed but smaller */
.activity-trade-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.activity-trade-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-trade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.activity-trade-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.activity-trade-user-info:hover .activity-trade-user-name {
  color: var(--primary-color);
}

.activity-trade-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-trade-user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.activity-trade-timestamp {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.activity-trade-details {
  padding-left: 40px;
}

.activity-trade-symbol-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.activity-trade-symbol {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.activity-trade-direction {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.activity-trade-direction.long {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.activity-trade-direction.short {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.activity-trade-profit {
  margin-top: 6px;
}

.activity-profit-value {
  font-size: 13px;
  font-weight: 600;
}

.activity-profit-value.profit-positive {
  color: #22c55e;
}

.activity-profit-value.profit-negative {
  color: #ef4444;
}

/* Activity Stats */
.activity-post-stats,
.activity-trade-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 40px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.activity-stat {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.spinner {
  display: inline-block;
  position: relative;
}

.spinner-inner {
  border: 2px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: 50%;
  border-top: 2px solid var(--accent-primary);
  animation: spin 1s linear infinite;
}

.spinner-sm .spinner-inner {
  width: 16px;
  height: 16px;
}

.spinner-md .spinner-inner {
  width: 24px;
  height: 24px;
}

.spinner-lg .spinner-inner {
  width: 32px;
  height: 32px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Modal Backdrop */
.activity-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container */
.activity-modal {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-xl);
}

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

.activity-modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: transparent;
  border: 1px solid var(--border-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: var(--text-2xl);
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: var(--transition-base);
}

.activity-modal-close:hover {
  background: rgba(var(--accent-primary-rgb), 0.1);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.activity-modal-content {
  padding: var(--spacing-2xl);
}

/* Post Styling */
.modal-post {
  margin-bottom: 24px;
}

.modal-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-menu-container {
  position: relative;
}

.modal-menu-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.modal-menu-button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-menu-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-menu-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  z-index: 1000;
  animation: dropdownFade 0.2s ease;
}

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

.modal-menu-item {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 8px;
}

.modal-menu-item:hover:not(:disabled) {
  background: var(--bg-hover);
}

.modal-menu-item.delete {
  color: var(--accent-error);
}

.modal-menu-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.modal-post-author:hover .modal-post-author-name {
  color: var(--accent-primary);
}

.modal-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-post-author-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  display: block;
  transition: color 0.2s ease;
}

.modal-post-timestamp {
  font-size: 13px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}

.modal-post-body {
  padding-left: 60px;
  margin-bottom: 16px;
}

.modal-post-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  word-wrap: break-word;
}

.modal-post-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

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

.modal-action-btn.liked {
  color: #ef4444;
}

.modal-comment-count {
  font-size: 14px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Trade Styling */
.modal-trade {
  margin-bottom: 24px;
}

.modal-trade-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.modal-trade-author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.modal-trade-author:hover .modal-trade-author-name {
  color: var(--accent-primary);
}

.modal-trade-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-trade-author-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  display: block;
  transition: color 0.2s ease;
}

.modal-trade-timestamp {
  font-size: 13px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}

.modal-trade-body {
  padding-left: 60px;
  margin-bottom: 16px;
}

.modal-trade-symbol {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-trade-symbol-name {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.modal-trade-direction {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

.modal-trade-direction.long {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.modal-trade-direction.short {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.modal-trade-profit {
  margin-bottom: 12px;
}

.modal-profit-value {
  font-size: 18px;
  font-weight: 700;
}

.modal-profit-value.positive {
  color: #22c55e;
}

.modal-profit-value.negative {
  color: #ef4444;
}

.modal-trade-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-trade-comments-label {
  font-size: 14px;
  color: var(--text-tertiary);
  padding-left: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

/* Comment Form */
.modal-comment-form {
  margin: 24px 0;
}

.modal-comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.modal-comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.modal-comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.modal-char-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.modal-submit-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-submit-btn:hover:not(:disabled) {
  background: var(--accent-primary-light);
  transform: translateY(-1px);
}

.modal-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Comments List */
.modal-comments-list {
  max-height: 300px;
  overflow-y: auto;
}

.modal-comment {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.modal-comment:last-child {
  border-bottom: none;
}

.modal-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.modal-comment-body {
  flex: 1;
}

.modal-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.modal-comment-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.modal-comment-handle {
  font-size: 13px;
  color: var(--text-tertiary);
}

.modal-comment-time {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: auto;
}

.modal-comment-content {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  word-wrap: break-word;
}

.modal-loading {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.modal-no-comments {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.activity-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: clamp(280px, 25vw, 350px);
  max-width: 350px;
  height: 100vh;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.activity-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.view-full-feed-btn {
  background: var(--gradient-brand);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  box-shadow: var(--glow-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.view-full-feed-btn:hover {
  background: var(--gradient-brand);
  transform: translateY(-1px);
  box-shadow: var(--glow-primary);
}

.unread-badge {
  background: var(--accent-error);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-extrabold);
}

.new-activity-badge {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.new-activity-badge:hover {
  background: var(--accent-primary-light);
}

.activity-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.activity-list::-webkit-scrollbar {
  width: 6px;
}

.activity-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.activity-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted, #666);
}

.activity-loading,
.activity-error,
.activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  gap: 12px;
}

.activity-loading p,
.activity-empty p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.empty-detail {
  font-size: 13px !important;
  color: var(--text-muted, #666) !important;
}

.activity-error p {
  margin: 0;
  color: var(--accent-error);
  font-size: 14px;
}

.error-detail {
  font-size: 12px !important;
  color: var(--text-muted, #666) !important;
}

/* Tablet: reduce width */
@media (max-width: 1200px) and (min-width: 1025px) {
  .activity-sidebar {
    width: clamp(250px, 20vw, 300px);
  }
}

/* Hide activity sidebar on tablets and mobile */
@media (max-width: 1024px) {
  .activity-sidebar {
    transform: translateX(100%);
  }
  
  .activity-sidebar.open {
    transform: translateX(0);
  }
}

/* New Post Button */
.new-post-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.new-post-button:hover {
  background: var(--accent-primary-light);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 158, 255, 0.5);
}

.new-post-button:active {
  transform: translateX(-50%) translateY(0);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

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

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

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

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

.modal-body {
  padding: 24px;
}

.modal-body textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color, #2a2a2a);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.modal-body textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.char-count {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-secondary,
.btn-primary {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.btn-secondary:hover:not(:disabled) {
  background: var(--border-light);
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-primary-light);
}

.btn-secondary:disabled,
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* CoinTracer Design System: Crypto-Native Dark Theme */
:root {
  /* ============================================
     PRIMARY COLOR PALETTE
     Black & dark gray foundation
     Electric blue & purple accents
     ============================================ */
  
  /* BASE COLORS - Surfaces */
  --base-black: #000000;               /* Pure black base */
  --base-dark-gray: #0a0a0a;           /* Very dark gray */
  --base-surface: #101010;             /* Dark surface */
  --base-surface-light: #1a1a1a;       /* Light surface */
  
  /* ACCENT COLORS - Minimal, Intentional */
  --accent-primary: #0099ff;           /* Electric blue (primary actions only) */
  --accent-primary-light: #33b1ff;     /* Bright blue for hover/active */
  --accent-primary-dark: #0066cc;      /* Darker blue for contrast */
  
  --accent-secondary: #9d4edd;         /* Electric purple (rankings) */
  --accent-secondary-light: #c77dff;   /* Bright purple for hover */
  --accent-secondary-dark: #6a0dad;    /* Dark purple for active */
  
  /* STATUS COLORS - Keep Crypto Standard */
  --accent-success: #00d084;           /* Bright green (gains/profit) */
  --accent-success-light: #1aff8f;     /* Lighter green for hover */
  --accent-success-dark: #00a85a;      /* Dark green for active */
  
  --accent-error: #ff3333;             /* Bright red (losses/short) */
  --accent-error-light: #ff6666;       /* Lighter red for hover */
  --accent-error-dark: #cc0000;        /* Dark red for active */
  
  /* Gold accent for rankings/achievements */
  --accent-gold: #ffd700;              /* Gold for ranking badges */
  --accent-gold-light: #ffed4e;        /* Bright gold */
  --accent-gold-dark: #ccaa00;         /* Dark gold */
  
  /* DEPRECATED - Gold removed from accent hierarchy */
  /* (only for backward compatibility in existing components) */
  --accent-ctr: #ffd700;               /* Gold (de-emphasized) */
  --accent-ctr-light: #ffed4e;
  --accent-ctr-dark: #ccaa00;
  
  /* Fallback for secondary elements */
  --accent-warning: #ff9500;           /* Orange warning */
  --accent-info: #0099ff;              /* Info (uses primary blue) */
  
  /* Orange accent for CT tokens and actions */
  --accent-orange: #ff6b35;            /* Bright orange for CT tokens */
  --accent-orange-light: #ff8c5a;      /* Lighter orange for hover */
  --accent-orange-dark: #ff4500;       /* Darker orange for active */
  
  /* ============================================
     BACKGROUND PALETTE
     Pure black backgrounds
     ============================================ */
  --bg-primary: #000000;               /* Page background (pure black) */
  --bg-secondary: #0a0a0a;             /* Secondary surfaces (very dark gray) */
  --bg-tertiary: #141414;              /* Tertiary containers (dark gray) */
  --bg-quaternary: #1a1a1a;            /* Elevated surfaces/cards (darker gray) */
  --bg-hover: #1f1f1f;                 /* Hover state (slightly lighter) */
  --bg-active: #242424;                /* Active/selected state (lighter gray) */
  
  /* Overlay backgrounds */
  --bg-overlay-dark: rgba(0, 0, 0, 0.95);
  --bg-overlay-light: rgba(10, 10, 10, 0.8);
  
  /* ============================================
     TEXT & TYPOGRAPHY COLORS
     High contrast hierarchy
     ============================================ */
  --text-primary: #ffffff;             /* Primary text (pure white) */
  --text-secondary: #b0b8c1;           /* Secondary text (gray-blue) */
  --text-muted: #757d87;               /* Muted text (lower contrast) */
  --text-disabled: #5a6270;            /* Disabled state */
  --text-tertiary: #757d87;            /* Tertiary (alias for muted) */
  
  /* ============================================
     BORDERS & DIVIDERS
     Minimal use - electric blue for accents only
     ============================================ */
  --border-color: #2a2a2a;             /* Standard border (dark gray) */
  --border-light: #333333;             /* Light border (slightly lighter gray) */
  --border-subtle: #1a1a1a;            /* Subtle border (minimal contrast) */
  --border-accent: #0099ff;            /* Accent border (electric blue) */
  --border-accent-secondary: #9d4edd;  /* Secondary accent border (purple) */
  
  /* ============================================
     SHADOWS & DEPTH
     Stronger for contrast on black
     ============================================ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
  
  /* Glow effects - Electric feeling */
  --glow-primary: 0 0 16px rgba(0, 153, 255, 0.25);
  --glow-secondary: 0 0 16px rgba(157, 78, 221, 0.25);
  --glow-success: 0 0 16px rgba(0, 208, 132, 0.25);
  --glow-error: 0 0 16px rgba(255, 51, 51, 0.25);
  
  /* ============================================
     GRADIENTS
     Subtle, minimal use
     ============================================ */
  
  /* Subtle background: pure black */
  --gradient-brand: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* Blue accent (minimal) */
  --gradient-blue: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
  
  /* Purple accent (minimal) */
  --gradient-purple: linear-gradient(135deg, #9d4edd 0%, #6a0dad 100%);
  
  /* Success gradient */
  --gradient-success: linear-gradient(135deg, #00d084 0%, #00a85a 100%);
  
  /* Orange gradient for CT tokens and actions */
  --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  --gradient-orange-hover: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  --accent-orange-shadow: rgba(255, 107, 53, 0.4);
  
  /* Card gradient: pure black with subtle contrast */
  --gradient-card: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.9) 100%);

  /* Elevated card: slightly lighter */
  --gradient-card-elevated: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%);

  /* Subtle header gradient: pure black */
  --gradient-header: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.9));

  /* Pure black background gradient */
  --gradient-bg-electric: linear-gradient(135deg,
    #000000 0%,
    #000000 100%);
  
  /* Common gradient patterns for reuse */
  --gradient-card-standard: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
  --gradient-card-elevated-standard: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  --gradient-page-bg: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* ============================================
     BORDER RADIUS
     Sharp corners for crypto/technical feel
     ============================================ */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  
  /* ============================================
     SPACING SCALE
     Consistent spacing throughout
     ============================================ */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  /* Font family stack */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  
  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Font sizes for hierarchy */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */
  
  /* Line heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ============================================
     TRANSITIONS & ANIMATIONS
     ============================================ */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-slower: 0.5s ease;
  
  /* ============================================
     BREAKPOINTS
     Mobile-first responsive design
     Use these variables in media queries for consistency
     ============================================ */
  --breakpoint-xs: 480px;    /* Extra small devices (mobile portrait) */
  --breakpoint-sm: 640px;    /* Small devices (mobile landscape) */
  --breakpoint-md: 768px;    /* Medium devices (tablets) */
  --breakpoint-lg: 1024px;   /* Large devices (desktops) */
  --breakpoint-xl: 1280px;   /* Extra large devices */
  --breakpoint-2xl: 1536px;  /* 2X large devices */
  
  /* Mobile-first max-width breakpoints (for max-width queries) */
  --max-xs: 479px;
  --max-sm: 639px;
  --max-md: 767px;
  --max-lg: 1023px;
  --max-xl: 1279px;
  
  /* Tablet breakpoint range */
  --breakpoint-tablet-min: 768px;
  --breakpoint-tablet-max: 1023px;
  
  /* ============================================
     COMPONENT SIZING
     ============================================ */
  --header-height: 60px;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --button-height: 40px;
  --button-height-sm: 32px;
  --button-height-lg: 48px;
  
  /* ============================================
     Z-INDEX SCALE
     Logical stacking context
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 1000;
  --z-modal: 1001;
  --z-tooltip: 1100;
}
/* ============================================
   UTILITY CLASSES
   ============================================ */
/* TEXT COLORS */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-disabled { color: var(--text-disabled); }
/* BACKGROUND COLORS */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-quaternary { background: var(--bg-quaternary); }
/* BORDER COLORS */
.border-primary { border-color: var(--border-color); }
.border-light { border-color: var(--border-light); }
.border-subtle { border-color: var(--border-subtle); }
.border-accent { border-color: var(--border-accent); }
.border-accent-secondary { border-color: var(--border-accent-secondary); }
/* SHADOW UTILITIES */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-primary { box-shadow: var(--shadow-primary); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
/* GLOW UTILITIES */
.glow-primary { box-shadow: var(--glow-primary); }
.glow-secondary { box-shadow: var(--glow-secondary); }
.glow-success { box-shadow: var(--glow-success); }
.glow-error { box-shadow: var(--glow-error); }
/* ACCENT COLORS */
.accent-primary { color: var(--accent-primary); }
.accent-secondary { color: var(--accent-secondary); }
.accent-info { color: var(--accent-info); }
.accent-success { color: var(--accent-success); }
.accent-error { color: var(--accent-error); }
.accent-warning { color: var(--accent-warning); }
/* BACKGROUND ACCENTS */
.bg-accent-primary { background: var(--accent-primary); }
.bg-accent-secondary { background: var(--accent-secondary); }
.bg-accent-success { background: var(--accent-success); }
.bg-accent-error { background: var(--accent-error); }
/* GRADIENT BACKGROUNDS */
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-blue { background: var(--gradient-blue); }
.bg-gradient-purple { background: var(--gradient-purple); }
.bg-gradient-success { background: var(--gradient-success); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-gradient-electric { background: var(--gradient-bg-electric); }
/* ROUNDED CORNERS */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
/* SPACING UTILITIES */
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
/* TYPOGRAPHY */
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-normal { font-weight: var(--font-weight-normal); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
/* TRANSITIONS */
.transition-fast { transition: all var(--transition-fast); }
.transition-base { transition: all var(--transition-base); }
.transition-slow { transition: all var(--transition-slow); }
/* ============================================
   ERROR BOUNDARY STYLES
   ============================================ */
.error-boundary {
  padding: var(--spacing-2xl);
  text-align: center;
  max-width: 600px;
  margin: var(--spacing-2xl) auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  box-shadow: var(--shadow-xl), var(--glow-error);
  backdrop-filter: blur(10px);
}
.error-boundary h2 {
  color: var(--accent-error);
  margin-bottom: var(--spacing-md);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.error-boundary p {
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-base);
}
.error-boundary-details {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(var(--accent-error-rgb), 0.08);
  border: 1px solid rgba(var(--accent-error-rgb), 0.3);
  border-radius: var(--radius-md);
  text-align: left;
}
.error-boundary-details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-error);
  font-size: 0.95rem;
  user-select: none;
}
.error-boundary-details summary:hover {
  color: var(--accent-warning);
}
.error-boundary-details pre {
  font-size: 0.875rem;
  overflow: auto;
  color: var(--accent-error);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.5rem 0 0 0;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  line-height: 1.5;
}
.error-boundary-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}
.error-boundary-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.error-boundary-button-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}
.error-boundary-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.5);
}
.error-boundary-button-secondary {
  background: rgba(74, 158, 255, 0.1);
  color: var(--accent-primary);
  border: 2px solid rgba(74, 158, 255, 0.3);
}
.error-boundary-button-secondary:hover {
  background: rgba(74, 158, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.5);
  transform: translateY(-2px);
}
.error-boundary-button:active {
  transform: translateY(0);
}
/* Responsive Design */
@media (max-width: 768px) {
  .error-boundary {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: var(--radius-lg);
  }

  .error-boundary h2 {
    font-size: 1.5rem;
  }

  .error-boundary p {
    font-size: 1rem;
  }

  .error-boundary-actions {
    flex-direction: column;
  }

  .error-boundary-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}
@media (max-width: 480px) {
  .error-boundary {
    padding: 1.25rem;
    margin: 0.75rem;
  }

  .error-boundary h2 {
    font-size: 1.25rem;
  }

  .error-boundary-details {
    padding: 0.75rem;
  }

  .error-boundary-details pre {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}

/* CoinTracer Design System: Crypto-Native Dark Theme */
:root {
  /* ============================================
     PRIMARY COLOR PALETTE
     Black & dark gray foundation
     Electric blue & purple accents
     ============================================ */
  
  /* BASE COLORS - Surfaces */
  --base-black: #000000;               /* Pure black base */
  --base-dark-gray: #0a0a0a;           /* Very dark gray */
  --base-surface: #101010;             /* Dark surface */
  --base-surface-light: #1a1a1a;       /* Light surface */
  
  /* ACCENT COLORS - Minimal, Intentional */
  --accent-primary: #0099ff;           /* Electric blue (primary actions only) */
  --accent-primary-light: #33b1ff;     /* Bright blue for hover/active */
  --accent-primary-dark: #0066cc;      /* Darker blue for contrast */
  
  --accent-secondary: #9d4edd;         /* Electric purple (rankings) */
  --accent-secondary-light: #c77dff;   /* Bright purple for hover */
  --accent-secondary-dark: #6a0dad;    /* Dark purple for active */
  
  /* STATUS COLORS - Keep Crypto Standard */
  --accent-success: #00d084;           /* Bright green (gains/profit) */
  --accent-success-light: #1aff8f;     /* Lighter green for hover */
  --accent-success-dark: #00a85a;      /* Dark green for active */
  
  --accent-error: #ff3333;             /* Bright red (losses/short) */
  --accent-error-light: #ff6666;       /* Lighter red for hover */
  --accent-error-dark: #cc0000;        /* Dark red for active */
  
  /* Gold accent for rankings/achievements */
  --accent-gold: #ffd700;              /* Gold for ranking badges */
  --accent-gold-light: #ffed4e;        /* Bright gold */
  --accent-gold-dark: #ccaa00;         /* Dark gold */
  
  /* DEPRECATED - Gold removed from accent hierarchy */
  /* (only for backward compatibility in existing components) */
  --accent-ctr: #ffd700;               /* Gold (de-emphasized) */
  --accent-ctr-light: #ffed4e;
  --accent-ctr-dark: #ccaa00;
  
  /* Fallback for secondary elements */
  --accent-warning: #ff9500;           /* Orange warning */
  --accent-info: #0099ff;              /* Info (uses primary blue) */
  
  /* Orange accent for CT tokens and actions */
  --accent-orange: #ff6b35;            /* Bright orange for CT tokens */
  --accent-orange-light: #ff8c5a;      /* Lighter orange for hover */
  --accent-orange-dark: #ff4500;       /* Darker orange for active */
  
  /* ============================================
     BACKGROUND PALETTE
     Pure black backgrounds
     ============================================ */
  --bg-primary: #000000;               /* Page background (pure black) */
  --bg-secondary: #0a0a0a;             /* Secondary surfaces (very dark gray) */
  --bg-tertiary: #141414;              /* Tertiary containers (dark gray) */
  --bg-quaternary: #1a1a1a;            /* Elevated surfaces/cards (darker gray) */
  --bg-hover: #1f1f1f;                 /* Hover state (slightly lighter) */
  --bg-active: #242424;                /* Active/selected state (lighter gray) */
  
  /* Overlay backgrounds */
  --bg-overlay-dark: rgba(0, 0, 0, 0.95);
  --bg-overlay-light: rgba(10, 10, 10, 0.8);
  
  /* ============================================
     TEXT & TYPOGRAPHY COLORS
     High contrast hierarchy
     ============================================ */
  --text-primary: #ffffff;             /* Primary text (pure white) */
  --text-secondary: #b0b8c1;           /* Secondary text (gray-blue) */
  --text-muted: #757d87;               /* Muted text (lower contrast) */
  --text-disabled: #5a6270;            /* Disabled state */
  --text-tertiary: #757d87;            /* Tertiary (alias for muted) */
  
  /* ============================================
     BORDERS & DIVIDERS
     Minimal use - electric blue for accents only
     ============================================ */
  --border-color: #2a2a2a;             /* Standard border (dark gray) */
  --border-light: #333333;             /* Light border (slightly lighter gray) */
  --border-subtle: #1a1a1a;            /* Subtle border (minimal contrast) */
  --border-accent: #0099ff;            /* Accent border (electric blue) */
  --border-accent-secondary: #9d4edd;  /* Secondary accent border (purple) */
  
  /* ============================================
     SHADOWS & DEPTH
     Stronger for contrast on black
     ============================================ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
  
  /* Glow effects - Electric feeling */
  --glow-primary: 0 0 16px rgba(0, 153, 255, 0.25);
  --glow-secondary: 0 0 16px rgba(157, 78, 221, 0.25);
  --glow-success: 0 0 16px rgba(0, 208, 132, 0.25);
  --glow-error: 0 0 16px rgba(255, 51, 51, 0.25);
  
  /* ============================================
     GRADIENTS
     Subtle, minimal use
     ============================================ */
  
  /* Subtle background: pure black */
  --gradient-brand: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* Blue accent (minimal) */
  --gradient-blue: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
  
  /* Purple accent (minimal) */
  --gradient-purple: linear-gradient(135deg, #9d4edd 0%, #6a0dad 100%);
  
  /* Success gradient */
  --gradient-success: linear-gradient(135deg, #00d084 0%, #00a85a 100%);
  
  /* Orange gradient for CT tokens and actions */
  --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  --gradient-orange-hover: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  --accent-orange-shadow: rgba(255, 107, 53, 0.4);
  
  /* Card gradient: pure black with subtle contrast */
  --gradient-card: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.9) 100%);

  /* Elevated card: slightly lighter */
  --gradient-card-elevated: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%);

  /* Subtle header gradient: pure black */
  --gradient-header: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.9));

  /* Pure black background gradient */
  --gradient-bg-electric: linear-gradient(135deg,
    #000000 0%,
    #000000 100%);
  
  /* Common gradient patterns for reuse */
  --gradient-card-standard: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
  --gradient-card-elevated-standard: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  --gradient-page-bg: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* ============================================
     BORDER RADIUS
     Sharp corners for crypto/technical feel
     ============================================ */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  
  /* ============================================
     SPACING SCALE
     Consistent spacing throughout
     ============================================ */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  /* Font family stack */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  
  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Font sizes for hierarchy */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */
  
  /* Line heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ============================================
     TRANSITIONS & ANIMATIONS
     ============================================ */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-slower: 0.5s ease;
  
  /* ============================================
     BREAKPOINTS
     Mobile-first responsive design
     Use these variables in media queries for consistency
     ============================================ */
  --breakpoint-xs: 480px;    /* Extra small devices (mobile portrait) */
  --breakpoint-sm: 640px;    /* Small devices (mobile landscape) */
  --breakpoint-md: 768px;    /* Medium devices (tablets) */
  --breakpoint-lg: 1024px;   /* Large devices (desktops) */
  --breakpoint-xl: 1280px;   /* Extra large devices */
  --breakpoint-2xl: 1536px;  /* 2X large devices */
  
  /* Mobile-first max-width breakpoints (for max-width queries) */
  --max-xs: 479px;
  --max-sm: 639px;
  --max-md: 767px;
  --max-lg: 1023px;
  --max-xl: 1279px;
  
  /* Tablet breakpoint range */
  --breakpoint-tablet-min: 768px;
  --breakpoint-tablet-max: 1023px;
  
  /* ============================================
     COMPONENT SIZING
     ============================================ */
  --header-height: 60px;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --button-height: 40px;
  --button-height-sm: 32px;
  --button-height-lg: 48px;
  
  /* ============================================
     Z-INDEX SCALE
     Logical stacking context
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 1000;
  --z-modal: 1001;
  --z-tooltip: 1100;
}
/* ============================================
   UTILITY CLASSES
   ============================================ */
/* TEXT COLORS */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-disabled { color: var(--text-disabled); }
/* BACKGROUND COLORS */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-quaternary { background: var(--bg-quaternary); }
/* BORDER COLORS */
.border-primary { border-color: var(--border-color); }
.border-light { border-color: var(--border-light); }
.border-subtle { border-color: var(--border-subtle); }
.border-accent { border-color: var(--border-accent); }
.border-accent-secondary { border-color: var(--border-accent-secondary); }
/* SHADOW UTILITIES */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-primary { box-shadow: var(--shadow-primary); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
/* GLOW UTILITIES */
.glow-primary { box-shadow: var(--glow-primary); }
.glow-secondary { box-shadow: var(--glow-secondary); }
.glow-success { box-shadow: var(--glow-success); }
.glow-error { box-shadow: var(--glow-error); }
/* ACCENT COLORS */
.accent-primary { color: var(--accent-primary); }
.accent-secondary { color: var(--accent-secondary); }
.accent-info { color: var(--accent-info); }
.accent-success { color: var(--accent-success); }
.accent-error { color: var(--accent-error); }
.accent-warning { color: var(--accent-warning); }
/* BACKGROUND ACCENTS */
.bg-accent-primary { background: var(--accent-primary); }
.bg-accent-secondary { background: var(--accent-secondary); }
.bg-accent-success { background: var(--accent-success); }
.bg-accent-error { background: var(--accent-error); }
/* GRADIENT BACKGROUNDS */
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-blue { background: var(--gradient-blue); }
.bg-gradient-purple { background: var(--gradient-purple); }
.bg-gradient-success { background: var(--gradient-success); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-gradient-electric { background: var(--gradient-bg-electric); }
/* ROUNDED CORNERS */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
/* SPACING UTILITIES */
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
/* TYPOGRAPHY */
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-normal { font-weight: var(--font-weight-normal); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
/* TRANSITIONS */
.transition-fast { transition: all var(--transition-fast); }
.transition-base { transition: all var(--transition-base); }
.transition-slow { transition: all var(--transition-slow); }
:root {
  --notice-radius: 10px;
}
/* Reusable notice banner, soft variants */
.notice {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  font-size: var(--text-sm);
}
.notice-danger {
  background: rgba(var(--accent-error-rgb), 0.12);
  border-color: rgba(var(--accent-error-rgb), 0.3);
  color: var(--accent-error);
}
.notice-warning {
  background: rgba(var(--accent-warning-rgb), 0.12);
  border-color: rgba(var(--accent-warning-rgb), 0.3);
  color: var(--accent-warning);
}
.notice-info {
  background: rgba(var(--accent-primary-rgb), 0.12);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  color: var(--accent-primary);
}
.notice-success {
  background: rgba(var(--accent-success-rgb), 0.12);
  border-color: rgba(var(--accent-success-rgb), 0.3);
  color: var(--accent-success);
}
/* Professional login page design */
.login-page {
  max-width: 1100px;
  margin: 0 auto;
}

.login-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.login-hero {
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
}

.login-hero .badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-hero h1 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-hero p { color: var(--text-secondary); margin-bottom: 1rem; }

.login-benefits {
  margin: 0; padding-left: 1rem; display: grid; gap: .35rem;
}
.login-benefits li { color: #dbeafe; }

.login-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
}

.login-card h2 { margin: 0 0 .25rem 0; }

.login-redirect-notice {
  margin: 0.75rem 0 1rem 0;
}

.login-alert {
  background: rgba(var(--accent-warning-rgb), 0.15);
  border: 1px solid rgba(var(--accent-warning-rgb), 0.3);
  color: var(--text-warning);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  margin: var(--spacing-xs) 0 var(--spacing-md) 0;
  font-size: var(--text-sm);
}
.login-card .sub { color: var(--text-secondary); margin-bottom: 1.25rem; }

.login-form {
  /* Extends .form from shared.css */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.login-form .form-group {
  /* Extends .form-group from shared.css */
  display: flex;
  flex-direction: column;
}

.login-form input {
  /* Extends .form-input from shared.css */
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(var(--accent-primary-rgb), 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.login-form input:focus {
  /* Extends focus styles from shared.css */
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.login-form input:disabled {
  /* Extends disabled styles from shared.css */
  opacity: 0.6;
  cursor: not-allowed;
}

.login-error-notice {
  margin-bottom: 1rem;
}

.login-cta {
  /* Extends .btn .btn-success .btn-block from shared.css */
  width: 100%;
  background: var(--gradient-success);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  box-shadow: var(--glow-success);
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.login-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-success);
}

.login-divider {
  /* Extends .divider from shared.css */
  display: flex;
  align-items: center;
  margin: var(--spacing-lg) 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.login-divider span {
  padding: 0 var(--spacing-lg);
}

.login-cta-secondary {
  width: 100%;
  background: rgba(var(--accent-primary-rgb), 0.12);
  color: var(--accent-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-cta-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--glow-primary);
  border-color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.15);
}

.login-cta-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.create-error {
  /* Extends .alert .alert-error from shared.css */
  margin-top: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(var(--accent-error-rgb), 0.1);
  border: 1px solid rgba(var(--accent-error-rgb), 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-error);
  font-size: var(--text-sm);
}

.login-card .note { color: var(--text-muted); margin-top: .75rem; font-size: .9rem; }

.login-link {
  /* Extends .link-secondary from shared.css */
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-link a {
  /* Extends .link from shared.css */
  color: #0099ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-link a:hover {
  color: #6bb3ff;
  text-decoration: underline;
}

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

/* Large screens - extra breathing room */
@media (min-width: 1400px) {
  .login-page {
    max-width: 1200px;
  }

  .login-grid {
    gap: 3rem;
  }

  .login-hero,
  .login-card {
    padding: 2.5rem;
  }
}

/* Tablets and medium screens */
@media (max-width: 1024px) {
  .login-grid {
    gap: 2rem;
  }

  .login-hero h1 {
    font-size: 2rem;
  }

  .login-hero,
  .login-card {
    padding: 1.75rem;
  }
}

@media (max-width: 900px) {
  .login-page {
    padding: 0 1rem;
  }

  .login-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .login-hero h1 {
    font-size: 2rem;
  }

  .login-hero,
  .login-card {
    padding: 1.75rem;
  }

  .login-cta,
  .login-cta-secondary {
    padding: 0.85rem 1.15rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .login-page {
    padding: 0 0.875rem;
  }

  .login-grid {
    gap: 1.5rem;
  }

  .login-hero h1 {
    font-size: 1.85rem;
  }

  .login-hero p {
    font-size: 0.95rem;
  }

  .login-hero,
  .login-card {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .login-card h2 {
    font-size: 1.5rem;
  }

  .login-cta,
  .login-cta-secondary {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .login-page {
    padding: 0 0.75rem;
  }

  .login-grid {
    gap: 1.25rem;
  }

  .login-hero .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.55rem;
  }

  .login-hero h1 {
    font-size: 1.65rem;
  }

  .login-hero p {
    font-size: 0.9rem;
  }

  .login-benefits {
    font-size: 0.9rem;
    gap: 0.3rem;
  }

  .login-hero,
  .login-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .login-card h2 {
    font-size: 1.35rem;
  }

  .login-card .sub {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .login-redirect-notice {
    font-size: 0.9rem;
  }

  .login-alert {
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
    margin: 0.45rem 0 0.8rem 0;
  }

  .login-cta,
  .login-cta-secondary {
    padding: 0.75rem 0.95rem;
    font-size: 0.95rem;
  }

  .login-divider {
    margin: 1rem 0;
    font-size: 0.8rem;
  }

  .login-divider span {
    padding: 0 0.75rem;
  }

  .create-error {
    padding: 0.65rem;
    font-size: 0.85rem;
  }

  .login-card .note {
    font-size: 0.85rem;
    margin-top: 0.65rem;
  }
}

@media (max-width: 900px) {
  .login-grid { grid-template-columns: 1fr; }
}
/* Professional signup page design - matches Login.css styling */
.signup-page {
  max-width: 1100px;
  margin: 0 auto;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.signup-hero {
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
}

.signup-hero .badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: var(--text-xs);
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signup-hero h1 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signup-hero p { 
  color: var(--text-secondary); 
  margin-bottom: 1rem; 
}

.signup-benefits {
  margin: 0; 
  padding-left: 1rem; 
  display: grid; 
  gap: .35rem;
}

.signup-benefits li { 
  color: #dbeafe; 
}

.signup-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
}

.signup-card h2 { 
  margin: 0 0 .25rem 0; 
}

.signup-card .sub { 
  color: var(--text-secondary); 
  margin-bottom: 1.25rem; 
}

.signup-error-notice {
  margin-bottom: 1.25rem;
}

.signup-form {
  /* Extends .form from shared.css */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-form .form-group {
  /* Extends .form-group from shared.css */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.signup-form .form-group label {
  /* Extends .form-label from shared.css */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.signup-form .form-group input,
.signup-form .form-group textarea {
  /* Extends .form-input, .form-textarea from shared.css */
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(74, 158, 255, 0.25);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.signup-form .form-group input:focus,
.signup-form .form-group textarea:focus {
  /* Extends focus styles from shared.css */
  outline: none;
  border-color: rgba(74, 158, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.signup-form .form-group input.error,
.signup-form .form-group textarea.error {
  /* Extends .error styles from shared.css */
  border-color: rgba(239, 68, 68, 0.5);
}

.signup-form .form-group input:disabled,
.signup-form .form-group textarea:disabled {
  /* Extends disabled styles from shared.css */
  opacity: 0.6;
  cursor: not-allowed;
}

.signup-form .form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.signup-form .field-error {
  /* Extends .field-error from shared.css */
  font-size: 0.85rem;
  color: #ef4444;
  margin-top: -0.2rem;
}

.invite-badge {
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #86efac;
  font-weight: 600;
}

.signup-cta {
  /* Extends .btn .btn-success .btn-block from shared.css */
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  transition: transform .15s ease, box-shadow .2s ease;
  margin-top: 0.5rem;
}

.signup-cta:hover:not(:disabled) { 
  transform: translateY(-1px); 
  box-shadow: 0 12px 30px rgba(34,197,94,.45); 
}

.signup-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.signup-form .login-link {
  /* Extends .link-secondary from shared.css */
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.signup-form .login-link a {
  /* Extends .link from shared.css */
  color: #0099ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.signup-form .login-link a:hover {
  color: #6bb3ff;
  text-decoration: underline;
}

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

/* Large screens - extra breathing room */
@media (min-width: 1400px) {
  .signup-page {
    max-width: 1200px;
  }

  .signup-grid {
    gap: 3rem;
  }

  .signup-hero,
  .signup-card {
    padding: 2.5rem;
  }
}

/* Tablets and medium screens */
@media (max-width: 1024px) {
  .signup-grid {
    gap: 2rem;
  }

  .signup-hero h1 {
    font-size: 2rem;
  }

  .signup-hero,
  .signup-card {
    padding: 1.75rem;
  }
}

@media (max-width: 900px) {
  .signup-page {
    padding: 0 1rem;
  }

  .signup-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .signup-hero h1 {
    font-size: 2rem;
  }

  .signup-hero,
  .signup-card {
    padding: 1.75rem;
  }

  .signup-cta {
    padding: 0.85rem 1.15rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .signup-page {
    padding: 0 0.875rem;
  }

  .signup-grid {
    gap: 1.5rem;
  }

  .signup-hero h1 {
    font-size: 1.85rem;
  }

  .signup-hero p {
    font-size: 0.95rem;
  }

  .signup-hero,
  .signup-card {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .signup-card h2 {
    font-size: 1.5rem;
  }

  .signup-form {
    gap: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }

  .signup-cta {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .signup-page {
    padding: 0 0.75rem;
  }

  .signup-grid {
    gap: 1.25rem;
  }

  .signup-hero .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.55rem;
  }

  .signup-hero h1 {
    font-size: 1.65rem;
  }

  .signup-hero p {
    font-size: 0.9rem;
  }

  .signup-benefits {
    font-size: 0.9rem;
    gap: 0.3rem;
  }

  .signup-hero,
  .signup-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .signup-card h2 {
    font-size: 1.35rem;
  }

  .signup-card .sub {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .signup-form {
    gap: 0.85rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .field-error {
    font-size: 0.8rem;
  }

  .signup-cta {
    padding: 0.75rem 0.95rem;
    font-size: 0.95rem;
  }

  .login-link {
    font-size: 0.85rem;
    margin-top: 0.85rem;
  }
}
/* Progression Lock - Soft blur and subtle unavailable state */
.progression-lock-wrapper {
  position: relative;
  width: 100%;
}

.progression-lock-content {
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.progression-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: all;
}

.progression-lock-message {
  text-align: center;
  padding: 1.5rem;
  max-width: 400px;
}

.progression-lock-primary {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.progression-lock-subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.progression-lock-tertiary {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.progression-lock-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.progression-lock-cta:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .progression-lock-message {
    padding: 1rem;
  }
  
  .progression-lock-primary {
    font-size: 1rem;
  }
  
  .progression-lock-subtext {
    font-size: 0.85rem;
  }
}
/* CoinTracer Design System: Crypto-Native Dark Theme */
:root {
  /* ============================================
     PRIMARY COLOR PALETTE
     Black & dark gray foundation
     Electric blue & purple accents
     ============================================ */
  
  /* BASE COLORS - Surfaces */
  --base-black: #000000;               /* Pure black base */
  --base-dark-gray: #0a0a0a;           /* Very dark gray */
  --base-surface: #101010;             /* Dark surface */
  --base-surface-light: #1a1a1a;       /* Light surface */
  
  /* ACCENT COLORS - Minimal, Intentional */
  --accent-primary: #0099ff;           /* Electric blue (primary actions only) */
  --accent-primary-light: #33b1ff;     /* Bright blue for hover/active */
  --accent-primary-dark: #0066cc;      /* Darker blue for contrast */
  
  --accent-secondary: #9d4edd;         /* Electric purple (rankings) */
  --accent-secondary-light: #c77dff;   /* Bright purple for hover */
  --accent-secondary-dark: #6a0dad;    /* Dark purple for active */
  
  /* STATUS COLORS - Keep Crypto Standard */
  --accent-success: #00d084;           /* Bright green (gains/profit) */
  --accent-success-light: #1aff8f;     /* Lighter green for hover */
  --accent-success-dark: #00a85a;      /* Dark green for active */
  
  --accent-error: #ff3333;             /* Bright red (losses/short) */
  --accent-error-light: #ff6666;       /* Lighter red for hover */
  --accent-error-dark: #cc0000;        /* Dark red for active */
  
  /* Gold accent for rankings/achievements */
  --accent-gold: #ffd700;              /* Gold for ranking badges */
  --accent-gold-light: #ffed4e;        /* Bright gold */
  --accent-gold-dark: #ccaa00;         /* Dark gold */
  
  /* DEPRECATED - Gold removed from accent hierarchy */
  /* (only for backward compatibility in existing components) */
  --accent-ctr: #ffd700;               /* Gold (de-emphasized) */
  --accent-ctr-light: #ffed4e;
  --accent-ctr-dark: #ccaa00;
  
  /* Fallback for secondary elements */
  --accent-warning: #ff9500;           /* Orange warning */
  --accent-info: #0099ff;              /* Info (uses primary blue) */
  
  /* Orange accent for CT tokens and actions */
  --accent-orange: #ff6b35;            /* Bright orange for CT tokens */
  --accent-orange-light: #ff8c5a;      /* Lighter orange for hover */
  --accent-orange-dark: #ff4500;       /* Darker orange for active */
  
  /* ============================================
     BACKGROUND PALETTE
     Pure black backgrounds
     ============================================ */
  --bg-primary: #000000;               /* Page background (pure black) */
  --bg-secondary: #0a0a0a;             /* Secondary surfaces (very dark gray) */
  --bg-tertiary: #141414;              /* Tertiary containers (dark gray) */
  --bg-quaternary: #1a1a1a;            /* Elevated surfaces/cards (darker gray) */
  --bg-hover: #1f1f1f;                 /* Hover state (slightly lighter) */
  --bg-active: #242424;                /* Active/selected state (lighter gray) */
  
  /* Overlay backgrounds */
  --bg-overlay-dark: rgba(0, 0, 0, 0.95);
  --bg-overlay-light: rgba(10, 10, 10, 0.8);
  
  /* ============================================
     TEXT & TYPOGRAPHY COLORS
     High contrast hierarchy
     ============================================ */
  --text-primary: #ffffff;             /* Primary text (pure white) */
  --text-secondary: #b0b8c1;           /* Secondary text (gray-blue) */
  --text-muted: #757d87;               /* Muted text (lower contrast) */
  --text-disabled: #5a6270;            /* Disabled state */
  --text-tertiary: #757d87;            /* Tertiary (alias for muted) */
  
  /* ============================================
     BORDERS & DIVIDERS
     Minimal use - electric blue for accents only
     ============================================ */
  --border-color: #2a2a2a;             /* Standard border (dark gray) */
  --border-light: #333333;             /* Light border (slightly lighter gray) */
  --border-subtle: #1a1a1a;            /* Subtle border (minimal contrast) */
  --border-accent: #0099ff;            /* Accent border (electric blue) */
  --border-accent-secondary: #9d4edd;  /* Secondary accent border (purple) */
  
  /* ============================================
     SHADOWS & DEPTH
     Stronger for contrast on black
     ============================================ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
  
  /* Glow effects - Electric feeling */
  --glow-primary: 0 0 16px rgba(0, 153, 255, 0.25);
  --glow-secondary: 0 0 16px rgba(157, 78, 221, 0.25);
  --glow-success: 0 0 16px rgba(0, 208, 132, 0.25);
  --glow-error: 0 0 16px rgba(255, 51, 51, 0.25);
  
  /* ============================================
     GRADIENTS
     Subtle, minimal use
     ============================================ */
  
  /* Subtle background: pure black */
  --gradient-brand: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* Blue accent (minimal) */
  --gradient-blue: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
  
  /* Purple accent (minimal) */
  --gradient-purple: linear-gradient(135deg, #9d4edd 0%, #6a0dad 100%);
  
  /* Success gradient */
  --gradient-success: linear-gradient(135deg, #00d084 0%, #00a85a 100%);
  
  /* Orange gradient for CT tokens and actions */
  --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  --gradient-orange-hover: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  --accent-orange-shadow: rgba(255, 107, 53, 0.4);
  
  /* Card gradient: pure black with subtle contrast */
  --gradient-card: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.9) 100%);

  /* Elevated card: slightly lighter */
  --gradient-card-elevated: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%);

  /* Subtle header gradient: pure black */
  --gradient-header: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.9));

  /* Pure black background gradient */
  --gradient-bg-electric: linear-gradient(135deg,
    #000000 0%,
    #000000 100%);
  
  /* Common gradient patterns for reuse */
  --gradient-card-standard: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
  --gradient-card-elevated-standard: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  --gradient-page-bg: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* ============================================
     BORDER RADIUS
     Sharp corners for crypto/technical feel
     ============================================ */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  
  /* ============================================
     SPACING SCALE
     Consistent spacing throughout
     ============================================ */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  /* Font family stack */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  
  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Font sizes for hierarchy */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */
  
  /* Line heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ============================================
     TRANSITIONS & ANIMATIONS
     ============================================ */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-slower: 0.5s ease;
  
  /* ============================================
     BREAKPOINTS
     Mobile-first responsive design
     Use these variables in media queries for consistency
     ============================================ */
  --breakpoint-xs: 480px;    /* Extra small devices (mobile portrait) */
  --breakpoint-sm: 640px;    /* Small devices (mobile landscape) */
  --breakpoint-md: 768px;    /* Medium devices (tablets) */
  --breakpoint-lg: 1024px;   /* Large devices (desktops) */
  --breakpoint-xl: 1280px;   /* Extra large devices */
  --breakpoint-2xl: 1536px;  /* 2X large devices */
  
  /* Mobile-first max-width breakpoints (for max-width queries) */
  --max-xs: 479px;
  --max-sm: 639px;
  --max-md: 767px;
  --max-lg: 1023px;
  --max-xl: 1279px;
  
  /* Tablet breakpoint range */
  --breakpoint-tablet-min: 768px;
  --breakpoint-tablet-max: 1023px;
  
  /* ============================================
     COMPONENT SIZING
     ============================================ */
  --header-height: 60px;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --button-height: 40px;
  --button-height-sm: 32px;
  --button-height-lg: 48px;
  
  /* ============================================
     Z-INDEX SCALE
     Logical stacking context
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 1000;
  --z-modal: 1001;
  --z-tooltip: 1100;
}
/* ============================================
   UTILITY CLASSES
   ============================================ */
/* TEXT COLORS */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-disabled { color: var(--text-disabled); }
/* BACKGROUND COLORS */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-quaternary { background: var(--bg-quaternary); }
/* BORDER COLORS */
.border-primary { border-color: var(--border-color); }
.border-light { border-color: var(--border-light); }
.border-subtle { border-color: var(--border-subtle); }
.border-accent { border-color: var(--border-accent); }
.border-accent-secondary { border-color: var(--border-accent-secondary); }
/* SHADOW UTILITIES */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-primary { box-shadow: var(--shadow-primary); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
/* GLOW UTILITIES */
.glow-primary { box-shadow: var(--glow-primary); }
.glow-secondary { box-shadow: var(--glow-secondary); }
.glow-success { box-shadow: var(--glow-success); }
.glow-error { box-shadow: var(--glow-error); }
/* ACCENT COLORS */
.accent-primary { color: var(--accent-primary); }
.accent-secondary { color: var(--accent-secondary); }
.accent-info { color: var(--accent-info); }
.accent-success { color: var(--accent-success); }
.accent-error { color: var(--accent-error); }
.accent-warning { color: var(--accent-warning); }
/* BACKGROUND ACCENTS */
.bg-accent-primary { background: var(--accent-primary); }
.bg-accent-secondary { background: var(--accent-secondary); }
.bg-accent-success { background: var(--accent-success); }
.bg-accent-error { background: var(--accent-error); }
/* GRADIENT BACKGROUNDS */
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-blue { background: var(--gradient-blue); }
.bg-gradient-purple { background: var(--gradient-purple); }
.bg-gradient-success { background: var(--gradient-success); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-gradient-electric { background: var(--gradient-bg-electric); }
/* ROUNDED CORNERS */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
/* SPACING UTILITIES */
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
/* TYPOGRAPHY */
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-normal { font-weight: var(--font-weight-normal); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
/* TRANSITIONS */
.transition-fast { transition: all var(--transition-fast); }
.transition-base { transition: all var(--transition-base); }
.transition-slow { transition: all var(--transition-slow); }
.App {
  min-height: 100vh;
  background: var(--gradient-bg-electric);
  display: flex;
  flex-direction: column;
}
/* Main content area with sidebar offset */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  margin-right: 350px; /* Activity sidebar width - will be responsive */
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
  max-width: calc(100vw - var(--sidebar-width) - 350px);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: calc(100vh - var(--header-height));
}
/* Hide activity sidebar on medium screens */
@media (max-width: 1200px) {
  .main-content {
    margin-right: 0;
    max-width: calc(100vw - var(--sidebar-width));
  }
}
/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-content {
    padding: 2rem 1.5rem;
  }
}
/* Mobile: no sidebar offset */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding: 1rem 0.75rem;
    padding-top: 4.5rem; /* Space for mobile header */
    min-height: calc(100vh - var(--header-height));
    /* Mobile performance: enable smooth scrolling */
    -webkit-overflow-scrolling: touch;
  }
}
/* Page container styles moved to shared.css */
/* Responsive page styles moved to shared.css */
/* Home page styles moved to Home.css */
/* ============================================
   HOME PAGE - COMPLETE REDESIGN
   Trader's Dashboard with Hero Card & Live Feed
   ============================================ */

/* Note: Color variables are defined in colors.css */

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--gradient-page-bg);
  min-height: 100vh;
}

/* ============================================
   HERO CARD - Main Performance Display
   ============================================ */

.hero-card {
  background: var(--gradient-card-elevated-standard);
  border: 2px solid var(--border-accent);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  height: 360px; /* Increased from 300px by 20% */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.hero-card.hero-positive {
  border-color: rgba(0, 255, 65, 0.3);
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(0, 153, 255, 0.08) 100%);
  box-shadow: 0 0 60px rgba(0, 255, 65, 0.2), inset 0 0 40px rgba(0, 255, 65, 0.1);
}

.hero-card.hero-negative {
  border-color: rgba(255, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.05) 0%, rgba(153, 76, 221, 0.08) 100%);
  box-shadow: 0 0 60px rgba(255, 68, 68, 0.15), inset 0 0 40px rgba(255, 68, 68, 0.08);
}

.hero-card.hero-positive::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.15) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  animation: glow-pulse-positive 3s ease-in-out infinite;
}

.hero-card.hero-negative::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 68, 68, 0.12) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  animation: glow-pulse-negative 3s ease-in-out infinite;
}

@keyframes glow-pulse-positive {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes glow-pulse-negative {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 0;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.timeframe-pills {
  display: flex;
  gap: 0.5rem;
}

.time-pill {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 153, 255, 0.2);
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.time-pill:hover {
  background: rgba(0, 153, 255, 0.15);
  border-color: rgba(0, 153, 255, 0.4);
  color: var(--text-secondary);
}

.time-pill.active {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.3), rgba(0, 212, 255, 0.2));
  border-color: var(--color-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.4);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero-pnl {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-pnl.positive {
  background: linear-gradient(135deg, #00ff41 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

.hero-pnl.negative {
  background: linear-gradient(135deg, #ff4444 0%, #ff9d5d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
}

.hero-rank-info {
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
}

.rank-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.hero-percent {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-percent.positive {
  color: var(--color-positive);
}

.hero-percent.negative {
  color: var(--accent-error);
}

.hero-rank {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
}

/* Legacy stat styles - keep for backward compatibility */
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-primary-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-action {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.share-btn {
  padding: 0.8rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-light));
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.4);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 153, 255, 0.6);
}

.share-btn.copied {
  background: linear-gradient(135deg, var(--accent-success), var(--accent-primary-light));
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

/* ============================================
   STAT TILES - Competitive Metrics
   ============================================ */

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-tile {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  gap: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-tile:hover {
  border-color: rgba(0, 153, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.2);
  transform: translateY(-4px);
}

.tile-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tile-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

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

.tile-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tile-stat {
  font-size: 0.9rem;
  color: var(--accent-primary-light);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* ============================================
   ACHIEVEMENTS ROW - Badge Display
   ============================================ */

.achievements-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.achievement-badge {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.achievement-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.achievement-badge:hover {
  border-color: rgba(0, 153, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.3);
  transform: translateY(-4px);
}

.achievement-badge.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.achievement-badge.clickable:active {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.4);
}

.achievement-badge.clickable.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.achievement-badge.clickable.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-accent);
}

.badge-icon {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.badge-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.badge-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.2;
  margin-bottom: 0.1rem;
}

.badge-stat {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

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

.badge-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.badge-share {
  font-size: 1.4rem;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.achievement-badge:hover .badge-share {
  transform: scale(1.2) rotate(10deg);
}

/* ============================================
   SUPERCTR CARD - Trophy Progress Tracker
   ============================================ */

.superctr-card {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.superctr-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.superctr-badges {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary-light);
}

.superctr-bar {
  position: relative;
  height: 24px;
  background: rgba(0, 153, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(0, 153, 255, 0.2);
  overflow: hidden;
}

.superctr-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-light));
  border-radius: 11px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.6);
}

.superctr-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.superctr-text .level {
  font-weight: 700;
  color: var(--accent-primary-light);
  font-size: 1rem;
}

/* ============================================
   LIVE SECTION - Real-time Activity Feed
   ============================================ */

.live-section {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.live-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-success);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-success);
  animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% {
    box-shadow: 0 0 10px var(--accent-success);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px var(--accent-success);
    transform: scale(1.3);
  }
}

.live-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.live-copy {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.live-events {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 300px;
  overflow-y: auto;
}

.live-event {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(0, 153, 255, 0.05);
  border: 1px solid rgba(0, 153, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.live-event.your-event {
  background: rgba(0, 255, 65, 0.1);
  border-color: rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.live-event:hover {
  background: rgba(0, 153, 255, 0.12);
  border-color: rgba(0, 153, 255, 0.3);
}

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

.event-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.live-events::-webkit-scrollbar {
  width: 6px;
}

.live-events::-webkit-scrollbar-track {
  background: rgba(0, 153, 255, 0.05);
  border-radius: 3px;
}

.live-events::-webkit-scrollbar-thumb {
  background: rgba(0, 153, 255, 0.3);
  border-radius: 3px;
}

.live-events::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 153, 255, 0.5);
}

/* ============================================
   PRIMARY ACTIONS - CTA Buttons
   ============================================ */

.primary-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.action-btn {
  padding: 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-light));
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.4);
}

.action-btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 50px rgba(0, 153, 255, 0.6);
}

.action-btn.secondary {
  background: rgba(0, 153, 255, 0.1);
  border: 2px solid rgba(0, 153, 255, 0.3);
  color: var(--accent-primary);
}

.action-btn.secondary:hover {
  background: rgba(0, 153, 255, 0.2);
  border-color: rgba(0, 153, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.3);
}

/* ============================================
   STICKY STREAK - Win Streak Notification
   ============================================ */

.sticky-streak {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 212, 255, 0.15));
  border: 2px solid rgba(0, 255, 65, 0.5);
  border-radius: 16px;
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
  animation: slide-in-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
}

@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sticky-streak::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.3), rgba(0, 212, 255, 0.2));
  border-radius: 16px;
  z-index: -1;
  animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.streak-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.streak-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-positive);
}

.streak-count {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-positive);
  line-height: 1;
}

.streak-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.streak-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.snapshot-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-card {
    height: auto;
  }

  .stat-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page {
    padding: 1rem;
    gap: 1.5rem;
  }

  .hero-card {
    padding: 2rem;
  }

  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .timeframe-pills {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-center {
    align-items: flex-start;
  }

  .hero-pnl {
    font-size: 3.5rem;
  }

  .hero-right {
    align-items: flex-start;
  }

  .hero-action {
    justify-content: flex-start;
  }

  .stat-tiles {
    grid-template-columns: 1fr;
  }

  .achievements-row {
    grid-template-columns: 1fr;
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }

  .sticky-streak {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: none;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-pnl {
    font-size: 2.5rem;
  }

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

  .share-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .hero-stat {
    gap: 0.2rem;
  }
}

/* ============================================
   TROPHY PROGRESS SECTION
   ============================================ */

.trophy-progress-section {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trophy-progress-section h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trophy-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.trophy-progress-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
  background: rgba(0, 153, 255, 0.08);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.trophy-progress-card:hover {
  background: rgba(0, 153, 255, 0.15);
  border-color: rgba(0, 153, 255, 0.4);
  transform: translateY(-4px);
}

.trophy-icon {
  font-size: 2.5rem;
}

.trophy-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: rgba(0, 153, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 153, 255, 0.2);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0099ff, #00d4ff);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

.progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #00d4ff;
}

@media (max-width: 768px) {
  .trophy-progress-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .trophy-progress-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
  }
}

/* ============================================
   ACTION BUTTONS - SHARE LINK & LOGIN STREAK
   ============================================ */

.share-link-btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border) !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.3) !important;
  position: relative !important;
}

.share-link-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.share-link-btn:hover {
  border-color: rgba(0, 153, 255, 0.5) !important;
  box-shadow: 0 0 50px rgba(0, 153, 255, 0.4) !important;
  transform: translateY(-2px) !important;
}

.share-link-btn.copied {
  background: linear-gradient(135deg, #00ff41 0%, #00dd33 100%) !important;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5) !important;
}

.login-streak-btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border) !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
}

.login-streak-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.login-streak-btn:hover {
  border-color: rgba(0, 153, 255, 0.5) !important;
  box-shadow: 0 0 50px rgba(0, 153, 255, 0.4) !important;
  transform: translateY(-2px) !important;
}

.login-streak-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

.login-streak-btn.checked-in {
  opacity: 0.7 !important;
}


/* Action Buttons Row */
.action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .action-buttons-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================
   RECENT POST SECTION
   ============================================ */

.recent-post-section {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recent-post-section h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recent-post-card {
  background: rgba(0, 153, 255, 0.08);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.recent-post-card:hover {
  background: rgba(0, 153, 255, 0.15);
  border-color: rgba(0, 153, 255, 0.4);
  transform: translateY(-2px);
}

.recent-post-content {
  margin-bottom: 1rem;
}

.recent-post-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  word-wrap: break-word;
}

.recent-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.recent-post-date {
  font-weight: 500;
}

.recent-post-stats {
  font-weight: 400;
}

/* Mobile responsiveness for recent post */
@media (max-width: var(--breakpoint-md)) {
  .recent-post-section {
    padding: 1.5rem;
  }

  .recent-post-card {
    padding: 1.2rem;
  }

  .recent-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============================================
   SHARE MODAL STYLES
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.share-preview {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.share-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.share-value.positive {
  color: var(--color-success);
}

.share-value.negative {
  color: var(--color-danger);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-btn {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-btn.primary-btn {
  background: #1DA1F2;
  color: white;
}

.modal-btn.primary-btn:hover {
  background: #1a8cd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.modal-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--color-border);
}

.modal-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Share Card Preview Styles */
.share-card-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.share-card-preview img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #8a2be2;
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
  transition: transform 0.2s ease;
}

.share-card-preview img:hover {
  transform: scale(1.02);
}

.preview-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 8px;
  border-left: 3px solid #8a2be2;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .share-stats {
    grid-template-columns: 1fr;
  }
}
.generate-trades-button.improved {
  /* Extends .btn .btn-primary from shared.css */
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.85rem var(--spacing-2xl);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-lg);
  box-shadow: var(--glow-primary);
  margin: var(--spacing-2xl) auto;
  display: block;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.generate-trades-button.improved:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.generate-trades-button.improved:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: var(--glow-primary), 0 0 30px rgba(0, 153, 255, 0.4);
}
/* Filter Bar Styles */
.trades-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  margin-top: var(--spacing-md);
}
.trades-filter-bar label {
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trades-filter-bar select {
  background: linear-gradient(135deg, var(--bg-tertiary) 60%, rgba(37, 37, 37, 1) 100%);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 0.4rem 2.5rem 0.4rem var(--spacing-md);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  outline: none;
  transition: all var(--transition-base);
  box-shadow: var(--glow-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Custom dropdown arrow */
  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='%23f3f6fa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

.trades-filter-bar select:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 2px 12px rgba(74, 158, 255, 0.25);
}

.trades-filter-bar select:focus,
.trades-filter-bar select:focus-visible {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

/* Style the dropdown options to ensure dark background */
.trades-filter-bar select option {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* For Windows/IE - ensure select maintains dark background */
.trades-filter-bar select::-ms-expand {
  display: none; /* Hide default arrow in IE/Edge */
}
.trades-filter-bar select:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.log-trade-btn {
  /* Extends .btn .btn-orange .btn-sm from shared.css */
  background: linear-gradient(135deg, #ff6b35, #ff8c5a);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease, filter .15s ease;
}
.log-trade-btn .plus { margin-right: .35rem; font-size: 1.1rem; }
.log-trade-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
  transform: translateY(-1px);
}
.log-trade-btn:active { transform: translateY(1px); }

/* Time Filter Buttons */
.time-filter-buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.time-filter-btn {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.time-filter-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.2);
}

.time-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dark));
  border-color: var(--accent-primary);
  color: white;
  box-shadow: var(--glow-primary);
}

.time-filter-btn.active:hover {
  box-shadow: var(--glow-primary), 0 0 20px rgba(0, 153, 255, 0.3);
}

/* Share Performance Button in Header */
.share-performance-btn-header {
  background: linear-gradient(135deg, #8a2be2 0%, #4a9eff 100%);
  border: none;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
}

.share-performance-btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.5);
  filter: brightness(1.1);
}

.share-performance-btn-header:active {
  transform: translateY(0);
}

/* Performance Card Styles */
.performance-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 153, 255, 0.15);
}

.performance-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Featured PnL % Section */
.performance-featured {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.15) 0%, rgba(157, 78, 221, 0.15) 100%);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.25);
}

.performance-featured .stat-label {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.performance-featured .stat-value {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.performance-featured .stat-value.pnl-percentage {
  font-size: 3.5rem;
}

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

.performance-stat {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.performance-stat:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px var(--accent-primary-shadow);
  transform: translateY(-2px);
}

.performance-stat .stat-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.performance-stat .stat-value {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.performance-stat .stat-value.profit-positive {
  color: var(--accent-success);
}

.performance-stat .stat-value.profit-negative {
  color: var(--accent-error);
}

.trades-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-box {
  /* Uses .stat-box from shared.css */
}

.stat-number {
  /* Uses .stat-number from shared.css */
}

.stat-number.positive {
  /* Uses .stat-number.positive from shared.css */
}

.stat-number.negative {
  /* Uses .stat-number.negative from shared.css */
}

.trades-table-container {
  margin-top: 2rem;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.trades-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-tertiary);
}

.trades-table thead {
  background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
}

.trades-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.trades-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.trades-table th.sortable:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.trades-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.trades-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.trades-table tbody tr:last-child {
  border-bottom: none;
}

.trades-table td.profit {
  color: var(--accent-success);
  font-weight: var(--font-weight-bold);
}

.trades-table td.loss {
  color: var(--accent-error);
  font-weight: var(--font-weight-bold);
}

.trades-table td {
  padding: 1rem;
  color: var(--text-primary);
}

.coin-symbol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coin-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-left: 0.25rem;
}

.trade-coin-icon {
  display: inline-flex;
  align-items: center;
}


.verified-icon {
  color: #22c55e;
  font-weight: 900;
  display: inline-block;
}

.unverified-icon {
  color: #0099ff; /* amber */
  font-weight: 900;
  display: inline-block;
}

.coin-type {
  font-family: monospace;
  font-weight: 600;
  color: #0099ff;
  background-color: rgba(74, 158, 255, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid rgba(74, 158, 255, 0.25);
}

.profit {
  color: var(--accent-success);
  font-weight: 600;
}

.loss {
  color: var(--accent-error);
  font-weight: 600;
}


/* Modal is now in index.css - only page-specific form styles here */
.trade-form h2 { margin-top: 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--text-secondary, #b0b8c9);
  margin-bottom: 0.35rem;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="datetime-local"],
.form-row select,
.form-row textarea {
  background: #171b26;
  color: #e5e9f0;
  border: 1px solid #2b3146;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-row textarea { min-height: 70px; resize: vertical; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #0099ff;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

.required { color: #ffb86c; margin-left: 0.25rem; }

.form-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.form-actions button {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.form-actions button[type="submit"] {
  background: linear-gradient(135deg, #ff6b35, #ff8c5a);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  transition: all 0.2s ease;
}

.form-actions button[type="submit"]:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  transform: translateY(-1px);
}

.form-actions button[type="button"] {
  background: #2a3147;
  color: #cbd5e1;
}

.form-error { color: #f87171; font-weight: 600; margin-top: 0.25rem; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .trades-filter-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .trades-filter-bar label {
    font-size: 0.9rem;
  }

  .trades-filter-bar select {
    padding: 0.35rem 1rem 0.35rem 0.6rem;
    font-size: 0.9rem;
  }

  .log-trade-btn {
    width: 100%;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
  }

  .trades-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .stat-box {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .trades-table-container {
    font-size: 0.85rem;
  }

  .trades-table th,
  .trades-table td {
    padding: 0.75rem 0.5rem;
  }

  .trades-table th {
    font-size: 0.75rem;
  }
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  flex-wrap: wrap;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.pagination-btn {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
  font-weight: 700;
}

.pagination-btn-prev,
.pagination-btn-next {
  font-size: 1.2rem;
  padding: 0.6rem 0.8rem;
  font-weight: 700;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.5rem;
}

.pagination-btn-page {
  min-width: 40px;
  padding: 0.6rem 0.8rem;
}

.pagination-ellipsis {
  color: var(--text-secondary);
  padding: 0 0.5rem;
  font-weight: 600;
  user-select: none;
}

.pagination-info {
  margin-left: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pagination-controls {
    gap: 0.4rem;
    padding: 1rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    min-width: 38px;
  }
  
  .pagination-btn-page {
    min-width: 36px;
    padding: 0.5rem 0.6rem;
  }
  
  .pagination-info {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0 0 0;
  }
  
  .pagination-pages {
    margin: 0 0.3rem;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .trades-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .trades-filter-bar select {
    width: 100%;
  }

  .log-trade-btn {
    padding: 0.7rem 1rem;
  }

  .stat-box {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .trades-table th:nth-child(4),
  .trades-table td:nth-child(4),
  .trades-table th:nth-child(5),
  .trades-table td:nth-child(5) {
    display: none;
  }

  .trades-table th,
  .trades-table td {
    padding: 0.65rem 0.4rem;
    font-size: 0.8rem;
  }
  
  .pagination-controls {
    gap: 0.3rem;
    padding: 0.8rem;
  }
  
  .pagination-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
    min-width: 34px;
  }
  
  .pagination-btn-page {
    min-width: 32px;
    padding: 0.45rem 0.5rem;
  }
  
  .pagination-btn-prev,
  .pagination-btn-next {
    padding: 0.45rem 0.6rem;
  }
  
  .pagination-pages {
    order: -1;
    width: 100%;
    justify-content: center;
    margin: 0 0 0.5rem 0;
  }
}

/* ============================================
   SHARE MODAL STYLES
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content.share-modal {
  max-width: 600px;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.share-preview {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.share-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.share-value.positive {
  color: var(--color-success);
}

.share-value.negative {
  color: var(--color-danger);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-btn {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-btn.primary-btn {
  background: #1DA1F2;
  color: white;
}

.modal-btn.primary-btn:hover {
  background: #1a8cd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.modal-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.modal-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Share Card Preview Styles */
.share-card-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.share-card-preview img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #8a2be2;
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
  transition: transform 0.2s ease;
}

.share-card-preview img:hover {
  transform: scale(1.02);
}

.preview-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 8px;
  border-left: 3px solid #8a2be2;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .share-stats {
    grid-template-columns: 1fr;
  }
}

/* Private Competition Badge */
.competition-private-badge {
  position: absolute;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  background: rgba(0, 153, 255, 0.25);
  color: #ffffff;
  border: 1px solid rgba(0, 153, 255, 0.5);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.competition-card.is-private {
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.18);
  border-color: rgba(0, 153, 255, 0.45);
}

/* ============================================
   COMPETITIONS PAGE STYLES - CRYPTO-NATIVE
   ============================================ */

/* Header Section */
.competitions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-2xl);
  gap: var(--spacing-xl);
}

.competitions-header h1 {
  margin: 0 0 var(--spacing-md) 0;
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.competitions-header > div > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.toggle-past-btn {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 0.9rem var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toggle-past-btn svg {
  flex-shrink: 0;
}

.toggle-past-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.toggle-past-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle-past-btn.active:hover {
  box-shadow: var(--glow-primary), 0 0 30px rgba(0, 153, 255, 0.4);
}

.create-competition-btn {
  background: var(--gradient-ctr);
  color: #ffffff;
  border: 1px solid var(--accent-ctr);
  padding: 0.9rem var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--glow-ctr);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.create-competition-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
  background: linear-gradient(135deg, #ff8c5a 0%, var(--accent-orange) 100%);
}

/* Section Headings */
.competition-section {
  margin-top: 3rem;
}

.competition-section:first-of-type {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.section-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Competitions Grid */
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}


.competition-card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
}

.owner-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.owner-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--border-color);
  background: rgba(19, 19, 19, 0.65);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.owner-actions .edit-competition-btn {
  border-color: rgba(74, 158, 255, 0.35);
  color: var(--accent-primary);
}

.owner-actions .edit-competition-btn:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 3px 14px rgba(74, 158, 255, 0.35);
  transform: translateY(-1px);
}

.owner-actions .delete-competition-btn {
  border-color: rgba(255, 51, 102, 0.35);
  color: #ff668a;
}

.owner-actions .delete-competition-btn:hover {
  border-color: #ff668a;
  box-shadow: 0 3px 14px rgba(255, 51, 102, 0.35);
  transform: translateY(-1px);
}

/* Competition Card */

.competition-card {
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  min-width: 0;
  box-shadow: 0 2px 12px var(--accent-primary-shadow);
}

.competition-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px var(--accent-primary-shadow);
  border-color: var(--accent-primary);
}

/* Unified Card Header */
.competition-card-header {
  padding: 1.5rem 2rem 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--gradient-brand);
  position: relative;
  overflow: hidden;
}

.competition-header-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

/* Ensure text in header has high contrast */
.competition-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
}

.competition-header-content .competition-title {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: #ffffff; /* White text for high contrast on gradient header */
  overflow-wrap: anywhere;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.competition-header-content .competition-owner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.9); /* Light text for better contrast on gradient */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.competition-card-header .owner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 2px 8px var(--accent-primary-shadow);
}

/* Unified Stats Bar */
.competition-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding: 1rem 2rem;
  background: var(--gradient-card);
  border-bottom: 1px solid var(--border-color);
}

.competition-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 0 1 auto;
  min-width: fit-content;
}

.competition-card-stat-label {
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9; /* Slightly more visible */
}

.competition-card-stat-value {
  font-size: clamp(0.9rem, 2.6vw, 1.15rem);
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.competition-card-stat-value.token {
  color: var(--accent-orange);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.competition-card-stat-value.participants {
  color: var(--accent-success);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.competition-card-stat-value.status {
  /* Status colors are applied via classes (.status-active, .status-upcoming, .status-ended) */
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Status-specific colors with high contrast */
.competition-card-stat-value.status.status-active {
  color: #1a1a1a; /* Dark text for high contrast on gold background */
  background: rgba(212, 175, 55, 0.95);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.competition-card-stat-value.status.status-upcoming {
  color: #ffffff; /* White text for high contrast on green background */
  background: rgba(34, 197, 94, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.competition-card-stat-value.status.status-ended {
  color: #ffffff; /* White text for high contrast on blue background */
  background: rgba(0, 153, 255, 0.92);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.competition-card-stat-value.date {
  color: #0099ff;
  font-weight: 600;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  text-align: center;
  white-space: nowrap;
}

/* Ensure status text is readable on all card backgrounds */
.competition-card.is-joined .competition-card-stat-value.status,
.competition-card.is-available .competition-card-stat-value.status {
  /* Status colors override any parent color */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Description Section */
.competition-card-description {
  color: var(--text-primary); /* Changed from secondary to primary for better readability */
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  line-height: 1.6;
  padding: 1rem 2rem;
  min-height: 48px;
  border-bottom: 1px solid var(--border-color);
}

/* Actions Section */
.competition-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--gradient-card);
}

.competition-card-actions .join-competition-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: 10px;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.competition-card-actions .join-competition-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.6);
  transform: translateY(-2px);
}

.competition-card-actions .view-details {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: clamp(0.8rem, 2.1vw, 0.95rem);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.competition-card-actions .view-details:hover {
  color: #8ab4ff;
  transform: translateX(4px);
}

.competition-card-actions .edit-competition-btn {
  color: var(--accent-primary);
  background: none;
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: clamp(0.8rem, 2.1vw, 0.95rem);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.competition-card-actions .edit-competition-btn:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.competition-card-actions .delete-competition-btn {
  color: var(--accent-danger);
  background: none;
  border: 1px solid var(--accent-danger);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: clamp(0.8rem, 2.1vw, 0.95rem);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.competition-card-actions .delete-competition-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Joined highlight: soft forest green tint */
.competition-card.is-joined {
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.12) 0%, rgba(19, 19, 19, 0.95) 50%, rgba(0, 208, 132, 0.08) 100%);
  border-color: rgba(0, 208, 132, 0.45);
}

/* Ensure text remains readable on joined cards */
.competition-card.is-joined .competition-card-description,
.competition-card.is-joined .competition-card-stat-label,
.competition-card.is-joined .competition-card-stat-value {
  color: var(--text-primary); /* High contrast text */
}

/* Not joined highlight: light grey-gold tint */
.competition-card.is-available {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(19, 19, 19, 0.95) 50%, rgba(212, 175, 55, 0.06) 100%);
  border-color: rgba(212, 175, 55, 0.35);
}

/* Ensure text remains readable on available cards */
.competition-card.is-available .competition-card-description,
.competition-card.is-available .competition-card-stat-label,
.competition-card.is-available .competition-card-stat-value {
  color: var(--text-primary); /* High contrast text */
}

.competition-card.is-joined:hover {
  box-shadow: 0 12px 40px rgba(0, 208, 132, 0.25);
  border-color: rgba(0, 208, 132, 0.7);
}

.competition-card.is-available:hover {
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.6);
}

.competition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-orange) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.competition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 158, 255, 0.3);
  border-color: rgba(74, 158, 255, 0.6);
}

.competition-card:hover::before {
  transform: scaleX(1);
}

/* Status Banner */
.competition-status-banner {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}


.status-upcoming {
  background-color: rgba(34, 197, 94, 0.9); /* light green */
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.status-active {
  background-color: rgba(212, 175, 55, 0.95); /* muted gold - increased opacity for better contrast */
  color: #1a1a1a; /* Darker text for better contrast on gold */
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-ended {
  background-color: rgba(0, 153, 255, 0.92); /* blue */
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* Joined Badge */
.joined-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 208, 132, 0.25);
  color: #ffffff; /* White text for high contrast on green background */
  border: 1px solid rgba(0, 208, 132, 0.5);
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Card Header */
.competition-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.coin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coin-badge {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.competition-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
  flex: 1;
  overflow-wrap: anywhere;
}

/* Description */
.competition-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Meta Information */
.competition-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(74, 158, 255, 0.2);
  flex-wrap: wrap;
}

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

.meta-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Stats Grid */
.competition-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.competition-stats .stat {
  text-align: center;
}

.competition-stats .stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.competition-stats .stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
  word-break: break-word;
}

.competition-stats .stat-value.token-cost {
  color: #ffb800;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.token-icon {
  font-size: 1rem;
  animation: tokenPulse 2s ease-in-out infinite;
}

@keyframes tokenPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Card Footer */

.competition-footer.unified-footer {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.footer-actions.unified-actions {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
}

.footer-actions.unified-actions .view-details {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.competition-card:hover .footer-actions.unified-actions .view-details {
  transform: translateX(4px);
  color: #8ab4ff;
}

.footer-actions.unified-actions .owner-actions {
  display: flex;
  gap: 0.5rem;
}

.footer-actions.unified-actions .join-competition-btn {
  margin-left: auto;
}

.join-competition-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: white;
  border: 2px solid transparent;
  padding: 0.6rem 1.3rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  white-space: nowrap;
}

.join-competition-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.join-competition-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.join-competition-btn.joined {
  background: rgba(0, 208, 132, 0.25);
  color: #ffffff; /* White text for high contrast on green background */
  border-color: rgba(0, 208, 132, 0.5);
  box-shadow: 0 2px 10px rgba(0, 208, 132, 0.3);
  font-weight: 700;
}

.join-competition-btn.joined:hover {
  transform: none;
  background: rgba(0, 208, 132, 0.35);
  color: #ffffff;
}

.join-competition-btn.insufficient-tokens {
  background: rgba(255, 107, 53, 0.25);
  color: #ffffff; /* White text for high contrast on orange background */
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
  cursor: not-allowed;
  font-weight: 700;
}

.join-competition-btn.insufficient-tokens:hover {
  transform: none;
  background: rgba(255, 107, 53, 0.3);
  color: #ffffff;
}

/* Alert Messages - extends shared alert styles */
.join-alert {
  /* Extends .alert from shared.css */
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  animation: slideDown 0.3s ease-out;
}

.join-alert.success {
  /* Extends .alert-success from shared.css */
  background: rgba(0, 208, 132, 0.25);
  border-color: rgba(0, 208, 132, 0.5);
  color: #ffffff;
}

.join-alert.error {
  /* Extends .alert-error from shared.css */
  background: rgba(255, 51, 102, 0.25);
  border-color: rgba(255, 51, 102, 0.5);
  color: #ffffff;
}

/* Empty State */
.competition-empty-state {
  border: 2px dashed rgba(74, 158, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(16, 16, 16, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.competition-empty-state svg {
  color: var(--accent-primary);
  opacity: 0.6;
}

.competition-empty-state h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.competition-empty-state p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 400px;
}

/* ============================================
   FORM STYLES
   Enhanced styling for competition creation modal
   ============================================ */

.competition-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 0.5rem 0;
}

.competition-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.competition-form .form-row label {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.competition-form .required {
  color: var(--accent-orange);
  margin-left: 0.25rem;
  font-weight: 700;
}

.competition-form .form-row input[type="text"],
.competition-form .form-row input[type="number"],
.competition-form .form-row input[type="datetime-local"],
.competition-form .form-row select,
.competition-form .form-row textarea {
  background: linear-gradient(135deg, rgba(19, 19, 19, 0.95) 0%, rgba(26, 26, 26, 0.9) 100%);
  color: var(--text-primary);
  border: 2px solid rgba(74, 158, 255, 0.25);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.competition-form .form-row input[type="text"]:hover,
.competition-form .form-row input[type="number"]:hover,
.competition-form .form-row input[type="datetime-local"]:hover,
.competition-form .form-row select:hover,
.competition-form .form-row textarea:hover {
  border-color: rgba(74, 158, 255, 0.4);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.15);
}

.competition-form .form-row textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.competition-form .form-row input:focus,
.competition-form .form-row select:focus,
.competition-form .form-row textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.15), 0 4px 16px rgba(74, 158, 255, 0.2);
  background: linear-gradient(135deg, rgba(19, 19, 19, 1) 0%, rgba(26, 26, 26, 0.95) 100%);
  transform: translateY(-1px);
}

.coin-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.875rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.6) 0%, rgba(19, 19, 19, 0.5) 100%);
  border-radius: 12px;
  border: 2px solid rgba(74, 158, 255, 0.2);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.coin-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 2px solid rgba(74, 158, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.coin-checkbox-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.coin-checkbox-label:hover {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.08) 100%);
  border-color: rgba(74, 158, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.coin-checkbox-label:hover::before {
  left: 100%;
}

.coin-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.coin-checkbox-label input[type="checkbox"]:checked + span {
  color: var(--accent-primary);
  font-weight: 700;
}

.coin-checkbox-label.checked {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.1) 100%);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15), 0 4px 12px rgba(74, 158, 255, 0.25);
}

.coin-checkbox-label span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  user-select: none;
}

.competition-form .form-error {
  color: #ffffff;
  font-weight: 600;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.3) 0%, rgba(255, 51, 102, 0.2) 100%);
  border-radius: 12px;
  border: 2px solid rgba(255, 51, 102, 0.5);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
  margin-top: 0.5rem;
}

.competition-form .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(74, 158, 255, 0.15);
}

.competition-form .form-actions button[type="submit"] {
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c5a 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.competition-form .form-actions button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.competition-form .form-actions button[type="submit"]:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
  transform: translateY(-2px);
}

.competition-form .form-actions button[type="submit"]:hover:not(:disabled)::before {
  left: 100%;
}

.competition-form .form-actions button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.competition-form .form-actions button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.competition-form .form-actions button[type="button"] {
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: 12px;
  padding: 0.875rem 2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
  color: var(--accent-primary);
}

.competition-form .form-actions button[type="button"]:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.15) 100%);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.competition-form .form-actions button[type="button"]:active:not(:disabled) {
  transform: translateY(0);
}

/* Toggle Switch Styles */
.toggle-switch-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(19, 19, 19, 0.4) 100%);
  border-radius: 12px;
  border: 2px solid rgba(74, 158, 255, 0.2);
}

.toggle-switch-label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.toggle-switch-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch-slider {
  position: relative;
  width: 52px;
  height: 28px;
  background: rgba(74, 158, 255, 0.2);
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.toggle-switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ffffff 0%, #e5edff 100%);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch-label input[type="checkbox"]:checked + .toggle-switch-slider {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #5a9aff 100%);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.15), 0 4px 12px rgba(74, 158, 255, 0.3);
}

.toggle-switch-label input[type="checkbox"]:checked + .toggle-switch-slider::before {
  transform: translate(24px, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.toggle-switch-label:hover .toggle-switch-slider {
  border-color: rgba(74, 158, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.1);
}

.toggle-switch-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.toggle-switch-label input[type="checkbox"]:checked ~ .toggle-switch-text {
  color: var(--accent-primary);
}

.toggle-switch-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(74, 158, 255, 0.2);
}

.private-cost {
  color: var(--text-primary);
}

.private-cost strong {
  color: #da70d6;
  font-weight: 600;
}

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

@media (max-width: 1024px) {
  .competitions-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
  }

  .competition-card {
    padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  .competitions-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .competitions-header h1 {
    font-size: 1.75rem;
  }

  .header-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .toggle-past-btn,
  .create-competition-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .section-heading h2 {
    font-size: 1.35rem;
  }

  .competitions-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .competition-card {
    padding: 1.5rem;
  }

  .competition-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions button {
    width: 100%;
  }

  .competition-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .footer-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer-actions .join-competition-btn {
    flex: 1;
  }

  .owner-actions {
    width: 100%;
    justify-content: space-between;
  }

  .owner-actions button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .competitions-header h1 {
    font-size: 1.5rem;
  }

  .create-competition-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .section-heading h2 {
    font-size: 1.2rem;
  }

  .competition-card {
    padding: 1.25rem;
  }

  .competition-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .competition-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .owner-actions button span {
    display: none;
  }

  .coin-badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .competition-header h2 {
    font-size: 1.15rem;
  }

  .competition-stats {
    grid-template-columns: 1fr;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .join-competition-btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 1400px) {
  .competitions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .competition-card {
    padding: 2.25rem;
  }
}

/* ============================================
   DELETE CONFIRMATION MODAL
   ============================================ */

.delete-modal-content {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3);
  animation: slideUp 0.3s ease-out;
  text-align: center;
}

.delete-modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.delete-modal-icon svg {
  color: #ef4444;
  filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
  animation: pulse 2s ease-in-out infinite;
}

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

.delete-modal-content h2 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
}

.delete-modal-message {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.delete-modal-message strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.delete-modal-warning {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 2rem 0;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.delete-modal-actions {
  display: flex;
  gap: 1rem;
  flex-direction: column-reverse;
}

.delete-modal-confirm {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.delete-modal-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.delete-modal-confirm:active:not(:disabled) {
  transform: translateY(0);
}

.delete-modal-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.delete-modal-cancel {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-modal-cancel:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.delete-modal-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 600px) {
  .delete-modal-actions {
    flex-direction: row;
  }
}

/* API Sync Modal (Blue Theme) */
.sync-modal-content {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
  animation: slideUp 0.3s ease-out;
  text-align: center;
}

.sync-modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sync-modal-icon svg {
  color: #3b82f6;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
  animation: pulse 2s ease-in-out infinite;
}

.sync-modal-content h2 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
}

.sync-modal-message {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.sync-modal-message strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.sync-modal-warning {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 2rem 0;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.sync-modal-actions {
  display: flex;
  gap: 1rem;
  flex-direction: column-reverse;
}

.sync-modal-confirm {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.sync-modal-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.sync-modal-confirm:active:not(:disabled) {
  transform: translateY(0);
}

.sync-modal-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sync-modal-cancel {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sync-modal-cancel:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.sync-modal-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 600px) {
  .sync-modal-actions {
    flex-direction: row;
  }
}

/* ============================================
   NEW TOKEN SELECTOR STYLES
   ============================================ */

.token-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-height: 40px;
}

.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(74, 158, 255, 0.1) 100%);
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.token-chip.all-tokens-chip {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.25) 0%, rgba(74, 158, 255, 0.15) 100%);
  border-color: rgba(255, 184, 0, 0.6);
  padding: 0.6rem 1rem;
}

.chip-icon {
  font-size: 1.1rem;
}

.chip-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.chip-remove:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: scale(1.1);
}

.token-search {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.token-search:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.token-search:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

.token-options {
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.token-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.token-option:hover {
  background: rgba(74, 158, 255, 0.1);
}

.token-option.all-tokens-option {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}

.token-option.all-tokens-option:hover {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15) 0%, rgba(74, 158, 255, 0.1) 100%);
}

.option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.option-content {
  flex: 1;
}

.option-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.option-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.token-option.selected {
  background: rgba(74, 158, 255, 0.15);
  border-left: 3px solid var(--accent-primary);
}

.option-checkmark {
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.token-option-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}
/* Regular User Avatar */
.user-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
}

.user-avatar-medium {
  width: 48px;
  height: 48px;
}

.user-avatar-large {
  width: 80px;
  height: 80px;
}

/* Elite Avatar Wrapper */
.elite-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.elite-avatar-small {
  width: 32px;
  height: 32px;
}

.elite-avatar-medium {
  width: 48px;
  height: 48px;
}

.elite-avatar-large {
  width: 80px;
  height: 80px;
}

.elite-avatar-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid gold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.elite-avatar-small .elite-avatar-container {
  border: 2px solid gold;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.elite-avatar-large .elite-avatar-container {
  border: 4px solid gold;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.elite-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Elite Crown Badge */
.elite-crown-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--bg-tertiary);
}

.elite-avatar-small .elite-crown-badge {
  width: 14px;
  height: 14px;
  font-size: 8px;
  bottom: -1px;
  right: -1px;
  border: 1.5px solid var(--bg-tertiary);
}

.elite-avatar-medium .elite-crown-badge {
  width: 20px;
  height: 20px;
  font-size: 11px;
  bottom: -2px;
  right: -2px;
}

.elite-avatar-large .elite-crown-badge {
  width: 28px;
  height: 28px;
  font-size: 15px;
  bottom: -3px;
  right: -3px;
  border: 3px solid var(--bg-tertiary);
}
/* ======================
   V2 END SCREEN - SIMPLIFIED
   ====================== */

.competition-end-screen {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.competition-end-screen.loading,
.competition-end-screen.error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  flex-direction: column;
  gap: 1rem;
}

.animate-in {
  animation: fadeIn 0.6s ease-out;
}

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

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: fall 3s linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ======================
   HERO SECTION - COMPACT
   ====================== */

.end-screen-hero-compact {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 2rem;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.timeframe-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.competition-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.prize-pool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: rgba(103, 126, 234, 0.1);
  border: 2px solid #667eea;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #667eea;
}

/* Stats Chips */
.stats-chips {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-width: 120px;
}

.chip-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.chip-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.chip-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.2rem;
}

/* ======================
   PERSONAL RESULT CARD
   ====================== */

.personal-result-card {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(103, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 20px;
  border: 2px solid rgba(103, 126, 234, 0.3);
}

.winner-state,
.non-winner-state {
  text-align: center;
}

.medal-large {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.result-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.result-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 2rem;
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-value.highlight-gold {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-value.highlight-green {
  color: #10b981;
}

.stat-value.positive {
  color: #10b981;
}

.stat-value.negative {
  color: #ef4444;
}

.reputation-boost,
.motivation-message {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.boost-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Action Buttons */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(103, 126, 234, 0.4);
}

.btn-secondary {
  background: rgba(103, 126, 234, 0.2);
  color: #667eea;
  border: 2px solid #667eea;
  position: relative;
  overflow: hidden;
}

/* Glowing share button effect */
.btn-secondary:not(:disabled) {
  animation: shareButtonGlow 2s ease-in-out infinite;
  box-shadow: 
    0 0 20px rgba(103, 126, 234, 0.4),
    0 0 40px rgba(103, 126, 234, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes shareButtonGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(103, 126, 234, 0.4),
      0 0 40px rgba(103, 126, 234, 0.2),
      0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(103, 126, 234, 0.6),
      0 0 60px rgba(103, 126, 234, 0.4),
      0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

.btn-secondary:hover {
  background: rgba(103, 126, 234, 0.3);
  animation: none;
  box-shadow: 
    0 0 35px rgba(103, 126, 234, 0.7),
    0 0 70px rgba(103, 126, 234, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  position: relative;
  overflow: hidden;
}

/* Glowing invite friends button effect */
.invite-friends-btn {
  animation: inviteButtonGlow 2.5s ease-in-out infinite;
  box-shadow: 
    0 0 25px rgba(103, 126, 234, 0.4),
    0 0 50px rgba(103, 126, 234, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

@keyframes inviteButtonGlow {
  0%, 100% {
    box-shadow: 
      0 0 25px rgba(103, 126, 234, 0.4),
      0 0 50px rgba(103, 126, 234, 0.2),
      0 4px 15px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 
      0 0 35px rgba(103, 126, 234, 0.6),
      0 0 70px rgba(103, 126, 234, 0.4),
      0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.invite-friends-btn:hover {
  animation: none;
  box-shadow: 
    0 0 40px rgba(103, 126, 234, 0.7),
    0 0 80px rgba(103, 126, 234, 0.5),
    0 8px 25px rgba(0, 0, 0, 0.5);
}

/* ======================
   PODIUM SECTION V2
   ====================== */

.podium-section-v2 {
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: end;
}

@media (max-width: 768px) {
  .podium-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .podium-card-v2.rank-1 {
    order: 1;
  }
  
  .podium-card-v2.rank-2 {
    order: 2;
  }
  
  .podium-card-v2.rank-3 {
    order: 3;
  }
}

.podium-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.podium-card-v2:hover {
  transform: translateY(-5px);
}

.podium-card-v2.rank-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 193, 7, 0.4) 100%);
  border: 3px solid #FFD700;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.podium-card-v2.rank-2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(169, 169, 169, 0.2) 100%);
  border: 2px solid #C0C0C0;
}

.podium-card-v2.rank-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(184, 115, 51, 0.2) 100%);
  border: 2px solid #CD7F32;
}

.crown {
  position: absolute;
  top: -20px;
  font-size: 2.5rem;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.podium-badge {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.podium-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.podium-stat-main {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.3rem;
}

.podium-stat-main.positive {
  color: #10b981;
}

.podium-stat-main.negative {
  color: #ef4444;
}

.podium-stat-main.champion {
  color: #FFD700 !important;
  font-size: 2.5rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  font-weight: 900;
}

.podium-stat-main.champion.positive {
  color: #FFD700 !important;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.podium-stat-main.champion.negative {
  color: #FFD700 !important;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}
  text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
}

.podium-stat-sub {
  font-size: 1rem;
  color: #888;
  margin-bottom: 1rem;
}

.podium-reward {
  padding: 0.5rem 1rem;
  background: rgba(103, 126, 234, 0.2);
  border-radius: 20px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 1rem;
}

.podium-reward.champion {
  background: rgba(255, 215, 0, 0.3);
  color: #FFD700;
  font-size: 1.1rem;
}

.podium-pedestal {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 8px 8px 0 0;
  margin-top: 1rem;
}

.pedestal-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
  height: 60px;
}

.pedestal-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
  height: 50px;
}

.pedestal-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
  height: 40px;
}

.glow-gold {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

/* ======================
   TRADES SECTION
   ====================== */

.trades-section {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.trades-toggle {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.trades-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.trades-table-container {
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

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

.end-screen-footer {
  text-align: center;
  margin-top: 3rem;
}
/* ============================================
   COMPETITION DETAIL PAGE STYLES
   ============================================ */

.competition-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   BACK LINK
   ============================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-2xl);
  transition: var(--transition-base);
  box-shadow: var(--glow-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.back-link:hover {
  transform: translateX(-4px);
  background: rgba(var(--accent-primary-rgb), 0.15);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
  color: var(--accent-primary);
}

.back-link:active {
  transform: translateX(-2px);
  box-shadow: var(--glow-primary);
}

/* ============================================
   HEADER SECTION
   ============================================ */

.competition-detail-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--border-light);
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.coin-badge-large {
  display: inline-block;
  background: var(--gradient-brand);
  color: white;
  padding: var(--spacing-md) var(--spacing-2xl);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-extrabold);
  font-size: var(--text-2xl);
  letter-spacing: 0.1em;
  box-shadow: var(--glow-primary);
  text-transform: uppercase;
}

.coin-badge-large.all-tokens {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  font-size: var(--text-xl);
  letter-spacing: 0.05em;
}

.coin-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.coin-badges-container .coin-badge-large {
  font-size: var(--text-base);
  padding: var(--spacing-sm) var(--spacing-lg);
}

.coin-badges-container .coin-badge-large.more-coins {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid var(--color-primary);
  font-size: var(--text-sm);
}

.competition-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.competition-privacy-badge.is-private {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(109, 40, 217, 0.2) 100%);
  border: 2px solid rgba(139, 92, 246, 0.5);
  color: #ffffff; /* White text for high contrast on purple background */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.competition-privacy-badge.is-public {
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.25) 0%, rgba(5, 150, 105, 0.2) 100%);
  border: 2px solid rgba(0, 208, 132, 0.5);
  color: #ffffff; /* White text for high contrast on green background - fixes blue/green text on green issue */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.competition-privacy-badge .privacy-icon {
  font-size: 1.25rem;
}

.competition-privacy-badge .privacy-text {
  text-transform: uppercase;
}

.competition-meta-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.toggle-privacy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.1) 100%);
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.1);
}

.toggle-privacy-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.25) 0%, rgba(74, 158, 255, 0.15) 100%);
  border-color: rgba(74, 158, 255, 0.5);
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.2);
  transform: translateY(-2px);
}

.toggle-privacy-button:active:not(:disabled) {
  transform: translateY(0);
}

.toggle-privacy-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-privacy-button .button-icon {
  font-size: 1.1rem;
}


.competition-detail-header h1 {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  color: var(--color-primary);
}

.competition-detail-header .competition-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.competition-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(224, 155, 45, 0.15) 100%);
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.competition-timer .timer-icon {
  font-size: 1.5rem;
  animation: rotate 3s linear infinite;
}

.competition-timer .timer-text {
  letter-spacing: 0.05em;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.2);
  }
  50% {
    box-shadow: 0 4px 24px rgba(74, 158, 255, 0.4);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   INFO GRID
   ============================================ */

.competition-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}


.info-card {
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}


.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--accent-primary-shadow);
  border-color: var(--accent-primary);
}

.info-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.info-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.info-value.highlight {
  color: var(--accent-success);
}

.info-value.positive {
  color: #22c55e;
}

.info-value.negative {
  color: #ef4444;
}


.status-badge {
  /* Extends .badge .badge-success from shared.css */
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(0, 208, 132, 0.25);
  color: var(--text-primary); /* Use CSS variable for consistency */
  border: 1px solid rgba(0, 208, 132, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   PARTICIPANTS SECTION
   ============================================ */

.participants-section {
  margin-bottom: 2.5rem;
}

.participants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.participants-section h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-controls label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sort-select {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  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='%234A9EFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.sort-select:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.2);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* ============================================
   MY TRADES SECTION
   ============================================ */

.my-trades-section {
  margin-bottom: 2.5rem;
}

.my-trades-section h2 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.my-trades-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}


.trade-stat {
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}


.trade-stat:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px var(--accent-primary-shadow);
}

.trade-stat label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

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

.trades-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}


.trade-card {
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}


.trade-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
  box-shadow: 0 4px 16px var(--accent-primary-shadow);
}

.trade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.trade-symbol {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trade-type {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trade-type.long {
  background-color: rgba(0, 208, 132, 0.2);
  color: var(--accent-success);
  border: 1px solid var(--accent-success);
}

.trade-type.short {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--accent-danger);
  border: 1px solid var(--accent-danger);
}

.trade-profit {
  font-size: 1.5rem;
  font-weight: 700;
}

.trade-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.trade-details > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trade-details label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trade-details span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.no-trades-message {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.add-trade-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.add-trade-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.participants-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}


.participant-card {
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}


.participant-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
  box-shadow: 0 4px 16px var(--accent-primary-shadow);
}


.participant-rank {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 60px;
  text-align: center;
}


.participant-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 4px 12px var(--accent-primary-shadow);
  object-fit: cover;
}

.participant-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
}

.participant-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-handle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-stats {
  margin-top: 0.25rem;
}

.stat-primary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.stat-secondary {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.participant-profit {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.profit-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.profit-value.positive {
  color: var(--accent-success);
}

.profit-value.negative {
  color: var(--accent-danger);
}

.empty-participants {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(16, 16, 16, 0.4);
  border: 2px dashed rgba(74, 158, 255, 0.3);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
}

.empty-participants p {
  margin: 0;
  font-size: 1.05rem;
}

/* ============================================
   JOIN COMPETITION SECTION
   ============================================ */

.join-competition-button {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(0, 208, 132, 0.4);
  position: relative;
  overflow: hidden;
}

.join-competition-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.join-competition-button:hover:not(:disabled)::before {
  left: 100%;
}

.join-competition-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 208, 132, 0.6);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.join-competition-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 208, 132, 0.4);
}

.join-competition-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.join-success-message {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.25) 0%, rgba(5, 150, 105, 0.2) 100%);
  border: 2px solid rgba(0, 208, 132, 0.5);
  border-radius: var(--radius-lg);
  color: #ffffff; /* White text for high contrast on green background */
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  animation: slideDown 0.4s ease-out;
  box-shadow: 0 4px 16px rgba(0, 208, 132, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.join-error-message {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.2) 100%);
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-lg);
  color: #ffffff; /* White text for high contrast on red background */
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  animation: slideDown 0.4s ease-out;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

/* ============================================
   PODIUM SECTION (For Ended Competitions)
   ============================================ */

.podium-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(16, 16, 16, 0.6) 0%, rgba(16, 16, 16, 0.4) 100%);
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.podium-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 3rem 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.podium-place {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
}

.podium-first {
  order: 2;
}

.podium-second {
  order: 1;
  margin-bottom: 50px;
}

.podium-third {
  order: 3;
  margin-bottom: 100px;
}

.podium-medal {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.podium-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(74, 158, 255, 0.6);
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  object-fit: cover;
}

.podium-place:hover .podium-avatar {
  transform: scale(1.1);
  border-color: rgba(74, 158, 255, 1);
  box-shadow: 0 6px 24px rgba(74, 158, 255, 0.5);
}

.podium-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: center;
  justify-content: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(74, 158, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(74, 158, 255, 0.5);
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.2);
}

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

.stat-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: #4A9EFF;
}

.stat-value-large {
  font-size: 1.5rem;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.podium-handle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.podium-column {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(20, 20, 25, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
  border: 2px solid rgba(50, 50, 60, 0.8);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.podium-first .podium-column {
  height: 200px;
  border-top: 3px solid rgba(255, 215, 0, 0.6);
}

.podium-second .podium-column {
  height: 150px;
  border-top: 3px solid rgba(192, 192, 192, 0.6);
}

.podium-third .podium-column {
  height: 100px;
  border-top: 3px solid rgba(205, 127, 50, 0.6);
}

.podium-rank-number {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  user-select: none;
  line-height: 1;
}

.podium-first .podium-rank-number {
  color: rgba(255, 215, 0, 0.25);
}

.podium-second .podium-rank-number {
  color: rgba(192, 192, 192, 0.25);
}

.podium-third .podium-rank-number {
  color: rgba(205, 127, 50, 0.25);
}

/* Responsive design for podium */
@media (max-width: 768px) {
  .podium-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .podium-place {
    max-width: none;
    margin-bottom: 0 !important;
    order: 0 !important;
    padding: 1.5rem;
    background: rgba(16, 16, 16, 0.4);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: var(--radius-lg);
  }
  
  .podium-first {
    border-color: rgba(255, 215, 0, 0.5);
  }
  
  .podium-second {
    border-color: rgba(192, 192, 192, 0.5);
  }
  
  .podium-third {
    border-color: rgba(205, 127, 50, 0.5);
  }
  
  .podium-column {
    display: none;
  }
  
  .podium-avatar {
    width: 80px;
    height: 80px;
  }
}

.competition-owner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.competition-joined {
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(109, 40, 217, 0.2) 100%);
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: var(--radius-md);
  color: #ffffff; /* White text for high contrast on purple background */
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.competition-tokens-allowed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.competition-tokens-allowed .info-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.competition-tokens-allowed .info-value {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================
   INVITE BUTTON
   ============================================ */


.invite-button {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  padding: 1rem 2rem;
  background: var(--gradient-brand);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--accent-primary-shadow);
}

/* Glowing invite button effect */
.glowing-invite-btn {
  animation: inviteGlow 2.5s ease-in-out infinite;
  box-shadow: 
    0 0 25px rgba(103, 126, 234, 0.5),
    0 0 50px rgba(103, 126, 234, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

@keyframes inviteGlow {
  0%, 100% {
    box-shadow: 
      0 0 25px rgba(103, 126, 234, 0.5),
      0 0 50px rgba(103, 126, 234, 0.3),
      0 4px 16px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 
      0 0 35px rgba(103, 126, 234, 0.7),
      0 0 70px rgba(103, 126, 234, 0.5),
      0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

.invite-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-primary-shadow);
}

.glowing-invite-btn:hover {
  animation: none;
  box-shadow: 
    0 0 40px rgba(103, 126, 234, 0.8),
    0 0 80px rgba(103, 126, 234, 0.6),
    0 8px 25px rgba(0, 0, 0, 0.5);
}

.invite-button:active {
  transform: translateY(0);
}

/* ============================================
   TABS SECTION
   ============================================ */

.competition-tabs-section {
  margin: 2rem 0;
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabs-container {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem 0;
  border-bottom: 2px solid var(--border-color);
}

.tab-button {
  flex: 1;
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.tab-button:hover {
  color: var(--text-primary);
  background: rgba(74, 158, 255, 0.05);
}

.tab-button.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  background: rgba(74, 158, 255, 0.1);
}

.tab-content {
  animation: fadeIn 0.3s ease-in;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease-in;
  backdrop-filter: blur(4px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s ease-out;
}

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

.modal-content h2 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.modal-content p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem 0;
}

.invite-link {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.invite-link input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.invite-link input:focus {
  border-color: var(--accent-primary);
}

.copy-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.copy-button.copied {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(0, 208, 132, 0.3);
}

.copy-button.copied:hover {
  background: #059669;
  box-shadow: 0 4px 16px rgba(0, 208, 132, 0.4);
}

.close-modal-button {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-modal-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

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

/* Large screens - extra breathing room */
@media (min-width: 1400px) {
  .competition-detail-page {
    padding: 0 2rem;
  }

  .competition-info-grid {
    gap: 2rem;
  }

  .info-card {
    padding: 2rem 1.75rem;
  }
}

/* Tablets and medium screens */
@media (max-width: 1024px) {
  .competition-detail-header h1 {
    font-size: 2.25rem;
  }

  .competition-timer {
    font-size: 1.1rem;
    padding: 0.875rem 1.5rem;
  }

  .competition-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .participant-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 900px) {
  .competition-detail-page {
    padding: 0 1rem;
  }

  .back-link {
    margin-bottom: 1.5rem;
  }

  .competition-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .header-top-row {
    gap: 0.75rem;
  }

  .coin-badge-large {
    font-size: 1.25rem;
    padding: 0.6rem 1.5rem;
  }

  .competition-privacy-badge {
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
  }

  .competition-detail-header h1 {
    font-size: 2rem;
  }

  .competition-detail-header .competition-description {
    font-size: 1rem;
  }

  .competition-meta-info {
    gap: 0.5rem;
  }

  .toggle-privacy-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .competition-info-grid {
    gap: 1.25rem;
  }

  .info-value {
    font-size: 1.5rem;
  }

  .participants-section h2 {
    font-size: 1.6rem;
  }

  .join-competition-button,
  .invite-button {
    font-size: 1.1rem;
    padding: 1.1rem 2rem;
  }
}

@media (max-width: 768px) {
  .competition-detail-header h1 {
    font-size: 2rem;
  }

  .competition-timer {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }

  .competition-timer .timer-icon {
    font-size: 1.25rem;
  }

  .competition-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .info-card {
    padding: 1.25rem 1rem;
  }

  .info-value {
    font-size: 1.5rem;
  }

  .participant-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }

  .participant-rank {
    grid-column: 1;
    grid-row: 1 / -1;
    font-size: 1.5rem;
    min-width: 40px;
  }

  .participant-avatar {
    width: 56px;
    height: 56px;
    grid-column: 2;
    grid-row: 1;
  }

  .participant-info {
    grid-column: 2;
    grid-row: 2;
  }

  .participant-name {
    font-size: 1.1rem;
  }

  .participant-handle {
    font-size: 0.9rem;
  }

  .invite-link {
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .competition-detail-page {
    padding: 0 0.75rem;
  }

  .back-link {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .coin-badge-large {
    font-size: 1.25rem;
    padding: 0.6rem 1.5rem;
  }

  .header-top-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .competition-privacy-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .competition-timer {
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    flex-direction: column;
    gap: 0.4rem;
  }

  .competition-meta-info {
    gap: 0.5rem;
  }

  .toggle-privacy-button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .competition-tokens-allowed {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
  }

  .competition-timer .timer-icon {
    font-size: 1.1rem;
  }

  .competition-detail-header {
    margin-bottom: 1.75rem;
  }

  .competition-detail-header h1 {
    font-size: 1.75rem;
  }

  .competition-detail-header .competition-description {
    font-size: 0.95rem;
  }

  .competition-info-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .info-card {
    padding: 1rem 0.875rem;
  }

  .info-label {
    font-size: 0.8rem;
  }

  .info-value {
    font-size: 1.35rem;
  }

  .participants-section {
    margin-bottom: 2rem;
  }

  .participants-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .participants-section h2 {
    font-size: 1.5rem;
  }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
    min-width: 0;
  }

  .my-trades-section {
    margin-bottom: 2rem;
  }

  .my-trades-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .my-trades-summary {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .trade-stat {
    padding: 1rem;
  }

  .trade-stat .value {
    font-size: 1.5rem;
  }

  .trades-list {
    gap: 1rem;
  }

  .trade-card {
    padding: 1.25rem;
  }

  .trade-symbol {
    font-size: 1.25rem;
  }

  .trade-type {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  .trade-profit {
    font-size: 1.25rem;
  }

  .trade-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .trade-details span {
    font-size: 1rem;
  }

  .participants-list {
    gap: 1rem;
  }

  .participant-card {
    padding: 1.25rem;
  }

  .participant-rank {
    font-size: 1.35rem;
    min-width: 35px;
  }

  .participant-avatar {
    width: 50px;
    height: 50px;
  }

  .participant-name {
    font-size: 1rem;
  }

  .participant-handle {
    font-size: 0.85rem;
  }

  .profit-value {
    font-size: 1rem;
  }

  .join-competition-button,
  .invite-button {
    font-size: 1rem;
    padding: 1rem 1.75rem;
    max-width: 100%;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .invite-link input {
    font-size: 0.85rem;
    padding: 0.65rem 0.875rem;
  }

  .copy-button {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ============================================
   YOUR POSITION HERO SECTION
   ============================================ */

.your-position-hero {
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.15) 0%, rgba(var(--accent-secondary-rgb), 0.1) 100%);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
  box-shadow: var(--glow-primary), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.position-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.position-rank-primary {
  font-size: 4rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1;
  text-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.5);
}

.rank-context {
  font-size: 1.5rem;
  font-weight: var(--font-weight-normal);
  color: var(--text-secondary);
  margin-left: var(--spacing-sm);
}

.position-metrics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.metric-pnl-percent {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}

.metric-pnl-absolute {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  opacity: 0.8;
}

.position-context {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.context-line {
  font-weight: var(--font-weight-medium);
}

.position-no-rank {
  padding: var(--spacing-xl) 0;
}

.position-no-rank p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* ============================================
   ENHANCED LEADERBOARD STYLES FOR PNL%
   ============================================ */

.pnl-percent-large {
  font-size: 1.5rem;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.2;
}

.pnl-absolute-small {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-top: var(--spacing-xs);
}

.stat-item-primary {
  order: -1;
}

.stat-item-secondary {
  opacity: 0.7;
  font-size: 0.9em;
}

.stat-value-large {
  font-size: 1.3em;
  font-weight: var(--font-weight-extrabold);
}

.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: var(--spacing-xs);
}

@media (max-width: 768px) {
  .your-position-hero {
    padding: var(--spacing-xl);
  }

  .position-rank-primary {
    font-size: 3rem;
  }

  .rank-context {
    font-size: 1.2rem;
  }

  .metric-pnl-percent {
    font-size: 2rem;
  }

  .metric-pnl-absolute {
    font-size: 1rem;
  }
}
/* ============================================
   MY FEED PAGE STYLES
   ============================================ */

.feed-page {
  max-width: 1200px;
  margin: 0 auto;
}

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

.feed-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-2xl);
  align-items: end;
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--border-light);
}

.feed-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feed-title {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
}

.feed-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 600px;
}

.hero-pill-group {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-xs);
}

.hero-pill {
  background: rgba(var(--accent-primary-rgb), 0.12);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-pill.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
}

/* ============================================
   TOOLBAR / FILTERS
   ============================================ */

.feed-toolbar {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.toggle-group {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0.35rem 0 0.5rem;
}

.toggle-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.toggle-btn:hover {
  background: rgba(74, 158, 255, 0.1);
}

.toggle-btn.active {
  background: rgba(74, 158, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.4);
  color: var(--accent-primary);
  font-weight: 600;
}

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

.feed-grid-section {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.section-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   TRADERS LIST - Using Ranking Page Style
   ============================================ */

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

.trader-card.is-following {
  border-color: rgba(0, 208, 132, 0.3);
}

.trader-card.is-following::before {
  background: linear-gradient(180deg, var(--accent-success) 0%, var(--accent-primary) 100%);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.feed-empty {
  border: 2px dashed rgba(74, 158, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(16, 16, 16, 0.4);
  color: var(--text-secondary);
}

.feed-empty h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.feed-empty p {
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOLLOWED PANEL
   ============================================ */

.followed-panel {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.followed-empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 1.5rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.followed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.followed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.followed-pill:hover {
  background: rgba(74, 158, 255, 0.12);
  border-color: rgba(74, 158, 255, 0.4);
  transform: translateY(-1px);
}

.followed-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

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

.followed-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.1rem;
}

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

.followed-text span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ============================================
   COMPETITION SPOTLIGHT
   ============================================ */

.competition-spotlight {
  display: block;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.competition-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.competition-spotlight:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74, 158, 255, 0.3);
}

.competition-spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.coin-badge-large {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a1a; /* Dark text for high contrast on gold background */
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.competition-spotlight-status {
  background: rgba(74, 158, 255, 0.2);
  color: var(--accent-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid rgba(74, 158, 255, 0.4);
}

.competition-spotlight-title {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 700;
}

.competition-spotlight-description {
  margin: 0 0 2rem 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.competition-spotlight-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.spotlight-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.spotlight-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spotlight-value .token-icon {
  font-size: 1.25rem;
}

.competition-spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-time {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.spotlight-cta {
  color: var(--accent-primary);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.competition-spotlight:hover .spotlight-cta {
  gap: 0.75rem;
}

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

@media (max-width: 1200px) {
  .trader-card {
    grid-template-columns: 60px 70px 1fr auto;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
  }

  .trader-rank {
    width: 60px;
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  }

  .trader-avatar-container {
    width: 70px;
    height: 70px;
  }

  .trader-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-item {
    min-width: 110px;
    padding: 0.4rem 0.6rem;
  }
}

/* Medium screens - start adjusting layout */
@media (max-width: 900px) {
  .feed-page {
    padding: 1.5rem clamp(0.75rem, 2vw, 1.5rem);
  }

  .trader-card {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    padding: 1.5rem;
  }

  .trader-rank {
    grid-column: 1;
    grid-row: 1;
  }

  .trader-avatar-container {
    grid-column: 2;
    grid-row: 1;
  }

  .trader-info {
    grid-column: 3;
    grid-row: 1;
  }

  .trader-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .follow-btn {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: 0.5rem;
  }

  .stat-item {
    min-width: 100px;
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 768px) {
  .feed-page {
    padding: 1rem 0.75rem;
  }

  .feed-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .feed-title {
    font-size: 1.75rem;
  }

  .feed-subtitle {
    font-size: 0.95rem;
  }

  .hero-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  .feed-toolbar {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .toggle-group {
    width: 100%;
    justify-content: space-between;
  }

  .section-heading h2 {
    font-size: 1.35rem;
  }

  .section-heading p {
    font-size: 0.9rem;
  }

  .traders-list {
    gap: 0.75rem;
  }

  .trader-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .trader-rank {
    margin: 0 auto;
    width: 50px;
    height: 50px;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  }

  .trader-avatar-container {
    margin: 0 auto;
    width: 55px;
    height: 55px;
  }

  .trader-info {
    min-width: auto;
  }

  .trader-name {
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    margin: 0;
  }

  .trader-username {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    margin: 0.15rem 0 0 0;
  }

  .trader-stats {
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.35rem;
  }

  .stat-item {
    width: 100%;
    min-width: auto;
    padding: 0.3rem 0.4rem;
  }

  .stat-label {
    font-size: clamp(0.6rem, 1.6vw, 0.7rem);
    margin-bottom: 0.1rem;
  }

  .stat-value {
    font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  }

  .follow-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.35rem;
  }

  .search-input {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .feed-page {
    padding: 0.75rem 0.5rem;
  }

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

  .feed-subtitle {
    font-size: 0.875rem;
  }

  .hero-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  .section-heading h2 {
    font-size: 1.2rem;
  }

  .traders-list {
    gap: 0.6rem;
  }

  .trader-card {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .trader-rank {
    width: 45px;
    height: 45px;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    padding: 0;
  }

  .trader-avatar-container {
    width: 55px;
    height: 55px;
    border-width: 2px;
  }

  .trader-name {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin: 0;
  }

  .trader-username {
    font-size: clamp(0.65rem, 1.6vw, 0.75rem);
    margin: 0.1rem 0 0 0;
  }

  .trader-stats {
    gap: 0.35rem;
    margin-top: 0.3rem;
  }

  .stat-item {
    padding: 0.3rem 0.4rem;
  }

  .stat-label {
    font-size: clamp(0.55rem, 1.4vw, 0.65rem);
    margin-bottom: 0.1rem;
  }

  .stat-value {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
  }

  .follow-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    margin-top: 0.3rem;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
  }
}

/* Extra small screens - mobile optimizations */
@media (max-width: 480px) {
  .feed-hero {
    padding: 1rem 0.5rem;
  }

  .hero-pill-group {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

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

  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-result-card {
    padding: 1rem;
  }

  .competition-spotlight {
    padding: 1.25rem 1rem;
  }

  .competition-spotlight-stats {
    grid-template-columns: 1fr;
  }

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

/* Zoom consistency - extra large screens */
@media (min-width: 1400px) {
  .trader-card {
    padding: 2rem 2.5rem;
    gap: 2rem;
  }

  .stat-item {
    padding: 1rem 1.25rem;
  }
}

/* ============================================
   SEARCH SECTION
   ============================================ */

.feed-search-section {
  margin: 2rem 0;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.search-input::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.6;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

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

.search-loading {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.search-results {
  margin-top: 2rem;
}

.search-results-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .search-input {
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    font-size: 0.95rem;
  }

  .search-input::before {
    left: 0.75rem;
    width: 18px;
    height: 18px;
  }

  .search-loading {
    right: 0.75rem;
  }

  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-result-card {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-result-link {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .search-result-info {
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
  }

  .search-result-stats {
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
  }

  .search-follow-btn {
    align-self: stretch;
    width: 100%;
    margin-top: 0;
    padding: 0.875rem;
  }

  .search-result-avatar {
    width: 50px;
    height: 50px;
  }
}

.search-result-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.search-result-card:hover,
.search-result-card.selected {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.search-result-link {
  display: flex;
  gap: 1rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.search-follow-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.search-follow-btn:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.search-follow-btn.following {
  background: var(--accent-success);
  color: white;
}

.search-follow-btn.following:hover {
  background: var(--accent-success-hover);
}

.search-result-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  flex-shrink: 0;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.search-result-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-handle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.search-result-rank {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: rgba(74, 158, 255, 0.15);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 999px;
  color: var(--accent-primary);
}

.search-result-profit {
  font-size: 0.9rem;
  font-weight: 700;
}

.search-result-profit.positive {
  color: var(--accent-success); /* Use CSS variable for consistency */
}

.search-result-profit.negative {
  color: var(--accent-danger); /* Use CSS variable for consistency */
}

.search-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  margin-top: 2rem;
}

.search-error {
  text-align: center;
  padding: 2rem;
  color: var(--accent-danger);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   POSTS SECTION
   ============================================ */

.feed-posts-section {
  margin-bottom: 3rem;
}

/* Feed Tabs */
.feed-tabs-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.feed-tab-button {
  flex: 1;
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.feed-tab-button:hover {
  color: var(--text-primary);
  background: rgba(74, 158, 255, 0.05);
}

.feed-tab-button.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  background: rgba(74, 158, 255, 0.1);
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.posts-title-section h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.posts-title-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.refresh-posts-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-posts-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.refresh-posts-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.posts-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  min-height: 200px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.posts-container:has(.post-loading),
.posts-container:has(.no-posts) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.post-loading p {
  margin: 0;
}

.post-card {
  width: 100%;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.post-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-primary);
}

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

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

.post-menu-container {
  position: relative;
}

.post-menu-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.post-menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.post-menu-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-menu-dropdown {
  position: absolute;
  right: 0;
  top: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 140px;
  z-index: 100;
  animation: dropdownFade 0.2s ease;
}

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

.post-menu-item {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.post-menu-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.post-menu-item.delete {
  color: var(--danger-color, #ff4444);
}

.post-menu-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.post-author:hover {
  opacity: 0.8;
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

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

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

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

.post-timestamp {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.post-content {
  margin-bottom: 1.5rem;
}

.post-content p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 1rem;
  word-wrap: break-word;
}

.post-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.post-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.like-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.like-btn.liked {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

.comment-btn:hover {
  color: var(--accent-primary);
}

.comment-btn.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Comments Section */
.comments-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.comment-form {
  margin-bottom: 1rem;
}

.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 60px;
  transition: border-color 0.2s ease;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.comment-form textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

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

.comment-form button {
  padding: 0.5rem 1rem;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.comment-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.comment-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

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

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

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

.comment-handle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.comment-timestamp {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: auto;
}

.comment-content {
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 0.95rem;
  word-wrap: break-word;
}

.no-comments {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.no-posts {
  text-align: center;
  color: var(--text-secondary);
}

.no-posts p {
  margin-bottom: 1rem;
}

.retry-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
}

/* ============================================
   FOLLOWING TRADES TAB
   ============================================ */

.following-trades-container {
  animation: fadeIn 0.3s ease-in;
}

.trades-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-secondary);
}

.trades-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trade-feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.trade-feed-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.1);
}

.trade-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.trade-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.trade-user-info:hover {
  opacity: 0.8;
}

.trade-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.trade-user-info div {
  display: flex;
  flex-direction: column;
}

.trade-user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.trade-user-handle {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.trade-timestamp {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.trade-feed-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trade-symbol-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trade-symbol {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trade-direction {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.trade-direction.long {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.trade-direction.short {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.trade-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trade-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trade-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trade-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trade-stat-value.profit-positive {
  color: #22c55e;
}

.trade-stat-value.profit-negative {
  color: #ef4444;
}

.trade-actions {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.no-following-trades {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.no-following-trades p {
  margin: 0 0 0.5rem 0;
}

.no-following-trades .subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

.retry-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

@media (max-width: 768px) {
  .posts-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .posts-container {
    padding: 1.5rem;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .post-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .post-action-btn {
    justify-content: center;
  }
}

/* ============================================
   NEW POST MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

.modal-body textarea {
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.modal-body textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.modal-body textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.modal-footer .char-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-secondary,
.btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  border: none;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.btn-secondary:disabled,
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header,
  .modal-body {
    padding: 1.25rem;
  }

  .modal-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
}
/* ============================================
   MY POSTS PAGE STYLES
   ============================================ */

.posts-page {
  max-width: 1200px;
  margin: 0 auto;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
}

.posts-title-section h1 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
}

.posts-title-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.create-post-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--gradient-brand);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--glow-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.create-post-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-primary);
}

/* Create Post Section */
.create-post-section {
  margin-bottom: var(--spacing-2xl);
}

.create-post-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
}

.create-post-card h3 {
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-content-input {
  width: 100%;
  min-height: 120px;
  padding: var(--spacing-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(var(--accent-primary-rgb), 0.04);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-base);
  transition: var(--transition-base);
}

.post-content-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.post-content-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}

.post-content-input::placeholder {
  color: var(--text-secondary);
}

.post-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

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

.post-buttons {
  display: flex;
  gap: 0.75rem;
}

.cancel-btn,
.submit-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

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

.submit-btn {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: white;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Posts Layout */
.posts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.posts-list-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.section-header h2 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

/* Posts List */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-item.selected {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.02);
}

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

.post-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-likes {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-item-content p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.post-item-footer {
  margin-top: 1rem;
  text-align: right;
}

.view-comments-btn {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
}

/* Empty State */
.empty-posts {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
}

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

.empty-posts h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.empty-posts p {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.create-first-post-btn {
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-first-post-btn:hover {
  background: var(--accent-secondary);
}

/* Post Detail Section */
.post-detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  height: fit-content;
}

.post-detail-card {
  max-width: 100%;
}

.post-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.post-author:hover {
  opacity: 0.8;
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

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

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

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

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

.post-detail-content p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.1rem;
}

.post-detail-stats {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.likes-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Comments Section */
.comments-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.comments-section h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Comment Input */
.comment-input-section {
  margin-bottom: 2rem;
}

.comment-input-form {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.comment-input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.1);
}

.comment-input::placeholder {
  color: var(--text-secondary);
}

.comment-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-character-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.comment-submit-btn {
  padding: 0.5rem 1rem;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-submit-btn:hover:not(:disabled) {
  background: var(--accent-secondary);
}

.comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comments-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-secondary);
}

.no-comments {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
}

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

.comment-item {
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

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

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.comment-author:hover {
  opacity: 0.8;
}

.comment-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.comment-author-info {
  display: flex;
  flex-direction: column;
}

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

.comment-author-handle {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

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

.comment-content p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.5;
}

.comment-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-like-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-like-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
}

/* Loading and Error States */
.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-container p,
.error-container p {
  margin: 1rem 0 0 0;
  color: var(--text-secondary);
}

.error-container p {
  color: #ef4444;
}

.retry-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .posts-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .posts-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .create-post-card {
    padding: 1.5rem;
  }

  .posts-list-section,
  .post-detail-section {
    padding: 1.5rem;
  }

  .post-item {
    padding: 1rem;
  }

  .post-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .comment-item {
    padding: 0.75rem;
  }

  .comment-input-form {
    padding: 0.75rem;
  }

  .comment-input-actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .comment-submit-btn {
    align-self: flex-end;
  }
}
.ranking-page {
  max-width: 1200px;
  margin: 0 auto;
}

.ranking-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-weight-semibold);
}

/* User Rank Badge */
.user-rank-badge {
  background: var(--gradient-card);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl) var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
  box-shadow: 0 4px 16px rgba(0, 153, 255, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease-out;
}

.user-rank-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 153, 255, 0.04) 0%, 
    rgba(102, 51, 255, 0.02) 100%);
  pointer-events: none;
  z-index: 0;
}

.rank-badge-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

.rank-badge-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex: 1;
}

.rank-badge-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.rank-badge-value {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
}

.rank-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-black);
  color: #4a9eff;
  line-height: 1;
}

.rank-placeholder {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  font-style: italic;
}

.rank-total {
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
}

.rank-delta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.rank-delta.rank-improved {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.rank-delta.rank-decreased {
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent-error);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.rank-delta svg {
  width: 16px;
  height: 16px;
}

.rank-badge-timeframe {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.rank-percentage-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: var(--spacing-lg) 0;
  text-align: left;
}

.rank-percentage-text .percentage {
  color: var(--accent-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.1em;
}

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  flex-wrap: wrap;
}

/* Share Rank Button (Inside Badge) - Matches Homepage Style */
.share-rank-btn-inline {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.3);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  position: relative;
}

.share-rank-btn-inline::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.share-rank-btn-inline:hover {
  border-color: rgba(0, 153, 255, 0.5);
  box-shadow: 0 0 50px rgba(0, 153, 255, 0.4);
  transform: translateY(-2px);
}

.share-rank-btn-inline:active {
  transform: translateY(0);
}

.share-rank-btn-inline svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rank-badge-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-badge-left {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .share-rank-btn-inline {
    width: 100%;
    justify-content: center;
  }

  .rank-number {
    font-size: 2rem;
  }
}

/* Timeframe filter pills */
.timeframe-filters {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.timeframe-pill {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.timeframe-pill:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.timeframe-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.3),
              0 0 20px rgba(0, 255, 255, 0.2);
}

.timeframe-pill:active {
  transform: translateY(0);
}

.traders-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

/* Ensure avatar container is relative for Elite badge positioning */
.trader-avatar-container {
  position: relative;
}

/* Responsive Design */

/* Large screens - more breathing room */
@media (min-width: 1400px) {
  .ranking-page {
    max-width: 1400px;
    margin: 0 auto;
  }

  .trader-card {
    padding: 2rem 2.5rem;
    gap: 2rem;
  }

  .stat-item {
    padding: 1.25rem 1.75rem;
    min-width: 140px;
  }
}

/* Desktop optimization */
@media (max-width: 1200px) {
  .trader-card {
    grid-template-columns: 60px 70px 1fr auto;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .trader-rank {
    width: 60px;
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  }

  .trader-avatar-container {
    width: 70px;
    height: 70px;
  }

  .trader-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-item {
    min-width: 110px;
    padding: 0.85rem 1.25rem;
  }

  .stat-value {
    font-size: clamp(0.85rem, 2.4vw, 1.1rem);
  }

  .follow-button {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Tablets - adjust to proper grid */
@media (max-width: 900px) {
  .ranking-page {
    padding: 1.5rem clamp(0.75rem, 2vw, 1.5rem);
  }

  .trader-card {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    padding: 1.5rem;
  }

  .trader-rank {
    grid-column: 1;
    grid-row: 1;
  }

  .trader-avatar-container {
    grid-column: 2;
    grid-row: 1;
  }

  .trader-info {
    grid-column: 3;
    grid-row: 1;
  }

  .trader-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .follow-button {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: 0.5rem;
  }

  .stat-item {
    min-width: 100px;
    padding: 0.85rem 1rem;
  }
}

/* Mobile devices - card layout */
@media (max-width: 768px) {
  .ranking-page {
    padding: 1rem 0.75rem;
  }

  .timeframe-filters {
    gap: var(--spacing-xs);
    margin: var(--spacing-lg) 0;
  }

  .timeframe-pill {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--text-xs);
  }

  .traders-list {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .trader-card {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto auto;
    text-align: left;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .trader-rank {
    width: 50px;
    height: 50px;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .trader-avatar-container {
    width: 50px;
    height: 50px;
  }

  .trader-info {
    min-width: auto;
  }

  .trader-name {
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    margin: 0;
  }

  .trader-username {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    margin: 0.15rem 0 0 0;
  }

  .trader-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
  }

  .stat-item {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    padding: 0.35rem 0.5rem;
  }

  .stat-label {
    font-size: clamp(0.6rem, 1.6vw, 0.7rem);
    margin-bottom: 0.15rem;
  }

  .stat-value {
    font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  }

  .follow-button {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.35rem;
  }
}

/* Small mobile - centered single column */
@media (max-width: 480px) {
  .ranking-page {
    padding: 0.75rem 0.5rem;
  }

  .traders-list {
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .trader-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    text-align: center;
    padding: 0.6rem;
    gap: 0.5rem;
  }

  .trader-rank {
    margin: 0 auto;
    width: 45px;
    height: 45px;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .trader-avatar-container {
    margin: 0 auto;
    width: 55px;
    height: 55px;
    border-width: 2px;
  }

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

  .trader-name {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    margin: 0;
  }

  .trader-username {
    font-size: clamp(0.65rem, 1.6vw, 0.75rem);
    margin: 0.1rem 0 0 0;
  }

  .trader-stats {
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.3rem;
  }

  .stat-item {
    width: 100%;
    flex: 1 1 auto;
    padding: 0.3rem 0.4rem;
  }

  .stat-label {
    font-size: clamp(0.55rem, 1.4vw, 0.65rem);
    margin-bottom: 0.1rem;
  }

  .stat-value {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
  }

  .follow-button {
    width: 100%;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    margin-top: 0.3rem;
  }
}

/* Zoom consistency - maintains readability at different zoom levels */
@media (min-width: 1400px) {
  .trader-card {
    padding: 2rem 2.5rem;
    gap: 2rem;
  }

  .stat-item {
    padding: 1.25rem 1.75rem;
  }
}

/* Share Rank Button */
.share-performance-btn-ranking {
  background: linear-gradient(135deg, #8a2be2 0%, #4a9eff 100%);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
}

.share-performance-btn-ranking:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.5);
  filter: brightness(1.1);
}

.share-performance-btn-ranking:active {
  transform: translateY(0);
}

/* ============================================
   SHARE MODAL STYLES
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content.share-modal {
  max-width: 600px;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.share-preview {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.share-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.share-value.positive {
  color: var(--color-success);
}

.share-value.negative {
  color: var(--color-danger);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-btn {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-btn.primary-btn {
  background: #1DA1F2;
  color: white;
}

.modal-btn.primary-btn:hover {
  background: #1a8cd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.modal-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.modal-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Share Card Preview Styles */
.share-card-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.share-card-preview img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #8a2be2;
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
  transition: transform 0.2s ease;
}

.share-card-preview img:hover {
  transform: scale(1.02);
}

.preview-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  padding: 0.5rem 1rem;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 8px;
  border-left: 3px solid #8a2be2;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .share-stats {
    grid-template-columns: 1fr;
  }
}

.elite-badge-overlay {
  position: absolute;
  bottom: -2px;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 50%;
  z-index: 10;
}

.elite-badge-overlay.with-border {
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.elite-badge-overlay.small {
  width: 18px;
  height: 18px;
}

.elite-badge-overlay.small .elite-crown {
  font-size: 10px;
}

.elite-badge-overlay.medium {
  width: 24px;
  height: 24px;
}

.elite-badge-overlay.medium .elite-crown {
  font-size: 14px;
}

.elite-badge-overlay.large {
  width: 32px;
  height: 32px;
}

.elite-badge-overlay.large .elite-crown {
  font-size: 18px;
}

.elite-crown {
  line-height: 1;
}

/* Elite border for profile pictures */
.elite-profile-border {
  position: relative;
}

.elite-profile-border::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  z-index: -1;
  animation: elite-glow 2s ease-in-out infinite;
}

@keyframes elite-glow {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
}

/* Elite badge for ranking card - between name and stats */
.elite-ranking-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.elite-ranking-badge .badge-icon {
  font-size: 11px;
  line-height: 1;
}

.elite-ranking-badge .badge-text {
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 9px;
}
.profile-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg) var(--spacing-3xl);
}

.profile-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-lg);
}

.profile-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-2xl);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  border: 2px solid #0099ff;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.profile-hero::after {
  content: '';
  position: absolute;
  inset: -30% -30% auto auto;
  height: 260px;
  width: 260px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.28), transparent 65%);
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-avatar-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: var(--radius-xl);
  padding: 4px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.4) 0%, rgba(0, 208, 132, 0.25) 100%);
  box-shadow: var(--glow-primary);
  overflow: hidden;
  flex-shrink: 0;
  z-index: 1;
}

.hero-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(25, 31, 54, 0.9), rgba(11, 15, 30, 0.9));
  filter: blur(12px);
  z-index: -1;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
  display: block;
  position: relative;
}

/* Elite Avatar Styles for Profile Page */
.hero-avatar-wrap.elite-avatar-wrap {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 165, 0, 0.25) 100%);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.hero-avatar-wrap .elite-avatar-container {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  border: 4px solid gold;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.hero-avatar-wrap .elite-avatar-container .profile-pic {
  border-radius: 28px;
}

.hero-avatar-wrap .elite-crown-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--bg-tertiary);
  z-index: 2;
}

.hero-content {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 1;
}

.hero-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.hero-name {
  margin: 0;
  font-size: clamp(2rem, 2.6vw + 1rem, 2.75rem);
  font-weight: 900;
  color: #f8fbff;
  letter-spacing: 0.015em;
}

.hero-handle {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 153, 255, 0.4);
  background: rgba(0, 153, 255, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.hero-tag-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(231, 238, 255, 0.7);
}

.hero-tag-value {
  font-weight: 700;
  color: #f1f5ff;
  font-size: 1.05rem;
}

.first-trade-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(0, 153, 255, 0.12) 100%);
  border: 1px solid rgba(0, 153, 255, 0.35);
  color: #dbeafe;
  width: fit-content;
}

.chip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.chip-date {
  font-weight: 700;
}

.chip-relative {
  font-size: 0.9rem;
  opacity: 0.85;
}

.hero-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 190px;
  z-index: 1;
}

.hero-button {
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-button.primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 153, 255, 0.35);
}

.hero-button.primary.following {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(74, 222, 128, 0.35) 100%);
  color: #ffffff; /* White text for high contrast on green background */
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-button.secondary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(109, 40, 217, 0.3) 100%);
  color: #ffffff; /* White text for high contrast on purple background */
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-button:disabled {
  filter: grayscale(0.3);
  cursor: not-allowed;
  opacity: 0.7;
}

.hero-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.hero-button:not(:disabled):active {
  transform: translateY(0);
}

.hero-toast {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.25) 100%);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #ffffff; /* White text for high contrast on green background */
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.16);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.profile-panel {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(20, 26, 46, 0.96) 0%, rgba(14, 18, 34, 0.98) 100%);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.profile-bio-card {
  overflow: hidden;
}

.profile-bio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.18) 0%, rgba(14, 116, 144, 0.12) 45%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
}

.bio-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.bio-header h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #eaf2ff;
  letter-spacing: 0.01em;
}

.bio-subtitle {
  font-size: 0.95rem;
  color: rgba(226, 232, 255, 0.7);
}

.profile-bio-text {
  position: relative;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(232, 240, 255, 0.88);
  white-space: pre-wrap;
}

.bio-timeline {
  position: relative;
  margin-top: 1.75rem;
  padding-left: 1.5rem;
}

.bio-timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.8) 0%, rgba(14, 116, 144, 0.5) 100%);
}

.timeline-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.6);
}

.timeline-date {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  color: #e0f2fe;
  font-weight: 600;
}

.timeline-relative {
  font-size: 0.9rem;
  color: rgba(186, 230, 253, 0.85);
}

.profile-stat-panels {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.metric-panel {
  padding: 1.85rem 1.75rem;
}

.metric-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.metric-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(234, 244, 255, 0.92);
  letter-spacing: 0.02em;
}

.metric-subtitle {
  font-size: 0.85rem;
  color: rgba(226, 232, 255, 0.55);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: 0.9rem;
  color: rgba(217, 226, 255, 0.7);
  letter-spacing: 0.02em;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(241, 245, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.metric-value.positive {
  color: var(--accent-success); /* Use CSS variable for consistency */
}

.metric-value.negative {
  color: var(--accent-danger); /* Use CSS variable for consistency */
}

.metric-value.neutral {
  color: rgba(229, 235, 255, 0.9);
  font-size: 1.2rem;
}

.metric-value.accent {
  color: #facc15;
}

.metric-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 153, 255, 0.12);
  border: 1px solid rgba(0, 153, 255, 0.25);
  color: #bfdbfe;
  font-weight: 700;
  min-width: 72px;
  text-align: center;
}

.token-icon {
  font-size: 1.35rem;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.35));
}

.profile-editor .panel-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.6rem;
  color: #e7efff;
}

.edit-form {
  animation: fadeIn 0.25s ease-in;
}

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

.form-group label {
  display: block;
  color: rgba(217, 226, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: rgba(12, 17, 32, 0.95);
  border: 1px solid rgba(0, 153, 255, 0.25);
  border-radius: 14px;
  color: #f1f5ff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 153, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.18);
}

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

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.save-button,
.cancel-button {
  flex: 1;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.save-button {
  background: linear-gradient(135deg, var(--accent-success) 0%, #0f9d76 100%);
  color: #fff;
  box-shadow: 0 18px 35px rgba(14, 159, 110, 0.25);
}

.save-button:hover {
  transform: translateY(-2px);
}

.cancel-button {
  background-color: rgba(255, 255, 255, 0.04);
  color: rgba(229, 235, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-button:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

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

@media (max-width: 900px) {
  .hero-avatar-wrap {
    width: 132px;
    height: 132px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-button {
    flex: 1 1 180px;
  }
}

@media (max-width: 768px) {
  .profile-hero {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .hero-name {
    font-size: 2.1rem;
  }

  .hero-content {
    gap: 0.85rem;
  }

  .profile-panel {
    padding: 1.6rem 1.4rem;
  }

  .metric-row {
    padding: 0.55rem 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .save-button,
  .cancel-button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .hero-avatar-wrap {
    width: 116px;
    height: 116px;
    border-radius: 28px;
  }

  .hero-name-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-handle {
    padding: 0.3rem 0.75rem;
    font-size: 0.95rem;
  }

  .first-trade-chip {
    font-size: 0.9rem;
  }

  .metric-value {
    font-size: 1.2rem;
  }
}

@media (max-width: 420px) {
  .profile-hero {
    padding: 1.6rem 1.1rem;
  }

  .hero-tag {
    width: 100%;
    justify-content: space-between;
  }

  .profile-panel {
    padding: 1.35rem 1.1rem;
  }

  .metric-header {
    gap: 0.2rem;
  }

  .metric-panel {
    padding: 1.35rem 1.1rem;
  }

  .profile-stat-panels {
    gap: 1.1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
  }
}

/* Profile Feed Section */
.profile-feed-section {
  margin-top: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(0, 153, 255, 0.25);
  background: radial-gradient(circle at top left, rgba(0, 153, 255, 0.15), transparent 55%),
              linear-gradient(135deg, rgba(19, 19, 19, 0.92) 0%, rgba(12, 12, 12, 0.94) 100%);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.feed-tabs-container {
  display: flex;
  border-bottom: 1px solid rgba(0, 153, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.feed-tab-button {
  flex: 1;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.feed-tab-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 153, 255, 0.1);
}

.feed-tab-button.active {
  color: var(--accent-primary);
  background: rgba(0, 153, 255, 0.15);
}

.feed-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.posts-container,
.trades-container {
  padding: 2rem;
}

.post-loading,
.trades-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.post-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(0, 153, 255, 0.2);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.post-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 153, 255, 0.4);
  transform: translateY(-2px);
}

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

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

.post-menu-container {
  position: relative;
}

.post-menu-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.post-menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.post-menu-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-menu-dropdown {
  position: absolute;
  right: 0;
  top: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color, #2a2a2a);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 140px;
  z-index: 100;
  animation: dropdownFade 0.2s ease;
}

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

.post-menu-item {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.2s ease;
}

.post-menu-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.post-menu-item.delete {
  color: #ff4444;
}

.post-menu-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.post-author:hover {
  opacity: 0.8;
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.post-author-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.post-author-handle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.post-timestamp {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.post-content {
  margin-bottom: 1rem;
}

.post-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

.post-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 153, 255, 0.1);
}

.post-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 153, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.post-action-btn.like-btn.liked {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.post-action-btn.comment-btn.active {
  background: rgba(0, 153, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.comments-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 153, 255, 0.15);
}

.comment-form {
  margin-bottom: 1.5rem;
}

.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 153, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  transition: all 0.2s ease;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.4);
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.char-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.comment-form-footer button {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-form-footer button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 153, 255, 0.4);
}

.comment-form-footer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

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

.comment-author {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-handle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.comment-timestamp {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-left: auto;
}

.comment-content {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-size: 0.9rem;
}

.no-comments,
.no-posts,
.no-trades {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.trades-feed-list {
  display: grid;
  gap: 1.5rem;
}

.trade-feed-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(0, 153, 255, 0.2);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.trade-feed-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 153, 255, 0.4);
  transform: translateY(-2px);
}

.trade-feed-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trade-symbol-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trade-symbol {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.trade-direction {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.trade-direction.long {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.trade-direction.short {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.trade-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.trade-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trade-stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trade-stat-value {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.profit-positive {
  color: #22c55e !important;
}

.profit-negative {
  color: #ef4444 !important;
}

/* Trades Table Styles */
.trades-table-container {
  margin-top: 1.5rem;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.trades-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-tertiary);
}

.trades-table thead {
  background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
}

.trades-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.trades-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.trades-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.trades-table tbody tr:last-child {
  border-bottom: none;
}

.trades-table td {
  padding: 1rem;
  color: var(--text-primary);
}

.trades-table td.profit {
  color: var(--accent-success);
  font-weight: var(--font-weight-bold);
}

.trades-table td.loss {
  color: var(--accent-error);
  font-weight: var(--font-weight-bold);
}

.trades-table .coin-symbol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trades-table .verified-icon {
  color: #22c55e;
  font-weight: 900;
  display: inline-block;
}

.trades-table .unverified-icon {
  color: #f59e0b;
  font-weight: 900;
  display: inline-block;
}

@media (max-width: 768px) {
  .posts-container,
  .trades-container {
    padding: 1rem;
  }

  .feed-tab-button {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .post-card,
  .trade-feed-card {
    padding: 1rem;
  }

  .trade-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trades-table-container {
    overflow-x: auto;
  }

  .trades-table {
    font-size: 0.85rem;
  }

  .trades-table th,
  .trades-table td {
    padding: 0.75rem 0.5rem;
  }
}

.trophycase-container {
  max-width: 1400px;
  width: 100%;
  margin: var(--spacing-3xl) auto;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: var(--radius-3xl);
  padding: var(--spacing-3xl) var(--spacing-2xl) var(--spacing-3xl) var(--spacing-2xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trophycase-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-3xl);
  text-align: center;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Trophy Hero Section */
.trophy-hero {
  width: 100%;
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 2px solid var(--border-light);
}

.trophy-hero-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 8px 16px rgba(var(--accent-ctr-rgb), 0.3));
  animation: hero-float 3s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.trophy-hero-title {
  font-size: var(--text-4xl);
  margin: 0 0 var(--spacing-sm) 0;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.trophy-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary); /* Use CSS variable instead of hardcoded color */
  margin: 0 0 2rem 0;
  font-weight: 400;
}

.trophy-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.trophy-stat-card {
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg) var(--spacing-2xl);
  min-width: 150px;
  transition: var(--transition-base);
}

.trophy-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--accent-ctr);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary); /* Use CSS variable instead of hardcoded color */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.trophy-section {
  margin-bottom: 3rem;
  width: 100%;
}

/* Add dividing line between sections */
.trophy-section + .trophy-section {
  border-top: 2px solid var(--border-light);
  padding-top: var(--spacing-3xl);
}


.trophy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  width: 100%;
  margin-top: var(--spacing-2xl);
}

.trophy {
  background: var(--gradient-card);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  position: relative;
  border: 2px solid var(--border-light);
  min-height: 220px;
}

.trophy.earned {
  background: rgba(var(--accent-success-rgb), 0.12);
  border: 2px solid rgba(var(--accent-success-rgb), 0.3);
  cursor: pointer;
  box-shadow: var(--glow-success);
}

.trophy.earned:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
}

.trophy.locked {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(61, 125, 217, 0.05) 100%);
  border: 2px solid rgba(74, 158, 255, 0.2);
  opacity: 0.85;
}

.trophy.locked:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(74, 158, 255, 0.15);
}

.trophy-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.trophy-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary); /* Use CSS variable instead of hardcoded color */
  text-align: center;
  letter-spacing: 0.02em;
}

.trophy-desc {
  font-size: 0.9rem;
  color: var(--text-secondary); /* Use CSS variable instead of hardcoded color */
  text-align: center;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.trophy-progress {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.progress-ring {
  position: relative;
  width: 100px;
  height: 100px;
}

.progress-ring svg {
  transform: rotate(0deg);
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary); /* Use CSS variable instead of hardcoded color */
}

.progress-label {
  font-size: 0.85rem;
  color: var(--text-secondary); /* Use CSS variable instead of hardcoded color */
  font-weight: 600;
  text-align: center;
}

.trophy-tokens {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.75rem 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffd700;
}

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

.tokens-amount {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.trophy-section h3 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-primary); /* Use CSS variable instead of hardcoded color */
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

/* Large screens - extra breathing room */
@media (min-width: 1400px) {
  .trophycase-container {
    padding: 4rem 3rem 4.5rem 3rem;
  }

  .trophy-list {
    gap: 2.5rem;
  }
}

/* Tablets and medium screens */
@media (max-width: 900px) {
  .trophycase-container {
    margin: 2rem auto;
    padding: 2.5rem 2rem 3rem 2rem;
  }

  .trophycase-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .trophy-hero-icon {
    font-size: 4rem;
  }

  .trophy-hero-title {
    font-size: 2.5rem;
  }

  .trophy-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.75rem;
  }

  .trophy-stats {
    gap: 1.5rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .trophycase-container {
    margin: 1.5rem auto;
    padding: 2rem 1.5rem;
  }

  .trophycase-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .trophy-hero {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .trophy-hero-icon {
    font-size: 3.5rem;
  }

  .trophy-hero-title {
    font-size: 2rem;
  }

  .trophy-hero-subtitle {
    font-size: 1rem;
  }

  .trophy-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .trophy-stat-card {
    min-width: unset;
    padding: 1.25rem 1.5rem;
  }

  .trophy-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
  }
  
  .trophy {
    padding: 1.5rem 1rem;
    min-height: 200px;
  }
  
  .trophy-icon {
    font-size: 3rem;
  }

  .trophy-section h3 {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .trophycase-container {
    margin: 1rem auto;
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .trophycase-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .trophy-hero-icon {
    font-size: 3rem;
  }

  .trophy-hero-title {
    font-size: 1.75rem;
  }

  .trophy-hero-subtitle {
    font-size: 0.95rem;
  }

  .trophy-stat-card {
    padding: 1rem 1.25rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .trophy-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .trophy {
    padding: 1.5rem;
    min-height: 180px;
  }

  .trophy-icon {
    font-size: 2.75rem;
  }

  .trophy-name {
    font-size: 1rem;
  }

  .trophy-desc {
    font-size: 0.85rem;
  }

  .trophy-section h3 {
    font-size: 1.35rem;
  }
}

/* Rare Trophy Styling - Electric Blue and Gold Trim */
.trophy.rare {
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(19, 19, 19, 0.8) 100%);
  background-clip: padding-box;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.trophy.rare::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #00D4FF 0%, #FFD700 50%, #00D4FF 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

.trophy.rare:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), 0 12px 48px rgba(0,0,0,0.4);
}

.trophy.rare .trophy-name {
  background: linear-gradient(135deg, #00D4FF 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Rare + Earned = Electric Green and Gold */
.trophy.rare.earned {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(22, 163, 74, 0.08) 100%);
  border: 2px solid transparent;
}

.trophy.rare.earned::before {
  background: linear-gradient(135deg, #22c55e 0%, #FFD700 50%, #22c55e 100%);
  animation: rare-earned-glow 3s ease-in-out infinite;
}

@keyframes rare-earned-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

.trophy.rare.earned:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 40px rgba(255, 215, 0, 0.3), 0 12px 48px rgba(0,0,0,0.4);
}

.trophy.rare.earned .trophy-name {
  background: linear-gradient(135deg, #22c55e 0%, #FFD700 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  animation: rare-text-shimmer 4s ease-in-out infinite;
}

@keyframes rare-text-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Legendary Trader special styling */
.trophy.legendary.earned {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(56, 189, 248, 0.16) 45%, rgba(8, 47, 73, 0.4) 100%);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45), 0 18px 60px rgba(8, 47, 73, 0.6);
  border: 2px solid transparent;
}

.trophy.legendary.earned::before {
  background: conic-gradient(from 180deg, rgba(56, 189, 248, 0.95) 0deg, rgba(96, 165, 250, 0.95) 120deg, rgba(250, 204, 21, 0.9) 180deg, rgba(56, 189, 248, 0.95) 240deg, rgba(14, 165, 233, 0.95) 360deg);
  animation: legendary-electric 3s linear infinite;
  opacity: 1;
  transition: opacity 0s;
}

@keyframes legendary-electric {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    filter: hue-rotate(35deg) brightness(1.2);
  }
  100% {
    filter: hue-rotate(0deg) brightness(1);
  }
}

.trophy.legendary.earned:hover {
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.6), 0 0 48px rgba(14, 165, 233, 0.4), 0 20px 68px rgba(8, 47, 73, 0.55);
}

.trophy.legendary.earned:hover::before {
  opacity: 0;
}

.trophy.legendary.earned .trophy-name {
  background: linear-gradient(135deg, #38bdf8 0%, #facc15 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.trophy.legendary.earned .progress-text {
  color: var(--text-primary); /* Use CSS variable - high contrast */
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.trophy.legendary.earned .progress-label {
  color: var(--text-secondary); /* Use CSS variable - high contrast */
}

.trophy.voice-of-generation {
  position: relative;
  overflow: hidden;
}

.trophy.voice-of-generation::after {
  content: '';
  position: absolute;
  inset: 22% 10% auto 10%;
  height: 4px;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0) 0%, rgba(192, 132, 252, 0.65) 45%, rgba(96, 165, 250, 0.75) 55%, rgba(192, 132, 252, 0) 100%);
  filter: blur(0.5px);
  animation: voice-glow 3s ease-in-out infinite;
}

.trophy.voice-of-generation .trophy-name {
  background: linear-gradient(135deg, #9d4edd 0%, #33b1ff 45%, #c77dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.trophy.voice-of-generation .trophy-desc {
  color: var(--text-secondary); /* Use CSS variable instead of hardcoded color */
}

.trophy.voice-of-generation .trophy-icon {
  animation: voice-pulse 4s ease-in-out infinite;
}

@keyframes voice-glow {
  0%, 100% {
    opacity: 0.4;
    transform: translateX(-6%) scaleX(1.1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(6%) scaleX(1.15);
  }
}

@keyframes voice-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.45));
  }
}
.integrations-page {
  max-width: 1400px;
  margin: 0 auto;
}

.page-description {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-2xl);
}

/* Alerts - extends shared alert styles */
.integrations-page .alert {
  /* Extends .alert from shared.css */
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
  animation: slideDown 0.3s ease-out;
}

.integrations-page .alert-error {
  /* Extends .alert-error from shared.css */
  background: rgba(var(--accent-error-rgb), 0.12);
  border: 1px solid rgba(var(--accent-error-rgb), 0.3);
  color: var(--accent-error);
}

.integrations-page .alert-success {
  /* Extends .alert-success from shared.css */
  background: rgba(var(--accent-success-rgb), 0.12);
  border: 1px solid rgba(var(--accent-success-rgb), 0.3);
  color: var(--accent-success);
}

.alert-icon {
  font-size: 1.25rem;
}

/* Integrations Grid */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: var(--spacing-2xl);
}

/* Integration Card - extends shared card styles */
.integration-card {
  /* Extends .card from shared.css */
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.integration-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.integration-card.coming-soon {
  opacity: 0.6;
  position: relative;
  overflow: hidden;
}

.integration-card.coming-soon:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Integration Header */
.integration-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.integration-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.integration-logo svg {
  width: 100%;
  height: 100%;
}

.integration-logo.placeholder {
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}

.integration-info {
  flex: 1;
}

.integration-info h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  color: #fff;
}

.integration-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Integration Status */
.integration-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.integration-status.connected {
  background: rgba(74, 158, 255, 0.15);
  color: #0099ff;
}

.integration-status.disconnected {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Integration Details */
.integration-details {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.detail-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.detail-value {
  color: #fff;
  font-weight: 500;
}

.monospace {
  font-family: 'Courier New', monospace;
  background: rgba(74, 158, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Integration Actions */
.integration-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-sync,
.btn-reconnect,
.btn-delete {
  /* Extends .btn from shared.css */
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-sync {
  /* Extends .btn .btn-success from shared.css */
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.btn-sync:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.btn-reconnect {
  /* Extends .btn .btn-primary from shared.css */
  background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
  color: white;
}

.btn-reconnect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.3);
}

.btn-delete {
  /* Extends .btn .btn-danger from shared.css */
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.btn-delete:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: #ff6b35;
}

/* Integration Form */
.integration-form {
  animation: fadeIn 0.3s ease-out;
}

.form-help {
  background: rgba(74, 158, 255, 0.05);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-help strong {
  color: #0099ff;
}

.form-help ol {
  margin: 0.75rem 0 0 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.form-help li {
  margin-bottom: 0.5rem;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

.required {
  color: #ff6b35;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.form-row input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-row input:focus {
  outline: none;
  border-color: #0099ff;
  background: rgba(74, 158, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-row input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-row input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-hint {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.input-hint code {
  background: rgba(74, 158, 255, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #0099ff;
}

/* What Happens Box */
.what-happens-box {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(74, 158, 255, 0.03) 100%);
  border: 1px solid rgba(74, 158, 255, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.what-happens-box h3 {
  margin: 0 0 1rem 0;
  color: #0099ff;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.what-happens-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.what-happens-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.what-happens-list li:last-child {
  margin-bottom: 0;
}

.what-happens-list li svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.what-happens-list li span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.what-happens-list li strong {
  color: #fff;
}

.form-note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-note svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  opacity: 0.7;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
}

.btn-save,
.btn-cancel {
  /* Extends .btn from shared.css */
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-save {
  /* Extends .btn .btn-orange from shared.css */
  flex: 2;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
}

.btn-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

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

.btn-cancel {
  /* Extends .btn .btn-secondary from shared.css */
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

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

/* Coming Soon Badge */
.coming-soon-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .integrations-grid {
    grid-template-columns: 1fr;
  }

  .integration-header {
    flex-wrap: wrap;
  }

  .integration-status {
    width: 100%;
    justify-content: center;
  }

  .integration-actions {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-save,
  .btn-cancel {
    width: 100%;
  }
}

/* Congratulations Modal */
.congratulations-modal {
  max-width: 700px;
  width: 90%;
  padding: 3rem;
  text-align: center;
}

.congratulations-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.congratulations-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-primary);
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  0% { 
    opacity: 0;
    transform: scale(0.8);
  }
  100% { 
    opacity: 1;
    transform: scale(1);
  }
}

.congratulations-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin: 0;
}

.congratulations-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-card.highlight.rank-card {
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.15) 0%, rgba(102, 51, 255, 0.15) 100%);
  border: 2px solid var(--color-primary);
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.congratulations-modal .btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.congratulations-modal .btn-secondary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.congratulations-modal .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .congratulations-modal {
    padding: 2rem 1.5rem;
  }

  .congratulations-title {
    font-size: 2rem;
  }

  .congratulations-subtitle {
    font-size: 1rem;
  }

  .congratulations-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.5rem;
  }
}
/* ============================================
   FAUCET PAGE STYLES
   ============================================ */

.faucet-page {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-2xl) var(--spacing-md);
}

.faucet-container {
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.faucet-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--spacing-md);
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(var(--accent-ctr-rgb), 0.4));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.faucet-page h1 {
  /* Extends .page-header h1 from shared.css */
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
}

.faucet-subtitle {
  margin: 0 0 var(--spacing-2xl) 0;
  color: var(--text-secondary);
  font-size: var(--text-lg);
}

/* ============================================
   FAUCET CARD
   ============================================ */

.faucet-card {
  /* Extends .card from shared.css */
  background: var(--gradient-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-xl), var(--glow-ctr);
  position: relative;
  overflow: hidden;
}

.faucet-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
  animation: shimmer 8s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.faucet-info {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
  text-align: left;
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-lg);
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-text h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.info-text p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-text strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ============================================
   FAUCET BUTTON
   ============================================ */

.faucet-button {
  /* Extends .btn .btn-orange .btn-block .btn-lg from shared.css */
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c5a 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.faucet-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.6);
  background: linear-gradient(135deg, #ff8c5a 0%, var(--accent-orange) 100%);
}

.faucet-button:active:not(:disabled) {
  transform: translateY(0);
}

.faucet-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.faucet-button-icon {
  font-size: 1.5rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   SUCCESS/ERROR MESSAGES
   ============================================ */

.faucet-success {
  /* Extends .alert .alert-success from shared.css */
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(0, 208, 132, 0.1);
  border: 2px solid rgba(0, 208, 132, 0.5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  animation: slideIn 0.3s ease-out;
}

.faucet-success svg {
  color: var(--accent-success);
  flex-shrink: 0;
}

.success-message {
  color: var(--accent-success);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.success-balance {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faucet-error {
  /* Extends .alert .alert-error from shared.css */
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  animation: slideIn 0.3s ease-out;
}

.faucet-error svg {
  color: #ef4444;
  flex-shrink: 0;
}

.error-message {
  color: #ef4444;
  font-weight: 600;
}

.faucet-cooldown {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 184, 0, 0.1);
  border: 2px solid rgba(255, 184, 0, 0.5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  animation: slideIn 0.3s ease-out;
}

.cooldown-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cooldown-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cooldown-text strong {
  color: var(--accent-orange);
  font-weight: 600;
}

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

/* ============================================
   FEATURES GRID
   ============================================ */

.faucet-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 158, 255, 0.5);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.2);
}

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

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

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================
   FAUCET NOTE
   ============================================ */

.faucet-note {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

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

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

@media (max-width: 768px) {
  .faucet-page h1 {
    font-size: 2rem;
  }

  .faucet-card {
    padding: 2rem 1.5rem;
  }

  .faucet-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

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

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

  .faucet-button {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .faucet-icon {
    font-size: 3rem;
  }

  .faucet-page h1 {
    font-size: 1.75rem;
  }

  .faucet-subtitle {
    font-size: 1rem;
  }

  .faucet-card {
    padding: 1.5rem 1rem;
  }

  .faucet-info {
    padding: 1rem;
  }
}

/* ============================================
   SUPER CTR CONVERTER
   ============================================ */

.converter-card {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, var(--bg-secondary) 100%);
  border: 2px solid rgba(138, 43, 226, 0.3);
  margin-top: 3rem;
}

.converter-card::before {
  background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
}

.converter-header {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.converter-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(138, 43, 226, 0.5));
}

.converter-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  background: linear-gradient(135deg, #8a2be2 0%, #da70d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.converter-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.converter-body {
  position: relative;
  z-index: 1;
}

.balance-display {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.balance-label {
  color: var(--text-secondary);
}

.balance-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent-orange);
}

.balance-value.super {
  color: #da70d6;
}

.conversion-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: var(--radius-lg);
}

.conversion-from,
.conversion-to {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  min-width: 150px;
}

.conversion-from .token-icon {
  font-size: 2.5rem;
}

.conversion-to .token-icon {
  font-size: 2.5rem;
}

.conversion-arrow {
  font-size: 2rem;
  color: var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
}

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

.token-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.convert-button {
  /* Similar to faucet-button but with purple gradient */
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #8a2be2 0%, #da70d6 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.convert-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.convert-button:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}

.convert-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(138, 43, 226, 0.6);
}

.convert-button:active:not(:disabled) {
  transform: translateY(0);
}

.convert-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #666 0%, #888 100%);
  box-shadow: none;
}

.convert-button-icon {
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Mobile responsiveness for converter */
@media (max-width: 640px) {
  .conversion-display {
    flex-direction: column;
    gap: 1rem;
  }

  .conversion-arrow {
    transform: rotate(90deg);
  }

  .conversion-from,
  .conversion-to {
    min-width: 120px;
  }

  .balance-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ============================================
   STRIPE PAYMENT SECTION
   ============================================ */

.stripe-card {
  margin-top: 2rem;
  position: relative;
}

.stripe-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.stripe-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 12px rgba(74, 158, 255, 0.4));
}

.stripe-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #635bff 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stripe-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.stripe-body {
  position: relative;
  z-index: 1;
}

/* Payment Packages Grid */
.payment-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.payment-package {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 2px solid rgba(99, 91, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.payment-package::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #635bff 0%, #4f46e5 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-package:hover {
  border-color: rgba(99, 91, 255, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.3);
}

.payment-package:hover::before {
  opacity: 1;
}

.package-icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

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

.package-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-success);
  margin-bottom: 0.5rem;
}

.package-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #635bff 0%, #4f46e5 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.package-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 16px rgba(99, 91, 255, 0.4);
  transform: translateY(-2px);
}

.package-button:active:not(:disabled) {
  transform: translateY(0);
}

.package-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, #666 0%, #888 100%);
}

/* ============================================
   STRIPE PAYMENT MODAL
   ============================================ */

.payment-modal {
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem 0;
}

.payment-summary {
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.summary-item:not(:last-child) {
  border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

.summary-item strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Stripe Elements Styling */
.stripe-payment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stripe-submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 208, 132, 0.3);
}

.stripe-submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 24px rgba(0, 208, 132, 0.4);
  transform: translateY(-2px);
}

.stripe-submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.stripe-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, #666 0%, #888 100%);
  box-shadow: none;
}

.payment-modal-error {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-danger);
  font-size: 0.95rem;
  text-align: center;
}

/* Mobile Responsiveness for Stripe Section */
@media (max-width: 640px) {
  .payment-packages {
    grid-template-columns: 1fr;
  }

  .payment-modal {
    width: 95%;
    padding: 1.5rem;
  }

  .package-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}
/* Admin Login Modal */
.admin-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.admin-login-modal {
  background: #1f2937;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.admin-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #374151;
}

.admin-login-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f9fafb;
}

.admin-close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.admin-close-btn:hover {
  background: #374151;
}

.admin-login-form {
  padding: 1.5rem;
}

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

.admin-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
}

.admin-form-group input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #f9fafb;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.admin-form-group input:focus {
  outline: none;
  border-color: #3b82f6;
}

.admin-error {
  background: #7f1d1d;
  color: #fca5a5;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid #991b1b;
}

.admin-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-submit-btn:hover:not(:disabled) {
  background: #2563eb;
}

.admin-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.more-page {
  max-width: 1000px;
  margin: 0 auto;
}

.more-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.more-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

/* Section Styles */
.more-section {
  background: rgba(var(--accent-primary-rgb), 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  transition: var(--transition-base);
}

.more-section:hover {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.more-section h2 {
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Resources Section */
.resource-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.resource-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-base);
  color: var(--text-primary);
  cursor: pointer;
}

.resource-link:hover {
  background: rgba(var(--accent-primary-rgb), 0.12);
  border-color: var(--accent-primary);
  transform: translateX(8px);
  box-shadow: var(--glow-primary);
}

/* Button-styled resource links for actions */
.resource-button {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
}

.resource-button.cancel-action {
  background: rgba(255, 0, 0, 0.05);
  border-color: rgba(255, 0, 0, 0.2);
}

.resource-button.cancel-action:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.resource-button.cancel-action .resource-info h3 {
  color: #ff4444;
}

.resource-icon {
  font-size: 2rem;
  min-width: 40px;
  text-align: center;
}

.resource-info h3 {
  font-size: 1.2rem;
  color: #0099ff;
  margin: 0 0 0.25rem 0;
}

.resource-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Feedback Section */
.feedback-section {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.feedback-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group label {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0099ff;
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

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

.submit-btn {
  /* Extends .btn .btn-primary from shared.css */
  background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.3);
  align-self: flex-start;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0066cc 0%, #2d6bc9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 158, 255, 0.5);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success Message */
.feedback-success {
  /* Extends .alert .alert-success from shared.css */
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  animation: successFadeIn 0.5s ease-out;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-success);
  margin-bottom: 1rem;
  display: inline-block;
  animation: successPulse 0.5s ease-out;
}

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

.feedback-success h3 {
  font-size: 1.5rem;
  color: var(--accent-success);
  margin-bottom: 0.5rem;
}

.feedback-success p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

/* App Info Section */
.app-info {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);
  position: relative;
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
  transform: translateY(-2px);
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.info-value {
  font-size: 1.2rem;
  color: white;
  font-weight: 700;
}

.status-active {
  color: var(--accent-success);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-active::before {
  content: '●';
  font-size: 0.8rem;
  animation: pulse 2s ease-in-out infinite;
}

/* Hidden Admin Trigger */
.admin-trigger-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.2);
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.admin-trigger-btn:hover {
  color: rgba(148, 163, 184, 0.5);
}

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

/* Large screens - extra breathing room */
@media (min-width: 1400px) {
  .more-page {
    max-width: 1100px;
  }

  .more-section {
    padding: 2.5rem;
  }

  .resource-link {
    padding: 1.5rem;
  }
}

/* Tablets and medium screens */
@media (max-width: 900px) {
  .more-page {
    padding: 0 1rem;
  }

  .more-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .more-content {
    gap: 2rem;
  }

  .more-section {
    padding: 1.75rem;
  }

  .more-section h2 {
    font-size: 1.6rem;
  }

  .resource-link {
    padding: 1.125rem;
  }

  .resource-icon {
    font-size: 1.75rem;
  }

  .resource-info h3 {
    font-size: 1.1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .more-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .more-content {
    gap: 1.75rem;
  }

  .more-section {
    padding: 1.5rem;
  }

  .more-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .resource-links {
    gap: 0.875rem;
  }

  .resource-link {
    padding: 1rem;
  }

  .resource-icon {
    font-size: 1.5rem;
    min-width: 35px;
  }

  .resource-info h3 {
    font-size: 1.05rem;
  }

  .resource-info p {
    font-size: 0.9rem;
  }

  .feedback-description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 0.8rem 0.9rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-item {
    padding: 1rem;
  }

  .submit-btn {
    width: 100%;
    padding: 0.95rem 1.75rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .more-page {
    padding: 0 0.75rem;
  }

  .more-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .more-content {
    gap: 1.5rem;
  }

  .more-section {
    padding: 1.25rem;
  }

  .more-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }

  .resource-links {
    gap: 0.75rem;
  }

  .resource-link {
    padding: 0.875rem;
    gap: 0.75rem;
  }

  .resource-icon {
    font-size: 1.35rem;
    min-width: 32px;
  }

  .resource-info h3 {
    font-size: 1rem;
  }

  .resource-info p {
    font-size: 0.85rem;
  }

  .feedback-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .feedback-form {
    gap: 1.25rem;
  }

  .form-group {
    gap: 0.4rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.75rem 0.85rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .feedback-success {
    padding: 2rem 1.5rem;
  }

  .success-icon {
    font-size: 3rem;
  }

  .feedback-success h3 {
    font-size: 1.35rem;
  }

  .feedback-success p {
    font-size: 1rem;
  }

  .info-item {
    padding: 0.875rem;
  }

  .info-label {
    font-size: 0.8rem;
  }

  .info-value {
    font-size: 1.1rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .more-section {
    padding: 1.5rem;
  }

  .submit-btn {
    width: 100%;
  }
}
.settings-page {
  max-width: 800px;
  margin: 0 auto;
}

.settings-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-top: var(--spacing-xs) * -1;
  margin-bottom: var(--spacing-2xl);
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.settings-section {
  background: rgba(var(--accent-primary-rgb), 0.06);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.settings-section h2 {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

/* Account Info Display */
.info-display {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
  background: rgba(var(--accent-primary-rgb), 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.info-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.info-value {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

/* Password Form */
.password-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.password-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.password-form label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
}

.password-form input {
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.password-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.1);
}

.password-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Password Requirements */
.password-requirements {
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(0, 150, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 150, 255, 0.2);
}

.requirements-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.requirements-list li {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  padding-left: 1.5rem;
  position: relative;
  transition: color 0.2s ease;
}

.requirements-list li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.requirements-list li.met {
  color: #4ade80;
}

.requirements-list li.met::before {
  content: '✓';
  color: #4ade80;
  font-weight: bold;
}

/* Form Messages */
.password-form .form-error {
  /* Extends .form-error from shared.css */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.95rem;
}

.password-form .form-error .error-icon {
  font-size: 1.2rem;
}

.password-form .form-success {
  /* Extends .alert .alert-success from shared.css */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #86efac;
  font-size: 0.95rem;
}

.password-form .form-success .success-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Submit Button */
.password-form .submit-btn {
  /* Extends .btn .btn-primary from shared.css */
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--electric-blue) 0%, #0070cc 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 150, 255, 0.3);
}

.password-form .submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 150, 255, 0.4);
}

.password-form .submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.password-form .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Security Tips */
.security-tips {
  background: rgba(0, 150, 255, 0.05);
  border-color: rgba(0, 150, 255, 0.2);
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tips-list li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.tips-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--electric-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Invite Codes */
.invite-codes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.invite-code-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
}

.invite-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.invite-code-text {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--electric-blue);
  letter-spacing: 0.1em;
}

.invite-uses {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.invite-code-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.copy-link-btn {
  padding: 0.5rem 1rem;
  background: rgba(0, 150, 255, 0.15);
  border: 1px solid rgba(0, 150, 255, 0.3);
  border-radius: 6px;
  color: var(--electric-blue);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-link-btn:hover {
  background: rgba(0, 150, 255, 0.25);
  border-color: rgba(0, 150, 255, 0.5);
}

.invite-link-preview {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.no-codes-message {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-section {
    padding: 1.5rem;
  }

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

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .password-form input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}
/* ============================================
   NOTIFICATION TAB STYLES
   Extends shared.css classes
   ============================================ */

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

.notification-header {
  /* Extends .page-header from shared.css */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-2xl);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.notification-header h1 {
  /* Extends .page-header h1 from shared.css */
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--text-3xl);
  color: var(--color-primary);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notification-count {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.unread-count {
  color: var(--accent-primary);
  font-weight: 600;
}

.mark-all-read {
  /* Extends .btn .btn-primary from shared.css */
  background: var(--gradient-brand);
  color: #ffffff;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--glow-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mark-all-read:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.mark-all-read:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notification-list-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.notification-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
}

.notification-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.section-icon {
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.notification-section:first-of-type .section-icon {
  color: var(--accent-goldenblood);
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-item {
  /* Extends .card from shared.css */
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  cursor: pointer;
  outline: none;
}

.notification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.2);
  border-color: var(--accent-primary);
}

.notification-item:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.3);
}

.notification-item.unread {
  background: linear-gradient(135deg, rgba(224, 155, 45, 0.12) 0%, rgba(74, 158, 255, 0.08) 100%);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #0099ff 0%, #0099ff 100%) 1;
  box-shadow: 
    0 4px 16px rgba(224, 155, 45, 0.2),
    0 4px 16px rgba(74, 158, 255, 0.15);
}

.notification-item.read {
  opacity: 0.85;
  background: var(--gradient-card);
}

.notification-item.read:hover {
  opacity: 1;
}

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

.notification-unread-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0099ff 0%, #0099ff 100%);
  box-shadow: 
    0 0 10px rgba(224, 155, 45, 0.6),
    0 0 15px rgba(74, 158, 255, 0.4);
  flex-shrink: 0;
  margin-top: 0.25rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

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

.notification-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary); /* High contrast text */
  font-weight: 700;
  flex: 1;
}

.notification-status {
  flex-shrink: 0;
}

.read-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background: rgba(74, 158, 255, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.read-badge::before {
  content: '✓';
  color: var(--accent-primary);
  font-size: 0.7rem;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, rgba(224, 155, 45, 0.2) 0%, rgba(74, 158, 255, 0.15) 100%);
  color: var(--accent-primary);
  border: 1px solid rgba(224, 155, 45, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.unread-badge::before {
  content: '●';
  color: var(--accent-goldenblood);
  font-size: 0.6rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

.notification-message {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary); /* High contrast text */
  line-height: 1.6;
}

.notification-time {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.no-notifications {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 2rem;
  background: var(--gradient-card);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
}

.no-notifications p {
  margin: 0 0 0.5rem 0;
}

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

@media (max-width: 768px) {
  .notification-tab {
    padding: 1rem;
  }

  .notification-header {
    flex-direction: column;
    align-items: stretch;
  }

  .notification-header h1 {
    font-size: 2rem;
  }

  .mark-all-read {
    width: 100%;
  }

  .notification-item {
    padding: 1.25rem;
  }
}
.invite-friends-page {
  max-width: 600px;
  margin: var(--spacing-2xl) auto;
  padding: var(--spacing-3xl) var(--spacing-2xl);
  background: var(--gradient-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), var(--glow-ctr);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
  text-align: center;
}

.invite-friends-page h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
}

.invite-description {
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.reward-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-2xl);
  background: rgba(var(--accent-ctr-rgb), 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--accent-ctr-rgb), 0.3);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--glow-ctr);
}

.reward-icon {
  font-size: var(--text-3xl);
  flex-shrink: 0;
}

.reward-text {
  text-align: left;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
}

.steps-section {
  width: 100%;
  max-width: 500px;
  text-align: left;
}

.steps-section h2 {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  margin-bottom: 1rem;
  text-align: center;
}

.steps-section ol {
  padding-left: 1.5rem;
  line-height: 1.8;
}

.steps-section li {
  margin-bottom: 0.5rem;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
}

.invite-link-container {
  width: 100%;
  max-width: 500px;
  margin-bottom: 0;
}

.invite-link-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  transition: border-color 0.2s;
}

.invite-link-wrapper:focus-within {
  border-color: var(--accent-primary);
}

.invite-link-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--accent-primary);
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  outline: none;
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
  white-space: nowrap;
  cursor: text;
}

.invite-link-input::selection {
  background: var(--accent-primary);
  color: white;
}

.copy-button {
  background: var(--gradient-orange);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px var(--accent-orange-shadow);
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-button:hover:not(:disabled) {
  background: var(--gradient-orange-hover);
  box-shadow: 0 4px 16px var(--accent-orange-shadow);
  transform: translateY(-1px);
}

.copy-button:active:not(:disabled) {
  transform: translateY(0);
}

.copy-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.copy-button.copied {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(0, 208, 132, 0.3);
}

.copy-button.copied:hover {
  background: #059669;
  box-shadow: 0 4px 16px rgba(0, 208, 132, 0.4);
}

.stats-section {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  background: rgba(0, 208, 132, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 208, 132, 0.2);
}

.stats-text {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1rem);
  color: var(--text-primary);
}

.additional-codes {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem;
  background: rgba(0, 153, 255, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 153, 255, 0.2);
}

.additional-codes-text {
  margin: 0;
  font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
  color: var(--text-secondary);
}

.generate-button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px var(--accent-primary-shadow);
}

.generate-button:hover:not(:disabled) {
  box-shadow: 0 4px 16px var(--accent-primary-shadow);
  transform: translateY(-1px);
}

.generate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.loading-state {
  padding: 2rem;
  color: var(--text-secondary);
}

.no-code-section {
  padding: 1.5rem;
  color: var(--text-secondary);
}

.generating-text {
  margin-top: 0.5rem;
  font-size: 14px;
  font-style: italic;
}

.error-message {
  width: 100%;
  max-width: 500px;
  padding: 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: 14px;
}

.closing-message {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 500;
}
/* CT100 Chart Container */
.ct100-chart-container {
  width: 100%;
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Header */
.ct100-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ct100-title-section {
  flex: 1;
  min-width: 200px;
  max-width: 800px;
}

.ct100-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
  opacity: 0.9;
}

.ct100-explainer {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
  max-width: 100%;
}

.ct100-interpretation {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0.5rem 0 0 0;
  font-weight: 400;
  max-width: 100%;
}

.ct100-context {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6b7280;
  margin: 0.5rem 0 0 0;
  font-weight: 400;
  font-style: italic;
  opacity: 0.85;
}

.ct100-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.ct100-return-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.ct100-return-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-align: right;
}

.ct100-return {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ct100-return.positive {
  color: #059669;
}

.ct100-return.negative {
  color: #dc2626;
}

.ct100-range-label {
  font-size: 0.8125rem;
  color: #9ca3af;
  font-weight: 500;
  opacity: 0.8;
}

/* Chart Wrapper */
.ct100-chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 140px;
  margin-bottom: 0.75rem;
}

.ct100-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.ct100-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Interactive elements */
.ct100-chart-point {
  cursor: pointer;
  transition: r 0.15s ease;
}

/* Tooltip */
.ct100-tooltip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 10;
}

.ct100-tooltip-date {
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.ct100-tooltip-value {
  color: #1f2937;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Controls */
.ct100-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ct100-range-buttons {
  display: flex;
  gap: 0.25rem;
}

.ct100-range-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-variant-numeric: tabular-nums;
}

.ct100-range-btn:hover {
  background: #f9fafb;
  color: #374151;
}

.ct100-range-btn.active {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #d1d5db;
  font-weight: 600;
}

.ct100-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
  flex-wrap: wrap;
}

.ct100-meta {
  color: #9ca3af;
  opacity: 0.75;
  font-weight: 400;
}

.ct100-delayed {
  color: #f59e0b;
  font-weight: 500;
}

.ct100-updated {
  color: #9ca3af;
  opacity: 0.75;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .ct100-chart-container {
    padding: 0.75rem 0;
  }

  .ct100-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ct100-title {
    font-size: 0.9375rem;
  }

  .ct100-explainer {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .ct100-interpretation {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .ct100-context {
    font-size: 0.75rem;
  }

  .ct100-return-section {
    align-items: flex-start;
    margin-top: 0.75rem;
  }

  .ct100-return-label {
    text-align: left;
  }

  .ct100-return {
    font-size: 1.125rem;
  }

  .ct100-chart-wrapper {
    min-height: 100px;
  }

  .ct100-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .ct100-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .ct100-tooltip {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.375rem 0.625rem;
  }
}

/* Dark mode support (if needed later) */
@media (prefers-color-scheme: dark) {
  .ct100-chart-container {
    border-bottom-color: #374151;
  }

  .ct100-title {
    color: #f9fafb;
  }

  .ct100-subtitle,
  .ct100-range-label,
  .ct100-updated {
    color: #9ca3af;
  }

  .ct100-range-btn {
    color: #9ca3af;
    border-color: #374151;
  }

  .ct100-range-btn:hover {
    background: #1f2937;
    color: #d1d5db;
  }

  .ct100-range-btn.active {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
  }

  .ct100-tooltip {
    background: rgba(31, 41, 55, 0.95);
    border-color: #374151;
  }

  .ct100-tooltip-date {
    color: #9ca3af;
  }

  .ct100-tooltip-value {
    color: #f9fafb;
  }
}
/* Knowledge Base Page Styles */

.knowledge-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-xl);
}

.knowledge-header {
  margin-bottom: var(--spacing-3xl);
}

.knowledge-header h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.knowledge-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.02em;
}

.knowledge-disclaimer {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--font-weight-normal);
  font-style: italic;
  margin-top: var(--spacing-sm);
  opacity: 0.8;
}

/* Section Styling */
.knowledge-section {
  margin-bottom: var(--spacing-3xl);
}

.ct100-section {
  margin-bottom: var(--spacing-2xl);
  padding-top: 0;
}

.section-header {
  margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
}

/* AI Summaries Grid */
.ai-summaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

/* Summary Card Styling */
.summary-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.summary-card:hover {
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.15);
}

.summary-card:hover::before {
  opacity: 1;
}

/* Card Header */
.card-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.card-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card Body */
.card-body {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-body p {
  font-size: var(--text-base);
  margin: 0;
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
}

.loading-state,
.error-state {
  text-align: center;
  padding: var(--spacing-3xl);
  color: var(--text-secondary);
}

.error-state {
  color: var(--error);
}

/* Premium Section Styling */
.knowledge-section-premium {
  position: relative;
}

.premium-status {
  font-size: var(--text-sm);
  color: var(--accent);
  margin-bottom: var(--spacing-lg);
  font-weight: var(--font-weight-medium);
}

/* Premium Locked State */
.premium-locked {
  position: relative;
}

.blurred-content {
  filter: blur(8px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.summary-card.locked {
  position: relative;
}

.card-body.blurred {
  position: relative;
}

.card-body.blurred::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 23, 42, 0.8) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
  pointer-events: none;
}

/* Premium Overlay */
.premium-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 500px;
  padding: var(--spacing-xl);
}

.premium-cta {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: var(--spacing-2xl);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lock-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.premium-cta h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.premium-cta p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.premium-unlock-btn {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  padding: var(--spacing-md) var(--spacing-2xl);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.3);
}

.premium-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 255, 0.5);
}

.premium-unlock-btn:active {
  transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: var(--spacing-xl) 0;
}

.modal-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  margin: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

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

.modal-body {
  padding: var(--spacing-xl);
}

.modal-message {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.modal-message strong {
  color: var(--accent);
  font-weight: var(--font-weight-semibold);
}

.unlock-features {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.unlock-features h3 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.unlock-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.unlock-features li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--spacing-xs) 0;
  line-height: 1.5;
}

.modal-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: var(--spacing-md);
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: var(--spacing-md);
}

.modal-footer {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: flex-end;
}

.modal-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: var(--spacing-md) var(--spacing-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
}

.modal-footer .btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--text-primary);
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.3);
}

.modal-footer .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 255, 255, 0.5);
}

.modal-footer .btn-primary:disabled,
.modal-footer .btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */

/* Large screens */
@media (min-width: 1600px) {
  .knowledge-page {
    max-width: 1600px;
  }

  .ai-summaries-grid {
    gap: var(--spacing-2xl);
  }

  .summary-card {
    padding: var(--spacing-2xl);
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .knowledge-page {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .ai-summaries-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .summary-card {
    padding: var(--spacing-lg);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .knowledge-page {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .knowledge-header {
    margin-bottom: var(--spacing-2xl);
  }

  .knowledge-header h1 {
    font-size: var(--text-2xl);
  }

  .knowledge-subtitle {
    font-size: var(--text-base);
  }

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

  .section-header h2 {
    font-size: var(--text-xl);
  }

  .section-subtitle {
    font-size: var(--text-sm);
  }

  .ai-summaries-grid {
    gap: var(--spacing-md);
  }

  .summary-card {
    padding: var(--spacing-md);
  }

  .card-header h3 {
    font-size: var(--text-lg);
  }

  .card-body p {
    font-size: var(--text-sm);
  }
}
/* Bullet List Styling */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  position: relative;
  line-height: 1.6;
}

.bullet-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: var(--font-weight-bold);
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

/* Clickable Card Styling */
.summary-card.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.summary-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
}

.summary-card.clickable:active {
  transform: translateY(0);
}

/* Detail : visibleyling */
.modal-large {
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-detailed {
  max-height: 60vh;
  overflow-y: auto;
}

.detailed-content {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
}

.detailed-content p {
  margin-bottom: var(--spacing-lg);
}

.detailed-content p:last-child {
  margin-bottom: 0;
}

.detailed-content h1,
.detailed-content h2,
.detailed-content h3,
.detailed-content h4 {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.detailed-content h1 {
  font-size: var(--text-2xl);
}

.detailed-content h2 {
  font-size: var(--text-xl);
}

.detailed-content h3 {
  font-size: var(--text-lg);
}

.detailed-content ul,
.detailed-content ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
}

.detailed-content li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.detailed-content strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

.detailed-content em {
  color: var(--accent-primary);
  font-style: italic;
}/* Dynamic Elite Badge Container */
.dynamic-elite-badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.elite-badge-showcase-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Ring System */
.elite-ring-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Ring - Dynamic State-Based */
.elite-ring-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  box-sizing: border-box;
}

/* Ring State: Winning (Green → Gold gradient) */
.ring-state-winning .elite-ring-outer {
  background: linear-gradient(135deg, #22c55e 0%, #fbbf24 100%);
  background-clip: padding-box;
  animation: pulse-winning 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

@keyframes pulse-winning {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

/* Ring State: Neutral (Solid Gold) */
.ring-state-neutral .elite-ring-outer {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  background-clip: padding-box;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Ring State: Losing (Amber → Red gradient with crack effect) */
.ring-state-losing .elite-ring-outer {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  background-clip: padding-box;
  opacity: 0.85;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  animation: crack-glow 2s ease-in-out infinite;
}

@keyframes crack-glow {
  0%, 100% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.65;
    filter: brightness(0.9);
  }
}

/* Inner Ring - Static Gold */
.elite-ring-inner {
  position: absolute;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  border: 3px solid #fbbf24;
  box-sizing: border-box;
  box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.3);
}

/* Avatar */
.elite-avatar {
  position: relative;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

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

/* Verification Marker */
.elite-verified-marker {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
  cursor: help;
  transition: transform 0.2s ease;
}

.elite-verified-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.6);
}

.verified-checkmark {
  color: #000;
  font-size: 20px;
  font-weight: bold;
}

/* Micro-Stats Row */
.elite-micro-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-pnl.positive {
  color: #22c55e;
}

.stat-pnl.negative {
  color: #ef4444;
}

.stat-divider {
  color: rgba(255, 255, 255, 0.3);
}

.stat-rank {
  color: #fbbf24;
}

/* Badge Label */
.elite-badge-label-wrapper {
  text-align: center;
  margin-top: 0.5rem;
}

.elite-badge-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
}

.elite-badge-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 500;
}

/* Hover Effect (Subtle Glow) */
.elite-ring-wrapper:hover .elite-ring-outer {
  filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 640px) {
  .elite-ring-wrapper {
    width: 160px;
    height: 160px;
  }

  .elite-verified-marker {
    width: 32px;
    height: 32px;
    bottom: 6px;
    right: 6px;
  }

  .verified-checkmark {
    font-size: 16px;
  }

  .elite-micro-stats {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    gap: 0.75rem;
  }

  .elite-badge-title {
    font-size: 1.25rem;
  }

  .elite-badge-subtitle {
    font-size: 0.85rem;
  }
}
/* Elite Page Styles */

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

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

.elite-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.elite-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.elite-loading {
  text-align: center;
  padding: var(--spacing-3xl);
  color: var(--text-secondary);
}

.elite-error {
  background: var(--error-background);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.elite-success {
  background: var(--success-background);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
}

/* Pricing Comparison */

.pricing-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.pricing-card {
  background: var(--card-background);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.elite-card {
  border-color: var(--accent-primary);
  border-width: 3px;
  background: linear-gradient(135deg, var(--card-background) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.elite-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: var(--text-primary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.pricing-header {
  text-align: center;
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: var(--spacing-xl);
}

.pricing-tier {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.elite-tier {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-xs);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.price-period {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-xl) 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.feature-item.disabled {
  color: var(--text-tertiary);
  opacity: 0.6;
}

.feature-item.highlighted {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 16px;
}

.feature-item.highlighted .feature-icon {
  color: var(--accent-primary);
}

.pricing-button {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-button.primary {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pricing-button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.pricing-button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pricing-button.secondary {
  background: var(--button-secondary-background);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.pricing-button.secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* FAQ Section */

.elite-faq {
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-3xl);
  border-top: 1px solid var(--border-primary);
}

.elite-faq h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.faq-item {
  background: var(--card-background);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
}

.faq-item h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.faq-item p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive */

@media (max-width: 768px) {
  .elite-container {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .elite-title {
    font-size: var(--text-2xl);
  }

  .elite-subtitle {
    font-size: var(--text-base);
  }

  .pricing-comparison {
    grid-template-columns: 1fr;
  }

  .price-amount {
    font-size: 2rem;
  }

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

/* Elite Member View Styles */

.elite-member-view {
  max-width: 1000px;
}

.elite-badge-showcase {
  text-align: center;
  margin: var(--spacing-3xl) auto;
  padding: var(--spacing-3xl);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.profile-badge-demo {
  display: inline-block;
}

.elite-profile-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.elite-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: white;
  border: 4px solid gold;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  overflow: hidden;
}

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

.elite-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  border: 3px solid var(--background-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-label {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--spacing-md);
}

.elite-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-3xl) 0;
}

.benefit-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  position: relative;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  display: block;
}

.benefit-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.benefit-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.benefit-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: #667eea;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all 0.2s ease;
}

.benefit-link:hover {
  color: #764ba2;
  transform: translateX(4px);
}

.benefit-coming-soon {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-full);
  color: gold;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}

.elite-value-summary {
  text-align: center;
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-3xl);
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-secondary);
}

.elite-value-summary h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.subscription-details {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.subscription-details strong {
  color: gold;
  font-weight: var(--font-weight-bold);
}

.value-breakdown {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.value-breakdown strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

.manage-subscription-button {
  padding: var(--spacing-md) var(--spacing-2xl);
  background: var(--surface-primary);
  border: 2px solid var(--border-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.manage-subscription-button:hover {
  background: var(--surface-secondary);
  border-color: var(--border-secondary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .elite-badge-showcase {
    padding: var(--spacing-xl);
  }

  .elite-profile-avatar {
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
  }

  .elite-verified-badge {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .elite-benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .benefit-icon {
    font-size: 2.5rem;
  }

  .elite-value-summary {
    padding: var(--spacing-xl);
  }
}

/* Payment Modal Styles */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.payment-modal-content {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.payment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
}

.payment-modal-header h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

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

.payment-modal-body {
  padding: var(--spacing-xl);
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.payment-submit-button {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--text-primary);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: var(--spacing-md);
}

.payment-submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.payment-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Admin Page Styles */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.admin-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 1rem;
}

.admin-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #f9fafb;
}

.admin-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

.admin-section {
  background: #1f2937;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #374151;
}

.admin-section h2 {
  margin: 0 0 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f9fafb;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.admin-section-header h2 {
  margin: 0;
}

.admin-date-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-date-input {
  padding: 0.5rem 0.625rem;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #f9fafb;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.admin-date-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.admin-date-separator {
  color: #9ca3af;
  font-size: 0.875rem;
}

.admin-loading {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.admin-error-text {
  color: #ef4444;
  font-size: 0.875rem;
  margin: 0;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.admin-stat-card {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-stat-label {
  font-size: 0.8125rem;
  color: #9ca3af;
  font-weight: 500;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f9fafb;
}

/* Forms */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.admin-input {
  flex: 1;
  padding: 0.625rem 0.75rem;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #f9fafb;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.admin-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.admin-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-input-short {
  max-width: 120px;
}

.admin-select {
  padding: 0.625rem 0.75rem;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #f9fafb;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 160px;
}

.admin-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.admin-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-btn {
  padding: 0.625rem 1.25rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.admin-btn:hover:not(:disabled) {
  background: #2563eb;
}

.admin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-message {
  margin: 0;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.admin-message.success {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid #047857;
}

.admin-message.error {
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-page {
    padding: 1.5rem 1rem;
  }

  .admin-header h1 {
    font-size: 1.5rem;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .admin-stat-value {
    font-size: 1.25rem;
  }

  .admin-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-input-short {
    max-width: none;
  }

  .admin-select {
    min-width: 0;
  }

  .admin-btn {
    width: 100%;
  }
}
/* ============================================
   MAIN CSS IMPORTS
   Colors and shared styles loaded after critical.css
   ============================================ */
/* CoinTracer Design System: Crypto-Native Dark Theme */
:root {
  /* ============================================
     PRIMARY COLOR PALETTE
     Black & dark gray foundation
     Electric blue & purple accents
     ============================================ */
  
  /* BASE COLORS - Surfaces */
  --base-black: #000000;               /* Pure black base */
  --base-dark-gray: #0a0a0a;           /* Very dark gray */
  --base-surface: #101010;             /* Dark surface */
  --base-surface-light: #1a1a1a;       /* Light surface */
  
  /* ACCENT COLORS - Minimal, Intentional */
  --accent-primary: #0099ff;           /* Electric blue (primary actions only) */
  --accent-primary-light: #33b1ff;     /* Bright blue for hover/active */
  --accent-primary-dark: #0066cc;      /* Darker blue for contrast */
  
  --accent-secondary: #9d4edd;         /* Electric purple (rankings) */
  --accent-secondary-light: #c77dff;   /* Bright purple for hover */
  --accent-secondary-dark: #6a0dad;    /* Dark purple for active */
  
  /* STATUS COLORS - Keep Crypto Standard */
  --accent-success: #00d084;           /* Bright green (gains/profit) */
  --accent-success-light: #1aff8f;     /* Lighter green for hover */
  --accent-success-dark: #00a85a;      /* Dark green for active */
  
  --accent-error: #ff3333;             /* Bright red (losses/short) */
  --accent-error-light: #ff6666;       /* Lighter red for hover */
  --accent-error-dark: #cc0000;        /* Dark red for active */
  
  /* Gold accent for rankings/achievements */
  --accent-gold: #ffd700;              /* Gold for ranking badges */
  --accent-gold-light: #ffed4e;        /* Bright gold */
  --accent-gold-dark: #ccaa00;         /* Dark gold */
  
  /* DEPRECATED - Gold removed from accent hierarchy */
  /* (only for backward compatibility in existing components) */
  --accent-ctr: #ffd700;               /* Gold (de-emphasized) */
  --accent-ctr-light: #ffed4e;
  --accent-ctr-dark: #ccaa00;
  
  /* Fallback for secondary elements */
  --accent-warning: #ff9500;           /* Orange warning */
  --accent-info: #0099ff;              /* Info (uses primary blue) */
  
  /* Orange accent for CT tokens and actions */
  --accent-orange: #ff6b35;            /* Bright orange for CT tokens */
  --accent-orange-light: #ff8c5a;      /* Lighter orange for hover */
  --accent-orange-dark: #ff4500;       /* Darker orange for active */
  
  /* ============================================
     BACKGROUND PALETTE
     Pure black backgrounds
     ============================================ */
  --bg-primary: #000000;               /* Page background (pure black) */
  --bg-secondary: #0a0a0a;             /* Secondary surfaces (very dark gray) */
  --bg-tertiary: #141414;              /* Tertiary containers (dark gray) */
  --bg-quaternary: #1a1a1a;            /* Elevated surfaces/cards (darker gray) */
  --bg-hover: #1f1f1f;                 /* Hover state (slightly lighter) */
  --bg-active: #242424;                /* Active/selected state (lighter gray) */
  
  /* Overlay backgrounds */
  --bg-overlay-dark: rgba(0, 0, 0, 0.95);
  --bg-overlay-light: rgba(10, 10, 10, 0.8);
  
  /* ============================================
     TEXT & TYPOGRAPHY COLORS
     High contrast hierarchy
     ============================================ */
  --text-primary: #ffffff;             /* Primary text (pure white) */
  --text-secondary: #b0b8c1;           /* Secondary text (gray-blue) */
  --text-muted: #757d87;               /* Muted text (lower contrast) */
  --text-disabled: #5a6270;            /* Disabled state */
  --text-tertiary: #757d87;            /* Tertiary (alias for muted) */
  
  /* ============================================
     BORDERS & DIVIDERS
     Minimal use - electric blue for accents only
     ============================================ */
  --border-color: #2a2a2a;             /* Standard border (dark gray) */
  --border-light: #333333;             /* Light border (slightly lighter gray) */
  --border-subtle: #1a1a1a;            /* Subtle border (minimal contrast) */
  --border-accent: #0099ff;            /* Accent border (electric blue) */
  --border-accent-secondary: #9d4edd;  /* Secondary accent border (purple) */
  
  /* ============================================
     SHADOWS & DEPTH
     Stronger for contrast on black
     ============================================ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
  
  /* Glow effects - Electric feeling */
  --glow-primary: 0 0 16px rgba(0, 153, 255, 0.25);
  --glow-secondary: 0 0 16px rgba(157, 78, 221, 0.25);
  --glow-success: 0 0 16px rgba(0, 208, 132, 0.25);
  --glow-error: 0 0 16px rgba(255, 51, 51, 0.25);
  
  /* ============================================
     GRADIENTS
     Subtle, minimal use
     ============================================ */
  
  /* Subtle background: pure black */
  --gradient-brand: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* Blue accent (minimal) */
  --gradient-blue: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
  
  /* Purple accent (minimal) */
  --gradient-purple: linear-gradient(135deg, #9d4edd 0%, #6a0dad 100%);
  
  /* Success gradient */
  --gradient-success: linear-gradient(135deg, #00d084 0%, #00a85a 100%);
  
  /* Orange gradient for CT tokens and actions */
  --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  --gradient-orange-hover: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  --accent-orange-shadow: rgba(255, 107, 53, 0.4);
  
  /* Card gradient: pure black with subtle contrast */
  --gradient-card: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.9) 100%);

  /* Elevated card: slightly lighter */
  --gradient-card-elevated: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%);

  /* Subtle header gradient: pure black */
  --gradient-header: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.9));

  /* Pure black background gradient */
  --gradient-bg-electric: linear-gradient(135deg,
    #000000 0%,
    #000000 100%);
  
  /* Common gradient patterns for reuse */
  --gradient-card-standard: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
  --gradient-card-elevated-standard: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  --gradient-page-bg: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  
  /* ============================================
     BORDER RADIUS
     Sharp corners for crypto/technical feel
     ============================================ */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  
  /* ============================================
     SPACING SCALE
     Consistent spacing throughout
     ============================================ */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  /* Font family stack */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  
  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Font sizes for hierarchy */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */
  
  /* Line heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ============================================
     TRANSITIONS & ANIMATIONS
     ============================================ */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-slower: 0.5s ease;
  
  /* ============================================
     BREAKPOINTS
     Mobile-first responsive design
     Use these variables in media queries for consistency
     ============================================ */
  --breakpoint-xs: 480px;    /* Extra small devices (mobile portrait) */
  --breakpoint-sm: 640px;    /* Small devices (mobile landscape) */
  --breakpoint-md: 768px;    /* Medium devices (tablets) */
  --breakpoint-lg: 1024px;   /* Large devices (desktops) */
  --breakpoint-xl: 1280px;   /* Extra large devices */
  --breakpoint-2xl: 1536px;  /* 2X large devices */
  
  /* Mobile-first max-width breakpoints (for max-width queries) */
  --max-xs: 479px;
  --max-sm: 639px;
  --max-md: 767px;
  --max-lg: 1023px;
  --max-xl: 1279px;
  
  /* Tablet breakpoint range */
  --breakpoint-tablet-min: 768px;
  --breakpoint-tablet-max: 1023px;
  
  /* ============================================
     COMPONENT SIZING
     ============================================ */
  --header-height: 60px;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --button-height: 40px;
  --button-height-sm: 32px;
  --button-height-lg: 48px;
  
  /* ============================================
     Z-INDEX SCALE
     Logical stacking context
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 1000;
  --z-modal: 1001;
  --z-tooltip: 1100;
}
/* ============================================
   UTILITY CLASSES
   ============================================ */
/* TEXT COLORS */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-disabled { color: var(--text-disabled); }
/* BACKGROUND COLORS */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-quaternary { background: var(--bg-quaternary); }
/* BORDER COLORS */
.border-primary { border-color: var(--border-color); }
.border-light { border-color: var(--border-light); }
.border-subtle { border-color: var(--border-subtle); }
.border-accent { border-color: var(--border-accent); }
.border-accent-secondary { border-color: var(--border-accent-secondary); }
/* SHADOW UTILITIES */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-primary { box-shadow: var(--shadow-primary); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
/* GLOW UTILITIES */
.glow-primary { box-shadow: var(--glow-primary); }
.glow-secondary { box-shadow: var(--glow-secondary); }
.glow-success { box-shadow: var(--glow-success); }
.glow-error { box-shadow: var(--glow-error); }
/* ACCENT COLORS */
.accent-primary { color: var(--accent-primary); }
.accent-secondary { color: var(--accent-secondary); }
.accent-info { color: var(--accent-info); }
.accent-success { color: var(--accent-success); }
.accent-error { color: var(--accent-error); }
.accent-warning { color: var(--accent-warning); }
/* BACKGROUND ACCENTS */
.bg-accent-primary { background: var(--accent-primary); }
.bg-accent-secondary { background: var(--accent-secondary); }
.bg-accent-success { background: var(--accent-success); }
.bg-accent-error { background: var(--accent-error); }
/* GRADIENT BACKGROUNDS */
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-blue { background: var(--gradient-blue); }
.bg-gradient-purple { background: var(--gradient-purple); }
.bg-gradient-success { background: var(--gradient-success); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-gradient-electric { background: var(--gradient-bg-electric); }
/* ROUNDED CORNERS */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
/* SPACING UTILITIES */
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
/* TYPOGRAPHY */
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-normal { font-weight: var(--font-weight-normal); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
/* TRANSITIONS */
.transition-fast { transition: all var(--transition-fast); }
.transition-base { transition: all var(--transition-base); }
.transition-slow { transition: all var(--transition-slow); }
/* ============================================
   SHARED CSS LIBRARY
   Common patterns used across all pages
   
   USAGE:
   This library provides reusable CSS classes for:
   - Buttons (.btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-orange)
   - Forms (.form, .form-row, .form-input, .form-label, .form-error, .form-actions)
   - Cards (.card, .card-header, .card-title, .card-content, .card-footer)
   - Modals (.modal-overlay, .modal, .modal-header, .modal-title, .modal-close)
   - Badges (.badge, .badge-primary, .badge-success, .badge-danger, .badge-warning, .badge-info)
   - Alerts (.alert, .alert-success, .alert-error, .alert-warning, .alert-info)
   - Layout utilities (.flex, .grid, spacing utilities)
   - Text utilities (.text-center, .text-primary, etc.)
   
   IMPORTANT:
   - This file is imported in index.css, so all classes are available globally
   - Page-specific CSS can extend these classes for custom styling
   - Use these classes directly in your components for consistency
   ============================================ */
/* ============================================
   BUTTONS
   ============================================ */
/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem var(--spacing-xl);
  min-height: 44px; /* WCAG 2.1 AA touch target minimum */
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* Mobile: increase touch target size */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: 0.875rem var(--spacing-xl);
  }
  
  .btn-sm {
    min-height: 44px;
    padding: 0.625rem var(--spacing-lg);
  }
}
/* Button focus states for accessibility */
.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}
/* Primary button */
.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: var(--glow-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary), 0 0 30px rgba(0, 153, 255, 0.4);
}
/* Secondary button */
.btn-secondary {
  background: rgba(0, 153, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(0, 153, 255, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}
/* Success button */
.btn-success {
  background: var(--gradient-success);
  color: #ffffff;
  box-shadow: var(--glow-success);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--glow-success), 0 0 30px rgba(0, 208, 132, 0.4);
}
/* Danger button */
.btn-danger {
  background: var(--gradient-success);
  background: linear-gradient(135deg, var(--accent-error) 0%, var(--accent-error-dark) 100%);
  color: #ffffff;
  box-shadow: var(--glow-error);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--glow-error), 0 0 30px rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, var(--accent-error-dark) 0%, var(--accent-error) 100%);
}
/* Orange/CTA button (CTR token themed) */
.btn-orange {
  background: var(--gradient-ctr);
  color: #ffffff;
  box-shadow: var(--glow-ctr);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-orange:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--glow-ctr), 0 0 30px rgba(0, 153, 255, 0.4);
  background: linear-gradient(135deg, var(--accent-ctr) 0%, var(--accent-ctr-dark) 100%);
}
/* Button sizes */
.btn-sm {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-sm);
  min-height: 44px; /* Ensure touch target meets 44px minimum */
}
/* Mobile: ensure small buttons still meet touch target */
@media (max-width: 768px) {
  .btn-sm {
    min-height: 44px;
    padding: 0.625rem var(--spacing-lg);
  }
}
.btn-lg {
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: var(--text-lg);
}
/* Full width button */
.btn-block {
  width: 100%;
}
/* ============================================
   FORMS
   ============================================ */
/* Form container */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* Form row/group */
.form-row,
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Form labels */
.form-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.form-label .required {
  color: var(--accent-orange);
  margin-left: 0.25rem;
}
/* Form inputs */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 44px; /* WCAG 2.1 AA touch target minimum */
  background: rgba(19, 19, 19, 0.8);
  color: var(--text-primary);
  border: 2px solid rgba(74, 158, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  /* Mobile optimization: prevent zoom on iOS */
  font-size: 16px; /* Prevents zoom on iOS when focusing inputs */
}
.form-input:focus,
.form-input:focus-visible,
.form-textarea:focus,
.form-textarea:focus-visible,
.form-select:focus,
.form-select:focus-visible {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
  outline: none;
}
.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: rgba(239, 68, 68, 0.5);
}
.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
  border-color: var(--accent-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
/* Form error message */
.form-error {
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: rgba(255, 51, 102, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 51, 102, 0.5);
}
.field-error {
  font-size: 0.85rem;
  color: var(--accent-error);
  margin-top: -0.2rem;
}
/* Form actions */
.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.form-actions .btn {
  flex: 0 0 auto;
}
.form-actions.full-width {
  flex-direction: column;
}
.form-actions.full-width .btn {
  width: 100%;
}
/* ============================================
   CARDS
   ============================================ */
/* Base card */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl) var(--spacing-2xl);
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  border-color: var(--accent-primary);
}
/* Card header */
.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
}
.card-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  flex: 1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
/* Card content */
.card-content {
  color: var(--text-primary);
  line-height: var(--line-height-relaxed);
}
/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--border-subtle);
}
/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: var(--spacing-lg);
  animation: fadeIn var(--transition-base);
  margin: 0 !important;
}
/* Mobile: full-screen modals */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
}
.modal {
  width: min(650px, 92vw);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl), var(--glow-primary);
  backdrop-filter: blur(20px);
  margin: auto;
  animation: slideUp var(--transition-slow);
  position: relative;
}
/* Mobile: full-screen bottom sheet style */
@media (max-width: 768px) {
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--spacing-xl);
    margin: 0;
  }
}
.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--spacing-lg);
}
.modal-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-word;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.modal-close {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.modal-close:hover {
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent-orange);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
/* Badge variants */
.badge-primary {
  background: rgba(0, 153, 255, 0.25);
  color: var(--text-primary);
  border: 1px solid rgba(0, 153, 255, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.badge-success {
  background: rgba(0, 208, 132, 0.25);
  color: var(--text-primary);
  border: 1px solid rgba(0, 208, 132, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.badge-danger {
  background: rgba(255, 51, 102, 0.25);
  color: var(--text-primary);
  border: 1px solid rgba(255, 51, 102, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.badge-warning {
  background: rgba(212, 175, 55, 0.25);
  color: var(--bg-primary);
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-weight: 700;
}
.badge-info {
  background: rgba(74, 158, 255, 0.18);
  color: var(--text-primary);
  border: 1px solid rgba(74, 158, 255, 0.35);
}
/* ============================================
   ALERTS
   ============================================ */
.alert {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  animation: slideDown 0.3s ease-out;
}
.alert-success {
  background: rgba(0, 208, 132, 0.25);
  border-color: rgba(0, 208, 132, 0.5);
  color: var(--text-primary);
}
.alert-error {
  background: rgba(255, 51, 102, 0.25);
  border-color: rgba(255, 51, 102, 0.5);
  color: var(--text-primary);
}
.alert-warning {
  background: rgba(234, 88, 12, 0.18);
  border-color: rgba(234, 88, 12, 0.45);
  color: var(--text-primary);
}
.alert-info {
  background: rgba(0, 153, 255, 0.18);
  border-color: rgba(0, 153, 255, 0.4);
  color: var(--text-primary);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============================================
   LAYOUT UTILITIES
   ============================================ */
/* Flex utilities */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-1 {
  gap: var(--spacing-sm);
}
.gap-2 {
  gap: var(--spacing-md);
}
.gap-3 {
  gap: var(--spacing-lg);
}
.gap-4 {
  gap: var(--spacing-xl);
}
/* Grid utilities */
.grid {
  display: grid;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
/* Spacing utilities */
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }
/* Text utilities */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--text-primary);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-muted {
  color: var(--text-muted);
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ============================================
   DIVIDERS
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.divider span {
  padding: 0 1rem;
}
/* ============================================
   LINKS
   ============================================ */
.link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}
.link:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}
.link:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.link-secondary {
  text-align: center;
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.link-secondary a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}
.link-secondary a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}
.link-secondary a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: 1.5rem;
}
.section-header h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}
.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
/* ============================================
   PAGE CONTAINERS
   ============================================ */
.page {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(19, 19, 19, 0.9) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2.5rem);
  box-shadow: var(--shadow-primary);
  border: 1px solid var(--border-color);
  min-height: 400px;
  animation: fadeIn 0.4s ease-out;
  backdrop-filter: blur(10px);
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.page > * {
  max-width: 100%;
  box-sizing: border-box;
}
.page h1 {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.content {
  flex: 1;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.message-box {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(61, 125, 217, 0.06) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 158, 255, 0.2);
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.success {
  color: var(--accent-success);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
}
.error {
  color: var(--accent-error);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
}
/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}
/* Responsive adjustments for page containers */
@media (max-width: 768px) {
  .content {
    padding: 1rem 0.75rem;
  }

  .page {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    min-height: 300px;
  }

  .page h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .page p {
    font-size: 0.95rem;
  }

  .message-box {
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
  }

  .success,
  .error {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .content {
    padding: 0.75rem 0.5rem;
  }

  .page {
    padding: 1.25rem 0.75rem;
    border-radius: 8px;
  }

  .page h1 {
    font-size: 1.5rem;
    word-break: break-word;
  }

  .page p {
    font-size: 0.9rem;
  }
}
/* ============================================
   STAT BOXES
   ============================================ */
.stat-box {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(61, 125, 217, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.15);
  border-color: #0099ff;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-number.positive {
  color: var(--accent-success);
  text-shadow: 0 0 20px rgba(0, 200, 150, 0.3);
}
.stat-number.negative {
  color: var(--accent-error);
  text-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
/* ============================================
   RESPONSIVE UTILITIES
   Mobile-first utility classes for show/hide
   ============================================ */
/* Mobile-only: visible only on mobile */
.mobile-only {
  display: block;
}
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}
/* Desktop-only: hidden on mobile */
.desktop-only {
  display: none;
}
@media (min-width: 769px) {
  .desktop-only {
    display: block;
  }
}
/* Tablet-only: visible only on tablets */
.tablet-only {
  display: none;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .tablet-only {
    display: block;
  }
}
/* Touch target minimum size (WCAG 2.1 AA) */
.touch-target {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .modal {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
  }

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

  .modal-close {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.5rem;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .form-actions .btn {
    width: 100%;
  }
  
  /* Improve form inputs for mobile */
  .form-input,
  .form-select {
    min-height: 48px;
    padding: 0.875rem 1rem;
  }
  
  .form-textarea {
    min-height: 120px;
    padding: 0.875rem 1rem;
  }

  .card {
    padding: 1.25rem;
  }
}
@media (max-width: 480px) {
  .modal {
    width: calc(100vw - 0.5rem);
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .modal-header {
    margin-bottom: 0.75rem;
  }

  .card {
    padding: 1rem;
  }
}
/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */
/* Smooth scrolling on iOS */
.mobile-scroll,
.sidebar,
.modal,
.notifications-dropdown {
  -webkit-overflow-scrolling: touch;
}
/* Hardware acceleration for animations */
.animated-element,
.trader-card,
.btn,
.nav-link,
.modal,
.sidebar {
  transform: translateZ(0);
  will-change: transform;
}
/* Optimize for mobile: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================
   COIN ICON STYLES
   ============================================ */
.coin-icon {
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.token-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  font-size: 1.1em;
}
/* ============================================
   TRADER CARD STYLES (Feed & Ranking)
   ============================================ */
.trader-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 80px 80px minmax(180px, 250px) 1fr 140px;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.trader-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.trader-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}
.trader-card:hover::before {
  transform: scaleY(1);
}
.trader-rank {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  width: 80px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
}
.rank-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}
.rank-silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
  color: #000;
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}
.rank-bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
  color: #FFF;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}
.rank-default {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.trader-avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  background: var(--bg-tertiary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.trader-avatar-container:hover {
  transform: scale(1.05);
  border-color: #0099ff;
}
.trader-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trader-info {
  min-width: 0;
  overflow: hidden;
}
.trader-link {
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.trader-link:hover {
  opacity: 0.9;
}
.trader-link:hover .trader-name {
  color: #0099ff;
}
.trader-name {
  margin: 0 0 0.25rem 0;
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trader-username {
  margin: 0;
  color: var(--accent-primary);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trader-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(74, 158, 255, 0.08);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 8px;
  min-width: 120px;
  flex: 0 1 auto;
}
/* Mobile: reduce padding significantly */
@media (max-width: 768px) {
  .stat-item {
    padding: 0.4rem 0.6rem;
    gap: 0.25rem;
    min-width: 80px;
  }
}
@media (max-width: 480px) {
  .stat-item {
    padding: 0.35rem 0.5rem;
    gap: 0.2rem;
    min-width: 70px;
  }
}
.stat-label {
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: clamp(0.9rem, 2.8vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
}
.stat-value.positive {
  color: #4ade80;
}
.stat-value.negative {
  color: #f87171;
}
.follow-btn,
.follow-button {
  background: linear-gradient(135deg, #0099ff, #0099ff);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
  white-space: nowrap;
  min-width: 140px;
  flex-shrink: 0;
}
.follow-btn.following,
.follow-button.following {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}
.follow-btn:hover,
.follow-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
  transform: translateY(-1px);
}
.follow-btn:active,
.follow-button:active {
  transform: translateY(0);
}
/* ============================================
   MOBILE OPTIMIZATIONS FOR TRADER CARDS
   ============================================ */
@media (max-width: var(--max-md)) {
  .trader-card {
    grid-template-columns: 60px 1fr 100px; /* Rank, content, follow */
    grid-template-rows: auto auto; /* Two rows */
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    align-items: start;
  }

  .trader-card:hover {
    transform: none; /* Disable hover transform on mobile */
  }

  /* Reorder grid areas for mobile */
  .trader-rank {
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    height: 60px;
    font-size: clamp(1rem, 3vw, 1.25rem);
    padding: 0.5rem;
    align-self: center;
  }

  .trader-avatar-container {
    width: 50px;
    height: 50px;
    order: -1; /* Move avatar to start of content row */
  }

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

  .trader-stats {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
    margin-top: 0.5rem;
  }

  .stat-item {
    padding: 0.25rem 0.5rem;
    min-width: auto;
    flex: 1;
  }

  .follow-btn,
  .follow-button {
    grid-column: 3;
    grid-row: 1;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 90px;
    align-self: center;
  }

  /* Stack content vertically on very small screens */
  .trader-card {
    grid-template-columns: 1fr; /* Single column on small screens */
    grid-template-rows: auto;
  }

  .follow-btn,
  .follow-button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: 0.75rem;
  }

  .trader-rank {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    z-index: 1;
  }
}
@media (max-width: var(--max-sm)) {
  .trader-card {
    padding: 0.875rem 1rem;
    gap: 0.5rem;
  }

  .trader-rank {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
    padding: 0.25rem;
  }

  .trader-avatar-container {
    width: 45px;
    height: 45px;
  }

  .trader-name {
    font-size: 1rem;
  }

  .trader-username {
    font-size: 0.8rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .stat-value {
    font-size: 0.9rem;
  }
}
/* ============================================
   STAT CARD (Home Page & General Use)
   ============================================ */
.stat-card {
  background: rgba(74, 158, 255, 0.05);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.2);
}
.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.stat-value-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}
.stat-label-large {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* ============================================
   LARGE BUTTONS (Hero CTAs)
   ============================================ */
.btn-primary-large,
.btn-secondary-large {
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary-large {
  background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.3);
}
.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 158, 255, 0.5);
}
.btn-secondary-large {
  background: rgba(74, 158, 255, 0.1);
  color: #0099ff;
  border: 2px solid rgba(74, 158, 255, 0.3);
}
.btn-secondary-large:hover {
  background: rgba(74, 158, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.5);
  transform: translateY(-2px);
}
/* ============================================
   COMPONENT PATTERNS LIBRARY
   Common component styles extracted for reuse
   ============================================ */
/* ============================================
   HERO CARD PATTERNS
   ============================================ */
.hero-card {
  background: var(--gradient-card-elevated-standard);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
}
.hero-card.hero-positive {
  border-color: rgba(0, 255, 65, 0.3);
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(0, 153, 255, 0.08) 100%);
  box-shadow: 0 0 60px rgba(0, 255, 65, 0.2), inset 0 0 40px rgba(0, 255, 65, 0.1);
}
.hero-card.hero-negative {
  border-color: rgba(255, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.05) 0%, rgba(153, 76, 221, 0.08) 100%);
  box-shadow: 0 0 60px rgba(255, 68, 68, 0.15), inset 0 0 40px rgba(255, 68, 68, 0.08);
}
.hero-card.hero-positive::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.15) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  animation: glow-pulse-positive 3s ease-in-out infinite;
}
.hero-card.hero-negative::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 68, 68, 0.12) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  animation: glow-pulse-negative 3s ease-in-out infinite;
}
@keyframes glow-pulse-positive {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes glow-pulse-negative {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
/* ============================================
   STAT CARD PATTERNS
   ============================================ */
.stat-card-standard {
  background: var(--gradient-card-standard);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}
.stat-card-standard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  border-color: var(--accent-primary);
}
.stat-card-elevated {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-base);
}
.stat-card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  border-color: var(--accent-primary);
}
/* ============================================
   CONTAINER PATTERNS
   ============================================ */
.container-standard {
  background: var(--gradient-card-standard);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-primary);
}
.container-elevated {
  background: var(--gradient-card-elevated-standard);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}
.container-page {
  background: var(--gradient-page-bg);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2.5rem);
  box-shadow: var(--shadow-primary);
  border: 1px solid var(--border-color);
  min-height: 400px;
  animation: fadeIn 0.4s ease-out;
  backdrop-filter: blur(10px);
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============================================
   COMMON GRADIENT BACKGROUNDS
   ============================================ */
.bg-gradient-card-standard {
  background: var(--gradient-card-standard);
}
.bg-gradient-card-elevated {
  background: var(--gradient-card-elevated-standard);
}
.bg-gradient-page {
  background: var(--gradient-page-bg);
}
/* ============================================
   COMMON BORDER PATTERNS
   ============================================ */
.border-accent-subtle {
  border: 1px solid var(--border-accent);
  opacity: 0.2;
}
.border-accent-medium {
  border: 2px solid var(--border-accent);
  opacity: 0.3;
}
.border-accent-strong {
  border: 2px solid var(--border-accent);
  opacity: 0.5;
}
/* ============================================
   COMMON GLOW PATTERNS
   ============================================ */
.glow-accent-subtle {
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.15);
}
.glow-accent-medium {
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.25);
}
.glow-accent-strong {
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.35);
}
.glow-success-subtle {
  box-shadow: 0 0 20px rgba(0, 208, 132, 0.15);
}
.glow-error-subtle {
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.15);
}
/* ============================================
   LAYOUT PATTERNS LIBRARY
   Common layout styles extracted for reuse
   ============================================ */
/* ============================================
   PAGE LAYOUTS
   ============================================ */
.page-layout-standard {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: var(--gradient-page-bg);
  min-height: 100vh;
}
.page-layout-compact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background: var(--gradient-page-bg);
  min-height: 100vh;
}
/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-layout-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}
.grid-layout-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.grid-layout-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}
.grid-layout-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}
/* ============================================
   FLEX LAYOUTS
   ============================================ */
.flex-layout-row {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  align-items: center;
}
.flex-layout-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.flex-layout-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}
.flex-layout-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}
/* ============================================
   RESPONSIVE CONTAINERS
   ============================================ */
.container-responsive {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem);
  box-sizing: border-box;
}
.container-responsive-sm {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.75rem, 1.5vw, 1.5rem);
  box-sizing: border-box;
}
.container-responsive-lg {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-sizing: border-box;
}
/* ============================================
   SECTION LAYOUTS
   ============================================ */
.section-layout {
  margin-bottom: var(--spacing-2xl);
}
.section-layout-compact {
  margin-bottom: var(--spacing-xl);
}
.section-header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}
.section-content-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}
/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
  .grid-layout-2,
  .grid-layout-3,
  .grid-layout-4 {
    grid-template-columns: 1fr;
  }

  .flex-layout-row {
    flex-direction: column;
  }

  .section-header-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-layout-3,
  .grid-layout-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ============================================
   FOCUS STYLES - Enhanced for accessibility
   ============================================ */
/* Improve focus visibility for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* ============================================
   CODE BLOCK STYLING
   ============================================ */
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
  background-color: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}
/* ============================================
   SCROLLBAR STYLING - Enhanced for dark theme
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}
/* ============================================
   LOADING STATE OVERRIDES
   ============================================ */
.loading {
  background: var(--bg-primary);
  color: var(--text-primary);
}
/* Suppress React DevTools source map errors */
[data-reactroot] {
  /* Prevent layout shift during hydration */
  contain: layout style;
}
