/* ====== CYBERPUNK 2077 OFFICIAL STYLES ====== */
:root {
  /* Official Cyberpunk Palette */
  --cyber-yellow: #fcee0a;
  --cyber-black: #000000;
  --cyber-dark: #121212;
  --cyber-blue: rgba(255, 255, 255, 0.5);
  --cyber-red: #ff003c;
  --cyber-white: #ffffff;
  --cyber-orange: #ff6b00;
  --cyber-cyan: #00f3ff;


  /* Functional Aliases */
  --dark-bg: #000000;
  --darker-bg: #000000;
  --card-bg: rgba(0, 0, 0, 1);
  --neon-pink: var(--cyber-red);
  --neon-blue: rgba(255, 255, 255, 0.75);
  --neon-purple: #bc13fe;
  --matrix-green: #00ff41;
  --text-primary: var(--cyber-white);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --border-color: rgba(255, 255, 255, 0.15);

  /* Notched Corner Clips */
  --clip-notch: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%);
  --clip-notch-sm: polygon(0 0, 100% 0, 100% 75%, 90% 100%, 0 100%);
  --clip-double: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);

  /* Liquid Glass System */
  --glass-bg: rgba(4, 7, 15, 0.45);
  --glass-blur: blur(25px) saturate(200%);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
  --neon-glow: 0 0 15px rgba(255, 255, 255, 0.15);
}

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

@keyframes scan {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

body {
  background: #04070f;
  color: var(--text-primary);
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* ====== GLOWING DOT GRID BACKGROUND ====== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../public/img/circuit-bg.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
  pointer-events: none;
  opacity: 0.25;
  animation: boardPulse 8s ease-in-out infinite;
}

/* Vignette + subtle depth gradient over the dots */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Strong edge vignette so dots fade at corners */
    radial-gradient(ellipse at 50% 50%,
      transparent 40%,
      rgba(4, 7, 15, 0.55) 70%,
      rgba(4, 7, 15, 0.92) 100%),
    /* Faint horizontal scanlines for extra depth */
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 3px,
      transparent 3px);
  z-index: -1;
  pointer-events: none;
}

/* Board breathe: slightly brighter ↔ dimmer every 8s */
@keyframes boardPulse {

  0%,
  100% {
    opacity: 0.18;
    filter: brightness(1);
  }

  50% {
    opacity: 0.35;
    filter: brightness(1.2) contrast(1.1);
  }
}

/* Moving HUD Scanner Line */
.hud-scanner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 107, 0, 0.1);
  box-shadow: 0 0 15px var(--cyber-orange);
  z-index: 10001;
  pointer-events: none;
  animation: scan 10s linear infinite;
  opacity: 0.3;
}

/* Decorative Tech Text */
.tech-readout {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-family: 'monospace';
  font-size: 8px;
  color: var(--cyber-orange);
  opacity: 0.3;
  z-index: 999999 !important;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}



@keyframes glitch {
  0% {
    text-shadow: none;
  }

  92% {
    text-shadow: none;
  }

  93% {
    text-shadow: -1px 0 var(--cyber-blue), 1px 0 var(--cyber-orange);
  }

  94% {
    text-shadow: 1px 0 var(--cyber-blue), -1px 0 var(--cyber-orange);
  }

  95% {
    text-shadow: none;
  }

  97% {
    text-shadow: -1px 0 var(--cyber-orange), 1px 0 var(--cyber-blue);
  }

  98% {
    text-shadow: none;
  }

  100% {
    text-shadow: none;
  }
}

.glitch-effect {
  animation: glitch 4s infinite;
  animation-timing-function: steps(1, end);
}

/* ====== TELEGRAM REQUIRED WARNING ====== */
.telegram-required {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  border-radius: 0;
  background: #000;
}

.telegram-warning {
  text-align: center;
  max-width: 400px;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--neon-blue);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--neon-glow);
}

.warning-icon {
  font-size: 60px;
  color: var(--neon-blue);
  margin-bottom: 20px;
}

.telegram-warning h2 {
  color: var(--neon-blue);
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  margin-bottom: 15px;
}

.telegram-warning p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* ====== APP CONTAINER ====== */
.app-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 15px 0; /* Vertical padding only, horiz handled by child margins */
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Telegram Bar - Liquid Glass Redesign */
.telegram-bar {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0; 
  padding: 15px 20px;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 12px; /* Balanced Gap */
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
  gap: 15px;
  position: relative;
  overflow: visible; 
}

