/**
 * global.css
 * Global styles for Hobby Farm Gamification Platform
 * Emulated Tailwind CSS + Custom Gamification Styles
 */

/* ============================================ */
/* CSS RESET & BASE STYLES */
/* ============================================ */

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

:root {
  /* Color Palette */
  --color-primary: #667eea;
  --color-primary-dark: #764ba2;
  --color-secondary: #f093fb;
  --color-secondary-dark: #f5576c;
  --color-success: #4ade80;
  --color-success-dark: #22c55e;
  --color-warning: #fbbf24;
  --color-warning-dark: #f59e0b;
  --color-error: #ef4444;
  --color-error-dark: #dc2626;
  --color-kakuma: #f59e0b;
  
  /* Grays */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Courier New", monospace;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-toast: 1060;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-gray-900);
  background: var(--color-gray-50);
}

/* ============================================ */
/* UTILITY CLASSES (Emulated Tailwind) */
/* ============================================ */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-4 { gap: var(--spacing-md); }
.gap-6 { gap: var(--spacing-lg); }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Backgrounds */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--color-gray-50); }
.bg-gray-100 { background-color: var(--color-gray-100); }
.bg-primary { background-color: var(--color-primary); }
.bg-gradient-farm {
  background: linear-gradient(180deg, var(--color-gray-50) 0%, white 100%);
  color: #1f2937;
}

/* Hide dark-theme grid overlay on light pages */
.bg-gradient-farm::after {
  display: none !important;
}

/* Override dark-theme heading styles on light backgrounds */
.bg-gradient-farm h1,
.bg-gradient-farm h2,
.bg-gradient-farm h3,
.bg-gradient-farm h4,
.bg-gradient-farm h5,
.bg-gradient-farm h6 {
  color: #1f2937;
  text-transform: none;
  letter-spacing: normal;
}

/* Override dark-theme form styles on light backgrounds */
.bg-gradient-farm input,
.bg-gradient-farm textarea,
.bg-gradient-farm select {
  background: white;
  color: #1f2937;
  border-color: #d1d5db;
}

/* Sections that explicitly use dark backgrounds keep white text */
.bg-gradient-farm .progress-hero,
.bg-gradient-farm .youth-hero,
.bg-gradient-farm .event-hero,
.bg-gradient-farm .cta-section,
.bg-gradient-farm [style*="background: linear-gradient"] {
  color: white;
}

.bg-gradient-farm .progress-hero h1,
.bg-gradient-farm .progress-hero h2,
.bg-gradient-farm .progress-hero h3,
.bg-gradient-farm .youth-hero h1,
.bg-gradient-farm .youth-hero h2,
.bg-gradient-farm .youth-hero h3,
.bg-gradient-farm .event-hero h1,
.bg-gradient-farm .event-hero h2,
.bg-gradient-farm .event-hero h3,
.bg-gradient-farm .cta-section h2 {
  color: white;
}

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: white; }
.text-gray-600 { color: var(--color-gray-600); }
.text-gray-900 { color: var(--color-gray-900); }

.font-sans { font-family: var(--font-sans); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* Spacing */
.p-0 { padding: 0; }
.p-2 { padding: var(--spacing-sm); }
.p-4 { padding: var(--spacing-md); }
.p-6 { padding: var(--spacing-lg); }
.m-0 { margin: 0; }
.m-2 { margin: var(--spacing-sm); }
.m-4 { margin: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-4 { margin-bottom: var(--spacing-md); }

/* Border */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================================ */
/* HEADER & NAVIGATION - ZEN SPACE INVADERS */
/* ============================================ */

.header-main {
  background: #000;
  border-bottom: 4px solid var(--color-neon-green);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 4px 0 rgba(0, 255, 0, 0.3);
}

.nav-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 1rem;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-neon-green);
  font-weight: 700;
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-neon-green);
  transition: all 0.2s ease;
}

