/* ===================================================
   TRADER KAMPUNG
   STYLE.CSS (LAYOUT 1 KOLOM & KARTU KECIL)
   =================================================== */

:root {
    --primary: #0F172A;
    --secondary: #1E293B;
    --accent: #F59E0B;
    --white: #FFFFFF;
    --background: #F8FAFC;
    --border: #E5E7EB;
    --text: #111827;
    --text-light: #6B7280;
    --radius: 20px;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    line-height: 1.5;
}

/* Dikembalikan menjadi max-width 460px agar rapi 1 kolom di laptop */
.container {
    width: 100%;
    max-width: 460px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.03); /* Sedikit bayangan saat di desktop */
    background: var(--background);
}

/* =========================
   HERO
========================= */
.hero {
    background: linear-gradient(180deg, #08162F, #12284A);
    color: #fff;
    text-align: center;
    padding: 30px 20px 80px;
    border-radius: 0 0 24px 24px;
    position: relative;
}

.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #FFD166;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero p {
    max-width: 340px;
    margin: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* =========================
   LAYOUT WRAPPER
========================= */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* =========================
   CARDS
========================= */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px; /* Padding dikurangi */
    margin: 0;
}

/* Kartu Kopi Diperkecil */
.donation-card {
    padding: 16px;
}

.donation-card h2 {
    text-align: center;
    font-size: 18px; /* Ukuran font diperkecil */
}

.price-tag {
    display: block;
    width: max-content;
    margin: 10px auto;
    background: #FFF3D4;
    color: #8A5A00;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

/* =========================
   QUANTITY
========================= */
.quantity-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0; /* Jarak atas bawah diperkecil */
}

.quantity-box button {
    width: 42px; /* Tombol diperkecil dari 48px */
    height: 42px;
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
    font-size: 22px;
    cursor: pointer;
    transition: .25s;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-box button:hover {
    color: var(--accent);
}

.qty {
    text-align: center;
}

.qty h3 {
    font-size: 30px; /* Angka kopi diperkecil dari 36px */
    font-weight: 800;
    line-height: 1;
}

.qty span {
    color: var(--text-light);
    font-size: 12px;
}

/* =========================
   TOTAL BOX
========================= */
.total-box {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px; /* Padding diperkecil */
    text-align: center;
}

.total-box small {
    color: var(--text-light);
    font-size: 11px;
}

.total-box h2 {
    margin-top: 4px;
    font-size: 20px; /* Ukuran nominal diperkecil dari 24px */
    color: var(--primary);
}

/* =========================
   FORMS
========================= */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
}

input, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    outline: none;
    transition: .25s;
    font-family: inherit;
}

textarea {
    resize: none;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* =========================
   PAYMENT & BUTTON
========================= */
.payment-card h3 {
    margin-bottom: 12px;
    font-size: 15px;
}

.payment-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #FAFAFA;
}

.payment-item strong {
    font-size: 13px;
}

.payment-item p {
    color: var(--text-light);
    margin-top: 4px;
    font-size: 12px;
}

.action-wrapper {
    margin-top: 6px;
}

.pay-button {
    width: 100%;
    border: none;
    background: var(--accent);
    color: #111;
    font-size: 15px;
    font-weight: 800;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: .25s;
}

.pay-button:hover {
    background: #fbbf24;
}

.security {
    text-align: center;
    margin-top: 12px;
    color: var(--text-light);
    font-size: 12px;
}

/* =========================
   COMMUNITY CARD
========================= */
.community-card {
    background: linear-gradient(135deg, #08162F, #132E55);
    color: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    margin-top: 10px; /* Jarak dari tombol bayar */
}

.community-card h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.community-card p {
    opacity: .85;
    font-size: 12px;
    line-height: 1.5;
}

.community-card span {
    font-size: 24px;
    margin-left: 12px;
}

footer {
    text-align: center;
    color: #94A3B8;
    font-size: 12px;
    padding: 30px 16px;
}

/* =========================
   POPUP MODAL COMING SOON
========================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.75); /* Latar belakang gelap transparan */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.modal-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* =========================
   TELEGRAM CTA BUTTON
========================= */
.telegram-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    margin-top: 24px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    /* Gradasi Biru Premium ala Telegram */
    background: linear-gradient(135deg, #28A8EA, #1E8AC2);
    color: white;
    border-radius: 14px;
    /* Efek bayangan menyala */
    box-shadow: 0 8px 24px rgba(40, 168, 234, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}

.telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(40, 168, 234, 0.4);
}