@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');
:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
  
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Cyberpunk Defense Grid Calculator - Holographic Command Interface */

/* Override design system colors for cyberpunk theme */
:root {
  /* Cyberpunk Color Palette */
  --cyber-primary: #00BFFF;
  --cyber-primary-bright: #1E90FF;
  --cyber-secondary: #00FFFF;
  --cyber-secondary-bright: #0FF;
  --cyber-accent: #FF1493;
  --cyber-accent-bright: #FF00FF;
  --cyber-success: #39FF14;
  --cyber-success-bright: #00FF41;
  --cyber-warning: #FF4500;
  --cyber-warning-bright: #FF8C00;
  --cyber-background: #0A0E27;
  --cyber-background-alt: #000814;
  --cyber-surface: #1A1F3A;
  --cyber-surface-bright: #2D3748;
  --cyber-text: #E0E6ED;
  --cyber-text-secondary: #A0A8B0;
  --cyber-border: #00BFFF;
  --cyber-glow: 0 0 20px;
  
  /* Glass morphism */
  --glass-bg: rgba(26, 31, 58, 0.8);
  --glass-border: rgba(0, 191, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(0, 191, 255, 0.15);
  
  /* Override design system */
  --color-background: var(--cyber-background);
  --color-surface: var(--cyber-surface);
  --color-text: var(--cyber-text);
  --color-text-secondary: var(--cyber-text-secondary);
  --color-primary: var(--cyber-primary);
  --color-border: var(--cyber-border);
  
  /* Cyberpunk typography */
  --font-family-cyber: 'Orbitron', 'Exo 2', monospace;
  --font-family-display: 'Exo 2', sans-serif;
}

/* Base cyberpunk body styling */
body {
  font-family: var(--font-family-display);
  background: var(--cyber-background);
  color: var(--cyber-text);
  overflow-x: hidden;
}
/* Holographic Loading Screen */
.loading-screen {
  background: radial-gradient(ellipse at center, 
    var(--cyber-background-alt) 0%, 
    var(--cyber-background) 70%);
  position: relative;
  overflow: hidden;
}

.loading-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 0%, 
    rgba(0, 191, 255, 0.1) 50%, 
    transparent 100%);
  animation: hologramSweep 3s ease-in-out infinite;
}

@keyframes hologramSweep {
  0%, 100% { transform: translateX(-100%) translateY(-100%); }
  50% { transform: translateX(100%) translateY(100%); }
}

.cyber-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 191, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.loading-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--space-32);
}

.hologram-icon {
  font-size: 5rem;
  color: var(--cyber-primary);
  text-shadow: 
    var(--cyber-glow) var(--cyber-primary),
    var(--cyber-glow) var(--cyber-secondary);
  animation: holoFloat 2s ease-in-out infinite, energyPulse 1.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 30px var(--cyber-primary));
}

@keyframes holoFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes energyPulse {
  0% { opacity: 0.8; filter: brightness(1); }
  100% { opacity: 1; filter: brightness(1.3); }
}

.glitch-text {
  font-family: var(--font-family-cyber);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--cyber-text);
  text-shadow: 
    0 0 10px var(--cyber-primary),
    0 0 20px var(--cyber-secondary);
  animation: glitchText 2s linear infinite;
  letter-spacing: 0.1em;
}

@keyframes glitchText {
  0%, 90%, 100% { transform: translate(0); }
  10% { transform: translate(-2px, 1px); }
  20% { transform: translate(2px, -1px); }
  30% { transform: translate(-1px, 2px); }
  40% { transform: translate(1px, -2px); }
  50% { transform: translate(-2px, -1px); }
  60% { transform: translate(2px, 1px); }
  70% { transform: translate(-1px, -2px); }
  80% { transform: translate(1px, 2px); }
}

.loading-bar {
  width: 300px;
  height: 6px;
  background: rgba(0, 191, 255, 0.2);
  border-radius: var(--radius-full);
  margin: var(--space-24) auto;
  position: relative;
  border: 1px solid var(--cyber-border);
  box-shadow: 
    inset 0 0 10px rgba(0, 191, 255, 0.3),
    var(--cyber-glow) rgba(0, 191, 255, 0.2);
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--cyber-primary) 0%, 
    var(--cyber-secondary) 50%,
    var(--cyber-accent) 100%);
  border-radius: var(--radius-full);
  width: 0;
  animation: progressFillCyber 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 0 15px var(--cyber-primary);
}

