/* =========================================================
   USER SPACE ELITE MOD | Premium Cyber-Cosmic Theme
   ========================================================= */

:root {
  --bg-dark: #05050A;
  --panel-bg: rgba(20, 20, 35, 0.45);
  --panel-border: rgba(255, 255, 255, 0.08);
  
  --cyan: #00E5FF;
  --cyan-glow: rgba(0, 229, 255, 0.6);
  --gold: #FFD700;
  --gold-glow: rgba(255, 215, 0, 0.6);
  --purple: #B388FF;
  --purple-glow: rgba(179, 136, 255, 0.6);
  
  --text-main: #FFFFFF;
  --text-muted: #A0A5B5;
}

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

body {
  font-family: 'Prompt', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Canvas & Orbs */
#space-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  /* ใส่ภาพ Galaxy พื้นหลัง + ไล่เฉดสีครึ้มๆ ทับให้ตัวหนังสือชัดเจน */
  background: linear-gradient(to bottom, rgba(5,5,10,0.4), rgba(5,5,10,0.8)), 
              url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}
.orb-1 {
  width: 400px; height: 400px;
  background: var(--cyan);
  top: -100px; left: -100px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--purple);
  bottom: -200px; right: -100px;
  opacity: 0.2;
}
.orb-3 {
  width: 300px; height: 300px;
  background: var(--gold);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.1;
}

/* Typography & Globals */
h1, h2, h3, .logo-title, .tier-name {
  font-family: 'Orbitron', 'Prompt', sans-serif;
  letter-spacing: 1px;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  white-space: nowrap;
}
.btn-block { width: 100%; margin-top: 10px; }