.telegram-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.telegram-info i {
  font-size: 20px;
  color: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.telegram-details {
  display: flex;
  flex-direction: column;
}

.telegram-username {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telegram-id {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.top-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.support-btn,
.refresh-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 8px 20px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex: 1;
  max-width: fit-content;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  font-family: 'Orbitron', sans-serif;
}

.support-btn:hover,
.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.support-btn i,
.refresh-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.refresh-btn:hover i {
  animation: rotateSync 1.5s linear infinite;
}

.support-btn:hover i {
  transform: scale(1.2) rotate(-10deg);
}

@keyframes rotateSync {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn-text {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Wallet Title */
.wallet-title {
  text-align: center;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 20px;
}

.logo {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 800;
  color: var(--neon-blue);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.tagline {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* Balance Card - Processor Core Style */
.balance-card {
  view-transition-name: balance-morph;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 14px; /* Cell height base */
  gap: 0;
  padding: 15px 20px 25px 20px;
  background: rgba(255, 107, 0, 0.08);
  backdrop-filter: var(--glass-blur);
  color: var(--cyber-white);
  clip-path: none;
  border-radius: 0;
  text-align: left;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 20px; /* Standard 20px Gap */
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 107, 0, 0.05);
  overflow: visible;
  border: 1px solid var(--cyber-orange);
  border-left-width: 5px;
  min-height: 220px;
}

.balance-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.1) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.5;
  pointer-events: none;
}

.balance-card::before {
  content: '';
}

.balance-label {
    grid-row: 1;
    font-size: 10px;
    color: var(--cyber-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
}

.core-load-meter {
    grid-row: 2;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
}

.balance-main-row {
    grid-row: 3 / span 3;
    display: flex;
    align-items: baseline; /* PRO ALIGN: Bottom-up alignment */
    gap: 12px;
    z-index: 11;
    padding-top: 4px; /* Move slightly off the top border */
}

#balance {
    view-transition-name: balance-text;
    margin: 0 !important;
    font-family: 'Orbitron', monospace;
    font-size: 29px; /* COMPACT: 20% smaller than previous 36px */
    font-weight: 900;
    color: var(--cyber-white);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.usdt-anchor {
    font-size: 14px !important; /* Scaled proportionally */
    opacity: 0.5;
    color: var(--text-secondary);
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    line-height: 1;
    letter-spacing: 2px;
}

.fiat-equi-row {
    grid-row: 6 / span 1; /* TIGHTER GAP: Shifted up from row 7 to row 6 */
    font-size: 12px;
    font-weight: 700;
    color: var(--matrix-green);
    display: flex;
    align-items: center;
    margin: 0;
    letter-spacing: 0.8px;
    text-shadow: 0 0 8px rgba(0, 255, 128, 0.3);
}

.trx-balance {
    grid-row: 8 / span 3; /* Increased span for the huge text */
    margin: 0 !important;
    display: flex;
    align-items: center;
    font-size: 45px; /* MAX_STRENGTH: Dominant presence on card */
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    color: var(--cyber-orange);
    opacity: 1; /* Maximum clarity */
}

.growth-info {
    grid-row: 11 / span 2; /* SHIFTED UP: Button now starts at row 11 */
    margin: 0 !important;
    width: fit-content;
    height: 28px;
    display: flex;
    align-items: center;
    font-size: 10px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--cyber-orange);
    color: var(--cyber-orange);
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap; /* CRITICAL: No wrapping on mobile */
}

.referral-voucher {
    position: relative;
    z-index: 50; 
    height: 34px; /* Slightly shorter for badge look */
    background: var(--cyber-yellow) !important;
    color: #000 !important;
    padding: 0 12px !important;
    font-weight: 950 !important;
    border: none !important;
    display: flex;
    align-items: center;
    font-size: 11px !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: pointer;
    pointer-events: auto !important;
    text-transform: lowercase;
    box-shadow: 0 5px 15px rgba(252, 238, 10, 0.4);
    animation: cyberPulse 2s infinite ease-in-out;
}

.voucher-modal-preview {
    position: relative;
    margin: 20px auto 30px;
    height: 52px;
    width: fit-content;
    background: var(--cyber-yellow);
    color: #000;
    padding: 0 25px;
    font-weight: 950;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 10px 40px rgba(252, 238, 10, 0.3);
}

.trx-balance {
  font-size: 12px;
  color: var(--cyber-orange);
  margin-bottom: 15px;
  font-weight: 700;
  opacity: 0.9;
  font-family: 'JetBrains Mono', monospace;
}

/* Core Load Meter */
.core-load-meter {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.core-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 107, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.core-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--cyber-orange);
  box-shadow: 0 0 10px var(--cyber-orange);
  animation: loadPulse 3s infinite ease-in-out;
}

.core-bar:nth-child(1)::after {
  animation-delay: 0.2s;
  width: 65%;
}

.core-bar:nth-child(2)::after {
  animation-delay: 0.5s;
  width: 42%;
}

.core-bar:nth-child(3)::after {
  animation-delay: 0.1s;
  width: 88%;
}

.core-bar:nth-child(4)::after {
  animation-delay: 0.8s;
  width: 15%;
}

.core-bar:nth-child(5)::after {
  animation-delay: 0.3s;
  width: 55%;
}

@keyframes loadPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(2px);
  }
}

.growth-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 15px;
}

.growth-info i.fa-chart-line {
  color: var(--matrix-green);
}

.info-icon {
  cursor: pointer;
  color: var(--neon-blue);
}

.growth-info:hover .info-icon {
  color: var(--matrix-green);
}

/* Real-time Growth Indicator */
.growth-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #050505;
  border-left: 2px solid var(--matrix-green);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  padding: 6px 15px 6px 20px;
  font-size: 10px;
  color: var(--matrix-green);
  font-family: 'JetBrains Mono', 'monospace';
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 5;
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.growth-indicator i {
  font-size: 10px;
  color: var(--matrix-green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* Action Container */
.action-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-left: 15px; 
  margin-right: 15px;
  margin-bottom: 20px;
  max-width: calc(100% - 30px); /* Strictly constrain to parent margins */
}

.action-section {
  position: relative;
  min-width: 0; /* Important for grid items to allow shrinking */
  width: 100%;
}

.action-btn {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  width: 100%;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(252, 238, 10, 0.1), transparent);
  transition: 0.5s;
}

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

.action-btn:hover {
  background: rgba(26, 26, 26, 0.6);
  border-color: var(--cyber-yellow);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(252, 238, 10, 0.2);
}

.action-btn.active:hover {
  transform: none;
}