@keyframes progressFillCyber {
  0% { width: 0%; }
  30% { width: 30%; }
  60% { width: 70%; }
  100% { width: 100%; }
}
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2px;
  background: var(--cyber-secondary);
  box-shadow: 0 0 10px var(--cyber-secondary);
  animation: scanProgress 3s linear infinite;
}

@keyframes scanProgress {
  0% { left: 0; opacity: 1; }
  90% { left: calc(100% - 2px); opacity: 1; }
  100% { left: calc(100% - 2px); opacity: 0; }
}

.system-status {
  margin-top: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.status-line {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  color: var(--cyber-success);
  text-shadow: 0 0 5px var(--cyber-success);
  opacity: 0;
  animation: statusAppear 0.8s ease-out forwards;
}

.status-line:nth-child(1) { animation-delay: 1s; }
.status-line:nth-child(2) { animation-delay: 1.5s; }
.status-line:nth-child(3) { animation-delay: 2s; }

@keyframes statusAppear {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Main App Holographic Effects */
.main-app {
  background: var(--cyber-background);
  position: relative;
  min-height: 100vh;
}

/* Digital Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.digital-rain {
  position: absolute;
  width: 100%;
  height: 100%;
}

.rain-drop {
  position: absolute;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, 
    transparent, 
    var(--cyber-primary), 
    transparent);
  opacity: 0.6;
  animation: digitalRain 8s linear infinite;
}

.rain-drop:nth-child(1) { left: 10%; animation-delay: -2s; animation-duration: 10s; }
.rain-drop:nth-child(2) { left: 25%; animation-delay: -4s; animation-duration: 8s; }
.rain-drop:nth-child(3) { left: 45%; animation-delay: -1s; animation-duration: 12s; }
.rain-drop:nth-child(4) { left: 65%; animation-delay: -3s; animation-duration: 9s; }
.rain-drop:nth-child(5) { left: 80%; animation-delay: -5s; animation-duration: 11s; }
.rain-drop:nth-child(6) { left: 95%; animation-delay: -1.5s; animation-duration: 7s; }

@keyframes digitalRain {
  0% { top: -60px; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 100vh; opacity: 0; }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 191, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.05) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

.energy-streams {
  position: absolute;
  width: 100%;
  height: 100%;
}

.stream {
  position: absolute;
  width: 1px;
  height: 200px;
  background: linear-gradient(to bottom, 
    transparent, 
    var(--cyber-secondary), 
    var(--cyber-accent),
    transparent);
  opacity: 0.4;
  animation: streamFlow 6s linear infinite;
}

.stream-1 { left: 20%; animation-delay: 0s; }
.stream-2 { left: 60%; animation-delay: -2s; }
.stream-3 { left: 85%; animation-delay: -4s; }

@keyframes streamFlow {
  0% { top: -200px; opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { top: 100vh; opacity: 0; }
}

/* Cyberpunk Header */
.app-header {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 100;
  animation: materializing 0.8s ease-out forwards;
}

@keyframes materializing {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-24);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.header-icon {
  font-size: 3rem;
  color: var(--cyber-primary);
  text-shadow: var(--cyber-glow) var(--cyber-primary);
  animation: energyPulse 2s ease-in-out infinite alternate;
}

.header-text {
  flex: 1;
  text-align: center;
  margin: 0 var(--space-24);
}

.app-title {
  font-family: var(--font-family-cyber);
  font-size: var(--font-size-4xl);
  font-weight: 900;
  margin: 0 0 var(--space-8) 0;
  letter-spacing: 0.05em;
}

.cyber-text {
  color: var(--cyber-primary);
  text-shadow: var(--cyber-glow) var(--cyber-primary);
}

.grid-text {
  color: var(--cyber-secondary);
  text-shadow: var(--cyber-glow) var(--cyber-secondary);
}

.app-subtitle {
  font-family: var(--font-family-display);
  font-size: var(--font-size-base);
  color: var(--cyber-text-secondary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-decorations {
  display: flex;
  gap: var(--space-20);
}

.energy-orb, .plasma-core {
  font-size: 2rem;
  text-shadow: var(--cyber-glow) var(--cyber-accent);
  animation: orbPulse 3s ease-in-out infinite;
}

.plasma-core {
  animation-delay: -1.5s;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.header-scanline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--cyber-secondary);
  box-shadow: 0 0 10px var(--cyber-secondary);
  animation: scanlineExpand 2s ease-out 0.5s forwards;
}

@keyframes scanlineExpand {
  to { width: 100%; }
}

/* ========== Headers: Desktop vs Mobile ========== */
.page-title-Desktop { display: block; }
.page-title-Mobile  { display: none; }

/* Desktop Heading */
.page-title-Desktop {
  width: 100%;
  text-align: center;
  padding: 0.5rem 0 1rem 0;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  letter-spacing: 0.13em;
}
.titleDesktop {
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-size: 2.5rem;
  color: #fff8e6;
  letter-spacing: 0.13em;
  text-shadow: 0 0 8px #302b63, 0 0 18px #ff00cc;
  margin: 0;
}

/* Mobile Heading */
.page-title-Mobile {
  width: 110vw;
  text-align: center;
  padding: 0.5rem 0 0.7rem 0;
  background: rgba(20, 24, 82, 0.82);
  border-bottom: 1.5px solid #ff00cc;
  box-shadow: 0 2px 8px #ff00cc44;
  backdrop-filter: blur(3px);
  letter-spacing: 0.05em;
  box-sizing: border-box;
}
.titleMobile {
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-size: 1.5rem;
  color: #ffb6f9;
  letter-spacing: 0.06em;
  text-shadow: 0 0 4px #302b63, 0 0 8px #ff00cc;
  margin: 0;
  animation: fireGlow 3s infinite ease-in-out;
  margin: 0;
  letter-spacing: 2px;
  padding-left: 10px;
}

@keyframes fireGlow {
  0% {
    text-shadow: 0 0 2px #ff7300, 0 0 6px #ff7300, 0 0 10px #ff4500, 0 0 14px #ff0000;
    color: #ffe8cc;
  }
  50% {
    text-shadow: 0 0 5px #ffa500, 0 0 12px #ff4500, 0 0 22px #ff0000, 0 0 30px #ff0000;
    color: #fff0dd;
  }
  100% {
    text-shadow: 0 0 3px #ff7300, 0 0 8px #ff7300, 0 0 16px #ff3300, 0 0 24px #ff1100;
    color: #ffe6d0;
  }

}

/* Responsive: Show mobile header, hide desktop on small screens */
@media (max-width: 600px) {
  .page-title-Desktop { display: none; }
  .page-title-Mobile  { display: block; }
}
html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
/* ====== INPUT GROUP ====== */
.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.input-group input[type="number"],
.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* ====== TOOLTIP ====== */
.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #444;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 999;
  bottom: 125%;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.info-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background: #999;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: help;
}

/* ========== Desktop Navigation Panel ========== */
/* 🌟 Cosmic Glow Navigation Panel */
@media (max-width: 600px) {
  .main-header-Desktop { display: none; }
  .main-header-Mobile  { display: block; }
}
/* Desktop Navigation */
#desktopNav {
  background: #232946;
  color: #fff;
  padding: 0.5rem 0;
}
#desktopNav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin: 0;
  padding: 0 1.5rem;
}
#desktopNav .nav-links li {
  position: relative;
}
#mobileNav .dropdown {
  position: relative;
}
#desktopNav .nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  display: block;
  border-radius: 4px;
  text-shadow: 0 0 6px #ffffffaa; /* Soft glow on text */
  transition: all 0.3s ease;
}
#desktopNav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #82fff5, #ff8ae2);
  box-shadow: 0 0 6px #ff8ae2;
  transition: width 0.3s ease;
  border-radius: 4px;
}

