:root {
  --bg: #120d10;
  --bg-2: #170f13;
  --card: #1b1418;
  --card-2: #221a1e;
  --line: #2e2228;
  --line-2: #3a2a31;
  --line-3: #4a3840;
  --text: #f5ede3;
  --text-2: #e9ddd4;
  --muted: #cdbfb6;
  --muted-2: #bfafa6;
  --muted-3: #a8978e;
  --faint: #8f8079;
  --gold: #e2b45c;
  --gold-hover: #f3cf86;
  --gold-ink: #1a1206;
  --bordo: #8e1f35;
  --bordo-text: #f7d9df;
  --bordo-ink: #fff5f0;
  --amber: #f5a54a;
  --coral: #ff8a7a;
  --coral-ink: #2a0a07;
  --rose: #ffb3c1;
  --blue: #a9c4f0;
  --blue-line: #5b7fb8;
  --green: #8fe0ae;
  --green-dot: #6fcf97;
  --green-line: #2e4a3a;
  --danger-bg: #3a1520;
  --danger-line: #6b2436;
  --danger-text: #ffd9df;
  --display: 'Josefin Sans', Futura, 'Century Gothic', sans-serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}

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

/* Atribūts hidden vienmēr paslēpj, arī ja klasei ir display: flex (piem., .loading, .divider). */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: var(--gold);
}

a:hover {
  color: var(--gold-hover);
}

:focus-visible {
  outline: 3px solid var(--gold-hover);
  outline-offset: 2px;
}

.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;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

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

/* Pogas */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid var(--line-3);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  border-color: var(--muted-3);
}

.btn-big {
  min-height: 52px;
  padding: 3px 18px 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}

.btn-gold:hover:not(:disabled) {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--gold-ink);
}

.btn-outline-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-coral {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--coral-ink);
}

.btn:disabled,
.btn-gold:disabled {
  background: #2b2226;
  border: 1px dashed var(--line-3);
  color: var(--faint);
}

.btn-link {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0 10px 0 2px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kopīgais galvenes stils (art deco dubultā līnija) */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-2);
  border-bottom: 3px double var(--gold);
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 3px;
}

.tagline {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.table-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px 5px;
  border-radius: 4px;
  background: var(--bordo);
  color: var(--bordo-ink);
}

.table-chip small {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bordo-text);
}

.table-chip strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

/* Paziņojumi */
.notice {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line-3);
  background: var(--card);
  font-size: 15px;
  line-height: 1.45;
}

.notice-danger {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.notice-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
}
