/* ═══════════════════════════════════════════════════════════════
   SHOWMINE — Master Stylesheet
   Netflix-inspired dark cinema aesthetic
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --red:        #E50914;
  --red-dark:   #b20710;
  --red-glow:   rgba(229,9,20,0.25);
  --black:      #000000;
  --bg:         #141414;
  --bg-raise:   #1f1f1f;
  --card:       #181818;
  --card-hover: #242424;
  --border:     rgba(255,255,255,0.08);
  --white:      #ffffff;
  --text:       #e5e5e5;
  --muted:      #a3a3a3;
  --dim:        #6b6b6b;
  --green:      #46d369;
  --gold:       #f5a623;
  --radius:     4px;
  --radius-lg:  8px;
  --nav-h:      68px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --shadow:     0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.8);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{background:var(--bg);color:var(--text);font-family:var(--font-body);font-size:15px;line-height:1.6;overflow-x:hidden}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button{cursor:pointer;font-family:inherit}
input,select,textarea{font-family:inherit}

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.15);border-radius:3px}

/* ═══════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 4%;
  gap: 32px;
  transition: background 0.4s;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.nav.scrolled {
  background: rgba(20,20,20,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 2px;
  color: var(--red);
  flex-shrink: 0;
  text-shadow: 0 0 20px var(--red-glow);
}
.nav__links {
  display: flex; gap: 20px; list-style: none;
}
.nav__links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }

.nav__right {
  margin-left: auto;
  display: flex; align-items: center; gap: 16px;
}
.nav__search-btn {
  background: none; border: none; color: var(--muted);
  font-size: 18px; padding: 4px; transition: color 0.2s;
}
.nav__search-btn:hover { color: var(--white); }

.nav__search-bar {
  position: absolute; top: var(--nav-h); right: 4%;
  background: rgba(0,0,0,0.95); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius);
  display: none;
}
.nav__search-bar.open { display: flex; }
.nav__search-bar input {
  background: none; border: none; color: var(--white);
  font-size: 15px; width: 260px; outline: none;
}

.nav__avatar {
  width: 36px; height: 36px; border-radius: 4px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; cursor: pointer;
  flex-shrink: 0;
}

.nav__dropdown {
  position: relative;
}
.nav__dropdown-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: rgba(20,20,20,0.98); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 180px;
  padding: 8px 0; display: none;
  box-shadow: var(--shadow-lg);
}
.nav__dropdown:hover .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a {
  display: block; padding: 10px 18px;
  font-size: 13px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__dropdown-menu a:hover {
  color: var(--white); background: rgba(255,255,255,0.05);
}
.nav__dropdown-menu hr {
  border: none; border-top: 1px solid var(--border); margin: 6px 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; height: 90vh; min-height: 560px;
  display: flex; align-items: center;
  padding: 0 4%; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0a0a0a;
}
.hero__bg-art {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
  opacity: 0.8;
}
.hero__bg::after {
  content:'';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(20,20,20,1) 0%,
    rgba(20,20,20,0.8) 40%,
    rgba(20,20,20,0.2) 70%,
    transparent 100%
  ),
  linear-gradient(
    to top,
    rgba(20,20,20,1) 0%,
    transparent 40%
  );
}
.hero__thumb-bg {
  position: absolute; right: 0; top: 0; bottom: 0; width: 65%;
  display: flex; align-items: center; justify-content: center;
  font-size: 220px; opacity: 0.06; z-index: 0;
  user-select: none;
}
.hero__content {
  position: relative; z-index: 2; max-width: 560px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: 2px; margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}
.hero__meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.hero__meta span { font-size: 13px; color: var(--muted); }
.hero__meta .dot { color: var(--dim); }
.hero__meta .match { color: var(--green); font-weight: 600; }
.hero__desc {
  font-size: 15px; color: var(--muted); line-height: 1.7;
  margin-bottom: 28px; max-width: 480px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; border: none;
  transition: all 0.2s; white-space: nowrap;
}
.btn--play {
  background: var(--white); color: var(--black);
}
.btn--play:hover { background: rgba(255,255,255,0.85); }

.btn--info {
  background: rgba(109,109,110,0.7); color: var(--white);
  backdrop-filter: blur(4px);
}
.btn--info:hover { background: rgba(109,109,110,0.5); }

.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }

.btn--ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { border-color: var(--white); }

.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--icon { padding: 10px; width: 42px; height: 42px; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT ROWS
   ═══════════════════════════════════════════════════════════════ */
