/* ==========================================================================
   NYAI WIDJI - MASTER CSS
   ========================================================================== */

/* --- VARIABEL WARNA & DASAR --- */
:root {
    --primary: #92400e;        /* Amber 800 */
    --primary-hover: #78350f;  /* Amber 900 */
    --primary-light: #fef3c7;  /* Amber 100 */
    --bg-body: #ffffff;
    --bg-alt: #fffbeb;         /* Amber 50 */
    --bg-input: #f9fafb;       /* Gray 50 */
    --text-dark: #111827;      /* Gray 900 */
    --text-body: #374151;      /* Gray 700 */
    --text-muted: #6b7280;     /* Gray 500 */
    --border-color: #f3f4f6;   /* Gray 100 */
    --white: #ffffff;
    --success: #15803d; --bg-success: #f0fdf4;
    --error: #b91c1c; --bg-error: #fef2f2;
    --warning: #b45309; --bg-warning: #fffbeb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text-body); background: var(--bg-body); line-height: 1.6; }
a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }

/* --- NAVIGASI UTAMA --- */
.navbar { position: fixed; width: 100%; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-color); transition: all 0.3s; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--primary); text-transform: uppercase; font-style: italic; z-index: 60; }
.logo:hover { color: var(--primary-hover); }

/* Menu Desktop & Mobile */
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.05em; }
.nav-link:hover { color: var(--primary); }
.btn-nav-primary { background: var(--primary); color: var(--white); padding: 8px 24px; border-radius: 50px; box-shadow: 0 4px 6px rgba(146, 64, 14, 0.2); }
.btn-nav-primary:hover { background: var(--primary-hover); color: var(--white); }

.burger-btn { display: none; background: none; border: none; color: var(--primary); cursor: pointer; z-index: 60; }

/* Responsive Nav */
@media (max-width: 1024px) {
    .burger-btn { display: block; }
    .nav-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--white); flex-direction: column; justify-content: center; transform: translateX(100%); transition: 0.3s ease-in-out; }
    .nav-menu.active { transform: translateX(0); }
    .nav-link { font-size: 1.25rem; }
    .btn-nav-primary { padding: 12px 32px; }
}

/* --- HERO SECTION --- */
.hero { padding: 160px 24px 80px; background: linear-gradient(to bottom, var(--bg-alt), var(--white)); text-align: center; }
.hero-img-wrapper { display: flex; justify-content: center; margin-bottom: 32px; }
.hero-img { width: 100%; max-width: 380px; filter: drop-shadow(0 20px 25px rgba(0,0,0,0.15)); }
.hero-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; color: var(--text-dark); line-height: 1.1; margin-bottom: 24px; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }

/* --- PRODUK SECTION --- */
.section-produk { padding: 10px 0 80px 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }
.title-line { height: 6px; width: 80px; background: var(--primary); margin: 0 auto 48px; border-radius: 10px; }

.grid-produk { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .grid-produk { grid-template-columns: repeat(2, 1fr); } }

.card-produk { background: var(--white); border: 1px solid var(--border-color); border-radius: 24px; padding: 16px; transition: 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.card-produk:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); transform: translateY(-5px); }
.card-img-box { background: var(--bg-input); border-radius: 16px; aspect-ratio: 1/1; overflow: hidden; margin-bottom: 24px; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; }
.card-produk:hover .card-img-box img { transform: scale(1.1); }
.card-title { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.card-desc { font-size: 0.875rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- KEMITRAAN & FORM --- */
.section-kemitraan { padding: 100px 24px; background: var(--bg-alt); }
.kemitraan-wrapper { display: flex; flex-direction: column; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .kemitraan-wrapper { flex-direction: row; align-items: flex-start; } }

.kemitraan-text { flex: 3; }
.kemitraan-text p { font-size: 1.125rem; margin-bottom: 24px; line-height: 1.8; }
.kemitraan-badge { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-weight: 700; color: var(--primary); }
.badge-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: italic; }

.kemitraan-form-box { flex: 2; width: 100%; background: var(--white); padding: 40px; border-radius: 40px; box-shadow: 0 25px 50px -12px rgba(146, 64, 14, 0.1); position: relative; overflow: hidden; }
.form-title { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.form-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 32px; }

/* Form Elements */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.625rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-left: 8px; margin-bottom: 4px; }
.form-control { width: 100%; padding: 10px; background: var(--bg-input); border: 2px solid transparent; border-radius: 16px; font-family: inherit; font-size: 1rem; transition: 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary); background: var(--white); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; appearance: none; }