.action-btn.active {
  border-color: var(--cyber-yellow);
  background: rgba(26, 26, 26, 0.7);
  border-bottom-color: transparent;
  z-index: 2;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.action-icon {
  width: 45px;
  height: 45px;
  background: var(--cyber-yellow);
  clip-path: var(--clip-double);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--cyber-black);
  flex-shrink: 0;
}

.action-content {
  text-align: left;
}

.action-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.action-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Detail Sections */
.detail-section {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: var(--glass-blur);
  border: none;
  border-radius: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.detail-section.expanded {
  max-height: 2000px;
  padding: 15px 12px; /* More compact for mobile */
  border: 1px solid var(--cyber-yellow);
  border-top: none;
  margin-top: -1px;
  width: 100%;
  overflow-x: hidden; /* Prevent internal wide content from stretching the parent */
}

/* Form Styles */
.form-group {
  margin-bottom: 12px; /* reduced from 20px */
}

.form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 300;
}

.form-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--matrix-green);
  background: rgba(0, 255, 65, 0.05);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

select.form-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-hint {
  color: var(--text-secondary);
  font-size: 11px;
  margin-top: 5px;
  opacity: 0.7;
}

/* Address Box */
.address-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  padding: 8px 10px; /* reduced from 12px */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.address-box:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 243, 255, 0.1);
}

.address-box.highlight {
  border-color: var(--matrix-green);
  background: rgba(0, 255, 65, 0.05);
}

.address-text {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--text-primary);
}

.copy-icon {
  color: var(--neon-blue);
  font-size: 14px;
  margin-left: 10px;
}

/* Buttons */
.btn {
  padding: 8px 20px;
  border: none;
  border-radius: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: rgba(252, 238, 10, 0.2);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--cyber-yellow);
  color: var(--cyber-yellow);
  width: 100%;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(252, 238, 10, 0.1);
}

.btn-primary:hover {
  background: rgba(252, 238, 10, 0.3);
  color: var(--cyber-white);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(252, 238, 10, 0.5), inset 0 0 15px rgba(252, 238, 10, 0.2);
  border-color: var(--cyber-white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  clip-path: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: rgba(0, 243, 255, 0.2);
  border-color: var(--cyber-white);
  color: var(--cyber-white);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* History Container */
.history-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--glass-shadow);
}

.section-title {
  color: var(--neon-blue);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.activity-icon {
  width: 36px;
  height: 36px;
  background: #000;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 14px;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.activity-time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.activity-desc {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.activity-amount {
  font-weight: 600;
  font-size: 14px;
}

.activity-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 3px;
  display: inline-block;
}

.status-pending {
  background: rgba(255, 211, 0, 0.1);
  color: var(--cyber-yellow);
  border: 1px solid var(--cyber-yellow);
}

.status-completed {
  background: rgba(0, 255, 65, 0.1);
  color: var(--matrix-green);
  border: 1px solid var(--matrix-green);
}

.status-rejected {
  background: rgba(255, 107, 0, 0.1);
  color: var(--cyber-orange);
  border: 1px solid var(--cyber-orange);
}

.no-activity {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
}

.no-activity i {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Key History */
.key-history-list {
  max-height: 200px;
  overflow-y: auto;
}

.key-history-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0;
  margin-bottom: 8px;
}

.key-history-key {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  flex: 1;
}

.key-history-details {
  text-align: right;
}