.nav-logo a:hover {
  background: var(--color-neon-green);
  color: #000;
  box-shadow: 0 0 20px var(--color-neon-green);
}

.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px var(--color-neon-green));
}

.logo-text {
  text-shadow: 0 0 10px var(--color-neon-green);
}

/* Navigation Menu - Minimal Zen */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

/* Dropdown Button - Pixel Style */
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 2px solid var(--color-neon-green);
  color: var(--color-neon-green);
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.nav-dropdown-btn:hover {
  background: var(--color-neon-green);
  color: #000;
  box-shadow: 0 0 20px var(--color-neon-green);
  text-shadow: none;
}

.nav-dropdown-btn .dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

/* Dropdown arrow rotation on hover */
.nav-dropdown:hover .nav-dropdown-btn .dropdown-arrow,
.nav-dropdown-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu - Arcade Style */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin-top: 8px;
  background: #000;
  border: 2px solid var(--color-neon-green);
  box-shadow:
    0 0 0 4px #000,
    0 0 20px rgba(0, 255, 0, 0.5),
    0 4px 0 var(--color-neon-green);
  z-index: 1000;
  animation: dropdownSlide 0.2s ease;
}

/* Bridge the gap between button and menu for hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

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

/* Show dropdown on hover (desktop) and via JS for click (mobile/desktop) */
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: var(--color-neon-green);
  text-decoration: none;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  transition: all 0.15s ease;
  position: relative;
}

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

.dropdown-item::before {
  content: '▶';
  position: absolute;
  left: 0.5rem;
  opacity: 0;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--color-neon-green);
  color: #000;
  padding-left: 2rem;
}

.dropdown-item:hover::before {
  opacity: 1;
  left: 0.75rem;
}

.item-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.5));
}

.dropdown-item:hover .item-icon {
  filter: none;
}

/* Battle Navigation - Featured Styling */
.battle-nav .nav-dropdown-btn {
  background: linear-gradient(135deg, rgba(255, 56, 100, 0.15), rgba(255, 151, 112, 0.1));
  border: 1px solid rgba(255, 151, 112, 0.3);
}

.battle-nav .nav-dropdown-btn:hover {
  border-color: #ff9770;
  box-shadow: 0 0 15px rgba(255, 151, 112, 0.3);
}

.battle-nav .nav-icon {
  animation: battle-pulse 2s infinite;
}

@keyframes battle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Featured Dropdown Item */
.dropdown-item.featured {
  background: linear-gradient(135deg, rgba(255, 151, 112, 0.1), rgba(255, 79, 216, 0.05));
  border-left: 3px solid #ff9770;
  position: relative;
}

.dropdown-item.featured:hover {
  background: linear-gradient(135deg, #ff9770, #ff4fd8);
}

/* Item Badge (NEW, HOT, etc) */
.item-badge {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #ff3864;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: badge-glow 1.5s infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 56, 100, 0.5); }
  50% { box-shadow: 0 0 15px rgba(255, 56, 100, 0.8); }
}

/* Dropdown Divider */
.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 0.5rem 0;
}

/* Quick Nav Battle Link */
.battle-link {
  color: #ff9770 !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 151, 112, 0.5);
}

.battle-link:hover {
  color: #fff !important;
  text-shadow: 0 0 15px rgba(255, 151, 112, 0.8);
}

/* User Actions - Right Side */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* XP Badge - Pixel Style */
.xp-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #000;
  border: 2px solid var(--color-neon-green);
  color: var(--color-neon-green);
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.xp-icon {
  filter: drop-shadow(0 0 8px var(--color-neon-green));
}