#desktopNav .nav-links a:hover::after {
  width: 80%;
}

#desktopNav .nav-links a:hover {
  background: #393e60;
}
#desktopNav .dropdown-menu {
  display: none;
  position: absolute;
  background: #232946;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  top: 115%;
  left: 0;
  min-width: 180px;
  z-index: 10000;
  border-radius: 10px;
}
#desktopNav .dropdown:hover .dropdown-menu,
#desktopNav .dropdown:focus-within .dropdown-menu {
  display: block;
}
#desktopNav .dropdown-menu li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  
}
/* Layout Container */
.layout-container {
  display: grid;
  gap: var(--space-24);
  margin: 0 auto;
  padding: var(--space-24);
  position: relative;
  z-index: 10;
  max-width: 1400px;
  grid-template-columns: 280px 1fr 280px;
}

/* Mobile responsive layout */
@media (max-width: 1199px) {
  .layout-container {
    grid-template-columns: 200px 1fr 200px;
    gap: var(--space-16);
    padding: var(--space-16);
  }
}

@media (max-width: 767px) {
  .layout-container {
    grid-template-columns: 80px 1fr 80px;
    gap: var(--space-12);
    padding: var(--space-12);
  }
  
  .app-title {
    font-size: var(--font-size-2xl);
  }
  
  .header-decorations {
    flex-direction: column;
    gap: var(--space-12);
  }
}

/* Cyberpunk Sidebars */
.cyber-sidebar {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  height: fit-content;
  position: sticky;
  top: var(--space-24);
  padding: var(--space-20);
  animation: sidebarMaterialize 0.8s ease-out forwards;
  opacity: 0;
}

.left-sidebar {
  animation-delay: 0.3s;
}

.right-sidebar {
  animation-delay: 0.5s;
}

@keyframes sidebarMaterialize {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-icon {
  font-size: 1.5rem;
  color: var(--cyber-secondary);
  text-shadow: 0 0 10px var(--cyber-secondary);
}

.sidebar-header h3 {
  font-family: var(--font-family-cyber);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--cyber-text);
  margin: 0;
  letter-spacing: 0.1em;
}

/* Cyber Slots (Ad Spaces) */
.cyber-slots {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cyber-slot {
  background: rgba(26, 31, 58, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-base);
  overflow: hidden;
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
  cursor: pointer;
}

.cyber-slot:hover {
  border-color: var(--cyber-primary);
  box-shadow: 
    var(--glass-shadow),
    0 0 20px rgba(0, 191, 255, 0.3);
  transform: translateY(-2px);
}

.module-placeholder {
  padding: var(--space-16);
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  position: relative;
}

.placeholder-icon {
  font-size: 2rem;
  color: var(--cyber-accent);
  text-shadow: 0 0 15px var(--cyber-accent);
  animation: iconPulse 2s ease-in-out infinite alternate;
}

@keyframes iconPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

.placeholder-title {
  font-family: var(--font-family-cyber);
  font-weight: var(--font-weight-semibold);
  color: var(--cyber-text);
  font-size: var(--font-size-sm);
  letter-spacing: 0.1em;
}

.placeholder-subtitle {
  font-size: var(--font-size-xs);
  color: var(--cyber-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.energy-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--cyber-primary);
  border-radius: var(--radius-base);
  opacity: 0;
  animation: energyBorderScan 3s ease-in-out infinite;
}

@keyframes energyBorderScan {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

/* Video Play Button */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--cyber-accent);
  color: var(--cyber-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 
    0 0 15px var(--cyber-accent),
    var(--glass-shadow);
  transition: all var(--duration-fast) var(--ease-standard);
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--cyber-accent-bright);
}

.digital-noise {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 191, 255, 0.03) 2px,
    rgba(0, 191, 255, 0.03) 4px
  );
  animation: noiseFlicker 0.1s linear infinite;
}

@keyframes noiseFlicker {
  0% { opacity: 0.02; }
  50% { opacity: 0.05; }
  100% { opacity: 0.02; }
}

