:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8e;
    --primary-dark: #142842;
    --secondary: #c2410c;
    --secondary-light: #ea580c;
    --accent: #f97316;
    --success: #10b981;
    --danger: #ef4444;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-dark: #111827;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --nav-height: 64px;
    --bottom-nav-height: 68px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== BOTTOM NAVIGATION (Mobile App Style) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1030;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    min-width: 56px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.bottom-nav .nav-item i {
    font-size: 22px;
    transition: var(--transition);
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
    color: var(--primary);
}

.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.bottom-nav .nav-item-center {
    position: relative;
    top: -16px;
}

.bottom-nav .nav-item-center .center-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 14px rgba(194,65,12,0.4);
    transition: var(--transition);
    border: 4px solid var(--bg-card);
}

.bottom-nav .nav-item-center .center-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(194,65,12,0.5);
}

.bottom-nav .nav-item-center span {
    position: relative;
    top: -2px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-bottom: calc(var(--bottom-nav-height) + 50px + env(safe-area-inset-bottom, 0));
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0));
}

/* ===== TOP NAVBAR ===== */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0));
    padding-top: env(safe-area-inset-top, 0);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.top-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.top-navbar .container {
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.navbar-brand img {
    width: 32px;
    height: 32px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    position: relative;
}

.btn-icon:hover {
    background: var(--bg-body);
}

.btn-icon .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

/* ===== CHAT BADGE (Bottom Nav) ===== */
.chat-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    background: var(--danger, #ef4444);
    color: white;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-body, #fff);
    line-height: 1;
}
.chat-badge:empty {
    min-width: 8px;
    height: 8px;
    padding: 0;
    top: 0;
    right: -2px;
}

/* ===== SEARCH BOX ===== */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    padding: 4px 4px 4px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}

.search-box i {
    color: var(--text-muted);
    font-size: 18px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 14px;
    background: transparent;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box .btn-search {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.search-box .btn-search:hover {
    background: var(--primary-dark);
}

/* ===== CATEGORY PILLS ===== */
.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30,58,95,0.06);
}

.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-pill i {
    font-size: 16px;
}

