/**
 * BullBear Trade - Cyberpunk Theme CSS
 * Matrix/Tron Style with Neon Green/Blue Aesthetic
 * Bootstrap 5.3+ dark mode with futuristic cyberpunk customization
 */

/* Import Cyberpunk Fonts */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  /* ========================================
     CYBERPUNK NEON COLOR PALETTE
     ======================================== */

  /* Neon Colors - Matrix/Tron Theme */
  --cyber-neon-green: #00ff41;
  --cyber-neon-green-rgb: 0, 255, 65;
  --cyber-neon-blue: #00d4ff;
  --cyber-neon-blue-rgb: 0, 212, 255;
  --cyber-neon-pink: #ff00ff;
  --cyber-neon-pink-rgb: 255, 0, 255;

  /* Background Layers - Deep Blacks */
  --cyber-black-void: #000000;
  --cyber-black-deep: #0a0a0a;
  --cyber-black-surface: #0f0f0f;
  --cyber-black-elevated: #1a1a1a;

  /* Grid Pattern Colors */
  --cyber-grid-color: rgba(0, 255, 65, 0.15);
  --cyber-grid-bright: rgba(0, 255, 65, 0.3);
  --cyber-wireframe: rgba(0, 212, 255, 0.2);

  /* Glass/Holographic Effects */
  --cyber-glass-bg: rgba(15, 15, 15, 0.6);
  --cyber-glass-border: rgba(0, 255, 65, 0.3);
  --cyber-glass-blur: 12px;

  /* Glow Effects */
  --cyber-glow-green-soft: 0 0 10px rgba(0, 255, 65, 0.3);
  --cyber-glow-green-medium: 0 0 20px rgba(0, 255, 65, 0.5);
  --cyber-glow-green-intense: 0 0 30px rgba(0, 255, 65, 0.8);
  --cyber-glow-blue-soft: 0 0 10px rgba(0, 212, 255, 0.3);
  --cyber-glow-blue-medium: 0 0 20px rgba(0, 212, 255, 0.5);
  --cyber-glow-blue-intense: 0 0 30px rgba(0, 212, 255, 0.8);

  /* Animation Timings */
  --cyber-anim-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --cyber-anim-normal: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --cyber-anim-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --cyber-font-primary: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --cyber-font-mono: 'Share Tech Mono', 'Courier New', monospace;

  /* ========================================
     BOOTSTRAP VARIABLE OVERRIDES
     ======================================== */

  /* Bootstrap Primary Colors */
  --bs-primary: var(--cyber-neon-green);
  --bs-primary-rgb: var(--cyber-neon-green-rgb);
  --bs-danger: var(--cyber-neon-pink);
  --bs-danger-rgb: var(--cyber-neon-pink-rgb);
  --bs-success: var(--cyber-neon-green);
  --bs-success-rgb: var(--cyber-neon-green-rgb);
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-info: var(--cyber-neon-blue);
  --bs-info-rgb: var(--cyber-neon-blue-rgb);

  /* Bootstrap Dark Theme */
  --bs-dark: var(--cyber-black-void);
  --bs-body-bg: var(--cyber-black-deep);
  --bs-body-color: #e0e0e0;
  --bs-card-bg: var(--cyber-black-surface);
  --bs-border-color: rgba(0, 255, 65, 0.2);
  --bs-border-color-translucent: rgba(0, 255, 65, 0.1);

  /* Headings */
  --bs-heading-color: var(--cyber-neon-green);

  /* Links */
  --bs-link-color: var(--cyber-neon-blue);
  --bs-link-hover-color: var(--cyber-neon-green);

  /* Form Elements */
  --bs-input-bg: rgba(0, 0, 0, 0.6);
  --bs-input-border-color: rgba(0, 255, 65, 0.3);
  --bs-input-focus-border-color: var(--cyber-neon-green);
  --bs-input-focus-box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1), var(--cyber-glow-green-medium);

  /* Buttons */
  --bs-btn-focus-box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.2), var(--cyber-glow-green-medium);

  /* Navbar */
  --bs-navbar-bg: var(--cyber-black-surface);
  --bs-navbar-border-color: rgba(0, 255, 65, 0.2);

  /* ========================================
     CYBERPUNK CUSTOM VARIABLES (--cyber-*)
     ======================================== */

  /* Gradient Definitions */
  --cyber-gradient-green: linear-gradient(135deg, var(--cyber-neon-green) 0%, rgba(0, 255, 65, 0.8) 100%);
  --cyber-gradient-blue: linear-gradient(135deg, var(--cyber-neon-blue) 0%, rgba(0, 212, 255, 0.8) 100%);
  --cyber-gradient-pink: linear-gradient(135deg, var(--cyber-neon-pink) 0%, rgba(255, 0, 255, 0.8) 100%);
  --cyber-gradient-multi: linear-gradient(90deg, var(--cyber-neon-green), var(--cyber-neon-blue), var(--cyber-neon-pink), var(--cyber-neon-green));

  /* Card Gradients */
  --cyber-gradient-card-dark: linear-gradient(135deg, var(--cyber-black-surface) 0%, var(--cyber-black-elevated) 100%);
  --cyber-gradient-card-elevated: linear-gradient(135deg, var(--cyber-black-elevated) 0%, rgba(26, 26, 26, 1) 100%);

  /* Radial Gradients */
  --cyber-radial-green: radial-gradient(circle at top left, rgba(0, 255, 65, 0.3), transparent 70%);
  --cyber-radial-blue: radial-gradient(circle at top right, rgba(0, 212, 255, 0.3), transparent 70%);

  /* Shadow Definitions */
  --cyber-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --cyber-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --cyber-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);

  /* Legacy BullBear Variables (for compatibility) */
  --bb-transition-fast: var(--cyber-anim-fast);
  --bb-transition-normal: var(--cyber-anim-normal);
  --bb-transition-slow: var(--cyber-anim-slow);
  --bb-shadow-sm: var(--cyber-shadow-sm);
  --bb-shadow-md: var(--cyber-shadow-md);
  --bb-shadow-lg: var(--cyber-shadow-lg);
  --bb-glass-bg: var(--cyber-glass-bg);
  --bb-glass-border: var(--cyber-glass-border);
}

