@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');
@font-face {
  font-family: 'Evogria';
  src: url('/assets/fonts/Evogria.otf') format('opentype'), local('Evogria');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #050916;
  --panel: #0e152b;
  --panel-2: #101a34;
  --border: #22304f;
  --text: #edf2ff;
  --muted: #9da8c2;
  --accent: #3b82f6;
  --accent-2: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --shadow: 0 10px 30px rgba(0,0,0,.32);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: linear-gradient(180deg, #030812, #071126 24%, #040915); color: var(--text); font-family: Roboto, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stack-sm > * + * { margin-top: 10px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.stack-xl > * + * { margin-top: 36px; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #86a1dd; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 64ch; }
.lead-sm { color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.section-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.section-head.compact { align-items: end; }
.btn-row, .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { appearance: none; border: 1px solid transparent; border-radius: 12px; padding: 10px 14px; font-weight: 700; transition: .15s ease; }
.btn:hover { filter: brightness(1.06); }
.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); color: #cfe1ff; }
.btn-danger { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.35); color: #ffd1d1; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(59,130,246,.34); border-color: rgba(59,130,246,.55); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(14px); background: rgba(3,7,18,.78); }
.brand { font-size: 20px; font-weight: 800; }
.topnav { display: flex; gap: 18px; color: var(--muted); }
.status-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(0,0,0,.2); color: var(--muted); }
.status-box.ok { border-color: rgba(16,185,129,.35); color: #8af5c1; }
.status-box.warn { border-color: rgba(245,158,11,.35); color: #ffd79d; }
.status-box.err { border-color: rgba(239,68,68,.35); color: #ffc2c2; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
th { color: #b8c8ed; font-weight: 700; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(59,130,246,.12); color: #cfe1ff; font-size: 12px; }
.badge.badge-danger { background: rgba(239,68,68,.15); color: #ffc2c2; }
.badge.badge-success { background: rgba(16,185,129,.15); color: #bbf7d0; }
@media (max-width: 900px) {
  .topbar { flex-direction: column; gap: 12px; align-items: start; }
}


/* Selects dark theme across panels/docks */
select {
  background-color: #081226;
  color: #f8fbff;
  border-color: rgba(84,119,181,.45);
  color-scheme: dark;
}
select option,
select optgroup {
  background-color: #0b1327;
  color: #f8fbff;
}
select:focus {
  outline: none;
  border-color: rgba(73,135,255,.9);
  box-shadow: 0 0 0 3px rgba(59,130,246,.22);
}

/* ArcaneLiveStudio global visual system */
:root {
  --bg: #050b18;
  --panel: #101a34;
  --panel-2: #142448;
  --panel-3: #0b1429;
  --border: rgba(73, 119, 190, .34);
  --border-soft: rgba(120, 157, 218, .18);
  --text: #f2f6ff;
  --muted: #a9bbdf;
  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,.18);
  --accent-deep: #102b63;
  --danger: #ef4444;
  --success: #10b981;
  --shadow: 0 18px 50px rgba(0,0,0,.34);
  --radius: 18px;
}
html, body {
  background:
    radial-gradient(circle at 16% -10%, rgba(59,130,246,.16), transparent 32%),
    radial-gradient(circle at 86% 0%, rgba(37,99,235,.13), transparent 34%),
    linear-gradient(180deg, #030814 0%, #061126 42%, #040916 100%) !important;
  color: var(--text);
}
.card,
.auth-card,
.plan-card,
.module-card,
.notice-item,
.asset-card,
.asset-item,
.overlay-item,
.status-box,
.mini-card,
.table-wrap,
.editor-collapsible,
.provider-card,
.provider-grid .cardish,
.schedule-match-card,
.template-card,
.predictions-caster-item,
.predictions-team-card,
.pred-row,
.compare-panel,
.raffle-row,
.chat-msg,
.highlight-preview-card,
.leaderboard-row,
.bracket-card,
.brackets-panel {
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.12), transparent 36%),
    linear-gradient(180deg, rgba(15,29,61,.96), rgba(8,17,37,.98)) !important;
  border-color: rgba(90,149,255,.26) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
}
.card:hover,
.module-card:hover,
.overlay-item:hover,
.asset-item:hover,
.asset-card:hover,
.notice-item:hover,
.mini-card:hover {
  border-color: rgba(96,165,250,.42) !important;
}
.eyebrow {
  color: #8db2ff;
  letter-spacing: .18em;
}
.lead,
.lead-sm,
.muted,
.hint {
  color: var(--muted);
}
.btn {
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.btn-primary {
  background: linear-gradient(180deg, #438bff, #2f74e8) !important;
  border-color: rgba(147,197,253,.25) !important;
  color: #fff;
}
.btn-secondary,
.nav-link,
.tab {
  background: rgba(59,130,246,.12) !important;
  border-color: rgba(59,130,246,.32) !important;
  color: #d6e6ff !important;
}
.btn-danger {
  background: rgba(136,32,68,.42) !important;
  border-color: rgba(248,113,113,.42) !important;
  color: #ffe1e1 !important;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="url"],
select,
textarea {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(77,115,178,.44) !important;
  background: rgba(7,15,32,.78) !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
input::placeholder,
textarea::placeholder {
  color: rgba(169,187,223,.58);
}
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: rgba(73,135,255,.9) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.22), inset 0 1px 0 rgba(255,255,255,.035) !important;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #b9cdfa 50%),
    linear-gradient(135deg, #b9cdfa 50%, transparent 50%) !important;
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px) !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  padding-right: 38px !important;
  color-scheme: dark;
}
select option,
select optgroup {
  background-color: #0b1327;
  color: #f8fbff;
}
select optgroup {
  color: #8fb3ff;
}
table {
  border-collapse: separate;
  border-spacing: 0;
}
th {
  color: #9fbdff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
td, th {
  border-bottom-color: rgba(120,157,218,.14);
}
.badge {
  background: rgba(59,130,246,.18);
  border: 1px solid rgba(96,165,250,.28);
  color: #d7e7ff;
}
.status-box {
  background: rgba(7,15,32,.72) !important;
}
.status-box.ok {
  background: rgba(16,185,129,.08) !important;
}
.status-box.err {
  background: rgba(239,68,68,.10) !important;
}
.topbar {
  background: rgba(4,10,24,.88) !important;
  border-bottom-color: rgba(90,149,255,.18) !important;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: rgba(4,10,24,.7);
}
::-webkit-scrollbar-thumb {
  background: rgba(90,149,255,.44);
  border-radius: 999px;
  border: 3px solid rgba(4,10,24,.7);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(120,170,255,.62);
}


.als-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 8px auto 0;
  padding: 0 0 28px;
  text-align: center;
  color: #91a8d6;
  font-size: 13px;
}
.als-footer a {
  color: #d8e6ff;
  text-decoration: underline;
  font-weight: 700;
}
