/* ============================================
   LIQUID GLASS THEME - Glassmorphism Design
   ============================================ */

/* CSS Variables */
:root {
  --glass-bg: rgba(10, 12, 22, 0.55);
  --glass-border: rgba(99, 102, 241, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.45);
  --primary-color: #22d3ee;
  --primary-hover: #0ea5e9;
  --text-primary: #e2e8f0;
  --text-soft: rgba(226, 232, 240, 0.7);
  --blur-amount: 14px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Cyber Theme Variables */
  --cyber-primary: #00ff88;
  --cyber-secondary: #6366f1;
  --cyber-accent: #22d3ee;
  --cyber-dark: #0a0f14;
  --cyber-surface: rgba(10, 15, 20, 0.9);
  --text-color: #e2e8f0;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(
    circle at top,
    #0f172a 0%,
    #020617 45%,
    #000 100%
  );
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Background Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob.b1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.4);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.blob.b2 {
  width: 600px;
  height: 600px;
  background: rgba(236, 72, 153, 0.4);
  bottom: -200px;
  right: -200px;
  animation-delay: 7s;
}

.blob.b3 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-100px, 100px) scale(0.9);
  }
}

/* Glass Card Base */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  z-index: 1;
}

.tilt-mode-active .glass-card:hover {
  transform: translateY(-2px);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Navbar Glass */
.nav-glass {
  background: rgba(2, 6, 23, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  padding: 1rem 0;
}

.nav-glass .navbar-brand {
  color: var(--text-primary);
  font-size: 1.5rem;
  text-decoration: none;
}

.brand-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #22d3ee;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
}

.nav-glass .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem !important;
  border-radius: 10px;
}

.nav-glass .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  border-radius: 12px;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  color: white;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color) !important;
  color: white !important;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  padding-top: 6rem !important;
}

.pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.text-soft {
  color: var(--text-soft);
}

/* Tilt Mode */
.tilt-mode-active .tilt-card {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.tilt-card {
  transition: var(--transition);
  transform-style: preserve-3d;
}

.tilt-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.tilt-mode-active .tilt-card:hover::after {
  opacity: 1;
}

/* Enhanced Glass Reflection */
.glass-card {
  position: relative;
}

.glass-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.glass-card:hover::after {
  opacity: 1;
  animation: shimmer 3s ease-in-out infinite;
}

.tilt-mode-active .glass-card::after {
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Product Cards */
.product-card {
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.product-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(236, 72, 153, 0.2)
  );
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.product-img::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.product-img::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

/* Mock Product */
.mock-product {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.3),
    rgba(236, 72, 153, 0.3)
  );
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.mock-product::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Dots */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.dot.yellow {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.dot.green {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* Price */
.price {
  color: var(--primary-color);
  font-weight: 700;
}

/* Glass Progress Bar */
.glass-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.glass-progress .progress-bar {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    rgba(236, 72, 153, 0.8)
  );
  border-radius: 10px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Glass HR */
.hr-glass {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  margin: 1.5rem 0;
}

/* Input Glass */
.input-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.input-glass .input-group-text {
  background: transparent;
  border: none;
  color: var(--text-primary);
}

.btn-reveal {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-primary);
}

.btn-reveal:focus {
  outline: none;
  box-shadow: none;
}

.cart-link .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-badge-wrap {
  position: relative;
  display: inline-flex;
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #22d3ee;
  color: #031019;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

.cart-qty-input {
  width: 70px;
  text-align: center;
}

.security-meter {
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.35);
  overflow: hidden;
}

.security-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.4), #22d3ee);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  position: relative;
  animation: securityScan 2.4s ease-in-out infinite;
}

.security-keyword {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-right: 4px;
  color: rgba(34, 211, 238, 0.9);
}

.security-meter span::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  animation: securitySweep 1.8s linear infinite;
}

@keyframes securityScan {
  0% {
    filter: brightness(0.8);
  }
  50% {
    filter: brightness(1.4);
  }
  100% {
    filter: brightness(0.9);
  }
}

