:root {
    --bg-color: #050505;
    --card-bg: #0f0f13;
    --primary: #8a2be2;
    --primary-glow: #8a2be280;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --success: #00ff9d;
    --danger: #ff0055;
    --border: #2a2a2a;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a { 
    text-decoration: none; 
    color: var(--primary); 
    transition: all 0.3s ease-in-out; 
}
a:hover { text-shadow: 0 0 10px var(--primary-glow); }

/* Header */
header {
    background: rgba(15, 15, 19, 0.9);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; text-transform: uppercase; color: #fff; }
.logo span { color: var(--primary); }
nav ul { list-style: none; display: flex; gap: 20px; }
nav ul li a { color: #ffffff; font-weight: 500; }
nav ul li a:hover { color: var(--primary); }

/* Cards */
.card, .auth-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card.wide { max-width: 100%; }

/* Forms */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: var(--text-muted); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
.modern-input {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

input:focus, .modern-input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 5px 0;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    background-color: transparent;
    border: 2px solid #333;
    border-radius: 7px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-checkbox:hover .checkmark {
    border-color: #666;
}

.custom-checkbox input:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.checkmark::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -2px;
}

.custom-checkbox input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

.custom-checkbox span {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.custom-checkbox:hover span {
    color: var(--text-main);
}

/* Video Row */
.video-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: stretch;
}
.video-row .input-url { flex: 2; }
.video-row .input-views { flex: 1; min-width: 150px; }
.video-row .modern-input { height: 46px; margin: 0; }

.remove-row-btn {
    width: 46px;
    height: 46px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease-in-out;
}
.remove-row-btn:hover { 
    background: #ff0055; 
    border-color: #ff0055; 
    transform: scale(1.05);
}

.add-video-btn {
    width: 100%;
    background: transparent;
    border: 1px dashed #444;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}
.add-video-btn:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
    background: rgba(138, 43, 226, 0.05);
}


/* Admin Nav */
.admin-nav {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-small {
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-small.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

.btn-small.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-small.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: #fff; 
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    outline: none;
}

.btn:hover { 
    background: #ddd; 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

/* Primary Button */
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: #9d4edd;
    box-shadow: 0 0 30px var(--primary-glow);
    color: #fff;
}

.btn-block { display: block; width: 100%; }
/* Social Buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
    text-decoration: none;
}
.btn-social:last-child { margin-bottom: 0; }
.btn-social:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.btn-social svg { width: 20px !important; height: 20px !important; flex-shrink: 0; }

.btn-google { background: #ffffff; color: #1a1a1a; }
.btn-google:hover { background: #f8f8f8; }
.btn-youtube { background: #ff0000; color: #ffffff; }
.btn-youtube:hover { background: #cc0000; box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3); }

/* Norm Check */
.norm-check {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.norm-check:hover { transform: translateY(-2px); }
.norm-check.success { border-color: rgba(0, 255, 157, 0.3); box-shadow: 0 0 20px rgba(0, 255, 157, 0.05); }
.norm-check.fail { border-color: rgba(255, 0, 85, 0.3); box-shadow: 0 0 20px rgba(255, 0, 85, 0.05); }

/* Table */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; transition: background 0.2s ease; }
tr:hover td { background: rgba(255,255,255,0.02); }
th { color: var(--text-muted); }
.status-completed { color: var(--success); }
.status-pending { color: var(--text-muted); }

/* Footer */
footer { margin-top: auto; padding: 20px; text-align: center; border-top: 1px solid var(--border); color: #666; }
