:root {
  --bg: #0A0D14;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --brand-from: #6366f1;
  --brand-to: #22d3ee;
  --accent: #10B981;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.12), transparent 45%);
  background-attachment: fixed;
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.gradient-text {
  background: linear-gradient(90deg, #60A5FA, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  transition: transform 0.15s, opacity 0.15s;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.tier-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.tier-card:hover { border-color: rgba(99, 102, 241, 0.55); transform: translateY(-2px); }

.status-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.status-ok { background: #10B981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
.status-taken { background: #ef4444; }
.status-pending { background: #f59e0b; animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Native select elements: force dark background so options are readable on dark theme */
select {
  color: #ffffff;
  background-color: rgba(15, 20, 30, 0.95);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none' stroke='%239ca3af' stroke-width='1.8'><path d='M1 1l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px !important;
  cursor: pointer;
}

select option {
  color: #ffffff;
  background-color: #0A0D14;
  padding: 8px 12px;
}

select:focus {
  border-color: rgba(99, 102, 241, 0.55);
  outline: none;
}

/* Ad slots (filled by /ads/embed.js). The embed script sizes each slot itself;
   these helpers just handle layout + the right-rail visibility breakpoint. */
.ad-slot { margin: 0 auto; }

/* Sticky right-rail skyscraper. It is position:fixed, so it does NOT push content aside — it can only be
   shown once the empty margin beside the centred column is genuinely wider than the rail.
   Widest content column on the site is max-w-6xl (1152px); rail is 300px + 16px offset + a 16px gap.
   Needed: 1152 + 2*(316+16) = ~1800px. At the old 1280px breakpoint the rail sat ON TOP of the text and
   images on every wide page (docs, tutorials) — visible and reported 2026-07-30.
   Below 1800px the leaderboard and in-content slots still serve, so ad inventory is not lost, only this one. */
.ad-rail { display: none; }
@media (min-width: 1800px) {
  .ad-rail { display: block; }
}

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