.btn-cyan { background: var(--cyan); color: #000; box-shadow: 0 0 15px rgba(0,229,255,0.3); }
.btn-cyan:hover { box-shadow: 0 0 25px var(--cyan-glow); transform: translateY(-2px); }

.btn-gold { background: linear-gradient(135deg, var(--gold), #FFA000); color: #000; box-shadow: 0 0 15px rgba(255,215,0,0.3); }
.btn-gold:hover { box-shadow: 0 0 25px var(--gold-glow); transform: translateY(-2px); }

.btn-purple { background: linear-gradient(135deg, var(--purple), #7C4DFF); color: #FFF; box-shadow: 0 0 15px rgba(179,136,255,0.3); }
.btn-purple:hover { box-shadow: 0 0 25px var(--purple-glow); transform: translateY(-2px); }

.btn-outline { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); }
.btn-outline:hover { background: rgba(0,229,255,0.1); box-shadow: 0 0 15px rgba(0,229,255,0.2); }

.btn-text { background: transparent; color: var(--text-muted); font-size: 13px; }
.btn-text:hover { color: #FFF; }

/* Navbar */
.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 16px 24px;
  border-radius: 100vw;
  background: rgba(10,10,20,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  overflow-x: auto;
}
.glass-nav::-webkit-scrollbar {
  display: none;
}
.wallet-badge {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 8px 16px;
  border-radius: 100vw;
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 32px; filter: drop-shadow(0 0 10px var(--cyan)); }
.logo-title { font-size: 20px; font-weight: 700; color: #FFF; display: block; line-height: 1.2; }
.logo-sub { font-size: 10px; color: var(--cyan); letter-spacing: 2px; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}
.badge-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100vw;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, #FFF 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0,229,255,0.3));
}
.hero-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}

/* Pricing Grid */
.pricing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px 0 80px;
  flex-wrap: wrap;
}

.pricing-card {
  width: 320px;
  position: relative;
  background: linear-gradient(180deg, rgba(20, 20, 35, 0.7) 0%, rgba(10, 10, 15, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.8);
}

.card-cyan:hover { box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.4), 0 30px 60px rgba(0, 229, 255, 0.2); }
.card-gold:hover { box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.4), 0 30px 60px rgba(255, 215, 0, 0.2); }
.card-purple:hover { box-shadow: inset 0 0 0 1px rgba(179, 136, 255, 0.4), 0 30px 60px rgba(179, 136, 255, 0.2); }

.card-border {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.4s ease;
  pointer-events: none;
}

/* Card Themes */
.card-cyan .card-border { background: linear-gradient(to bottom, rgba(0,229,255,0.2), transparent) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; }
.card-cyan:hover .card-border { background: linear-gradient(to bottom, var(--cyan), transparent) border-box; }

.card-gold .card-border { background: linear-gradient(to bottom, rgba(255,215,0,0.3), transparent) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; }
.card-gold:hover .card-border { background: linear-gradient(to bottom, var(--gold), transparent) border-box; }

.card-purple .card-border { background: linear-gradient(to bottom, rgba(179,136,255,0.3), transparent) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; }
.card-purple:hover .card-border { background: linear-gradient(to bottom, var(--purple), transparent) border-box; }

/* Featured Card */
.pricing-card.featured {
  width: 350px;
  min-height: 520px;
  background: linear-gradient(180deg, rgba(25, 25, 35, 0.8) 0%, rgba(10, 10, 15, 0.95) 100%);
  z-index: 2;
  transform: scale(1.05);
}
.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}
.popular-tag {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #FF6B00, #FFD700);
  color: #000;
  padding: 6px 18px;
  border-radius: 100vw;
  font-size: 11px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(255,215,0,0.5), inset 0 2px 4px rgba(255,255,255,0.4);
}
.ultimate-tag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #9333EA, #DB2777);
  color: #FFF; padding: 6px 16px; border-radius: 100vw; font-size: 11px; font-weight: 800; font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px; z-index: 2; border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), inset 0 2px 4px rgba(255,255,255,0.2);
  animation: pulse-purple 3s infinite ease-in-out;
}
@keyframes pulse-purple {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
  50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 0 40px rgba(168, 85, 247, 0.8); }
}
.pricing-card.card-purple.card-immortal-ultra {
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.4), 0 0 35px rgba(168, 85, 247, 0.2);
  z-index: 3;
}
.pricing-card.card-purple.card-immortal-ultra::before {
  content: ""; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #A855F7, #6366F1, #EC4899);
  z-index: -1; border-radius: 22px;
  filter: blur(12px); opacity: 0.5;
  animation: cosmic-glow 4s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes cosmic-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.02); opacity: 0.8; }
}
.pricing-card.card-purple.card-immortal-ultra:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.8), 0 20px 50px rgba(168, 85, 247, 0.5);
}
.glow-btn-purple {
  background: linear-gradient(90deg, #A855F7, #EC4899);
  color: white; border: none;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
  transition: 0.3s;
  font-weight: bold;
}
.glow-btn-purple:hover {
  box-shadow: 0 0 30px rgba(168, 85, 247, 1);
  transform: scale(1.05);
}

/* Card Inner Container */
.card-inner {
  transform: translateZ(30px); /* 3D pop effect */
  display: flex; flex-direction: column; height: 100%;
  position: relative;
  z-index: 10;
  /* Cyber Dot Matrix Background */
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* Diagonal Glass Shimmer Sweep (GPU Accelerated) */
.card-inner::before {
  content: "";
  position: absolute;
  top: -5%; left: 0;
  width: 50%; height: 110%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-25deg) translateX(-300%);
  animation: card-shimmer 7s infinite cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  z-index: 20;
  will-change: transform;
}
@keyframes card-shimmer {
  0% { transform: skewX(-25deg) translateX(-300%); }
  20% { transform: skewX(-25deg) translateX(300%); }
  100% { transform: skewX(-25deg) translateX(300%); }
}

/* Ambient backlight glow inside the card targeting the top */
.card-inner::after {
  content: "";
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  transition: 0.4s;
}
.card-cyan .card-inner::after { background: radial-gradient(circle, rgba(0,229,255,0.4) 0%, transparent 70%); }
.card-gold .card-inner::after { background: radial-gradient(circle, rgba(255,215,0,0.5) 0%, transparent 70%); }
.card-purple .card-inner::after { background: radial-gradient(circle, rgba(179,136,255,0.5) 0%, transparent 70%); }

.pricing-card:hover .card-inner::after { opacity: 0.8; transform: translateX(-50%) scale(1.2); }

.tier-icon { 
  font-size: 32px; 
  margin: 0 auto 20px 0; 
  width: 64px; 
  height: 64px; 
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.02);
  transition: all 0.3s ease;
}
.card-cyan .tier-icon { 
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(0,229,255,0.02)); 
  border-color: rgba(0,229,255,0.2); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,229,255,0.1); 
  filter: drop-shadow(0 0 10px rgba(0,229,255,0.4)); 
}
.card-gold .tier-icon { 
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.02)); 
  border-color: rgba(255,215,0,0.3); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 0 20px rgba(255,215,0,0.2); 
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.4)); 
}
.card-purple .tier-icon { 
  background: linear-gradient(135deg, rgba(179,136,255,0.15), rgba(179,136,255,0.02)); 
  border-color: rgba(179,136,255,0.3); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 0 20px rgba(179,136,255,0.2); 
  filter: drop-shadow(0 0 10px rgba(179,136,255,0.4)); 
}
.pricing-card:hover .tier-icon { transform: rotate(-5deg) scale(1.1); }