/* Cyber Links */
.tools-header {
  font-family: var(--font-family-cyber);
  font-weight: var(--font-weight-semibold);
  color: var(--cyber-text);
  margin-bottom: var(--space-16);
  text-align: center;
  padding: var(--space-10);
  background: rgba(0, 191, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  letter-spacing: 0.1em;
}

.cyber-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.cyber-link {
  padding: var(--space-10) var(--space-12);
  background: rgba(0, 191, 255, 0.05);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--cyber-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.cyber-link:hover {
  background: rgba(0, 191, 255, 0.15);
  border-color: var(--cyber-primary);
  color: var(--cyber-primary);
  transform: translateX(4px);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

/* Main Content */
.main-content-Desktop {
  left: 100%;
  width: 111vh;
  height: 150vh;
  max-height: max-content;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: var(--space-32);
  padding-left: 70px;
  padding-right: -10px;
  animation: contentMaterialize 0.8s ease-out 0.4s forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

@keyframes contentMaterialize {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.main-content-Desktop::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 191, 255, 0.1),
    transparent
  );
  animation: contentScan 8s ease-in-out infinite;
}

@keyframes contentScan {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

/* Cyber Sections */
.cyber-section-Desktop {
  margin-bottom: var(--space-32);
  animation: sectionAppear 0.6s ease-out forwards;
  opacity: 0;
}

.cyber-section-Desktop:nth-child(1) { animation-delay: 0.6s; }
.cyber-section-Desktop:nth-child(2) { animation-delay: 0.8s; }
.cyber-section-Desktop:nth-child(3) { animation-delay: 1.0s; }

@keyframes sectionAppear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header-Desktop {
  text-align: center;
  margin-bottom: var(--space-24);
  position: relative;
}

.section-header-Desktop h2 {
  font-family: var(--font-family-cyber);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--cyber-primary);
  margin: 0 0 var(--space-12) 0;
  text-shadow: 0 0 15px var(--cyber-primary);
  letter-spacing: 0.05em;
}

.section-header-Desktop p {
  color: var(--cyber-text-secondary);
  margin: 0;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Desktop Calculator Form */
#heroesFormDesktop{
  background: rgba(0, 0, 0, 0.44);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 28px 2px #ff730055;
  width: 100%;
  max-width: 600px;
  backdrop-filter: blur(8px);
  border: 1px solid #23234d;
  margin-bottom: 2rem;
}
#heroesFormDesktop .input-group {
  margin-bottom: 1.25rem;
  position: relative;
}
#heroesFormDesktop .input-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
  font-size: 1rem;
  color: #ffe6d0;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
}
#heroesFormDesktop .input-group input[type="number"],
#heroesFormDesktop .input-group input[type="text"]{
  width: 100%;
  padding: 0.6rem;
  background: #23234d;
  border: 1.5px solid #b0b0b0;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
#heroesFormDesktop .input-group input:focus,
#heroesFormDesktop .input-group select:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 0 2px #ffb366;
}
#heroesFormDesktop button[type="submit"], 
#heroesFormDesktop button[type="button"] {
  background: linear-gradient(90deg, #00fff7 0%, #ff7300 100%);
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  color: #000;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-top: 10px;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-size: 1.05em;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px #ff730044;
}
#heroesFormDesktop button[type="submit"]:hover, 
#heroesFormDesktop button[type="button"]:hover {
  background: linear-gradient(90deg, #ff7300 0%, #00fff7 100%);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 16px #ff730055;
}

/* Desktop Hero Dropdown */
#heroesDropdownDesktop {
  background: #18183a;
  border: 1.5px solid #ff9900;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.24);
  z-index: 10;
  margin-top: -2px;
  color: #fff;
  max-height: 220px;
  overflow-y: auto;
  position: absolute;
  left: 0;
  width: 100%;
  display: none;
}
#heroesDropdownDesktop .dropdown-item {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 1rem;
  background: transparent;
  color: #fff;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}
#heroesDropdownDesktop .dropdown-item:hover,
#heroesDropdownDesktop .dropdown-item:focus {
    background: #ff9900;
  color: #18183a;
  outline: none;
}

/* Desktop Results */
#resultContainerDesktop.result {
  background: #19232e;
  border: 1px dashed #00fff7;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1.2rem;
  color: #fff8e6;
  font-size: 1.1em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
  display: none;
}
#resultContainerDesktop.result strong {
  color: #393e60;
}

/* Desktop Prompt */
#heroesPromptDesktop {
font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
font-size: 0.em;
color: #d8fff2;
margin: 1rem 0 0 0;
text-shadow: 0 0 7px #00ffb7;
background: linear-gradient(90deg, #23234d 60%, #00ffb7 100%);
border-radius: 10px;
padding: 0.75em 1.2em;
border: 2px solid #00ffb7;
box-shadow: 0 0 16px #00ffb744, 0 2px 10px #00ffb733;
min-height: 2.3em;
display: flex;
align-items: center;
transition: background-color 0.3s, color 0.3s;
}

#heroesFormDesktop input[readonly], 
#heroesFormDesktop input[disabled] {
  background: #f4f4f4;
  color: #888;
}
.elixircolor {
  color: #ff00cc;
  text-shadow: 0 0 8px #ff00cc;
  font-weight: bold;
  font-family: 'Rajdhani', Arial, sans-serif;
}

#darkelixirCostDesktop {
  color: #ff00cc;            /* Neon Pink */
  text-shadow: 0 0 8px #ff00cc;
  font-family: 'Rajdhani', Arial, sans-serif;
}

.timeDesktop {
  color: #fff; /* White */
  font-weight: bold;
  font-family: 'Rajdhani', Arial, sans-serif;
}

/***************************
 * MOBILE STYLES
 ***************************/

