/* ==========================================================================
   Andhra Anime Club - Premium Mobile App UI Website Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Variables & Base Settings
   -------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Colors - Crimson Theme (Dark Mode - Default) */
  --bg-global-gradient: linear-gradient(135deg, #180105 0%, #080002 100%);
  --bg-app: linear-gradient(180deg, #a0022d 0%, #4a0012 100%);
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(0, 0, 0, 0.22);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-white: #ffffff;
  --text-button-primary: #120104; /* Dark text for white/light primary buttons */
  
  --primary: #ffffff; /* Pure White active states */
  --primary-hover: #f3f4f6;
  --primary-light: rgba(255, 255, 255, 0.12);
  
  --accent-lime: #fbbf24; /* Vibrant Gold */
  --accent-lime-light: rgba(251, 191, 36, 0.15);
  --accent-orange: #f59e0b;
  --accent-purple: #c084fc;
  --accent-blue: #60a5fa;
  
  --border-color: rgba(255, 255, 255, 0.15);
  --bg-circle-notch: #4a0012; /* Dark crimson notches */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);

  /* Animation Durations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Phone Mockup Frame dimensions */
  --phone-width: 412px;
  --phone-height: 892px;
  
  /* Status and Safe Area heights */
  --status-bar-height: 0px;
  --home-indicator-height: 34px;
}

/* Light Theme Mode overrides (toggled via settings) */
.light-theme-mode {
  --bg-global-gradient: linear-gradient(135deg, #fcedf0 0%, #f4dcd3 100%);
  --bg-app: #ffffff; /* Clean white background */
  --bg-card: #fdf5f6; /* Soft light card */
  --bg-input: #f7ebed;
  --text-primary: #211214; /* Dark red/charcoal text */
  --text-secondary: #675659;
  --text-white: #ffffff;
  --text-button-primary: #ffffff; /* White text on crimson buttons */
  
  --primary: #a0022d; /* Crimson red as primary accent in light mode */
  --primary-hover: #7f0122;
  --primary-light: #fdf2f3;
  
  --accent-lime: #a0022d;
  --accent-lime-light: #fdf2f3;
  --accent-orange: #d97706;
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  
  --border-color: #e8dcd2;
  --bg-circle-notch: #ffffff; /* White notches to blend with white screen */
  --shadow-sm: 0 2px 8px rgba(160, 2, 45, 0.04);
  --shadow-md: 0 8px 24px rgba(160, 2, 45, 0.06);
  --shadow-lg: 0 16px 40px rgba(160, 2, 45, 0.08);
}

/* Reset and Core Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-primary);
  background: var(--bg-global-gradient);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  transition: background var(--transition-slow);
}

/* On mobile view, keep viewport locked to act as a native application */
@media (max-width: 768px) {
  html, body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   2. Desktop Background Elements
   -------------------------------------------------------------------------- */
.bg-decor-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.5;
  transition: opacity var(--transition-slow);
}
.circle-1 {
  width: 400px;
  height: 400px;
  background: rgba(160, 2, 45, 0.15);
  top: 10%;
  left: 15%;
}
.circle-2 {
  width: 500px;
  height: 500px;
  background: rgba(245, 158, 11, 0.12);
  bottom: 10%;
  right: 15%;
}
.battery-save-mode .bg-decor-circle {
  opacity: 0.1;
}

/* --------------------------------------------------------------------------
   3. Device Mockup Wrapper & Bezel
   -------------------------------------------------------------------------- */
.app-device-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 40px 0;
}



.device-bezel {
  position: relative;
  background: #1c1c1c;
  border-radius: 52px;
  padding: 12px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.35),
    inset 0 4px 20px rgba(255, 255, 255, 0.15),
    inset 0 -4px 20px rgba(0, 0, 0, 0.8);
  transition: all var(--transition-slow);
}

/* Safe Area Notch */
.device-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #000000;
  border-radius: 18px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}