.btn-submit { width: 100%; background: var(--primary); color: var(--white); border: none; padding: 16px; border-radius: 16px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.2s; box-shadow: 0 10px 15px -3px rgba(146, 64, 14, 0.2); margin-top: 16px; }
.btn-submit:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-submit:active { transform: scale(0.98); }

/* Alerts */
.alert { padding: 16px; border-radius: 16px; margin-bottom: 24px; text-align: center; font-size: 0.875rem; font-weight: 500; font-style: italic; }
.alert-success { background: var(--bg-success); color: var(--success); border: 1px solid #bbf7d0; animation: pulse 2s infinite; }
.alert-error { background: var(--bg-error); color: var(--error); border: 1px solid #fecaca; }
.alert-warning { background: var(--bg-warning); color: var(--warning); border: 1px solid #fde68a; }

/* Banner Edukasi */
.banner-edukasi { margin-top: 32px; padding: 24px; background: var(--white); border-radius: 24px; border: 1px solid var(--primary-light); text-align: center; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 12px 32px; border-radius: 50px; font-weight: 900; cursor: pointer; transition: 0.3s; font-size: 0.875rem; letter-spacing: 0.05em; }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* --- MODAL EDUKASI --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.show { display: flex; }
.modal-content { background: var(--white); width: 100%; max-width: 800px; max-height: 90vh; border-radius: 40px; display: flex; flex-direction: column; position: relative; overflow: hidden; animation: fadeInUp 0.4s ease-out; }
.btn-close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: rgba(255,255,255,0.8); font-size: 1.5rem; font-weight: bold; color: var(--text-muted); cursor: pointer; z-index: 10; transition: 0.2s; }
.btn-close:hover { background: var(--bg-error); color: var(--error); }
.modal-body { overflow-y: auto; padding: 32px 48px; }

.edukasi-card { border-radius: 24px; overflow: hidden; margin-bottom: 32px; }
.edukasi-card img { width: 100%; height: 250px; object-fit: cover; }
.edukasi-content { padding: 24px; }
.edukasi-title { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.edukasi-card.dropship { background: #eff6ff; border: 1px solid #dbeafe; }
.edukasi-card.dropship .edukasi-title { color: #1e3a8a; }
.edukasi-card.reseller { background: var(--bg-alt); border: 1px solid var(--primary-light); }
.edukasi-card.reseller .edukasi-title { color: var(--primary); }

/* --- FOOTER & UTILITIES --- */
.footer { padding: 48px 24px; text-align: center; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   AREA MEMBER (ORDER & RIWAYAT)
   ========================================================================== */
.member-container { padding: 40px 24px; max-width: 1150px; margin: 0 auto; }
.grid-order { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .grid-order { grid-template-columns: 2fr 1fr; } }

/* Kartu Form Putih */
.card { background: var(--white); border-radius: 32px; padding: 32px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); border: 1px solid var(--border-color); margin-bottom: 32px; }
.card-header { display: flex; align-items: center; margin-bottom: 24px; font-size: 1.125rem; font-weight: 700; color: var(--text-dark); }
.step-num { width: 32px; height: 32px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; margin-right: 12px; }

/* Grid dalam Form Order */
.form-grid-order { display: grid; grid-template-columns: 1fr; gap: 16px; background: var(--bg-alt); padding: 24px; border-radius: 24px; border: 1px solid var(--primary-light); margin-bottom: 32px; align-items: end; }
@media (min-width: 768px) { .form-grid-order { grid-template-columns: 2fr 1fr auto; } }

/* Tabel Keranjang */
.table-wrapper { overflow-x: auto; margin-top: 24px; }
.table { width: 100%; border-collapse: collapse; min-width: 500px; }
.table th { text-align: left; padding-bottom: 16px; font-size: 0.625rem; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-color); }
.table td { padding: 16px 0; border-bottom: 1px solid #f9fafb; font-size: 0.875rem; color: var(--text-body); }
.table-right { text-align: right; }
.table-center { text-align: center; }
.qty-input { width: 60px; text-align: center; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; font-weight: bold; }
.btn-hapus { background: #fef2f2; color: var(--error); border: none; padding: 8px 12px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-hapus:hover { background: #fee2e2; }

/* Kotak Ringkasan Hitam */
.sidebar-dark { background: var(--text-dark); color: var(--white); padding: 40px; border-radius: 48px; position: sticky; top: 100px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); }
.sidebar-dark h4 { color: #f59e0b; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 32px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 0.875rem; color: #9ca3af; }
.summary-val { color: var(--white); font-weight: bold; }
.summary-total { border-top: 1px solid #374151; padding-top: 24px; margin-top: 24px; margin-bottom: 32px; }
.text-huge { font-size: 2.25rem; font-weight: 900; color: var(--white); letter-spacing: -0.05em; margin-top: 4px; }
.btn-lanjut { width: 100%; background: #d97706; color: white; border: none; padding: 20px; border-radius: 24px; font-size: 0.875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3); }
.btn-lanjut:hover { background: #b45309; transform: translateY(-2px); }

/* Custom Dropdown Autocomplete Komerce */
.pos-relative { position: relative; }
.dropdown-lokasi { position: absolute; width: 100%; background: var(--white); border: 1px solid var(--border-color); border-radius: 16px; max-height: 240px; overflow-y: auto; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); z-index: 100; display: none; margin-top: 8px; }
.lokasi-item { padding: 16px; cursor: pointer; border-bottom: 1px solid var(--bg-alt); font-size: 0.875rem; color: var(--text-body); transition: 0.2s; }
.lokasi-item:hover { background: var(--bg-alt); color: var(--primary); }


.reg-description {
    font-size: 15px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 25px;
    text-align: justify; /* Agar teks rapi rata kanan-kiri seperti di buku menu */
}

.reg-description strong {
    color: var(--primary); /* Memberi aksen warna cokelat pada teks tebal */
    font-weight: 800;
}

.reg-description p {
    margin-bottom: 15px; /* Memberi jarak antar paragraf */
}

/* --- MEMBER AREA: index Akademi dan PRICE UPDATE SECTION --- */
.price-update-wrapper {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    border-radius: 40px;
    padding: 32px;
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
}

.price-update-wrapper::before {
    content: "Ny";
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(146, 64, 14, 0.03);
    font-style: italic;
    pointer-events: none;
}

.price-section-title { 
    font-size: 0.875rem; 
    font-weight: 900; 
    color: #92400e; 
    letter-spacing: 0.2em; 
    text-transform: uppercase; 
    margin-bottom: 24px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.price-section-title::after { 
    content: ""; 
    flex-grow: 1; 
    height: 1px; 
    background: rgba(146, 64, 14, 0.1); 
}

.price-grid { 
    display: grid; 
    /* KUNCI 4 KOLOM DI SINI */
    grid-template-columns: repeat(4, 1fr); 
    gap: 16px; 
}

.price-card { 
    background: #ffffff; 
    border: 1px solid rgba(146, 64, 14, 0.08); 
    border-radius: 20px; 
    padding: 10px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    transition: 0.3s;
}

.price-card:hover { 
    transform: scale(1.02); 
    border-color: #92400e; 
}

.price-img-box { 
    width: 50px; 
    height: 50px; 
    border-radius: 12px; 
    overflow: hidden; 
    flex-shrink: 0; 
}

.price-img-box img { width: 100%; height: 100%; object-fit: cover; }
.price-info h4 { font-size: 0.85rem; font-weight: 800; color: #111827; margin-bottom: 0px; line-height: 1.2; }
.price-tag { font-size: 0.875rem; font-weight: 700; color: #92400e; }

/* --- RESPONSIVE FIX UNTUK 4 KOLOM --- */
@media (max-width: 1024px) {
    .price-grid { grid-template-columns: repeat(2, 1fr); } /* Tablet jadi 2 kolom */
}
@media (max-width: 640px) {
    .price-grid { grid-template-columns: 1fr; } /* Mobile jadi 1 kolom */
    .price-update-wrapper { padding: 20px; border-radius: 24px; }
}

/* --- GRID MATERI --- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.course-card { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 32px; padding: 16px; transition: 0.3s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-color: #fbd38d; }
.course-img-box { width: 100%; aspect-ratio: 16/9; background: #F8F9FA; border-radius: 20px; overflow: hidden; margin-bottom: 20px; border: 1px solid #E2E8F0; }
.course-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.course-card:hover .course-img-box img { transform: scale(1.1); }
.course-info { padding: 0 8px 16px 8px; flex-grow: 1; display: flex; flex-direction: column; }
.course-meta { font-size: 0.625rem; color: #64748B; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.course-title { font-size: 1.125rem; font-weight: 800; color: #111827; margin-bottom: 20px; line-height: 1.4; flex-grow: 1; }
.btn-baca { background: #F8F9FA; color: #92400e; padding: 14px; text-align: center; border-radius: 14px; font-weight: 900; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.1em; transition: 0.2s; border: 1px solid #fbd38d; display: block; text-decoration: none; }
.btn-baca:hover { background: #92400e; color: #ffffff; }

/* Style untuk Link Navigasi yang Aktif */
.nav-link.active {
    color: var(--primary) !important; /* Warna utama Nyai Widji */
    font-weight: 800; /* Lebih tebal */
    position: relative;
}

/* Opsional: Memberi garis bawah kecil agar lebih manis */
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

/* Container & Header */
.price-update-wrapper { margin-bottom: 50px; }
.price-section-header { margin-bottom: 20px; }
.price-section-title { font-size: 1.6rem; font-weight: 900; color: var(--text-dark); letter-spacing: -0.02em; }
.price-section-subtitle { font-size: 0.85rem; color: #64748b; margin-top: 4px; }

/* Grid 4 Kolom - Responsif */
.price-grid-four { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* Tetap 4 kolom di desktop */
    gap: 20px; 
}

/* Responsif: Tablet 2 kolom, HP 1 kolom */
@media (max-width: 1024px) { .price-grid-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .price-grid-four { grid-template-columns: 1fr; } }

/* Card Vertical Layout */
.price-card-v2 {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column; /* Gambar atas, info bawah */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

/* Thumbnail dengan Aspect Ratio */
.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Membuat kotak gambar proporsional (4:3) */
    background: #f1f5f9;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar akan terpotong rapi, bukan penyet */
}

.badge-profit {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
}

/* Content Area */
.card-content { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.prod-name { font-size: 0.95rem; font-weight: 800; margin-bottom: 12px; color: var(--text-dark); line-height: 1.3; }

.price-stack { background: #f8fafc; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.stack-item { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; }
.stack-label { font-size: 0.65rem; color: #64748b; font-weight: 600; }
.stack-val { font-size: 0.75rem; font-weight: 700; }

.stack-item.active { border-top: 1px dashed #cbd5e1; margin-top: 6px; padding-top: 6px; }
.stack-val.jual { color: var(--primary); font-size: 0.85rem; }

/* Profit Box */
.profit-box {
    margin-top: auto; /* Memaksa box profit di paling bawah */
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profit-label { font-size: 0.6rem; font-weight: 800; color: #166534; text-transform: uppercase; letter-spacing: 0.05em; }
.profit-val { font-size: 1rem; font-weight: 900; color: #15803d; }


/* Refined Styles for Riwayat Order */
.history-container { display: flex; flex-direction: column; gap: 20px; }
.card-order { 
    background: white; 
    border-radius: 24px; 
    border: 1px solid #e2e8f0; 
    overflow: hidden; 
    transition: all 0.3s ease;
}
.card-order:hover { transform: translateY(-4px); box-shadow: 0 12px 20px -5px rgba(0,0,0,0.05); }

.order-header { 
    padding: 16px 24px; 
    background: #f8fafc; 
    border-bottom: 1px dashed #e2e8f0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.order-body { padding: 24px; }

.history-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width: 1024px) { .history-grid { grid-template-columns: 1fr 1.2fr 1fr; align-items: start; } }

/* Badges */
.badge { padding: 6px 14px; border-radius: 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-pending { background: #fffbeb; color: #92400e; border: 1px solid #fef3c7; }
.badge-proses { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.badge-kirim { background: #ecfdf5; color: #065f46; border: 1px solid #d1fae5; }
.badge-selesai { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* Bank Card Polish */
.bank-card-premium { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); 
    color: white; 
    padding: 20px; 
    border-radius: 20px; 
    position: relative;
    overflow: hidden;
}
.bank-card-premium::after {
    content: ""; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; 
    background: rgba(255,255,255,0.03); border-radius: 50%;
}

.btn-copy-small {
    background: rgba(255,255,255,0.1); border: none; color: white; padding: 4px 8px; 
    border-radius: 6px; font-size: 9px; cursor: pointer; transition: 0.2s;
}
.btn-copy-small:hover { background: var(--primary); }

.receipt-label { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 6px; display: block; }
.receipt-value { font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.4; }
.price-total { font-size: 20px; font-weight: 900; color: var(--primary); letter-spacing: -0.03em; }

.address-box { background: #f1f5f9; padding: 12px; border-radius: 12px; font-size: 12px; color: #475569; line-height: 1.6; font-style: italic; }

/* --- OPTIMASI MOBILE: 1 KOLOM BESAR --- */
@media (max-width: 767px) {
    .container { 
        padding: 10px 16px; /* Kurangi padding utama dari 24px */
    }
    .section-produk {
        padding: 40px 0; /* Kurangi jarak antar section */
    }
    .card-produk {
        padding: 10px; /* Kurangi padding kartu agar gambar melebar */
        border-radius: 20px;
    }
    .card-img-box {
        margin-bottom: 16px; /* Perkecil jarak gambar ke teks */
    }
    .card-title {
        font-size: 1.25rem; /* Judul tetap tegas */
    }
}



    /* Styling Tambahan Khusus HALAMAN BACA */
    .baca-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 120px 24px 60px; /* Padding top lebih besar karena navbar fixed */
    }
    
    .materi-header {
        margin-bottom: 40px;
    }

    .materi-category {
        color: var(--primary);
        font-weight: 800;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
        display: block;
    }

    .materi-title-large {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        font-weight: 900;
        color: var(--text-dark);
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .materi-banner {
        width: 100%;
        border-radius: 32px;
        margin-bottom: 40px;
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    }

    .content-area {
        line-height: 1.8;
        color: var(--text-body);
        font-size: 1.1rem;
    }

    .content-area p { margin-bottom: 1.5rem; }
    
    /* Agar gambar di dalam konten (dari Summernote) tetap rapi */
    .content-area img {
        max-width: 100%;
        height: auto;
        border-radius: 20px;
        margin: 24px 0;
    }

    .btn-back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 24px;
        font-size: 0.875rem;
    }

    .note-box {
        background: var(--bg-alt);
        border: 1px solid var(--primary-light);
        padding: 32px;
        border-radius: 32px;
        text-align: center;
        margin-top: 60px;
    }
    
/* --- FIX OVERFLOW & MENU DI HP --- */
html, body {
    overflow-x: hidden; /* Gembok absolut! Mencegah seluruh halaman geser ke kanan */
    width: 100%;
}

@media (max-width: 1024px) {
    .member-container {
        padding: 20px 16px 40px; /* Jarak aman dari atas (navbar) dan kiri-kanan (16px) */
        max-width: 100%;
    }

    /* KUNCI ANTI-MELEBAR: Memaksa form dan kartu tunduk pada lebar layar */
    .grid-order, .col-left, .col-right, .card {
        min-width: 0; 
        max-width: 100%;
    }

    .card {
        padding: 20px; /* Mengurangi padding bawaan 32px agar isi lebih lega */
    }

    /* Matikan sticky agar tidak bentrok dengan menu hamburger */
    .sidebar-dark {
        position: relative !important;
        top: auto !important;
        margin-top: 24px;
    }
    
    /* Membuat hanya bagian tabelnya saja yang bisa digeser kiri-kanan */
    .table-wrapper {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Biar scroll tabelnya mulus di iPhone/Android */
    }
}

/* --- BIKIN TABEL KERANJANG SLIM FIT DI HP (TANPA GESER) --- */
@media (max-width: 767px) {
    .table {
        min-width: 100%; /* Membatalkan paksaan 500px agar ikut lebar HP */
    }
    .table th, .table td {
        padding: 12px 4px; /* Kurangi ruang kosong antar kolom */
        font-size: 0.75rem; /* Huruf sedikit dikecilkan */
    }
    /* Kolom Nama Produk dibiarkan turun ke bawah jika teksnya panjang */
    .table td:first-child {
        white-space: normal; 
        line-height: 1.3;
    }
    /* Perkecil kotak input Qty */
    .qty-input {
        width: 40px;
        padding: 6px 2px;
        font-size: 0.8rem;
    }
    /* Perkecil tombol hapus agar tidak memakan tempat */
    .btn-hapus {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    /* Menyembunyikan kata "Rp" pada subtotal di HP untuk menghemat ruang */
    .table td:nth-child(2),
    .table td:nth-child(4) {
        letter-spacing: -0.05em; /* Rapatkan sedikit spasinya */
    }
}

.note-ongkir {
    display: inline-block;
    color: #dc2626; /* Warna merah modern */
    background-color: #EBEBEB; 
    padding: 5px 12px; 
    border-radius: 10px; /* Membuat lonjong sempurna/rounded */
    font-size: 0.7rem; 
    font-style: italic; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Sedikit bayangan agar elegan */
}