/* LogoPixel Global Design System & Variables */
:root {
  --font-primary: 'VT323', monospace;
  --font-mono: 'Press Start 2P', monospace;
  
  /* Color Palette */
  --bg-black: #000000;
  --bg-dark: #080810;
  --bg-card: rgba(10, 10, 18, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.45);
  --primary-hover: #34d399;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #4b5563;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  
  --card-radius: 16px;
  --button-radius: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Fullscreen constraints */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0px !important;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 20px;
  overflow: hidden; /* Prevent ANY scrollbars */
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Mesh Background */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    var(--bg-black);
  pointer-events: none;
}

/* Floating Control Panel (Top-Left) */
.control-panel {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: 260px;
  height: 190px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.pixel-stats {
  font-size: 8px;
  color: var(--text-muted);
  line-height: 1.8;
  font-family: var(--font-mono);
  border-left: 2px solid var(--primary);
  padding-left: 10px;
}

.pixel-stats .free-stats {
  color: var(--accent-cyan);
  font-weight: 700;
}

.pixel-stats .price-stat {
  color: var(--primary);
  font-weight: 700;
  margin-top: 2px;
}

.lk-icon-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lk-icon-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.control-panel .logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.logo-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.control-panel .btn {
  width: 100%;
}

/* Floating Footer Box (Bottom-Right) */
.floating-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: right;
  width: 300px;
  height: 130px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-copyright {
  font-weight: 700;
  color: var(--text-main);
}

.footer-author {
  font-weight: 500;
}

.footer-links {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.1);
}

/* Main Canvas Board (Scaled via JS) */
.canvas-board {
  width: 1920px;
  height: 1080px;
  background-color: #020204;
  background-size: 8px 8px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

/* Absolute Pixel-Perfect Ad Logo Items */
.logo-item {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item:hover {
  box-shadow: 0 0 25px var(--primary-glow);
  z-index: 999 !important;
}

.logo-item.logo-item-booked {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 8px,
    rgba(0, 0, 0, 0.5) 8px,
    rgba(0, 0, 0, 0.5) 16px
  );
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px;
  cursor: default;
}

.logo-item.logo-item-booked:hover {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  border-color: #f59e0b;
}

.logo-item img {
  width: 100%;
  height: 100%;
  background: transparent;
  transform: scale(1.02);
  object-fit: contain; /* Prevent vertical/horizontal stretching */
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Buttons */
.btn {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  padding: 12px 24px;
  border-radius: var(--button-radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary) 100%);
}

.btn-primary:disabled {
  background: var(--text-dark);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Tooltip / Details overlay */
.logo-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 10px rgba(16, 185, 129, 0.1);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.logo-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tooltip-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.tooltip-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px;
}

.tooltip-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tooltip-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-main);
  font-weight: 500;
}

.tooltip-link {
  color: var(--accent-cyan);
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: var(--transition-smooth);
}

.tooltip-link:hover {
  color: #22d3ee;
  transform: translateX(2px);
}

/* Dialog Backdrop blur */
.quiz-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
}

/* Quiz Modal */
.quiz-dialog {
  margin: auto;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(12, 12, 20, 0.8);
  backdrop-filter: blur(25px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 50px rgba(16, 185, 129, 0.15);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-main);
  outline: none;
  padding: 0;
}

.quiz-container {
  padding: 40px;
  position: relative;
}

.quiz-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 100;
}

.quiz-close-btn:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

/* Steps Indicator */
.steps-progress {
  position: relative;
  margin-bottom: 40px;
  padding: 0 10px;
}

.steps-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-cyan) 100%);
  transform: translateY(-50%);
  z-index: 2;
  width: 0%;
  transition: width 0.4s ease;
}

.step-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-dot.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.step-dot.completed {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  color: var(--bg-black);
}

/* Step Content Transitions */
.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: stepFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  gap: 16px;
}

.step-actions button:only-child,
.step-actions .next-step-btn:first-child {
  margin-left: auto;
}

/* Step 1: Upload Zone */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.04);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.upload-zone:hover .upload-icon {
  color: var(--primary);
  transform: translateY(-2px);
}

.upload-text {
  font-size: 14px;
  font-weight: 500;
}

.upload-text .highlight {
  color: var(--primary);
  text-decoration: underline;
}

.upload-limits {
  font-size: 11px;
  color: var(--text-dark);
}

.upload-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.upload-preview {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 10px;
}

.hidden {
  display: none !important;
}