/* ===== FILTER DROPDOWN ===== */
.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 50;
    padding: 16px;
    margin-top: 4px;
}
.filter-section {
    margin-bottom: 16px;
}
.filter-section:last-of-type {
    margin-bottom: 12px;
}
.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}
.filter-option:hover {
    background: var(--bg-body);
}
.filter-option.active {
    background: rgba(30,58,95,0.08);
    color: var(--primary);
    font-weight: 600;
}
.filter-option i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}
.filter-cat {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-cat:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-cat.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.filter-radius {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-radius:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-radius.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.filter-apply {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.filter-apply:hover {
    opacity: 0.9;
}

/* ===== DETAIL PAGE PREMIUM ===== */
.detail-tabs {
    padding-bottom: 4px;
}
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.detail-tab:hover, .detail-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.detail-section {
    display: none;
}
.detail-section.active {
    display: block;
}
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.detail-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(30,58,95,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}
.detail-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.detail-card-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Specs */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.spec-item {
    background: var(--bg-body);
    border-radius: 10px;
    padding: 12px;
}
.spec-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Rules */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.rule-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rule-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-top: 3px;
}

/* Location */
.location-box {
    background: var(--bg-body);
    border-radius: 12px;
    padding: 16px;
}
.location-address {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.location-distance {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.location-distance i {
    color: var(--primary);
}
.location-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.location-map-btn:hover {
    opacity: 0.9;
    color: white;
}

/* Reviews */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-body);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.rating-big {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.review-content {
    flex: 1;
    min-width: 0;
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.review-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.review-date {
    font-size: 11px;
    color: var(--text-muted);
}
.review-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ===== HERO BANNER ===== */
.hero-slider {
    border-radius: var(--radius-lg);
    height: 180px;
    overflow: hidden;
}
.hero-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}
.hero-slide {
    flex-shrink: 0;
    height: 100%;
}
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-dot.active {
    width: 28px !important;
    background: white !important;
}
.hero-slide:only-child {
    width: 100%;
}
/* Mobile: 1 gambar per slide */
@media (max-width: 767px) {
    .hero-slide {
        width: 100%;
    }
    .hero-slide-img {
        border-radius: 0;
    }
}
/* Tablet/Desktop: 2 gambar per slide */
@media (min-width: 768px) {
    .hero-slide {
        width: 50%;
    }
    .hero-slide-img {
        border-radius: 8px;
        margin: 0 4px;
        width: calc(100% - 8px);
    }
}

.hero-banner h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-banner p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.hero-banner .hero-decoration {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.hero-banner .hero-decoration-2 {
    position: absolute;
    right: 40px;
    bottom: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

/* ===== ITEM CARD ===== */
.item-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

/* ===== FEATURED CARD ===== */
.featured-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.featured-scroll::-webkit-scrollbar {
    display: none;
}

.featured-card {
    flex: 0 0 280px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

/* ===== WISHLIST BUTTON ===== */
.btn-wishlist {
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    color: var(--danger);
    background: white;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    cursor: pointer;
    z-index: 1020;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== TOAST NOTIFICATION (Premium) ===== */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 10px);
    right: 14px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(370px, calc(100vw - 28px));
    pointer-events: none;
}

.custom-toast {
    --toast-accent: var(--success);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow:
        0 22px 48px -16px rgba(15, 23, 42, 0.32),
        0 6px 16px -8px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transform-origin: top right;
    animation: toastIn 0.5s cubic-bezier(0.22, 1.35, 0.36, 1);
    transition: box-shadow 0.25s ease;
}

.custom-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--toast-accent), color-mix(in srgb, var(--toast-accent) 45%, transparent));
}

.custom-toast:hover {
    box-shadow:
        0 26px 54px -16px rgba(15, 23, 42, 0.38),
        0 8px 20px -8px rgba(15, 23, 42, 0.18);
}

.toast-success { --toast-accent: var(--success); }
.toast-error   { --toast-accent: var(--danger); }
.toast-info    { --toast-accent: #0ea5e9; }
.toast-warning { --toast-accent: #f59e0b; }

.custom-toast .toast-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    background: linear-gradient(135deg, var(--toast-accent), color-mix(in srgb, var(--toast-accent) 62%, #0f172a));
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--toast-accent) 80%, transparent);
}

.custom-toast .toast-msg {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.45;
    color: var(--text-primary);
    letter-spacing: 0.1px;
}

.custom-toast .toast-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--toast-accent), color-mix(in srgb, var(--toast-accent) 35%, transparent));
    animation-name: toastProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes toastIn {
    from {
        transform: translateX(calc(100% + 30px)) scale(0.94);
        opacity: 0;
        filter: blur(6px);
    }
    60% {
        filter: blur(0);
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

.custom-toast.toast-out {
    animation: toastOut 0.32s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastOut {
    to {
        transform: translateX(calc(100% + 30px)) scale(0.95);
        opacity: 0;
    }
}

/* ===== PREMIUM CONFIRM MODAL ===== */
.confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: confirmFadeIn 0.25s ease both;
}

.confirm-backdrop.confirm-out {
    animation: confirmFadeOut 0.2s ease both;
    pointer-events: none;
}

.confirm-modal {
    width: min(372px, 100%);
    padding: 26px 22px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow:
        0 32px 64px -20px rgba(15, 23, 42, 0.45),
        0 8px 24px -12px rgba(15, 23, 42, 0.2);
    animation: confirmPop 0.42s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.confirm-backdrop.confirm-out .confirm-modal {
    animation: confirmPopOut 0.2s ease both;
}

.confirm-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 17px;
    box-shadow: 0 10px 22px -8px rgba(30, 58, 95, 0.55);
}

.confirm-title {
    margin: 0 0 6px;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.confirm-msg {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-btn {
    flex: 1;
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-cancel {
    background: var(--bg-body);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.confirm-cancel:hover {
    background: #e7edf4;
    transform: translateY(-1px);
}

.confirm-ok {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-light), var(--accent));
    box-shadow: 0 10px 22px -10px rgba(249, 115, 23, 0.7);
}

.confirm-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px rgba(249, 115, 23, 0.85);
}

.confirm-btn:active {
    transform: translateY(0) scale(0.98);
}

.confirm-btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes confirmFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes confirmPop {
    from { opacity: 0; transform: translateY(18px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confirmPopOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.95); }
}

/* ===== BOTTOM NAV: TABLET+ ===== */
@media (min-width: 768px) {
    .bottom-nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border: 1px solid var(--border-color);
        border-bottom: none;
    }

    .featured-card {
        flex: 0 0 320px;
    }
}

/* ===== CONTAINER: DESKTOP 75% ===== */
@media (min-width: 992px) {
    .container {
        max-width: 75%;
        margin-top: 10px;
    }
}

/* ===== MOBILE RESPONSIVE: BADGE & CARD ===== */
@media (max-width: 767px) {
    .badge-status {
        font-size: 10px !important;
        padding: 2px 8px !important;
        font-weight: 500 !important;
    }
    .item-card .card-body {
        padding: 10px !important;
    }
    .item-card .card-title {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }
    .item-card .card-location {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    .item-card .card-price {
        font-size: 14px !important;
    }
    .item-card .card-rating {
        font-size: 11px !important;
    }
    .item-card .card-img-top {
        height: 140px !important;
    }
    .item-card .btn-wishlist {
        width: 28px !important;
        height: 28px !important;
    }
    .item-card .btn-wishlist i {
        font-size: 12px !important;
    }
    .featured-card .card-img-top {
        height: 130px !important;
    }
    .featured-card .card-body {
        padding: 10px !important;
    }
    .featured-card .card-title {
        font-size: 13px !important;
    }
    .featured-card .card-location {
        font-size: 11px !important;
    }
    .featured-card .card-price {
        font-size: 14px !important;
    }
    .hero-banner {
        padding: 20px 16px !important;
    }
    .hero-banner h2 {
        font-size: 18px !important;
    }
    .hero-banner p {
        font-size: 12px !important;
    }
}

@media (min-width: 768px) {
    .badge-status {
        font-size: 11px;
        padding: 3px 10px;
    }
    .item-card .card-body, .featured-card .card-body {
        padding: 14px;
    }
    .item-card .card-title {
        font-size: 14px;
    }
    .item-card .card-location {
        font-size: 12px;
    }
    .item-card .card-price {
        font-size: 15px;
    }
    .item-card .card-rating {
        font-size: 12px;
    }
}

/* ===== CARD PRICE FOOTER ===== */
.row.g-3 {
    align-items: stretch;
}
.item-wrapper {
    display: flex;
}
.item-card, .item-grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.item-card .card-body, .item-grid-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.card-price-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}
.card-price-footer .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}
.card-price-footer .unit {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}
@media (max-width: 767px) {
    .card-price-footer {
        padding: 8px 12px;
    }
    .card-price-footer .price {
        font-size: 14px;
    }
    .card-price-footer .unit {
        font-size: 10px;
    }
}
@media (min-width: 768px) {
    .card-price-footer .price {
        font-size: 16px;
    }
    .card-price-footer .unit {
        font-size: 12px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
[data-bs-theme="dark"] {
    --bg-body: #111827;
    --bg-card: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #6b7280;
    --border-color: #374151;
}

[data-bs-theme="dark"] .top-navbar,
[data-bs-theme="dark"] .bottom-nav {
    background: rgba(17,24,39,0.95);
    border-color: #374151;
}

[data-bs-theme="dark"] .search-box {
    background: #1f2937;
}

[data-bs-theme="dark"] .category-pill {
    background: #1f2937;
    border-color: #374151;
}

/* ===== ADDRESS MODAL (OSM) ===== */
.addr-pin-hint { font-size: 12px; color: var(--text-muted); }
.addr-value {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    min-height: 44px;
    color: var(--text-primary);
    word-break: break-word;
}
.addr-value:empty::before { content: 'Geser pin untuk mengambil alamat usaha'; color: var(--text-muted); }
.addr-loc-btn {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #1e3a5f;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer; font-size: 16px;
}
.addr-loc-btn:hover { background: #f3f4f6; }
#addrStatus.ok { color: #00795f; }
#addrStatus.err { color: #c5221f; }
#addrStatus.busy { color: var(--text-muted); }

/* ===== MODAL PERKENALAN MENU SEWA ===== */
.sewa-intro-ico {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    color: #fff;
    font-size: 24px;
}

/* ===== RADIUS: BARANG DI LUAR JANGKAUAN (tetap ditampilkan, badge saja) ===== */
.item-wrapper { position: relative; }
.item-wrapper.out-of-radius::after {
    content: "Di luar " var(--radius-km, 15) " km";
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #555);
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    pointer-events: none;
}

/* ===== HINT JARAK SEBAGAI AKSI (buka modal alamat) ===== */
.distance-text[data-hint-action] {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* ===== MODAL ALAMAT WAJIB (pengguna login belum atur alamat) ===== */
#addressModal.addr-mandatory .btn-close,
#addressModal.addr-mandatory .addr-optional { display: none; }