.notch-speaker {
  width: 40px;
  height: 4px;
  background: #1f1f1f;
  border-radius: 2px;
}
.notch-camera {
  width: 8px;
  height: 8px;
  background: #0d1b2a;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Phone screen wrapper */
.app-container {
  position: relative;
  width: var(--phone-width);
  height: var(--phone-height);
  background: var(--bg-app);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: background var(--transition-slow);
}

/* --------------------------------------------------------------------------
   4. Status Bar & Home Indicator Layout
   -------------------------------------------------------------------------- */
.app-status-bar {
  height: var(--status-bar-height);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 99;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.status-notch-space {
  width: 120px;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-icon {
  opacity: 0.9;
}

/* Home Indicator Bar (iOS Swipe indicator at bottom) */
.app-home-indicator {
  height: var(--home-indicator-height);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent; /* Make transparent to prevent overlay darkening */
  z-index: 99;
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
  transition: background var(--transition-slow);
}
.indicator-bar {
  width: 134px;
  height: 5px;
  background: var(--text-primary);
  opacity: 0.3;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   5. Main Viewport & Navigation
   -------------------------------------------------------------------------- */
.app-content-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-top: var(--status-bar-height);
  margin-bottom: 0; /* Let content stretch to the bottom edge */
  transition: margin var(--transition-normal);
}

/* Safe Area Mode active overrides */
.safe-area-active .app-content-wrapper {
  margin-top: calc(var(--status-bar-height) + 12px);
  margin-bottom: 0; /* Keep edge-to-edge layout at bottom */
}
.safe-area-active .app-home-indicator {
  height: calc(var(--home-indicator-height) + 8px);
}

/* Screens Base Styling */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: clip;
  padding: 16px 20px 0;
  display: none;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars but keep scrolling functionality */
.app-screen::-webkit-scrollbar {
  display: none;
}
.app-screen {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Screen transition keyframes */
.app-screen.active {
  display: flex;
  animation: screenSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Screen Spacer at the bottom to avoid nav overlapping content */
.screen-spacer {
  height: 100px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. UI Elements & Shared Components
   -------------------------------------------------------------------------- */

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 14px 24px;
}

.button-primary {
  background: var(--primary);
  color: var(--text-button-primary);
}
.button-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.button-primary:active {
  transform: translateY(1px);
}

.button-large {
  width: 100%;
  padding: 18px 24px;
  font-size: 1.05rem;
  border-radius: 18px;
}

.compact-btn {
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
}

/* Icon Buttons */
.icon-button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}
.icon-button:hover {
  background: var(--border-color);
  transform: scale(1.03);
}

/* Section Header */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
  flex-shrink: 0;
}
.screen-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
}
.screen-header-title.text-left {
  text-align: left;
  font-size: 1.6rem;
  padding: 8px 0;
}
.back-button {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}
.back-button:hover {
  background: var(--bg-card);
}
.header-placeholder-btn {
  width: 36px;
}

/* --------------------------------------------------------------------------
   7. Home Screen Components
   -------------------------------------------------------------------------- */

/* Welcome header */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  padding: 1px;
  background: #a0022d;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.profile-avatar:hover {
  transform: scale(1.05);
}
.user-info-text {
  display: flex;
  flex-direction: column;
}
.user-greeting {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.user-subtitle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.notification-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent-lime);
  border-radius: 50%;
  border: 2px solid var(--bg-app);
}

/* Search Bar */
.search-container {
  margin-bottom: 16px;
}
.search-bar {
  display: flex;
  align-items: center;
  background: #ffffff; /* Solid White */
  border-radius: 16px;
  padding: 12px 16px;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
}
.search-icon {
  color: rgba(0, 0, 0, 0.55);
}
.search-bar input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: #120104; /* High contrast dark text */
  width: 100%;
}
.search-bar input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  opacity: 1;
}

