/* =========================================================
   HostelBro — Design System (Bootstrap 5.3 theme layer)
   Brand: warm tomato + deep navy on a soft cream canvas
   ========================================================= */
:root {
  --hb-brand: #ff5a36;
  --hb-brand-600: #e8481f;
  --hb-brand-50: #fff1ec;
  --hb-ink: #14213d;
  --hb-ink-2: #2b3a5c;
  --hb-muted: #6b7690;
  --hb-canvas: #faf7f2;
  --hb-card: #ffffff;
  --hb-line: #ebe6dd;
  --hb-teal: #0f9d8a;
  --hb-teal-50: #e6f6f3;
  --hb-amber: #f5a524;
  --hb-amber-50: #fff6e3;
  --hb-red: #e5484d;
  --hb-red-50: #fdecec;
  --hb-blue: #3b6ef5;
  --hb-blue-50: #ebf0ff;
  --hb-radius: 14px;
  --hb-radius-lg: 22px;
  --hb-shadow: 0 1px 2px rgba(20,33,61,.06), 0 8px 24px rgba(20,33,61,.06);
  --hb-shadow-lg: 0 20px 50px rgba(20,33,61,.14);

  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--hb-ink);
  --bs-body-bg: var(--hb-canvas);
  --bs-primary: #ff5a36;
  --bs-primary-rgb: 255, 90, 54;
  --bs-link-color: var(--hb-brand-600);
  --bs-link-color-rgb: 232, 72, 31;
  --bs-link-hover-color: var(--hb-ink);
  --bs-border-color: var(--hb-line);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 14px;
  --bs-secondary-color: var(--hb-muted);
}

