﻿:root {
    --primary-blue: #0056b3;
    --soft-blue: #e7f1ff;
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --text-dark: #212529;
    --accent-yellow: #fff3cd;
    --text-yellow: #856404;
}

/* --- Ikon Garis Simpel Pengganti Emoji --- */
.ui-icon {
    --icon-size: 21px;
    --icon-stroke: 1.8px;
    width: var(--icon-size);
    height: var(--icon-size);
    min-width: var(--icon-size);
    display: inline-block;
    vertical-align: -0.28em;
    margin-right: 8px;
    color: currentColor;
    position: relative;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0;
    font-style: normal;
    line-height: 1;
}

.ui-icon::before,
.ui-icon::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
}

.icon-heritage::before {
    left: 2px;
    right: 2px;
    bottom: 3px;
    height: 10px;
    border: var(--icon-stroke) solid currentColor;
    border-top: 0;
}
.icon-heritage::after {
    left: 1px;
    top: 3px;
    width: 19px;
    height: 9px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 7px solid currentColor;
    background: transparent;
}

.icon-guide::before,
.icon-doc::before,
.icon-receipt::before {
    inset: 2px 4px 2px 4px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 4px;
}
.icon-guide::after,
.icon-doc::after,
.icon-receipt::after {
    left: 8px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-top: var(--icon-stroke) solid currentColor;
    border-bottom: var(--icon-stroke) solid currentColor;
}

.icon-user::before {
    width: 7px;
    height: 7px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 50%;
    left: 7px;
    top: 3px;
}
.icon-user::after {
    width: 14px;
    height: 8px;
    border: var(--icon-stroke) solid currentColor;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    left: 3.5px;
    bottom: 3px;
}

