/* ============================================================
   Iklan Baris — Design System
   Palette: royal indigo, emerald teal, warm amber on soft mist
   ============================================================ */

:root {
    --ibp-ink: #1f2329;
    --ibp-navy: #2b3038;
    --ibp-navy-soft: #3a404a;
    --ibp-primary: #ee4d2d;
    --ibp-primary-600: #d73211;
    --ibp-primary-100: #fdeae5;
    --ibp-teal: #0f8a6a;
    --ibp-teal-dark: #0b6e55;
    --ibp-teal-50: #e7f5f0;
    --ibp-amber: #f2a93b;
    --ibp-amber-50: #fef4e2;
    --ibp-rose: #e5486a;
    --ibp-bg: #f5f5f5;
    --ibp-surface: #ffffff;
    --ibp-line: #e8e8e8;
    --ibp-muted: #6b7280;
    --ibp-text: #222222;
    --ibp-header: #ffffff;
    --ibp-radius: 16px;
    --ibp-radius-sm: 12px;
    --ibp-shadow-sm: 0 2px 10px rgba(34, 34, 34, 0.05);
    --ibp-shadow: 0 18px 40px -22px rgba(34, 34, 34, 0.22);
    --ibp-shadow-lg: 0 30px 70px -34px rgba(34, 34, 34, 0.28);
    --ibp-ease: cubic-bezier(0.22, 0.68, 0.36, 1);
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--ibp-bg);
    color: var(--ibp-text);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Clipping both roots stops stray wide content from making the page pannable,
   while `clip` (unlike `hidden`) keeps the sticky header working. */
@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

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

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

:focus-visible {
    outline: 3px solid rgba(12, 155, 124, 0.5);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 2000;
    background: var(--ibp-navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

.skip-link:focus {
    left: 16px;
    color: #fff;
}

.container {
    max-width: 1200px;
}

/* ---------------- Typography ---------------- */
.display-hero {
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ibp-text);
}

.display-hero .accent {
    background: linear-gradient(100deg, var(--ibp-primary) 0%, #ff8a4c 55%, var(--ibp-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ibp-teal-dark);
}

.section-kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ibp-teal);
}

.section-title {
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ibp-ink);
    margin: 0.35rem 0 0;
}

.section-sub {
    color: var(--ibp-muted);
    max-width: 560px;
    margin-top: 0.5rem;
}

.text-muted-2 {
    color: var(--ibp-muted) !important;
}

/* ---------------- Buttons ---------------- */
.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.62rem 1.15rem;
    transition: transform 0.2s var(--ibp-ease), box-shadow 0.2s var(--ibp-ease), background 0.2s var(--ibp-ease), color 0.2s var(--ibp-ease);
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    background: linear-gradient(135deg, var(--ibp-primary) 0%, color-mix(in srgb, var(--ibp-primary) 78%, #ffb08a) 100%);
    border: none;
    box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--ibp-primary) 70%, transparent);
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, var(--ibp-primary-600) 0%, var(--ibp-primary) 100%);
    box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--ibp-primary) 78%, transparent);
    transform: translateY(-1px);
}

.btn-teal {
    background: linear-gradient(135deg, var(--ibp-teal) 0%, color-mix(in srgb, var(--ibp-teal) 76%, #8ef0d3) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--ibp-teal) 70%, transparent);
}

.btn-teal:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--ibp-teal-dark) 0%, var(--ibp-teal) 100%);
    transform: translateY(-1px);
}

.btn-soft {
    background: var(--ibp-primary-100);
    color: var(--ibp-primary);
    border: 1px solid color-mix(in srgb, var(--ibp-primary) 12%, transparent);
}

.btn-soft:hover {
    background: color-mix(in srgb, var(--ibp-primary) 18%, #fff);
    color: var(--ibp-primary-600);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--ibp-line);
    color: var(--ibp-text);
}

.btn-ghost:hover {
    border-color: #c8d0e4;
    background: #fff;
    color: var(--ibp-primary);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
}

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(229, 233, 243, 0.8);
    transition: box-shadow 0.25s var(--ibp-ease), background 0.25s var(--ibp-ease);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px -18px rgba(16, 27, 63, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    color: var(--ibp-ink);
    flex-shrink: 0;
}

.brand:hover {
    color: var(--ibp-ink);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--ibp-primary) 0%, color-mix(in srgb, var(--ibp-primary) 70%, #ffb08a) 60%, var(--ibp-teal) 130%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.03em;
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--ibp-primary) 70%, transparent);
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-mark.brand-mark-image {
    background: transparent;
    box-shadow: none;
    padding: 2px;
}

.brand-mark.brand-mark-image::after {
    display: none;
}

.brand-mark.brand-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s var(--ibp-ease);
}

.brand:hover .brand-mark::after {
    transform: translateX(120%);
}

.brand small {
    display: block;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ibp-teal-dark);
    line-height: 1;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.25rem;
}

.desktop-nav a {
    color: #33405c;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    position: relative;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--ibp-primary);
    background: var(--ibp-primary-100);
}

.desktop-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.nav-menu {
    position: relative;
}

.nav-caret {
    font-size: 0.62rem;
    opacity: 0.6;
    transition: transform 0.2s var(--ibp-ease);
}

.nav-menu:hover .nav-caret,
.nav-menu:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: 14px;
    padding: 0.45rem;
    box-shadow: 0 28px 50px -26px rgba(16, 27, 63, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s var(--ibp-ease), transform 0.18s var(--ibp-ease), visibility 0.18s;
    z-index: 1040;
}

.nav-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -11px;
    height: 11px;
}

.nav-menu:hover .nav-submenu,
.nav-menu:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav .nav-submenu-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 9px;
    color: #33405c;
    white-space: nowrap;
}

.desktop-nav .nav-submenu-link:hover,
.desktop-nav .nav-submenu-link.active {
    background: var(--ibp-primary-100);
    color: var(--ibp-primary);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ibp-line);
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #33405c;
    transition: width 0.2s var(--ibp-ease), background 0.2s var(--ibp-ease);
}

.nav-toggle:hover {
    border-color: rgba(38, 58, 146, 0.35);
    box-shadow: 0 8px 18px -14px rgba(16, 27, 63, 0.6);
}

.nav-toggle:hover span:nth-child(2) {
    width: 13px;
}

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(9, 15, 34, 0.52);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s var(--ibp-ease);
}

.nav-scrim.is-open {
    opacity: 1;
}

.nav-scrim[hidden] {
    display: none;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1051;
    width: min(390px, 91vw);
    background: #fff;
    box-shadow: -34px 0 70px -34px rgba(16, 27, 63, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(103%);
    visibility: hidden;
    transition: transform 0.32s var(--ibp-ease), visibility 0.32s;
    overscroll-behavior: contain;
}

.mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

body.nav-locked {
    overflow: hidden;
}

.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--ibp-line);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ibp-line);
    background: var(--ibp-bg);
    border-radius: 11px;
    color: #33405c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    background: var(--ibp-primary-100);
    color: var(--ibp-primary);
}

.mobile-nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.9rem 1.1rem 0.2rem;
    padding: 0.2rem 0.3rem 0.2rem 0.85rem;
    background: #f7f9fe;
    border: 1px solid var(--ibp-line);
    border-radius: 12px;
}

.mobile-nav-search > i {
    color: #8492ad;
}

.mobile-nav-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--ibp-text);
}

.mobile-nav-search button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: var(--ibp-primary);
    color: #fff;
    flex-shrink: 0;
}

.mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    padding: 0.9rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    padding: 0.8rem 0.85rem;
    border: 0;
    background: transparent;
    border-radius: 12px;
    color: #26324e;
    font-weight: 600;
    font-size: 0.94rem;
    text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--ibp-primary-100);
    color: var(--ibp-primary);
}

.mobile-nav-link i {
    font-size: 0.85rem;
    color: #8492ad;
    transition: transform 0.2s var(--ibp-ease);
}

.mobile-nav-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ibp-ease);
    padding-left: 0.35rem;
}

.mobile-nav-group.is-open .mobile-submenu {
    max-height: 60vh;
    overflow-y: auto;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.85rem 0.55rem 1.1rem;
    margin: 0.1rem 0;
    font-size: 0.86rem;
    font-weight: 500;
    color: #54617d;
    border-radius: 10px;
}

.mobile-submenu-link:hover,
.mobile-submenu-link.active {
    background: #f3f6fd;
    color: var(--ibp-primary);
}