.key-history-date {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.key-history-amount {
  font-size: 12px;
  font-weight: 600;
  color: var(--matrix-green);
}

/* Loading */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--neon-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-history {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: rgba(18, 18, 18, 0.98);
  border-top: 4px solid var(--cyber-yellow);
  clip-path: none;
  border-radius: 0;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalAppear 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(20px);
  position: relative;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.modal-title {
  color: var(--neon-blue);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-content {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Growth Modal */
.growth-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.growth-stat {
  text-align: center;
  padding: 15px;
  background: #000;
  border-radius: 0;
  border: 1px solid var(--border-color);
}

.stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--matrix-green);
  margin-bottom: 5px;
}

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

/* Industrial & Cyber Utility Classes */
.cyber-stat-card {
  background: #000;
  border-left: 2px solid var(--cyber-yellow);
  padding: 15px;
  margin-bottom: 15px;
}

.cyber-stat-value {
  font-family: 'Orbitron', monospace;
  color: var(--cyber-yellow);
  font-weight: 900;
  text-shadow: 0 0 10px rgba(252, 238, 10, 0.3);
}

.cyber-stat-value.matrix-green {
  color: var(--matrix-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.cyber-stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-top: 5px;
}

/* Industrial Note Box - Unified Definition */
.industrial-note-box {
  background: #000;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--cyber-blue);
  padding: 15px;
  margin: 20px 0;
  position: relative;
  clip-path: none;
}

.industrial-note-box p {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.industrial-note-box strong {
  color: var(--cyber-yellow);
}

.industrial-alert {
  display: flex;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(0, 243, 255, 0.1);
  padding: 15px;
  align-items: center;
}

.industrial-alert i {
  color: var(--neon-blue);
  font-size: 20px;
}

.industrial-alert-title {
  font-weight: 800;
  font-size: 11px;
  color: var(--neon-blue);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.industrial-alert-content {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.growth-note {
  background: #000;
  border: 1px solid var(--neon-blue);
  border-radius: 0;
  padding: 12px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.growth-note i {
  color: var(--neon-blue);
  margin-top: 2px;
}

.growth-note span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Withdrawal Confirmation */
.withdrawal-details {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 15px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-secondary);
  font-size: 13px;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
}

.detail-value.address {
  font-family: monospace;
  font-size: 11px;
  word-break: break-all;
  max-width: 200px;
  text-align: right;
}

.withdrawal-warning {
  background: #000;
  border: 1px solid var(--cyber-yellow);
  border-radius: 0;
  padding: 15px;
  display: flex;
  gap: 10px;
}

.withdrawal-warning i {
  color: var(--cyber-yellow);
  margin-top: 2px;
}

.withdrawal-warning ul {
  margin-left: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.withdrawal-warning li {
  margin-bottom: 5px;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 80px;
  top: auto;
  right: 20px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--neon-blue);
  border-radius: 0; /* Absolute sharp edges for industrial look */
  padding: 14px 20px;
  color: #fff;
  display: none;
  z-index: 20000; /* Higher than referral modal (10000) */
  max-width: 340px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 243, 255, 0.3);
  backdrop-filter: blur(10px);
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

@media (max-width: 480px) {
  .notification {
    left: 20px;
    right: 20px;
    bottom: 80px;
    top: auto;
    max-width: calc(100% - 40px);
    text-align: center;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification.error {
  background: rgba(20, 5, 5, 0.9);
  border: 1px solid var(--cyber-red);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.6), inset 0 0 10px rgba(255, 0, 60, 0.3);
  text-shadow: 0 0 8px rgba(255, 0, 60, 0.8);
}

.notification.warning {
  background: rgba(20, 15, 0, 0.9);
  border: 1px solid var(--cyber-orange);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.6), inset 0 0 10px rgba(255, 107, 0, 0.3);
}

.notification.success {
  background: rgba(0, 20, 5, 0.9);
  border: 1px solid var(--matrix-green);
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.6), inset 0 0 10px rgba(0, 255, 102, 0.3);
}

/* Deposit Instructions */
.deposit-instructions {
  background: #000;
  border: 1px solid var(--neon-blue);
  border-radius: 0;
  padding: 15px;
  margin-bottom: 20px;
}

.deposit-instructions p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.deposit-warning {
  background: #000;
  border: 1px solid var(--cyber-yellow);
  border-radius: 0;
  padding: 12px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cyber-yellow);
  font-size: 12px;
  line-height: 1.5;
}

/* Referral Styles */
.referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.referral-code-container {
  background: #000;
  border: 1px solid var(--neon-purple);
  border-radius: 0;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.referral-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.referral-code {
  background: #000;
  border: 1px solid var(--neon-purple);
  border-radius: 0;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.referral-code:hover {
  background: #000;
  border-color: var(--neon-blue);
}

.referral-code-text {
  font-family: monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--neon-purple);
  letter-spacing: 1px;
}

.referral-instructions {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 15px;
  margin-bottom: 20px;
}

.referral-instructions p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.referral-instructions ul {
  margin-left: 20px;
  color: var(--text-secondary);
  font-size: 13px;
}

.referral-instructions li {
  margin-bottom: 5px;
}

/* APK Styles */
.apk-instructions {
  background: #000;
  border: 1px solid var(--neon-blue);
  border-radius: 0;
  padding: 20px;
  margin-bottom: 20px;
}

.apk-instructions h4 {
  color: var(--neon-blue);
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apk-instructions p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.apk-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-number {
  width: 24px;
  height: 24px;
  background: var(--neon-blue);
  color: var(--dark-bg);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.step-content {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.apk-note {
  background: #000;
  border: 1px solid var(--cyber-yellow);
  border-radius: 0;
  padding: 12px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cyber-yellow);
  font-size: 12px;
  line-height: 1.5;
}

/* Fee Details */
.fee-details {
  background: #000;
  border: 1px solid var(--matrix-green);
  border-radius: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--matrix-green);
}

.fee-details i {
  font-size: 14px;
}

/* Withdrawal Alert */
.withdrawal-alert {
  background: #000;
  border: 1px solid var(--cyber-yellow);
  border-radius: 0;
  padding: 12px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyber-yellow);
  font-size: 12px;
}

/* Activation Status */
.activation-status {
  background: #000;
  border: 1px solid var(--matrix-green);
  border-radius: 0;
  padding: 12px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--matrix-green);
  font-size: 12px;
  font-weight: 600;
}



/* Referral Modal (Added from index.html styles) */
.referral-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.referral-box {
  background: var(--dark-bg);
  border: 1px solid var(--neon-blue);
  border-radius: 0;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.referral-title {
  color: var(--neon-blue);
  font-size: 24px;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
}

.referral-input {
  width: 100%;
  padding: 12px;
  background: #000;
  border: 1px solid var(--neon-blue);
  border-radius: 0;
  color: white;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Rajdhani', sans-serif;
}

.referral-note {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.skip-btn {
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 0;
  margin-top: 10px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.skip-btn:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

/* Responsive */


/* ====== KEY ACTIVATION STYLES ====== */
.key-history-list {
  max-height: 300px;
  overflow-y: auto;
}

.key-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #000;
  border: 1px solid rgba(100, 100, 255, 0.2);
  border-radius: 0;
  margin-bottom: 8px;
}

.key-history-key {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  color: var(--cyber-yellow);
  font-weight: 500;
}

.key-history-details {
  flex-grow: 1;
  margin-left: 12px;
}

.key-history-date {
  font-size: 10px;
  color: var(--text-secondary);
}

.key-history-amount {
  font-size: 11px;
  color: var(--matrix-green);
  font-weight: 500;
}

.activation-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #000;
  border: 1px solid var(--matrix-green);
  border-radius: 0;
  margin-top: 15px;
  color: var(--matrix-green);
}

.activation-status i {
  font-size: 16px;
}



/* ====== APK SECTION STYLES ====== */
.apk-instructions {
  background: #000;
  border: 1px solid rgba(100, 100, 255, 0.2);
  border-radius: 0;
  padding: 15px;
  margin-bottom: 15px;
}

.apk-instructions h4 {
  color: var(--neon-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apk-instructions p {
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.apk-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apk-steps .step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.apk-steps .step-number {
  background: var(--neon-blue);
  color: var(--dark-bg);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
}

.apk-steps .step-content {
  flex-grow: 1;
}

.apk-steps .step-content strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.apk-steps .step-content br {
  display: none;
}

.apk-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid var(--cyber-cyan);
  border-radius: 0;
  margin-top: 15px;
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.4;
}

.apk-note i {
  color: var(--cyber-cyan);
  margin-top: 2px;
}

/* ====== REFERRAL MODAL STYLES ====== */
.referral-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.referral-box {
  background: var(--dark-bg);
  border: 1px solid var(--neon-blue);
  border-radius: 0;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 100, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 100, 255, 0.6);
  }
}

.referral-title {
  color: var(--neon-blue);
  font-size: 24px;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
}

.referral-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--neon-blue);
  border-radius: 6px;
  color: white;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
}

.referral-input:focus {
  outline: none;
  border-color: var(--matrix-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.referral-note {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.skip-btn {
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 0;
  margin-top: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
}

.skip-btn:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  transform: translateY(-1px);
}

/* ====== GROWTH CALCULATOR FRAMES ====== */
.growth-calculator-frame {
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid var(--matrix-green);
  border-radius: 0;
  padding: 15px;
  margin: 10px 0;
  text-align: center;
  animation: pulse-glow-green 2s infinite;
}

@keyframes pulse-glow-green {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
  }

  50% {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
  }
}

.growth-calculator-frame .growth-calculator-amount {
  font-size: 24px;
  font-weight: bold;
  color: var(--matrix-green);
  margin-bottom: 5px;
  font-family: 'Orbitron', monospace;
}

.growth-calculator-frame .growth-calculator-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====== REAL-TIME GROWTH INDICATOR ====== */
.growth-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--matrix-green);
  border-radius: 0;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--matrix-green);
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  gap: 4px;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* ====== LOADING ANIMATION ====== */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--neon-blue);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ====== COUNTRY PICKER ====== */
#countryPickerTrigger {
  transition: all 0.3s ease;
}

