/* Sintonix IPTV — portal + landing
   Palette: deep purple bg, violet accents, Public Sans + brand assets */

@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #1c1a2a;
  --bg-deep: #14121f;
  --bg-elevated: #242233;
  --bg-card: #2a273a;
  --bg-card-hover: #312e45;
  --surface: #212b36;
  --border: rgba(145, 158, 171, 0.16);
  --border-strong: rgba(171, 71, 188, 0.35);

  --text: #ffffff;
  --text-secondary: #c4cdd5;
  --text-muted: #919eab;
  --text-dim: #454f5b;

  --primary: #ab47bc;
  --primary-light: #ce93d8;
  --primary-dark: #8e24aa;
  --primary-glow: rgba(171, 71, 188, 0.35);
  --primary-soft: rgba(92, 42, 114, 0.5);

  --accent: #7c4dff;
  --success: #22c55e;
  --warning: #ffab00;
  --danger: #ff5630;
  --info: #00b8d9;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(171, 71, 188, 0.18);

  --font: "Public Sans", Helvetica, Arial, sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #fff;
}

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

/* ─── Landing layout ─────────────────────────────────────── */

.site-body {
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(171, 71, 188, 0.22), transparent 55%),
    radial-gradient(700px 400px at 10% 40%, rgba(124, 77, 255, 0.12), transparent 50%),
    radial-gradient(600px 300px at 50% 100%, rgba(92, 42, 114, 0.25), transparent 55%),
    var(--bg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(28, 26, 42, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover {
  color: #fff;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px var(--primary-glow);
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-mark--lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.logo-wordmark {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}
.logo-wordmark--hero {
  height: auto;
  width: min(420px, 100%);
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow), var(--shadow-glow);
  border: 1px solid var(--border-strong);
}
.brand-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.brand-hero-visual .brand-icon {
  width: min(180px, 55vw);
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 40px rgba(171, 71, 188, 0.35);
  border: 1px solid var(--border-strong);
}
.logo span em {
  font-style: normal;
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Language switcher ──────────────────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-switch-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 28px 7px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ce93d8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 7.5rem;
}
.lang-select:hover,
.lang-select:focus {
  border-color: var(--primary-light);
  outline: none;
}
.lang-switch-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.lang-switch-top .lang-switch-label {
  display: none;
}
.lang-switch-sidebar {
  width: 100%;
}
.lang-switch-sidebar .lang-switch {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.lang-switch-sidebar .lang-select {
  width: 100%;
  min-width: 0;
}
.sidebar .lang-switch-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── OAuth buttons ──────────────────────────────────────── */
.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 4px;
}
.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--border-strong);
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-oauth:hover {
  filter: brightness(1.08);
  color: #fff;
}
.oauth-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}
.btn-google {
  background: #fff;
  color: #1f1f1f !important;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-google:hover {
  color: #111 !important;
  filter: brightness(0.96);
}
.btn-google .oauth-icon {
  background: #fff;
  color: #ea4335;
  border: 1px solid #eee;
}
.btn-microsoft {
  background: #2f2c46;
  color: #fff !important;
}
.btn-microsoft .oauth-icon {
  background: #00a4ef;
  color: #fff;
  font-size: 0.7rem;
}
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.oauth-divider span {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}
.btn-ghost {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  color: #fff;
  text-decoration: none;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 10px;
}
.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) clamp(16px, 4vw, 48px) 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(171, 71, 188, 0.15);
  border: 1px solid rgba(171, 71, 188, 0.35);
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #fff 0%, var(--primary-light) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 34rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-stats div strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}
.hero-stats div span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 71, 188, 0.45), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.tv-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: linear-gradient(160deg, #3a3550, #1a1826);
  border: 3px solid #4a4560;
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
  padding: 10px;
}
.tv-screen {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(171, 71, 188, 0.35), transparent 50%),
    linear-gradient(225deg, rgba(124, 77, 255, 0.3), transparent 45%),
    linear-gradient(180deg, #151320 0%, #221c35 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  animation: shine 6s ease-in-out infinite;
}
@keyframes shine {
  0%,
  100% {
    transform: translateX(-30%);
  }
  50% {
    transform: translateX(30%);
  }
}
.tv-ui {
  width: 88%;
  z-index: 1;
}
.tv-ui .row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.tv-ui .tile {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tv-ui .tile.accent {
  background: linear-gradient(135deg, rgba(171, 71, 188, 0.55), rgba(124, 77, 255, 0.4));
}
.tv-ui .bar {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
  width: 55%;
}
.tv-stand {
  width: 120px;
  height: 14px;
  margin: 10px auto 0;
  background: #3a3550;
  border-radius: 0 0 8px 8px;
  position: relative;
  z-index: 1;
}

/* Sections */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 48px);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.platform-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 140px;
  justify-content: center;
}
.platform-chip svg {
  width: 22px;
  height: 22px;
  fill: var(--primary-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(42, 39, 58, 0.95), rgba(28, 26, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(171, 71, 188, 0.15);
  color: var(--primary-light);
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
  box-shadow: 0 6px 18px var(--primary-glow);
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cta-band {
  margin: 24px clamp(16px, 4vw, 48px) 64px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px);
  background:
    linear-gradient(120deg, rgba(171, 71, 188, 0.35), rgba(124, 77, 255, 0.2)),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-glow);
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
}
.cta-band p {
  margin: 0;
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 48px clamp(16px, 4vw, 48px) 28px;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 8px;
}
.footer-grid a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 280px;
  margin: 12px 0 0;
}
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── Admin shell ────────────────────────────────────────── */

