/* ==========================================================================
   VIRRR - Modern Cyber-Tech & Futuristic Dark UI Stylesheet
   Powered by Vir9.com
   ========================================================================== */

:root {
  --bg-deep: #050811;
  --bg-card: rgba(10, 16, 31, 0.75);
  --bg-card-hover: rgba(16, 26, 49, 0.85);
  --bg-surface: #0b1224;
  
  --cyber-cyan: #00F0FF;
  --cyber-cyan-glow: rgba(0, 240, 255, 0.45);
  --cyber-cyan-dim: rgba(0, 240, 255, 0.12);
  
  --line-emerald: #06C755;
  --line-emerald-glow: rgba(6, 199, 85, 0.45);
  --line-emerald-dim: rgba(6, 199, 85, 0.12);
  
  --neon-purple: #8B5CF6;
  --neon-purple-glow: rgba(139, 92, 246, 0.45);
  --neon-purple-dim: rgba(139, 92, 246, 0.12);
  
  --vip-gold: #FFB800;
  --vip-gold-glow: rgba(255, 184, 0, 0.45);
  --vip-gold-dim: rgba(255, 184, 0, 0.12);

  --blue-star: #00B2FE;
  --blue-star-glow: rgba(0, 178, 254, 0.6);

  --border-tech: rgba(0, 240, 255, 0.2);
  --border-light: rgba(255, 255, 255, 0.08);

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dark: #64748B;

  --font-cyber: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-body: 'Prompt', 'Kanit', sans-serif;
}

/* Base Reset & Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Cyber Grid & Matrix Canvas */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.cyber-radial-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050811;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-cyan);
  box-shadow: 0 0 10px var(--cyber-cyan-glow);
}

/* Typography Helpers */
.font-cyber {
  font-family: var(--font-cyber);
  letter-spacing: 0.05em;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--cyber-cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-neon {
  background: linear-gradient(135deg, var(--cyber-cyan) 0%, var(--neon-purple) 60%, var(--line-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-vip {
  background: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cyber Glow Buttons & UI */
.btn-cyber-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.95), rgba(0, 240, 255, 0.9));
  color: #03130d;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.btn-cyber-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 12px rgba(6, 199, 85, 0.6);
  color: #000;
}

.btn-cyber-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: 0.6s;
}

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

.btn-cyber-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(10, 16, 31, 0.7);
  backdrop-filter: blur(8px);
  color: var(--cyber-cyan);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-cyber-outline:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* Cyber Card & HUD Box */
.cyber-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cyber-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}

.cyber-card-active {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 25px var(--cyber-cyan-glow);
}

/* HUD Corner Brackets */
.hud-corner {
  position: relative;
}
.hud-corner::before,
.hud-corner::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-color: var(--cyber-cyan);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.hud-corner::before {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}
.hud-corner::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}
.cyber-card:hover .hud-corner::before,
.cyber-card:hover .hud-corner::after {
  opacity: 1;
}

/* Cyber Badge / Tag */
.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyber-cyan);
}

.cyber-badge-emerald {
  background: rgba(6, 199, 85, 0.1);
  border-color: rgba(6, 199, 85, 0.35);
  color: #00ff88;
}

.cyber-badge-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c084fc;
}

.cyber-badge-vip {
  background: rgba(255, 184, 0, 0.12);
  border-color: rgba(255, 184, 0, 0.4);
  color: #fbbf24;
}

/* Pulsing Status Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyber-cyan);
  box-shadow: 0 0 8px var(--cyber-cyan);
  animation: pulse-dot 2s infinite;
}
.status-dot-emerald {
  background-color: var(--line-emerald);
  box-shadow: 0 0 8px var(--line-emerald);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Scanline animation */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-cyan), transparent);
  animation: scan-move 4s linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes scan-move {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

/* Blue Star Verified Badge */
.blue-star-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #00B2FE, #0077FF);
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  box-shadow: 0 0 10px var(--blue-star-glow);
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
}

.blue-star-badge::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(0, 178, 254, 0.5);
  animation: star-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 0; }
}

/* Animated Emojis */
.animated-emoji {
  display: inline-block;
  animation: emoji-float 2.5s ease-in-out infinite alternate;
}

@keyframes emoji-float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(5deg) scale(1.1); }
  100% { transform: translateY(0px) rotate(-3deg); }
}

/* LINE Flex Card Simulator Styles */
.line-screen-mockup {
  background: #191B24;
  border-radius: 24px;
  border: 2px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.line-header {
  background: #11141E;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.line-chat-area {
  background: #151821;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 20px 16px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.flex-bubble {
  background: #1E2332;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.flex-bubble-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-bubble-body {
  padding: 14px 16px;
}

.flex-bubble-hero {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #0b101d;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.flex-bubble-footer {
  padding: 12px 16px;
  background: rgba(15, 20, 32, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pricing Switcher Toggle */
.pricing-switch-container {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 18, 36, 0.9);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.pricing-switch-btn {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  background: transparent;
}

.pricing-switch-btn.active {
  background: var(--cyber-cyan);
  color: #050811;
  font-weight: 700;
  box-shadow: 0 0 15px var(--cyber-cyan-glow);
}

/* Glow Borders for VIP Card */
.vip-glowing-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 26, 49, 0.95), rgba(11, 18, 36, 0.95));
  border: 1px solid rgba(255, 184, 0, 0.45);
  box-shadow: 0 0 30px rgba(255, 184, 0, 0.15), inset 0 0 20px rgba(255, 184, 0, 0.05);
}

.vip-glowing-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #00F0FF, #8B5CF6, #FFB800, #06C755);
  border-radius: 14px;
  z-index: -1;
  opacity: 0.35;
  filter: blur(8px);
}

/* Floating HUD Tag */
.hud-tag {
  font-family: var(--font-cyber);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyber-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* Feature Grid Cards */
.feature-box {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-box:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Video Responsive Container */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Credit Badge for Vir9.com */
.vir9-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.25s ease;
}

.vir9-credit-pill:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyber-cyan);
  color: #fff;
  box-shadow: 0 0 15px var(--cyber-cyan-glow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cyber-radial-glow {
    width: 100%;
    height: 350px;
  }
  .line-screen-mockup {
    max-width: 100%;
  }
}