.mobile-nav-footer {
    padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ibp-line);
    background: #fbfcff;
}

.mobile-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.mobile-account strong {
    display: block;
    font-size: 0.86rem;
    color: var(--ibp-ink);
}

.mobile-account span {
    display: block;
    font-size: 0.72rem;
    color: var(--ibp-muted);
    word-break: break-all;
}

.header-search {
    margin-left: auto;
    width: min(250px, 21vw);
    position: relative;
}

.header-search input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--ibp-line);
    background: #f8faff;
    padding: 0 44px 0 42px;
    font-size: 0.9rem;
    color: var(--ibp-text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.header-search input:focus {
    outline: none;
    border-color: rgba(38, 58, 146, 0.4);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(38, 58, 146, 0.08);
}

.header-search .bi-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8492ad;
    font-size: 0.95rem;
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: var(--ibp-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.header-actions .btn {
    white-space: nowrap;
}

.header-search + .header-actions {
    margin-left: 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--ibp-teal) 0%, #37c9a6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--ibp-line);
    flex-shrink: 0;
    object-fit: cover;
    overflow: hidden;
}

.avatar-lg {
    width: 52px;
    height: 52px;
    font-size: 1rem;
}

.dropdown-menu {
    border: 1px solid var(--ibp-line);
    border-radius: 14px;
    box-shadow: var(--ibp-shadow);
    padding: 0.45rem;
    font-size: 0.9rem;
}

.dropdown-item {
    border-radius: 9px;
    padding: 0.55rem 0.75rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--ibp-primary-100);
    color: var(--ibp-primary);
}

.dropdown-item.text-danger:hover {
    background: #fdecef;
    color: var(--ibp-rose);
}

.mobile-top-actions {
    display: none;
}

.mobile-search-panel {
    display: none;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 480px at 88% -20%, color-mix(in srgb, var(--ibp-primary) 16%, transparent) 0%, transparent 62%),
        radial-gradient(680px 420px at 2% 112%, color-mix(in srgb, var(--ibp-teal) 13%, transparent) 0%, transparent 60%),
        linear-gradient(180deg, var(--ibp-surface) 0%, color-mix(in srgb, var(--ibp-primary) 5%, #fff) 100%);
    color: var(--ibp-text);
    padding: 3.4rem 0 4rem;
    border-bottom: 1px solid var(--ibp-line);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(color-mix(in srgb, var(--ibp-text) 4%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--ibp-text) 4%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -180px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--ibp-primary) 14%, transparent);
    box-shadow: 0 0 0 70px color-mix(in srgb, var(--ibp-primary) 4%, transparent), 0 0 0 140px color-mix(in srgb, var(--ibp-primary) 3%, transparent);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ibp-primary) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--ibp-primary) 20%, transparent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ibp-primary-600);
}

.hero-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ibp-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ibp-primary) 18%, transparent);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ibp-primary) 18%, transparent); }
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ibp-primary) 6%, transparent); }
}

.hero-copy p.lead {
    color: var(--ibp-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 1.2rem 0 1.8rem;
}

.hero-search {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 0.6rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 0.5rem;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.55);
    max-width: 620px;
}

.hero-search .field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.35rem 0.7rem;
    border-radius: 12px;
    transition: background 0.2s;
    min-width: 0;
}

.hero-search .field:focus-within {
    background: #f5f7fc;
}

.hero-search .field + .field {
    border-left: 1px solid var(--ibp-line);
}

.hero-search i {
    color: var(--ibp-teal);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.hero-search input,
.hero-search select {
    border: 0;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: var(--ibp-text);
    font-weight: 500;
    min-width: 0;
}

.hero-search input:focus,
.hero-search select:focus {
    outline: none;
}

.hero-search input::placeholder {
    color: #8b97b1;
    font-weight: 400;
}

.hero-search .btn {
    padding-inline: 1.5rem;
    white-space: nowrap;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 1.9rem;
}

.hero-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ibp-muted);
    font-size: 0.88rem;
}

.hero-trust .trust-item i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ibp-teal-50);
    border: 1px solid color-mix(in srgb, var(--ibp-teal) 18%, transparent);
    color: var(--ibp-teal);
}

.hero-visual {
    position: relative;
    height: 460px;
}

.hero-card {
    position: absolute;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #fff;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card.main {
    width: 340px;
    height: 400px;
    right: 34px;
    top: 22px;
    z-index: 2;
    animation: floatY 7s ease-in-out infinite;
}

.hero-card.main .glass-label {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(10, 16, 36, 0.55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.glass-label .price {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.glass-label .title {
    font-size: 0.82rem;
    color: #d6ddf1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card.small {
    width: 210px;
    height: 150px;
    left: 0;
    bottom: 44px;
    z-index: 1;
    animation: floatY 8s ease-in-out 0.8s infinite;
}

.hero-stat-card {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatY 6.5s ease-in-out 0.4s infinite;
}

.hero-stat-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ibp-teal-50);
    color: var(--ibp-teal-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-stat-card strong {
    display: block;
    color: var(--ibp-ink);
    font-size: 1.05rem;
    line-height: 1.1;
}

.hero-stat-card small {
    color: var(--ibp-muted);
    font-size: 0.74rem;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------------- Category cards ---------------- */
.category-strip {
    margin-top: -2.4rem;
    position: relative;
    z-index: 5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.category-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--ibp-text);
    box-shadow: var(--ibp-shadow-sm);
    transition: transform 0.3s var(--ibp-ease), box-shadow 0.3s var(--ibp-ease), border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -38px;
    top: -38px;
    background: currentColor;
    opacity: 0.05;
    transition: transform 0.4s var(--ibp-ease);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ibp-shadow);
    border-color: rgba(38, 58, 146, 0.18);
    color: var(--ibp-text);
}

.category-card:hover::after {
    transform: scale(1.6);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.category-card .name {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
    color: var(--ibp-ink);
}

.category-card .count {
    font-size: 0.76rem;
    color: var(--ibp-muted);
}

.category-card .arrow {
    margin-left: auto;
    color: #b6c0d6;
    transition: transform 0.3s var(--ibp-ease), color 0.3s;
}

.category-card:hover .arrow {
    transform: translateX(3px);
    color: var(--ibp-teal);
}

/* ---------------- Sections ---------------- */
.section {
    padding: 4.5rem 0;
}

.section-tight {
    padding: 3rem 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.link-arrow {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ibp-primary);
    white-space: nowrap;
}

.link-arrow i {
    transition: transform 0.25s var(--ibp-ease);
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* ---------------- Listing cards ---------------- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.listing-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.listing-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ibp-ease), box-shadow 0.35s var(--ibp-ease), border-color 0.35s;
    position: relative;
    height: 100%;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ibp-shadow);
    border-color: rgba(38, 58, 146, 0.16);
}

.listing-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ibp-primary-100);
    display: block;
}

.listing-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ibp-ease);
}

.listing-card:hover .listing-media img {
    transform: scale(1.06);
}

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    opacity: 0.9;
}

.badge-cat,
.badge-featured,
.badge-status {
    position: absolute;
    top: 12px;
    padding: 0.32rem 0.62rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.badge-cat {
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ibp-navy);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(10, 16, 36, 0.12);
}

.badge-featured {
    right: 12px;
    background: linear-gradient(135deg, #f7b74a, #f2a93b);
    color: #3b2603;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 6px 14px -6px rgba(242, 169, 59, 0.9);
}

.badge-status {
    right: 12px;
    background: rgba(10, 16, 36, 0.7);
    color: #fff;
}

.listing-body {
    padding: 1.05rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.listing-price {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ibp-primary);
    line-height: 1.2;
}

.listing-price .neg {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ibp-teal-dark);
    background: var(--ibp-teal-50);
    padding: 2px 7px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 4px;
}

.listing-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ibp-ink);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.2s;
}

.listing-card:hover .listing-title {
    color: var(--ibp-primary);
}

.listing-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--ibp-muted);
    font-size: 0.79rem;
    margin-top: auto;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--ibp-line);
}

.listing-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-meta i {
    color: #8b9ab6;
}

.listing-vendor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--ibp-muted);
    margin-top: 0.15rem;
}

.listing-vendor .avatar {
    width: 24px;
    height: 24px;
    font-size: 0.58rem;
    border-width: 1px;
}