.icon-shop::before {
    left: 3px;
    top: 7px;
    width: 15px;
    height: 11px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 3px;
}
.icon-shop::after {
    left: 6px;
    top: 3px;
    width: 9px;
    height: 7px;
    border: var(--icon-stroke) solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.icon-nature::before {
    left: 4px;
    top: 3px;
    width: 13px;
    height: 15px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 13px 2px 13px 2px;
    transform: rotate(12deg);
}
.icon-nature::after {
    left: 10px;
    top: 7px;
    width: 2px;
    height: 12px;
    background: currentColor;
    transform: rotate(35deg);
    border-radius: 2px;
}

.icon-feature::before,
.icon-bulb::before {
    left: 8px;
    top: 2px;
    width: 7px;
    height: 12px;
    border-left: var(--icon-stroke) solid currentColor;
    border-bottom: var(--icon-stroke) solid currentColor;
    transform: skew(-20deg);
}
.icon-feature::after,
.icon-bulb::after {
    left: 6px;
    bottom: 3px;
    width: 8px;
    height: var(--icon-stroke);
    background: currentColor;
    transform: rotate(-28deg);
    border-radius: 2px;
}

.icon-chart::before {
    left: 3px;
    bottom: 3px;
    width: 15px;
    height: 15px;
    border-left: var(--icon-stroke) solid currentColor;
    border-bottom: var(--icon-stroke) solid currentColor;
}
.icon-chart::after {
    left: 6px;
    bottom: 6px;
    width: 11px;
    height: 9px;
    border-left: var(--icon-stroke) solid currentColor;
    border-bottom: var(--icon-stroke) solid currentColor;
    transform: skewY(-30deg);
}

.icon-gallery::before,
.icon-camera::before {
    inset: 3px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 4px;
}
.icon-gallery::after,
.icon-camera::after {
    left: 7px;
    top: 7px;
    width: 7px;
    height: 7px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 50%;
}

.icon-ai::before {
    left: 3px;
    top: 3px;
    width: 15px;
    height: 15px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 6px;
}
.icon-ai::after {
    left: 7px;
    top: 7px;
    width: 7px;
    height: 7px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 50%;
    box-shadow: -5px 0 0 -2px currentColor, 5px 0 0 -2px currentColor;
}

.icon-back::before {
    left: 5px;
    top: 5px;
    width: 11px;
    height: 11px;
    border-left: var(--icon-stroke) solid currentColor;
    border-bottom: var(--icon-stroke) solid currentColor;
    transform: rotate(45deg);
}
.icon-back::after {
    left: 6px;
    top: 10px;
    width: 13px;
    height: var(--icon-stroke);
    background: currentColor;
    border-radius: 2px;
}

.icon-location::before {
    left: 5px;
    top: 2px;
    width: 11px;
    height: 15px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 11px 11px 11px 2px;
    transform: rotate(-45deg);
}
.icon-location::after {
    left: 8px;
    top: 6px;
    width: 5px;
    height: 5px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 50%;
}

.icon-contact::before,
.icon-chat::before {
    left: 3px;
    top: 4px;
    width: 15px;
    height: 12px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 5px;
}
.icon-contact::after,
.icon-chat::after {
    left: 7px;
    bottom: 2px;
    width: 7px;
    height: 7px;
    border-left: var(--icon-stroke) solid currentColor;
    border-bottom: var(--icon-stroke) solid currentColor;
    transform: rotate(-25deg);
}

.icon-search {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-right: 0;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 50%;
}
.icon-search::before { content: none; }
.icon-search::after {
    width: 8px;
    height: var(--icon-stroke);
    right: -6px;
    bottom: 0;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}

.icon-delete::before {
    left: 5px;
    top: 7px;
    width: 11px;
    height: 11px;
    border: var(--icon-stroke) solid currentColor;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}
.icon-delete::after {
    left: 4px;
    top: 4px;
    width: 13px;
    height: var(--icon-stroke);
    background: currentColor;
    box-shadow: 4px -3px 0 -0.2px currentColor;
    border-radius: 2px;
}

.icon-lock::before {
    left: 4px;
    top: 9px;
    width: 13px;
    height: 9px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 3px;
}
.icon-lock::after {
    left: 7px;
    top: 3px;
    width: 7px;
    height: 8px;
    border: var(--icon-stroke) solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.icon-home::before {
    left: 4px;
    top: 8px;
    width: 13px;
    height: 10px;
    border: var(--icon-stroke) solid currentColor;
    border-top: 0;
    border-radius: 2px;
}
.icon-home::after {
    left: 4px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-left: var(--icon-stroke) solid currentColor;
    border-top: var(--icon-stroke) solid currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}

.icon-settings::before {
    inset: 4px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 50%;
}
.icon-settings::after {
    left: 9px;
    top: 1px;
    width: 3px;
    height: 19px;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}

.icon-crown::before {
    left: 3px;
    top: 7px;
    width: 15px;
    height: 9px;
    border: var(--icon-stroke) solid currentColor;
    border-top: 0;
    border-radius: 0 0 4px 4px;
}
.icon-crown::after {
    left: 4px;
    top: 3px;
    width: 13px;
    height: 8px;
    border-left: var(--icon-stroke) solid currentColor;
    border-top: var(--icon-stroke) solid currentColor;
    transform: skewX(-20deg);
}

.icon-check::before {
    left: 4px;
    top: 4px;
    width: 14px;
    height: 14px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 50%;
}
.icon-check::after {
    left: 7px;
    top: 9px;
    width: 8px;
    height: 5px;
    border-left: var(--icon-stroke) solid currentColor;
    border-bottom: var(--icon-stroke) solid currentColor;
    transform: rotate(-45deg);
}

.icon-moon::before {
    left: 5px;
    top: 3px;
    width: 13px;
    height: 15px;
    border: var(--icon-stroke) solid currentColor;
    border-left-color: transparent;
    border-radius: 50%;
}
.icon-moon::after { content: none; }

.icon-rocket::before {
    left: 7px;
    top: 2px;
    width: 9px;
    height: 15px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 9px 9px 4px 4px;
    transform: rotate(35deg);
}
.icon-rocket::after {
    left: 4px;
    bottom: 3px;
    width: 7px;
    height: 7px;
    border-left: var(--icon-stroke) solid currentColor;
    border-bottom: var(--icon-stroke) solid currentColor;
}

.icon-empty::before {
    inset: 3px;
    border: var(--icon-stroke) solid currentColor;
    border-radius: 50%;
}
.icon-empty::after {
    left: 5px;
    top: 10px;
    width: 11px;
    height: var(--icon-stroke);
    background: currentColor;
    transform: rotate(-25deg);
    border-radius: 2px;
}

button .ui-icon,
.suggest-pill .ui-icon,
.section-title .ui-icon,
h3 .ui-icon,
h4 .ui-icon,
h5 .ui-icon,
p .ui-icon,
.origin-badge .ui-icon,
.umkm-empty-state-dashboard .ui-icon {
    margin-right: 8px;
}

.nav-item .ui-icon {
    display: block;
    margin: 0 auto 3px auto;
    --icon-size: 23px;
    --icon-stroke: 1.7px;
    vertical-align: initial;
}

body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    background-color: var(--gray-bg); 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

/* --- Navbar & Hero --- */
.main-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    background: var(--white); 
    border-bottom: 1px solid #eee; 
    position: sticky; 
    top: 0; 
    z-index: 2000; 
}

.main-nav h1 { 
    color: var(--primary-blue); 
    margin: 0; 
    font-size: 1.4rem; 
}

.btn-login-trigger { 
    background: var(--primary-blue); 
    color: white; 
    padding: 8px 20px; 
    border: none; 
    border-radius: 20px; 
    font-weight: 600; 
    cursor: pointer; 
}

.landing-hero { 
    text-align: center; 
    padding: 40px 20px; 
    background: linear-gradient(to bottom, var(--soft-blue), var(--white)); 
}

.landing-hero h2 { 
    font-size: 1.8rem; 
    margin-bottom: 10px; 
    color: #111; 
}

.landing-hero p { 
    color: #666; 
    font-size: 0.95rem; 
    margin-bottom: 25px; 
}

/* --- Autentikasi / Form Login --- */
.auth-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 3000; 
}

