/* ============================================================
   STYLE.CSS - IklanBaris
   Warna utama: #1D4ED8, Aksen: #F59E0B
   Font: Inter
   Mobile-first responsive
   ============================================================ */

/* --- Base --- */
:root {
    --primary: #1D4ED8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #F59E0B;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: var(--gray-700);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* --- Navbar --- */
.navbar {
    font-weight: 500;
    font-size: 0.9rem;
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.navbar .nav-link:hover {
    color: var(--accent-light) !important;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.hero-section p {
    font-weight: 300;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
}

/* --- Search Bar --- */
.search-bar {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.search-bar .form-control,
.search-bar .form-select {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar .form-control:focus,
.search-bar .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* --- Iklan Card --- */
.iklan-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.iklan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.iklan-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-100);
}

.iklan-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.iklan-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.iklan-card .badge-kategori {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
}

.iklan-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.iklan-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iklan-card .card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.iklan-card .card-location {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.iklan-card .card-meta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.78rem;
    color: var(--gray-400);
}

/* --- Filter Section --- */
.filter-section {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-section .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* --- Pagination --- */
.pagination .page-link {
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    margin: 0 2px;
    border-radius: 0.5rem !important;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- Status Badges --- */
.badge-aktif   { background-color: #dcfce7; color: #16a34a; }
.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-nonaktif{ background-color: #fee2e2; color: #dc2626; }

/* --- Star Rating --- */
.star-rating {
    display: inline-flex;
    direction: rtl;
    unicode-bidi: bidi-override;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.15s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--accent);
}

.star-display {
    color: var(--accent);
    font-size: 1rem;
}

.star-display .bi-star-fill {
    color: var(--accent);
}

.star-display .bi-star {
    color: var(--gray-300);
}

/* --- Chat Box --- */
.chat-box {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-50);
}

.chat-message {
    margin-bottom: 0.75rem;
    max-width: 75%;
    clear: both;
}

.chat-message.sent {
    float: right;
}

.chat-message.received {
    float: left;
}

.chat-message .bubble {
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.sent .bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.received .bubble {
    background: white;
    color: var(--dark);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 0.25rem;
}

.chat-message .time {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 0.2rem;
}

.chat-input-area {
    border-top: 1px solid var(--gray-200);
    padding: 0.75rem;
    background: white;
}

/* --- Share Buttons --- */
.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.85;
    color: white;
}

.share-tg  { background-color: #0088cc; }
.share-fb  { background-color: #1877F2; }
.share-tw  { background-color: #000000; }

/* --- Admin Stats Cards --- */
.stat-card {
    border: none;
    border-radius: var(--radius);
    padding: 1.5rem;
    color: white;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.85;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Form Styling --- */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #000;
}

/* --- Review Card --- */
.review-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent);
}

/* --- Dashboard Sidebar (mobile) --- */
@media (max-width: 767.98px) {
    .dashboard-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .dashboard-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        flex-shrink: 0;
    }
}

/* --- Table Responsive --- */
.table-responsive {
    border-radius: var(--radius);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* --- Custom Scrollbar --- */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* --- Alert Enhancement --- */
.alert {
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

/* --- Photo Upload Preview --- */
.upload-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px dashed var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: var(--gray-50);
}

/* --- Inbox Item --- */
.inbox-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
    cursor: pointer;
    background: white;
}

.inbox-item:hover {
    background: var(--gray-50);
}

.inbox-item.unread {
    border-left: 3px solid var(--primary);
    background: #eff6ff;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 0.95rem;
}

/* --- Admin Layout --- */
.admin-sidebar {
    background: var(--dark);
    color: white;
    min-height: calc(100vh - 64px);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link.active {
    background: var(--primary);
}

@media (min-width: 768px) {
    .admin-sidebar {
        position: sticky;
        top: 64px;
        height: calc(100vh - 64px);
    }
}
/* ============================================================
   v7 ADDITIONS - Modern Toast + Mobile Polish
   ============================================================ */

/* --- Custom Toast (menggantikan Bootstrap toast) --- */
.ib-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1e293b;
    color: #fff;
    border-radius: 2rem;
    padding: 0.65rem 1.2rem 0.65rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;
    max-width: calc(100vw - 2rem);
    white-space: nowrap;
}
.ib-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.ib-toast-success { background: #15803d; }
.ib-toast-danger  { background: #dc2626; }
.ib-toast-warning { background: #b45309; }
.ib-toast button  {
    background: none; border: none; color: rgba(255,255,255,0.7);
    font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0;
}
.ib-toast button:hover { color: #fff; }

/* --- Bottom safe area for mobile (iOS) --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .chat-input-area {
        padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
    }
}

/* --- Navbar mobile tweak --- */
@media (max-width: 767.98px) {
    .navbar-brand { font-size: 1.1rem; }
    .hero-section { padding: 2rem 0 1.5rem; }
    .hero-section h1 { font-size: 1.6rem; }
}

/* --- Iklan card touch feedback --- */
@media (hover: none) {
    .iklan-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow);
    }
}

/* --- Inbox item touch feedback --- */
@media (hover: none) {
    .inbox-item:active { background: var(--gray-100); }
}

/* ============================================================
   v8 ADDITIONS - Bottom Nav + Dashboard Mobile Cards
   ============================================================ */

/* --- Bottom Navigation Bar (mobile only) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: stretch;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    /* iOS safe area */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.6rem 0.25rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.15s;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    line-height: 1;
}

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

.bottom-nav-item:active {
    color: var(--primary-dark);
    background: var(--gray-50);
}

/* CTA "Pasang" button — lebih menonjol */
.bottom-nav-cta {
    color: var(--primary);
}

.bottom-nav-cta i {
    font-size: 1.6rem;
    margin-top: -0.15rem;
}

.bottom-nav-cta.active i,
.bottom-nav-cta i {
    color: var(--primary);
}

/* Badge unread di Dashboard icon */
.bottom-nav-badge {
    position: absolute;
    top: 0.4rem;
    left: 50%;
    margin-left: 0.5rem;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 2rem;
    padding: 0.1rem 0.35rem;
    line-height: 1.3;
    min-width: 1rem;
    text-align: center;
}

/* Tambah padding bawah body di mobile agar konten tidak tertutup bottom nav */
@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
    /* chat: tidak ada bottom nav, tidak perlu padding ekstra */
    body.chat-page {
        padding-bottom: 0;
    }
}

/* --- Dashboard Mobile Card List --- */
.iklan-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.iklan-manage-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.iklan-manage-thumb {
    width: 72px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
}

.iklan-manage-actions .btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
}

/* ==========================================
   CONFIRM MODAL - Upgraded Responsive Style
   ========================================== */
#ibConfirmModal .modal-dialog {
    margin: 1rem auto;
}

#ibConfirmModal .modal-content {
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden;
}

#ibConfirmModal .modal-body {
    padding: 1.75rem 1.5rem 1rem;
}

#ibConfirmModal .modal-footer {
    padding: 0.75rem 1.5rem 1.5rem;
    gap: 0.5rem;
}

