* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f8fafc;
    background:
        linear-gradient(rgba(7, 15, 28, 0.84), rgba(7, 15, 28, 0.94)),
        radial-gradient(circle at top left, #303b70 0, transparent 42%),
        radial-gradient(circle at bottom right, #431f4e 0, transparent 38%),
        #07101d;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.card {
    width: 100%;
    max-width: 460px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(19, 31, 48, 0.78);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
    border-radius: 18px;
    font-size: 34px;
    background: linear-gradient(135deg, #7c5cff, #d946ef);
    box-shadow: 0 12px 32px rgba(124, 92, 255, 0.35);
}

.brand h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -1px;
}

.brand p {
    margin: 8px 0 0;
    color: #aebbd0;
    line-height: 1.5;
}

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

label {
    display: block;
    margin-bottom: 7px;
    color: #d7deea;
    font-size: 14px;
    font-weight: 650;
}

input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus {
    border-color: #8b7cff;
    box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.16);
}

button {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 13px;
    color: white;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    background: linear-gradient(135deg, #6157e8, #8a4fd8);
    box-shadow: 0 12px 28px rgba(97, 87, 232, 0.28);
}

button:hover {
    filter: brightness(1.08);
}

.notice {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    color: #b9c5d8;
    font-size: 13px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.055);
}

.footer-link {
    margin-top: 22px;
    text-align: center;
    color: #aebbd0;
    font-size: 14px;
}

.footer-link a {
    color: #c6beff;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 520px) {
    .card {
        padding: 26px 20px;
        border-radius: 20px;
    }
}

.form-message {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.form-message-error {
    color: #ffd5dc;
    background: rgba(225, 62, 91, 0.13);
    border: 1px solid rgba(255, 100, 126, 0.28);
}

.form-message-success {
    color: #d8ffe8;
    background: rgba(47, 184, 108, 0.13);
    border: 1px solid rgba(78, 220, 142, 0.28);
}

/* FoxFlix Admin */

.admin-login-card {
    max-width: 430px;
}

.admin-page {
    width: min(1180px, calc(100% - 36px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 34px 0 60px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-brand-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 16px;
    font-size: 29px;
    background: linear-gradient(135deg, #7c5cff, #d946ef);
    box-shadow: 0 12px 32px rgba(124, 92, 255, 0.3);
}

.admin-brand h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: -0.8px;
}

.admin-brand p {
    margin: 5px 0 0;
    color: #aebbd0;
}

.admin-header form {
    flex: 0 0 auto;
}

.logout-button {
    width: auto;
    min-width: 118px;
    height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 26px;
}

.stat-card {
    min-height: 126px;
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(19, 31, 48, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(16px);
}

.stat-label {
    display: block;
    margin-bottom: 14px;
    color: #aebbd0;
    font-size: 13px;
    font-weight: 700;
}

.stat-card strong {
    font-size: 35px;
    line-height: 1;
    letter-spacing: -1px;
}

.requests-section {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(19, 31, 48, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #9e8cff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.request-count {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ddd7ff;
    font-weight: 800;
    background: rgba(124, 92, 255, 0.18);
    border: 1px solid rgba(151, 132, 255, 0.25);
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.request-card {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.045);
}

.request-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 850;
    background: linear-gradient(135deg, #5c55db, #a24ed7);
}

.status-badge {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-pending {
    color: #ffe6ac;
    background: rgba(245, 174, 50, 0.13);
    border: 1px solid rgba(255, 195, 83, 0.22);
}

.request-details h3 {
    margin: 0;
    font-size: 20px;
}

.request-details p {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    color: #b5c0d2;
    font-size: 14px;
}

.request-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8795aa;
    font-size: 12px;
}

.request-actions-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.request-actions-preview button {
    height: 43px;
    margin: 0;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    filter: none;
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.preview-note {
    margin: 11px 0 0;
    color: #76859b;
    font-size: 11px;
    text-align: center;
}

.empty-state {
    padding: 48px 20px;
    text-align: center;
}

.empty-state-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 17px;
    color: #bcffda;
    font-size: 24px;
    background: rgba(47, 184, 108, 0.13);
    border: 1px solid rgba(78, 220, 142, 0.23);
}

.empty-state h3 {
    margin: 0;
}

.empty-state p {
    margin: 8px 0 0;
    color: #aebbd0;
}

@media (max-width: 800px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .admin-page {
        width: min(100% - 24px, 1180px);
        padding-top: 20px;
    }

    .admin-header {
        align-items: flex-start;
    }

    .admin-brand-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 25px;
    }

    .admin-brand p {
        display: none;
    }

    .logout-button {
        min-width: 0;
        padding: 0 13px;
        font-size: 13px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        min-height: 105px;
        padding: 17px;
        border-radius: 17px;
    }

    .stat-card strong {
        font-size: 29px;
    }

    .requests-section {
        padding: 18px;
        border-radius: 20px;
    }

    .request-meta {
        flex-direction: column;
        gap: 6px;
    }
}

.request-actions-preview form {
    width: 100%;
    margin: 0;
}

.request-actions-preview form button {
    width: 100%;
}

.admin-message {
    margin-bottom: 20px;
    padding: 14px 17px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.admin-message-success {
    color: #d8ffe8;
    border: 1px solid rgba(78, 220, 142, 0.28);
    background: rgba(47, 184, 108, 0.13);
}

.admin-message-error {
    color: #ffd5dc;
    border: 1px solid rgba(255, 100, 126, 0.28);
    background: rgba(225, 62, 91, 0.13);
}