/* Forms & Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.text-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--button-radius);
  padding: 14px 16px;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(0, 0, 0, 0.6);
}

.textarea-input {
  resize: none;
}

.char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 500;
}

.input-error-msg {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

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

/* Step 4: Size Option Grid */
.size-options-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.size-option-card {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.size-option-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.size-option-card.selected {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 20px var(--primary-glow);
}

.size-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.size-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.size-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.size-pixels {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.size-visual-preview {
  margin-top: auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.size-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Step 5: Pricing options */
.pricing-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.pricing-card {
  cursor: pointer;
  position: relative;
  display: block;
}

.pricing-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-card-content {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover .pricing-card-content {
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card input[type="radio"]:checked + .pricing-card-content {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 25px var(--primary-glow);
}

.tariff-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.tariff-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tariff-price-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.tariff-divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.tariff-total {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.tariff-features {
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tariff-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tariff-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* Background gradient wrapper for simulated credit card */
.checkout-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.checkout-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.fake-payment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.fake-payment-form label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.fake-card-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: white;
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.fake-card-input:focus {
  border-color: var(--primary);
}

.input-row.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* Toasts / Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: rgba(10, 25, 18, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

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

.toast-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.toast-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Test Payment credentials layout helper */
.test-payment-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--text-muted);
}

.btn-test-fill {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-test-fill:hover {
  background: var(--primary-hover);
}

/* Accessibility and Search Engine Optimization (SEO) visual helper */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Logos Grid Container positioning */
.logos-grid {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: auto;
}

/* Single price info layout box */
.pricing-info-box {
  width: 100%;
  margin-bottom: 30px;
}
.pricing-info-box .pricing-card-content {
  border: 1px solid var(--primary);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 25px var(--primary-glow);
}

/* Active selection border on canvas */
#selection-box {
  position: absolute;
  border: 2px dashed var(--primary);
  background: rgba(16, 185, 129, 0.15);
  pointer-events: none;
  z-index: 8;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Selection Popover */
.selection-popup {
  position: absolute;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--primary);
  padding: 16px;
  width: 240px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.2);
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.selection-popup .popup-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.selection-popup .popup-info {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.selection-popup .popup-price {
  font-weight: 700;
  color: var(--primary) !important;
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  white-space: nowrap;
}

.selection-popup .btn {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 16px;
}

/* Drag-and-drop placement preview */
#placement-preview {
  position: absolute;
  z-index: 999;
  cursor: move;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(16, 185, 129, 0.1);
  box-sizing: border-box;
}

#placement-preview.invalid {
  border: 2px dashed #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.1) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

#placement-preview.valid {
  border: 2px solid var(--primary) !important;
}

#placement-preview .placement-guide {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 18, 0.95);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-family: var(--font-primary);
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#placement-preview.invalid .placement-guide {
  border-color: #ef4444;
  color: #ef4444;
}

/* ==========================================
   PERSONAL CABINETS & ADMIN STYLES
   ========================================== */

.lk-dialog, .admin-dialog {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lk-brands-list {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.03);
}

.lk-brand-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  border-radius: 8px;
  gap: 16px;
  transition: var(--transition-smooth);
}

.lk-brand-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
}

.lk-brand-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px;
  border-radius: 4px;
}

.lk-brand-info {
  flex: 1;
}

.lk-brand-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  color: #ffffff;
}

.lk-brand-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Admin Tables CSS */
.table-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
}

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

.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.5px;
}

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

.admin-table td .admin-user-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Dashboard Card styles */
.admin-stats-grid .stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
}

.admin-stats-grid .stat-card:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.02);
}

.admin-stats-grid .stat-value {
  font-size: 16px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  white-space: nowrap;
}

.admin-stats-grid .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-panel-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
}

/* Status Badges */
.badge-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: bold;
  display: inline-block;
}

.badge-status.paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.badge-status.booked {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Interactive placement notification */
#placement-move-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(10, 10, 18, 0.95);
  border: 1px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(16, 185, 129, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  pointer-events: none;
  animation: pulseToast 2s infinite alternate;
}

@keyframes pulseToast {
  from { box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(16, 185, 129, 0.2); }
  to { box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 30px rgba(16, 185, 129, 0.5); }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 10005;
  width: calc(100% - 48px);
  max-width: 620px;
  background: rgba(12, 12, 20, 0.9);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.12);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translate(-50%, 24px);
  pointer-events: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: bold;
}

.cookie-link:hover {
  color: var(--primary-hover);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

@media (max-width: 576px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .cookie-banner {
    bottom: 16px;
    padding: 14px 16px;
  }
}

