@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #141414;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-hover: #2a2a2a;
    --red: #E50914;
    --red-hover: #f40612;
    --red-dark: #b20710;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666;
    --border: #333;
    --success: #46d369;
    --warning: #f5a623;
    --danger: #e87c03;
    --nav-height: 68px;
    --shadow: 0 4px 20px rgba(0,0,0,0.6);
    --shadow-card: 0 8px 30px rgba(0,0,0,0.5);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Netflix Sans', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 4%;
    transition: background 0.4s ease;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.navbar.solid {
    background: rgba(20, 20, 20, 0.98);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: 40px;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 30px rgba(229,9,20,0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.nav-search {
    position: relative;
}

.nav-search input {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: white;
    padding: 7px 12px 7px 36px;
    font-size: 13px;
    width: 220px;
    transition: var(--transition);
    outline: none;
}

.nav-search input:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.7);
}

.nav-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    pointer-events: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.btn-red {
    background: var(--red);
    color: white;
}

.btn-red:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: white;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
}

.btn-dark {
    background: rgba(0,0,0,0.7);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-dark:hover {
    background: rgba(0,0,0,0.9);
    border-color: rgba(255,255,255,0.6);
}

.btn-success {
    background: var(--success);
    color: #000;
}

.btn-sm {
    padding: 5px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    user-select: none;
}

.user-avatar:hover {
    border-color: var(--red);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 200px;
    padding: 8px 0;
    display: none;
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.user-dropdown.show {
    display: block;
    animation: fadeDown 0.15s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.dropdown-header .username {
    font-weight: 600;
    font-size: 14px;
}

.dropdown-header .role {
    font-size: 11px;
    color: var(--red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: white;
}

.dropdown-item.danger {
    color: #ff6b6b;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* ─── HERO BANNER ─────────────────────────────────── */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 20, 20, 0.95) 30%,
        rgba(20, 20, 20, 0.5) 60%,
        transparent 100%
    ),
    linear-gradient(
        to top,
        rgba(20, 20, 20, 1) 0%,
        transparent 30%
    );
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: blur(2px) brightness(0.7);
}

.hero-bg-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d0a0a 30%, #1a1a2e 60%, #141414 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4%;
    padding-top: var(--nav-height);
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-likes {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--success);
    font-weight: 600;
}

.hero-description {
    font-size: 15px;
    color: #ddd;
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-empty {
    text-align: center;
    width: 100%;
    padding: 0 4%;
    padding-top: var(--nav-height);
}

.hero-empty h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--red);
    text-shadow: 0 0 60px rgba(229,9,20,0.3);
    margin-bottom: 12px;
}

.hero-empty p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ─── SECTIONS ────────────────────────────────────── */
.section {
    padding: 0 4% 48px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 13px;
    color: var(--red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── VIDEO GRID ──────────────────────────────────── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.video-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
    border-color: rgba(229,9,20,0.3);
    z-index: 2;
}

.card-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-thumbnail-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    font-size: 40px;
}

.card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .card-play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    padding-left: 4px;
}

.video-card:hover .play-btn-circle {
    transform: scale(1);
}

.card-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