/* ---------------- Trust / CTA ---------------- */
.trust-section {
    background: #fff;
    border-top: 1px solid var(--ibp-line);
    border-bottom: 1px solid var(--ibp-line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trust-card h6 {
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--ibp-ink);
    font-size: 0.95rem;
}

.trust-card p {
    margin: 0;
    color: var(--ibp-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.cta-banner {
    position: relative;
    border-radius: 26px;
    background:
        radial-gradient(600px 300px at 90% 0%, color-mix(in srgb, var(--ibp-teal) 14%, transparent) 0%, transparent 60%),
        linear-gradient(120deg, color-mix(in srgb, var(--ibp-primary) 7%, #fff) 0%, var(--ibp-surface) 60%, color-mix(in srgb, var(--ibp-teal) 6%, #fff) 100%);
    color: var(--ibp-text);
    border: 1px solid var(--ibp-line);
    padding: 3.4rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
}

.cta-banner::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 169, 59, 0.22) 0%, transparent 65%);
}

.cta-banner h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.8rem;
}

.cta-banner p {
    color: var(--ibp-muted);
    margin-bottom: 1.6rem;
    max-width: 520px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.cta-badge {
    background: #fff;
    border: 1px solid var(--ibp-line);
    box-shadow: var(--ibp-shadow-sm);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.cta-badge .big {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(100deg, var(--ibp-primary), var(--ibp-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-badge small {
    display: block;
    color: var(--ibp-muted);
    font-size: 0.76rem;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--ibp-surface);
    color: var(--ibp-muted);
    border-top: 1px solid var(--ibp-line);
    padding: 3.5rem 0 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.site-footer .brand {
    color: var(--ibp-text);
    margin-bottom: 0.9rem;
}

.site-footer .brand:hover {
    color: var(--ibp-primary);
}

.site-footer p {
    font-size: 0.87rem;
    color: var(--ibp-muted);
    line-height: 1.7;
}

.site-footer h6 {
    color: var(--ibp-text);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-links a {
    color: var(--ibp-muted);
    font-size: 0.87rem;
}

.footer-links a:hover {
    color: var(--ibp-primary);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border: 1px solid var(--ibp-line);
    color: var(--ibp-muted);
}

.footer-social a:hover {
    background: var(--ibp-primary-100);
    border-color: color-mix(in srgb, var(--ibp-primary) 30%, transparent);
    color: var(--ibp-primary);
}

.footer-bottom {
    border-top: 1px solid var(--ibp-line);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--ibp-muted);
}

/* ---------------- Page hero (inner) ---------------- */
.page-hero {
    background:
        radial-gradient(600px 260px at 88% -30%, color-mix(in srgb, var(--ibp-primary) 14%, transparent) 0%, transparent 60%),
        linear-gradient(120deg, var(--ibp-surface) 0%, color-mix(in srgb, var(--ibp-primary) 5%, #fff) 100%);
    color: var(--ibp-text);
    padding: 2.6rem 0 2.9rem;
    border-bottom: 1px solid var(--ibp-line);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(color-mix(in srgb, var(--ibp-text) 3.5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--ibp-text) 3.5%, transparent) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0.4rem 0 0.45rem;
}

.page-hero p {
    color: var(--ibp-muted);
    margin: 0;
    max-width: 680px;
}

/* ---------------- Filters ---------------- */
.filter-bar {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: 16px;
    padding: 0.65rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--ibp-shadow-sm);
    margin-bottom: 1.75rem;
}

.filter-search {
    flex: 1 1 240px;
    position: relative;
}

.filter-search input {
    width: 100%;
    border: 0;
    background: #f5f7fc;
    height: 44px;
    border-radius: 11px;
    padding: 0 14px 0 40px;
    font-size: 0.9rem;
}

.filter-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 58, 146, 0.1);
}

.filter-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8492ad;
}

.filter-select {
    height: 44px;
    border: 1px solid var(--ibp-line);
    background: #fff;
    border-radius: 11px;
    padding: 0 2.1rem 0 0.85rem;
    font-size: 0.86rem;
    color: #394660;
    font-weight: 500;
    max-width: 170px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7a99' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:focus {
    outline: none;
    border-color: rgba(38, 58, 146, 0.35);
    box-shadow: 0 0 0 3px rgba(38, 58, 146, 0.08);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ibp-line);
    font-size: 0.8rem;
    font-weight: 600;
    color: #44516d;
    transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--ibp-primary);
    border-color: var(--ibp-primary);
    color: #fff;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.results-meta {
    font-size: 0.82rem;
    color: var(--ibp-muted);
    margin-bottom: 1rem;
}

/* ---------------- Empty state ---------------- */
.empty-state {
    background: #fff;
    border: 1px dashed #ccd5e8;
    border-radius: var(--ibp-radius);
    padding: 3.5rem 2rem;
    text-align: center;
}

.empty-state .icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: var(--ibp-primary-100);
    color: var(--ibp-primary);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-weight: 700;
}

.empty-state p {
    color: var(--ibp-muted);
    max-width: 420px;
    margin: 0 auto 1.2rem;
}

/* ---------------- Pagination ---------------- */
.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2.2rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.82rem;
    color: var(--ibp-muted);
}

.pagination {
    gap: 5px;
    margin: 0;
}

.pagination .page-link {
    border: 1px solid var(--ibp-line);
    border-radius: 10px;
    color: #3b4863;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.6rem;
    background: #fff;
}

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

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

.pagination .page-item.disabled .page-link {
    opacity: 0.45;
}

/* ---------------- Listing detail ---------------- */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: 2rem;
    align-items: start;
}

.detail-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
    overflow: hidden;
}

.detail-layout > *,
.sticky-sidebar,
.sidebar-card,
.detail-body {
    min-width: 0;
}

.detail-title,
.spec-item strong,
.vendor-block .name,
.vendor-block .meta,
.map-location-text,
.description-body {
    overflow-wrap: anywhere;
}

.spec-item,
.vendor-block > div {
    min-width: 0;
}

.gallery-main {
    aspect-ratio: 16 / 10;
    background: #eef1f8;
    position: relative;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s;
}

.gallery-thumbs {
    display: flex;
    gap: 0.6rem;
    padding: 0.85rem;
    overflow-x: auto;
}

.gallery-thumbs button {
    width: 84px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #eef1f8;
    flex-shrink: 0;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-thumbs button.active,
.gallery-thumbs button:hover {
    border-color: var(--ibp-primary);
    transform: translateY(-1px);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-body {
    padding: 1.6rem;
}

.detail-price {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ibp-primary);
    line-height: 1.15;
}

.detail-title {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.35rem 0 0.75rem;
    color: var(--ibp-ink);
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    background: #f2f5fb;
    color: #4a5877;
}

.detail-badge.teal {
    background: var(--ibp-teal-50);
    color: var(--ibp-teal-dark);
}

.detail-badge.amber {
    background: var(--ibp-amber-50);
    color: #8a5a06;
}

.detail-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1.3rem 0 1.6rem;
    padding: 1rem;
    background: #f8faff;
    border-radius: 14px;
    border: 1px solid #eef1f9;
}

.spec-item small {
    display: block;
    color: var(--ibp-muted);
    font-size: 0.72rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.spec-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--ibp-ink);
    font-weight: 700;
}

.description-body {
    color: var(--ibp-text);
    font-size: 0.94rem;
    line-height: 1.85;
    white-space: pre-line;
}

.rich-content { white-space: normal; overflow-wrap: anywhere; }
.rich-content > :first-child { margin-top: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 0.9rem; }
.rich-content h2,
.rich-content h3,
.rich-content h4 { color: var(--ibp-ink); font-weight: 800; line-height: 1.35; margin: 1.4rem 0 0.6rem; letter-spacing: -0.01em; }
.rich-content h2 { font-size: 1.25rem; }
.rich-content h3 { font-size: 1.1rem; }
.rich-content h4 { font-size: 1rem; }
.rich-content ul,
.rich-content ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.rich-content li { margin-bottom: 0.35rem; }
.rich-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--ibp-primary);
    background: var(--ibp-primary-100);
    border-radius: 0 .5rem .5rem 0;
    color: var(--ibp-text);
}
.rich-content img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 0.5rem 0; }
.rich-content iframe,
.rich-content video { max-width: 100%; }
.rich-content a { color: var(--ibp-primary-600); text-decoration: underline; text-underline-offset: 2px; }
.rich-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; }
.rich-content th,
.rich-content td { border: 1px solid var(--ibp-line); padding: 0.5rem 0.65rem; text-align: left; overflow-wrap: anywhere; min-width: 6.5rem; }
.rich-content th { background: var(--ibp-bg); font-weight: 700; }
.rich-content pre,
.rich-content code { background: var(--ibp-bg); border-radius: 0.4rem; font-size: 0.86rem; }
.rich-content pre { padding: 0.85rem 1rem; overflow-x: auto; max-width: 100%; }

