/* ==========================================
   Design System & Variable Declarations (Sleek Dark Theme)
   ========================================== */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Premium Sleek Dark Colors */
  --bg-dark: #07070a;
  --card-bg: #0e0e13;
  --card-border: #1d1d26;
  --card-border-glow: rgba(99, 102, 241, 0.15);
  
  --text-primary: #f3f4f6;
  --text-muted: #858594;
  --text-dark: #121217;

  /* Product-specific fallback */
  --product-color: #6366f1;
  --product-color-glow: rgba(99, 102, 241, 0.2);

  /* Semantic Colors */
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.15);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;

  /* Card Dimensions */
  --card-width: 440px;
  --card-height: 520px;
}

/* ==========================================
   Base Structure & Layout
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  /* Premium Dark Radial Grid Overlay */
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 0% 0%, rgba(229, 9, 20, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
}

.bg-glow-container {
  display: none; /* Removed the cheesy neon bubbles */
}

.hidden {
  display: none !important;
}

/* Screen-specific hide: keeps element in flex layout but makes it invisible/unclickable */
.screen-hidden {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}


/* ==========================================
   Header Branding Navbar
   ========================================== */
.header {
  width: 100%;
  max-width: 1100px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-icon {
  color: var(--product-color);
  filter: drop-shadow(0 0 8px var(--product-color-glow));
  transition: all 0.3s ease;
}

.logo span {
  color: var(--text-primary);
}

.logo .text-accent {
  color: var(--product-color);
  transition: all 0.3s ease;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--success); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================
   Central Modal Area & Card Flipping
   ========================================== */
.main-container {
  flex-grow: 1;
  width: 100%;
  z-index: 5;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.perspective-wrapper {
  perspective: 1500px;
  width: var(--card-width);
  height: var(--card-height);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.flip-card.redeemed {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  backface-visibility: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 30px var(--card-border-glow);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.card-face:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
}

/* ==========================================
   Card Elements & Headers
   ========================================== */
.card-header {
  text-align: center;
  margin-bottom: 24px;
}

.icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}

.icon-wrapper i {
  font-size: 1.5rem;
  color: var(--product-color);
  filter: drop-shadow(0 0 5px var(--product-color-glow));
}

.card-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================
   Form Fields & Input Styling
   ========================================== */
.redeem-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  justify-content: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.input-container:focus-within {
  border-color: var(--product-color);
  box-shadow: 0 0 12px var(--product-color-glow);
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

.input-container input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 14px 14px 40px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
}

.input-glow {
  display: none; /* Removed AI glow overlay */
}

.submit-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.submit-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================
   Error Handling & Shakes
   ========================================== */
.error-msg {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.error-msg.visible {
  display: block;
}

.input-container.error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 10px var(--danger-glow) !important;
}

.flip-card.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* ==========================================
   Live Detection Status Bar
   ========================================== */
.detector-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.detector-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.detector-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detector-left i {
  color: var(--product-color);
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-checksum {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
}

.badge-indb {
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
}

/* ==========================================
   Card Footer
   ========================================== */
.card-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-footer i {
  color: var(--product-color);
}

/* ==========================================
   Success Outcome Screen (Back of Card)
   ========================================== */
.success-icon-wrapper {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}

.success-icon-wrapper i {
  color: var(--success);
  filter: drop-shadow(0 0 6px var(--success-glow));
}

.reward-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
  flex-grow: 1;
  justify-content: center;
}

.reward-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: center;
}

/* Custom Segmented Slider Tabs Control */
.tabs-container {
  display: flex;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 8px;
}

.tabs-container.hidden {
  display: none !important;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 4px;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: #181824;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* The Masked Reward Box */
.reward-box {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.reward-box.hidden {
  display: none !important;
}

.reward-text {
  font-family: monospace, Courier, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
  flex-grow: 1;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

/* TV Activation Code Input Elements */
.tv-activation-box {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.tv-activation-box.hidden {
  display: none !important;
}

.tv-instruction-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.tv-code-input-container {
  display: flex;
  gap: 8px;
}

.tv-code-input-container input {
  flex-grow: 1;
  background: #111117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.tv-code-input-container input:focus {
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
}

.tv-submit-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.tv-submit-btn:hover {
  background: #e5e7eb;
}

.tv-submit-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
}

.tv-status-message {
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.4;
  min-height: 18px;
  transition: all 0.3s ease;
}

.tv-status-message.success {
  color: var(--success);
  font-weight: 600;
}

.tv-status-message.error {
  color: var(--danger);
  font-weight: 600;
}

.tv-status-message.loading {
  color: var(--product-color);
}

.tv-manual-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tv-manual-divider::before, .tv-manual-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tv-manual-divider span {
  padding: 0 8px;
}

.tv-manual-btn {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tv-manual-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
}

/* ==========================================
   Action & Tooltips Layout
   ========================================== */
.action-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-link-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
  transform: translateY(-1px);
}

.action-link-btn.hidden {
  display: none !important;
}

.instructions-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.instructions-box.hidden {
  display: none !important;
}

.instructions-box i {
  color: var(--product-color);
  font-size: 0.95rem;
  margin-top: 2px;
}

.instructions-content {
  flex-grow: 1;
}

/* ==========================================
   Secondary Action (Reset / Go Back)
   ========================================== */
.success-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.replacement-btn {
  background: rgba(245, 158, 11, 0.03);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--warning);
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.02);
}

.replacement-btn:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--warning);
  color: #fff;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.replacement-btn:active {
  transform: translateY(1px);
}