/* ========================================
   BODY & TYPOGRAPHY
   ======================================== */

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--cyber-font-primary);
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
}

/* Cyberpunk Grid Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Animated Scanline Effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 255, 65, 0.8),
    transparent
  );
  animation: scanline 6s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* Main container positioning fix for grid */
main.container {
  position: relative;
  z-index: 1;
}

/* Typography - Cyberpunk Headers */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--cyber-font-primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyber-neon-green);
  text-shadow: var(--cyber-glow-green-soft);
}

/* Monospace for addresses, codes, numbers */
.font-monospace,
.wallet-address,
.transaction-hash,
code, pre {
  font-family: var(--cyber-font-mono);
  letter-spacing: 0px;
}

/* Large Display Text with Animated Gradient */
.display-1, .display-2, .display-3 {
  background: linear-gradient(
    135deg,
    var(--cyber-neon-green),
    var(--cyber-neon-blue)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  background-size: 200% auto;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

/* Neon Text Glow */
.cyber-text-glow {
  color: var(--cyber-neon-green);
  text-shadow:
    0 0 5px rgba(0, 255, 65, 0.5),
    0 0 10px rgba(0, 255, 65, 0.3),
    0 0 20px rgba(0, 255, 65, 0.2);
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow:
      0 0 5px rgba(0, 255, 65, 0.5),
      0 0 10px rgba(0, 255, 65, 0.3);
  }
  to {
    text-shadow:
      0 0 10px rgba(0, 255, 65, 0.8),
      0 0 20px rgba(0, 255, 65, 0.5),
      0 0 30px rgba(0, 255, 65, 0.3);
  }
}

/* Wireframe Grid Background */
.cyber-wireframe-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 48px,
      rgba(0, 212, 255, 0.1) 48px,
      rgba(0, 212, 255, 0.1) 50px
    ),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 48px,
      rgba(0, 212, 255, 0.1) 48px,
      rgba(0, 212, 255, 0.1) 50px
    );
  pointer-events: none;
  opacity: 0.4;
}

