:root {
  --bg:           #080808;
  --surface:      rgba(255, 255, 255, .03);
  --surface-hover:rgba(255, 255, 255, .06);
  --text:         #f0f0f0;
  --text-muted:   rgba(240, 240, 240, .55);
  --accent:       #c9a84c;
  --accent-dim:   rgba(201, 168, 76, .12);
  --border:       rgba(255, 255, 255, .08);
  --border-focus: rgba(201, 168, 76, .55);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-full:  999px;
  --ease:         cubic-bezier(.4, 0, .2, 1);
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, .4);
  --shadow:       0 4px 16px rgba(0, 0, 0, .5);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, .65);
  --font-sans:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.glass:hover {
  background: var(--surface-hover);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  text-decoration: none;
}

.btn:hover {
  background: var(--surface-hover);
  text-decoration: none;
}

.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dim);
}

.btn-danger {
  border-color: rgba(239, 68, 68, .5);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, .1);
}

.input {
  width: 100%;
  padding: .65rem .9rem;
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
  transition: border-color .2s var(--ease);
  appearance: none;
}

.input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.input::placeholder {
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .55rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
}

.badge-accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.badge-green {
  border-color: rgba(52, 211, 153, .4);
  color: #6ee7b7;
  background: rgba(52, 211, 153, .08);
}

.badge-red {
  border-color: rgba(239, 68, 68, .4);
  color: #fca5a5;
  background: rgba(239, 68, 68, .08);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card-hover {
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.card-hover:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

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

.text-accent {
  color: var(--accent);
}

.divider {
  height: 1px;
  background: var(--border);
  margin-block: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fade-enter {
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.fade-enter-active {
  opacity: 1;
}

.skeleton {
  background: linear-gradient(90deg, #121212 25%, #1a1a1a 50%, #121212 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #111;
  color: var(--text);
  font-size: .875rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: toast-in .25s var(--ease) both;
}

@keyframes toast-in {
  from { transform: translateY(.5rem); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 640px) {
  .container {
    padding-inline: .75rem;
  }
}