.map-block { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--ibp-line); }
.map-location-text {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--ibp-text);
    margin-bottom: 0.75rem;
}
.map-location-text i { color: var(--ibp-primary); margin-top: 1px; }
.map-embed {
    position: relative;
    overflow: hidden;
    border-radius: 0.9rem;
    border: 1px solid var(--ibp-line);
    background: var(--ibp-bg);
    aspect-ratio: 16 / 9;
    box-shadow: 0 6px 18px rgba(31, 35, 41, 0.06);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-open { margin-top: 0.7rem; }

.section-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8794ae;
    margin: 0 0 0.7rem;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
    padding: 1.35rem;
    box-shadow: var(--ibp-shadow-sm);
}

.sticky-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 1rem;
}

.vendor-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ibp-line);
    margin-bottom: 1rem;
}

.vendor-block .name {
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--ibp-ink);
    line-height: 1.2;
}

.vendor-block .meta {
    font-size: 0.76rem;
    color: var(--ibp-muted);
}

.contact-note {
    font-size: 0.75rem;
    color: var(--ibp-muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 0.85rem;
    line-height: 1.5;
}

.contact-note i {
    color: var(--ibp-teal);
    margin-top: 2px;
}

.masked-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 12px;
    background: #f4f6fc;
    border: 1px dashed #c9d2e8;
    color: #5d6b85;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
}

.safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: var(--ibp-muted);
}

.safety-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.safety-list i {
    color: var(--ibp-teal);
    margin-top: 2px;
}

/* ---------------- Static pages ---------------- */
.prose {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
    padding: 2.4rem;
    color: #35415c;
    font-size: 0.96rem;
    line-height: 1.9;
    white-space: pre-line;
}

.prose-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-card {
    background: linear-gradient(150deg, color-mix(in srgb, var(--ibp-primary) 7%, #fff) 0%, var(--ibp-surface) 100%);
    color: var(--ibp-text);
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-info-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ibp-teal) 16%, transparent) 0%, transparent 70%);
    right: -60px;
    bottom: -60px;
}

.contact-info-card h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.contact-info-card p {
    color: var(--ibp-muted);
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.8rem 0;
    border-top: 1px solid var(--ibp-line);
    position: relative;
    z-index: 1;
}

.contact-item i {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--ibp-teal-50);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ibp-teal);
    flex-shrink: 0;
}

.contact-item small {
    display: block;
    color: var(--ibp-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ibp-text);
}

.form-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
    padding: 2rem;
    box-shadow: var(--ibp-shadow-sm);
}

.form-card h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ---------------- Forms ---------------- */
.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #35415c;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border: 1px solid #dbe1ef;
    border-radius: 11px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    color: var(--ibp-text);
    background-color: #fbfcff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(38, 58, 146, 0.4);
    box-shadow: 0 0 0 4px rgba(38, 58, 146, 0.08);
    background-color: #fff;
}

.form-control::placeholder {
    color: #9aa6bf;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #e5486a;
}

.invalid-feedback {
    font-size: 0.76rem;
}

.form-text {
    font-size: 0.76rem;
    color: var(--ibp-muted);
}

textarea.form-control {
    min-height: 120px;
    line-height: 1.7;
}

.input-group-text {
    background: #f4f6fc;
    border: 1px solid #dbe1ef;
    border-radius: 11px;
    color: #5f6e8b;
    font-weight: 600;
    font-size: 0.85rem;
}

.password-toggle {
    position: relative;
}

.password-toggle .toggle-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8492ad;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle .toggle-btn:hover {
    background: #eef1f9;
    color: var(--ibp-primary);
}

.password-toggle .form-control {
    padding-right: 44px;
}

.form-check-input {
    border-color: #c4cee3;
}

.form-check-input:checked {
    background-color: var(--ibp-primary);
    border-color: var(--ibp-primary);
}

.form-check-label {
    font-size: 0.84rem;
    color: #46536f;
}

.form-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8794ae;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ibp-line);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ---------------- Auth ---------------- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
}

.auth-visual {
    position: relative;
    background:
        radial-gradient(700px 500px at 80% 10%, color-mix(in srgb, var(--ibp-primary) 14%, transparent) 0%, transparent 60%),
        radial-gradient(500px 400px at 0% 100%, color-mix(in srgb, var(--ibp-teal) 14%, transparent) 0%, transparent 65%),
        linear-gradient(150deg, var(--ibp-surface) 0%, color-mix(in srgb, var(--ibp-primary) 5%, #fff) 100%);
    color: var(--ibp-text);
    border-right: 1px solid var(--ibp-line);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(color-mix(in srgb, var(--ibp-text) 4%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--ibp-text) 4%, transparent) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 40% 40%, #000, transparent 75%);
}

.auth-visual .brand {
    color: var(--ibp-text);
    position: relative;
    z-index: 1;
}

.auth-visual .brand:hover {
    color: var(--ibp-primary);
}

.auth-visual .brand small {
    color: var(--ibp-primary);
}

.auth-quote {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.auth-quote h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.auth-quote h2 span {
    color: var(--ibp-primary);
}

.auth-quote p {
    color: var(--ibp-muted);
    font-size: 0.95rem;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 1.8rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.auth-points li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--ibp-text);
    font-size: 0.88rem;
}

.auth-points i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--ibp-teal-50);
    border: 1px solid color-mix(in srgb, var(--ibp-teal) 18%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ibp-teal);
    flex-shrink: 0;
}

.auth-footer-note {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    color: var(--ibp-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: #f8faff;
}

.auth-form-wrap {
    width: 100%;
    max-width: 430px;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 1.5rem;
}

.auth-form-wrap h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.auth-form-wrap .sub {
    color: var(--ibp-muted);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

.auth-form-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: var(--ibp-shadow-sm);
}

.auth-alt {
    text-align: center;
    font-size: 0.86rem;
    color: var(--ibp-muted);
    margin-top: 1.4rem;
}

.auth-alt a {
    font-weight: 700;
}

.demo-credential {
    font-size: 0.74rem;
    color: #7c89a4;
    background: #f4f6fc;
    border: 1px dashed #d6ddee;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    margin-top: 1rem;
    text-align: left;
    line-height: 1.6;
}

/* ---------------- Dashboard ---------------- */
.dash-shell {
    min-height: 100vh;
    background: var(--ibp-bg);
}

.dash-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 264px;
    z-index: 1040;
    background: var(--ibp-surface);
    border-right: 1px solid var(--ibp-line);
    color: var(--ibp-muted);
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d6d6d6 transparent;
    transition: transform 0.35s var(--ibp-ease);
}

.dash-sidebar::-webkit-scrollbar {
    width: 7px;
}

.dash-sidebar::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 999px;
}

.dash-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dash-sidebar .brand {
    color: var(--ibp-text);
    padding: 0.3rem 0.6rem 1.2rem;
    flex: 0 0 auto;
}

.dash-sidebar .brand:hover {
    color: var(--ibp-primary);
}

.sidebar-section {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9aa1ab;
    padding: 0.9rem 0.7rem 0.45rem;
}

.sidebar-nav {
    display: grid;
    gap: 3px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.62rem 0.72rem;
    border-radius: 10px;
    color: #565d68;
    font-size: 0.87rem;
    font-weight: 600;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link i {
    font-size: 1.02rem;
    width: 20px;
    text-align: center;
    color: #8a919c;
    transition: color 0.2s;
}

.sidebar-link:hover {
    background: #f6f6f6;
    color: var(--ibp-text);
}

.sidebar-link:hover i {
    color: var(--ibp-primary);
}

.sidebar-link.active {
    background: var(--ibp-primary-100);
    color: var(--ibp-primary-600);
}

.sidebar-link.active i {
    color: var(--ibp-primary);
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ibp-primary);
}

.sidebar-badge {
    margin-left: auto;
    background: var(--ibp-amber-50);
    color: #a56a08;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

.sidebar-spacer {
    flex: 1 0 1rem;
}

.sidebar-user {
    background: #f8f8f8;
    border: 1px solid var(--ibp-line);
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
    flex: 0 0 auto;
}

.sidebar-user .avatar {
    border-color: var(--ibp-line);
    box-shadow: none;
}

.sidebar-user .name {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ibp-text);
    line-height: 1.2;
}