.tier-name { font-size: 24px; color: #FFF; margin-bottom: 4px; font-weight: 800; }
.tier-duration { 
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px; 
  color: rgba(255,255,255,0.9); 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.card-cyan .tier-duration { color: var(--cyan); background: rgba(0,229,255,0.05); border-color: rgba(0,229,255,0.2); box-shadow: 0 0 15px rgba(0,229,255,0.1); }
.card-gold .tier-duration { color: var(--gold); background: rgba(255,215,0,0.05); border-color: rgba(255,215,0,0.2); box-shadow: 0 0 15px rgba(255,215,0,0.1); }
.card-purple .tier-duration { color: var(--purple); background: rgba(179,136,255,0.05); border-color: rgba(179,136,255,0.2); box-shadow: 0 0 15px rgba(179,136,255,0.1); }


.tier-price { display: flex; align-items: baseline; margin-bottom: 16px; }
.currency { font-size: 22px; color: rgba(255,255,255,0.4); margin-right: 6px; font-weight: 500; }
.amount { 
  font-size: 56px; 
  font-weight: 900; 
  line-height: 1; 
  background: linear-gradient(to bottom, #FFF, #A0A5B5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.card-cyan .amount { 
  background: linear-gradient(to bottom, #E0FFFF, var(--cyan)); 
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0,229,255,0.3)); 
}
.card-gold .amount { 
  background: linear-gradient(to bottom, #FFFDE7, var(--gold)); 
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.3)); 
}
.card-purple .amount { 
  background: linear-gradient(to bottom, #F3E5F5, var(--purple)); 
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(179,136,255,0.3)); 
}

/* =========================================
   CARD HUD — Cyberpunk status bar (top of card)
   ========================================= */
.card-hud {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  margin: -24px -24px 20px -24px; /* bleed to card edges */
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  background: linear-gradient(90deg,
    rgba(0, 229, 255, 0.08) 0%,
    rgba(0, 229, 255, 0.03) 50%,
    rgba(0, 229, 255, 0.08) 100%
  );
  overflow: hidden;
}

/* Animated scan line sweeping left→right */
.card-hud::after {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 229, 255, 0.18),
    transparent
  );
  animation: hud-scan 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hud-scan {
  0%   { left: -40%; }
  100% { left: 130%; }
}

/* Left group */
.hud-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Animated live dot */
.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0,229,255,0.4);
  animation: hud-dot-blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hud-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

/* "STATUS" label */
.hud-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(0, 229, 255, 0.5);
  text-transform: uppercase;
}

/* Center stock-status text */
.stock-status {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,229,255,0.6);
}
.stock-status.out-of-stock {
  color: #FF5252;
  text-shadow: 0 0 10px rgba(255,82,82,0.6);
}

/* Right tag (tier code) */
.hud-right { }
.hud-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 4px;
  color: rgba(0,229,255,0.5);
  background: rgba(0,229,255,0.05);
}