/* Hexagon Pattern Overlay */
.cyber-hexagon-pattern {
  background-image:
    radial-gradient(circle at 50% 50%,
      rgba(0, 255, 65, 0.1) 1px,
      transparent 1px
    );
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* Pulsing Glow Effect */
.cyber-pulse {
  animation: cyberPulse 2s ease-in-out infinite;
}

@keyframes cyberPulse {
  0%, 100% {
    box-shadow: var(--cyber-glow-green-soft);
  }
  50% {
    box-shadow:
      var(--cyber-glow-green-medium),
      0 0 40px rgba(0, 255, 65, 0.3);
  }
}

/* ========================================
   HOLOGRAPHIC GLASS CARDS
   ======================================== */

.card {
  background: var(--cyber-glass-bg);
  backdrop-filter: blur(var(--cyber-glass-blur));
  -webkit-backdrop-filter: blur(var(--cyber-glass-blur));
  border: 1px solid var(--cyber-glass-border);
  box-shadow:
    var(--cyber-shadow-md),
    inset 0 1px 0 rgba(0, 255, 65, 0.1),
    inset 0 -1px 0 rgba(0, 212, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all var(--cyber-anim-normal);
}

/* Holographic shimmer effect on hover */
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 255, 65, 0.05) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all var(--cyber-anim-slow);
  pointer-events: none;
}

.card:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
}

.card:hover {
  border-color: rgba(0, 255, 65, 0.6);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.6),
    var(--cyber-glow-green-medium),
    inset 0 1px 0 rgba(0, 255, 65, 0.2);
  transform: translateY(-4px);
}

/* Corner accents (Tron style) */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--cyber-neon-green);
  border-right: 2px solid var(--cyber-neon-green);
  opacity: 0.4;
  transition: opacity var(--cyber-anim-fast);
}

.card:hover::after {
  opacity: 1;
  box-shadow: var(--cyber-glow-green-soft);
}

/* Elevated cards */
.card.card-elevated {
  background: rgba(26, 26, 26, 0.8);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 212, 255, 0.15);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(12px)) {
  .card {
    background: rgba(15, 15, 15, 0.95);
  }
}

/* Navbar Styling */
.navbar {
  background-color: var(--bs-navbar-bg) !important;
  border-bottom: 1px solid var(--bs-navbar-border-color);
}

/* ========================================
   CYBERPUNK FORM ELEMENTS
   ======================================== */

