/* ==========================================================================
   BANYUKOE - LANDING PAGE UNDUH APK SESUAI MOCKUP
   ========================================================================== */

:root {
    --brand-green: #008744;
    --brand-green-dark: #007038;
    --brand-green-light: #05964d;
    --brand-green-soft: #e8f5e9;

    --bg-page: #f8fafc;
    --text-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;

    --radius-card: 44px;
    --radius-btn: 26px;
    --radius-modal: 20px;

    --shadow-card: 0 24px 60px -12px rgba(0, 135, 68, 0.28), 0 12px 24px -8px rgba(0, 0, 0, 0.08);
    --shadow-btn: 0 10px 25px rgba(0, 0, 0, 0.18);
    --shadow-btn-hover: 0 14px 30px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.unduh-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-x: hidden;
}

/* ================= CONTAINER CARD UTAMA ================= */
.unduh-wrapper {
    width: 100%;
    max-width: 1040px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.unduh-card {
    background-color: var(--brand-green);
    border-radius: var(--radius-card);
    width: 100%;
    padding: 50px 60px 45px;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

/* Aksen visual halus pada card */
.unduh-card::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ================= KOLOM KIRI (KONTEN) ================= */
.unduh-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-white);
    z-index: 2;
}

/* Logo BanyuKoe */
.unduh-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 38px;
    color: var(--text-white);
}

.unduh-logo-icon {
    width: 38px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unduh-logo-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.unduh-brand-name {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1;
}

/* Headlines */
.unduh-heading-small {
    font-size: 2.15rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 2px;
    color: var(--text-white);
    letter-spacing: -0.2px;
}

.unduh-heading-big {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 38px;
    color: var(--text-white);
    letter-spacing: -0.6px;
}

/* Tombol Download Putih */
.btn-unduh-apk {
    background-color: #ffffff;
    color: var(--brand-green);
    border-radius: var(--radius-btn);
    padding: 16px 36px 16px 28px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    margin-bottom: 38px;
}

.btn-unduh-apk:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-btn-hover);
    background-color: #ffffff;
}

.btn-unduh-apk:active {
    transform: translateY(0) scale(0.99);
}

/* Icon Panah Download Hijau (Tebal & Rounded) */
.unduh-arrow-wrap {
    width: 44px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.unduh-arrow-svg {
    width: 42px;
    height: 52px;
    fill: var(--brand-green);
}

/* Teks Tombol */
.unduh-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.unduh-btn-title {
    font-size: 2.05rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-green);
    letter-spacing: -0.3px;
}

.unduh-btn-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--brand-green);
    letter-spacing: -0.2px;
}

/* Link Kendala Instalasi */
.unduh-link-kendala {
    font-size: 1.25rem;
    color: var(--text-white);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
}

.unduh-link-kendala:hover {
    opacity: 0.9;
}

.unduh-link-kendala strong {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ================= KOLOM KANAN (MOCKUP HP) ================= */
.unduh-col-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.unduh-phone-img-wrap {
    width: 100%;
    max-width: 370px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.unduh-phone-img-wrap:hover {
    transform: translateY(-4px);
}

.unduh-phone-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}

/* ================= TOAST NOTIFIKASI UNDUHAN ================= */
.unduh-toast {
    position: fixed;
    bottom: 28px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.unduh-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.unduh-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
}

/* ================= POPUP WINDOW / MODAL KENDALA ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-modal);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.92) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    padding: 20px 26px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-title-wrap {
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-close-btn {
    background: #e2e8f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 24px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Grid Langkah Kendala */
.kendala-step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: center;
}

.kendala-img-box {
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.kendala-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.kendala-img-box:hover .kendala-img {
    transform: scale(1.04);
}

.kendala-step-content {
    display: flex;
    flex-direction: column;
}

.kendala-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #dcfce7;
    color: #166534;
    margin-bottom: 6px;
}

.kendala-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.kendala-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
}

/* Banner Informasi Penggantian PNG */
.modal-admin-tip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.86rem;
    color: #1e40af;
    line-height: 1.5;
}

.modal-admin-tip strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 2px;
}

.modal-admin-tip code {
    background: #dbeafe;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Modal Footer */
.modal-footer {
    padding: 16px 26px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    background: #f8fafc;
}

.btn-modal-close {
    background: var(--brand-green);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-modal-close:hover {
    background: var(--brand-green-dark);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .unduh-card {
        padding: 44px 40px;
        grid-template-columns: 1fr 0.9fr;
        gap: 20px;
    }

    .unduh-heading-small {
        font-size: 1.85rem;
    }

    .unduh-heading-big {
        font-size: 2.85rem;
        margin-bottom: 28px;
    }

    .unduh-btn-title {
        font-size: 1.75rem;
    }

    .unduh-btn-subtitle {
        font-size: 1.15rem;
    }

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

@media (max-width: 768px) {
    .unduh-card {
        grid-template-columns: 1fr;
        border-radius: 32px;
        padding: 38px 26px;
        text-align: center;
    }

    .unduh-col-left {
        align-items: center;
    }

    .unduh-heading-small {
        font-size: 1.55rem;
    }

    .unduh-heading-big {
        font-size: 2.4rem;
        margin-bottom: 26px;
    }

    .btn-unduh-apk {
        width: 100%;
        max-width: 380px;
        justify-content: center;
        padding: 14px 24px;
        margin-bottom: 26px;
    }

    .unduh-link-kendala {
        font-size: 1.1rem;
        margin-bottom: 26px;
    }

    .unduh-phone-img-wrap {
        max-width: 280px;
    }
}