.auth-card { 
    background: var(--white); 
    padding: 25px; 
    border-radius: 15px; 
    width: 90%; 
    max-width: 360px; 
    position: relative; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.auth-close { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: #999; 
}

.auth-card h3 { 
    margin-top: 0; 
    margin-bottom: 20px; 
    color: var(--primary-blue); 
    font-size: 1.3rem; 
}

.auth-card label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 600; 
    margin-bottom: 5px; 
    color: #555; 
}

.auth-input { 
    width: 100%; 
    padding: 10px; 
    margin-bottom: 15px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    font-size: 0.9rem; 
    box-sizing: border-box; 
}

.auth-toggle { 
    text-align: center; 
    font-size: 0.85rem; 
    color: var(--primary-blue); 
    cursor: pointer; 
    margin-top: 15px; 
}

/* --- UI Buttons & Cards --- */
.btn-blue { 
    width: 100%; 
    background: var(--primary-blue); 
    color: white; 
    padding: 12px; 
    border: none; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.btn-blue:hover { 
    background: #004085; 
}

.content-card { 
    background: var(--white); 
    padding: 15px; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
}

.content-card h5 { 
    margin-top: 0; 
    margin-bottom: 12px; 
    font-size: 1rem; 
    color: #333; 
}

.announcement-banner { 
    background: var(--soft-blue); 
    padding: 12px; 
    border-radius: 10px; 
    margin-bottom: 15px; 
    border-left: 4px solid var(--primary-blue); 
}

.announcement-banner p { 
    margin: 0; 
    font-size: 0.8rem; 
    color: #004085; 
    line-height: 1.4; 
}

.section-title { 
    font-size: 1.1rem; 
    margin: 15px 0 10px 0; 
    color: #333; 
    font-weight: 700; 
}

/* --- DIPERBAIKI: Mengatur grid agar kartu UMKM menurun ke bawah (1 kolom) --- */
.umkm-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 16px; 
    width: 100%;
}

