/* ==========================================================================
   BidNexa — public website + participant app
   ========================================================================== */
.navbar-bn { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); padding: .6rem 0; }
.navbar-bn.dark { background: rgba(15, 23, 42, .82); border-bottom-color: rgba(255, 255, 255, .08); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); }
.brand .logo { width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--accent-light); display: grid; place-items: center; font-size: 1.05rem; transform: rotate(-6deg); }
.brand b { color: #6f9400; }
.navbar-bn .nav-link { font-weight: 600; font-size: .92rem; color: var(--ink-3); padding: .5rem .9rem !important; border-radius: 10px; }
.navbar-bn .nav-link:hover, .navbar-bn .nav-link.active { color: var(--ink); background: #eef1f7; }
.nav-bell { position: relative; }
.nav-bell .dot { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: .62rem; display: none; place-items: center; font-weight: 700; padding: 0 4px; border: 2px solid #fff; }
.dropdown-menu { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: .4rem; }
.dropdown-item { border-radius: 9px; font-size: .9rem; padding: .5rem .75rem; font-weight: 500; }
.dropdown-item i { width: 1.3rem; display: inline-block; color: var(--muted); }
.dropdown-item:active { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(37, 99, 235, .22), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(59, 107, 255, .25), transparent 55%), linear-gradient(160deg, #0a1530 0%, #111a33 60%, #0f1f3d 100%); color: #fff; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero .lead { color: #b6c0d8; font-size: 1.1rem; max-width: 34rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats b { display: block; font-size: 1.6rem; color: #fff; letter-spacing: -.02em; }
.hero-stats span { color: #8e9bbb; font-size: .82rem; }
.book-widget { background: #fff; color: var(--ink); border-radius: 22px; padding: 1.5rem; box-shadow: var(--shadow-lg); }
.book-widget h5 { font-size: 1.15rem; }
.loc-input { position: relative; }
.loc-input .form-control { padding-left: 2.7rem; height: 52px; background: #f3f5fa; border-color: transparent; font-weight: 500; }
.loc-input .form-control:focus { background: #fff; }
.loc-input .pin { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); z-index: 3; }
.loc-input .pin.drop { background: var(--red); border-radius: 3px; box-shadow: 0 0 0 4px rgba(239, 68, 68, .16); }
.loc-input .pin.stop { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.loc-input .tools { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); display: flex; gap: .15rem; z-index: 3; }
.loc-input .tools button { border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 9px; }
.loc-input .tools button:hover { background: #e4e8f1; color: var(--ink); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 1100; max-height: 280px; overflow-y: auto; display: none; }
.suggest.show { display: block; }
.suggest button { display: flex; gap: .7rem; align-items: flex-start; width: 100%; text-align: left; border: 0; background: transparent; padding: .65rem .9rem; font-size: .88rem; border-bottom: 1px solid #f1f3f8; }
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover { background: #f6f8fc; }
.suggest button i { color: var(--muted); margin-top: 2px; }
.suggest .none { padding: .8rem 1rem; color: var(--muted); font-size: .85rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-head { max-width: 40rem; margin: 0 auto 2.8rem; text-align: center; }
.section-head .eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1e40af; background: var(--accent-soft); padding: .3rem .8rem; border-radius: 999px; margin-bottom: .9rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.feature-card { padding: 1.6rem; height: 100%; }
.feature-card h5 { margin: 1rem 0 .4rem; font-size: 1.08rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .93rem; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent-light); display: grid; place-items: center; font-weight: 800; }
.cat-card { padding: 1.4rem; text-align: center; }
.cat-card .car { font-size: 2.6rem; color: var(--ink); }
.cat-card .price { color: var(--muted); font-size: .85rem; }
.cta-band { background: linear-gradient(120deg, var(--ink), #1c2a52); border-radius: 28px; color: #fff; padding: 3rem; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; width: 380px; height: 380px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 65%); }
.cta-band h3 { color: #fff; font-size: 1.9rem; font-weight: 800; }
.cta-band p { color: #b6c0d8; }

.accordion-bn .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .7rem; overflow: hidden; background: #fff; }
.accordion-bn .accordion-button { font-weight: 600; background: #fff; box-shadow: none !important; padding: 1.05rem 1.25rem; }
.accordion-bn .accordion-button:not(.collapsed) { color: var(--ink); background: #fafcf2; }
.accordion-bn .accordion-body { color: var(--ink-3); font-size: .95rem; }

footer.site { background: var(--ink); color: #94a3c0; padding: 3.5rem 0 1.5rem; }
footer.site h6 { color: #fff; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
footer.site a { color: #94a3c0; font-size: .92rem; display: block; padding: .2rem 0; }
footer.site a:hover { color: var(--accent-light); }
footer.site .brand { color: #fff; }
footer.site .brand b { color: var(--accent-light); }
footer.site hr { border-color: rgba(255, 255, 255, .08); }

/* ---------- Auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.auth-side { position: relative; background: radial-gradient(800px 400px at 80% 0%, rgba(37, 99, 235, .25), transparent 60%), linear-gradient(160deg, #0a1530, #1e3a6e); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg, transparent, #000 60%); pointer-events: none; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color: #fff; }
.auth-side .brand b { color: var(--accent-light); }
.auth-side h2 { color: #fff; font-size: 2.2rem; font-weight: 800; line-height: 1.15; }
.auth-side ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; color: #b6c0d8; }
.auth-side ul i { color: var(--accent-light); margin-right: .6rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h3 { font-weight: 800; font-size: 1.7rem; }
.auth-tabs { display: flex; background: #eef1f7; border-radius: 12px; padding: 4px; margin-bottom: 1.4rem; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: .55rem; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.demo-otp { background: var(--accent-soft); border: 1px dashed #1d4ed8; border-radius: 12px; padding: .7rem 1rem; font-size: .88rem; }
.demo-otp b { font-size: 1.15rem; letter-spacing: .2em; }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Booking page ---------- */
.book-grid { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.book-panel { position: sticky; top: 86px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.map-wrap { position: sticky; top: 86px; height: calc(100vh - 106px); min-height: 480px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
#bookMap, .map-fill { width: 100%; height: 100%; }
.map-hint { position: absolute; z-index: 500; left: 50%; transform: translateX(-50%); bottom: 18px; background: rgba(15, 23, 42, .9); color: #fff; padding: .5rem 1rem; border-radius: 999px; font-size: .82rem; display: none; white-space: nowrap; }
.veh-list { display: grid; gap: .6rem; }
.veh-card { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: all .15s; position: relative; }
.veh-card:hover { border-color: #c3cde0; }
.veh-card.selected { border-color: var(--ink); background: #fbfdf3; box-shadow: 0 8px 22px -14px rgba(15, 23, 42, .6); }
.veh-card.disabled { opacity: .55; cursor: not-allowed; }
.veh-card .ic { width: 52px; height: 52px; border-radius: 14px; background: #f1f4fa; display: grid; place-items: center; font-size: 1.7rem; }
.veh-card .meta { flex: 1; min-width: 0; }
.veh-card .meta b { display: block; font-size: 1rem; }
.veh-card .meta small { color: var(--muted); font-size: .78rem; }
.veh-card .fare { text-align: right; font-weight: 800; font-size: 1.1rem; }
.veh-card .fare small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.fare-lines .kv { font-size: .85rem; padding: .3rem 0; }
.coupon-chip { border: 1px dashed #a3b3d4; border-radius: 12px; padding: .5rem .8rem; font-size: .8rem; cursor: pointer; background: #fff; text-align: left; width: 100%; }
.coupon-chip:hover { background: #f5f8ff; }
.seg { display: flex; gap: .4rem; flex-wrap: wrap; }
.seg input { display: none; }
.seg label { cursor: pointer; padding: .5rem .95rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: .86rem; font-weight: 600; background: #fff; }
.seg input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.saved-chip { border: 1px solid var(--line); background: #fff; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.saved-chip:hover { background: #f1f4fa; }

@media (max-width: 991.98px) {
    .book-grid { grid-template-columns: 1fr; }
    .book-panel { position: static; max-height: none; overflow: visible; order: 2; }
    .map-wrap { position: relative; top: 0; height: 320px; min-height: 0; order: 1; }
    .section { padding: 3.2rem 0; }
}

/* ---------- Ride page ---------- */
.ride-hero-map { height: 380px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.otp-box { display: inline-flex; gap: .4rem; }
.otp-box span { width: 44px; height: 54px; border-radius: 12px; background: var(--ink); color: var(--accent-light); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
.search-pulse { padding: 2rem 1rem; text-align: center; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.rating-stars input { display: none; }
.rating-stars label { font-size: 2rem; color: #d3d8e4; cursor: pointer; line-height: 1; transition: color .1s; }
.rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: #2563eb; }
.star-static { color: #2563eb; }

.invoice { max-width: 760px; margin: 2rem auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem; }
.invoice .total { font-size: 1.6rem; font-weight: 800; }

/* ---------- Mobile bottom bar (customer) ---------- */
.bottom-nav { display: none; }
@media (max-width: 767.98px) {
    body.has-bottom-nav { padding-bottom: 72px; }
    .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--line); padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom)); justify-content: space-around; }
    .bottom-nav a { flex: 1; text-align: center; color: var(--muted); font-size: .68rem; font-weight: 600; padding: .35rem 0; border-radius: 12px; }
    .bottom-nav a i { display: block; font-size: 1.3rem; }
    .bottom-nav a.active { color: var(--ink); background: var(--accent-soft); }
    .hero .book-widget { margin-top: 1.5rem; }
    .cta-band { padding: 2rem 1.4rem; border-radius: 22px; }
    .invoice { padding: 1.3rem; margin: 1rem auto; }
}

/* ---------- Dark navbar variant (landing pages) ---------- */
.navbar-bn.dark .brand { color: #fff; }
.navbar-bn.dark .brand b { color: var(--accent-light); }
.navbar-bn.dark .brand .logo { background: var(--accent); color: #fff; }
.navbar-bn.dark .nav-link { color: #c3cde6; }
.navbar-bn.dark .nav-link:hover, .navbar-bn.dark .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }
.navbar-bn.dark .navbar-toggler { color: #fff; }
.navbar-bn.dark .btn-soft { background: rgba(255, 255, 255, .1); color: #fff; }
.navbar-bn.dark .btn-soft:hover { background: rgba(255, 255, 255, .18); }
.navbar-bn.dark .btn-dark { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 991.98px) { .navbar-bn.dark .navbar-collapse { background: rgba(15, 23, 42, .98); margin: .6rem -.75rem -.6rem; padding: .75rem 1rem; border-radius: 0 0 16px 16px; } }
@media (max-width: 991.98px) { .navbar-bn .navbar-collapse { padding-bottom: .5rem; } }
