:root {
  --brand-black: #0a0a0a;
  --brand-surface: #141414;
  --brand-panel: #1a1a1a;
  --brand-border: #333333;
  --brand-text-main: #f5f5f5;
  --brand-text-muted: #a3a3a3;
  --brand-gold: #d4af37;
  --radius-sm: 0.25rem;
  --spacing-base: 1rem;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background-color: var(--brand-black);
  color: var(--brand-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-border);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-text-muted);
}
::selection {
  background-color: var(--brand-gold);
  color: #000000;
}
:focus-visible {
  outline: 2px solid var(--brand-gold) !important;
  outline-offset: 2px !important;
}
h1, h2, h3, h4, h5, h6, p, span, a, label, li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
img, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
.hidden {
  display: none !important;
}

/* === Components, Animations & UX Defenses === */

.glass-panel {
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--brand-gold) 0%, #f9e596 50%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow-gold {
  box-shadow: 0 0 24px -4px rgba(212, 175, 55, 0.25), inset 0 0 12px -2px rgba(212, 175, 55, 0.1);
}
.input-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-gold);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
input:focus ~ .input-underline {
  width: 100%;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--brand-black) inset !important;
  -webkit-text-fill-color: var(--brand-text-main) !important;
  transition: background-color 5000s ease-in-out 0s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleBounce {
  0% { transform: scale(0.92); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}
.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-scale-bounce {
  animation: scaleBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.skeleton {
  background: linear-gradient(90deg, var(--brand-panel) 25%, var(--brand-border) 50%, var(--brand-panel) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}
.dark .glass-panel {
  background: rgba(10, 10, 10, 0.75);
  border-color: rgba(212, 175, 55, 0.15);
}
.dark .glow-gold {
  box-shadow: 0 0 30px -5px rgba(212, 175, 55, 0.15), inset 0 0 15px -2px rgba(212, 175, 55, 0.05);
}
.dark input:focus ~ label {
  color: var(--brand-gold);
}
.z-bg { z-index: 5; }
.z-sticky { z-index: 20; }
.z-floating { z-index: 35; }
.z-overlay { z-index: 42; }
.z-modal { z-index: 48; }
.z-toast { z-index: 9999 !important; }
.overlay-defense {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 42;
}
.overlay-defense.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-defense {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 48;
}
.modal-defense.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.toast-defense {
  position: fixed;
  bottom: 24px;
  right: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999 !important;
}
.toast-defense.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
button, [role="button"], a, input[type="submit"], input[type="button"] {
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:hover:not(:disabled), [role="button"]:hover:not([aria-disabled="true"]) {
  filter: brightness(1.1);
}
button:active:not(:disabled), [role="button"]:active:not([aria-disabled="true"]), a:active {
  transform: scale(0.96);
}
button:disabled, [role="button"][aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
  transform: none;
}