.admin-body {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(171, 71, 188, 0.12), transparent 50%),
    var(--bg);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(20, 18, 31, 0.95);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .logo {
  margin-bottom: 8px;
  padding: 0 8px;
}
.sidebar .logo small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav a {
  color: var(--text-secondary);
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
}
.nav a.active {
  background: linear-gradient(90deg, rgba(171, 71, 188, 0.28), rgba(124, 77, 255, 0.12));
  color: #fff;
  border: 1px solid rgba(171, 71, 188, 0.25);
}
.sidebar-user {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sidebar-user strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
.sidebar-user a {
  color: var(--primary-light);
  font-weight: 600;
}

.content {
  padding: clamp(20px, 3vw, 36px);
}

.page-title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}
.stat-card .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -0.03em;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.panel h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  margin-bottom: 12px;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
  color: var(--text);
  font-weight: 500;
}
.checkbox input {
  width: auto;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.badge-off {
  background: rgba(255, 86, 48, 0.15);
  color: #ffab91;
}
.badge-type {
  background: rgba(171, 71, 188, 0.18);
  color: var(--primary-light);
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  font-weight: 500;
}
.alert-ok {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.alert-error {
  background: rgba(255, 86, 48, 0.12);
  color: #ffccbc;
  border: 1px solid rgba(255, 86, 48, 0.3);
}

/* Legal / player-only disclaimer */
.disclaimer-banner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  margin-top: 12px;
}
.disclaimer-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 171, 0, 0.1);
  border: 1px solid rgba(255, 171, 0, 0.35);
  color: #ffe0a3;
  font-size: 0.92rem;
  line-height: 1.45;
}
.disclaimer-box strong {
  color: #ffd666;
}
.disclaimer-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}
.disclaimer-inline {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 171, 0, 0.08);
  border: 1px solid rgba(255, 171, 0, 0.28);
  color: #e8d5a8;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
}
.section-legal {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px) 8px;
}
.section-legal h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}
.section-legal p,
.section-legal li {
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.95rem;
}
.section-legal ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}
.footer-disclaimer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hint {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--text-secondary);
}

.list-plain {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
  padding-left: 1.2rem;
}
.list-plain a {
  color: var(--primary-light);
}

/* Login admin */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 400px at 70% 20%, rgba(171, 71, 188, 0.28), transparent 55%),
    radial-gradient(500px 300px at 20% 80%, rgba(124, 77, 255, 0.15), transparent 50%),
    var(--bg);
}
.login-card {
  width: min(420px, 100%);
  background: rgba(42, 39, 58, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: var(--shadow), var(--shadow-glow);
  backdrop-filter: blur(10px);
}
.login-card .logo {
  margin-bottom: 18px;
  justify-content: center;
}
.login-card .logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.login-card .brand-icon-solo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow), var(--shadow-glow);
  border: 1px solid var(--border-strong);
}
.login-card h1 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 22px;
  font-size: 0.95rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .features-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(20, 18, 31, 0.98);
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr;
  }
  .nav-actions .btn-outline {
    display: none;
  }
}
