/* ==========================================================================
   VIOLET GLOW ULTRA-MODERN DARK THEME STYLESHEET
   ========================================================================== */

@layer base {
  :root {
    /* Premium Violet Theme Variables */
    --main: 263 85% 64%;          /* Vibrant Electric Violet scale */
    --main-rgb: 139, 92, 246;     /* Purple RGB equivalent */
    
    --bg-dark: 247 24% 7%;        /* Deep obsidian slate */
    --bg-card: 245 19% 12%;       /* Luxury dark card background */
    --border-color: 243 16% 21%;  /* Dark violet-tinged border */
    --text-white: 0 0% 98%;
    --text-muted: 244 8% 70%;
    
    --success: 142 71% 45%;       /* High visibility mint green */
    --error: 350 89% 60%;         /* High visibility rose red */
  }
}

/* Base Utility Alignments */
.base-color {
  color: hsl(var(--main)) !important;
  text-shadow: 0 0 15px rgba(var(--main-rgb), 0.3);
}

.radius--10px {
  border-radius: 10px;
}

/* Header & Nav Elements */
.header .nav-right a {
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.05);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .nav-right a:hover {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

/* Copy Animation & Input Fields */
.copyInput {
  display: inline-block;
  line-height: 46px;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  text-align: center;
  font-size: 16px;
  color: hsl(var(--text-muted));
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.copyInput:hover {
  color: hsl(var(--main));
  background: rgba(139, 92, 246, 0.1);
  transform: scale(1.05);
}

.copied::after {
  position: absolute;
  top: -35px;
  right: 10px;
  width: 75px;
  display: block;
  content: "COPIED";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 4px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, hsl(var(--main)), #4f46e5);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  animation: showcopied 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.9);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-5px) scale(0.95);
  }
}

/* Cookies Consent Card */
.cookies-card {
  width: 465px;
  padding: 24px;
  color: hsl(var(--text-white));
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(145deg, #161426, #0e0d18);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
}

.cookies-card.hide {
  transform: translateY(150%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.cookies-btn {
  background: linear-gradient(135deg, hsl(var(--main)), #6366f1);
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 28px;
  margin: 4px;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.cookies-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Input Validator Popup Tooltip */
.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup:focus-within .input-popup,
.hover-input-popup .input-popup.active {
  display: block;
  position: absolute;
  bottom: 110%;
  left: 50%;
  width: 290px;
  background: #151322;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.1);
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  transform: translateX(-50%);
  z-index: 40;
  animation: popupFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.input-popup::after {
  position: absolute;
  content: "";
  bottom: -10px;
  left: 50%;
  margin-left: -10px;
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: rgba(139, 92, 246, 0.3) transparent transparent transparent;
}

.input-popup p {
  padding-left: 24px;
  position: relative;
  font-size: 13px;
  margin-bottom: 8px;
  color: hsl(var(--text-muted));
}

.input-popup p.error::before {
  content: "✕";
  color: hsl(var(--error));
  font-weight: bold;
}

.input-popup p.success::before {
  content: "✓";
  color: hsl(var(--success));
  font-weight: bold;
}

/* Premium Payment Gateway Design */
.gateway-card {
  background: linear-gradient(150deg, #151322, #0d0c15);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 24px;
}

.payment-card-title {
  padding: 14px 20px;
  text-align: center;
  background: linear-gradient(135deg, hsl(var(--main)), #4f46e5);
  border-radius: 8px;
  color: #fff;
}

.payment-system-list {
  --thumb-width: 100px;
  --thumb-height: 42px;
  --radio-size: 14px;
  --border-color: rgba(139, 92, 246, 0.12);
  --hover-border-color: hsl(var(--main));
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.payment-item.active {
  border-left: 3px solid var(--hover-border-color);
}