.form-control,
.form-select {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: #e0e0e0;
  font-family: var(--cyber-font-mono);
  transition: all var(--cyber-anim-normal);
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: var(--cyber-neon-green);
  color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(0, 255, 65, 0.1),
    var(--cyber-glow-green-medium),
    inset 0 1px 3px rgba(0, 255, 65, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: rgba(224, 224, 224, 0.4);
  font-style: italic;
}

/* Floating labels effect */
.form-floating > label {
  color: rgba(0, 255, 65, 0.6);
  font-family: var(--cyber-font-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.form-floating > .form-control:focus ~ label {
  color: var(--cyber-neon-green);
  text-shadow: var(--cyber-glow-green-soft);
}

/* Checkboxes and radio buttons */
.form-check-input {
  border: 2px solid var(--cyber-neon-green);
  background-color: transparent;
}

.form-check-input:checked {
  background-color: var(--cyber-neon-green);
  border-color: var(--cyber-neon-green);
  box-shadow: var(--cyber-glow-green-soft);
}

.form-check-label {
  color: #e0e0e0;
  font-family: var(--cyber-font-primary);
}

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

.btn {
  font-family: var(--cyber-font-primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all var(--cyber-anim-normal);
}

/* Primary button - Neon green */
.btn-primary {
  background: var(--cyber-gradient-green);
  border-color: var(--cyber-neon-green);
  color: #000000;
  box-shadow:
    0 4px 15px rgba(0, 255, 65, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left var(--cyber-anim-normal);
}

.btn-primary:hover {
  background: linear-gradient(135deg,
    rgba(0, 255, 65, 1) 0%,
    var(--cyber-neon-green) 100%
  );
  box-shadow:
    0 6px 25px rgba(0, 255, 65, 0.5),
    var(--cyber-glow-green-medium),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  color: #000000;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 2px 10px rgba(0, 255, 65, 0.4),
    inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Danger button - Neon pink */
.btn-danger {
  background: var(--cyber-gradient-pink);
  border-color: var(--cyber-neon-pink);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
}

.btn-danger:hover {
  box-shadow:
    0 6px 25px rgba(255, 0, 255, 0.5),
    0 0 40px rgba(255, 0, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

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

/* Outline buttons with neon effect */
.btn-outline-primary {
  border: 2px solid var(--cyber-neon-green);
  color: var(--cyber-neon-green);
  background: transparent;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.btn-outline-primary:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--cyber-neon-green);
  color: var(--cyber-neon-green);
  box-shadow:
    var(--cyber-glow-green-medium),
    inset 0 0 10px rgba(0, 255, 65, 0.1);
}

.btn-outline-secondary {
  border: 2px solid var(--cyber-neon-blue);
  color: var(--cyber-neon-blue);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--cyber-neon-blue);
  color: var(--cyber-neon-blue);
  box-shadow: var(--cyber-glow-blue-medium);
}

/* ========================================
   CYBERPUNK DATA TABLES
   ======================================== */

.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e0e0e0;
  --bs-table-border-color: rgba(0, 255, 65, 0.2);
  --bs-table-striped-bg: rgba(0, 255, 65, 0.03);
  --bs-table-hover-bg: rgba(0, 255, 65, 0.08);
  font-family: var(--cyber-font-primary);
}

.table thead {
  background: linear-gradient(135deg,
    rgba(0, 255, 65, 0.15),
    rgba(0, 212, 255, 0.15)
  );
  border-bottom: 2px solid var(--cyber-neon-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.table thead th {
  color: var(--cyber-neon-green);
  text-shadow: var(--cyber-glow-green-soft);
  border-bottom: none;
  padding: 1rem 0.75rem;
}

.table tbody tr {
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  transition: all var(--cyber-anim-fast);
}

.table tbody tr:hover {
  background: rgba(0, 255, 65, 0.08) !important;
  box-shadow:
    inset 2px 0 0 var(--cyber-neon-green),
    0 0 20px rgba(0, 255, 65, 0.1);
  transform: translateX(2px);
}

.table tbody td {
  padding: 0.875rem 0.75rem;
  vertical-align: middle;
}

/* Monospace for numeric data */
.table td.font-monospace,
.table td:has(.font-monospace) {
  font-family: var(--cyber-font-mono);
  font-size: 0.875rem;
  color: var(--cyber-neon-blue);
}

/* Alerts */
.alert {
  border-color: var(--bs-border-color);
}

/* Mobile-First Responsive Adjustments */
@media (max-width: 576px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .card {
    border-radius: 0.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  /* Bottom navigation for mobile */
  .navbar-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: var(--bs-navbar-bg);
    border-top: 1px solid var(--bs-navbar-border-color);
    padding: 0.5rem 0;
  }
}

/* Touch-friendly button sizing (WCAG 2.1 AA) */
@media (max-width: 768px) {
  .btn,
  .nav-link,
  .dropdown-item {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Trade Chart Styling */
.trade-chart-container {
  position: relative;
  height: 300px;
  background-color: var(--bs-card-bg);
  border-radius: 0.5rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .trade-chart-container {
    height: 400px;
  }
}

/* ========================================
   BALANCE CARD (HERO COMPONENT)
   ======================================== */

.balance-card {
  background: linear-gradient(135deg,
    rgba(0, 255, 65, 0.15) 0%,
    rgba(0, 212, 255, 0.10) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid;
  border-image: linear-gradient(
    135deg,
    var(--cyber-neon-green),
    var(--cyber-neon-blue)
  ) 1;
  position: relative;
  overflow: hidden;
  box-shadow:
    var(--cyber-shadow-md),
    0 0 60px rgba(0, 255, 65, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--cyber-anim-normal);
}

/* Animated circuit board pattern */
.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 65, 0.03) 2px,
      rgba(0, 255, 65, 0.03) 4px
    ),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 2px,
      rgba(0, 212, 255, 0.03) 2px,
      rgba(0, 212, 255, 0.03) 4px
    );
  animation: circuitFlow 20s linear infinite;
  pointer-events: none;
}

@keyframes circuitFlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.balance-card:hover {
  border-image: linear-gradient(
    135deg,
    var(--cyber-neon-blue),
    var(--cyber-neon-green)
  ) 1;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(0, 255, 65, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-4px) scale(1.01);
}

.balance-card .card-title {
  font-size: 0.875rem;
  color: var(--cyber-neon-green);
  text-shadow: var(--cyber-glow-green-soft);
}

.balance-card .balance-amount {
  font-family: var(--cyber-font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyber-neon-green);
  text-shadow:
    0 0 10px rgba(0, 255, 65, 0.6),
    0 0 20px rgba(0, 255, 65, 0.4),
    0 0 30px rgba(0, 255, 65, 0.2);
  letter-spacing: 2px;
}

/* ========================================
   PAMM & FEATURE CARDS
   ======================================== */

.pamm-card {
  background: var(--cyber-glass-bg);
  backdrop-filter: blur(var(--cyber-glass-blur));
  -webkit-backdrop-filter: blur(var(--cyber-glass-blur));
  border: 1px solid rgba(0, 212, 255, 0.3);
  position: relative;
  transition: all var(--cyber-anim-normal);
}

.pamm-card.status-open {
  border-color: var(--cyber-neon-green);
  box-shadow:
    var(--cyber-shadow-md),
    0 0 40px rgba(0, 255, 65, 0.2);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow:
      var(--cyber-shadow-md),
      0 0 40px rgba(0, 255, 65, 0.2);
  }
  50% {
    box-shadow:
      var(--cyber-shadow-md),
      0 0 60px rgba(0, 255, 65, 0.4);
  }
}

.pamm-card:hover {
  transform: translateY(-2px);
}

/* Feature Shortcut Cards */
.feature-card {
  background: var(--cyber-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 65, 0.2);
  transition: all var(--cyber-anim-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(0, 255, 65, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--cyber-anim-normal);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--cyber-neon-green);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(0, 255, 65, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card i {
  transition: all var(--cyber-anim-normal);
  filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.5));
}

.feature-card:hover i {
  color: var(--cyber-neon-green);
  filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.8));
  transform: scale(1.2) rotateY(180deg);
}

/* ========================================
   Hero Section Styling
   ======================================== */

.hero-section {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(to bottom, #0a0e13, #1a1f26);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-section {
    height: 250px;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.95;
  animation: pulse-hero 4s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.2) 0%,
    transparent 50%,
    rgba(10, 10, 10, 0.4) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  background: linear-gradient(135deg, #f59e0b, #10b981, #3b82f6, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-size: 200% auto;
  animation: gradient-shift 5s ease infinite;
  filter:
    drop-shadow(0 0 10px rgba(0, 0, 0, 1))
    drop-shadow(0 0 20px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 30px rgba(16, 185, 129, 0.8))
    drop-shadow(0 4px 20px rgba(0, 0, 0, 1));
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow:
    0 0 20px rgba(16, 185, 129, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}

/* Loading Spinner */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request.htmx-indicator {
  display: inline-block;
}

/* Skeleton Loading - Enhanced */
.skeleton {
  background: linear-gradient(
    90deg,
    #1a1f26 25%,
    rgba(16, 185, 129, 0.1) 50%,
    #1a1f26 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Utility Classes */
.text-bull {
  color: var(--bs-primary) !important;
}

.text-bear {
  color: var(--bs-danger) !important;
}

.bg-bull {
  background-color: var(--bs-primary) !important;
}

.bg-bear {
  background-color: var(--bs-danger) !important;
}

/* Badge Enhancements */
.badge.bg-success {
  background: var(--cyber-gradient-green) !important;
  box-shadow: var(--cyber-glow-green-soft);
}

.badge.bg-danger {
  background: var(--cyber-gradient-pink) !important;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.badge.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

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

.modal-content {
  background: linear-gradient(135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(15, 15, 15, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--cyber-neon-green);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(0, 255, 65, 0.3),
    inset 0 1px 0 rgba(0, 255, 65, 0.2);
  position: relative;
}

/* Corner brackets */
.modal-content::before,
.modal-content::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--cyber-neon-blue);
}

.modal-content::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.modal-content::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.modal-header {
  background: linear-gradient(90deg,
    rgba(0, 255, 65, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  border-bottom: 1px solid var(--cyber-neon-green);
}

.modal-title {
  color: var(--cyber-neon-green);
  text-shadow: var(--cyber-glow-green-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.9);
}

.modal.fade .modal-dialog {
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(50px);
}

.modal.show .modal-dialog {
  transform: translateY(0);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
  .modal-content {
    background: rgba(10, 10, 10, 0.98);
  }
}

/* ========================================
   ACCESSIBILITY - FOCUS INDICATORS
   ======================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyber-neon-green);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 255, 65, 0.2);
}

/* Screen reader text */
.sr-only-cyber {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print Styles */
@media print {
  .navbar,
  .btn {
    display: none !important;
  }

  body {
    background-color: white;
    color: black;
  }

  .card {
    border: 1px solid black;
  }
}

/* ========================================
   CYBERPUNK BOTTOM NAVIGATION
   ======================================== */

.navbar.fixed-bottom {
  background: rgba(0, 0, 0, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid rgba(0, 255, 65, 0.3);
  box-shadow:
    0 -4px 20px rgba(0, 0, 0, 0.5),
    0 -1px 10px rgba(0, 255, 65, 0.2);
  position: fixed;
  z-index: 9999;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(224, 224, 224, 0.6);
  font-family: var(--cyber-font-primary);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  position: relative;
  transition: all var(--cyber-anim-fast);
}

.nav-link:hover {
  color: var(--cyber-neon-blue);
}

.nav-link.active {
  color: var(--cyber-neon-green);
}

.nav-link.active i {
  color: var(--cyber-neon-green);
}

/* Center nav item (Wallet button) */
.nav-link.nav-center {
  transform: scale(1.2);
  margin-top: -12px;
}

.nav-link.nav-center i {
  background: linear-gradient(135deg,
    var(--cyber-neon-green),
    var(--cyber-neon-blue)
  );
  border-radius: 50%;
  padding: 14px;
  color: #1a1a1a !important;
  font-size: 1.75rem !important;
}

.nav-link.nav-center .small {
  color: var(--cyber-neon-green);
  font-weight: 600;
}

/* Icon styling */
.nav-link i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Add padding-bottom to main container to prevent content overlap */
main.container,
.container.py-4 {
  padding-bottom: 90px !important;
}

/* Ensure main content doesn't overlap with fixed navbar */
body {
  padding-bottom: 70px;
}

/* Make sure bottom navbar stays fixed and visible */
.navbar.fixed-bottom {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Feature Shortcut Cards Enhancement */
.text-decoration-none:hover {
  opacity: 0.9;
  transition: opacity 0.2s ease-in-out;
}

/* Responsive adjustments for bottom navbar */
@media (max-width: 576px) {
  .nav-link {
    min-width: 60px;
  }

  .nav-link .small {
    font-size: 0.7rem;
  }
}

/* ========================================
   Keyframe Animations
   ======================================== */

@keyframes pulse-hero {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes neon-pulse {
  from {
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.6)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9));
  }
  to {
    filter: drop-shadow(0 0 50px rgba(16, 185, 129, 0.9)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9));
  }
}

@keyframes pulse-bull {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

@keyframes pulse-bear {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  }
}

/* ========================================
   ACCESSIBILITY - REDUCED MOTION
   ======================================== */

@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;
  }

  /* Disable grid animation */
  body::before,
  body::after {
    animation: none !important;
  }

  /* Disable particle effects */
  .hero-particles {
    display: none;
  }

  /* Keep glows but no animations */
  .cyber-pulse,
  .nav-link.active i,
  .nav-link.nav-center i {
    animation: none !important;
  }
}

/* ========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce backdrop blur on mobile for better performance */
@media (max-width: 768px) {
  .card,
  .modal-content,
  .navbar.fixed-bottom {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Simplify grid on mobile */
  body::before {
    background-size: 75px 75px;
    opacity: 0.2;
  }

  /* Disable scanline on mobile */
  body::after {
    display: none;
  }

  /* Reduce shadow complexity */
  .card:hover {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.6),
      0 0 30px rgba(0, 255, 65, 0.2);
  }

  /* Disable particle effects on mobile */
  #hero-particles,
  .cyber-hexagon-pattern {
    display: none;
  }
}

/* High performance mode for older devices */
@media (max-width: 768px) and (max-resolution: 1.5dppx) {
  .card::before,
  .feature-card::before,
  .balance-card::before {
    display: none;
  }

  .cyber-wireframe-bg {
    opacity: 0.2;
  }
}