@keyframes securitySweep {
  0% {
    left: -30%;
  }
  100% {
    left: 100%;
  }
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-thumb {
  height: 120px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: inset 0 0 24px rgba(2, 6, 23, 0.6);
}

.category-thumb::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.05),
    rgba(2, 6, 23, 0.65)
  );
}

.btn-power {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-power:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fee2e2;
}

.input-glass .form-control {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.75rem;
}

.input-glass .form-control::placeholder {
  color: var(--text-soft);
}

.input-glass .form-control:focus {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-primary);
}

.select-glass {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  padding: 0.75rem;
}

.select-glass:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

.select-glass option {
  background: rgba(30, 41, 59, 0.95);
  color: white;
}

/* Mini Cards */
.mini-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  transition: var(--transition);
}

.mini-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon-big {
  font-size: 2.5rem;
  color: var(--primary-color);
  display: block;
}

/* Accordion Glass */
.accordion-glass {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
}

.accordion-glass .accordion-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-glass .accordion-button {
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  border: none;
  padding: 1.25rem;
}

.accordion-glass .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-glass .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-glass .accordion-body {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
}

.accordion-glass .accordion-button::after {
  filter: brightness(0) saturate(100%);
}

/* Modal Glass */
.modal-glass {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-glass .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-glass .modal-title {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-glass .btn-close {
  filter: brightness(0) saturate(100%);
  opacity: 0.7;
}

.modal-glass .btn-close:hover {
  opacity: 1;
}

.modal-glass .modal-body {
  color: var(--text-primary);
}

/* Quick View Image */
.qv-img {
  width: 100%;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.3),
    rgba(167, 139, 250, 0.3)
  );
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.qv-img::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.qv-img::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

/* Toast Glass */
.toast-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.toast-glass .toast-body {
  color: var(--text-primary);
  font-weight: 500;
}

/* Badge */
.badge {
  padding: 0.35rem 0.65rem;
  font-weight: 500;
  border-radius: 8px;
}

.text-bg-light {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(10px);
}

.badge-escrow {
  background: rgba(34, 211, 238, 0.2) !important;
  color: #22d3ee !important;
  border: 1px solid rgba(34, 211, 238, 0.5);
}

.border-soft {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Escrow Terminal Overlay */
.escrow-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.escrow-overlay.active {
  display: flex;
}

.escrow-terminal {
  width: min(680px, 90vw);
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #22d3ee;
}

.terminal-body {
  padding: 18px;
  font-family: "Space Grotesk", monospace;
  color: #22d3ee;
}

.terminal-line {
  margin-bottom: 8px;
  opacity: 0.9;
}

.terminal-line::before {
  content: "> ";
  color: rgba(34, 211, 238, 0.6);
}

.terminal-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.4);
  overflow: hidden;
  margin-top: 14px;
}

.terminal-progress .progress-bar {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.3),
    #22d3ee,
    rgba(34, 211, 238, 0.35)
  );
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  animation: terminalPulse 1.6s ease-in-out infinite;
}

.livewire-loading {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #22d3ee;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.livewire-loading-text {
  font-weight: 600;
}

.btn-hack {
  position: relative;
  overflow: hidden;
}

.btn-hack::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(34, 211, 238, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-hack:hover::after {
  left: 120%;
}

.btn-hack .btn-hack-loader {
  display: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-hack.is-loading .btn-label {
  display: none;
}

.btn-hack.is-loading .btn-hack-loader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-hack.is-loading .btn-hack-loader::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.6);
  border-top-color: #22d3ee;
  animation: hackSpin 0.9s linear infinite;
}

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

@keyframes terminalPulse {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(60%);
  }
  100% {
    transform: translateX(220%);
  }
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .blob {
    filter: blur(60px);
  }

  .blob.b1 {
    width: 300px;
    height: 300px;
  }

  .blob.b2 {
    width: 400px;
    height: 400px;
  }

  .blob.b3 {
    width: 250px;
    height: 250px;
  }

  .glass-card {
    border-radius: 15px;
  }

  .hero {
    padding-top: 4rem !important;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section Spacing */
section {
  position: relative;
  z-index: 1;
}

/* Container Override */
.container {
  position: relative;
  z-index: 1;
}

/* Tilt Mode Indicator */
#tiltToggle {
  position: relative;
  min-width: 42px;
}