#countryPickerTrigger:active {
  transform: scale(0.98);
}

#countryPickerDropdown {
  animation: slideInDown 0.3s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-item {
  border-left: 2px solid transparent;
}

.country-item:hover {
  border-left-color: var(--neon-blue);
  background: rgba(0, 243, 255, 0.05) !important;
}

#countrySearch:focus {
  outline: none;
  border-color: var(--neon-blue) !important;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Custom Scrollbar */
#countryList::-webkit-scrollbar {
  width: 4px;
}

#countryList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

#countryList::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 10px;
}

/* ====== REFINED INDUSTRIAL COMPONENTS ====== */
.cyber-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

@media screen and (max-width: 420px) {
  .cyber-stat-grid {
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
  }
  .cyber-stat-card {
    padding: 10px 5px !important;
  }
  .cyber-stat-value {
    font-size: 14px !important;
  }
  .cyber-stat-label {
    font-size: 8px !important;
  }
}

.cyber-stat-card {
  background: var(--cyber-dark);
  border-left: 3px solid var(--cyber-yellow);
  clip-path: none;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.cyber-stat-card::after {
  content: "DATA_LINK";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 7px;
  color: var(--cyber-yellow);
  opacity: 0.3;
  font-family: monospace;
}

.cyber-stat-value {
  font-family: "Orbitron", monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--cyber-yellow);
  text-shadow: 0 0 10px rgba(252, 238, 10, 0.3);
}

.cyber-stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  opacity: 0.7;
}



.cyber-address-container {
  background: var(--cyber-dark);
  border: 1px solid var(--border-color);
  clip-path: none;
  padding: 15px;
  margin-bottom: 20px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.cyber-address-container:hover {
  border-color: var(--cyber-yellow);
  background: #1a1a1a;
}

.cyber-address-container.highlight {
  border-left: 4px solid var(--matrix-green);
}

.cyber-address-label {
  font-size: 9px;
  color: var(--cyber-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.cyber-address-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cyber-address-text {
  font-family: "JetBrains Mono", Courier, monospace;
  font-size: clamp(10px, 4vw, 14px); /* Fluid font size for tiny screens */
  color: var(--cyber-white);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.cyber-copy-btn {
  color: var(--cyber-yellow);
  font-size: 18px;
  opacity: 0.7;
  transition: 0.2s;
}

.cyber-address-container:hover .cyber-copy-btn {
  opacity: 1;
  transform: scale(1.1);
}

.industrial-alert {
  background: rgba(255, 0, 60, 0.05);
  border: 1px solid var(--cyber-red);
  border-top-width: 4px;
  padding: 15px;
  margin: 20px 0;
  clip-path: none;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.industrial-alert i {
  color: var(--cyber-red);
  font-size: 20px;
  margin-top: 3px;
}

.industrial-alert-content {
  font-size: 12px;
  color: var(--cyber-white);
  line-height: 1.5;
}

.industrial-alert-title {
  font-weight: 800;
  color: var(--cyber-red);
  text-transform: uppercase;
  margin-bottom: 5px;
  font-size: 13px;
}


/* ====== REFINED HISTORY ITEMS ====== */
.history-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 243, 255, 0.05);
  margin-bottom: 10px;
  padding: 12px;
  clip-path: none;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between icon/details and amount */
  gap: 12px;
  transition: 0.2s;
  width: 100%;
  overflow: hidden;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--cyber-yellow);
}

.history-icon {
  width: 40px;
  height: 40px;
  background: var(--cyber-dark);
  border: 1px solid var(--border-color);
  clip-path: var(--clip-double);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.history-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-title {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyber-white);
}

.history-time {
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.6;
}

.history-amount {
  font-family: "monospace";
  font-weight: 800;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ====== REFINED SECTION TITLES ====== */
.section-title {
  color: var(--cyber-yellow) !important;
  font-family: "Orbitron", sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin-bottom: 35px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-bottom: 2px solid var(--cyber-yellow) !important;
  padding-bottom: 12px !important;
  position: relative !important;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 20px;
  height: 2px;
  background: var(--cyber-blue);
}


/* ====== CYBER SIMULATOR STYLES ====== */
.cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  background: var(--cyber-dark);
  height: 6px;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  outline: none;
}

.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--cyber-yellow);
  cursor: pointer;
  box-shadow: 0 0 10px var(--cyber-yellow);
  border-radius: 0;
}

