/* Domain Epoch - Immersive 3D & Multi-Tone Platinum Gold Vault Theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Syne:wght@700;800&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Syne', sans-serif;
  
  /* IMMERSIVE 3D PLATINUM GOLD & MULTI-TONE DARK VAULT THEME */
  --bg-main: #070709;
  --bg-nav: rgba(7, 7, 9, 0.94);
  --bg-card: #121215;
  --bg-card-hover: #1A1A20;
  --bg-input: #0D0D10;
  --border-color: rgba(212, 175, 55, 0.2);
  --border-hover: rgba(245, 158, 11, 0.65);
  
  /* MULTI-TONE METALLIC ACCENTS */
  --gold-champagne: #D4AF37;
  --gold-amber: #F59E0B;
  --gold-bronze: #B45309;
  --gold-light: #FBF2C0;
  --emerald-accent: #10B981;
  --sapphire-accent: #6366F1;
  --amethyst-accent: #D946EF;
  
  /* TEXT */
  --text-heading: #FAFAFA;
  --text-body: #D4D4D8;
  --text-muted: #9E9E9E;
  --text-contrast: #070709;
  
  /* ACCENT GRADIENTS */
  --accent-primary: #D4AF37;
  --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #D4AF37 50%, #B45309 100%);
  --accent-gradient-hover: linear-gradient(135deg, #FBBF24 0%, #E5C158 50%, #D97706 100%);
  --glow-color: rgba(212, 175, 55, 0.22);
  
  /* 3D MULTI-LAYER SHADOW SYSTEM */
  --shadow-card-3d: 
    0 10px 30px -5px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --shadow-card-3d-hover: 
    0 25px 50px -10px rgba(0, 0, 0, 0.95),
    0 0 30px 2px rgba(212, 175, 55, 0.28),
    0 0 0 1px rgba(245, 158, 11, 0.55),
    inset 0 1px 1px 0 rgba(251, 242, 192, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(180, 83, 9, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 95%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Perspective Container for 3D Tilt */
.perspective-1000 {
  perspective: 1000px;
}

/* 3D Glassmorphism & Liquid Glass Refraction Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 
    0 12px 35px -5px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav {
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 0 rgba(212, 175, 55, 0.15);
}

.heading-font {
  font-family: var(--font-heading);
}

/* Taste Skill Micro-Physics & Tactile Interaction Utility Classes */
.active-tactile {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}
.active-tactile:active {
  transform: scale(0.98) translateY(1px) !important;
}

.hover-elevate {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-elevate:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.55);
}

/* Staggered Card Reveals */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-card {
  opacity: 0;
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--stagger-idx, 0) * 45ms);
}

/* Asymmetric Hero & Spotlight Card Effects */
.spotlight-glass-hero {
  position: relative;
  background: radial-gradient(100% 100% at 50% 0%, rgba(212, 175, 55, 0.12) 0%, rgba(18, 18, 21, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.95),
    0 0 35px 2px rgba(212, 175, 55, 0.2),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  border-radius: 20px;
}

.pulse-dot-ring {
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  animation: pulseRing 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseRing {
  to {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }
}

/* Multi-Tone TLD & Category Badges */
.badge-tld-com {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(180, 83, 9, 0.2) 100%);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}
.badge-tld-info {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}
.badge-tld-link {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(79, 70, 229, 0.2) 100%);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}
.badge-tld-xyz {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(192, 38, 211, 0.2) 100%);
  color: #E879F9;
  border: 1px solid rgba(217, 70, 239, 0.4);
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.15);
}
.badge-tld-default {
  background: rgba(161, 161, 170, 0.15);
  color: #D4D4D8;
  border: 1px solid rgba(161, 161, 170, 0.3);
}

/* 3D Domain Cards with Interactive Tilt & Mouse Spotlight */
.domain-card {
  transform-style: preserve-3d;
  border-radius: 12px;
  background: 
    radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(212, 175, 55, 0.1),
      transparent 40%
    ),
    var(--bg-card);
  transition: 
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  box-shadow: var(--shadow-card-3d);
}

.domain-card:hover {
  transform: translateY(-8px) rotateX(2.5deg) rotateY(-2deg) scale(1.015);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-3d-hover);
}

/* Card Interior 3D Elevate Items */
.domain-card .card-3d-elevate {
  transform: translateZ(20px);
  transition: transform 0.4s ease;
}

/* Category Pills - Interactive Multi-Tone Multi-Layer */
.category-pill {
  transition: all 0.25s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  border-radius: 8px;
}
.category-pill:hover {
  border-color: var(--gold-amber);
  color: #FAFAFA;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(245, 158, 11, 0.25);
}
.category-pill.active {
  background: var(--accent-gradient);
  color: #070709 !important;
  font-weight: 800;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

/* Gold Shimmer 3D Buttons */
.btn-buy {
  position: relative;
  overflow: hidden;
  background: var(--accent-gradient);
  color: #070709;
  font-weight: 800;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.btn-buy::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-buy:hover::before {
  transform: rotate(30deg) translateX(100%);
}
.btn-buy:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  color: #000000;
}

.btn-offer {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-amber);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.25s ease;
}
.btn-offer:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-amber);
  color: #FAFAFA;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.btn-detail {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-heading, #FAFAFA);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.25s ease;
}
.btn-detail:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-amber, #F59E0B);
  color: #FAFAFA;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

/* Custom Inputs */
.custom-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  border-radius: 8px;
  transition: all 0.25s ease;
}
.custom-input::placeholder {
  color: var(--text-muted);
}
.custom-input:focus {
  border-color: var(--gold-amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  items-center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* High-End Editorial Blog Typography Styling */
.blog-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-body);
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-primary);
}

.blog-content h3 {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.blog-content ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.blog-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.blog-content ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.blog-content blockquote, .blog-callout {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-hover);
  border-left: 4px solid var(--accent-primary);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--text-heading);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-content code {
  background: var(--bg-input);
  color: #38bdf8;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

.blog-content a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.blog-content a:hover {
  color: #a5b4fc;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
html.dark ::-webkit-scrollbar-track {
  background: #0b0f17;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
html.light ::-webkit-scrollbar-track {
  background: #f8fafc;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Hide Scrollbar Utilities for Touch Swiping */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile Alignment & Touch Enhancements */
@media (max-width: 767px) {
  /* Stat Card Dividers for 2-column mobile grid */
  .stat-card-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
  }
  .stat-card-item:nth-child(odd) {
    border-right: 1px solid var(--border-color) !important;
  }
  .stat-card-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Responsive Blog Typography for Mobile */
  .blog-content {
    font-size: 1rem;
    line-height: 1.7;
  }
  .blog-content h2 {
    font-size: 1.4rem;
    margin-top: 1.75rem;
  }
  .blog-content h3 {
    font-size: 1.15rem;
  }

  /* Modal Safe Heights for Mobile Keyboards and Small Viewports */
  .modal-content {
    max-height: 92vh !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Touch-friendly Minimum Tap Target Sizes */
  button, a, input, select {
    min-height: 38px;
  }
  .category-pill {
    min-height: 34px;
  }
}

/* Custom Table Responsiveness & Touch Scroll */
.custom-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.custom-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.custom-table th,
.custom-table td {
  white-space: nowrap !important;
}