/* --- DIPERBAIKI: Mengubah ukuran kartu menjadi lebih besar (Medium) --- */
.umkm-card { 
    background: var(--white); 
    border: 1px solid #ddd; 
    padding: 22px; 
    border-radius: 14px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

/* --- DIPERBAIKI: Mengatur teks di dalam kartu agar ukurannya proporsional (Medium) --- */
.umkm-card h3 {
    font-size: 1.3rem !important; 
    margin-top: 0;
    margin-bottom: 8px;
}

.umkm-card p {
    font-size: 0.95rem !important; 
    line-height: 1.5;
    color: #444;
}

/* --- DIPERBAIKI: Mengatur ukuran badge agar sedikit lebih besar --- */
.umkm-badge, .origin-badge { 
    font-size: 0.8rem !important; 
    padding: 5px 12px; 
    border-radius: 8px; 
}

.umkm-badge { 
    background: var(--soft-blue); 
    color: var(--primary-blue); 
    font-weight: 600; 
}

.origin-badge { 
    background: #e2e3e5; 
    color: #383d41; 
    font-weight: 600; 
    margin-left: 4px; 
}

/* --- Tata Letak Tombol Sosial Media dengan Gambar/Ikon --- */
.social-links { 
    display: flex; 
    gap: 8px; 
    margin-top: 12px; 
    flex-wrap: wrap; 
}

.btn-social { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; 
    height: 36px; 
    border-radius: 8px; 
    text-decoration: none; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-social img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Fitur Komunitas Chat & AI --- */
.chat-display, .ai-display { 
    height: clamp(420px, 58vh, 640px); 
    background: #f1f3f5; 
    border-radius: 12px; 
    padding: 18px; 
    overflow-y: auto; 
    border: 1px solid #e9ecef; 
    margin-bottom: 10px; 
}

.chat-msg { 
    margin-bottom: 10px; 
    padding: 11px 14px; 
    border-radius: 8px; 
    font-size: 0.95rem; 
    max-width: 85%; 
    line-height: 1.4; 
}

.chat-msg.system { 
    background: #e2e3e5; 
    color: #383d41; 
    margin: 0 auto 10px auto; 
    text-align: center; 
    font-size: 0.75rem; 
}

.chat-msg.user { 
    background: var(--white); 
    border: 1px solid #e9ecef; 
    margin-right: auto; 
}

.chat-msg.ai { 
    background: var(--soft-blue); 
    color: #004085; 
    margin-left: auto; 
    border: 1px solid #b8daff; 
}

.chat-input-row, .ai-input-row { 
    display: flex; 
    gap: 8px; 
}

.chat-input-row input, .ai-input-row input { 
    flex: 1; 
    padding: 13px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    font-size: 0.95rem; 
}

.category-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.category-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    font-size: 0.84rem;
    color: #333;
}

.category-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
}

.ai-upload-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.ai-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #b8daff;
    border-radius: 8px;
    background: var(--soft-blue);
    color: #004085;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.ai-upload-btn input {
    display: none;
}

.ai-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ai-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d9e2ec;
    font-size: 0.75rem;
    color: #444;
}

.ai-attachment-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-attachment-chip button {
    border: none;
    background: #eef2f7;
    color: #555;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.ai-attachment-note {
    margin-top: 6px;
    font-size: 0.74rem;
    color: #667085;
}

.ai-suggestions { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin-top: 10px; 
}

.suggest-pill { 
    background: var(--white); 
    border: 1px solid #ccc; 
    padding: 5px 10px; 
    border-radius: 15px; 
    font-size: 0.75rem; 
    cursor: pointer; 
    color: #555; 
}

.chart-container { 
    position: relative; 
    height: 180px; 
    width: 100%; 
    background: white; 
    padding: 10px; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    box-sizing: border-box; 
}

/* --- Navigasi Bawah --- */
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 65px; 
    background: var(--white); 
    border-top: 1px solid #eee; 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    z-index: 2500; 
}