/* Chips Category Selector */
.category-scroll-container {
  margin: 0 -20px 18px -20px;
  padding: 0 20px;
  overflow-x: auto;
}
.category-scroll-container::-webkit-scrollbar {
  display: none;
}
.category-scroll {
  display: flex;
  gap: 8px;
  width: max-content;
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.chip.active {
  background: var(--primary);
  color: var(--text-button-primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* ============================================
   Hero Slider Carousel
   ============================================ */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  min-height: 190px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #1a0008;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  cursor: pointer;
  flex-shrink: 0;
}

/* Slide track: all slides inline, transforms to slide */
.hero-slide-track {
  display: flex;
  width: 100%;
  height: 190px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Each slide */
.hero-slide {
  min-width: 100%;
  width: 100%;
  height: 190px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-slide .hero-bg-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-slide.active .hero-bg-img {
  transform: scale(1.04);
}

/* Dark gradient overlay */
.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 0, 2, 0.92) 0%,
    rgba(5, 0, 2, 0.35) 55%,
    rgba(5, 0, 2, 0.0) 100%
  );
  pointer-events: none;
}

/* Slide text content */
.hero-slide .hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  /* Slide-in text animation */
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.45s ease 0.15s, opacity 0.45s ease 0.15s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-tag {
  background: #fbbf24;
  color: #120104;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  width: fit-content;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-meta-row {
  display: flex;
  gap: 14px;
  font-size: 0.72rem;
  opacity: 0.9;
  margin-top: 1px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Arrow navigation buttons */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.hero-slider-wrapper:hover .hero-arrow {
  opacity: 1;
  pointer-events: auto;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev { left: 12px; }
.hero-arrow-next { right: 12px; }

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-dot.active {
  background: #fbbf24;
  width: 18px;
  border-radius: 3px;
}


/* Upcoming Event Countdown Widget */
.countdown-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #4ade80; /* Vibrant Live Green */
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #4ade80; /* Vibrant Live Green */
  border-radius: 50%;
  animation: pulseIndicator 1.5s infinite;
}
@keyframes pulseIndicator {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.countdown-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
.timer-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.timer-value {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.timer-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}
.timer-divider {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-secondary);
  opacity: 0.5;
  padding-bottom: 14px;
}

/* Statistics Grid Section */
.stats-section {
  margin-bottom: 22px;
}
.section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Colors for stats icons in crimson theme - Unified to AAC Brand Red/White */
.stat-icon-wrapper.orange,
.stat-icon-wrapper.green,
.stat-icon-wrapper.purple,
.stat-icon-wrapper.blue { 
  background: rgba(160, 2, 45, 0.2); 
  color: #ffffff; 
  border: 1px solid rgba(160, 2, 45, 0.35);
}

/* Dark mode overrides for icons */
.battery-save-mode .stat-icon-wrapper.orange,
.battery-save-mode .stat-icon-wrapper.green,
.battery-save-mode .stat-icon-wrapper.purple,
.battery-save-mode .stat-icon-wrapper.blue { 
  background: #1a0205; 
  color: #ffffff; 
  border: 1px solid rgba(160, 2, 45, 0.2);
}

.stat-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stat-count {
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap; /* No wrapping as requested */
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-label {
  font-size: clamp(0.65rem, 2.5vw, 0.75rem);
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap; /* No wrapping as requested */
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Join Club Call-out Box */
.join-callout-card {
  background: var(--primary-light);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.callout-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.join-callout-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}
.join-callout-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.battery-save-mode .join-callout-card h4 {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   8. Club Detail Screen Components
   -------------------------------------------------------------------------- */
.detail-illustration-container {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-top: -16px;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.illustration-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(18, 1, 4, 0) 65%, rgba(18, 1, 4, 0.98) 100%);
  transition: background var(--transition-slow);
}
.club-avatar-overlap {
  position: absolute;
  bottom: -30px;
  left: 20px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #a0022d;
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 10;
  transition: background var(--transition-slow);
}
.overlap-logo {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.club-details-content {
  display: flex;
  flex-direction: column;
}
.club-main-title {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.club-followers-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 20px;
}

.join-action-area {
  margin-bottom: 24px;
}
.join-club-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.join-club-btn.joined {
  background: var(--accent-lime);
  color: var(--text-primary);
}

.club-description-box {
  margin-bottom: 24px;
}
.club-description-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.club-description-box p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.tags-section h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   9. Saved Screen & Seat Selector Components
   -------------------------------------------------------------------------- */
.booking-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.theater-screen-container {
  width: 80%;
  margin-bottom: 24px;
  text-align: center;
}
.theater-screen {
  background: var(--border-color);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 0;
  border-radius: 4px;
  transform: perspective(40px) rotateX(-5deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.theater-screen-glow {
  width: 60%;
  height: 20px;
  background: linear-gradient(180deg, rgba(160, 2, 45, 0.15) 0%, rgba(160, 2, 45, 0) 100%);
  margin: 0 auto;
  filter: blur(4px);
}
.battery-save-mode .theater-screen {
  background: #222;
  color: #888;
}

.seats-layout {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 320px;
  padding: 10px;
}
.seat {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.seat.available:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}
.seat.selected {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}
.seat.reserved {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
}
.battery-save-mode .seat.reserved {
  background: #1c1d1a;
  border-color: #2b2c28;
  color: #4b4c48;
}

.seats-legend {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 300px;
  margin-bottom: 22px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-color);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}
.legend-dot.seat-available {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid var(--border-color);
}
.legend-dot.seat-selected {
  background: var(--accent-lime);
}
.legend-dot.seat-reserved {
  background: #cbd5e1;
}
.legend-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.booking-summary-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.summary-value {
  color: var(--text-primary);
  font-weight: 700;
}
.summary-value.highlight {
  color: var(--primary);
}
.summary-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 4px 0;
}
.total-row {
  font-size: 1rem;
  color: var(--text-primary);
}
.total-row .summary-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* Confetti overlay */
#canvas-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Replica Slide to Checkout Swipe Component */
.slide-checkout-wrapper {
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}
.slide-track {
  position: relative;
  width: 100%;
  height: 56px;
  background: var(--primary);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
}
.slide-button {
  position: absolute;
  left: 4px;
  width: 48px;
  height: 48px;
  background: var(--accent-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: grab;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}
.slide-button:active {
  cursor: grabbing;
}
.slide-text {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-white);
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Settings Screen Components
   -------------------------------------------------------------------------- */
.settings-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.settings-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.settings-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.settings-profile-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.settings-profile-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-group-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-left: 4px;
}
.settings-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.settings-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.settings-item-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.clickable-settings-item {
  cursor: pointer;
  transition: all var(--transition-fast);
}
.clickable-settings-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.arrow-right-icon {
  color: var(--text-secondary);
}
.text-danger {
  color: #dc2626 !important;
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .3s;
  border-radius: 34px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.settings-footer-about {
  text-align: center;
  padding: 16px 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.footer-link:hover {
  text-decoration: underline;
}
.footer-dot {
  opacity: 0.5;
}




/* --------------------------------------------------------------------------
   11. Bottom Tab Navigation Bar
   -------------------------------------------------------------------------- */
.app-bottom-nav {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  width: auto;
  height: 70px;
  background: linear-gradient(180deg, #24020a 0%, #0f0003 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  z-index: 98;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-slow);
}
.safe-area-active .app-bottom-nav {
  bottom: 30px;
}

/* Each nav tab button */
.nav-item {
  position: relative;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  flex: 1;
  height: 54px;
  border-radius: 18px;
  gap: 3px;
  transition: color 0.25s ease, transform 0.2s ease;
  padding: 0 4px;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-icon {
  opacity: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.nav-label {
  font-family: var(--font-primary);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: font-size 0.2s ease;
}

/* ── Active state: Premium White active tab ── */
.nav-item.active {
  color: #ffffff;
}

.nav-item.active .nav-icon {
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 3px 6px rgba(160, 2, 45, 0.65)); /* AAC Brand Red Glow */
}

.nav-item.active .nav-label {
  font-weight: 800;
  font-size: 0.64rem;
}



/* --------------------------------------------------------------------------
   12. Responsive Behavior & Device Scaling
   -------------------------------------------------------------------------- */

/* Responsive breakpoints: mobile vs desktop viewports */
@media (max-width: 767px) {
  html, body {
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
  .app-device-wrapper {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: block !important;
  }
  .device-bezel {
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    border: none !important;
  }
  .device-notch {
    display: none !important;
  }
  .app-container {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  .app-status-bar {
    display: none !important;
  }
  .app-content-wrapper {
    margin-top: 0 !important;
    height: 100% !important;
    width: 100% !important;
  }
  .safe-area-active .app-content-wrapper {
    margin-top: 0 !important;
  }
  .app-screen {
    padding-top: calc(34px + env(safe-area-inset-top, 0px)) !important;
    height: 100% !important;
    overflow-y: auto !important;
  }
  .app-bottom-nav {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    z-index: 1000 !important;
  }
  .safe-area-active .app-bottom-nav {
    bottom: 12px !important;
  }
}

/* ==========================================================================
   12. Event Detail and Horizontal Popular Card Styles
   ========================================================================== */

/* Popular Events Grid */
.popular-events-section {
  margin: 10px 0 22px 0;
}
.portrait-cards-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 0 14px 0;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: none; /* Firefox */
}
.portrait-cards-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.event-portrait-item {
  flex: 0 0 142px;
  width: 142px; /* Force strict width to match card */
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform var(--transition-normal);
  min-width: 0; /* Enable ellipsis inside flex items */
}
.event-portrait-item:hover {
  transform: translateY(-4px);
}
.event-portrait-card {
  position: relative;
  width: 142px;
  height: 213px; /* Precise 2:3 aspect ratio */
  border-radius: 22px; /* Smooth rounded corners matching Naruto card */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a0008;
  transition: box-shadow var(--transition-normal);
}
.event-portrait-item:hover .event-portrait-card {
  box-shadow: 0 12px 32px rgba(160, 2, 45, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}
.card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.event-portrait-item:hover .card-bg-img {
  transform: scale(1.05);
}
.card-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}
.card-info-below {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 2px 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.card-title-below {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.card-meta-row-below {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.card-type-below,
.card-year-below {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}



/* Floating back button on Event Details */
.floating-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.floating-back-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.05);
}
.floating-back-btn:active {
  transform: scale(0.95);
}

/* Event Meta Row (Calendar & Location) */
.detail-event-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 14px 16px;
}
.meta-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.meta-icon.calendar-red {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.meta-icon.location-red {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
}
.meta-icon.language-blue {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}
.meta-icon.rating-orange {
  background: rgba(251, 146, 60, 0.12);
  color: #fed7aa;
}
.meta-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Organizer Profile Card */
.organizer-profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 12px 16px;
  margin: 16px 0;
}
.org-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.org-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  object-fit: cover;
}
.org-details {
  display: flex;
  flex-direction: column;
}
.org-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
}
.org-followers {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.follow-btn {
  background: var(--primary-light);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.follow-btn:hover {
  background: var(--border-color);
}
.follow-btn.following {
  background: var(--primary);
  color: var(--text-button-primary);
  border-color: var(--primary);
}

/* Adjustments for light theme mode details */
.light-theme-mode .meta-icon.calendar-red {
  background: rgba(160, 2, 45, 0.08);
  color: #a0022d;
}
.light-theme-mode .meta-icon.location-red {
  background: rgba(160, 2, 45, 0.08);
  color: #a0022d;
}

/* ==========================================================================
   13. Light Theme Layout Overrides
   ========================================================================== */

/* Light Theme Navigation overrides */
.light-theme-mode .app-bottom-nav {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(160, 2, 45, 0.12);
  box-shadow: 0 12px 32px rgba(160, 2, 45, 0.08);
}
.light-theme-mode .nav-item {
  color: #675659;
}
.light-theme-mode .nav-item.active {
  color: var(--primary); /* Crimson active */
}
.light-theme-mode .app-home-indicator {
  background: transparent; /* Maintain transparency in light theme */
}

/* Light Theme Stats Icon colors */
.light-theme-mode .stat-icon-wrapper.orange { background: #fffbeb; color: #d97706; }
.light-theme-mode .stat-icon-wrapper.green { background: #ffe4e6; color: #e11d48; }
.light-theme-mode .stat-icon-wrapper.purple { background: #f3e8ff; color: #7c3aed; }
.light-theme-mode .stat-icon-wrapper.blue { background: #dbeafe; color: #2563eb; }

/* Dark mode overrides for icons - Disable in light mode, or let them fall back */
.light-theme-mode .settings-profile-card,
.light-theme-mode .settings-item {
  background: #fdf5f6;
  border-color: #e8dcd2;
}
.light-theme-mode .settings-avatar,
.light-theme-mode .profile-avatar,
.light-theme-mode .overlap-logo {
  border-color: var(--primary); /* Red border instead of gold */
}

/* Chips inactive text */
.light-theme-mode .chip {
  background: #fdf5f6;
  color: #675659;
  border-color: #e8dcd2;
}
.light-theme-mode .chip.active {
  background: var(--primary);
  color: var(--text-button-primary); /* White text on red */
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(160, 2, 45, 0.15);
}

/* Switch styling in light mode */
.light-theme-mode .toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

/* Theater screen details in light mode */
.light-theme-mode .theater-screen {
  background: #f1e4e6;
  color: #675659;
}
.light-theme-mode .theater-screen-glow {
  background: linear-gradient(180deg, rgba(160, 2, 45, 0.08) 0%, rgba(160, 2, 45, 0) 100%);
}
.light-theme-mode .seat.reserved {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
}

/* Join Callout */
.light-theme-mode .join-callout-card {
  background: var(--primary-light);
}
.light-theme-mode .join-callout-card h4 {
  color: var(--primary);
}
.light-theme-mode .join-callout-card p {
  color: var(--text-secondary);
}

/* Tickets Empty State */
.tickets-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.light-theme-mode .tickets-empty-state h3 {
  color: #120104 !important;
}
.light-theme-mode .tickets-empty-state p {
  color: #675659 !important;
}

/* --------------------------------------------------------------------------
   Desktop Site Footer (Matching TADB screenshot)
   -------------------------------------------------------------------------- */
.desktop-site-footer {
  width: 100%;
  background: #040405; /* Deep matte black background */
  border-top: 1.5px solid rgba(255, 255, 255, 0.04);
  padding: 56px 40px 36px 40px;
  box-sizing: border-box;
  z-index: 100;
  position: relative;
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-brand-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
  font-weight: 500;
}

.footer-links-columns {
  display: contents; /* Grid columns flow directly inside container grid */
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.footer-column h4 {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1.2px;
  margin: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column ul li a {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid rgba(255, 255, 255, 0.04);
  padding-top: 32px;
}

.copyright-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-circle-btn:hover {
  background: #a0022d; /* AAC Crimson hover */
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(160, 2, 45, 0.35);
}

/* Light mode overrides for Desktop Footer */
.light-theme-mode .desktop-site-footer {
  background: #ffffff;
  border-top: 1.5px solid rgba(0, 0, 0, 0.06);
}
.light-theme-mode .footer-column h4 {
  color: #211214;
}
.light-theme-mode .footer-column ul li a {
  color: rgba(33, 18, 20, 0.6);
}
.light-theme-mode .footer-column ul li a:hover {
  color: #a0022d;
}
.light-theme-mode .footer-brand-desc {
  color: rgba(33, 18, 20, 0.6);
}
.light-theme-mode .copyright-text {
  color: rgba(33, 18, 20, 0.45);
}
.light-theme-mode .footer-bottom-bar {
  border-top: 1.5px solid rgba(0, 0, 0, 0.06);
}
.light-theme-mode .social-circle-btn {
  background: rgba(160, 2, 45, 0.05);
  color: #a0022d;
}
.light-theme-mode .social-circle-btn:hover {
  background: #a0022d;
  color: #ffffff;
}

/* Hide on mobile screens completely to keep simulator clean */
@media (max-width: 768px) {
  .desktop-site-footer {
    display: none !important;
  }
}

/* My Profile & Edit Profile custom layouts matching reference */
.profile-menu-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease, padding-left 0.2s ease;
  text-decoration: none;
  color: #ffffff;
}
.profile-menu-item:last-child {
  border-bottom: none;
}
.profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 24px;
}
.profile-menu-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.9);
}
.profile-menu-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24; /* gold accent */
  flex-shrink: 0;
}
.profile-menu-item-chevron {
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease;
}
.profile-menu-item:hover .profile-menu-item-chevron {
  color: #fbbf24;
  transform: translateX(3px);
}
.profile-menu-item.logout-item .profile-menu-item-left {
  color: #f87171;
}
.profile-menu-item.logout-item .profile-menu-item-icon {
  color: #ef4444;
}

/* Edit Profile Input Field Styles */
.edit-profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.edit-profile-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  margin-left: 4px;
}
.edit-profile-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
}
.edit-profile-input:focus {
  border-color: #fbbf24;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* ==========================================================================
   11. Interactive Live Member Map & Dashboard Styles
   ========================================================================== */
#screen-map {
  animation: fadeIn 0.4s ease-out;
}

/* Map District Node styling (glassmorphic cyber HUD style) */
.map-district-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(26, 2, 7, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 5;
}

.map-district-node:hover {
  transform: translate(-50%, -50%) scale(1.4);
  background: #fbbf24;
  border-color: #ffffff;
  box-shadow: 0 0 15px #fbbf24, 0 0 30px rgba(251, 191, 36, 0.5);
  z-index: 15;
}

/* Inner indicator dot */
.map-district-node::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  transition: background 0.2s ease;
}

.map-district-node:hover::after {
  background: #140206;
}

/* Heatmap density glow states */
.map-node-glow-tier1 {
  border-color: #34d399; /* Green/Mint */
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}
.map-node-glow-tier1::after {
  background: #34d399;
}

.map-node-glow-tier2 {
  border-color: #60a5fa; /* Blue */
  box-shadow: 0 0 9px rgba(96, 165, 250, 0.55);
}
.map-node-glow-tier2::after {
  background: #60a5fa;
}

.map-node-glow-tier3 {
  border-color: #fbbf24; /* Amber/Gold */
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.7);
  animation: mapNodePulseGold 2.5s infinite ease-in-out;
}
.map-node-glow-tier3::after {
  background: #fbbf24;
}

.map-node-glow-tier4 {
  border-color: #ef4444; /* Crimson Red */
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.85);
  animation: mapNodePulseRed 2s infinite ease-in-out;
}
.map-node-glow-tier4::after {
  background: #ef4444;
}

/* Micro label for district code names on map (visible on zoom) */
.map-district-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.45rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(14, 2, 5, 0.6);
  padding: 1px 3px;
  border-radius: 3px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.map-district-node:hover .map-district-tag {
  color: #fbbf24;
  opacity: 1;
}

/* Keyframe animations */
@keyframes mapPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

@keyframes mapNodePulseGold {
  0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 18px rgba(251, 191, 36, 0.8); }
}

@keyframes mapNodePulseRed {
  0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.95); }
}

/* Top Rankings row card design */
.map-ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.68rem;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  transition: all 0.2s ease;
}

.map-ranking-row:hover {
  background: rgba(251, 191, 36, 0.05);
  border-color: rgba(251, 191, 36, 0.2);
}

.map-ranking-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 0.55rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
}

.map-ranking-row:nth-child(1) .map-ranking-badge {
  background: #fbbf24;
  color: #140206;
}
.map-ranking-row:nth-child(2) .map-ranking-badge {
  background: #d1d5db;
  color: #140206;
}
.map-ranking-row:nth-child(3) .map-ranking-badge {
  background: #c2410c;
  color: #ffffff;
}

/* Custom Leaflet Reskin Overrides */
.leaflet-container {
  background: transparent !important;
  font-family: 'Montserrat', sans-serif !important;
}
.leaflet-tile {
  filter: sepia(45%) contrast(105%) brightness(95%) saturate(85%) hue-rotate(-15deg) !important;
}
.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  border-radius: 14px !important;
  color: #333333 !important;
  font-size: 0.7rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  padding: 8px !important;
  border: none !important;
}
.leaflet-popup-content {
  margin: 6px 8px !important;
  line-height: 1.45 !important;
}
.leaflet-popup-tip {
  background: #ffffff !important;
  box-shadow: none !important;
}
.district-label-tooltip {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  padding: 1px 4px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.48rem !important;
  text-align: center;
  color: #1e293b !important;
}
.leaflet-tooltip-top:before, .leaflet-tooltip-bottom:before, .leaflet-tooltip-left:before, .leaflet-tooltip-right:before {
  border: none !important;
}

/* Screen Map Overlap Fix & Flex Governess */
#screen-map {
  display: none !important;
  flex-direction: column !important;
}
#screen-map.active {
  display: flex !important;
}