.level-badge {
  padding: 0.25rem 0.75rem;
  background: var(--color-neon-green);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.btn-primary,
.btn-secondary,
.btn-text,
.btn-icon {
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Primary Button - Neon Green */
.btn-primary {
  background: var(--color-neon-green);
  color: #000;
  border: 2px solid var(--color-neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.7);
  text-shadow: 0 0 10px var(--color-neon-green);
}

/* Secondary Button - Outlined */
.btn-secondary {
  background: transparent;
  color: var(--color-neon-green);
  border: 2px solid var(--color-neon-green);
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.btn-secondary:hover {
  background: var(--color-neon-green);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  text-shadow: none;
}

/* Text Button - Minimal */
.btn-text {
  background: transparent;
  color: var(--color-neon-green);
  padding: 0.5rem;
  border: none;
}

.btn-text:hover {
  text-shadow: 0 0 10px var(--color-neon-green);
}

/* Icon Button - Square */
.btn-icon {
  padding: 0.625rem;
  background: transparent;
  border: 2px solid var(--color-neon-green);
  width: 40px;
  height: 40px;
  color: var(--color-neon-green);
  font-size: 1.25rem;
}

.btn-icon:hover {
  background: var(--color-neon-green);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.btn-primary.large,
.btn-secondary.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary.small,
.btn-secondary.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-checkbox input,
.form-radio input {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

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

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-gray-500);
  text-align: center;
}

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

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop);
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-xl);
}

.modal-content.large {
  max-width: 900px;
}

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

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.btn-close {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-gray-200);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-base);
}

.btn-close:hover {
  background: var(--color-gray-300);
}

/* ============================================ */
/* CARDS */
/* ============================================ */

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

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

/* ============================================ */
/* BADGES & TAGS */
/* ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

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

.badge.success {
  background: var(--color-success);
  color: white;
}

.badge.warning {
  background: var(--color-warning);
  color: white;
}

.badge.kakuma-badge {
  background: var(--color-kakuma);
  color: white;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-error);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  min-width: 1.25rem;
  text-align: center;
}

/* ============================================ */
/* PROGRESS BARS */
/* ============================================ */

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-success) 0%, var(--color-success-dark) 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

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

.footer-main {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================ */
/* GAMIFICATION SPECIFIC STYLES */
/* ============================================ */

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-gray-900);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-gray-500);
  font-size: 1.125rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--color-gray-500);
}

/* XP Toast Notification */
.xp-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

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

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    padding: 1rem;
    border: 2px solid var(--color-neon-green);
    border-top: none;
    box-shadow: 0 4px 0 rgba(0, 255, 0, 0.3);
    gap: 0.5rem;
  }

  .nav-menu.active .nav-dropdown {
    width: 100%;
  }

  .nav-menu.active .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu.active .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    border-left: 4px solid var(--color-neon-green);
    animation: none;
  }

  .nav-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .btn-mobile-menu {
    display: block;
    background: transparent;
    border: 2px solid var(--color-neon-green);
    color: var(--color-neon-green);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
  }

  .btn-mobile-menu:hover {
    background: var(--color-neon-green);
    color: #000;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .btn-mobile-menu {
    display: none;
  }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cursor-pointer {
  cursor: pointer;
}

.transition-all {
  transition: all var(--transition-base);
}

/* ============================================ */
/* ANONYMOUS WALLET STYLES */
/* ============================================ */

.anonymous-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.anonymous-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.anonymous-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.anonymous-text {
  flex: 1;
  min-width: 200px;
}

.anonymous-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.anonymous-text p {
  font-size: 0.9rem;
  opacity: 0.95;
  margin: 0;
}

.btn-close-banner {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.2s;
}

.btn-close-banner:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
}

.anonymous-profile-notice {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notice-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.notice-text strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.notice-text p {
  font-size: 1rem;
  opacity: 0.95;
  margin: 0;
}

@media (max-width: 768px) {
  .anonymous-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .anonymous-text {
    min-width: unset;
  }

  .btn-close-banner {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
}

/* ============================================ */
/* UTILITY: DARK TEXT HIGHLIGHT                 */
/* ============================================ */

.text-dark {
  color: #1a1a24;
}