#tiltToggle.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: var(--primary-color);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

#tiltToggle.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(99, 102, 241, 1);
  animation: tiltPulse 2s ease-in-out infinite;
}

#tiltToggle.active #tiltIcon {
  animation: tiltIconRotate 2s ease-in-out infinite;
}

@keyframes tiltPulse {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

@keyframes tiltIconRotate {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

/* Enhanced Liquid Effects */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(34, 211, 238, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(167, 139, 250, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(16, 185, 129, 0.12) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
  animation: liquidFlow 25s ease-in-out infinite;
}

/* Matrix Canvas */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  background-image:
    radial-gradient(
      ellipse at center,
      rgba(0, 255, 136, 0.03) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, #000 0%, #050810 100%);
  z-index: 9999;
  color: #00ff88;
  font-family: "JetBrains Mono", "Space Grotesk", monospace;
  letter-spacing: 0.15em;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tor-logo {
  margin-bottom: 10px;
}

.onion-icon {
  animation: rotateOnion 8s linear infinite;
}

.onion-icon circle {
  animation: pulseRing 2s ease-in-out infinite;
}

.onion-icon circle:nth-child(1) {
  animation-delay: 0s;
}
.onion-icon circle:nth-child(2) {
  animation-delay: 0.2s;
}
.onion-icon circle:nth-child(3) {
  animation-delay: 0.4s;
}
.onion-icon circle:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes rotateOnion {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    stroke-opacity: 0.3;
  }
  50% {
    stroke-opacity: 1;
  }
}

.loader-grid {
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 6px;
  margin-bottom: 16px;
}

.loader-grid span {
  width: 12px;
  height: 12px;
  background: rgba(0, 255, 136, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
  animation: pulseGrid 1.2s infinite ease-in-out;
}

.loader-grid span:nth-child(2) {
  animation-delay: 0.1s;
}
.loader-grid span:nth-child(3) {
  animation-delay: 0.2s;
}
.loader-grid span:nth-child(4) {
  animation-delay: 0.3s;
}
.loader-grid span:nth-child(5) {
  animation-delay: 0.4s;
}
.loader-grid span:nth-child(6) {
  animation-delay: 0.5s;
}
.loader-grid span:nth-child(7) {
  animation-delay: 0.6s;
}
.loader-grid span:nth-child(8) {
  animation-delay: 0.7s;
}
.loader-grid span:nth-child(9) {
  animation-delay: 0.8s;
}

.loader-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  transition: opacity 0.2s ease;
}

.connection-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding: 12px 20px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
}

.info-row {
  display: flex;
  gap: 12px;
  font-size: 0.65rem;
}

.info-label {
  color: #6b7280;
}

.info-value {
  color: #00b4d8;
}

.route-visualization {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: nodeAppear 0.5s ease forwards;
  opacity: 0;
}

@keyframes nodeAppear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.node-dot {
  width: 12px;
  height: 12px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  animation: nodePulse 1.5s ease-in-out infinite;
}

@keyframes nodePulse {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 1);
  }
}

.node-label {
  font-size: 0.5rem;
  color: #6b7280;
  letter-spacing: 0.1em;
}

.route-line {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #00ff88, transparent);
  animation: lineFlow 1s ease-in-out infinite;
}

@keyframes lineFlow {
  0% {
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    background-position: -30px 0;
  }
  100% {
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    background-position: 30px 0;
  }
}

@keyframes pulseGrid {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(34, 211, 238, 0.2);
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0.75rem;
  z-index: 5;
}

/* Push livechat widgets above the mobile bottom nav */
@media (max-width: 991.98px) {
  #live-chat-container,
  /* Crisp */
  .crisp-client .cc-1brb6[data-full-view=true] .cc-1yy0g,
  .crisp-client .cc-tlyz .cc-kxkl,
  /* Tawk.to */
  .widget-visible iframe[title*="chat"],
  #tawk-bubble-container,
  /* Tidio */
  #tidio-chat,
  /* Smartsupp */
  #smartsupp-widget-container,
  /* Generic bottom-right chat buttons */
  [class*="chat-widget"],
  [id*="chat-widget"] {
    bottom: 70px !important;
    margin-bottom: 0 !important;
  }
}

