:root {
    --primary: #047857;
    --dark-navy: #0F172A;
    --gold: #D4AF37;
    --light-bg: #F8FAFC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: #334155;
    padding-bottom: 50px;
}

.header-top {
    background: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-navy);
    text-decoration: none;
}

.header-top .logo img {
    height: 40px;
}

.header-top .nav-actions a {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    margin-left: 10px;
    transition: 0.3s;
}

.btn-home {
    color: var(--dark-navy);
}

.btn-home:hover {
    background: #f1f5f9;
}

.btn-login-nav {
    background: var(--primary);
    color: white;
}

.btn-login-nav:hover {
    background: #064E3B;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-title h1 {
    color: var(--dark-navy);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.countdown-wrapper {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border: 2px dashed var(--gold);
}

.countdown-wrapper p {
    color: var(--dark-navy);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-box {
    background: var(--dark-navy);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.time-box span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.time-box small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.form-section {
    background: white;
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--primary);
}

.form-section.akun-section {
    border-top-color: var(--gold);
}

.form-section-title {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.akun-section .form-section-title {
    color: var(--gold);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-navy);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Poppins';
    outline: none;
    transition: 0.3s;
    background: #f8fafc;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(4, 120, 87, 0.2);
}

.btn-submit:hover {
    background: #064E3B;
    transform: translateY(-3px);
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.swal2-popup {
    font-family: 'Poppins', sans-serif !important;
    border-radius: 16px !important;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px !important;
        text-align: center;
    }

    .header-top .nav-actions {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .header-top .nav-actions a {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
        margin-left: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 25px;
    }

    .time-box {
        min-width: 70px;
        padding: 10px;
    }

    .time-box span {
        font-size: 1.5rem;
    }
}

/* Menggantikan blok <?php if (!$is_open): ?> ... <?php endif; ?> yang tadinya
   ditulis langsung di dalam <style>. Sekarang cukup lewat class "spmb-closed"
   yang ditempel ke <body> oleh PHP. */
body.spmb-closed .container {
    display: none !important;
}

body.spmb-closed {
    overflow: hidden;
}