.row {
  padding: 0 4% 40px;
}
.row__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.row__title {
  font-size: 18px; font-weight: 700; color: var(--white);
}
.row__more {
  font-size: 12px; font-weight: 600; color: #54b3d6;
  display: flex; align-items: center; gap: 4px;
  opacity: 0; transition: opacity 0.3s;
}
.row:hover .row__more { opacity: 1; }
.row__more::after { content: '›'; font-size: 16px; }

.row__slider {
  display: flex; gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.row__slider::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.card {
  flex: 0 0 auto;
  width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1),
              box-shadow 0.3s;
  position: relative;
}
.card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  z-index: 10;
}
.card__thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg-raise);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card__thumb img { transform: scale(1.05); }
.card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; opacity: 0; transition: opacity 0.3s;
}
.card:hover .card__overlay { opacity: 1; }
.card__overlay-actions { display: flex; gap: 6px; margin-bottom: 8px; }
.card__action {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.6); color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.card__action:hover { background: rgba(255,255,255,0.2); border-color: var(--white); }
.card__action--play {
  background: var(--white); color: var(--black); border-color: var(--white);
}
.card__action--play:hover { background: rgba(255,255,255,0.85); }

.card__body { padding: 10px 12px 12px; }
.card__title {
  font-size: 13px; font-weight: 600; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.card__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted);
}
.card__badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; gap: 4px; flex-wrap: wrap;
}
.badge {
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 2px; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge--hd   { background: rgba(0,0,0,0.7); color: #54b3d6; border: 1px solid #54b3d6; }
.badge--fhd  { background: rgba(0,0,0,0.7); color: var(--gold); border: 1px solid var(--gold); }
.badge--new  { background: var(--green); color: var(--black); }
.badge--live { background: var(--red); color: var(--white); }
.badge--rent { background: rgba(0,0,0,0.7); color: var(--gold); border: 1px solid var(--gold); }

/* Wide card (for featured) */
.card--wide { width: 300px; }
.card--wide .card__thumb { aspect-ratio: 16/9; }

/* ═══════════════════════════════════════════════════════════════
   CONTINUE WATCHING ROW
   ═══════════════════════════════════════════════════════════════ */
.progress-bar {
  height: 3px; background: rgba(255,255,255,0.2);
  border-radius: 2px; margin-top: 6px;
}
.progress-bar__fill {
  height: 100%; background: var(--red);
  border-radius: 2px; transition: width 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   LIVE TV ROW
   ═══════════════════════════════════════════════════════════════ */
.live-card {
  flex: 0 0 auto; width: 200px;
  background: var(--card); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.live-card:hover {
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}
.live-card__thumb {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; position: relative;
}
.live-card__live-dot {
  position: absolute; top: 8px; right: 8px;
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 2px; letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.live-card__body { padding: 10px 12px; }
.live-card__name { font-size: 13px; font-weight: 600; color: var(--white); }
.live-card__viewers { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ═══════════════════════════════════════════════════════════════
   PLAYER
   ═══════════════════════════════════════════════════════════════ */
.player-page { background: #000; min-height: 100vh; }

.player-wrap {
  width: 100%; background: #000; position: relative;
}
.player-canvas-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16/9; background: #000;
  overflow: hidden;
}
.player-canvas {
  width: 100%; height: 100%; display: block;
}
.player-video {
  width: 100%; height: 100%; object-fit: contain;
  position: absolute; inset: 0;
}
.player-watermark {
  position: absolute; z-index: 10;
  font-size: 11px; color: rgba(255,255,255,0.12);
  font-weight: 500; pointer-events: none;
  user-select: none; letter-spacing: 1px;
  transition: all 0.3s;
}
.player-blackout {
  position: absolute; inset: 0; z-index: 50;
  background: #000; display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.player-blackout.show { display: flex; }
.player-blackout p { color: var(--muted); font-size: 14px; }

.player-controls {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  padding: 32px 20px 16px;
  opacity: 0; transition: opacity 0.3s;
}
.player-canvas-wrap:hover .player-controls { opacity: 1; }

.player-progress {
  height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 2px; cursor: pointer; margin-bottom: 12px;
  position: relative;
}
.player-progress:hover { height: 6px; }
.player-progress__fill {
  height: 100%; background: var(--red); border-radius: 2px;
  pointer-events: none;
}
.player-progress__thumb {
  position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px; background: var(--red);
  border-radius: 50%; pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
}
.player-progress:hover .player-progress__thumb { opacity: 1; }

.player-btns {
  display: flex; align-items: center; gap: 12px;
}
.player-btn {
  background: none; border: none; color: var(--white);
  font-size: 20px; padding: 4px; transition: opacity 0.2s;
  line-height: 1;
}
.player-btn:hover { opacity: 0.7; }
.player-time {
  font-size: 13px; color: var(--muted); margin-left: 4px;
}
.player-quality {
  margin-left: auto;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 12px; padding: 4px 10px;
  border-radius: var(--radius); cursor: pointer;
}

.player-ad-overlay {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(0,0,0,0.7); display: none;
  align-items: flex-end; justify-content: flex-start;
  padding: 60px 20px 70px;
}
.player-ad-overlay.show { display: flex; }
.player-ad-info {
  background: rgba(0,0,0,0.8); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 14px;
  font-size: 12px; color: var(--muted);
}
.player-ad-skip {
  margin-left: 12px; background: rgba(255,255,255,0.15);
  border: none; color: var(--white); font-size: 12px;
  padding: 6px 12px; border-radius: var(--radius);
  cursor: pointer; transition: background 0.2s;
}
.player-ad-skip:hover { background: rgba(255,255,255,0.25); }

.player-info { padding: 20px 4% 40px; }
.player-info h1 { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.player-info__meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-bottom: 12px;
}
.player-parts {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;
}
.part-btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; padding: 6px 14px;
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
}
.part-btn.active, .part-btn:hover {
  background: var(--red); border-color: var(--red); color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 80px 20px 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(229,9,20,0.08) 0%, transparent 60%),
              var(--bg);
}
.auth-box {
  background: rgba(0,0,0,0.75); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  width: 100%; max-width: 420px; backdrop-filter: blur(12px);
}
.auth-box h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 7px;
}
.form-input {
  width: 100%; background: #333; border: 1.5px solid transparent;
  border-radius: var(--radius); padding: 13px 15px;
  color: var(--white); font-size: 15px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus { background: #454545; border-color: var(--white); }
.form-input::placeholder { color: var(--dim); }
.form-error {
  background: rgba(229,9,20,0.12); border: 1px solid rgba(229,9,20,0.3);
  border-radius: var(--radius); padding: 12px 16px;
  color: #ff6b6b; font-size: 14px; margin-bottom: 16px;
}
.form-submit {
  width: 100%; background: var(--red); color: var(--white);
  border: none; border-radius: var(--radius); padding: 15px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background 0.2s; margin-top: 8px;
}
.form-submit:hover { background: var(--red-dark); }
.form-hint { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.form-hint a { color: var(--white); }

/* ═══════════════════════════════════════════════════════════════
   PLANS PAGE
   ═══════════════════════════════════════════════════════════════ */
.plans-page { padding: 100px 4% 60px; }
.plans-page h1 {
  font-family: var(--font-display); font-size: clamp(40px,6vw,72px);
  text-align: center; margin-bottom: 8px; color: var(--white);
}
.plans-page .sub {
  text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 16px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; max-width: 1000px; margin: 0 auto 60px;
}
.plan-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card--popular {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(229,9,20,0.06), var(--card));
}
.plan-card--popular::before {
  content: 'MOST POPULAR';
  position: absolute; top: 12px; right: -20px;
  background: var(--red); color: var(--white);
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 32px; transform: rotate(30deg);
}
.plan-card__name { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.plan-card__price { font-size: 36px; font-weight: 900; color: var(--white); margin: 8px 0; }
.plan-card__price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-card__features { list-style: none; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.plan-card__features li { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.plan-card__features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.plan-card__features li.no::before { content: '✗'; color: var(--dim); }
.plan-card a {
  display: block; text-align: center; padding: 12px;
  background: var(--red); color: var(--white);
  border-radius: var(--radius); font-weight: 700; font-size: 14px;
  margin-top: auto; transition: background 0.2s;
}
.plan-card a:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #242424; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  width: 100%; max-width: 460px; position: relative;
  transform: scale(0.95); transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--white); }
.modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #2a2a2a; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px;
  font-size: 14px; color: var(--white);
  box-shadow: var(--shadow); max-width: 320px;
  animation: slideIn 0.3s ease;
}
.toast--success { border-color: var(--green); }
.toast--error   { border-color: var(--red); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════════════════ */
.admin-layout {
  display: flex; min-height: 100vh;
}
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: rgba(0,0,0,0.6); border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 0 0 20px;
}
.admin-sidebar__logo {
  font-family: var(--font-display); font-size: 22px;
  color: var(--red); letter-spacing: 2px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.admin-sidebar__logo small {
  display: block; font-family: var(--font-body);
  font-size: 10px; font-weight: 600; color: var(--dim);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 2px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  color: var(--muted); transition: color 0.2s, background 0.2s;
  border-left: 2px solid transparent;
}
.sidebar-nav li a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.sidebar-nav li a.active {
  color: var(--white); background: rgba(229,9,20,0.1);
  border-left-color: var(--red);
}
.sidebar-nav .section-label {
  font-size: 10px; font-weight: 700; color: var(--dim);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 16px 20px 6px;
}

.admin-main {
  flex: 1; overflow-y: auto; padding: 28px 32px;
}
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.admin-topbar h1 { font-size: 24px; font-weight: 800; }

/* Stats Grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  border-top: 2px solid var(--red);
}
.stat-card--green { border-top-color: var(--green); }
.stat-card--gold  { border-top-color: var(--gold); }
.stat-card--blue  { border-top-color: #54b3d6; }
.stat-card__label { font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-card__value { font-size: 28px; font-weight: 900; color: var(--white); }
.stat-card__sub   { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Admin Table */
.admin-table-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px;
}
.admin-table-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.admin-table-head h3 { font-size: 16px; font-weight: 700; }
.admin-table {
  width: 100%; border-collapse: collapse;
}
.admin-table th {
  padding: 10px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--dim);
  text-transform: uppercase; letter-spacing: 1px;
  background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 13px 16px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Admin form controls */
.admin-input {
  background: rgba(255,255,255,0.06); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 9px 13px;
  color: var(--white); font-size: 13px; outline: none;
  transition: border-color 0.2s; width: 100%;
}
.admin-input:focus { border-color: rgba(255,255,255,0.3); }
.admin-select {
  background: rgba(255,255,255,0.06); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 9px 13px;
  color: var(--white); font-size: 13px; outline: none;
  width: 100%; cursor: pointer;
}
.admin-textarea {
  background: rgba(255,255,255,0.06); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 10px 13px;
  color: var(--white); font-size: 13px; outline: none;
  width: 100%; min-height: 90px; resize: vertical;
}

/* Tags */
.tag {
  display: inline-block; padding: 3px 9px;
  border-radius: 2px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.tag--red    { background: rgba(229,9,20,0.15);   color: var(--red);    border: 1px solid rgba(229,9,20,0.3); }
.tag--green  { background: rgba(70,211,105,0.12); color: var(--green);  border: 1px solid rgba(70,211,105,0.3); }
.tag--gold   { background: rgba(245,166,35,0.12); color: var(--gold);   border: 1px solid rgba(245,166,35,0.3); }
.tag--blue   { background: rgba(84,179,214,0.12); color: #54b3d6;       border: 1px solid rgba(84,179,214,0.3); }
.tag--gray   { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--red); background: rgba(229,9,20,0.04);
}
.upload-zone__icon { font-size: 36px; margin-bottom: 12px; }
.upload-zone__label { font-size: 14px; color: var(--muted); }
.upload-zone__label strong { color: var(--white); }

/* Progress bar */
.progress {
  height: 6px; background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden; margin-top: 10px;
}
.progress__fill {
  height: 100%; background: var(--red);
  border-radius: 3px; transition: width 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════════════════════════ */
.profile-page { padding: 90px 4% 60px; max-width: 800px; }
.profile-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 20px;
}
.profile-section h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH / BROWSE
   ═══════════════════════════════════════════════════════════════ */
.page-content { padding: 90px 4% 60px; }
.page-content h1 {
  font-family: var(--font-display); font-size: 42px;
  margin-bottom: 24px; color: var(--white);
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 40px 4% 30px; border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer__top {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px; margin-bottom: 28px;
}
.footer__col h4 { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer__col a { display: block; font-size: 12px; color: var(--dim); margin-bottom: 8px; transition: color 0.2s; }
.footer__col a:hover { color: var(--muted); }
.footer__bottom { font-size: 12px; color: var(--dim); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hero { height: 70vh; }
  .hero__title { font-size: 38px; }
  .card { width: 150px; }
  .card--wide { width: 220px; }
  .admin-sidebar { display: none; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
  .auth-box { padding: 28px 20px; }
}