/* Gold variant */
.hud-gold {
  border-bottom-color: rgba(255,215,0,0.2);
  background: linear-gradient(90deg,
    rgba(255,215,0,0.08) 0%,
    rgba(255,215,0,0.03) 50%,
    rgba(255,215,0,0.08) 100%
  );
}
.hud-gold::after {
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.18), transparent);
}
.hud-gold .hud-dot {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(255,215,0,0.4);
}
.hud-gold .hud-label { color: rgba(255,215,0,0.5); }
.hud-gold .stock-status { color: var(--gold); text-shadow: 0 0 10px rgba(255,215,0,0.6); }
.hud-gold .hud-tag { border-color: rgba(255,215,0,0.3); color: rgba(255,215,0,0.5); background: rgba(255,215,0,0.05); }

/* Purple variant */
.hud-purple {
  border-bottom-color: rgba(179,136,255,0.2);
  background: linear-gradient(90deg,
    rgba(179,136,255,0.08) 0%,
    rgba(179,136,255,0.03) 50%,
    rgba(179,136,255,0.08) 100%
  );
}
.hud-purple::after {
  background: linear-gradient(90deg, transparent, rgba(179,136,255,0.18), transparent);
}
.hud-purple .hud-dot {
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple), 0 0 16px rgba(179,136,255,0.4);
}
.hud-purple .hud-label { color: rgba(179,136,255,0.5); }
.hud-purple .stock-status { color: var(--purple); text-shadow: 0 0 10px rgba(179,136,255,0.6); }
.hud-purple .hud-tag { border-color: rgba(179,136,255,0.3); color: rgba(179,136,255,0.5); background: rgba(179,136,255,0.05); }


