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

:root {
  --accent:       #E63946;
  --accent-dark:  #C1121F;
  --like:         #2DC653;
  --skip:         #E63946;
  --gold:         #FFD700;
  --orange:       #FF9F1C;
  --bg:           #0f0f0f;
  --surface:      #1a1a1a;
  --surface-2:    #222222;
  --surface2:     #222222;
  --surface3:     #2a2a2a;
  --border:       #303030;
  --text:         #f0f0f0;
  --text-muted:   #888;
  --text-dim:     #555;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--text); }
.nav-logo-icon { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--text); }

.nav-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Page container ── */
.page-content {
  min-height: calc(100vh - 56px);
}

@media (max-width: 480px) {
  .nav { padding: 0 14px; gap: 10px; }
  .nav-logo { font-size: 16px; }
  .nav-link { font-size: 13px; padding: 6px 10px; }
}

/* ── Status banners ── */
.status-banner {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 16px;
}
.status-banner--admin {
  background: linear-gradient(90deg, #7B2FBE, #FFD700);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.status-banner--pro {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: #fff;
}

/* ── Nav user ── */
.nav-user { position: relative; display: flex; align-items: center; margin-left: 4px; }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color 0.15s;
}
.user-avatar:hover { border-color: var(--accent); }

.user-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-width: 160px;
  box-shadow: var(--shadow);
  z-index: 300;
}
.user-dropdown.open { display: flex; flex-direction: column; gap: 0.4rem; }

.user-name { font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { font-size: 0.75rem; color: var(--text-muted); }
.user-plan--pro { color: var(--gold); font-weight: 700; }

.dropdown-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  margin-top: 0.2rem;
}
.dropdown-link:hover { text-decoration: underline; }
.dropdown-link--upgrade { color: var(--gold); font-weight: 700; }

/* ── Shared button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  width: 100%;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-arrow { font-size: 18px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
