/* Tema “Gerakan Menabung Sampah Digital Desa Merah Putih”
   Nuansa daur ulang + sentuhan teknologi (hijau daun + biru digital) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --sd-gradient: linear-gradient(135deg, #19c37d 0%, #0f8ee0 50%, #6a5acd 100%);
    --sd-green: #19c37d;
    --sd-green-dark: #0e8b58;
    --sd-blue: #0f8ee0;
    --sd-amber: #f5c84c;
    --sd-slate: #0f172a;
    --sd-ink: #111827;
    --sd-cloud: #f1f5f9;
    --sd-card-bg: rgba(255, 255, 255, 0.92);
    --sd-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    --sd-border: rgba(255, 255, 255, 0.35);
    --sd-radius: 1.25rem;
    --sd-transition: all 0.35s ease;
    font-family: 'Inter', 'Sora', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.sd-theme {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(25, 195, 125, 0.25), transparent 45%),
                radial-gradient(circle at top right, rgba(15, 142, 224, 0.25), transparent 45%),
                #050914;
    color: var(--sd-cloud);
}

.sd-noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='60' cy='40' r='1.2'/%3E%3Ccircle cx='120' cy='20' r='1.5'/%3E%3Ccircle cx='30' cy='90' r='0.8'/%3E%3Ccircle cx='90' cy='80' r='1.1'/%3E%3Ccircle cx='140' cy='120' r='1.3'/%3E%3Ccircle cx='50' cy='140' r='1'/%3E%3Ccircle cx='15' cy='60' r='0.7'/%3E%3Ccircle cx='110' cy='130' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
    mix-blend-mode: screen;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.sd-shell {
    position: relative;
    width: min(1200px, 100%);
    margin: 0 auto;
    z-index: 1;
    padding: 2rem clamp(1.25rem, 5vw, 3rem);
    padding-bottom: 5rem;
    overflow-x: hidden;
}

.sd-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.sd-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.sd-brand-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.sd-nav-actions {
    display: flex;
    gap: 0.75rem;
}

.sd-bottom-nav-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.sd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(6, 15, 35, 0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: none;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.35rem 0.5rem calc(env(safe-area-inset-bottom, 0px) + 0.35rem);
    z-index: 10;
    backdrop-filter: blur(10px);
    overflow: hidden;
    touch-action: pan-y;
}

.sd-bottom-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.sd-bottom-nav a i {
    font-size: 1.15rem;
}

.sd-bottom-nav a.active {
    color: var(--sd-amber);
}

.sd-bottom-nav-spacer {
    display: none;
}

.sd-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.sd-btn {
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sd-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sd-btn-ghost {
    background: transparent;
    color: #fff;
}

.sd-btn-ghost:hover {
    color: var(--sd-amber);
    transform: translateY(-2px);
}

.sd-btn-primary {
    background: var(--sd-gradient);
    color: #fff;
    box-shadow: 0 10px 25px rgba(15, 142, 224, 0.35);
}

.sd-btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
}

.sd-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    align-items: center;
    padding: 4rem 0 3rem;
}

.sd-hero-text h1 {
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
    line-height: 1.1;
    margin: 0;
}

.sd-hero-text p {
    font-size: 1rem;
}

.sd-hero-text h1 span {
    color: var(--sd-amber);
}

.sd-hero-kpi {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 100%;
}

.sd-kpi-card {
    padding: 1rem 1.25rem;
    border-radius: var(--sd-radius);
    min-width: 190px;
    background: rgba(15, 142, 224, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.sd-kpi-label {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.sd-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.sd-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.sd-card {
    border-radius: var(--sd-radius);
    padding: 1.25rem;
    background: var(--sd-card-bg);
    box-shadow: var(--sd-shadow);
    color: var(--sd-ink);
    overflow: hidden;
    width: 100%;
}

.bank-card {
    background: rgba(6, 15, 35, 0.92);
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 142, 224, 0.18);
    color: #fff;
    box-shadow: 0 25px 60px -25px rgba(0,0,0,0.6);
    width: 100%;
}

.bank-card h2,
.bank-card h3,
.bank-card small,
.bank-card strong,
.bank-card p {
    color: #fff;
}

.bank-card table th,
.bank-card table td {
    color: rgba(255,255,255,0.9);
}

.bank-price-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
    width: 100%;
}

.bank-price-item {
    position: relative;
    padding: 1.5rem;
    overflow: hidden;
    animation: bankFloat 8s ease-in-out infinite;
    width: 100%;
}

.bank-price-item:nth-child(2n) {
    animation-delay: 1s;
}

.bank-price-item:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes bankFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.bank-price-item-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

.bank-price-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
}

.bank-price-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.bank-form-wrapper {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 320px;
    gap: 1.5rem;
}

.bank-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.bank-form-group label {
    display: block;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.4rem;
}

.bank-form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(6, 15, 35, 0.85);
    color: #fff;
    font-size: 0.95rem;
    transition: border 0.2s, box-shadow 0.2s;
}

.bank-form-control:focus {
    outline: none;
    border-color: var(--sd-green);
    box-shadow: 0 0 0 3px rgba(25,195,125,0.25);
}

.bank-form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.bank-form-control option {
    color: #111;
}

.bank-sidebar {
    background: rgba(4, 13, 30, 0.9);
    border-radius: 1.5rem;
    border: 1px solid rgba(25, 195, 125, 0.2);
    padding: 1.5rem;
    color: #fff;
    box-shadow: 0 25px 60px -30px rgba(0,0,0,0.7);
}

.bank-sidebar h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #fff;
}

.bank-sidebar ol {
    padding-left: 1.25rem;
    margin: 0;
}

.bank-sidebar li {
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.sd-card-dark {
    background: rgba(3, 12, 30, 0.9);
    color: #fff;
    border: 1px solid rgba(15, 142, 224, 0.2);
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6);
}

.sd-card-dark h2,
.sd-card-dark h3,
.sd-card-dark p,
.sd-card-dark ul,
.sd-card-dark details {
    color: #fff;
}

.sd-card-dark summary {
    cursor: pointer;
    color: #fff;
}

.sd-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--sd-slate);
}

.sd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(24, 181, 132, 0.12);
    color: var(--sd-green-dark);
}

.sd-section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: #fff;
}

.sd-section-subtitle {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.sd-price-card {
    border: 1px solid rgba(15, 142, 224, 0.2);
    background: rgba(3, 7, 18, 0.6);
    color: #fff;
    position: relative;
}

.sd-price-card .sd-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #fff;
}

.sd-price-card strong {
    font-size: 1.5rem;
    display: block;
    margin: 0.25rem 0;
}

.sd-leaderboard {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: var(--sd-radius);
    color: #fff;
}

.sd-leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.65rem;
}

.sd-leaderboard-rank {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.sd-leaderboard-name {
    flex: 1;
    margin: 0 1rem;
    font-weight: 600;
}

.sd-leaderboard-points {
    font-weight: 700;
}

.sd-how-it-works {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.sd-step {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.sd-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(25, 195, 125, 0.2);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sd-footer {
    margin-top: 4rem;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .sd-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sd-nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sd-hero {
        padding-top: 2rem;
    }

    .bank-form-wrapper {
        grid-template-columns: 1fr;
    }

    .bank-sidebar {
        order: -1;
    }

    .bank-price-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .sd-bottom-nav {
        display: flex;
    }

    .sd-shell {
        padding-bottom: 5rem;
    }

    .sd-bottom-nav-spacer {
        display: block;
        height: 70px;
    }
}

@media (max-width: 480px) {
    body.sd-theme {
        font-size: 0.95rem;
    }

    .sd-shell {
        padding: 1.25rem 0.8rem 6.5rem;
    }

    .sd-hero {
        gap: 1.5rem;
    }

    .sd-hero-text h1 {
        font-size: clamp(1.75rem, 8vw, 2.4rem);
    }

    .sd-hero-text p {
        font-size: 0.9rem;
    }

    .sd-kpi-card {
        min-width: 100%;
    }

    .bank-price-list {
        grid-template-columns: 1fr;
    }

    .bank-price-item {
        padding: 1.1rem;
    }

    .bank-price-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bank-form-wrapper {
        gap: 1rem;
    }

    .bank-sidebar {
        padding: 1rem;
    }

    .bank-form-control {
        font-size: 0.9rem;
    }

    .sd-nav-actions {
        gap: 0.5rem;
    }

    .sd-card h2,
    .sd-card h3,
    .sd-card small,
    .bank-card h2,
    .bank-card h3,
    .bank-card small {
        font-size: 0.93rem;
    }

    .sd-card p {
        font-size: 0.9rem;
    }

    .sd-bottom-nav-spacer {
        height: 85px;
    }

    .sd-card-grid {
        grid-template-columns: 1fr;
    }

    .sd-table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

    .sd-table table {
        width: 100%;
    }

    .sd-table th,
    .sd-table td {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }

    .bank-price-item strong {
        font-size: 1.1rem;
    }

    .bank-price-meta {
        flex-direction: column;
        gap: 0.2rem;
    }
}