.tier-desc { 
  font-size: 13.5px; color: #9CA3AF; margin-bottom: 24px; line-height: 1.6; 
  padding-bottom: 20px; border-bottom: 1px dashed rgba(255,255,255,0.1); 
  position: relative;
}
/* Neon line under desc */
.tier-desc::after {
  content: ""; position: absolute; bottom: -1px; left: 0; width: 40px; height: 2px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.card-gold .tier-desc::after { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.card-purple .tier-desc::after { background: var(--purple); box-shadow: 0 0 10px var(--purple); }

.tier-features { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.tier-features li { 
  padding: 8px 0; font-size: 13.5px; color: #D1D5DB; display: flex; align-items: flex-start; gap: 12px; 
  transition: all 0.3s ease;
  font-weight: 500;
}
.tier-features li:hover { 
  color: #FFF; transform: translateX(6px); 
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Custom Cyber Checkmarks */
.cyber-check {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--cyan);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  margin-top: 3px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px var(--cyan));
  animation: glow-pulse 2s infinite alternate;
}
.card-gold .cyber-check { background: var(--gold); filter: drop-shadow(0 0 5px var(--gold)); }
.card-purple .cyber-check { background: var(--purple); filter: drop-shadow(0 0 5px var(--purple)); }

@keyframes glow-pulse {
  from { filter: drop-shadow(0 0 2px currentColor); opacity: 0.8; }
  to { filter: drop-shadow(0 0 8px currentColor); opacity: 1; }
}

/* Addon */
.addon-container {
  max-width: 800px;
  margin: 0 auto 80px;
}
.addon-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: rgba(10,10,20,0.6);
}
.addon-info { display: flex; align-items: center; gap: 20px; }
.addon-icon { font-size: 32px; background: rgba(0,229,255,0.1); width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.addon-title { font-size: 18px; color: #FFF; margin-bottom: 4px; }
.addon-desc { font-size: 13px; color: var(--text-muted); }

/* Footer */
footer { text-align: center; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 12px; font-family: 'Orbitron', sans-serif; letter-spacing: 2px;}

/* Modal Overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 1; transition: opacity 0.3s ease;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-box {
  width: 100%; max-width: 550px;
  padding: 32px; position: relative;
  transform: translateY(0); transition: transform 0.3s ease;
  background: linear-gradient(180deg, rgba(20,20,35,0.9) 0%, rgba(10,10,15,0.95) 100%);
  border-top: 1px solid rgba(0,229,255,0.3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.modal-overlay.hidden .modal-box { transform: translateY(20px); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: #666; font-size: 20px; cursor: pointer; transition: 0.2s;
}
.modal-close:hover { color: #FFF; }

.modal-title { font-size: 22px; color: #FFF; margin-bottom: 8px; }
.modal-subtitle { font-size: 13px; color: var(--cyan); margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.5px; }
.form-input {
  width: 100%; padding: 12px 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #FFF; font-family: inherit; font-size: 14px;
  transition: 0.3s;
}
.form-input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 10px rgba(0,229,255,0.2); }

/* History Table */
.history-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.history-table th { background: rgba(0,229,255,0.1); color: var(--cyan); padding: 10px 12px; text-align: left; }
.history-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #FFF; background: rgba(0,0,0,0.3); }
.key-box { background: rgba(0,0,0,0.8); padding: 6px 10px; border-radius: 4px; border: 1px dashed var(--cyan); color: var(--cyan); user-select: all; font-family: 'Courier New', monospace; font-size: 14px; white-space: nowrap; display: inline-block;}

/* Admin & Status Badges */
#btn-admin {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid #FF6B00;
  color: #FF6B00;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
  font-weight: bold;
}
#btn-admin:hover {
  background: #FF6B00;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.5);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}
.status-pending { background: rgba(255, 193, 7, 0.2); color: #FFC107; border: 1px solid #FFC107; }
.status-approved { background: rgba(76, 175, 80, 0.2); color: #4CAF50; border: 1px solid #4CAF50; }
.status-rejected { background: rgba(244, 67, 54, 0.2); color: #F44336; border: 1px solid #F44336; }

/* Responsive */
@media (max-width: 1024px) {
  .pricing-card.featured { transform: scale(1); }
}
@media (max-width: 768px) {
  .addon-card { flex-direction: column; text-align: center; gap: 20px; }
  .addon-info { flex-direction: column; }
}

/* =========================================================
   CYBER TOAST NOTIFICATIONS
   ========================================================= */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.cyber-toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 280px;
  max-width: 360px;
  pointer-events: all;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toast-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
  position: relative;
  overflow: hidden;
}

.cyber-toast::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 12px 0 0 12px;
}

.cyber-toast.toast-success { border-color: rgba(0,229,255,0.3); }
.cyber-toast.toast-success::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.cyber-toast.toast-error { border-color: rgba(255,82,82,0.3); }
.cyber-toast.toast-error::before { background: #FF5252; box-shadow: 0 0 10px #FF5252; }
.cyber-toast.toast-warning { border-color: rgba(255,215,0,0.3); }
.cyber-toast.toast-warning::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.cyber-toast.toast-info { border-color: rgba(179,136,255,0.3); }
.cyber-toast.toast-info::before { background: var(--purple); box-shadow: 0 0 10px var(--purple); }

.toast-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-body { flex: 1; }

.toast-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cyber-toast.toast-success .toast-title { color: var(--cyan); }
.cyber-toast.toast-error .toast-title { color: #FF5252; }
.cyber-toast.toast-warning .toast-title { color: var(--gold); }
.cyber-toast.toast-info .toast-title { color: var(--purple); }

.toast-msg {
  font-size: 13px;
  color: #E0E0E0;
  line-height: 1.5;
}

.toast-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.toast-close:hover { color: #FFF; }

.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  border-radius: 0 0 12px 12px;
  animation: toast-progress 3.5s linear forwards;
}
.cyber-toast.toast-success .toast-progress { background: var(--cyan); }
.cyber-toast.toast-error .toast-progress { background: #FF5252; }
.cyber-toast.toast-warning .toast-progress { background: var(--gold); }
.cyber-toast.toast-info .toast-progress { background: var(--purple); }

.cyber-toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(110%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(110%) scale(0.9); }
}
@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* =========================================
   AESTHETIC ANIMATIONS & CUSTOM CURSOR
   ========================================= */

/* Blazing fast native SVG custom cursors */
body {
  cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 2L21 11L12 14L8 23L3 2Z' fill='%23b388ff' stroke='%2300E5FF' stroke-width='1.5'/%3E%3C/svg%3E"), auto;
}

button, a, .pricing-card, input, select, .btn {
  cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8' fill='rgba(0,229,255,0.2)' stroke='%2300E5FF' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23FFF'/%3E%3C/svg%3E") 12 12, pointer !important;
}

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 red;
  clip-path: inset(44px 0 56px 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  clip-path: inset(44px 0 56px 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip-path: inset(25px 0 83px 0); }
  5% { clip-path: inset(32px 0 52px 0); }
  10% { clip-path: inset(69px 0 20px 0); }
  15% { clip-path: inset(93px 0 14px 0); }
  20% { clip-path: inset(3px 0 7px 0); }
  25% { clip-path: inset(62px 0 9px 0); }
  30% { clip-path: inset(36px 0 2px 0); }
  35% { clip-path: inset(82px 0 41px 0); }
  40% { clip-path: inset(51px 0 97px 0); }
  45% { clip-path: inset(34px 0 18px 0); }
  50% { clip-path: inset(100px 0 45px 0); }
  55% { clip-path: inset(26px 0 75px 0); }
  100% { clip-path: inset(26px 0 75px 0); }
}
@keyframes glitch-anim2 {
  0% { clip-path: inset(15px 0 63px 0); }
  5% { clip-path: inset(72px 0 22px 0); }
  10% { clip-path: inset(39px 0 90px 0); }
  15% { clip-path: inset(53px 0 54px 0); }
  100% { clip-path: inset(53px 0 54px 0); }
}

/* =========================================
   MOBILE-FIRST NAVBAR NEW STRUCTURE
   ========================================= */

/* nav-right กลุ่มปุ่มด้านขวา */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* btn-icon บน Desktop = ปุ่มปกติมีข้อความ */
.btn-icon {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-icon:hover { background: rgba(0,229,255,0.12); border-color: var(--cyan); color: var(--cyan); }

/* ชื่อ user */
.nav-uname {
  font-size: 11px;
  font-weight: 700;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ปุ่ม admin */
.btn-admin-nav { padding: 7px 14px; font-size: 13px; }

/* ปุ่มดาวน์โหลด - ปกติแสดงข้อความ */
.btn-dl { white-space: nowrap; }

/* ปุ่มออกระบบ */
.btn-sm { font-size: 12px; padding: 6px 12px; color: var(--text-muted); }

/* Pulsa Anim */
.pulse-anim {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* =========================================
   MOBILE RESPONSIVE (max 768px)
   ========================================= */
@media (max-width: 768px) {

  /* Wrapper padding */
  .wrapper { padding: 0 12px 40px; }

  /* Navbar */
  .glass-nav {
    padding: 8px 12px;
    border-radius: 14px;
    margin-top: 12px;
    gap: 6px;
    overflow: visible;
  }

  .logo-icon { font-size: 20px; }
  .logo-title { font-size: 12px; }
  .logo-sub { font-size: 8px; letter-spacing: 1px; }
  .logo { gap: 6px; }

  /* กดดาวน์โหลดซ่อน text เหลือแค่ icon */
  .btn-dl .text { display: none; }
  .btn-dl { padding: 6px 10px; }

  /* auth-actions ปุ่มเล็กลง */
  #auth-actions .btn { padding: 5px 8px; font-size: 11px; }
  #auth-actions .btn .text { display: none; }
  #auth-actions #btn-login { display: block; }

  /* wallet badge เล็กลง */
  .wallet-badge {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 20px;
  }

  /* ซ่อนชื่อ user text ในปุ่ม profile บนมือถือ */
  .nav-uname { display: none; }

  /* btn-icon บนมือถือ → เป็นวงกลม icon เท่านั้น */
  .btn-icon {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    font-size: 16px;
    gap: 0;
  }
  /* ซ่อน text label บนมือถือ */
  .btn-label { display: none; }
  .btn-admin-nav { width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 14px; }
  .btn-sm { font-size: 11px; padding: 4px 8px; }


  .hero { padding: 30px 0 20px; }
  .hero-title { font-size: clamp(22px, 7vw, 44px); }
  .hero-desc { font-size: 13px; line-height: 1.6; }

  /* Pricing Grid: single column */
  .pricing-container,
  .pricing-grid {
    grid-template-columns: 1fr !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .pricing-card { width: 100%; }

  /* Addon card stack vertically */
  .addon-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Modal */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 16px 30px;
    border-radius: 20px 20px 0 0;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  .btn-dl { display: none; } /* ซ่อนปุ่มดาวน์โหลดบนจอเล็กมาก */
  .wallet-badge { font-size: 10px; padding: 4px 6px; }
}

