:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --surface-panel: #151517;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

body {
  background-color: var(--bg-primary);
  color: #ffffff;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.text-balance {
  text-wrap: balance;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0b;
}
::-webkit-scrollbar-thumb {
  background: #26262a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Prism rainbow gradient bar top glow */
.prism-strip {
  background: linear-gradient(
    90deg,
    #ff4d4d 0%,
    #ffb84d 15%,
    #ffe14d 30%,
    #4dff88 45%,
    #4ddbff 60%,
    #7a4dff 75%,
    #ff4dd8 90%,
    #ffffff 100%
  );
  box-shadow:
    0 -2px 10px rgba(77, 219, 255, 0.6),
    0 -4px 20px rgba(255, 77, 216, 0.4),
    0 2px 12px rgba(255, 225, 77, 0.5);
}

.prism-strip-animated {
  background: linear-gradient(
    90deg,
    #ff3333,
    #ff9933,
    #ffff33,
    #33ff33,
    #33ffff,
    #3333ff,
    #ff33ff,
    #ff3333
  );
  background-size: 200% 100%;
  animation: prism-shimmer 8s linear infinite;
  box-shadow:
    0 -2px 12px rgba(51, 255, 255, 0.7),
    0 -6px 24px rgba(255, 51, 255, 0.5),
    0 2px 10px rgba(255, 255, 51, 0.6);
}

@keyframes prism-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Glassmorphism panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.03);
}

/* Background noise texture simulation */
.bg-noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Keyframes for marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
  0% { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

.animate-marquee-rtl {
  display: flex;
  width: max-content;
  animation: marquee-rtl 35s linear infinite;
}
.animate-marquee-rtl:hover {
  animation-play-state: paused;
}

/* Subtle rainbow border animation */
@keyframes rainbow-border {
  0% { border-color: rgba(255, 77, 77, 0.4); }
  25% { border-color: rgba(77, 255, 136, 0.4); }
  50% { border-color: rgba(77, 219, 255, 0.4); }
  75% { border-color: rgba(255, 77, 216, 0.4); }
  100% { border-color: rgba(255, 77, 77, 0.4); }
}

.rainbow-glow-border {
  animation: rainbow-border 6s ease infinite;
}

/* Range slider thumb styling (accent-cyan-400 equivalent, cross-browser) */
input[type='range'] {
  accent-color: #22d3ee;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #22d3ee;
  cursor: pointer;
  margin-top: -1px;
}
input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 9999px;
  background: #22d3ee;
  cursor: pointer;
}