#ibConfirmModal .modal-footer .btn {
    border-radius: 10px !important;
    font-size: 0.92rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    flex: 1;
}

#ibConfirmIconWrap {
    transition: background 0.2s ease;
}

#ibConfirmModal h5 {
    font-size: clamp(1rem, 4vw, 1.2rem);
}

#ibConfirmModal #ibConfirmMessage {
    font-size: clamp(0.82rem, 3.5vw, 0.92rem);
    line-height: 1.55;
}

/* Animasi scale masuk */
#ibConfirmModal.fade .modal-dialog {
    transform: scale(0.92) translateY(10px);
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), opacity 0.18s ease;
}
#ibConfirmModal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Backdrop sedikit lebih gelap */
#ibConfirmModal + .modal-backdrop {
    opacity: 0.55 !important;
}

@media (max-width: 400px) {
    #ibConfirmModal .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100vw - 1.5rem) !important;
    }
    #ibConfirmModal .modal-footer {
        flex-direction: column;
    }
    #ibConfirmModal .modal-footer .btn {
        width: 100%;
    }
}


/* ============================================================
   DETAIL PAGE — Mobile-first, clean
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────── */
.dp { padding: 1rem 0 3rem; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.dp-breadcrumb {
    padding: .5rem 0 1rem;
    font-size: .8rem;
}
.dp-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.dp-breadcrumb a { color: #64748b; text-decoration: none; }
.dp-breadcrumb a:hover { color: #1d4ed8; }
.dp-bc-title {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    color: #1e293b;
}

/* ── Layout grid ─────────────────────────────────────────── */
.dp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 992px) {
    .dp-layout {
        grid-template-columns: 1fr 420px;
        gap: 2rem;
        align-items: start;
    }
}

/* ── Foto ────────────────────────────────────────────────── */
.dp-photo-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 4 / 3;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
}
.dp-photo {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.dp-photo-empty {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #cbd5e1; gap: .5rem;
}
.dp-photo-empty i { font-size: 3.5rem; }
.dp-photo-empty span { font-size: .82rem; }
.dp-status-badge { position: absolute; top: 12px; left: 12px; }

/* ── Info card ───────────────────────────────────────────── */
.dp-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
@media (min-width: 992px) {
    .dp-info-card {
        position: sticky;
        top: 74px;
        padding: 1.5rem;
    }
}

/* Kategori pill */
.dp-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 99px;
    padding: .2rem .7rem;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    margin-bottom: .6rem;
}
.dp-cat-pill:hover { background: #dbeafe; color: #1e40af; }

/* Judul */
.dp-title {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 .6rem;
}

/* Rating inline */
.dp-rating-inline {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .75rem;
}
.dp-rating-num {
    font-weight: 700;
    font-size: .88rem;
    color: #0f172a;
}
.dp-rating-ct {
    font-size: .78rem;
    color: #94a3b8;
}

/* Stars */
.stars { display: inline-flex; gap: 1px; }
.stars i { color: #e2e8f0; font-size: .85rem; }
.stars .bi-star-fill, .stars .bi-star-half { color: #f59e0b; }
.stars-lg i { font-size: 1.1rem; }
.stars-sm i { font-size: .72rem; }

/* Harga */
.dp-price {
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: -.5px;
    margin-bottom: 1rem;
    line-height: 1;
}

/* Meta rows */
.dp-meta {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: .875rem 1rem;
    margin-bottom: 1rem;
}
.dp-meta-row {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.dp-meta-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem;
    flex-shrink: 0;
}
.dp-meta-lbl {
    font-size: .68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
    margin-bottom: 1px;
}
.dp-meta-val {
    font-size: .85rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.dp-divider {
    height: 1px;
    background: #f1f5f9;
    margin: .75rem 0;
}

/* CTA */
.dp-cta { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }

.dp-btn-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 14px rgba(29,78,216,.3);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}
.dp-btn-chat:hover, .dp-btn-chat:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(29,78,216,.4);
}
.dp-btn-chat:active { transform: translateY(0); }

.dp-btn-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    padding: .7rem 1rem;
    border-radius: 12px;
    background: transparent;
    color: #1d4ed8;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    border: 1.5px solid #bfdbfe;
    transition: background .15s;
}
.dp-btn-edit:hover { background: #eff6ff; color: #1d4ed8; }

.dp-own-badge {
    text-align: center;
    font-size: .82rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 10px;
    padding: .5rem;
}

/* Share */
.dp-share {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.dp-share-lbl {
    font-size: .72rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}
.dp-share-row { display: flex; gap: .35rem; }
.dp-share-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    color: #fff;
    font-size: .9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.dp-share-btn:hover { opacity: .85; transform: scale(1.08); color: #fff; }
.dp-share-tg   { background: #0088cc; }
.dp-share-fb   { background: #1877f2; }
.dp-share-tw   { background: #000; }
.dp-share-copy { background: #94a3b8; }

/* ── Section (deskripsi + ulasan) ───────────────────────── */
.dp-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-top: 1rem;
}
@media (min-width: 992px) {
    .dp-section { padding: 1.5rem; }
}

.dp-section-heading {
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 1.5px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Desktop: desc di bawah foto (kiri), mobile: setelah info card */
.dp-desc-desktop { display: none; }
.dp-desc-mobile  { display: block; }
@media (min-width: 992px) {
    .dp-desc-desktop { display: block; }
    .dp-desc-mobile  { display: none; }
}

/* Deskripsi body */
.dp-desc-body {
    font-size: .92rem;
    line-height: 1.9;
    color: #374151;
    word-break: break-word;
}
.dp-desc-body br { display: block; content: ''; margin: .15em 0; }

/* ── Ulasan ─────────────────────────────────────────────── */
.dp-reviews { margin-top: 1rem; }

.dp-review-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    padding: .05rem .5rem;
    margin-left: .25rem;
}

/* Rating summary box */
.dp-rating-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef9ee 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.dp-rating-score {
    font-size: 2.75rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
    min-width: 60px;
    text-align: center;
}
.dp-rating-label {
    font-size: .78rem;
    color: #92400e;
    margin-top: .25rem;
}

/* Form tulis ulasan */
.dp-write-review {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.dp-write-title {
    font-size: .9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 .875rem;
}

/* Star picker (input CSS trick) */
.dp-star-picker {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    width: fit-content;
    margin-bottom: .3rem;
}
.dp-star-picker input { display: none; }
.dp-star-picker label {
    font-size: 1.6rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color .1s, transform .1s;
    line-height: 1;
}
.dp-star-picker label:hover,
.dp-star-picker label:hover ~ label,
.dp-star-picker input:checked ~ label {
    color: #f59e0b;
}
.dp-star-picker label:hover { transform: scale(1.15); }

.dp-star-hint {
    font-size: .78rem;
    color: #94a3b8;
    margin: .15rem 0 0;
}
.dp-star-hint strong { color: #f59e0b; }

.dp-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .55rem 1.25rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.dp-btn-submit:hover { background: #1e40af; transform: translateY(-1px); }
.dp-btn-submit:active { transform: none; }

/* Login prompt */
.dp-login-prompt {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: .7rem 1rem;
    font-size: .85rem;
    color: #0369a1;
    margin-bottom: 1.25rem;
}
.dp-login-prompt a { color: #0369a1; font-weight: 600; }

/* Empty reviews */
.dp-empty-reviews {
    text-align: center;
    padding: 2rem 0 1rem;
    color: #cbd5e1;
}
.dp-empty-reviews i { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.dp-empty-reviews p { font-size: .85rem; color: #94a3b8; margin: 0; }

/* Review list */
.dp-review-list { display: flex; flex-direction: column; gap: .75rem; }

.dp-review-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: box-shadow .15s;
}
.dp-review-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }

.dp-review-top {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: .6rem;
}
.dp-review-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dp-review-author { flex: 1; line-height: 1.4; }
.dp-review-name {
    font-weight: 600;
    font-size: .88rem;
    color: #1e293b;
    margin-bottom: 1px;
}
.dp-review-time {
    font-size: .75rem;
    color: #94a3b8;
    white-space: nowrap;
    margin-top: 2px;
}
.dp-review-text {
    font-size: .87rem;
    color: #374151;
    line-height: 1.65;
    margin: 0;
    word-break: break-word;
}

/* ── Iklan terkait ───────────────────────────────────────── */
.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 999px;
    line-height: 1.6;
}
.seller-badge-new      { background: #f1f5f9; color: #64748b; }
.seller-badge-verified { background: #eff6ff; color: #1d4ed8; }
.seller-badge-good     { background: #ecfdf5; color: #059669; }
.seller-badge-top      { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #92400e; }

.dp-report-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
}
.dp-report-footer-text {
    font-size: .8125rem;
    color: #94a3b8;
}
.dp-report-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: .8125rem;
    font-weight: 600;
    padding: .4rem 1rem;
    border-radius: 999px;
    transition: all .15s ease;
}
.dp-report-footer-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.dp-related { margin-top: 2rem; }
.dp-related-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ── Mobile bottom padding (bottom-nav) ─────────────────── */
@media (max-width: 767.98px) {
    .dp { padding-bottom: 5rem; }
}

/* ============================================================
   RFQ — "MINTA PENAWARAN" (Request-for-Quote Jasa)
   Prefix: .rfq-
   ============================================================ */

/* --- Hero band --- */
.rfq-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.rfq-hero::after {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 260px; height: 260px;
    background: rgba(245, 158, 11, .14);
    border-radius: 50%;
}
.rfq-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255,255,255,.15);
    padding: .3rem .7rem;
    border-radius: 999px;
    margin-bottom: .7rem;
}
.rfq-hero h1 {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -.02em;
    margin-bottom: .4rem;
    position: relative;
}
.rfq-hero p {
    opacity: .92;
    font-size: .92rem;
    max-width: 46rem;
    margin-bottom: 0;
    position: relative;
}
@media (min-width: 768px) {
    .rfq-hero h1 { font-size: 1.9rem; }
}

/* --- 3-step "cara kerja" --- */
.rfq-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 1.25rem;
    position: relative;
}
.rfq-step {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: .65rem;
    padding: .75rem .85rem;
}
.rfq-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #78350f;
    font-weight: 800;
    font-size: .72rem;
    margin-bottom: .4rem;
}
.rfq-step-title { font-weight: 700; font-size: .8rem; margin-bottom: .1rem; }
.rfq-step-desc { font-size: .74rem; opacity: .85; line-height: 1.4; }
@media (max-width: 575.98px) {
    .rfq-steps { grid-template-columns: 1fr; }
}

/* --- Stat strip --- */
.rfq-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .6rem;
    margin-bottom: 1.5rem;
}
.rfq-stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: .65rem;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.rfq-stat-icon {
    width: 38px; height: 38px;
    border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.rfq-stat-value { font-weight: 800; font-size: 1.05rem; color: var(--dark); line-height: 1.2; }
.rfq-stat-label { font-size: .7rem; color: var(--gray-500); font-weight: 600; }

/* --- Form polish --- */
.rfq-form-section { margin-bottom: 1.5rem; }
.rfq-form-section:last-child { margin-bottom: 0; }
.rfq-form-section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-500);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.rfq-counter {
    font-size: .72rem;
    color: var(--gray-400);
    text-align: right;
    margin-top: .25rem;
}
.rfq-counter.is-ok { color: var(--success); }
.rfq-budget-group .input-group-text {
    background: var(--gray-50);
    border-color: var(--gray-200);
    font-weight: 600;
    color: var(--gray-600);
}
.rfq-tips-card {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #dbeafe;
    border-radius: .75rem;
    padding: 1rem 1.1rem;
}
.rfq-tips-card h3 {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: .5rem;
    display: flex; align-items: center; gap: .4rem;
}
.rfq-tips-card ul { margin: 0; padding-left: 1.1rem; }
.rfq-tips-card li { font-size: .8rem; color: var(--gray-600); margin-bottom: .35rem; line-height: 1.5; }
.rfq-tips-card li:last-child { margin-bottom: 0; }

/* --- Browse / list cards (vendor side & "permintaan saya") --- */
.rfq-toolbar {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: .75rem;
    padding: .9rem 1rem;
    margin-bottom: 1.25rem;
}
.rfq-card {
    border: 1px solid var(--gray-200);
    border-radius: .85rem;
    background: #fff;
    padding: 1.1rem 1.2rem;
    height: 100%;
    transition: box-shadow .15s, border-color .15s, transform .1s;
}
.rfq-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}
.rfq-card-cat {
    font-size: .68rem;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    padding: .2rem .55rem;
    border-radius: 999px;
    display: inline-flex; align-items: center; gap: .3rem;
}
.rfq-card-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--dark);
    margin: .55rem 0 .35rem;
    line-height: 1.35;
}
.rfq-card-desc {
    font-size: .82rem;
    color: var(--gray-500);
    margin-bottom: .65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rfq-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .76rem;
    color: var(--gray-400);
    margin-bottom: .5rem;
}
.rfq-card-budget {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .5rem;
}
.rfq-offer-count {
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    display: inline-flex; align-items: center; gap: .3rem;
}
.rfq-offer-count.is-zero { background: var(--gray-100); color: var(--gray-500); }
.rfq-offer-count.is-some { background: #eff6ff; color: var(--primary); }

.rfq-status-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rfq-status-terbuka { background: #ecfdf5; color: #059669; }
.rfq-status-selesai { background: var(--gray-100); color: var(--gray-500); }
.rfq-status-batal   { background: #fef2f2; color: #dc2626; }

/* --- Empty state --- */
.rfq-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gray-400);
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
    border-radius: .85rem;
}
.rfq-empty i { font-size: 2.75rem; display: block; margin-bottom: .75rem; opacity: .7; }
.rfq-empty p { font-size: .88rem; color: var(--gray-500); margin-bottom: .9rem; }

/* --- Detail: ringkasan permintaan --- */
.rfq-detail-head {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.rfq-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}
.rfq-detail-info-item { font-size: .82rem; color: var(--gray-600); }
.rfq-detail-info-item i { color: var(--gray-400); margin-right: .35rem; }
.rfq-detail-info-item strong { display: block; font-size: .8rem; color: var(--dark); }

/* --- Offer avatar (reuses review-avatar visual language) --- */
.rfq-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* --- Offer cards (pemohon view) --- */
.rfq-offer-card {
    border: 1px solid var(--gray-200);
    border-radius: .85rem;
    background: #fff;
    padding: 1.1rem 1.2rem;
    position: relative;
    transition: box-shadow .15s;
}
.rfq-offer-card:hover { box-shadow: var(--shadow); }
.rfq-offer-card.is-winner { border: 1.5px solid var(--success); background: #f0fdf4; }
.rfq-offer-card.is-rejected { opacity: .6; }
.rfq-offer-card.is-lowest::before {
    content: 'Termurah';
    position: absolute;
    top: -9px; left: 1.1rem;
    background: var(--accent);
    color: #78350f;
    font-size: .65rem;
    font-weight: 800;
    padding: .12rem .55rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.rfq-offer-price { font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.rfq-offer-msg {
    font-size: .84rem;
    color: var(--gray-600);
    background: var(--gray-50);
    border-radius: .5rem;
    padding: .6rem .75rem;
    margin-top: .55rem;
    white-space: pre-line;
}

/* --- Accepted banner --- */
.rfq-accepted-banner {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: .85rem;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.rfq-accepted-banner i { font-size: 1.6rem; color: var(--success); flex-shrink: 0; }
.rfq-accepted-banner strong { color: #065f46; }
.rfq-accepted-banner span { font-size: .85rem; color: #047857; }

.rfq-cancelled-banner {
    background: linear-gradient(135deg, #fef2f2, #fef7f7);
    border: 1px solid #fecaca;
}
.rfq-cancelled-banner i { color: #dc2626; }
.rfq-cancelled-banner strong { color: #991b1b; }
.rfq-cancelled-banner span { color: #b91c1c; }

/* --- Requester / vendor mini profile card (form view) --- */
.rfq-profile-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: .75rem;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
}
.rfq-profile-card .rfq-avatar { width: 40px; height: 40px; font-size: .9rem; }
.rfq-profile-name { font-weight: 700; font-size: .85rem; color: var(--dark); }
.rfq-profile-sub { font-size: .74rem; color: var(--gray-500); }

@media (max-width: 767.98px) {
    .rfq-hero { padding: 1.4rem 1.25rem; border-radius: .85rem; }
}