.nav-item { 
    text-align: center; 
    font-size: 0.65rem; 
    color: #777; 
    cursor: pointer; 
    user-select: none; 
    flex: 1; 
}

.nav-item i { 
    display: block; 
    font-size: 1.25rem; 
    font-style: normal; 
    margin-bottom: 2px; 
}

.nav-item.active { 
    color: var(--primary-blue); 
    font-weight: 600; 
}

/* --- Mode Gelap (Dark Theme) --- */
body.dark-theme { 
    background-color: #121212; 
    color: #e0e0e0; 
}

body.dark-theme #main-dashboard, 
body.dark-theme .bottom-nav, 
body.dark-theme .content-card, 
body.dark-theme .auth-card { 
    background-color: #1e1e1e; 
    border-color: #333; 
    color: white; 
}

body.dark-theme .auth-input { 
    background: #2d2d2d; 
    color: white; 
    border-color: #444; 
}

body.dark-theme .umkm-card { 
    background: #252525; 
    border-color: #333; 
}

body.dark-theme .chat-display, 
body.dark-theme .ai-display { 
    background: #1a1a1a !important; 
    border-color: #333; 
}

body.dark-theme .chat-msg.ai { 
    background: #2d2d2d; 
    color: #80bdff; 
    border-color: #444; 
}

body.dark-theme .ai-suggestions, 
body.dark-theme .ai-input-row { 
    background: #1e1e1e; 
    border-color: #333; 
}

body.dark-theme #ai-input-field { 
    background: #2d2d2d; 
    border-color: #444; 
    color: white; 
}

/* --- Konten Tab & Animasi Slider --- */
.tab-content { 
    display: none; 
    animation: slideUp 0.4s ease-out; 
}

@keyframes slideUp { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.tab-content.active { 
    display: block; 
}

.image-slider { 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    border-radius: 10px; 
    gap: 8px; 
    scrollbar-width: thin; 
}

.image-slider::-webkit-scrollbar { 
    height: 4px; 
}

.image-slider::-webkit-scrollbar-thumb { 
    background: var(--primary-blue); 
    border-radius: 10px; 
}

.image-slider img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    flex-shrink: 0; 
    scroll-snap-align: center; 
    border-radius: 10px; 
}

/* --- Sticky Header Utama di Atas --- */
.app-header-main {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: var(--primary-blue) !important;
    color: white !important;
    padding: 18px 20px !important;
    border-radius: 0 0 20px 20px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dashboard-body-content {
    padding: 15px;
    overflow-y: auto;
}

/* Animasi Tombol Upgrade Premium */
@keyframes pulsePremium {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2); }
    50% { transform: scale(1.04); box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5); border-color: #ffaa00; }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2); }
}

/* Style Tombol Pilihan Menu Keuangan */
.btn-sub-keuangan {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-sub-keuangan.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-sub-keuangan:hover {
    background-color: #e7f1ff;
    color: var(--primary-blue);
}

/* --- UI Pencarian & Filter di Beranda Dasbor --- */
.search-filter-dashboard {
    display: flex;
    gap: 12px;
    margin: 15px 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.search-filter-dashboard .search-box-wrapper {
    position: relative;
    flex: 2;
}

.search-filter-dashboard .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.95rem;
}

#search-umkm-dashboard {
    width: 100%;
    padding: 11px 12px 11px 38px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    background-color: var(--white);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#search-umkm-dashboard:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.search-filter-dashboard .filter-select-wrapper {
    flex: 1;
    min-width: 130px;
}

.search-filter-dashboard .filter-check-wrapper {
    flex: 1.25;
    min-width: 180px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-check-wrapper label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    color: #444;
    font-size: 0.78rem;
    cursor: pointer;
}

.filter-check-wrapper input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-blue);
}

#filter-kategori-dashboard {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    background-color: var(--white);
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#filter-kategori-dashboard:focus {
    border-color: var(--primary-blue);
}