/* Mobile Navigation */
#mobileNav {
  background: #232946;
  color: #fff;
  padding: 0.1rem 0.1rem;
}
#mobileNav .mobile-nav-links {
  list-style: none;
  display: flex;
  gap: 0.1rem;
  align-items: center;
  margin: 0;
  padding-left: 10px;
}
#mobileNav .mobile-nav-links li {
  position: relative;
}
#mobileNav .mobile-nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  display: block;
  border-radius: 2px;
  transition: background-color 0.2s;
}
#mobileNav .mobile-nav-links a:hover {
  background: #393e60;
}
#mobileNav .dropdown-menu li {
  margin-bottom: 0.12em; /* Small vertical gap */
}

#mobileNav .dropdown-menu li:last-child {
  margin-bottom: 0; /* Remove gap after the last item */
}

#mobileNav .dropdown-menu {
  display: none;
  position: absolute;
  background: #232946;
  box-shadow: none;
  min-width: 160px;
  z-index: 10;
}
#mobileNav .dropdown:hover .dropdown-menu,
#mobileNav .dropdown:focus-within .dropdown-menu {
  display: block;
}
#mobileNav .dropdown-menu li a {
  padding: 0.1rem 0.1rem;
  white-space: nowrap;
  
}
/* Mobile Calculator Form */
.main-content-Mobile {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: var(--space-32);
  animation: contentMaterialize 0.8s ease-out 0.4s forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

@keyframes contentMaterialize {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.main-content-Mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 191, 255, 0.1),
    transparent
  );
  animation: contentScan 8s ease-in-out infinite;
}

@keyframes contentScan {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

/* Cyber Sections */
.cyber-section-Mobile {
  margin-bottom: var(--space-32);
  animation: sectionAppear 0.6s ease-out forwards;
  opacity: 0;
}

.cyber-section-Mobile:nth-child(1) { animation-delay: 0.6s; }
.cyber-section-Mobile:nth-child(2) { animation-delay: 0.8s; }
.cyber-section-Mobile:nth-child(3) { animation-delay: 1.0s; }

@keyframes sectionAppear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header-Mobile {
  text-align: center;
  margin-bottom: var(--space-24);
  position: relative;
}

.section-header-Mobile h2 {
  font-family: var(--font-family-cyber);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--cyber-primary);
  margin: 0 0 var(--space-12) 0;
  text-shadow: 0 0 15px var(--cyber-primary);
  letter-spacing: 0.05em;
}

.section-header-Mobile p {
  color: var(--cyber-text-secondary);
  margin: 0;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* Mobile Calculator Form */
#heroesFormMobile.calculator {
  background: rgba(0, 0, 0, 0.44);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 85vw;
  margin: 1.2rem auto;
  padding: 1.0rem 0.8rem 0.5rem 0.8rem;
  min-height: 380px;       /* Reserve space for basic content */
  max-height: 80vh;        /* Limit to 80% of the viewport height */
  overflow-y: auto;        /* Enable vertical scrolling if content overflows */
  transition: max-height 0.4s;
}

#heroesFormMobile .input-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}

#heroesFormMobile .input-group label {
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #ffe6d0;
}
#heroesFormMobile .input-group input[type="number"],
#heroesFormMobile .input-group input[type="text"],
#heroesFormMobile .input-group select {
  padding: 0.7rem;
  border: 1px solid #bfc0c0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
  color: #111; /* Dark black for mobile */
  background: #fff;
}
#heroesFormMobile .input-group input:focus,
#heroesFormMobile .input-group select:focus {
  border-color: #232946;
}
#heroesFormMobile button[type="submit"]{
  background: linear-gradient(90deg, #1a2980 0%, #c471f5 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  transition: background-color 0.2s;
  box-shadow: 0 2px 8px #ff730044;
}
#heroesFormMobile button[type="button"]{
   background: linear-gradient(90deg, #ff00cc 0%, #ff7300 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
}
#heroesFormMobile button[type="submit"]:hover, 
#heroesFormMobile button[type="button"]:hover {
  background: #393e60;
}

/* Mobile Hero Dropdown */
#heroesDropdownMobile {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #bfc0c0;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}
#heroesDropdownMobile .dropdown-item {
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: #0028f1;
}
#heroesDropdownMobile .dropdown-item:hover {
  background: #e7eaf6;
}

/* Mobile Results */
#resultContainerMobile.result {
  background: #e7eaf6;
  border-radius: 6px;
  padding: 1.2rem;
  margin-top: 1.2rem;
  color: #232946;
  font-size: 1.07rem;
}
#resultContainerMobile.result strong {
  color: #393e60;
}

