/* ============================================
   KRYPTEY.COM — Design System
   Theme: Cosmic Purple / Dark Nebula
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  /* Primary Palette — from logo */
  --primary: #9B59B6;
  --primary-light: #C39BD3;
  --primary-dark: #6C3483;
  --primary-glow: rgba(155, 89, 182, 0.4);

  /* Accent — nebula highlights */
  --accent-pink: #E91E8C;
  --accent-cyan: #00D4FF;
  --accent-gold: #F39C12;

  /* Backgrounds */
  --bg-deep: #0A0612;
  --bg-dark: #110B1E;
  --bg-surface: #1A1029;
  --bg-card: rgba(26, 16, 41, 0.6);
  --bg-glass: rgba(155, 89, 182, 0.08);

  /* Text */
  --text-primary: #F0E6FF;
  --text-secondary: #A78BBE;
  --text-muted: #6B5080;

  /* Borders */
  --border-subtle: rgba(155, 89, 182, 0.15);
  --border-glow: rgba(155, 89, 182, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #9B59B6 0%, #E91E8C 50%, #00D4FF 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(155, 89, 182, 0.2) 0%, transparent 60%);
  --gradient-card: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(233, 30, 140, 0.05) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(155, 89, 182, 0.2);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-medium);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-medium);
  border-radius: 1px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--gradient-primary) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 600 !important;
  -webkit-text-fill-color: #fff !important;
  transition: var(--transition-fast) !important;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--primary-glow);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.15) 0%, rgba(233, 30, 140, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
  background: var(--bg-glass);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #00FF88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Exchange Widget Section --- */
.exchange-section {
  background: var(--gradient-hero);
}

.exchange-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.exchange-tab {
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: 'Inter', sans-serif;
}

.exchange-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.exchange-tab:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.widget-container {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.widget-container iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: none;
}

.widget-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.widget-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.widget-info-item .icon {
  font-size: 1.1rem;
}

/* --- Features / How it Works --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Stats Section --- */
.stats-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- VPN Section --- */
.vpn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vpn-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-medium);
  text-align: center;
}