/* State Jika Hasil Pencarian Toko Kosong */
.umkm-empty-state-dashboard {
    grid-column: 1 / -1;
    text-align: center;
    padding: 35px 20px;
    color: #777;
    background: var(--white);
    border-radius: 12px;
    border: 1px dashed #ccc;
    font-size: 0.9rem;
}

/* Responsif untuk Smartphone layarnya kecil */
@media (max-width: 480px) {
    .search-filter-dashboard {
        flex-direction: column;
        gap: 10px;
    }
    .search-filter-dashboard .filter-select-wrapper {
        width: 100%;
    }
    .search-filter-dashboard .filter-check-wrapper {
        width: 100%;
        min-width: 0;
    }
}
.catalog-image {
    width: 100%;
    height: 160px;
    display: block;
    object-fit: cover;
    object-position: center;
}

#search-kearifan-dashboard {
    width: 100%;
    padding: 11px 12px 11px 38px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    background-color: var(--white);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#search-kearifan-dashboard:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

#filter-kategori-kearifan {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    background-color: var(--white);
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#filter-kategori-kearifan:focus {
    border-color: var(--primary-blue);
}

/* --- Premium flow yang lebih rapi dan minim emoji --- */
.premium-account-card {
    border: 1px solid #c9ddff;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 10px 24px rgba(0, 86, 179, 0.08);
}

.premium-card-head h4 {
    margin: 8px 0 6px 0;
    color: #0b2f63;
    font-size: 1.05rem;
}

