    /* Reset/box sizing dasar */
    *, *::before, *::after { box-sizing: border-box; }

    body {
        font-family: 'Segoe UI', 'Trebuchet MS', sans-serif;
        background: 
            radial-gradient(circle at 20% 30%, rgba(255,0,0,0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(255,0,0,0.08) 0%, transparent 50%),
            linear-gradient(135deg, #ffffff 0%, #fff8f8 25%, #ffffff 50%, #fff5f5 75%, #ffffff 100%);
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        color: #2c1810;
        position: relative;
        min-height: 100vh;
    }

    /* Background patriotic elements */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            radial-gradient(circle at 15% 20%, rgba(220,38,38,0.05) 0%, transparent 40%),
            radial-gradient(circle at 85% 80%, rgba(220,38,38,0.05) 0%, transparent 40%),
            conic-gradient(from 45deg at 10% 50%, transparent 0deg, rgba(255,0,0,0.02) 45deg, transparent 90deg),
            conic-gradient(from 225deg at 90% 50%, transparent 0deg, rgba(255,0,0,0.02) 45deg, transparent 90deg);
        pointer-events: none;
        z-index: -1;
    }

/* Animated stars */
    .patriotic-stars {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
    }

    .star {
        position: absolute;
        color: #dc2626;
        font-size: 12px;
        animation: twinkle 3s ease-in-out infinite;
        opacity: 0.4;
    }

    @keyframes twinkle {
        0%, 100% { opacity: 0.2; transform: scale(0.8); }
        50% { opacity: 0.8; transform: scale(1.2); }
    }
    /* Header dengan efek kemerdekaan */
    header {
        text-align: center;
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
        color: white;
        padding: 30px 12px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(220,38,38,0.3);
    }

    header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: 
            repeating-conic-gradient(
                from 0deg at 50% 50%,
                rgba(255,255,255,0.1) 0deg,
                rgba(255,255,255,0.1) 10deg,
                transparent 10deg,
                transparent 20deg
            );
        animation: rotate 20s linear infinite;
        opacity: 0.3;
    }

    header::after {
        content: '🇮🇩 MERDEKA! 🇮🇩';
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 14px;
        opacity: 0.8;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @keyframes pulse {
        0%, 100% { opacity: 0.6; transform: scale(0.95); }
        50% { opacity: 1; transform: scale(1.05); }
    }

    header img {
        height: 70px;
        max-width: 100%;
        display: block;
        margin: 0 auto 12px;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    }

    header h1 { 
        margin: 0; 
        font-size: clamp(20px, 4vw, 32px); 
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        font-weight: bold;
        letter-spacing: 1px;
    }

    .hut-badge {
        display: inline-block;
        background: linear-gradient(45deg, #ffd700, #ffed4e);
        color: #991b1b;
        padding: 8px 16px;
        border-radius: 25px;
        font-weight: bold;
        font-size: 14px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(255,215,0,0.4);
        animation: bounce 2s ease-in-out infinite;
    }

    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }
    /* Container dengan efek kemerdekaan */
    .container {
        max-width: 700px;
        margin: 50px auto;
        background: 
            linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
        padding: 40px;
        border-radius: 20px;
        box-shadow: 
            0 20px 40px rgba(220,38,38,0.15),
            0 0 0 1px rgba(220,38,38,0.1),
            inset 0 1px 0 rgba(255,255,255,0.9);
        border-top: 8px solid #dc2626;
        border-bottom: 4px solid #fbbf24;
        position: relative;
        z-index: 2;
    }

    .container::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(135deg, #dc2626, #fbbf24, #dc2626);
        border-radius: 22px;
        z-index: -1;
        opacity: 0.1;
    }

    h2 {
        margin-bottom: 25px;
        text-align: center;
        color: #991b1b;
        font-size: 24px;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(220,38,38,0.1);
        position: relative;
    }

    h2::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, #dc2626, #fbbf24, #dc2626);
        border-radius: 2px;
    }
    
    h2 span {
        text-align: center;
        color: #991b1b;
        font-size: 18px;
        font-weight: bold;
        position: relative;
        display:block;
    }


    /* Form elements dengan tema kemerdekaan */
    input, textarea, button, select, .inline-link {
        width: 100%;
        padding: 15px;
        margin: 0;
        margin-bottom: 20px;
        border: 2px solid #fca5a5;
        border-radius: 12px;
        font-size: 16px;
        background: 
            linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
        transition: all 0.3s ease;
        position: relative;
    }

    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: #dc2626;
        box-shadow: 
            0 0 0 3px rgba(220,38,38,0.1),
            0 4px 12px rgba(220,38,38,0.15);
        transform: translateY(-2px);
    }

    input:hover, textarea:hover, select:hover {
        border-color: #ef4444;
        box-shadow: 0 2px 8px rgba(220,38,38,0.1);
    }

    textarea { 
        min-height: 120px; 
        resize: vertical; 
        font-family: inherit;
    }

    .inline-link { 
        display:inline-block; 
        width:auto; 
        padding:0; 
        border:none; 
        background:none; 
        color:#dc2626; 
        text-decoration:underline; 
        cursor:pointer;
        font-weight: bold;
        transition: color 0.2s ease;
    }

    .inline-link:hover {
        color: #991b1b;
        text-shadow: 0 1px 2px rgba(220,38,38,0.2);
    }


    /* Button dengan efek kemerdekaan */
    button {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
        color: white;
        border: none;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s ease;
        border-radius: 12px;
        font-size: 18px;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
    }

    button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    button:hover {
        background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(220,38,38,0.4);
    }

    button:hover::before {
        left: 100%;
    }

    button:active {
        transform: translateY(-1px);
    }

    /* Grid responsive untuk form */
    form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    @media (min-width: 768px) {
        form { grid-template-columns: 1fr 1fr; align-items:start; }
        form textarea, form button, form input[type="file"], form > .full-span { grid-column: 1 / -1; }
    }




