* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fb;
    color: #202124;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.subtext {
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #334155;
}

input, select, textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button, .btn {
    display: inline-block;
    border: 0;
    background: #1d4ed8;
    color: #fff;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

button:hover, .btn:hover {
    background: #1e40af;
    text-decoration: none;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-muted {
    background: #64748b;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #0f172a;
    color: white;
    padding: 22px;
    flex-shrink: 0;
}

.sidebar .brand {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
}

.sidebar a {
    display: block;
    padding: 11px 12px;
    color: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 6px;
}

.sidebar a:hover, .sidebar a.active {
    background: #1e293b;
    text-decoration: none;
}

.main {
    flex: 1;
    padding: 28px;
}

.topbar {
    background: white;
    padding: 18px 22px;
    border-radius: 16px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.card {
    background: white;
    padding: 22px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}

.stat-card h3 {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 14px;
}

.stat-card strong {
    font-size: 30px;
    color: #0f172a;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 13px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.video-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}

.video-card h3 {
    margin-top: 0;
}

.video-frame {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 16px;
    background: #000;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
    }

    .grid, .video-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: block;
    }
}


.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.course-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

.course-card h3 {
    margin-top: 0;
    color: #0f172a;
}

.price {
    font-size: 20px;
    font-weight: 800;
    color: #1d4ed8;
    margin: 8px 0 14px;
}

.locked {
    background: #fff7ed;
    color: #9a3412;
    padding: 8px 10px;
    border-radius: 9px;
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
}

.unlocked {
    background: #dcfce7;
    color: #166534;
    padding: 8px 10px;
    border-radius: 9px;
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
}

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


.subscribe-box {
    background: linear-gradient(135deg, #111827, #7f1d1d);
    color: #fff;
    padding: 22px;
    border-radius: 18px;
    margin-bottom: 22px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.18);
}

.subscribe-box h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.subscribe-box p {
    color: #fecaca;
    margin: 0 0 16px;
}

.subscribe-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-youtube {
    background: #dc2626;
}

.btn-youtube:hover {
    background: #b91c1c;
}

.like-gate {
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    max-width: 760px;
}

.like-gate h3 {
    margin-top: 0;
    color: #0f172a;
}

.clean-video-wrap {
    max-width: 980px;
}

.notice-small {
    color: #64748b;
    font-size: 13px;
    margin-top: 12px;
}