.sidebar-user .role {
    font-size: 0.7rem;
    color: var(--ibp-muted);
}

.sidebar-user .logout-btn {
    margin-left: auto;
    color: var(--ibp-muted);
    border: 0;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user .logout-btn:hover {
    background: #fde8ec;
    color: #c9324f;
}

.dash-main {
    margin-left: 264px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dash-topbar {
    height: 74px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ibp-line);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.dash-topbar .page-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--ibp-ink);
}

.dash-topbar .page-sub {
    font-size: 0.76rem;
    color: var(--ibp-muted);
    margin: 0;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--ibp-line);
    background: #fff;
    color: #4d5b78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--ibp-primary-100);
    color: var(--ibp-primary);
    border-color: transparent;
}

.icon-btn .dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ibp-rose);
    border: 1px solid #fff;
}

.dash-content {
    padding: 2rem;
    flex: 1;
    max-width: 1500px;
    width: 100%;
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--ibp-line);
    background: #fff;
    color: #36435f;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 36, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.3s;
}

.dash-mobile-nav {
    display: none;
}

/* ---------------- Stat cards ---------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    margin-bottom: 1.8rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ibp-ease), box-shadow 0.25s var(--ibp-ease);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ibp-shadow-sm);
}

.stat-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.stat-card .label {
    font-size: 0.76rem;
    color: var(--ibp-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.stat-card .value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ibp-ink);
    line-height: 1.15;
    margin-top: 2px;
}

.stat-card .hint {
    font-size: 0.72rem;
    color: #8b97b1;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-tint-1 { background: var(--ibp-primary-100); color: var(--ibp-primary); }
.icon-tint-2 { background: var(--ibp-teal-50); color: var(--ibp-teal-dark); }
.icon-tint-3 { background: var(--ibp-amber-50); color: #b07310; }
.icon-tint-4 { background: #fdeaf0; color: var(--ibp-rose); }
.icon-tint-5 { background: #eef1ff; color: #4f5fd8; }

.panel {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.panel-head {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--ibp-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.panel-head h2,
.panel-head h5 {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ibp-ink);
}

.panel-head .sub {
    font-size: 0.76rem;
    color: var(--ibp-muted);
    margin: 2px 0 0;
}

.panel-body {
    padding: 1.35rem;
}

.panel-body.flush {
    padding: 0;
}

/* ---------------- Tables ---------------- */
.table {
    --bs-table-bg: transparent;
    margin: 0;
    font-size: 0.86rem;
    color: #39455f;
    vertical-align: middle;
}

.table > thead th {
    background: #f8faff;
    color: #7b88a3;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid var(--ibp-line);
    padding: 0.8rem 1.1rem;
    white-space: nowrap;
}

.table > tbody td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #f0f3fa;
    vertical-align: middle;
}

.table > tbody tr:last-child td {
    border-bottom: 0;
}

.table > tbody tr:hover {
    background: #fafbff;
}

.table .thumb {
    width: 52px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef1f8;
}

.table .title-cell {
    max-width: 300px;
}

.table-admin .title-cell {
    max-width: 205px;
}

.table-dash .title-cell {
    max-width: 268px;
}

.table-dash .opt-col {
    display: none;
}

@media (min-width: 1440px) {
    .table-dash .opt-col {
        display: table-cell;
    }
}