.mobile-bottom-nav .nav-item {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.1rem;
}

.mobile-bottom-nav .nav-market .nav-core {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
}

.mobile-bottom-nav .nav-market {
  color: #22d3ee;
  font-weight: 600;
}

/* Mobile Bottom Nav Active State */
.mobile-bottom-nav .nav-item.active {
  color: var(--cyber-primary, #00ff88);
}

.mobile-bottom-nav .nav-item.active i {
  color: var(--cyber-primary, #00ff88);
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5));
}

.mobile-bottom-nav .nav-item.active span {
  color: var(--cyber-primary, #00ff88);
}

.mobile-bottom-nav .nav-item.active::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--cyber-primary, #00ff88);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.btn-animate {
  animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  }
}

@media (max-width: 991px) {
  body {
    padding-bottom: 72px;
  }
}

@keyframes liquidFlow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.9;
    transform: scale(1.05) rotate(2deg);
  }
  66% {
    opacity: 0.85;
    transform: scale(1.1) rotate(-2deg);
  }
}

/* Glass Morphing Effect */
.glass-card {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    var(--glass-bg);
}

/* Enhanced Blur Layers */
.glass-card {
  backdrop-filter: blur(var(--blur-amount)) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%)
    brightness(1.1);
}

.tilt-mode-active .glass-card {
  backdrop-filter: blur(var(--blur-amount)) saturate(200%) brightness(1.15);
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(200%)
    brightness(1.15);
}

/* Floating Particles Effect */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-10px);
  }
}

/* Smooth Glass Transitions */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════
   SweetAlert2 Cyber Theme Overrides
   ═══════════════════════════════════════════════════════════ */
.swal-cyber-popup {
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(99, 102, 241, 0.1) !important;
  font-family: "Space Grotesk", sans-serif !important;
}

.swal-cyber-popup.swal2-toast {
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
}

.swal-cyber-title {
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 600 !important;
}

.swal-cyber-text {
  font-family: "Space Grotesk", sans-serif !important;
  color: #94a3b8 !important;
}

.swal-cyber-confirm {
  border-radius: 8px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.5rem !important;
}

.swal-cyber-cancel {
  border-radius: 8px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.5rem !important;
}

.swal2-timer-progress-bar {
  background: rgba(99, 102, 241, 0.6) !important;
}

/* ── Cyber Extract Funds Button (mobile, tor-vibe animation) ── */
.cyber-extract-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "Space Grotesk", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  animation: cyberBtnPulse 2.4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.cyber-extract-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 211, 238, 0.15),
    transparent
  );
  animation: cyberSweep 3s linear infinite;
}

.cyber-extract-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.6),
    transparent 40%,
    transparent 60%,
    rgba(99, 102, 241, 0.6)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cyberBorderRotate 4s linear infinite;
  pointer-events: none;
}

.cyber-extract-btn-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
}

.cyber-extract-btn:hover {
  color: #fff;
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow:
    0 0 15px rgba(34, 211, 238, 0.3),
    inset 0 0 15px rgba(34, 211, 238, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

@keyframes cyberBtnPulse {
  0%,
  100% {
    box-shadow:
      0 0 5px rgba(34, 211, 238, 0.15),
      0 0 10px rgba(34, 211, 238, 0.05);
  }
  50% {
    box-shadow:
      0 0 12px rgba(34, 211, 238, 0.3),
      0 0 24px rgba(34, 211, 238, 0.1);
  }
}

@keyframes cyberSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes cyberBorderRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* ── Rich HTML Content (CKEditor output) ── */
.rich-content {
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.rich-content p {
  margin-bottom: 0.75rem;
}

.rich-content p:last-child {
  margin-bottom: 0;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.rich-content li {
  margin-bottom: 0.25rem;
}

.rich-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.rich-content a:hover {
  opacity: 0.8;
}

.rich-content blockquote {
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  margin: 0.75rem 0;
  opacity: 0.85;
  font-style: italic;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.rich-content hr {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 1rem 0;
}