body { -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6,.fw-display { font-weight: 800; letter-spacing: -.02em; color: var(--hb-ink); }
.text-muted, .text-body-secondary { color: var(--hb-muted) !important; }
.small-caps { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--hb-muted); }
.text-brand { color: var(--hb-brand) !important; }
.text-ink { color: var(--hb-ink) !important; }
.text-teal { color: var(--hb-teal) !important; }
.bg-brand { background: var(--hb-brand) !important; color: #fff; }
.bg-brand-soft { background: var(--hb-brand-50) !important; }
.bg-ink { background: var(--hb-ink) !important; color: #fff; }
.bg-teal-soft { background: var(--hb-teal-50) !important; }
.bg-amber-soft { background: var(--hb-amber-50) !important; }
.bg-blue-soft { background: var(--hb-blue-50) !important; }
.bg-red-soft { background: var(--hb-red-50) !important; }
.bg-canvas { background: var(--hb-canvas) !important; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .55rem 1.05rem; }
.btn-sm { padding: .35rem .7rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.4rem; border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--hb-brand); --bs-btn-border-color: var(--hb-brand); --bs-btn-hover-bg: var(--hb-brand-600); --bs-btn-hover-border-color: var(--hb-brand-600); --bs-btn-active-bg: var(--hb-brand-600); --bs-btn-active-border-color: var(--hb-brand-600); --bs-btn-disabled-bg: var(--hb-brand); --bs-btn-disabled-border-color: var(--hb-brand); --bs-btn-focus-shadow-rgb: 255,90,54; }
.btn-ink { --bs-btn-color:#fff; --bs-btn-bg: var(--hb-ink); --bs-btn-border-color: var(--hb-ink); --bs-btn-hover-color:#fff; --bs-btn-hover-bg: #0c1529; --bs-btn-hover-border-color:#0c1529; --bs-btn-active-bg:#0c1529; --bs-btn-active-color:#fff; }
.btn-outline-primary { --bs-btn-color: var(--hb-brand-600); --bs-btn-border-color: var(--hb-brand); --bs-btn-hover-bg: var(--hb-brand); --bs-btn-hover-border-color: var(--hb-brand); --bs-btn-active-bg: var(--hb-brand); --bs-btn-active-border-color: var(--hb-brand); }
.btn-soft { background: var(--hb-brand-50); color: var(--hb-brand-600); border: 0; }
.btn-soft:hover { background: #ffe1d6; color: var(--hb-brand-600); }
.btn-light-line { background:#fff; border:1px solid var(--hb-line); color: var(--hb-ink); }
.btn-light-line:hover { border-color: #d9d2c5; background:#fff; }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: var(--hb-line); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #ffb3a1; box-shadow: 0 0 0 .22rem rgba(255,90,54,.15); }
.form-check-input:checked { background-color: var(--hb-brand); border-color: var(--hb-brand); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.input-group-text { background: #fff; border-color: var(--hb-line); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--hb-line); border-radius: var(--hb-radius); box-shadow: var(--hb-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--hb-line); padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.card-flat { box-shadow: none; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--hb-shadow-lg); }

/* ---------- Badges / chips ---------- */
.badge { font-weight: 600; border-radius: 999px; padding: .38em .7em; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--hb-line); background: #fff; font-size: .84rem; font-weight: 600; color: var(--hb-ink-2); cursor: pointer; user-select: none; transition: all .15s; }
.chip:hover { border-color: #d9d2c5; }
.chip.active, .btn-check:checked + .chip { background: var(--hb-ink); border-color: var(--hb-ink); color: #fff; }
.status { display:inline-flex; align-items:center; gap:.35rem; font-size:.78rem; font-weight:700; padding:.28rem .6rem; border-radius:999px; }
.status::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }
.status-success { background: var(--hb-teal-50); color: var(--hb-teal); }
.status-warning { background: var(--hb-amber-50); color: #b7770d; }
.status-danger { background: var(--hb-red-50); color: var(--hb-red); }
.status-info { background: var(--hb-blue-50); color: var(--hb-blue); }
.status-muted { background: #f1eee8; color: var(--hb-muted); }

/* ---------- Public navbar ---------- */
.hb-nav { background: rgba(250,247,242,.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--hb-line); }
.hb-nav .nav-link { font-weight: 600; color: var(--hb-ink-2); }
.hb-nav .nav-link:hover, .hb-nav .nav-link.active { color: var(--hb-brand-600); }
.brand-mark { display:inline-flex; align-items:center; gap:.5rem; font-weight:800; font-size:1.3rem; color: var(--hb-ink); text-decoration:none; letter-spacing:-.03em; }
.brand-mark .logo { width:34px; height:34px; border-radius:10px; background: var(--hb-brand); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:1.05rem; box-shadow: 0 6px 14px rgba(255,90,54,.35); }
.brand-mark span b { color: var(--hb-brand); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 6rem; }
.hero::before { content:""; position:absolute; right:-160px; top:-120px; width:560px; height:560px; border-radius:50%; background: radial-gradient(circle, rgba(255,90,54,.18), transparent 65%); }
.hero::after { content:""; position:absolute; left:-200px; bottom:-260px; width:600px; height:600px; border-radius:50%; background: radial-gradient(circle, rgba(15,157,138,.12), transparent 65%); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; }
.hero h1 .hl { color: var(--hb-brand); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content:""; position:absolute; left:0; right:0; bottom:.08em; height:.18em; background: rgba(255,90,54,.18); border-radius: 4px; z-index:-1; }
.search-panel { background:#fff; border-radius: var(--hb-radius-lg); box-shadow: var(--hb-shadow-lg); padding: .6rem; border:1px solid var(--hb-line); position: relative; z-index: 2; }
.search-panel .seg { padding: .55rem 1rem; border-right: 1px solid var(--hb-line); }
.search-panel .seg:last-of-type { border-right: 0; }
.search-panel .seg label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-muted); display:block; }
.search-panel .seg .form-control, .search-panel .seg .form-select { border: 0; padding: 0; font-weight: 600; box-shadow: none; background-color: transparent; }
@media (max-width: 991.98px) { .search-panel .seg { border-right: 0; border-bottom: 1px solid var(--hb-line); } }
.hero-stats .num { font-size: 1.6rem; font-weight: 800; color: var(--hb-ink); }
.city-pill { display:flex; align-items:center; gap:.75rem; padding:.7rem .9rem; background:#fff; border:1px solid var(--hb-line); border-radius: 14px; text-decoration:none; color: var(--hb-ink); transition: all .15s; }
.city-pill:hover { border-color: var(--hb-brand); color: var(--hb-ink); transform: translateY(-2px); }
.city-pill .ic { width:42px; height:42px; border-radius: 12px; display:flex; align-items:center; justify-content:center; font-size:1.2rem; }

/* ---------- Photo placeholders (swap for real images) ---------- */
.ph { position: relative; background-size: cover; background-position: center; overflow: hidden; color: rgba(255,255,255,.9); }
.ph::after { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 14px 14px; }
.ph > .ph-ic { position:absolute; right: 14px; bottom: 10px; font-size: 2.4rem; opacity:.35; z-index:1; }
.ph-1 { background-image: linear-gradient(135deg, #ff8a5c, #ff5a36 55%, #c73a1d); }
.ph-2 { background-image: linear-gradient(135deg, #2bc0a8, #0f9d8a 55%, #08675b); }
.ph-3 { background-image: linear-gradient(135deg, #6f8bff, #3b6ef5 55%, #2341a8); }
.ph-4 { background-image: linear-gradient(135deg, #ffc45c, #f5a524 55%, #b7770d); }
.ph-5 { background-image: linear-gradient(135deg, #3a4a72, #14213d 60%, #0a1224); }
.ph-6 { background-image: linear-gradient(135deg, #c48bff, #8b5cf6 55%, #5b2fc7); }

/* ---------- Hostel cards ---------- */
.hostel-card { border-radius: var(--hb-radius-lg); overflow: hidden; background:#fff; border:1px solid var(--hb-line); transition: transform .2s, box-shadow .2s; height: 100%; display:flex; flex-direction:column; }
.hostel-card:hover { transform: translateY(-4px); box-shadow: var(--hb-shadow-lg); }
.hostel-card .ph { height: 190px; }
.hostel-card .top-badges { position:absolute; top:12px; left:12px; right:12px; display:flex; justify-content:space-between; z-index:2; }
.hostel-card .fav { width:34px; height:34px; border-radius:50%; background: rgba(255,255,255,.95); color: var(--hb-ink); display:flex; align-items:center; justify-content:center; border:0; }
.hostel-card .fav.on { color: var(--hb-brand); }
.hostel-card .body { padding: 1rem 1.1rem 1.1rem; flex:1; display:flex; flex-direction:column; }
.hostel-card .price { font-weight: 800; font-size: 1.15rem; }
.amen-row { display:flex; flex-wrap:wrap; gap:.4rem; }
.amen-row span { font-size: .76rem; padding: .22rem .5rem; background: #f6f2eb; border-radius: 6px; color: var(--hb-ink-2); font-weight:600; }
.rating { display:inline-flex; align-items:center; gap:.25rem; font-weight:700; font-size:.85rem; }
.rating i { color: var(--hb-amber); }
.gender-tag { font-size:.72rem; font-weight:700; padding:.25rem .55rem; border-radius:6px; background: rgba(255,255,255,.95); color: var(--hb-ink); }

/* ---------- Filters sidebar ---------- */
.filter-box { background:#fff; border:1px solid var(--hb-line); border-radius: var(--hb-radius); padding: 1.1rem; position: sticky; top: 86px; }
.filter-box h6 { font-size: .8rem; text-transform: uppercase; letter-spacing:.06em; color: var(--hb-muted); margin: 1.1rem 0 .6rem; }
.filter-box h6:first-child { margin-top: 0; }
.map-mock { border-radius: var(--hb-radius); min-height: 260px; background: #e9efe9; position: relative; overflow: hidden; border:1px solid var(--hb-line);
  background-image: linear-gradient(#dfe7df 2px, transparent 2px), linear-gradient(90deg, #dfe7df 2px, transparent 2px), linear-gradient(35deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%), linear-gradient(120deg, transparent 48%, #f7e7b8 48%, #f7e7b8 52%, transparent 52%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%; }
.map-pin { position:absolute; transform: translate(-50%,-100%); background: var(--hb-ink); color:#fff; font-weight:700; font-size:.78rem; padding:.3rem .55rem; border-radius: 8px; white-space:nowrap; box-shadow: var(--hb-shadow); cursor:pointer; }
.map-pin::after { content:""; position:absolute; left:50%; bottom:-5px; transform:translateX(-50%); border:6px solid transparent; border-top-color: var(--hb-ink); border-bottom:0; }
.map-pin.hot { background: var(--hb-brand); }
.map-pin.hot::after { border-top-color: var(--hb-brand); }

/* ---------- Detail page ---------- */
.gallery { display:grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; border-radius: var(--hb-radius-lg); overflow:hidden; }
.gallery .ph:first-child { grid-row: span 2; }
.gallery .ph { display:flex; align-items:flex-end; padding: 12px; font-weight:700; font-size:.85rem; }
.gallery .ph span { position: relative; z-index: 2; background: rgba(0,0,0,.25); padding: .2rem .5rem; border-radius: 6px; }
@media (max-width: 767.98px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px 120px; } .gallery .ph:first-child { grid-column: span 2; grid-row: auto; } }
.amenity-tile { display:flex; align-items:center; gap:.75rem; padding:.75rem; border-radius: 12px; background:#fff; border:1px solid var(--hb-line); height:100%; }
.amenity-tile .ic { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.15rem; background: var(--hb-brand-50); color: var(--hb-brand-600); flex-shrink:0; }
.amenity-tile.off { opacity:.45; }
.amenity-tile.off .ic { background:#f1eee8; color: var(--hb-muted); }
.book-card { position: sticky; top: 86px; border-radius: var(--hb-radius-lg); }
.plan-option { border: 1.5px solid var(--hb-line); border-radius: 12px; padding: .8rem 1rem; cursor:pointer; display:flex; justify-content:space-between; align-items:center; transition: all .15s; }
.btn-check:checked + .plan-option { border-color: var(--hb-brand); background: var(--hb-brand-50); }
.offer-strip { border: 1.5px dashed #ffb3a1; background: var(--hb-brand-50); border-radius: 12px; padding: .7rem .9rem; }

/* ---------- Floor / bed map ---------- */
.floor-tabs .nav-link { font-weight:700; color: var(--hb-ink-2); border-radius: 10px; }
.floor-tabs .nav-link.active { background: var(--hb-ink); color:#fff; }
.room-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.room-box { border:1px solid var(--hb-line); border-radius: 12px; background:#fff; padding: .7rem; }
.room-box .rhead { display:flex; justify-content:space-between; align-items:center; margin-bottom:.5rem; font-weight:700; font-size:.88rem; }
.room-box .rhead small { font-weight:600; color: var(--hb-muted); font-size: .72rem; }
.beds { display:flex; flex-wrap:wrap; gap:6px; }
.bed { width: 44px; height: 38px; border-radius: 8px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:.66rem; font-weight:700; border: 1.5px solid; cursor: pointer; transition: transform .1s; line-height:1.05; }
.bed i { font-size: .95rem; }
.bed:hover { transform: scale(1.06); }
.bed.free { background: var(--hb-teal-50); border-color: #9fdccf; color: var(--hb-teal); }
.bed.taken { background: #f1eee8; border-color: #e1dbd0; color: #a49d90; cursor: not-allowed; }
.bed.held { background: var(--hb-amber-50); border-color: #f6d08a; color: #b7770d; }
.bed.notice { background: var(--hb-blue-50); border-color: #b8c9fb; color: var(--hb-blue); }
.bed.selected { background: var(--hb-brand); border-color: var(--hb-brand); color:#fff; box-shadow: 0 4px 12px rgba(255,90,54,.4); }
.legend { display:flex; flex-wrap:wrap; gap: 1rem; font-size:.8rem; font-weight:600; color: var(--hb-ink-2); }
.legend span::before { content:""; display:inline-block; width:12px; height:12px; border-radius:4px; margin-right:.35rem; vertical-align:-1px; border:1.5px solid; }
.legend .l-free::before { background: var(--hb-teal-50); border-color:#9fdccf; }
.legend .l-taken::before { background:#f1eee8; border-color:#e1dbd0; }
.legend .l-held::before { background: var(--hb-amber-50); border-color:#f6d08a; }
.legend .l-notice::before { background: var(--hb-blue-50); border-color:#b8c9fb; }
.legend .l-sel::before { background: var(--hb-brand); border-color: var(--hb-brand); }

/* ---------- Wizard / stepper ---------- */
.stepper { display:flex; gap: .5rem; counter-reset: step; }
.stepper .st { flex:1; display:flex; align-items:center; gap:.6rem; padding:.6rem .5rem; font-weight:700; font-size:.85rem; color: var(--hb-muted); border-bottom: 3px solid var(--hb-line); }
.stepper .st .n { width:28px; height:28px; border-radius:50%; background:#f1eee8; color: var(--hb-muted); display:flex; align-items:center; justify-content:center; font-size:.8rem; flex-shrink:0; }
.stepper .st.active { color: var(--hb-ink); border-color: var(--hb-brand); }
.stepper .st.active .n { background: var(--hb-brand); color:#fff; }
.stepper .st.done { color: var(--hb-teal); border-color: var(--hb-teal); }
.stepper .st.done .n { background: var(--hb-teal); color:#fff; }
@media (max-width: 767.98px) { .stepper .st .lbl { display:none; } }
.step-pane { display:none; }
.step-pane.active { display:block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
.dropzone { border: 2px dashed #e0d8ca; border-radius: 14px; padding: 1.1rem; text-align:center; background: #fffdf9; cursor:pointer; transition: all .15s; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--hb-brand); background: var(--hb-brand-50); }
.dropzone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; }
.dropzone.done { border-style: solid; border-color: #9fdccf; background: var(--hb-teal-50); }
.doc-req { display:flex; gap:.75rem; align-items:flex-start; }

/* ---------- App shell (portals) ---------- */
.app { display:flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: var(--hb-ink); color: #c9d0e0; position: fixed; top:0; bottom:0; left:0; z-index: 1040; display:flex; flex-direction:column; transition: transform .25s ease; }
.sidebar .brand-mark { color:#fff; padding: 1.15rem 1.25rem; }
.sidebar .side-scroll { overflow-y:auto; flex:1; padding: .25rem .75rem 1rem; }
.sidebar .side-label { font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; color:#6f7ba0; font-weight:700; padding: 1rem .65rem .4rem; }
.sidebar .side-link { display:flex; align-items:center; gap:.7rem; padding: .58rem .7rem; border-radius: 10px; color:#c9d0e0; text-decoration:none; font-weight:600; font-size:.9rem; margin-bottom: 2px; }
.sidebar .side-link i { font-size: 1.05rem; width: 20px; text-align:center; }
.sidebar .side-link:hover { background: rgba(255,255,255,.06); color:#fff; }
.sidebar .side-link.active { background: var(--hb-brand); color:#fff; box-shadow: 0 6px 16px rgba(255,90,54,.35); }
.sidebar .side-link .badge { margin-left:auto; background: rgba(255,255,255,.14); }
.sidebar .side-link.active .badge { background: rgba(255,255,255,.25); }
.sidebar .side-foot { padding: .9rem 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.prop-switch { background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius: 12px; padding:.6rem .75rem; margin: 0 .75rem .25rem; color:#fff; cursor:pointer; }
.main { flex:1; margin-left: 264px; min-width: 0; }
.topbar { position: sticky; top:0; z-index: 1030; background: rgba(250,247,242,.9); backdrop-filter: blur(10px); border-bottom:1px solid var(--hb-line); padding: .7rem 1.5rem; display:flex; align-items:center; gap: 1rem; }
.topbar .search { max-width: 380px; }
.content { padding: 1.5rem; }
.page-head { display:flex; flex-wrap:wrap; gap: 1rem; align-items:flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.55rem; margin: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; flex-shrink:0; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.av-1 { background:#ffe1d6; color:#c73a1d; } .av-2 { background:#d4f1eb; color:#08675b; } .av-3 { background:#dbe4ff; color:#2341a8; } .av-4 { background:#ffeec8; color:#8a5a07; } .av-5 { background:#ece3ff; color:#5b2fc7; }
.sidebar-backdrop { display:none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .sidebar-backdrop.show { display:block; position:fixed; inset:0; background: rgba(10,18,36,.45); z-index: 1035; }
  .content { padding: 1rem; }
  .topbar { padding: .6rem 1rem; }
}
.app-section { display:none; }
.app-section.active { display:block; animation: fadeUp .25s ease; }

/* ---------- KPI tiles ---------- */
.kpi { background:#fff; border:1px solid var(--hb-line); border-radius: var(--hb-radius); padding: 1.1rem 1.2rem; height:100%; box-shadow: var(--hb-shadow); }
.kpi .lbl { font-size:.8rem; color: var(--hb-muted); font-weight:600; }
.kpi .val { font-size: 1.65rem; font-weight: 800; letter-spacing:-.02em; margin: .2rem 0; }
.kpi .ic { width:42px; height:42px; border-radius: 12px; display:flex; align-items:center; justify-content:center; font-size: 1.2rem; }
.kpi .delta { font-size:.78rem; font-weight:700; }
.delta.up { color: var(--hb-teal); } .delta.down { color: var(--hb-red); }
.progress { height: 8px; border-radius: 99px; background:#f1eee8; }
.progress-bar { background: var(--hb-brand); border-radius: 99px; }
.progress-bar.teal { background: var(--hb-teal); }
.progress-bar.amber { background: var(--hb-amber); }
.progress-bar.blue { background: var(--hb-blue); }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { font-size:.74rem; text-transform: uppercase; letter-spacing:.06em; color: var(--hb-muted); font-weight:700; border-bottom-width: 1px; white-space: nowrap; padding: .75rem 1rem; background: #fcfaf6; }
.table > tbody td { padding: .8rem 1rem; vertical-align: middle; border-color: var(--hb-line); font-size: .9rem; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #fcf8f2; }
.table-card { border-radius: var(--hb-radius); overflow: hidden; }

/* ---------- Misc ---------- */
.section-title { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 1.25rem; gap:1rem; }
.feature-ic { width:52px; height:52px; border-radius: 14px; display:flex; align-items:center; justify-content:center; font-size: 1.4rem; }
.persona-card { border-radius: var(--hb-radius-lg); padding: 1.6rem; height: 100%; background:#fff; border: 1px solid var(--hb-line); transition: all .2s; position: relative; overflow:hidden; }
.persona-card:hover { box-shadow: var(--hb-shadow-lg); transform: translateY(-4px); }
.persona-card ul { padding-left: 0; list-style: none; margin: 0; }
.persona-card li { padding: .3rem 0; font-size: .92rem; color: var(--hb-ink-2); }
.persona-card li i { color: var(--hb-teal); margin-right: .4rem; }
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before { content:""; position:absolute; left:6px; top:4px; bottom:4px; width:2px; background: var(--hb-line); }
.tl-item { position: relative; padding-bottom: 1rem; }
.tl-item::before { content:""; position:absolute; left:-1.4rem; top: 4px; width:14px; height:14px; border-radius:50%; background:#fff; border: 3px solid var(--hb-brand); }
.tl-item.teal::before { border-color: var(--hb-teal); }
.tl-item.amber::before { border-color: var(--hb-amber); }
.tl-item.blue::before { border-color: var(--hb-blue); }
.msg-preview { background: #e8f5e3; border-radius: 14px 14px 14px 4px; padding: .8rem 1rem; font-size: .88rem; max-width: 340px; box-shadow: 0 1px 1px rgba(0,0,0,.06); white-space: pre-line; }
.phone-frame { border-radius: 28px; border: 8px solid var(--hb-ink); background: #efe7dd; padding: 1rem .8rem; min-height: 380px; max-width: 320px; margin: 0 auto; background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 12px 12px; }
.meal-tab { border:1px solid var(--hb-line); border-radius: 14px; padding: .85rem 1rem; background:#fff; cursor:pointer; transition: all .15s; height:100%; }
.btn-check:checked + .meal-tab { border-color: var(--hb-brand); box-shadow: 0 0 0 3px rgba(255,90,54,.15); }
.meal-tab .ic { font-size: 1.4rem; }
.empty-state { text-align:center; padding: 2.5rem 1rem; color: var(--hb-muted); }
.empty-state i { font-size: 2.4rem; display:block; margin-bottom: .5rem; opacity:.5; }
.footer { background: var(--hb-ink); color: #aab3c9; }
.footer a { color: #d7dcea; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer h6 { color:#fff; font-size:.85rem; text-transform: uppercase; letter-spacing:.08em; }
.cta-band { background: var(--hb-ink); color:#fff; border-radius: var(--hb-radius-lg); padding: 2.5rem; position: relative; overflow:hidden; }
.cta-band::after { content:""; position:absolute; right:-80px; top:-80px; width:280px; height:280px; border-radius:50%; background: rgba(255,90,54,.35); filter: blur(10px); }
.cta-band h2 { color:#fff; }
.toast-container { z-index: 2000; }
.dropdown-menu { border-radius: 12px; border-color: var(--hb-line); box-shadow: var(--hb-shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 8px; font-weight: 500; padding: .45rem .75rem; }
.modal-content { border-radius: var(--hb-radius-lg); border: 0; }
.modal-header, .modal-footer { border-color: var(--hb-line); }
.nav-pills-hb .nav-link { color: var(--hb-ink-2); font-weight: 600; border-radius: 10px; }
.nav-pills-hb .nav-link.active { background: var(--hb-ink); color: #fff; }
.nav-underline .nav-link { color: var(--hb-muted); font-weight: 700; }
.nav-underline .nav-link.active { color: var(--hb-ink); border-bottom-color: var(--hb-brand); }
.notice-card { border-left: 4px solid var(--hb-brand); }
.kbd-hint { font-size:.7rem; border:1px solid var(--hb-line); border-radius:6px; padding:.05rem .35rem; color: var(--hb-muted); background:#fff; }
.divider-text { display:flex; align-items:center; gap:.75rem; color: var(--hb-muted); font-size:.8rem; }
.divider-text::before, .divider-text::after { content:""; flex:1; height:1px; background: var(--hb-line); }
.auth-side { background: var(--hb-ink); color: #fff; position: relative; overflow:hidden; }
.auth-side::before { content:""; position:absolute; width:420px; height:420px; border-radius:50%; right:-140px; top:-120px; background: radial-gradient(circle, rgba(255,90,54,.55), transparent 65%); }
.auth-side h2 { color:#fff; }
.role-option { border:1.5px solid var(--hb-line); border-radius: 14px; padding: .85rem; text-align:center; cursor:pointer; height:100%; background:#fff; transition: all .15s; }
.role-option i { font-size: 1.5rem; display:block; margin-bottom: .25rem; color: var(--hb-ink-2); }
.btn-check:checked + .role-option { border-color: var(--hb-brand); background: var(--hb-brand-50); }
.btn-check:checked + .role-option i { color: var(--hb-brand); }
.otp-input { width: 48px; height: 54px; text-align:center; font-size: 1.3rem; font-weight: 700; }
.mini-stat { padding: .7rem .9rem; border-radius: 12px; background: #fcfaf6; border:1px solid var(--hb-line); }
.scroll-x { overflow-x: auto; }
.cursor-pointer { cursor: pointer; }
.fs-7 { font-size: .85rem; } .fs-8 { font-size: .76rem; }
.fw-600 { font-weight:600; } .fw-700 { font-weight:700; } .fw-800 { font-weight:800; }
.lh-tight { line-height: 1.15; }
.rounded-xl { border-radius: var(--hb-radius-lg) !important; }
a.chip { text-decoration: none; }
.form-range::-webkit-slider-thumb { background: var(--hb-brand); }
.form-range::-moz-range-thumb { background: var(--hb-brand); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 .22rem rgba(255,90,54,.2); }
.nav-underline .nav-link { white-space: nowrap; }

/* ---------- Financial statements ---------- */
.statement-table > tbody td { padding: .5rem 1rem; font-size: .88rem; }
.statement-table > tbody tr.fw-800 td { border-top: 1.5px solid var(--hb-ink); }
.statement-table td.small-caps { letter-spacing: .1em; }
.bg-amber-soft > td, tr.bg-amber-soft > * { --bs-table-bg: var(--hb-amber-50); }
.table-active > * { --bs-table-bg-state: var(--hb-brand-50) !important; }

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  .sidebar, .sidebar-backdrop, .topbar, .no-print, .toast-container { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 0 !important; }
  .app-section { display: none !important; }
  #statements.active { display: block !important; animation: none; }
  #statements .col-xl-8 { width: 100% !important; flex: 0 0 100%; max-width: 100%; }
  .card { box-shadow: none !important; border-color: #ccc !important; }
  .statement-table { font-size: 11pt; }
  .bg-canvas, .bg-teal-soft { background: #f3f3f3 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.btn-check:checked + .btn-light-line { background: var(--hb-ink); color: #fff; border-color: var(--hb-ink); }
.form-select { padding-right: 2.25rem; }
@media (max-width: 575.98px) { .kpi .val { font-size: 1.25rem; } .kpi { padding: .9rem; } }
