/* ---------------------------------
   Global Style
----------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f4f8ff;
    color: #222;
    animation: fadeInBody 0.6s ease;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------------------------------
   Header
----------------------------------*/
header {
    background: linear-gradient(135deg, #0d6efd, #3f8cff);
    padding: 25px 20px;
    text-align: center;
    color: white;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    animation: slideDown 0.7s ease;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------------------------------
   Card Container
----------------------------------*/
.container {
    width: 90%;
    max-width: 650px;
    margin: 25px auto;
    animation: fadeInUp 0.7s ease;
}

@keyframes fadeInUp {
    from { transform: translateY(25px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.card {
    background: #ffffff;
    padding: 22px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    transition: 0.3s ease;
    animation: cardAppear 0.7s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

@keyframes cardAppear {
    from { transform: scale(0.97); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.card h2 {
    margin-bottom: 12px;
    font-size: 21px;
    color: #0d6efd;
    font-weight: 700;
}

/* ---------------------------------
   Voucher List
----------------------------------*/
.voucher-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.voucher-item {
    background: #eef4ff;
    padding: 17px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #cfe0ff;
    cursor: pointer;
    transition: 0.25s ease;
    animation: fadeVoucher 0.7s ease;
}

@keyframes fadeVoucher {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.voucher-item:hover {
    background: #dbe8ff;
    transform: translateX(6px);
    box-shadow: 0px 3px 12px rgba(0,0,0,0.10);
}

.voucher-item span {
    font-size: 16px;
    font-weight: 500;
}

.price {
    font-weight: 700;
    color: #0d6efd;
}

/* ---------------------------------
   Footer
----------------------------------*/
footer {
    text-align: center;
    padding: 30px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    animation: fadeInFooter 0.8s ease;
}

@keyframes fadeInFooter {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------------------------------
   Responsive
----------------------------------*/
@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    .card h2 {
        font-size: 18px;
    }

    .voucher-item span {
        font-size: 14px;
    }
}
/* ---------------------------------
   Dark Mode Styles
----------------------------------*/
body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
}

body.dark .card {
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(255,255,255,0.05);
}

body.dark .voucher-item {
    background: #24344d;
    border-color: #334a6c;
}

body.dark .voucher-item:hover {
    background: #2f4668;
    box-shadow: 0px 4px 10px rgba(255,255,255,0.07);
}

body.dark footer {
    color: #94a3b8;
}

/* Ripple warna dark */
body.dark .ripple {
    background: rgba(255, 255, 255, 0.3);
}

/* ---------------------------------
   Tombol Tema
----------------------------------*/
.theme-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 22px;
    background: white;
    color: #0d6efd;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.theme-btn:hover {
    transform: scale(1.08);
}
/* Fade in seluruh halaman */
body.fade-in {
    opacity: 0;
    animation: globalFadeIn 0.8s ease forwards;
}

@keyframes globalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
header {
    background: linear-gradient(135deg, #0e1a27, #14344b);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: url('stafa-logo.png') no-repeat center/contain;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

header * {
    position: relative;
    z-index: 1;
}
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.content-bg {
    background: url('rocket-bg.png') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    padding-bottom: 60px;
    position: relative;
}

.content-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(14, 26, 39, 0.7); /* overlay gelap agar teks tetap jelas */
    z-index: 0;
}

.container, footer, section {
    position: relative;
    z-index: 2;
}