.card-body {
    padding: 14px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-uploader {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.card-likes.liked {
    color: var(--red);
}

.like-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.like-btn:hover,
.like-btn.liked {
    color: var(--red);
    transform: scale(1.1);
}

/* ─── EMPTY STATE ─────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* ─── AUTH PAGES ──────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
        linear-gradient(135deg, #1a0505 0%, #0a0a1a 50%, #1a0505 100%);
}

.auth-card {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-text {
    font-size: 36px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(229,9,20,0.4);
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* ─── FORMS ───────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: white;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--red);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(229,9,20,0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 15px;
    border-radius: var(--radius);
    font-weight: 700;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.auth-footer a:hover {
    border-color: white;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}

.alert.show {
    display: block;
    animation: fadeDown 0.2s ease;
}

.alert-error {
    background: rgba(229,9,20,0.15);
    border: 1px solid rgba(229,9,20,0.4);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(70,211,105,0.12);
    border: 1px solid rgba(70,211,105,0.35);
    color: var(--success);
}

/* ─── VIDEO PLAYER PAGE ───────────────────────────── */
.player-page {
    min-height: 100vh;
    padding-top: var(--nav-height);
    background: #000;
}

.video-container {
    position: relative;
    background: #000;
    width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    max-height: 75vh;
    display: block;
}

.video-details {
    padding: 24px 4%;
    max-width: 1200px;
    margin: 0 auto;
}

.video-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.video-page-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.video-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.like-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 8px 18px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
}

.like-counter:hover {
    background: rgba(229,9,20,0.1);
    border-color: var(--red);
    color: var(--red);
}

.like-counter.liked {
    background: rgba(229,9,20,0.15);
    border-color: var(--red);
    color: var(--red);
}

.like-counter .heart {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.like-counter.liked .heart {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.video-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* ─── ADMIN PANEL ─────────────────────────────────── */
.admin-page {
    min-height: 100vh;
    padding-top: var(--nav-height);
    background: var(--bg-primary);
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
}

.admin-sidebar {
    width: 260px;
    background: rgba(0,0,0,0.4);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    flex-shrink: 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 20px;
    margin-bottom: 8px;
    margin-top: 20px;
}

.sidebar-section-title:first-child {
    margin-top: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: rgba(229,9,20,0.12);
    color: var(--red);
    border-left-color: var(--red);
}

.sidebar-badge {
    margin-left: auto;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-title {
    font-size: 24px;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(229,9,20,0.3);
    background: var(--bg-hover);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── TABLE ───────────────────────────────────────── */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

.table-toolbar-title {
    font-size: 15px;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.025);
    color: var(--text-primary);
}

.data-table td .text-primary {
    color: var(--text-primary);
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: rgba(245,166,35,0.15);
    color: var(--warning);
    border: 1px solid rgba(245,166,35,0.3);
}

.badge-approved {
    background: rgba(70,211,105,0.12);
    color: var(--success);
    border: 1px solid rgba(70,211,105,0.3);
}

.badge-rejected {
    background: rgba(229,9,20,0.12);
    color: #ff6b6b;
    border: 1px solid rgba(229,9,20,0.3);
}

.badge-admin {
    background: rgba(229,9,20,0.15);
    color: var(--red);
    border: 1px solid rgba(229,9,20,0.3);
}

.badge-user {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── MODAL ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* ─── REQUEST PAGE ────────────────────────────────── */
.request-page {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
}

.page-header {
    padding: 0 4%;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.request-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    padding: 0 4%;
    max-width: 1100px;
}

.request-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.request-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
}

.request-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.request-item:last-child {
    border-bottom: none;
}

.request-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.request-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.request-item-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ─── TOAST NOTIFICATIONS ─────────────────────────── */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: all;
    animation: slideIn 0.3s ease;
    max-width: 320px;
}

.toast-success { border-color: rgba(70,211,105,0.4); color: var(--success); }
.toast-error { border-color: rgba(229,9,20,0.4); color: #ff6b6b; }
.toast-info { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ─── LOADING ─────────────────────────────────────── */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 9998;
    transition: opacity 0.4s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(229,9,20,0.2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─── FILE UPLOAD ─────────────────────────────────── */
.upload-zone {
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--red);
    background: rgba(229,9,20,0.05);
}

.upload-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-zone .icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.upload-zone .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.upload-zone .hint {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-zone.has-file {
    border-color: var(--success);
    background: rgba(70,211,105,0.05);
}

.upload-zone.has-file .icon {
    color: var(--success);
}

.progress-bar-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    height: 6px;
    margin-top: 10px;
    display: none;
}

.progress-bar-wrap.show {
    display: block;
}

.progress-bar {
    height: 100%;
    background: var(--red);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
    .request-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-search input { width: 150px; }
    .hero { height: 60vh; }
    .hero-title { font-size: 1.8rem; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .auth-card { padding: 32px 24px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 0 3% 32px; }
    .hero-content { padding: 0 3%; }
}