/* Mobile Prompt */
#heroesPromptMobile {
 font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
font-size: 1.1em;
color: #e0e7ff;
margin: 1rem 0 0 0;
text-shadow: 0 0 8px #7f5cff;
background: linear-gradient(90deg, #23234d 60%, #7f5cff 100%);
border-radius: 10px;
padding: 0.75em 1.2em;
border: 2px solid #7f5cff;
box-shadow: 0 0 16px #7f5cff44, 0 2px 12px rgba(0,0,0,0.18);
min-height: 2.2em;
display: flex;
align-items: center;
transition: background-color 0.3s, color 0.3s;

}

#heroesFormMobile input[readonly], 
#heroesFormMobile input[disabled] {
  background: #f4f4f4;
  color: #888;
}
/* styles.css */
.heroes-inputs {
  position: relative; /* Needed for absolute positioning of prompt inside */
}

/* Shared prompt base */
.input-prompt {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  min-width: 220px;
  max-width: 90vw;
  padding: 0.6em 1em;
  border-radius: 5px;
  font-size: 1em;
  font-family: 'Segoe UI', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  margin-top: 0.3em;
  display: block;
  box-shadow: 0 2px 8px #f8bcbc33;
  border: 1px solid #f8bcbc;
}

/* Desktop-specific prompt style 
.input-prompt-desktop {
  background: #fff3f3;
  color: #d32f2f;
}*/

/* Mobile-specific prompt style */
.input-prompt-mobile {
  background: #ff6f91;
  color: #fff;
  border: 1px solid #ffb6c1;
  font-size: 1.08em;
}

/* Show the prompt 
.input-prompt.show {
  opacity: 1;
  pointer-events: auto;
}*/

/* Error input highlight (shared) */
.input-error {
  border-color: #d32f2f !important;
  background: #fff3f3 !important;
  color: #d32f2f !important;
}

/* === MAIN FOOTER CONTAINER === */
.site-footer {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  color: #e8ecff;
  background: #232946;
  padding: 80px 20px 30px;
  overflow: hidden;
  box-shadow: inset 0 50px 120px rgba(0, 0, 0, 0.85);
}

/* === SUBTLE 3D GRID BACKGROUND === */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

/* === NEON TOP GLOW === */
.site-footer::after {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 180px;
  filter: blur(40px);
  pointer-events: none;
}

/* === CONTAINER === */
.desktop-footer .footer-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  position: relative;
  z-index: 2;
}

/* === LOGO === */
.desktop-footer .footer-logo h2 {
  font-size: 3rem;
  color: #00f0ff;
  text-shadow: 0 0 25px #00f0ff, 0 0 60px rgba(0, 255, 255, 0.8);
  letter-spacing: 2px;
}

/* === FOOTER SECTIONS (3D PANELS with SINGLE COLOR BORDER) === */
.desktop-footer .footer-sections {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  flex-wrap: wrap;
}