.replacement-btn:disabled {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.replacement-btn.hidden {
  display: none !important;
}

.replace-spinner {
  font-size: 0.9rem;
}

.secondary-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ==========================================
   Step-by-step Status Checklist
   ========================================== */
.dropdown-panel {
  width: var(--card-width);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  display: none;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px var(--card-border-glow);
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-panel.visible {
  display: block;
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.dropdown-header {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-product {
  color: #fff;
  background: var(--product-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
}

.status-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.005);
  transition: all 0.3s ease;
}

.status-step .checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.checkbox i {
  position: absolute;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.step-icon-check {
  opacity: 0;
  transform: scale(0.5);
}

.step-icon-spinner {
  opacity: 0;
}

.status-step .step-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

/* Active State */
.status-step.active {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}

.status-step.active .checkbox {
  border-color: var(--product-color);
  box-shadow: 0 0 8px var(--product-color-glow);
}

.status-step.active .step-icon-default {
  opacity: 0;
}

.status-step.active .step-icon-spinner {
  opacity: 1;
  color: var(--product-color);
}

.status-step.active .step-text {
  color: #fff;
}

/* Completed State */
.status-step.completed {
  border-color: rgba(16, 185, 129, 0.1);
}

.status-step.completed .checkbox {
  background: var(--success);
  border-color: var(--success);
}

.status-step.completed .step-icon-default {
  opacity: 0;
}

.status-step.completed .step-icon-check {
  opacity: 1;
  transform: scale(1);
  color: #fff;
  font-weight: 700;
}

.status-step.completed .step-text {
  color: var(--text-muted);
}

/* ==========================================
   Toast Notification System
   ========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--success);
}

/* ==========================================
   Responsive Adaptations
   ========================================== */
@media (max-width: 500px) {
  .perspective-wrapper, .dropdown-panel {
    width: 100%;
    max-width: 380px;
  }
  .card-face {
    padding: 24px;
  }
}

/* ==========================================
   Header Rights & Authentication Widget
   ========================================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-status-container {
  display: flex;
  align-items: center;
}

.auth-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 8px 16px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.auth-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-1px);
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-greeting {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.user-greeting strong {
  color: #fff;
}

.logout-btn {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 99px;
  padding: 6px 12px;
  color: var(--danger);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--danger);
  color: #fff;
}

/* ==========================================
   Card Front Segmented Tabs
   ========================================== */
.front-tabs {
  display: flex;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 20px;
  width: 100%;
}

.front-tabs.hidden {
  display: none !important;
}

.front-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 4px;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.front-tab-btn:hover {
  color: #fff;
}

.front-tab-btn.active {
  background: #181824;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.card-front-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   User Inventory Layout
   ========================================== */
.inventory-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
  min-height: 250px;
}

.inventory-container.hidden {
  display: none !important;
}

.inventory-claim-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-container-claim {
  position: relative;
  display: flex;
  align-items: center;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

.input-container-claim:focus-within {
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
}

.input-icon-claim {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.input-container-claim input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 10px 10px 34px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  outline: none;
}

.claim-submit-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  margin-right: 4px;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.claim-submit-btn:hover {
  background: #f3f4f6;
}

.claim-status-message {
  font-size: 0.75rem;
  min-height: 14px;
  line-height: 1.2;
}

.claim-status-message.success {
  color: var(--success);
}

.claim-status-message.error {
  color: var(--danger);
}

.claim-status-message.loading {
  color: var(--product-color);
}

.inventory-list {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inventory-list::-webkit-scrollbar {
  width: 4px;
}

.inventory-list::-webkit-scrollbar-track {
  background: transparent;
}

.inventory-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.inventory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.inventory-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
  transform: translateY(-1px);
}

.inventory-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex-grow: 1;
}

.inventory-item-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.inventory-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.inventory-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.inventory-item-key {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.inventory-item-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.inventory-view-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.inventory-item:hover .inventory-view-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.inventory-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-grow: 1;
  min-height: 180px;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.003);
}

.inventory-empty i {
  color: var(--product-color);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.empty-subtext {
  font-size: 0.65rem;
  opacity: 0.7;
  max-width: 200px;
  line-height: 1.3;
}

/* ==========================================
   Premium Blur Authentication Modal
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  width: 90%;
  max-width: 380px;
  padding: 32px;
  position: relative;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px var(--card-border-glow);
  transform: scale(0.9) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay:not(.hidden) .auth-modal-card {
  transform: scale(1) translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: color 0.2s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  color: #fff;
}

.auth-tabs {
  display: flex;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2px;
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.auth-tab-btn:hover {
  color: #fff;
}

.auth-tab-btn.active {
  background: #181824;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form.hidden {
  display: none !important;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-group label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

.auth-input-container:focus-within {
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
}

.auth-input-container i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-input-container input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 11px 12px 11px 34px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  outline: none;
}

.auth-error-msg {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 16px;
  text-align: center;
}

.auth-submit-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.auth-submit-btn:hover {
  background: #f3f4f6;
}

.auth-submit-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
}

.auth-spinner {
  font-size: 0.85rem;
}

/* ==========================================
   Horizontal Carousel Screen Slider
   ========================================== */
.screens-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.screens-slider {
  display: flex;
  width: 300vw;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.screen {
  width: 100vw;
  min-height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  box-sizing: border-box;
}

/* Nav Arrow Buttons on Viewport Borders */
.nav-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 14, 19, 0.4);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-arrow-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-arrow-btn.left-arrow {
  left: 24px;
}

.nav-arrow-btn.right-arrow {
  right: 24px;
}

/* ==========================================
   Shop Catalog Layout
   ========================================== */
.shop-container {
  width: 100%;
  max-width: 960px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.shop-header {
  text-align: center;
}

.shop-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.shop-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--product-color);
  box-shadow: 0 0 20px var(--product-color-glow);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.product-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.15);
}

.product-image-container {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon-overlay {
  font-size: 3.5rem;
  color: var(--product-color);
  filter: drop-shadow(0 0 8px var(--product-color-glow));
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.product-buy-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-buy-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.product-buy-btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================
   Checkout Slide-Modal Form Layout
   ========================================== */
.checkout-modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  width: 90%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px var(--card-border-glow);
  transform: scale(0.9) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.checkout-subtitle {
  font-size: 0.85rem;
  color: var(--product-color);
  text-align: center;
  margin-top: -6px;
  margin-bottom: 20px;
  font-weight: 700;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-input-group label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

.checkout-input-container:focus-within {
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
}

.checkout-input-container i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.checkout-input-container input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 11px 12px 11px 34px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  outline: none;
}

.checkout-input-row {
  display: flex;
  gap: 12px;
}

.half-width {
  width: 50%;
}

.checkout-help-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.3;
  opacity: 0.8;
}

.checkout-error-msg {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 16px;
  text-align: center;
}

.checkout-submit-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.checkout-submit-btn:hover {
  background: #f3f4f6;
}

.checkout-submit-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
}

.checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 16px 0;
}

.checkout-success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-payment-icon {
  font-size: 2.25rem;
  color: var(--success);
  filter: drop-shadow(0 0 8px var(--success-glow));
}

.checkout-success h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.checkout-success-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkout-key-box {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.checkout-done-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
  margin-top: 8px;
}

.checkout-done-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================
   Sidebar Administrative Dashboard Modal (Upgraded Pro Edition)
   ========================================== */
.admin-modal-card {
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 95%;
  max-width: 1200px;
  height: 780px;
  display: flex;
  overflow: hidden;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(99, 102, 241, 0.12);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.modal-overlay:not(.hidden) .admin-modal-card {
  transform: scale(1) translateY(0);
}

.admin-sidebar {
  width: 250px;
  background: rgba(5, 5, 8, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-shrink: 0;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.admin-logo i {
  color: var(--product-color);
  font-size: 1.25rem;
  filter: drop-shadow(0 0 8px var(--product-color-glow));
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
}

.admin-nav-btn.active {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.05);
}

.admin-content-window {
  flex-grow: 1;
  padding: 40px;
  overflow-y: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.admin-tab-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  animation: tabFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.admin-tab-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

/* Dashboard Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.stat-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-icon-wrapper.blue-glow { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.stat-icon-wrapper.green-glow { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.stat-icon-wrapper.gold-glow { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.stat-icon-wrapper.purple-glow { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

/* Administrative Search Fields */
.admin-search-box {
  position: relative;
  width: 100%;
}

.admin-search-box.compact {
  max-width: 250px;
}

.admin-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-search-box input {
  width: 100%;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  outline: none;
  transition: all 0.3s ease;
}

.admin-search-box input:focus {
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
}

/* Administrative Tables & Layouts */
.admin-table-container {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 5, 8, 0.4);
  width: 100%;
}

.admin-table-container.scrollable-table-container {
  max-height: 480px;
  overflow-y: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.admin-table th {
  background: #09090d;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 18px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

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

/* Split Column Layouts */
.admin-split-layout {
  display: flex;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
}

.admin-split-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-split-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-split-left.products-dir-col {
  max-width: 440px;
}

.admin-panel-card-inner {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-panel-card-inner h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.admin-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.admin-header-flex h2, .admin-header-flex h3 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* Form layouts */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.admin-form.full-width-form {
  max-width: 600px;
}

.admin-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-input-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-input-group input, 
.admin-input-group select, 
.admin-input-group textarea {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.25s ease;
}

.admin-input-group input:focus, 
.admin-input-group select:focus, 
.admin-input-group textarea:focus {
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
}

.admin-input-group .help-text {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Administrative Buttons */
.admin-submit-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.admin-submit-btn:hover {
  background: #e4e5e7;
  transform: translateY(-1px);
}

.admin-submit-btn:active {
  transform: translateY(1px);
}

.admin-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-action-btn.compact {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.admin-action-btn.secondary {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.admin-action-btn.secondary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--product-color);
  color: #fff;
}

.admin-action-btn.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.admin-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: var(--danger);
  color: #fff;
}

.admin-product-btn-row {
  display: flex;
  gap: 12px;
}

.admin-product-btn-row .admin-submit-btn {
  flex-grow: 1;
}

/* Products Directory list inside Shop tab */
.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-prod-dir-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-prod-dir-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.admin-prod-dir-item.active {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.2);
}

.admin-prod-dir-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-prod-dir-left img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-prod-dir-fallback-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.admin-prod-dir-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-prod-dir-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.admin-prod-dir-info code {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.admin-prod-dir-info .price-lbl {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 700;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--product-color);
}

.admin-btn {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 99px;
  padding: 6px 12px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.admin-btn:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--product-color);
  box-shadow: 0 0 10px var(--product-color-glow);
}

.admin-btn.hidden {
  display: none !important;
}

/* Product Management Styles */
.admin-prod-dir-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-prod-dir-container:empty::after {
  content: "No products yet. Create one to get started.";
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px;
  opacity: 0.7;
}

.admin-button-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.admin-button-group .admin-submit-btn {
  flex-grow: 1;
}

.admin-button-group .admin-action-btn.danger {
  min-width: 100px;
}

/* Admin Form Status Messages */
.admin-form-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  text-align: center;
  display: none;
  margin-top: 8px;
  animation: slideInDown 0.3s ease;
}

.admin-form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #86efac;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive text overflow handling */
.admin-input-group input,
.admin-input-group textarea,
.admin-input-group select {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Ensure buttons don't overflow text */
button {
  overflow: visible;
  white-space: normal;
}

/* Configurable System Offer Marquee Banner */
.ads-banner {
  width: 100%;
  height: 36px;
  background: linear-gradient(90deg, #181824 0%, #0a0a0f 50%, #181824 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  position: relative;
}

.ads-banner.hidden {
  display: none !important;
}

.ads-marquee {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulseGlow 3s infinite;
}

.ads-icon {
  color: var(--warning);
}

@keyframes pulseGlow {
  0% { opacity: 0.85; }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }
  100% { opacity: 0.85; }
}

/* Footer Social Contacts (Discord / Telegram) */
.social-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  justify-content: center;
}

.social-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
}

.social-icon.discord:hover {
  color: #5865f2;
  filter: drop-shadow(0 0 6px rgba(88, 101, 242, 0.4));
  transform: scale(1.15);
}

.social-icon.telegram:hover {
  color: #0088cc;
  filter: drop-shadow(0 0 6px rgba(0, 136, 204, 0.4));
  transform: scale(1.15);
}

/* Country Select Dropdown Options Styling */
#countrySelect option {
  background: #0a0a0f !important;
  color: #ffffff !important;
}