.period-btn {
  flex: 1;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 8px !important;
  border-color: rgba(0, 243, 255, 0.2) !important;
}

.period-btn.active {
  background: var(--cyber-blue) !important;
  color: var(--cyber-black) !important;
  border-color: var(--cyber-blue) !important;
}

#growthInfo:hover {
  background: var(--cyber-yellow) !important;
  color: var(--cyber-black) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(252, 238, 10, 0.4) !important;
}


/* ====== REFINED GROWTH INDICATOR ====== */
.growth-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 255, 65, 0.1) !important;
  border: 1px solid var(--matrix-green) !important;
  color: var(--matrix-green) !important;
  font-size: 8px !important;
  padding: 2px 6px !important;
  display: flex;
  align-items: center;
  gap: 5px;
  clip-path: none !important;
  font-family: "JetBrains Mono", monospace;
  animation: scan-pulse 1.5s infinite ease-in-out;
}

@keyframes scan-pulse {
  0% {
    opacity: 0.6;
    box-shadow: 0 0 0px var(--matrix-green);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 5px var(--matrix-green);
  }

  100% {
    opacity: 0.6;
    box-shadow: 0 0 0px var(--matrix-green);
  }
}


/* ====================================================
   ONBOARDING TOUR SYSTEM
   ==================================================== */

/* Dark overlay that dims the whole page */
#onboardingOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  pointer-events: none;
  /* overlay itself is non-blocking */
}

/* Cut-out spotlight that "reveals" the target element */
#onboardingSpotlight {
  position: absolute;
  border-radius: 0;
  border: 2px solid var(--cyber-yellow);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.82),
    0 0 0 4px rgba(252, 238, 10, 0.25),
    0 0 30px rgba(252, 238, 10, 0.4),
    inset 0 0 20px rgba(252, 238, 10, 0.06);
  z-index: 19999998;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  animation: ob-spotlight-pulse 2s ease-in-out infinite;
}

@keyframes ob-spotlight-pulse {

  0%,
  100% {
    box-shadow:
      0 0 0 9999px rgba(0, 0, 0, 0.82),
      0 0 0 4px rgba(252, 238, 10, 0.25),
      0 0 25px rgba(252, 238, 10, 0.3),
      inset 0 0 15px rgba(252, 238, 10, 0.04);
  }

  50% {
    box-shadow:
      0 0 0 9999px rgba(0, 0, 0, 0.82),
      0 0 0 4px rgba(252, 238, 10, 0.5),
      0 0 40px rgba(252, 238, 10, 0.6),
      inset 0 0 25px rgba(252, 238, 10, 0.1);
  }
}

/* Tooltip card */
#onboardingTooltip {
  position: fixed;
  width: 320px;
  background: #0a0a0f;
  border: 1px solid var(--cyber-yellow);
  border-top: 3px solid var(--cyber-yellow);
  border-radius: 0;
  padding: 0;
  z-index: 20000000;
  pointer-events: all;
  box-shadow:
    0 0 40px rgba(252, 238, 10, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 0 60px rgba(252, 238, 10, 0.02);
  animation: ob-tooltip-in 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes ob-tooltip-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tooltip header row */
#onboardingHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(252, 238, 10, 0.15);
  background: rgba(252, 238, 10, 0.04);
}

/* Step badge  e.g.  01 / 12 */
#onboardingStepBadge {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--cyber-yellow);
  letter-spacing: 2px;
  opacity: 0.8;
}

/* Skip button */
#onboardingSkip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

#onboardingSkip:hover {
  border-color: var(--cyber-red);
  color: var(--cyber-red);
}

/* Tooltip title */
#onboardingTitle {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--cyber-yellow);
  padding: 14px 18px 8px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tooltip body text */
#onboardingContent {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  padding: 0 18px 16px;
}

#onboardingContent strong {
  color: var(--cyber-white);
  font-weight: 700;
}

/* Footer: progress + buttons */
#onboardingFooter {
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(252, 238, 10, 0.12);
  background: rgba(0, 0, 0, 0.3);
}

/* Progress bar track */
#onboardingProgress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  margin-bottom: 12px;
  overflow: hidden;
}

