/* ==========================================================================
   Positive Elijoe Bet — dark premium theme
   ========================================================================== */

:root {
  --bg: #070c16;
  --bg-2: #0a1120;
  --surface: #0f172a;
  --surface-2: #131d33;
  --border: #1e2a44;
  --border-soft: #182338;
  --text: #e6ebf5;
  --muted: #94a3b8;
  --dim: #64748b;
  --gold: #fbbf24;
  --gold-strong: #f59e0b;
  --gold-soft: rgba(251, 191, 36, .14);
  --green: #10b981;
  --green-dim: #059669;
  --success: #10b981;
  --red: #ef4444;
  --danger: #ef4444;
  --amber: #f59e0b;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, .14);
  --vvip-soft: rgba(251, 191, 36, .16);
  --pending-soft: rgba(245, 158, 11, .14);
  --text-muted: #94a3b8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(16, 185, 129, .09), transparent 60%),
    radial-gradient(900px 460px at -10% 10%, rgba(251, 191, 36, .07), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.main { flex: 1; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; font-family: 'Space Grotesk', sans-serif;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-gold {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #1a1206;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .28);
}
.btn-gold:hover { box-shadow: 0 12px 30px rgba(245, 158, 11, .4); }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { box-shadow: 0 10px 26px rgba(16, 185, 129, .35); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline { background: transparent; color: var(--gold); border: 1px solid rgba(251, 191, 36, .45); }
.btn-outline:hover { background: rgba(251, 191, 36, .1); }

.btn-danger { background: rgba(239, 68, 68, .12); color: var(--red); border-color: rgba(239, 68, 68, .4); }
.btn-danger:hover { background: rgba(239, 68, 68, .2); }

.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 12, 22, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fcd34d, #f59e0b); font-size: 17px; color: #1a1206;
}
.brand-logo {
  flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(251, 191, 36, .55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 500; font-size: .93rem; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { color: inherit; }

.nav-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); transition: color .15s ease, background .15s ease; }
.nav-bell:hover { color: var(--gold); background: var(--surface-2); }
.nav-bell .bell-ico { font-size: 1.05rem; line-height: 1; }
.nav-bell .bell-badge {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; font-size: .62rem; font-weight: 700; color: #1a1206;
  background: linear-gradient(135deg, #fcd34d, #f59e0b); border-radius: 999px; box-shadow: 0 0 0 2px rgba(7, 12, 22, .9);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ flash */

.flash { margin-top: 18px; padding: 13px 18px; border-radius: var(--radius-sm); font-size: .93rem; border: 1px solid; }
.flash-info    { background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .35); color: #93c5fd; }
.flash-success { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .35); color: #6ee7b7; }
.flash-error   { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 76px 0 56px; text-align: center; }
.hero .badge-row { display: flex; justify-content: center; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; max-width: 760px; margin: 0 auto 18px; }
.hero h1 .grad { background: linear-gradient(120deg, #34d399, #10b981 45%, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 600px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .hero-stats { display: flex; justify-content: center; gap: 42px; flex-wrap: wrap; margin-top: 46px; }
.hero .hero-stats b { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; color: var(--gold); display: block; }
.hero .hero-stats span { color: var(--dim); font-size: .84rem; }

/* --------------------------------------------------------------- sections */

.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.section-head .eyebrow {
  display: inline-block; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}

.grid { display: grid; gap: 22px; }
.cols2 { grid-template-columns: repeat(2, 1fr); }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.cols4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------------ cards */

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: #2a3a5c; }

/* prediction cards */
.prediction-card { display: flex; flex-direction: column; gap: 10px; position: relative; }
.prediction-top { display: flex; justify-content: space-between; align-items: center; }
.prediction-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 10px;
  padding: 6px 0;
}
.team-block {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 7px; text-align: center; min-width: 0;
}
.team-block strong {
  font-size: .92rem; font-weight: 600; line-height: 1.25;
  color: var(--text); overflow-wrap: anywhere; max-width: 100%;
}
.prediction-teams .vs {
  color: var(--dim); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; padding: 3px 9px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-2);
}

/* team avatars (crests) */
.team-avatar {
  flex: none; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.team-avatar img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}
.team-avatar-lg { width: 60px; height: 60px; }
.team-avatar-mono {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .82rem; color: var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.team-avatar-mono.team-avatar-lg { width: 60px; height: 60px; font-size: 1.05rem; }

.team-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-pick .team-select { flex: 1; min-width: 200px; }
.team-pick .team-other { flex: 1; min-width: 200px; }

.detail-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px; margin-bottom: 18px;
}
.detail-teams .team-block strong { font-size: 1.05rem; }
.detail-teams .vs { color: var(--dim); font-weight: 600; }
.prediction-meta { color: var(--dim); font-size: .83rem; }
.prediction-pick { font-weight: 600; color: var(--green); font-size: 1.02rem; }
.prediction-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.odds { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--gold); font-size: .95rem; }
.card-link { color: var(--green); font-size: .88rem; font-weight: 600; }
.card-link:hover { text-decoration: underline; }

.prediction-card.locked { overflow: hidden; }
.lock-overlay {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: rgba(7, 12, 22, .82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 20px;
}
.lock-ico { font-size: 26px; }
.lock-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .08em; }
.lock-sub { color: var(--muted); font-size: .86rem; max-width: 260px; }

/* plan cards */
.plan-card { display: flex; flex-direction: column; gap: 12px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-head h3 { font-size: 1.25rem; }
.plan-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.plan-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--gold); }
.plan-duration { color: var(--dim); font-size: .85rem; }
.plan-features { display: grid; gap: 7px; margin-bottom: 8px; }
.plan-features li { color: var(--muted); font-size: .9rem; padding-left: 24px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* badges */
.badge {
  display: inline-block; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: .68rem; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge-free { background: rgba(148, 163, 184, .14); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, .3); }
.badge-vip  { background: rgba(251, 191, 36, .12); color: var(--gold); border: 1px solid rgba(251, 191, 36, .35); }
.badge-vvip { background: linear-gradient(135deg, rgba(251, 191, 36, .2), rgba(245, 158, 11, .12)); color: #fde68a; border: 1px solid rgba(251, 191, 36, .45); }

.status { display: inline-block; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status-won     { background: rgba(16, 185, 129, .14); color: #6ee7b7; }
.status-lost    { background: rgba(239, 68, 68, .14); color: #fca5a5; }
.status-void    { background: rgba(148, 163, 184, .14); color: #cbd5e1; }
.status-pending { background: rgba(245, 158, 11, .14); color: #fcd34d; }

/* confidence */
.confidence { margin-top: 4px; }
.confidence-label { font-size: .76rem; color: var(--dim); display: block; margin-bottom: 5px; }
.confidence-track { display: block; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.confidence-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #10b981, #fbbf24); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; }
.step .step-num {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #1a1206;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; max-width: 280px; margin-inline: auto; }

/* faq */
.faq { max-width: 720px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-weight: 600; font-size: .98rem; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .chev { color: var(--gold); transition: transform .25s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 18px 16px; color: var(--muted); font-size: .92rem; }

/* telegram CTA */
.telegram-cta { text-align: center; background: linear-gradient(135deg, rgba(56, 161, 220, .12), rgba(16, 185, 129, .12)); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 24px; }
.telegram-cta h2 { margin-bottom: 8px; }
.telegram-cta p { color: var(--muted); margin-bottom: 20px; }

/* ------------------------------------------------------------------ forms */

.auth-wrap { max-width: 420px; margin: 56px auto; padding: 0 16px; }
.auth-card { padding: 30px; }
.auth-card h1 { font-size: 1.45rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: .95rem;
  transition: border-color .15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group .hint { font-size: .78rem; color: var(--dim); margin-top: 5px; }
.form-error { color: var(--red); font-size: .83rem; margin-top: 5px; }
.form-footer { margin-top: 8px; text-align: center; color: var(--muted); font-size: .9rem; }
.form-footer a { color: var(--gold); font-weight: 600; }

/* ------------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.table th {
  text-align: left; padding: 13px 16px; font-family: 'Space Grotesk', sans-serif;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }

/* ---------------------------------------------------------------- dashboard */

.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 34px; }
.dash-card { padding: 20px; }
.dash-card .dash-label { font-size: .78rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.dash-card .dash-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; margin-top: 6px; }
.dash-card .dash-value.gold { color: var(--gold); }
.dash-card .dash-value.green { color: var(--green); }
.dash-card .dash-sub { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------ admin layout */

.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 34px 0 70px; }
.admin-side { position: sticky; top: 90px; align-self: start; }
.admin-side .card { padding: 14px; }
.admin-side a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--muted); font-size: .92rem; font-weight: 500; }
.admin-side a:hover { background: var(--bg-2); color: var(--text); }
.admin-side a.active { background: rgba(251, 191, 36, .1); color: var(--gold); }
.admin-main { min-width: 0; }
.admin-main h1 { font-size: 1.5rem; margin-bottom: 4px; }
.admin-main .page-sub { color: var(--muted); margin-bottom: 22px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input[type="search"], .toolbar input[type="text"], .toolbar select {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 14px; font: inherit; font-size: .9rem;
}
.inline-actions { display: flex; gap: 8px; }
.inline-actions a, .inline-actions button {
  font-size: .8rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--muted); font-weight: 600;
}
.inline-actions a:hover, .inline-actions button:hover { color: var(--gold); border-color: var(--gold); }
.inline-actions .danger { color: var(--red); }
.inline-actions .danger:hover { border-color: var(--red); color: var(--red); }

/* --------------------------------------------------------------- misc */

.empty {
  text-align: center; padding: 44px 20px; color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--radius); font-size: .95rem;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.filters a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); font-size: .87rem; font-weight: 500; background: var(--surface);
}
.filters a.active, .filters a:hover { border-color: var(--gold); color: var(--gold); background: rgba(251, 191, 36, .08); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.pagination a:hover { color: var(--gold); border-color: var(--gold); }

.page-hero { padding: 48px 0 20px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.page-hero p { color: var(--muted); max-width: 560px; }

/* detail page */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.detail-card h1 { font-size: 1.3rem; margin-bottom: 14px; }
.detail-meta { display: grid; gap: 8px; margin-bottom: 18px; }
.detail-meta div { color: var(--muted); font-size: .93rem; }
.detail-meta b { color: var(--text); font-weight: 600; }
.detail-pick { font-size: 1.05rem; font-weight: 600; color: var(--green); }
.lock-box { text-align: center; padding: 30px 20px; }
.lock-box .lock-ico { font-size: 34px; display: block; margin-bottom: 10px; }
.lock-box h2 { margin-bottom: 6px; }
.lock-box p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }

/* ------------------------------------------------------------------ footer */

.site-footer { margin-top: 70px; border-top: 1px solid var(--border-soft); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 46px 0 30px; }
.footer-grid h4 { font-size: .9rem; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: .88rem; padding: 4px 0; }
.footer-grid > div:not(.footer-brand) a:hover { color: var(--gold); }
.footer-desc { color: var(--dim); font-size: .88rem; margin-top: 12px; max-width: 320px; }
.footer-channels { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.channel { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--gold); font-size: .84rem; font-weight: 600; padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.channel .channel-ico { font-size: 1.05rem; line-height: 1; }
.channel:hover, .channel:focus-visible, .channel:active { color: #111; background: var(--gold); border-color: var(--gold); }
.channel:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.footer-age { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; background: rgba(232, 185, 44, .07); border-block: 1px solid var(--border-soft); padding: 26px 6vw; }
.age-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font-weight: 800; font-size: .95rem; }
.footer-disclaimer { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.7; max-width: 860px; }
.footer-disclaimer strong { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); padding: 18px 0; color: var(--dim); font-size: .8rem; }

/* -------------------------------------------------------- booking slip */

.copy-btn { margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); font: inherit; font-size: .8rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: .2s; }
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.copy-btn.copied { border-color: var(--accent); color: var(--accent); }

.booking-slip {
  display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, .35);
  background:
    radial-gradient(240px 160px at 0% 0%, rgba(251, 191, 36, .12), transparent 65%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
}
.booking-slip .bs-bookie { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.booking-slip .bs-bookie strong { color: var(--text); }
.booking-slip .bs-label {
  align-self: flex-start; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(251, 191, 36, .35);
  border-radius: 999px; padding: 3px 10px;
}
.booking-slip .bs-code {
  display: inline-block; font-family: 'Space Grotesk', ui-monospace, monospace;
  font-weight: 700; font-size: 1.7rem; letter-spacing: .12em; color: var(--gold);
  text-transform: uppercase; word-break: break-all;
}
.booking-slip .bs-copy-btn {
  margin-left: 12px; padding: 8px 18px; font-size: .82rem; font-weight: 700;
  border: 1px solid rgba(251, 191, 36, .55); color: var(--gold);
}
.booking-slip .bs-copy-btn:hover { background: rgba(251, 191, 36, .12); border-color: var(--gold); color: var(--gold); }
.booking-slip .bs-copy-btn.copied { border-color: var(--accent); color: var(--accent); background: none; }
.booking-slip .bs-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.booking-slip .bs-note { margin: 0; color: var(--dim); font-size: .8rem; max-width: 320px; text-align: right; }

.booking-slips {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* -------------------------------------------------------------- ad slots */

.ad-slots { padding: 8px 0 0; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; max-width: 800px; margin: 0 auto; }
.ad-slot { display: flex; flex-direction: column; }
.ad-card {
  display: block; position: relative; overflow: hidden; z-index: 0;
  border: 1px solid var(--border-soft); border-radius: 14px;
  background: var(--surface); text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ad-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, .35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}
.ad-card .ad-media { position: relative; overflow: hidden; z-index: 0; }
.ad-card .ad-img { display: block; width: 100%; height: auto; }
.ad-card .ad-mono {
  position: relative; height: 150px;
  background:
    radial-gradient(120px 120px at 18% 10%, rgba(251, 191, 36, .16), transparent 65%),
    radial-gradient(160px 160px at 85% 110%, rgba(16, 185, 129, .14), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--bg-2));
}
.ad-card .ad-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 8, 16, .82) 0%, rgba(4, 8, 16, .45) 38%, rgba(4, 8, 16, 0) 60%);
}
.ad-card .ad-tag {
  position: absolute; top: 10px; left: 12px; z-index: 3;
  font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .9); background: rgba(7, 12, 22, .55);
  border: 1px solid rgba(255, 255, 255, .16); padding: 3px 9px; border-radius: 999px;
}
.ad-card .ad-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 14px 12px; }
.ad-card .ad-title { font-weight: 800; font-size: .98rem; color: #fff; margin-bottom: 3px; }
.ad-card .ad-text { font-size: .8rem; line-height: 1.35; color: rgba(255, 255, 255, .88); margin: 0; }
.ad-card .ad-cta { margin-top: 8px; font-size: .78rem; font-weight: 800; color: var(--gold); transition: color .15s ease; }
.ad-card:hover .ad-cta { color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; }
.ad-details {
  margin-top: 8px; padding: 0 14px;
  font-size: .78rem; line-height: 1.55; color: var(--dim);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .cols3, .cols4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-side .card { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side a { padding: 8px 12px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px 6vw 22px;
    display: none; gap: 14px; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .cols2, .cols3, .cols4 { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 40px; }
  .section { padding: 48px 0; }
  .age-badge { width: 40px; height: 40px; }
  .ad-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Extensions — auth, forms, dashboard and admin layouts
   ========================================================================== */

/* buttons */
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-accent {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #052e1f;
  box-shadow: 0 8px 24px rgba(16, 185, 129, .25);
}
.btn-accent:hover { box-shadow: 0 12px 30px rgba(16, 185, 129, .4); }

/* ------------------------------------------------------------------ auth */

.auth-page { display: grid; place-items: center; padding: 56px 16px; }
.auth-box {
  width: min(440px, 100%); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow);
}
.auth-box h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-box .subtitle { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.auth-footer { margin-top: 18px; text-align: center; color: var(--muted); font-size: .9rem; }
.auth-footer a { color: var(--gold); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- forms */

.form .field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: .95rem;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field select { appearance: none; }
.field-error { color: var(--red); font-size: .83rem; margin-top: 5px; }
.hint { font-size: .78rem; color: var(--dim); margin-top: 5px; }

/* ------------------------------------------------------------------ admin */

.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 34px 0 70px; }
.admin-sidebar {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; position: sticky; top: 90px; align-self: start; height: fit-content;
}
.admin-sidebar .logo { padding: 2px 6px 14px; border-bottom: 1px solid var(--border-soft); margin-bottom: 12px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: .92rem; font-weight: 500;
}
.admin-nav a:hover { background: var(--bg-2); color: var(--text); }
.admin-nav a.active { background: rgba(251, 191, 36, .1); color: var(--gold); }
.admin-nav .ico { width: 20px; text-align: center; }
.admin-content { min-width: 0; }
.admin-content h1 { font-size: 1.5rem; margin-bottom: 4px; }
.admin-toggle { display: none; }

/* admin inline action row */
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions select, .actions input, .actions button {
  font: inherit; font-size: .82rem; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
}
.actions button { font-weight: 600; color: var(--muted); cursor: pointer; }
.actions button:hover { color: var(--gold); border-color: var(--gold); }

/* ------------------------------------------------------------- dashboard */

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.dash-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.dash-card h3 { font-size: .82rem; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.dash-card .val { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700; }
.dash-card .icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.05rem; background: rgba(148, 163, 184, .12); margin-bottom: 12px;
}

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.perf-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
}
.perf-stat {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; text-align: center;
}
.perf-stat b { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700; display: block; }
.perf-stat span { font-size: .78rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-toggle {
    display: block; width: fit-content; margin-bottom: 14px; font-size: 1.1rem; line-height: 1;
    background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 16px;
  }
  .admin-sidebar { display: none; position: static; }
  .admin-sidebar.open { display: block; }
  .admin-nav { display: grid; gap: 4px; }
}

@media (max-width: 680px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { padding: 36px 12px; }
}

/* ----------------------------------------------------------- polish */
::selection { background: rgba(251, 191, 36, .3); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

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

.card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { border-color: rgba(251, 191, 36, .25); }

.btn, .btn-gold, .btn-accent, .btn-ghost { transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

/* legal pages */
.legal-card h2 {
  font-size: 1.25rem; margin: 26px 0 8px; padding-top: 4px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); margin-bottom: 10px; }
.legal-card a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-card ul { list-style: disc; padding-left: 22px; color: var(--muted); margin-bottom: 10px; }
.legal-card li { margin-bottom: 6px; }
.legal-card li a { color: var(--gold); }

/* footer legal row */
.footer-legal {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  flex-wrap: wrap; text-align: center; padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--dim);
}
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--gold); }

/* 404 */
.error-page { text-align: center; padding: 48px 24px; }
.error-code {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 4.5rem; line-height: 1; color: var(--gold);
  background: linear-gradient(120deg, var(--gold), var(--gold-strong));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* buttons present in templates but missing styles */

/* AI predictions */
.ai-card { border-color: rgba(16, 185, 129, .22); }
.ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: auto; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; color: var(--green);
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: 999px; padding: 3px 10px;
}
.ai-bars { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.ai-bar {
  display: grid; grid-template-columns: 96px 1fr 38px;
  align-items: center; gap: 10px;
}
.ai-bar-label { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-bar-track { display: block; height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; }
.ai-bar-fill {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
}
.ai-bar-val { font-size: .8rem; font-weight: 700; color: var(--text); text-align: right; }
.ai-signals { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.ai-signals li {
  position: relative; padding-left: 18px;
  font-size: .86rem; color: var(--muted); line-height: 1.45;
}
.ai-signals li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.ai-verdict {
  margin: 14px 0 0; padding: 12px 14px;
  font-size: .88rem; line-height: 1.5; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.ai-note {
  margin-top: 28px; text-align: center;
  font-size: .82rem; color: var(--dim);
}

/* news */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}
.news-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block; background: var(--bg-2); cursor: zoom-in;
}
.news-gallery img:only-child { aspect-ratio: 16/9; }
.news-content { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.news-title { font-size: 1.1rem; line-height: 1.3; }
.news-date { color: var(--dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.news-body { color: var(--muted); font-size: .92rem; line-height: 1.55; white-space: pre-line; }
.news-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.news-body a:hover { color: var(--gold-strong); }

/* lightbox (news image full view) */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 8, 14, .93);
  padding: 56px 20px 24px;
}
.lightbox.open { display: flex; }
.lightbox-frame {
  margin: 0; display: flex; flex-direction: column; gap: 10px;
  max-width: min(1200px, 96vw); max-height: 88vh;
}
.lightbox-frame img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  background: #000;
}
.lightbox-frame figcaption { color: var(--muted); text-align: center; font-size: .88rem; line-height: 1.4; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; z-index: 2; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  font-size: 1.15rem; line-height: 1; padding: 0;
  transition: background .15s ease, border-color .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }
