/* ============================================
   STREAMING SAAS - MAIN CSS
   Dark theme + Red accent
   ============================================ */

:root {
  --bg-primary:    #0d0d0d;
  --bg-secondary:  #161616;
  --bg-card:       #1a1a1a;
  --bg-hover:      #222;
  --accent:        #e53935;
  --accent-dark:   #b71c1c;
  --accent-light:  #ef5350;
  --text-primary:  #f0f0f0;
  --text-secondary:#aaa;
  --text-muted:    #666;
  --border:        #2a2a2a;
  --radius:        6px;
  --radius-lg:     12px;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex; align-items: center; gap: 1.5rem;
}

.header-logo {
  flex-shrink: 0;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text-primary);
}
.header-logo span { color: var(--accent); }

.header-search {
  flex: 1; max-width: 480px;
  display: flex; gap: 0;
}
.header-search input {
  flex: 1; padding: .5rem .9rem;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text-primary); font-size: .9rem;
  outline: none;
}
.header-search input:focus { border-color: var(--accent); }
.header-search button {
  padding: .5rem 1rem;
  background: var(--accent); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600; font-size: .85rem;
  transition: background .2s;
}
.header-search button:hover { background: var(--accent-dark); }

.header-nav {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; flex-shrink: 0;
}
.header-nav a {
  padding: .4rem .75rem; border-radius: var(--radius);
  font-size: .85rem; color: var(--text-secondary);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active { color: var(--text-primary); background: var(--bg-hover); }
.header-nav a.premium-link { color: #f59e0b; }
.header-nav a.premium-link:hover { background: rgba(245,158,11,.1); }

.header-actions {
  margin-left: auto; display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
}

.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem;
  border-radius: var(--radius); font-size: .85rem; font-weight: 600; transition: .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--accent); color: var(--text-primary); }
.btn-sm { padding: .3rem .7rem; font-size: .78rem; }
.btn-lg { padding: .65rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* User menu */
.user-menu-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .75rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); font-size: .85rem;
  transition: border-color .2s;
}
.user-menu-btn:hover { border-color: var(--accent); }
.user-menu-btn .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .75rem; color: #fff;
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 200px;
  padding: .5rem; box-shadow: 0 8px 32px rgba(0,0,0,.5);
  display: none; z-index: 200;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.dropdown-header {
  padding: .5rem .75rem; font-size: .75rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border); margin-bottom: .25rem;
}
.dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .75rem; border-radius: var(--radius);
  font-size: .85rem; color: var(--text-secondary);
  transition: background .15s, color .15s;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item.danger:hover { background: rgba(229,57,53,.15); color: var(--accent); }
.dropdown-divider { height: 1px; background: var(--border); margin: .25rem 0; }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { padding: 2rem 0; }

/* ============================================
   VIDEO GRID
   ============================================ */
.section-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-title .badge-new { font-size: .65rem; background: var(--accent); color: #fff;
  padding: .1rem .4rem; border-radius: 4px; font-weight: 700; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }

.video-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: #111;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-thumb .duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.85); color: #fff;
  font-size: .7rem; font-weight: 600; padding: 2px 6px;
  border-radius: 3px;
}
.video-thumb .badge-premium {
  position: absolute; top: 6px; left: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-size: .65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; letter-spacing: .3px;
}
.video-thumb .play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-overlay svg { width: 48px; height: 48px; opacity: .9; }

.video-info { padding: .6rem .75rem .75rem; }
.video-info .title {
  font-size: .82rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .3rem; color: var(--text-primary);
}
.video-card:hover .video-info .title { color: var(--accent-light); }
.video-meta {
  font-size: .72rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.video-meta .creator { color: var(--text-secondary); }
.video-meta .dot { opacity: .4; }

/* ============================================
   VIDEO PLAYER PAGE
   ============================================ */
.player-wrapper {
  position: relative; background: #000;
  border-radius: var(--radius-lg);
  width: 100%; aspect-ratio: 16/9;
}
.player-wrapper .video-js {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0; left: 0;
}
.player-wrapper .vjs-tech {
  width: 100% !important;
  height: 100% !important;
}
#video-player { width: 100%; height: 100%; }

.player-container { max-width: 1100px; margin: 0 auto; }
.video-page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }

@media (max-width: 900px) {
  .video-page-layout { grid-template-columns: 1fr; }
}

.video-title-bar { margin: 1rem 0 .75rem; }
.video-title-bar h1 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }

.video-actions {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.action-btn {
  display: flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem; border-radius: var(--radius);
  font-size: .82rem; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: .2s;
}
.action-btn:hover, .action-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.action-btn.liked { background: rgba(229,57,53,.15); color: var(--accent); border-color: var(--accent); }

/* ============================================
   SIDEBAR / RELATED
   ============================================ */
.related-list { display: flex; flex-direction: column; gap: .75rem; }
.related-card {
  display: flex; gap: .75rem; cursor: pointer;
  border-radius: var(--radius); padding: .4rem;
  transition: background .15s;
}
.related-card:hover { background: var(--bg-hover); }
.related-card .thumb { position: relative; width: 120px; flex-shrink: 0;
  aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #111; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .thumb .duration { position: absolute; bottom: 4px; right: 4px;
  background: rgba(0,0,0,.85); font-size: .65rem; padding: 1px 5px; border-radius: 2px; }
.related-card .info .title { font-size: .78rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card .info .meta { font-size: .7rem; color: var(--text-muted); margin-top: .25rem; }

/* ============================================
   PREMIUM PAGE
   ============================================ */
.premium-hero {
  text-align: center; padding: 3rem 1rem 2rem;
}
.premium-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.premium-hero h1 span { color: var(--accent); }
.premium-hero p { color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; max-width: 860px; margin: 2rem auto;
}
.plan-card {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  cursor: pointer; transition: .2s; position: relative;
}
.plan-card:hover, .plan-card.selected { border-color: var(--accent); }
.plan-card .plan-name { font-weight: 700; margin-bottom: .25rem; }
.plan-card .plan-price { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.plan-card .plan-price span { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.plan-card .plan-old { text-decoration: line-through; font-size: .78rem; color: var(--text-muted); }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .65rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; white-space: nowrap; }

.benefits-list { list-style: none; max-width: 480px; margin: 0 auto 2rem; }
.benefits-list li {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.benefits-list li:last-child { border-bottom: none; }
.benefits-list .check { color: var(--accent); font-size: 1.1rem; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-box {
  width: 100%; max-width: 420px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.auth-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: .25rem; }
.auth-box .subtitle { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; }
.auth-box .logo { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--text-secondary); }
.form-control {
  width: 100%; padding: .6rem .9rem;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary); font-size: .9rem;
  outline: none; transition: border-color .2s;
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================
   PROFILE PAGES
   ============================================ */
.profile-header {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
  display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; flex-shrink: 0;
}
.profile-info h2 { font-size: 1.2rem; font-weight: 700; }
.profile-info .username { color: var(--text-secondary); font-size: .85rem; margin-bottom: .25rem; }
.profile-info .member-since { color: var(--text-muted); font-size: .78rem; }
.profile-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

.profile-tabs {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: .5rem;
  display: flex; gap: .25rem; margin-bottom: 1.5rem; overflow-x: auto;
}
.profile-tab {
  padding: .5rem 1rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap; display: flex; align-items: center; gap: .4rem;
  transition: .15s;
}
.profile-tab:hover { background: var(--bg-hover); color: var(--text-primary); }
.profile-tab.active { background: var(--accent); color: #fff; }

.profile-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.profile-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .icon { font-size: 3rem; margin-bottom: .75rem; opacity: .3; }
.empty-state p { color: var(--text-muted); margin-bottom: 1rem; }

/* ============================================
   TAGS / CATEGORIES
   ============================================ */
.tags-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-chip {
  padding: .35rem .85rem; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-secondary);
  transition: .15s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--text-primary); background: rgba(229,57,53,.08); }
.tag-chip .count { color: var(--text-muted); font-size: .72rem; margin-left: .25rem; }

.tags-table-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.tag-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1rem; display: flex; align-items: center; gap: .6rem;
  transition: .15s; font-size: .85rem;
}
.tag-box:hover { border-color: var(--accent); }
.tag-box .tag-icon { color: var(--accent); }
.tag-box .tag-name { font-weight: 600; flex: 1; }
.tag-box .tag-count { font-size: .72rem; color: var(--text-muted); }

.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.category-card {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/7;
  position: relative; cursor: pointer;
}
.category-card .bg {
  width: 100%; height: 100%; object-fit: cover;
}
.category-card .overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 30%, transparent);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
}
.category-card .cat-name { font-weight: 700; font-size: .95rem; }
.category-card .cat-count { font-size: .75rem; color: var(--text-secondary); }

/* ============================================
   CREATORS
   ============================================ */
.creators-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.creator-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: center;
  padding: 1.25rem .75rem; transition: .2s; cursor: pointer;
}
.creator-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.creator-card .creator-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto .75rem;
  object-fit: cover; background: var(--bg-secondary);
}
.creator-card .creator-name { font-weight: 700; font-size: .88rem; }
.creator-card .creator-count { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.creator-card .video-count-badge {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(0,0,0,.7); font-size: .68rem; padding: 2px 6px; border-radius: 3px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: 2rem;
}
.page-btn {
  min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: .85rem; font-weight: 600; transition: .15s;
}
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn.disabled { opacity: .3; pointer-events: none; }

/* ============================================
   ALERTS / TOASTS
   ============================================ */
.alert {
  padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem;
  font-size: .88rem; display: flex; align-items: center; gap: .6rem;
}
.alert-error   { background: rgba(229,57,53,.15); border: 1px solid rgba(229,57,53,.3); color: #ef9a9a; }
.alert-success { background: rgba(46,125,50,.15);  border: 1px solid rgba(46,125,50,.3);  color: #a5d6a7; }
.alert-info    { background: rgba(25,118,210,.15); border: 1px solid rgba(25,118,210,.3); color: #90caf9; }

.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  padding: .75rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  font-size: .85rem; display: flex; align-items: center; gap: .6rem;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem; margin-top: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem;
  max-width: 1400px; margin: 0 auto; margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { font-size: 1.2rem; font-weight: 800; margin-bottom: .75rem; }
.footer-brand p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; max-width: 260px; }
.footer-stars { display: flex; align-items: center; gap: .4rem; margin-top: .75rem; font-size: .82rem; color: var(--text-muted); }
.footer-stars .stars { color: #f59e0b; }

.footer-col h4 { font-size: .88rem; font-weight: 700; margin-bottom: .75rem; color: var(--text-secondary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { font-size: .82rem; color: var(--text-muted); transition: color .15s; }
.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.footer-badges { display: flex; gap: .75rem; flex-wrap: wrap; }
.footer-badge {
  display: flex; align-items: center; gap: .4rem; padding: .35rem .75rem;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: .72rem; color: var(--text-muted);
}
.footer-legal { font-size: .72rem; color: var(--text-muted); text-align: center; }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--bg-secondary);
  border-right: 1px solid var(--border); padding: 1rem 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .logo { padding: .75rem 1.25rem 1.25rem; font-size: 1.1rem; font-weight: 800; }
.admin-sidebar .logo span { color: var(--accent); }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1.25rem; font-size: .85rem; color: var(--text-secondary);
  transition: .15s;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  background: var(--bg-hover); color: var(--text-primary);
}
.sidebar-nav li a.active { border-left: 3px solid var(--accent); }
.sidebar-section {
  padding: .4rem 1.25rem .2rem; font-size: .7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); margin-top: .5rem;
}

.admin-main { flex: 1; padding: 1.5rem; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem;
}
.admin-topbar h1 { font-size: 1.3rem; font-weight: 800; }
.admin-topbar .breadcrumb { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.stat-card .stat-label { font-size: .78rem; color: var(--text-muted); margin-bottom: .35rem; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-card .stat-sub { font-size: .75rem; color: var(--text-secondary); margin-top: .25rem; }
.stat-card.accent { border-color: rgba(229,57,53,.3); background: rgba(229,57,53,.05); }
.stat-card.accent .stat-value { color: var(--accent); }

.admin-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.admin-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.admin-table th {
  background: var(--bg-secondary); padding: .75rem 1rem;
  text-align: left; font-weight: 600; font-size: .78rem;
  color: var(--text-secondary); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-hover); }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge-success { background: rgba(46,125,50,.2); color: #81c784; }
.badge-danger  { background: rgba(229,57,53,.2); color: #ef9a9a; }
.badge-warning { background: rgba(245,158,11,.2); color: #ffd54f; }
.badge-info    { background: rgba(25,118,210,.2); color: #90caf9; }
.badge-muted   { background: var(--bg-hover); color: var(--text-muted); }

.table-actions { display: flex; gap: .4rem; }
.table-actions a, .table-actions button {
  padding: .3rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 600;
  background: var(--bg-hover); color: var(--text-secondary);
  border: 1px solid var(--border); transition: .15s;
}
.table-actions .edit:hover   { background: rgba(25,118,210,.2);  color: #90caf9;  border-color: #1976d2; }
.table-actions .delete:hover { background: rgba(229,57,53,.2);  color: #ef9a9a;  border-color: var(--accent); }
.table-actions .view:hover   { background: rgba(46,125,50,.2);   color: #81c784;  border-color: #2e7d32; }

.admin-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem;
}
.admin-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

/* ============================================
   HELP / FAQ
   ============================================ */
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.help-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: 1rem;
}
.help-card .hc-icon { font-size: 1.5rem; flex-shrink: 0; color: var(--accent); }
.help-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: .35rem; }
.help-card p { font-size: .82rem; color: var(--text-secondary); }

.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; padding: 1rem 0;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: .9rem; color: var(--text-primary); cursor: pointer;
}
.faq-answer { padding: 0 0 1rem; font-size: .85rem; color: var(--text-secondary); line-height: 1.6; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { color: var(--accent); }

/* ============================================
   PAYMENT PAGE (pay.paycontent.net)
   ============================================ */
.checkout-page {
  min-height: 100vh; background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.checkout-box {
  width: 100%; max-width: 480px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.checkout-header {
  background: var(--accent); padding: 1.5rem; text-align: center;
}
.checkout-header h2 { font-size: 1.2rem; font-weight: 800; }
.checkout-header p { font-size: .85rem; opacity: .85; margin-top: .25rem; }
.checkout-body { padding: 1.5rem; }
.checkout-plan-info {
  background: var(--bg-secondary); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
}
.checkout-plan-info .plan-name { font-weight: 700; }
.checkout-plan-info .price { font-size: 1.3rem; font-weight: 800; color: var(--accent); }

#card-element {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem; margin-bottom: 1rem;
}
#card-element.StripeElement--focus { border-color: var(--accent); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
  .admin-sidebar { display: none; }
  .admin-layout .admin-main { padding: 1rem; }
}

@media (max-width: 480px) {
  .site-header { padding: 0 1rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   UTILS
   ============================================ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-sm { font-size: .82rem; }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }

/* Premium lock overlay */
.locked-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; z-index: 5;
}
.locked-overlay .lock-icon { font-size: 2rem; }
.locked-overlay p { font-size: .8rem; color: var(--text-secondary); }

/* No-select on player */
.player-wrapper { user-select: none; -webkit-user-select: none; }

/* HAMBURGER — ver bloco responsivo abaixo */

.hamburger { display: none; }
.mobile-nav { display: none; }
.mobile-nav-overlay { display: none; }

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: .4rem;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }
  .hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: #111;
    z-index: 1100;
    overflow-y: auto;
    transition: right .3s ease;
    border-left: 1px solid var(--border);
  }
  .mobile-nav.open { right: 0; }
  .mobile-nav-overlay.open { display: block; }
}
.mobile-nav-inner { padding: 4.5rem 0 2rem; }
.mobile-nav a {
  display: block;
  padding: .85rem 1.5rem;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.mobile-nav-section {
  padding: 1rem 1.5rem .4rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1099;
}
.mobile-nav-overlay.open { display: block; }

/* ============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================ */
@media (max-width: 900px) {
  .video-page-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Header */
  .site-header { padding: 0 1rem; gap: .5rem; height: 56px; }
  .header-nav-wrap { display: none; }
  .header-search { flex: 1; max-width: none; }
  .header-search input { font-size: .82rem; }
  .premium-link { display: none; }
  .user-email { display: none; }
  .hamburger { display: flex; }

  /* Container */
  .container { padding: 0 .75rem; }
  .main-content { padding: 1rem 0; }

  /* Video grid */
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .video-info .title { font-size: .78rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .75rem; }

  /* Auth */
  .auth-page { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
  .auth-box { padding: 1.5rem; }

  /* Plans */
  .plans-grid { grid-template-columns: 1fr 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Profile */
  .profile-header { flex-direction: column; gap: 1rem; }
  .profile-actions { margin-left: 0; }
  .profile-tabs { overflow-x: auto; white-space: nowrap; }
  .profile-tab { font-size: .78rem; padding: .4rem .65rem; }

  /* Admin */
  .admin-sidebar { display: none; }
  .admin-layout .admin-main { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Dropdown fullscreen mobile */
  .dropdown-menu {
    position: fixed;
    top: 56px; left: 0; right: 0;
    border-radius: 0;
    min-width: auto;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .site-header { flex-wrap: wrap; height: auto; padding: .6rem .75rem; }
  .header-logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .hamburger { order: 3; }
  .header-search { order: 4; width: 100%; }

  .video-grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .plans-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .premium-hero h1 { font-size: 1.4rem; }
  .section-title { font-size: .95rem; }
}

/* Touch devices */
@media (hover: none) {
  .video-card:hover { transform: none; }
  .btn, .action-btn, .form-control { min-height: 44px; }
  .page-btn { min-width: 40px; min-height: 40px; }
}