#onboardingProgressBar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyber-yellow), var(--matrix-green));
  border-radius: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--cyber-yellow);
}

/* Prev / Next buttons */
#onboardingButtons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

#onboardingPrev,
#onboardingNext {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

#onboardingPrev {
  background: transparent;
  border: 1px solid rgba(0, 243, 255, 0.35);
  color: var(--neon-blue);
  clip-path: none;
  border-radius: 0;
}

#onboardingPrev:hover {
  background: rgba(0, 243, 255, 0.08);
  border-color: var(--neon-blue);
}

#onboardingNext {
  background: var(--cyber-yellow);
  border: none;
  color: var(--cyber-black);
  font-weight: 900;
  clip-path: none;
  border-radius: 0;
  flex: 1;
}

#onboardingNext:hover {
  background: var(--cyber-white);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(252, 238, 10, 0.5);
}

/* Dot navigation */
#onboardingDots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px 14px;
}

.ob-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.1s ease;
}

.ob-dot:hover {
  background: rgba(252, 238, 10, 0.4);
  border-color: var(--cyber-yellow);
}

.ob-dot-active {
  background: var(--cyber-yellow);
  border-color: var(--cyber-yellow);
  box-shadow: 0 0 8px var(--cyber-yellow);
  transform: scale(1.3);
}

/* "?" help button in top bar to re-launch tour */
.tour-help-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  background: rgba(252, 238, 10, 0.06);
  border: 1px solid rgba(252, 238, 10, 0.4);
  color: var(--cyber-yellow);
  padding: 4px 10px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 900;
  transition: all 0.2s;
  clip-path: none;
  border-radius: 0;
  letter-spacing: 1px;
}

.tour-help-btn:hover {
  background: var(--cyber-yellow);
  color: var(--cyber-black);
  box-shadow: 0 0 15px rgba(252, 238, 10, 0.5);
  transform: scale(1.05);
}

/* ====== CYBER TERMINAL HISTORY ====== */
.history-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.history-icon-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-right: 15px;
}

.history-icon-bg {
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--matrix-green);
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.history-icon-bg.fiat {
  border-color: var(--cyber-yellow);
  background: rgba(252, 238, 10, 0.05);
}

.fiat-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--cyber-yellow);
  color: #000;
  font-size: 7px;
  font-weight: 900;
  padding: 1px 4px;
  letter-spacing: 0.5px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.history-details {
  flex: 1;
  min-width: 0;
}

.history-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.history-time {
  font-size: 10px;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
}

.pending-tag {
  color: var(--cyber-yellow);
  font-weight: 700;
  margin-left: 5px;
  letter-spacing: 0.5px;
}

.history-amount {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  margin-left: 10px;
}

/* ====== D_APPS & AVIATOR STYLES ====== */
.header-nav {
  display: flex !important;
  gap: 12px;
  width: 100%;
}

.header-nav .logo-btn {
  flex: 1;
  text-align: center;
  font-size: 13px !important;
  padding: 12px 0 !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Always Yellow as requested */
  color: var(--cyber-yellow);
  border: 1px solid rgba(252, 238, 10, 0.3);
  background: rgba(252, 238, 10, 0.1);
  backdrop-filter: blur(10px);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  text-transform: uppercase;
  font-weight: 900;
}

.header-nav .dapps-btn {
  flex: 1;
  text-align: center;
  font-size: 13px !important;
  padding: 12px 0 !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Always Grey as requested */
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  text-transform: uppercase;
  font-weight: 900;
}

.header-nav .logo-btn:active, .header-nav .dapps-btn:active {
  transform: scale(0.95);
  filter: brightness(1.5);
}

.logo-btn.active {
    color: var(--cyber-yellow) !important;
    background: rgba(252, 238, 10, 0.35) !important;
    border: 1.5px solid var(--cyber-yellow) !important;
    box-shadow: 0 0 25px rgba(252, 238, 10, 0.4) !important;
    filter: brightness(1.2);
}

.dapps-btn.active {
    color: #fff !important; /* Lighter grey/white when selected */
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid #fff !important; /* White lines-highlight */
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2) !important;
    filter: brightness(1.2);
}

/* App Open Folder Tab Effect */
.dapps-btn.active.app-open {
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px) !important;
    border: 1.5px solid #eb3349 !important; /* Only the button gets the red frame */
    border-bottom: none !important;
    z-index: 100 !important;
    position: relative;
    overflow: visible !important;
    background: #000 !important;
    box-shadow: 0 -10px 25px rgba(235,51,73, 0.4) !important;
}

.app-active-view {
    margin: -5px 15px 15px 15px !important; /* Balanced gap reduction */
    border: none;
    position: relative;
    z-index: 10;
    padding-top: 15px;
    view-transition-name: app-container;
    background: #000; /* Pure black */
    /* Slanted Diagonal Cutout Math: */
    /* Perfect Parallel Slant Math: */
    /* 1. Start precisely at bottom-left corner of EXIT button (50% + 6px, y=0) */
    /* 2, 3, 4. Full bounds on the right and bottom */
    /* 5. Go UP left side, stop 20px short to leave gap under wallet button */
    /* 6. Go RIGHT to stop exactly 20px horizontally away from point 1, creating a flawless 45-degree parallel cut */
    clip-path: polygon(
        calc(50% + 6px) 0, 
        100% 0, 
        100% 100%, 
        0 100%, 
        0 20px, 
        calc(50% - 14px) 20px
    );
}