.desktop-footer .footer-section {
  position: relative;
  background: linear-gradient(145deg, #10162f, #070a18);
  border: 2px solid #00f0ff; /* SINGLE COLOR NEON BORDER */
  border-radius: 14px;
  padding: 28px;
  flex: 1;
  min-width: 260px;
  box-shadow:
    inset 0 0 15px rgba(0, 255, 255, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.desktop-footer .footer-section:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    inset 0 0 20px rgba(0, 255, 255, 0.3),
    0 15px 35px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(0, 255, 255, 0.4);
}

.desktop-footer .footer-section h4 {
  font-size: 1.4rem;
  color: #00f0ff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktop-footer .footer-section ul li a {
  display: block;
  color: #c8d0ff;
  text-decoration: none;
  font-size: 1rem;
  margin: 8px 0;
  transition: color 0.3s, text-shadow 0.3s;
}

.desktop-footer .footer-section ul li a:hover {
  color: #00f0ff;
  text-shadow: 0 0 15px #00f0ff;
}

/* === SOCIAL ICONS === */
.desktop-footer .social-links a {
  color: #aaa;
  margin-right: 20px;
  font-size: 1.6rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.desktop-footer .social-links a:hover {
  color: #00f0ff;
  text-shadow: 0 0 15px #00f0ff;
}

/* === FOOTER BOTTOM (CLEAN SEPARATION BAR) === */
.desktop-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090c1c;
  padding: 25px;
  margin-top: 40px;
  border-top: 2px solid #00f0ff;
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2), 0 -3px 20px rgba(0, 255, 255, 0.1);
}

.desktop-footer .footer-bottom-left {
  color: #b0c0ff;
  font-size: 0.95rem;
}

.desktop-footer .footer-bottom-right {
  text-align: right;
}

/* === NEWSLETTER === */
.desktop-footer .newsletter-signup {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.desktop-footer .email-input {
  padding: 10px 14px;
  border: 1px solid #00f0ff;
  background: rgba(10, 15, 35, 0.9);
  color: #fff;
  border-radius: 4px;
  width: 240px;
}

.desktop-footer .subscribe-btn {
  padding: 10px 20px;
  background: #00f0ff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.desktop-footer .subscribe-btn:hover {
  box-shadow: 0 0 20px #00f0ff;
  transform: scale(1.08);
}

/* === MOBILE FOOTER === */
@media (max-width: 768px) {
  .site-footer-desktop-footer { display: none; }
  .site-footer-mobile-footer { display: block; text-align: center; padding: 20px; position: relative; z-index: 3;}
  .site-footer-mobile-footer .quick-links {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
  }
  .site-footer-mobile-footer .quick-link-btn {
    color: #ff003c;
    text-decoration: none;
    font-size: 0.9rem;
  }
  .site-footer-mobile-footer .social-icon {
    color: #aaa;
    font-size: 1.4rem;
    margin: 0 10px;
  }
}

.mobile-footer {
  background: radial-gradient(circle at top, #0a0b1a 0%, #010104 100%);
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 3;
  font-family: 'Orbitron', sans-serif;
  overflow: hidden;
  color: #d6d6d6;
}

/* === Subtle Starfield Background === */
.mobile-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.15;
  animation: starsDrift 80s linear infinite;
  z-index: 1;
}

/* === Quick Access Buttons === */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 3;
}

.quick-link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: #8ab4f8;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.quick-link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 10px rgba(138, 180, 248, 0.3);
}

.quick-link-btn i {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #a1c3ff;
}

.quick-link-btn span {
  font-size: 0.8rem;
  text-align: center;
}

/* === Accordion Sections === */
.accordion-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-header {
  width: 100%;
  padding: 15px 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: #8ab4f8;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.accordion-content.active {
  max-height: 300px;
  padding: 10px 0 15px;
}

.accordion-content a {
  display: block;
  padding: 8px 15px;
  color: #bbb;
  font-size: 0.9rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.accordion-content a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #8ab4f8;
  color: #8ab4f8;
}

/* === Social Icons === */
.social-row {
  margin-bottom: 15px;
}

.social-icon {
  color: #999;
  font-size: 1.8rem;
  margin: 0 15px;
  transition: 0.3s ease;
}

.social-icon:hover {
  color: #8ab4f8;
  transform: scale(1.2);
}

/* === Footer Info === */
.mobile-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
  position: relative;
  z-index: 3;
}

.mobile-info p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.small-text {
  font-size: 0.75rem !important;
  color: #777;
}

/* === Keyframes === */
@keyframes starsDrift {
  from { background-position: 0 0; }
  to { background-position: 800px 800px; }
}

/* === Responsive Only Mobile === */
@media (max-width: 768px) {
  .desktop-footer { display: none; }
  .mobile-footer { display: block; }
}

@media (min-width: 769px) {
  .mobile-footer { display: none; }
}

/* Responsive: Only show relevant prompt on each device */
@media (max-width: 600px) {
  .desktop-footer,.input-prompt-desktop { display: none !important; }
  .mobile-footer,.input-prompt-mobile { display: block !important; }
}
@media (min-width: 601px) {
  .input-prompt-desktop { display: block !important; }
  .input-prompt-mobile { display: none !important; }
}


/* Responsive Tweaks (Optional) */
@media (max-width: 600px) {
  .desktop-footer,.main-content-Desktop,#desktopNav, #heroesFormDesktop { display: none !important; }
  .mobile-footer,.main-content-Mobile,#mobileNav, #heroesFormMobile { display: block !important; }
}
@media (min-width: 601px) {
  .mobile-footer,.main-content-Mobile,#mobileNav, #heroesFormMobile { display: none !important; }
  .desktop-footer,.main-content-Desktop,#desktopNav, #heroesFormDesktop { display: block !important; }
}