.table .title-cell strong {
    display: block;
    font-weight: 700;
    color: var(--ibp-ink);
    font-size: 0.87rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table .title-cell small {
    color: #8b97b1;
    font-size: 0.73rem;
}

.table-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .table-compact {
        font-size: 0.82rem;
    }

    .table-compact > thead th,
    .table-compact > tbody td {
        padding: 0.7rem 0.55rem;
    }

    .table-compact .thumb {
        width: 42px;
        height: 34px;
    }

    .table-compact .title-cell {
        max-width: 172px;
    }

    .table-compact .title-cell small {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .table-compact .status-pill {
        font-size: 0.68rem;
        padding: 0.28rem 0.5rem;
    }

    .table-compact .table-actions {
        display: grid;
        grid-template-columns: repeat(2, 30px);
        gap: 4px;
        justify-content: end;
    }

    .table-compact .table-actions form {
        margin: 0;
    }
}

.btn-xs {
    padding: 0.28rem 0.58rem;
    font-size: 0.73rem;
    border-radius: 7px;
    font-weight: 600;
    line-height: 1.4;
}

.btn-icon-xs {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-success { background: #e6f7f2; color: #087a61; }
.status-warning { background: #fef4e2; color: #9a6407; }
.status-danger { background: #fdeaf0; color: #b32545; }
.status-secondary { background: #f0f2f8; color: #5d6b85; }
.status-info { background: #e8f1fd; color: #1f6db5; }
.status-dark { background: #e9ebf4; color: #2c3552; }

/* ---------------- Chart ---------------- */
.bar-chart {
    display: grid;
    gap: 0.9rem;
}

.bar-row {
    display: grid;
    grid-template-columns: 130px 1fr 44px;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.8rem;
}

.bar-row .name {
    color: #4a5877;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-track {
    height: 8px;
    border-radius: 999px;
    background: #f0f3fa;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s var(--ibp-ease);
}

.bar-row .total {
    text-align: right;
    font-weight: 700;
    color: var(--ibp-ink);
    font-size: 0.78rem;
}

/* ---------------- Alerts ---------------- */
.alert {
    border: 0;
    border-radius: 13px;
    font-size: 0.87rem;
    padding: 0.85rem 1rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: var(--ibp-shadow-sm);
}

.alert-success { background: #e9f9f3; color: #066350; border-left: 4px solid var(--ibp-teal); }
.alert-danger { background: #fdeef2; color: #9b1f3d; border-left: 4px solid var(--ibp-rose); }
.alert-warning { background: #fff7e8; color: #8a5a06; border-left: 4px solid var(--ibp-amber); }
.alert-info { background: #eef3ff; color: #29408f; border-left: 4px solid var(--ibp-primary); }

.flash-stack {
    position: relative;
    z-index: 10;
}

.flash-stack .alert {
    animation: slideDown 0.4s var(--ibp-ease);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Upload ---------------- */
.upload-zone {
    border: 2px dashed #ccd5e8;
    border-radius: 14px;
    background: #f9fbff;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    display: block;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--ibp-teal);
    background: var(--ibp-teal-50);
}

.upload-zone i {
    font-size: 1.6rem;
    color: var(--ibp-teal);
    display: block;
    margin-bottom: 0.4rem;
}

.upload-zone strong {
    font-size: 0.88rem;
    color: var(--ibp-ink);
    display: block;
}

.upload-zone small {
    color: var(--ibp-muted);
    font-size: 0.76rem;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.image-thumb-card {
    position: relative;
    width: 110px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ibp-line);
    background: #fff;
}

.image-thumb-card img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
}

.image-thumb-card .caption {
    font-size: 0.65rem;
    padding: 4px 6px;
    color: #6b7894;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-thumb-card .caption a {
    color: var(--ibp-rose);
    font-weight: 700;
}

.upload-preview .preview-item {
    width: 84px;
    height: 64px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--ibp-line);
    position: relative;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------- Mobile tab bar ---------------- */
.mobile-tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid rgba(229, 233, 243, 0.9);
    padding: 0.45rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px -12px rgba(16, 27, 63, 0.18);
}

.mobile-tabbar .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #8390aa;
    font-size: 0.63rem;
    font-weight: 600;
    padding: 0.3rem 0;
    border-radius: 10px;
    position: relative;
    line-height: 1.1;
}

.mobile-tabbar .tab i {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-tabbar .tab.active {
    color: var(--ibp-primary);
}

.mobile-tabbar .tab.active::after {
    content: "";
    position: absolute;
    top: -2px;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--ibp-primary);
}

.tab-fab {
    flex: 0 0 64px !important;
    margin-top: -22px;
}

.tab-fab span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--ibp-teal) 0%, #10b58f 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 12px 24px -8px rgba(12, 155, 124, 0.8);
    border: 4px solid #fff;
}

.tab-fab small {
    color: var(--ibp-teal-dark);
    margin-top: 2px;
}

/* ---------------- Reveal animations ---------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s var(--ibp-ease), transform 0.65s var(--ibp-ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------------- Utility ---------------- */
.surface-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
}

.divider {
    height: 1px;
    background: var(--ibp-line);
    margin: 1.25rem 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f2f5fb;
    color: #4a5877;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
}

.min-w-0 { min-width: 0; }
.fw-800 { font-weight: 800; }
.lh-1 { line-height: 1; }
.aspect-16-10 { aspect-ratio: 16 / 10; }
.object-cover { object-fit: cover; }
.bg-mist { background: var(--ibp-bg); }

.mobile-only { display: none !important; }
.desktop-only { display: initial; }

@media (min-width: 1200px) {
    .nav-toggle,
    .mobile-nav,
    .nav-scrim {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .mobile-top-actions .btn-brand {
        display: none;
    }

    .navbar-inner {
        gap: 0.55rem;
    }

    .brand {
        font-size: 0.98rem;
    }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199.98px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-top-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .navbar-inner .header-actions {
        margin-left: auto;
    }

    .hero-card.main { width: 300px; height: 360px; right: 10px; }
    .hero-visual { height: 430px; }
    .hero-card.small { width: 180px; height: 132px; }
    .listing-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .mobile-nav-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .site-header {
        background: rgba(255, 255, 255, 0.96);
    }

    .navbar-inner {
        min-height: 64px;
        gap: 0.75rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 0.9rem;
    }

    .brand {
        font-size: 1.02rem;
    }

    .desktop-nav,
    .header-search {
        display: none;
    }

    .header-actions .btn span {
        display: none;
    }

    .mobile-tabbar {
        display: flex;
    }

    .mobile-search-panel {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 1029;
        background: #fff;
        border-bottom: 1px solid var(--ibp-line);
        box-shadow: 0 20px 30px -24px rgba(16, 27, 63, 0.35);
        padding: 0.7rem 1rem;
        transform: translateY(calc(-100% - 64px));
        transition: transform 0.3s var(--ibp-ease);
        visibility: hidden;
    }

    .mobile-search-panel.is-open {
        transform: translateY(0);
        visibility: visible;
    }

    .mobile-search-panel form {
        display: flex;
        gap: 0.5rem;
    }

    .mobile-search-panel .form-control {
        height: 44px;
        border-radius: 11px;
        background: #f7f9fe;
    }

    .mobile-search-panel .btn {
        width: 48px;
        height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .hero {
        padding: 2.6rem 0 3.4rem;
        border-radius: 0 0 26px 26px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .display-hero {
        font-size: clamp(2rem, 8vw, 2.7rem);
    }

    .hero-copy p.lead {
        font-size: 0.95rem;
        margin: 0.9rem 0 1.3rem;
    }

    .hero-search {
        grid-template-columns: 1fr auto;
        border-radius: 16px;
        gap: 0.3rem;
    }

    .hero-search .field:nth-child(2) {
        display: none;
    }

    .hero-search .btn {
        padding-inline: 1.15rem;
    }

    .hero-trust {
        gap: 1rem;
        margin-top: 1.4rem;
    }

    .hero-trust .trust-item {
        font-size: 0.78rem;
    }

    .hero-visual {
        display: none;
    }

    .category-strip {
        margin-top: -1.8rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-card {
        padding: 0.9rem;
        border-radius: 14px;
        gap: 0.7rem;
    }

    .category-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    .category-card .name {
        font-size: 0.84rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-head {
        align-items: flex-start;
        margin-bottom: 1.4rem;
    }

    .listing-grid,
    .listing-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .listing-card {
        border-radius: 15px;
    }

    .listing-body {
        padding: 0.8rem 0.85rem 0.9rem;
    }

    .listing-price {
        font-size: 0.98rem;
    }

    .listing-title {
        font-size: 0.86rem;
    }

    .listing-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .listing-vendor {
        display: none;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .cta-banner {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        border-radius: 20px;
        gap: 1.4rem;
    }

    .cta-visual {
        justify-content: flex-start;
    }

    .cta-banner h2 {
        font-size: 1.55rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
    }

    .site-footer {
        padding-top: 2.5rem;
        padding-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding-bottom: 1.5rem;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .detail-body {
        padding: 1.15rem;
    }

    .spec-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sticky-sidebar {
        position: static;
    }

    .prose {
        padding: 1.4rem;
        border-radius: 15px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .contact-info-card,
    .form-card {
        padding: 1.4rem;
        border-radius: 16px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-main {
        padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
        min-height: 100vh;
        align-items: flex-start;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-form-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .page-hero {
        padding: 1.8rem 0 2rem;
    }

    .dash-sidebar {
        transform: translateX(-100%);
        box-shadow: 30px 0 60px -20px rgba(0, 0, 0, 0.35);
    }

    .dash-sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-overlay.is-open {
        display: block;
        opacity: 1;
    }

    .dash-main {
        margin-left: 0;
        padding-bottom: 76px;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .dash-topbar {
        height: 64px;
        padding: 0 1rem;
    }

    .dash-content {
        padding: 1.1rem;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .stat-card {
        padding: 0.95rem;
        border-radius: 14px;
    }

    .stat-card .value {
        font-size: 1.35rem;
    }

    .stat-card .icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .panel {
        border-radius: 15px;
    }

    .panel-head,
    .panel-body {
        padding: 1rem;
    }

    .dash-mobile-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--ibp-line);
        padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
    }

    .dash-mobile-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 0.62rem;
        font-weight: 600;
        color: #8390aa;
        padding: 0.25rem 0;
    }

    .dash-mobile-nav a i {
        font-size: 1.15rem;
    }

    .dash-mobile-nav a.active {
        color: var(--ibp-primary);
    }

    .bar-row {
        grid-template-columns: 100px 1fr 36px;
        gap: 0.5rem;
    }

    .flash-stack {
        padding: 0 0.25rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .container {
        padding-inline: 1rem;
    }

    .display-hero {
        font-size: 2.05rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-search {
        grid-template-columns: 1fr;
        padding: 0.45rem;
    }

    .hero-search .btn {
        width: 100%;
        height: 46px;
    }

    .hero-trust {
        display: none;
    }

    .section-head {
        flex-direction: column;
        gap: 0.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .listing-grid,
    .listing-grid.four {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .listing-body {
        padding: 0.65rem 0.7rem 0.75rem;
        gap: 0.3rem;
    }

    .listing-price {
        font-size: 0.92rem;
    }

    .listing-price .neg {
        display: none;
    }

    .listing-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .listing-meta {
        font-size: 0.66rem;
        padding-top: 0.4rem;
    }

    .listing-meta .views-meta {
        display: none;
    }

    .badge-cat {
        font-size: 0.6rem;
        padding: 0.24rem 0.45rem;
        left: 8px;
        top: 8px;
        max-width: 80%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .badge-featured {
        font-size: 0.6rem;
        padding: 0.24rem 0.45rem;
        right: 8px;
        top: 8px;
    }

    .category-card .count {
        font-size: 0.68rem;
    }

    .category-card .arrow {
        display: none;
    }

    .filter-bar {
        padding: 0.5rem;
        gap: 0.45rem;
        border-radius: 14px;
    }

    .filter-select {
        flex: 1;
        max-width: none;
        font-size: 0.8rem;
        height: 40px;
    }

    .filter-search {
        flex-basis: 100%;
    }

    .filter-search input {
        height: 40px;
    }

    .filter-bar .btn {
        width: 100%;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trust-card {
        gap: 0.8rem;
    }

    .trust-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .site-footer {
        padding-bottom: 0;
    }

    .cta-actions .btn {
        flex: 1;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card .label {
        font-size: 0.7rem;
    }

    .stat-card .hint {
        display: none;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .gallery-thumbs button {
        width: 62px;
        height: 48px;
    }

    .detail-price {
        font-size: 1.4rem;
    }

    .detail-title {
        font-size: 1.15rem;
        line-height: 1.35;
        margin: 0.3rem 0 0.65rem;
    }

    .detail-body {
        padding: 1rem;
    }

    .detail-badges {
        gap: 0.35rem;
        margin-bottom: 0.9rem;
    }

    .detail-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .spec-grid {
        padding: 0.85rem;
        gap: 0.6rem 0.7rem;
        margin: 1.05rem 0 1.35rem;
    }

    .spec-item strong {
        font-size: 0.84rem;
    }

    .dash-topbar .page-sub {
        display: none;
    }

    .form-card {
        padding: 1.1rem;
    }

    .auth-form-wrap h1 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.public-flash { padding-top: 1.1rem; }
/* ============================================================
   Blog, seller profiles and Turnstile (v1.1.0)
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ibp-ease), box-shadow 0.35s var(--ibp-ease);
}

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

.blog-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef1f9;
    overflow: hidden;
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ibp-ease);
}

.blog-card:hover .blog-cover img {
    transform: scale(1.045);
}

.blog-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.82);
    font-size: 2.2rem;
}

.blog-cat {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 24px);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blog-card-body {
    padding: 1.15rem 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    font-size: 0.72rem;
    color: var(--ibp-muted);
}

.blog-meta i {
    color: var(--ibp-teal);
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.35;
    margin: 0;
}

.blog-card-title a {
    color: var(--ibp-ink);
}

.blog-card-title a:hover {
    color: var(--ibp-primary);
}

.blog-card-excerpt {
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--ibp-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .link-arrow {
    margin-top: auto;
    font-size: 0.8rem;
}

.blog-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.blog-sidebar .panel {
    margin-bottom: 0;
}

.blog-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.2rem;
}

.blog-cat-list a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #35415c;
    transition: background 0.2s var(--ibp-ease), color 0.2s var(--ibp-ease);
}

.blog-cat-list a:hover,
.blog-cat-list a.active {
    background: var(--ibp-primary-100);
    color: var(--ibp-primary);
}

.blog-cat-list a > span:last-child {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ibp-muted);
    background: #f2f5fc;
    border-radius: 6px;
    padding: 1px 7px;
}

.blog-cat-list a.active > span:last-child {
    color: var(--ibp-primary);
    background: #dfe5ff;
}

.blog-cat-list .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
}

.blog-popular-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--ibp-line);
}

.blog-popular-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.blog-popular-list li:first-child {
    padding-top: 0.15rem;
}

.blog-popular-list .rank {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ibp-primary);
    background: var(--ibp-primary-100);
    border-radius: 7px;
    text-align: center;
    line-height: 24px;
}

.blog-popular-list a {
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2b3752;
}

.blog-popular-list a:hover {
    color: var(--ibp-teal-dark);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--ibp-line);
    background: #f8faff;
    font-size: 0.74rem;
    font-weight: 600;
    color: #4b5876;
    transition: all 0.2s var(--ibp-ease);
}

.tag-chip:hover,
.tag-chip.active {
    border-color: var(--ibp-teal);
    background: var(--ibp-teal-50);
    color: var(--ibp-teal-dark);
}

.blog-rss a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px dashed var(--ibp-line);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b07310;
}

.blog-rss a:hover {
    border-color: var(--ibp-amber);
    background: var(--ibp-amber-50);
}

.blog-cta {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--ibp-radius);
    background: linear-gradient(150deg, #0c9b7c 0%, #087a61 100%);
    color: #fff;
}

.blog-cta::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    top: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
}

.blog-cta > i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.blog-cta h3 {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0.55rem 0 0.35rem;
}

.blog-cta p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.blog-cta .btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--ibp-teal-dark);
    font-weight: 700;
}

.blog-cta .btn:hover {
    background: #eafff8;
    color: var(--ibp-teal-dark);
}

/* ---------------- Blog article ---------------- */
.blog-article-head {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(600px 300px at 90% -10%, color-mix(in srgb, var(--ibp-primary) 13%, transparent) 0%, transparent 60%),
        linear-gradient(150deg, var(--ibp-surface) 0%, color-mix(in srgb, var(--ibp-primary) 4%, #fff) 100%);
    color: var(--ibp-text);
    border-bottom: 1px solid var(--ibp-line);
    padding: 1.2rem 0 3.4rem;
}

.blog-article-head::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -120px;
    bottom: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ibp-teal) 16%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.blog-article-head .container {
    position: relative;
    z-index: 1;
}

.blog-article-head .blog-cat {
    position: static;
    display: inline-flex;
    margin-bottom: 0.9rem;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
}

.blog-article-head h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    max-width: 46ch;
    margin: 0 0 0.75rem;
}

.blog-article-lead {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--ibp-muted);
    max-width: 66ch;
    margin-bottom: 1.3rem;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1.1rem;
    font-size: 0.78rem;
    color: var(--ibp-muted);
}

.blog-article-meta i {
    color: var(--ibp-primary);
}

.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.7rem 0.3rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.author-chip:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.author-chip strong {
    display: block;
    font-size: 0.78rem;
    line-height: 1.2;
}

.author-chip small {
    display: block;
    font-size: 0.64rem;
    color: #9fb0d8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.blog-article-cover {
    position: relative;
    margin: -2.7rem 0 1.9rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ibp-shadow-lg);
    background: #fff;
    line-height: 0;
}

.blog-article-cover img {
    width: 100%;
    height: auto;
}

.blog-article .prose {
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    white-space: normal;
    font-size: 0.98rem;
    line-height: 1.85;
    color: #2f3b55;
}

.blog-article .prose > :first-child {
    margin-top: 0;
}

.blog-article .prose h2,
.blog-article .prose h3,
.blog-article .prose h4,
.blog-article .prose h5 {
    color: var(--ibp-ink);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 2rem 0 0.7rem;
}

.blog-article .prose h2 { font-size: 1.45rem; }
.blog-article .prose h3 { font-size: 1.22rem; }
.blog-article .prose h4 { font-size: 1.08rem; }
.blog-article .prose h5 { font-size: 1rem; }

.blog-article .prose p {
    margin-bottom: 1.05rem;
}

.blog-article .prose ul,
.blog-article .prose ol {
    margin: 0 0 1.1rem;
    padding-left: 1.35rem;
}

.blog-article .prose li {
    margin-bottom: 0.4rem;
}

.blog-article .prose ul li::marker {
    color: var(--ibp-teal);
}

.blog-article .prose blockquote {
    margin: 1.4rem 0;
    padding: 0.95rem 1.2rem;
    border-left: 4px solid var(--ibp-teal);
    background: #f4faf8;
    border-radius: 0 12px 12px 0;
    color: #33514a;
    font-style: italic;
}

.blog-article .prose code {
    background: #eef2fb;
    color: #1e2d75;
    border-radius: 6px;
    padding: 0.1rem 0.38rem;
    font-size: 0.86em;
}

.blog-article .prose pre {
    background: #0d1734;
    color: #dbe4ff;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.6;
}

.blog-article .prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-article .prose hr {
    border: 0;
    border-top: 1px solid var(--ibp-line);
    margin: 1.8rem 0;
}

.blog-article .prose a {
    color: var(--ibp-primary);
    text-decoration: underline;
    text-decoration-color: rgba(38, 58, 146, 0.3);
    text-underline-offset: 3px;
}

.blog-article .prose a:hover {
    color: var(--ibp-teal-dark);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 1.8rem 0 0;
    padding-top: 1.3rem;
    border-top: 1px solid var(--ibp-line);
    font-size: 0.8rem;
    color: var(--ibp-muted);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding: 0.85rem 1.05rem;
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: 14px;
}

.article-share > span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ibp-ink);
    margin-right: auto;
}

.article-share a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f6fc;
    color: #4b5876;
    transition: all 0.2s var(--ibp-ease);
}

.article-share a:hover {
    background: var(--ibp-primary);
    color: #fff;
    transform: translateY(-2px);
}

.author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding: 1.3rem 1.4rem;
    background: #f8faff;
    border: 1px solid var(--ibp-line);
    border-radius: var(--ibp-radius);
}

.author-box h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0.1rem 0 0.3rem;
}

.author-box p {
    font-size: 0.82rem;
    color: var(--ibp-muted);
    margin-bottom: 0.5rem;
}

.author-box .link-arrow {
    font-size: 0.8rem;
}

.related-block {
    margin-top: 2.6rem;
}

/* Reading progress + table of contents */
.reading-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 1090;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--ibp-primary), #ffa36b);
    transition: transform 0.08s linear;
}

.article-head-copy {
    max-width: 880px;
}

.article-toc-mobile {
    display: none;
    margin-bottom: 1.4rem;
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: 14px;
    overflow: hidden;
}

.article-toc summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    list-style: none;
    padding: 0.95rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ibp-ink);
}

.article-toc summary::-webkit-details-marker {
    display: none;
}

.article-toc summary i {
    color: var(--ibp-teal-dark);
}

.article-toc summary span {
    margin-left: auto;
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--ibp-muted);
}

.article-toc ol {
    list-style: none;
    margin: 0;
    padding: 0 1.1rem 0.7rem;
}

.article-toc li a {
    display: block;
    padding: 0.42rem 0;
    font-size: 0.84rem;
    color: #465272;
    border-top: 1px dashed var(--ibp-line);
}

.article-toc li.toc-level-3 a {
    padding-left: 1rem;
    font-size: 0.78rem;
    color: var(--ibp-muted);
}

.article-toc-panel {
    position: sticky;
    top: 1.2rem;
}

.article-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc-list li a {
    display: block;
    padding: 0.42rem 0.65rem;
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #4b5876;
    transition: background 0.18s var(--ibp-ease), color 0.18s var(--ibp-ease);
}

.article-toc-list li a:hover {
    background: #f3f6fc;
    color: var(--ibp-primary);
}

.article-toc-list li a.active {
    background: #eef6f3;
    border-left-color: var(--ibp-teal);
    color: var(--ibp-teal-dark);
    font-weight: 600;
}

.article-toc-list li.toc-level-3 a {
    padding-left: 1.35rem;
    font-size: 0.78rem;
}

.article-prose :is(h2, h3) {
    scroll-margin-top: 5.5rem;
}

.article-footer-meta {
    margin-top: 1.2rem;
}

.article-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
    color: var(--ibp-muted);
}

.article-updated i {
    color: var(--ibp-teal-dark);
}

@media (max-width: 991.98px) {
    .article-toc-mobile {
        display: block;
    }

    .article-toc-panel {
        display: none;
    }
}

/* ---------------- Seller profile ---------------- */
.seller-hero {
    padding: 0.9rem 0 1.5rem;
    background: linear-gradient(180deg, #eef3ff 0%, var(--ibp-bg) 100%);
}

.seller-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.6rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ibp-line);
    border-radius: 22px;
    padding: 1.8rem;
    box-shadow: var(--ibp-shadow-sm);
}

.seller-identity {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    min-width: 0;
}

.seller-avatar {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    background: linear-gradient(145deg, #263a92 0%, #0c9b7c 120%);
    box-shadow: 0 16px 30px -16px rgba(38, 58, 146, 0.6);
    flex-shrink: 0;
    object-fit: cover;
    overflow: hidden;
}

.seller-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.seller-eyebrow-plain {
    color: var(--ibp-muted);
}

.seller-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ibp-teal-dark);
}

.seller-identity h1 {
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0.25rem 0 0.1rem;
    color: var(--ibp-ink);
}

.seller-owner {
    font-size: 0.8rem;
    color: var(--ibp-muted);
    margin: 0 0 0.4rem;
}

.seller-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    font-size: 0.78rem;
    color: var(--ibp-muted);
}

.seller-meta i {
    color: var(--ibp-primary);
}

.seller-bio {
    font-size: 0.84rem;
    line-height: 1.6;
    color: #4b5876;
    max-width: 62ch;
    margin: 0.65rem 0 0;
}

.seller-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.seller-socials a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--ibp-line);
    background: #f8faff;
    font-size: 0.73rem;
    font-weight: 600;
    color: #4b5876;
}

.seller-socials a:hover {
    border-color: var(--ibp-teal);
    color: var(--ibp-teal-dark);
    background: var(--ibp-teal-50);
}

.seller-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(78px, auto));
    gap: 1.2rem;
    align-items: center;
    border-left: 1px solid var(--ibp-line);
    padding-left: 1.6rem;
}

.seller-stat strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ibp-ink);
    line-height: 1.1;
}

.seller-stat span {
    font-size: 0.7rem;
    color: var(--ibp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.seller-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.seller-cats .filter-chip {
    background: #fff;
    border: 1px solid var(--ibp-line);
    font-size: 0.76rem;
    padding: 0.4rem 0.7rem;
}

/* ---------------- Vendor profile link & Turnstile ---------------- */
.vendor-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ibp-teal-dark);
}

.vendor-profile-link:hover {
    color: var(--ibp-primary);
}

.turnstile-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 0;
}

.turnstile-wrap .form-text {
    color: var(--ibp-muted);
}

@media (max-width: 991.98px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .seller-hero-card {
        grid-template-columns: 1fr;
        padding: 1.4rem;
    }

    .seller-stats {
        border-left: 0;
        border-top: 1px solid var(--ibp-line);
        padding: 1.1rem 0 0;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .blog-article-head {
        padding-bottom: 2.6rem;
    }
}

@media (max-width: 575.98px) {
    .blog-grid {
        gap: 0.9rem;
    }

    .blog-card-body {
        padding: 0.95rem 1rem 1.05rem;
    }

    .blog-card-title {
        font-size: 0.98rem;
    }

    .blog-article-cover {
        margin-top: -1.8rem;
        border-radius: 14px;
    }

    .seller-hero {
        padding-bottom: 1rem;
    }

    .seller-hero-card {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .seller-identity {
        gap: 0.85rem;
    }

    .seller-avatar {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 1.3rem;
    }

    .seller-stat strong {
        font-size: 1.15rem;
    }

    .seller-stat span {
        font-size: 0.62rem;
    }

    .author-box {
        padding: 1rem;
        flex-direction: column;
    }

    .article-share {
        flex-wrap: wrap;
        padding: 0.8rem;
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1.15rem;
    bottom: 1.25rem;
    z-index: 1035;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: var(--ibp-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 14px 30px rgba(16, 27, 63, .28);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover {
    background: var(--ibp-primary);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(38, 58, 146, .32);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--ibp-teal);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .back-to-top {
        right: .9rem;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: none; }
}

/* Advertising slots */
.ad-wrap { padding-top: 1rem; padding-bottom: .35rem; }

.ad-slot {
    position: relative;
    margin: 1.35rem auto;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border: 1px solid #e6ebf5;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%);
    overflow: hidden;
}

.ad-slot-label {
    position: absolute;
    top: .45rem;
    left: .8rem;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa6bf;
    pointer-events: none;
}

.ad-slot-body {
    width: 100%;
    min-width: 1px;
    overflow: hidden;
    padding-top: .35rem;
    text-align: center;
}

.ad-slot-body > * {
    margin-left: auto;
    margin-right: auto;
}

/* AdSense mengukur lebar <ins>; pastikan elemen punya lebar penuh,
   bukan 0 (penyebab error "No slot size for availableWidth=0"). */
.ad-slot-body ins {
    display: block;
    width: 100%;
    min-height: 1px;
}

.ad-slot-body img,
.ad-slot-body iframe,
.ad-slot-body ins,
.ad-slot-body video {
    max-width: 100%;
}

.ad-slot-horizontal { max-width: 970px; min-height: 104px; }
.ad-slot-rectangle { max-width: 100%; min-height: 130px; }
.ad-slot-vertical { max-width: 100%; min-height: 260px; }

@media (max-width: 767.98px) {
    .ad-slot { padding: .8rem; border-radius: 14px; }
    .ad-slot-horizontal { min-height: 90px; }
    .ad-slot-vertical { min-height: 220px; }
}

/* ---------------- Google login ---------------- */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid var(--ibp-line);
    color: var(--ibp-text);
    font-weight: 600;
    padding: 0.72rem 1.1rem;
    border-radius: 12px;
    transition: border-color 0.2s var(--ibp-ease), box-shadow 0.2s var(--ibp-ease), transform 0.2s var(--ibp-ease);
}

.btn-google:hover {
    color: var(--ibp-text);
    border-color: color-mix(in srgb, var(--ibp-primary) 35%, var(--ibp-line));
    box-shadow: var(--ibp-shadow-sm);
    transform: translateY(-1px);
}

.btn-google i {
    color: #4285f4;
    font-size: 1.05rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--ibp-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ibp-line);
}

.directory-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--ibp-muted);
}

.directory-hero-stats i { color: var(--ibp-primary); margin-right: 0.3rem; }

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.9rem;
}

.location-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    background: var(--ibp-surface);
    border: 1px solid var(--ibp-line);
    border-radius: 0.85rem;
    color: var(--ibp-text);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(31, 35, 41, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.location-card:hover {
    border-color: var(--ibp-primary);
    box-shadow: 0 8px 20px rgba(238, 77, 45, 0.1);
    transform: translateY(-2px);
    color: var(--ibp-text);
}

.location-card-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.location-card-name { font-weight: 700; font-size: 0.92rem; color: var(--ibp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-card-count { font-size: 0.76rem; color: var(--ibp-muted); }
.location-card-count i { color: var(--ibp-primary); margin-right: 0.2rem; }
.location-card-arrow { color: var(--ibp-muted); transition: transform 0.18s ease, color 0.18s ease; }
.location-card:hover .location-card-arrow { color: var(--ibp-primary); transform: translateX(3px); }