::view-transition-group(app-container) {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Corner USDT Balance in Info Panel */
.dapp-corner-balance {
    position: absolute;
    bottom: 0; 
    right: 0;
    z-index: 100;
    margin: 0;
    display: none; /* Hidden by default, shown via JS */
}

.dapp-corner-balance.active {
    display: flex;
}

.dapp-corner-balance .balance-frame {
    view-transition-name: balance-morph;
    background: #1a0a05 !important; /* Move to opaque for better visibility */
    border: 1px solid var(--cyber-orange);
    border-left-width: 4px;
    padding: 10px 14px;
    box-shadow: 0 0 20px rgba(255,107,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Removed clip-path */
}

#dappUsdtAmount {
    view-transition-name: balance-text;
}

/* Configure the View Transition Animation */
::view-transition-group(balance-morph),
::view-transition-group(balance-text) {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}
::view-transition-old(balance-morph),
::view-transition-new(balance-morph) {
    height: 100%;
    width: 100%;
}

/* Cleaned DApps grid and visibility rules */
#dappsView {
  position: relative;
  z-index: 10 !important;
  display: none; /* Controlled by JS */
  width: 100%;
}

.dapps-grid {
  view-transition-name: app-container;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 15px 30px; /* 0px Top to match consistent 20px gap */
  width: 100%;
  min-height: 300px;
  position: relative;
  z-index: 11 !important;
}

.dapp-card {
  position: relative;
  z-index: 12 !important;
  aspect-ratio: 1/1;
  width: 100%;
  min-height: 140px; 
  background: #0a0a0f !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible; 
}

.dapp-card:hover, .dapp-card:active {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--cyber-yellow);
  background: rgba(252, 238, 10, 0.05);
  box-shadow: 0 15px 45px rgba(252, 238, 10, 0.2), inset 0 0 30px rgba(252, 238, 10, 0.1);
}

.dapp-card.aviator {
  background: #1a0800;
  border: 2px solid var(--cyber-orange);
  box-shadow: 0 0 30px rgba(255,107,0,0.4), inset 0 0 20px rgba(255,107,0,0.1);
}

.dapp-card.aviator:hover {
  border-color: var(--cyber-yellow);
  box-shadow: 0 0 40px rgba(255,107,0,0.6), inset 0 0 30px rgba(255,107,0,0.2);
}

.dapp-dot {
  position: absolute;
  bottom: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--cyber-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyber-orange);
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}

.dapp-card:active {
  transform: scale(0.95);
}

.aviator-game-container {
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  height: calc(var(--tg-viewport-stable-height, 100vh) - 135px);
  max-height: 100%;
}

.aviator-screen {
  min-height: 150px;
}

.aviator-screen canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.bet-panel {
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.bet-panel input[type=number]::-webkit-inner-spin-button,
.bet-panel input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#aviatorHistory::-webkit-scrollbar {
  height: 2px;
}

#aviatorHistory::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}

#aviatorHistory::-webkit-scrollbar-thumb {
  background: var(--cyber-yellow);
}

.aviator-multiplier-win {
  animation: multiplierWin 0.5s ease-out;
}

@keyframes multiplierWin {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); color: var(--matrix-green); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
/* Voucher System Consolidations */
@keyframes float-voucher { 0%, 100% { transform: translateY(0) translateX(0); } 25% { transform: translateY(-3px) translateX(2px); } 50% { transform: translateY(2px) translateX(-2px); } 75% { transform: translateY(-1px) translateX(3px); } }
@keyframes pulse-yellow { 0% { opacity: 0.6; box-shadow: 0 0 5px rgba(252, 238, 10, 0.1); } 50% { opacity: 1; box-shadow: 0 0 15px rgba(252, 238, 10, 0.3); } 100% { opacity: 0.6; box-shadow: 0 0 5px rgba(252, 238, 10, 0.1); } }
@keyframes pulse-orange { 0% { opacity: 0.6; box-shadow: 0 0 5px rgba(255, 107, 0, 0.1); } 50% { opacity: 1; box-shadow: 0 0 15px rgba(255, 107, 0, 0.3); } 100% { opacity: 0.6; box-shadow: 0 0 5px rgba(255, 107, 0, 0.1); } }
@keyframes pulse-blue { 0% { box-shadow: 0 0 5px rgba(0, 136, 204, 0.2); } 50% { box-shadow: 0 0 15px rgba(0, 136, 204, 0.6); } 100% { box-shadow: 0 0 5px rgba(0, 136, 204, 0.2); } }
.voucher-stack { 
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100010 !important; 
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none; /* Allow clicks through the container... */
    transform: translateZ(0);
}

.voucher-stack button {
    pointer-events: auto !important; /* ...but capture them on the buttons */
    position: relative;
    margin: 0;
    transition: transform 0.1s ease;
}

.voucher-stack button:active {
    transform: scale(0.95);
}
.mentor-voucher { background: var(--cyber-orange) !important; border: 1px solid var(--cyber-orange) !important; color: #000 !important; animation: pulse-orange 2s infinite, float-voucher 4.5s ease-in-out infinite !important; box-shadow: 0 0 15px rgba(255, 107, 0, 0.3) !important; font-weight: 900 !important; display: inline-flex; white-space: nowrap; }
.channel-voucher { background: rgba(0, 136, 204, 0.2) !important; border-color: #0088cc !important; color: #00aaff !important; box-shadow: 0 0 10px rgba(0, 136, 204, 0.3) !important; animation: pulse-blue 2s infinite, float-voucher 4.2s ease-in-out infinite !important; }