/* Pesan */
    .error { color: #d32f2f; margin-bottom: 12px; }
    .success {
        background: #ffebee;
        color: #b71c1c;
        padding: 15px;
        border-radius: 6px;
        text-align: center;
        border: 1px solid #d32f2f;
        margin-bottom: 12px;
    }

    /* invalid style: hanya border merah */
    .invalid {
        border-color: #d32f2f !important;
        border: 2px solid;
        background: #ff00000a;
    }

    /* Tabel ringkasan */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    table-layout: auto;
}
table td {
    padding: 10px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
table td:first-child {
    color: #444;
}
table td:last-child {
    text-align: right;
    font-weight: 600;
}

@media (max-width: 480px) {
    table {
        width: 100%;
        border-collapse: collapse;
    }
    tr {
        display: flex;
        flex-wrap: wrap; /* supaya bisa turun */
        margin-bottom: 8px;
    }
    td {
        padding: 6px 0;
        border-bottom: none;
        text-align: left;
    }
    td:first-child {
        font-weight: 700;
        width: 40%;
        flex: 0 0 40%;
        white-space: nowrap;
    }
    td:nth-child(2) {
        color: #1b5e20;
        width: 60%;
        flex: 0 0 60%;
        word-wrap: break-word;
        text-align: left; /* biar di mobile tetap kiri */
    }

    /* Khusus baris bukti transfer */
    tr.bukti-transfer td:first-child {
        width: 100%;
        flex: 0 0 100%;
        margin-bottom: 4px;
    }
    tr.bukti-transfer td:last-child {
        width: 100%;
        flex: 0 0 100%;
        text-align: left;
    }
}


    /* Preview image */
    img { max-width:100%; height:auto; display:block; }

    /* Footer */
    footer {
        font-size: 14px;
        padding: 15px;
        background: linear-gradient(90deg, #ff0000, #b71c1c);
        color: white;
        text-align: center;
        margin-top: 28px;
        position: relative;
        z-index: 2;
    }

/* Dekorasi patriotik yang lebih meriah */
    .balloon {
        position: absolute;
        width: clamp(50px, 12vw, 90px);
        height: clamp(65px, 15vw, 115px);
        border-radius: 50% 50% 45% 45%;
        animation: float 4s ease-in-out infinite;
        z-index: 1;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .balloon::after {
        content: '';
        position: absolute;
        top: calc(100% - 8px);
        left: 50%;
        width: 3px;
        height: clamp(35px, 8vw, 70px);
        background: linear-gradient(to bottom, #666, #333);
        transform: translateX(-50%);
        border-radius: 2px;
    }

    .red { 
        background: radial-gradient(ellipse at 35% 25%, #ffffff 8%, #ff4444 25%, #dc2626 100%);
        border: 2px solid #b91c1c;
    }

    .white { 
        background: radial-gradient(ellipse at 35% 25%, #ffffff 15%, #f8f8f8 50%, #e5e5e5 100%);
        border: 2px solid #d1d5db;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(-2deg); }
        50% { transform: translateY(-20px) rotate(3deg); }
    }

    .ribbon {
        position: absolute;
        width: clamp(35px, 10vw, 50px);
        height: clamp(12px, 3vw, 16px);
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        animation: sway 2.5s ease-in-out infinite;
        z-index: 1;
        border-radius: 3px;
        box-shadow: 0 2px 4px rgba(220,38,38,0.3);
    }

    .ribbon::after {
        content: '';
        position: absolute;
        right: -12px;
        top: 0;
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 12px solid #ffffff;
    }

    @keyframes sway {
        0%, 100% { transform: rotate(8deg); }
        50% { transform: rotate(-8deg); }
    }

    .flag {
        position: absolute;
        width: clamp(30px, 8vw, 45px);
        height: clamp(20px, 5vw, 30px);
        background: linear-gradient(180deg, #dc2626 50%, #ffffff 50%);
        border: 2px solid #991b1b;
        animation: wave 1.8s ease-in-out infinite;
        z-index: 1;
        border-radius: 4px;
        box-shadow: 0 3px 6px rgba(220,38,38,0.3);
    }

    .flag::before {
        content: '';
        position: absolute;
        left: -8px;
        top: -5px;
        width: 3px;
        height: calc(100% + 15px);
        background: linear-gradient(to bottom, #8b5cf6, #7c3aed);
        border-radius: 2px;
    }

    @keyframes wave {
        0%, 100% { transform: rotate(5deg) scale(1); }
        50% { transform: rotate(-5deg) scale(1.05); }
    }

    /* Garland/pita dekorasi */
    .garland {
        position: absolute;
        width: 100%;
        height: 8px;
        background: repeating-linear-gradient(
            90deg,
            #dc2626 0px,
            #dc2626 20px,
            #ffffff 20px,
            #ffffff 40px
        );
        animation: slide 3s linear infinite;
        z-index: 1;
    }

    @keyframes slide {
        0% { background-position-x: 0px; }
        100% { background-position-x: 40px; }
    }

    /* Sembunyikan dekorasi pada layar sempit */
    @media (max-width: 720px) {
        .balloon, .ribbon, .flag { display: none; }
        .container { margin: 20px; padding: 25px;}
        .info-box { padding: 15px; }
        .patriotic-stars { display: none; }
    }


   /* Overlay gelap */
#popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* transparan gelap */
    z-index: 9998; /* tepat di bawah popup */
}

/* Popup copy rekening: nuansa HUT RI */
#popupModal {
    display: none;
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff5f5; /* putih agak merah muda lembut */
    color: #b71c1c; /* merah khas HUT RI */
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
    z-index: 9999;
    white-space: nowrap;
    border: 1px solid #f44336;
    font-weight: bold;
}

@media (max-width: 420px) {
    #popupModal {
        font-size: 14px;
        padding: 10px 12px;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
    }
}



    /* kecilkan font di very small screens */
    @media (max-width:360px){
        header h1 { font-size: 18px; }
        input, textarea, button { font-size: 14px; padding:10px; }
    }