.vpn-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.vpn-logo {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.vpn-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.vpn-card .vpn-rating {
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.vpn-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.vpn-card .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* --- Blog Preview --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-medium);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 24px;
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card h3 a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.blog-card h3 a:hover {
  color: var(--primary-light);
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  color: var(--primary-light);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid,
  .vpn-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 6, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .features-grid,
  .vpn-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .exchange-tabs {
    width: 100%;
  }

  .exchange-tab {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

/* =========================================
   CUSTOM WIDGET API STYLES
   ========================================= */

.custom-widget-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  margin: 0 auto 2rem;
  position: relative;
  overflow: visible; /* Changed from hidden to show expansion */
  min-height: 520px;
  height: auto;
}

.widget-screen {
  display: none;
  animation: fadeIn 0.3s ease;
}

.widget-screen.active {
  display: block;
  height: 100%;
  overflow-y: auto;
  padding-right: 5px;
}
.widget-screen.active::-webkit-scrollbar {
  width: 8px;
}
.widget-screen.active::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.exchange-input-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: border-color 0.3s ease;
}

.exchange-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px rgba(233, 30, 140, 0.3);
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.badge-floating {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-color);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-row input {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: 600;
  width: 60%;
  outline: none;
  font-family: 'Space Grotesk', sans-serif;
}

.input-row input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.currency-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-selector:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.currency-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.currency-ticker {
  font-weight: 600;
  font-size: 1rem;
}

.dropdown-icon {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.network-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.swap-icon-container {
  display: flex;
  justify-content: center;
  margin: -15px 0;
  position: relative;
  z-index: 2;
}

.btn-swap-reverse {
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-swap-reverse:hover {
  background: var(--primary-color);
  color: white;
  transform: rotate(180deg);
}

.btn-exchange {
  margin-top: 1.5rem;
  height: 55px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-exchange:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loader-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: inline-block;
}

.btn-exchange:not(:disabled) .loader-spinner {
  display: none;
}

.exchange-alert {
  background: rgba(233, 30, 140, 0.1);
  border: 1px solid rgba(233, 30, 140, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #ffb3d9;
}

/* Modal Currency */
.widget-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 520px;
  background: rgba(10, 6, 18, 0.98);
  z-index: 10;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 0;
}

.modal-header {
  padding: 1.5rem 1rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 1rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.modal-search {
  padding: 1rem;
}

.modal-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.8rem 1.2rem;
  color: var(--text-color);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.modal-search input:focus {
  border-color: var(--primary-color);
}

.currency-list {
  height: 380px;
  overflow-y: auto;
  padding: 0 10px 1rem 1rem;
  min-height: 0;
}

.currency-list::-webkit-scrollbar {
  width: 10px;
}
.currency-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.currency-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.currency-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
  background-clip: padding-box;
}

.currency-item {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.currency-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.currency-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 1rem;
}

.currency-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.currency-info h4 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.currency-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #a855f7;
}

.currency-network {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.skeleton {
  height: 50px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

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

/* =========================================
   LIVE DOT & BLOG ADJUSTMENTS
   ========================================= */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: 0 0 8px #00ff88;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #00ff88; }
  50% { opacity: 0.4; transform: scale(0.8); box-shadow: 0 0 2px #00ff88; }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #00ff88; }
}

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

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 12px;
}

.search-box input {
  background: transparent;
  border: none;
  color: white;
  padding: 5px;
  width: 120px;
}

.search-box button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s;
}

.search-box button:hover {
  color: var(--primary-color);
}

/* =========================================
   TRADING (EXCHANGES) SECTION
   ========================================= */
.trading-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: auto;
}

.trading-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.trading-table th {
  padding: 16px 24px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.trading-table td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

.trading-table tr:last-child td {
  border-bottom: none;
}

.trading-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.exchange-rank {
  color: var(--text-secondary);
  font-weight: 600;
}

.exchange-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exchange-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  object-fit: contain;
}

.exchange-name {
  font-weight: 600;
  font-size: 1rem;
  color: white;
}

.exchange-vol {
  font-family: monospace;
  color: var(--text-secondary);
}

.exchange-btn {
  background: transparent;
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.exchange-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* =========================================
   LANGUAGE SWITCHER
   ========================================= */
.lang-switcher {
  display: flex;
  gap: 8px;
  margin-left: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.5;
  filter: grayscale(0.5);
}

.lang-btn img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.lang-btn:hover {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .lang-switcher {
    margin: 10px 0;
    order: -1;
  }
}

/* --- Responsive Navbar --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-mobile-only { display: none; }
.nav-desktop-only { display: flex; }

@media (max-width: 992px) {
  .menu-toggle { display: flex; }
  
  .nav-desktop-only { display: none; }
  .nav-mobile-only { display: block; width: 100%; margin-top: 20px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 100px 40px;
    transition: var(--transition-medium);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
    gap: 30px;
    align-items: flex-start;
  }

  .nav-links.active { right: 0; }
  
  .navbar .container { justify-content: space-between; }
  
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- Track Order Section --- */
.track-order-section {
  margin-top: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 24px;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-medium);
}

.track-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.track-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.track-icon { font-size: 1.5rem; }

.track-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.track-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.track-input-wrapper {
  display: flex;
  gap: 10px;
}

.track-input-wrapper input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  outline: none;
  transition: var(--transition-fast);
}

.track-input-wrapper input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.track-input-wrapper button {
  background: var(--gradient-primary);
  border: none;
  padding: 0 24px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* --- Hero Trust Badges --- */
.hero-trust-badges {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 30px !important;
  margin-top: 80px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.trust-badge {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.95rem !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.trust-badge .icon {
  font-size: 1.2rem !important;
  display: flex !important;
  align-items: center !important;
}

@media (max-width: 768px) {
  .hero-trust-badges {
    gap: 15px !important;
    margin-top: 30px !important;
    justify-content: center !important;
  }
}

.track-input-wrapper button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