.premium-card-head p,
.premium-admin-panel p {
    margin: 0 0 14px 0;
    color: #526070;
    font-size: 0.82rem;
    line-height: 1.55;
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #0b2f63;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.premium-status {
    padding: 12px;
    border-radius: 10px;
    display: grid;
    gap: 3px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.premium-status b {
    font-size: 0.92rem;
}

.premium-status-active {
    background: #e8f7ee;
    border: 1px solid #a8dfbb;
    color: #155724;
}

.premium-status-free {
    background: #f1f4f8;
    border: 1px solid #d8dee8;
    color: #3c4653;
}

.premium-wa-button {
    background: linear-gradient(135deg, #128c7e, #25d366) !important;
    border: none !important;
    margin-bottom: 12px;
}

.premium-code-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}

.premium-code-row .auth-input {
    margin-bottom: 0;
}

.premium-code-row .btn-blue {
    width: auto;
    padding-left: 18px;
    padding-right: 18px;
}

.premium-admin-panel {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    border: 1px dashed #8ab4f8;
    background: #ffffff;
}

.premium-admin-panel h5 {
    margin: 0 0 6px 0;
    color: #0b2f63;
}

.premium-modal-mark {
    width: 62px;
    height: 62px;
    margin: 8px auto 12px auto;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0b2f63, #00a8ff);
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 28px rgba(0, 86, 179, 0.22);
}

.premium-check {
    color: #128c7e;
    font-weight: 800;
}

@media (max-width: 480px) {
    .premium-code-row {
        grid-template-columns: 1fr;
    }

    .premium-code-row .btn-blue {
        width: 100%;
    }
}




/* --- Perbaikan Premium Pill & Menu Toko Saya --- */
.premium-upgrade-pill {
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fffaf0;
    padding: 8px 18px;
    min-height: 42px;
    border-radius: 999px;
    border: 1.5px solid #ffd43b;
    box-shadow: 0 6px 16px rgba(0,0,0,0.14);
    animation: pulsePremium 2s infinite;
    user-select: none;
}
.premium-upgrade-pill .ui-icon { --icon-size: 18px; --icon-stroke: 1.7px; color: #856404; margin: 0; }
.my-store-layout { display: grid; gap: 16px; padding: 0 5px 18px 5px; }
.my-store-profile-head { display: flex; align-items: center; gap: 14px; }
.my-store-profile-head img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; border: 1px solid #e5e7eb; }
.my-store-profile h3 { margin: 7px 0 3px 0; color: #111827; font-size: 1.15rem; }
.my-store-profile p, .my-store-desc { margin: 0; color: #586273; line-height: 1.5; font-size: 0.88rem; }
.my-store-desc { margin-top: 12px; }
.product-editor-card label { font-size: 0.78rem; font-weight: 700; color: #495057; margin-bottom: 6px; display: block; }
.product-editor-head, .section-row-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.product-editor-head h4, .section-row-title h3 { margin: 0; color: #212529; }
.mini-label { display: inline-block; color: var(--primary-blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 4px; }
.ghost-action { border: 1px solid #d7dde5; background: #ffffff; color: #495057; border-radius: 8px; padding: 8px 10px; font-weight: 700; cursor: pointer; }
.file-input-shell { border: 1px dashed #cfd6df; border-radius: 10px; background: #fbfcfe; padding: 12px; margin-bottom: 15px; }
.file-input-shell small { display: block; margin-top: 7px; color: #77808c; font-size: 0.75rem; }
.my-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.product-card { background: #ffffff; border: 1px solid #e9ecef; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.06); position: relative; }
.product-image { width: 100%; aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: #eef1f5; }
.product-info { padding: 13px; }
.product-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.product-info h4 { margin: 0 0 5px 0; color: var(--primary-blue); font-size: 1rem; }
.product-price { color: #155724; font-weight: 800; font-size: 0.95rem; margin-bottom: 6px; }
.product-desc { margin: 0; color: #555; font-size: 0.82rem; line-height: 1.45; white-space: pre-wrap; }
.product-rating { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: #856404; font-size: 0.78rem; font-weight: 700; }
.rating-dots { display: inline-flex; gap: 2px; }
.rating-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #d4a017; background: #ffd43b; }
.rating-dot.empty { background: transparent; }

.detail-rating-panel {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #f8fbff;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #344054;
}

.rating-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.rating-star {
    width: 34px;
    height: 34px;
    border: 1px solid #d4a017;
    border-radius: 8px;
    background: #fff;
    color: #d4a017;
    font-size: 1.05rem;
    cursor: pointer;
}

.rating-star.active,
.rating-star:hover {
    background: #ffd43b;
    color: #4f3b00;
}

.rating-star:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.rating-locked,
.detail-rating-hint {
    font-size: 0.78rem;
    color: #667085;
}

.detail-product-rating {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.finance-summary-grid div {
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.finance-summary-grid span {
    display: block;
    font-size: 0.76rem;
    color: #667085;
    margin-bottom: 5px;
}

.finance-summary-grid b {
    color: #0b2f63;
    font-size: 1rem;
}

.account-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.account-toolbar h4 {
    margin: 4px 0 0 0;
    color: #0b2f63;
}

.account-more-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #d9e2ec;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.account-security-menu {
    border-top: 3px solid #dc3545;
}

@media (max-width: 560px) {
    .chat-display,
    .ai-display {
        height: 52vh;
    }

    .finance-summary-grid {
        grid-template-columns: 1fr;
    }
}
.product-menu-wrap { position: relative; }
.product-menu-btn { width: 32px; height: 32px; border: 1px solid #e5e7eb; background: #ffffff; border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: #495057; }
.product-menu-btn span, .product-menu-btn span::before, .product-menu-btn span::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: block; content: ''; position: relative; }
.product-menu-btn span::before { position: absolute; top: -7px; left: 0; }
.product-menu-btn span::after { position: absolute; top: 7px; left: 0; }
.product-menu { display: none; position: absolute; right: 0; top: 38px; min-width: 130px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 12px 24px rgba(0,0,0,0.14); z-index: 20; overflow: hidden; }
.product-menu.show { display: block; }
.product-menu button { width: 100%; border: 0; background: #ffffff; padding: 10px 12px; text-align: left; cursor: pointer; color: #343a40; font-weight: 700; }
.product-menu button:hover { background: #f1f4f8; }
.product-menu button.danger { color: #dc3545; }
.public-product-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 560px) {
    .product-editor-head, .section-row-title { align-items: flex-start; flex-direction: column; }
    .my-products-grid { grid-template-columns: 1fr; }
}
