/* ==========================================================================
   Sromik Chai — design system
   Brand colours come from the logo: royal blue, signal red and helmet gold.
   Admin can override --sc-primary / --sc-accent / --sc-highlight (layout <style>).
   ========================================================================== */

@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../vendor/fonts/hind-siliguri-bengali-400-normal.woff2') format('woff2'); unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../vendor/fonts/hind-siliguri-bengali-500-normal.woff2') format('woff2'); unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../vendor/fonts/hind-siliguri-bengali-600-normal.woff2') format('woff2'); unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../vendor/fonts/hind-siliguri-bengali-700-normal.woff2') format('woff2'); unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../vendor/fonts/hind-siliguri-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../vendor/fonts/hind-siliguri-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../vendor/fonts/hind-siliguri-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Hind Siliguri'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../vendor/fonts/hind-siliguri-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --sc-primary: #1a3fa8;
  --sc-primary-dark: #102a78;
  --sc-accent: #e2231a;
  --sc-highlight: #f6b100;
  --sc-ink: #1b2236;
  --sc-muted: #5d6680;
  --sc-line: #e3e8f2;
  --sc-bg: #f4f6fb;
  --sc-card: #ffffff;
  --sc-radius: 14px;
  --sc-shadow: 0 1px 2px rgba(16, 32, 80, .06), 0 6px 20px rgba(16, 32, 80, .06);
  --sc-shadow-lg: 0 10px 40px rgba(16, 32, 80, .14);
  --bs-body-font-family: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
  --bs-body-color: var(--sc-ink);
  --bs-body-bg: var(--sc-bg);
  --bs-primary: var(--sc-primary);
  --bs-primary-rgb: 26, 63, 168;
  --bs-link-color: var(--sc-primary);
  --bs-link-color-rgb: 26, 63, 168;
  --bs-link-hover-color: var(--sc-primary-dark);
  --bs-border-color: var(--sc-line);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 14px;
}

html { scroll-behavior: smooth; }
body { font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6, .fw-bold { letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.text-muted { color: var(--sc-muted) !important; }
.small-muted { font-size: .875rem; color: var(--sc-muted); }
a { text-decoration: none; }
.min-w-0 { min-width: 0; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .55rem 1.1rem; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-sm { min-height: 34px; padding: .3rem .75rem; border-radius: 8px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: .7rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--sc-primary); --bs-btn-border-color: var(--sc-primary); --bs-btn-hover-bg: var(--sc-primary-dark); --bs-btn-hover-border-color: var(--sc-primary-dark); --bs-btn-active-bg: var(--sc-primary-dark); --bs-btn-disabled-bg: var(--sc-primary); --bs-btn-disabled-border-color: var(--sc-primary); }
.btn-outline-primary { --bs-btn-color: var(--sc-primary); --bs-btn-border-color: var(--sc-primary); --bs-btn-hover-bg: var(--sc-primary); --bs-btn-hover-border-color: var(--sc-primary); --bs-btn-active-bg: var(--sc-primary); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--sc-accent); --bs-btn-border-color: var(--sc-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #c01b13; --bs-btn-hover-border-color: #c01b13; --bs-btn-active-bg: #a91710; --bs-btn-active-color: #fff; }
.btn-highlight { --bs-btn-color: #1b2236; --bs-btn-bg: var(--sc-highlight); --bs-btn-border-color: var(--sc-highlight); --bs-btn-hover-bg: #e0a100; --bs-btn-hover-border-color: #e0a100; --bs-btn-active-bg: #c98f00; }
.btn-soft { background: #eef2fc; color: var(--sc-primary); border: 0; }
.btn-soft:hover { background: #e1e8fa; color: var(--sc-primary-dark); }
.btn-icon { width: 42px; padding: 0; }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--sc-line); position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { padding: .45rem 0; }
.brand-logo { height: 64px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.site-header .nav-link { font-weight: 600; color: var(--sc-ink); padding: .5rem .8rem !important; border-radius: 8px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--sc-primary); background: #f0f4fd; }
/* Highlighted "Video tutorials" menu item: accent-tinted pill with a pulsing play button. */
.site-header .nav-link.nav-tutorials { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem .4rem .4rem !important; border-radius: 999px; color: var(--sc-accent);
  background: color-mix(in srgb, var(--sc-accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--sc-accent) 22%, #fff); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.nav-tut-icon { position: relative; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1rem; color: #fff; background: var(--sc-accent); transition: background-color .2s ease, color .2s ease; }
.nav-tut-icon i { margin-left: 2px; }
.nav-tut-icon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 color-mix(in srgb, var(--sc-accent) 55%, transparent); animation: nav-tut-pulse 2.2s ease-out infinite; }
.site-header .nav-link.nav-tutorials:hover, .site-header .nav-link.nav-tutorials:focus-visible, .site-header .nav-link.nav-tutorials.active { color: #fff; background: var(--sc-accent); border-color: var(--sc-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--sc-accent) 35%, transparent); }
.site-header .nav-link.nav-tutorials:hover { transform: translateY(-1px); }
.nav-tutorials:hover .nav-tut-icon, .nav-tutorials:focus-visible .nav-tut-icon, .nav-tutorials.active .nav-tut-icon { background: #fff; color: var(--sc-accent); }
@keyframes nav-tut-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 991.98px) { .site-header .nav-link.nav-tutorials { display: flex; margin: .2rem 0; } }
@media (prefers-reduced-motion: reduce) { .nav-tut-icon::after { animation: none; } .site-header .nav-link.nav-tutorials:hover { transform: none; } }
.lang-switch { display: inline-flex; background: #eef2fc; border-radius: 999px; padding: 3px; }
.lang-switch a { padding: .2rem .65rem; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--sc-muted); min-height: 30px; display: inline-flex; align-items: center; }
.lang-switch a.active { background: var(--sc-primary); color: #fff; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--sc-ink); background: #f3f5fb; font-size: 1.2rem; }
.icon-btn:hover { background: #e6ebf8; color: var(--sc-primary); }
.badge-dot { position: absolute; top: -2px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--sc-accent); color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.badge-dot.d-none { display: none !important; }
.avatar { border-radius: 50%; object-fit: cover; background: #e9eef9; flex-shrink: 0; }
.notif-menu { width: min(360px, 92vw); max-height: 70vh; overflow-y: auto; }
.notif-item { white-space: normal; padding: .65rem 1rem; border-bottom: 1px solid var(--sc-line); display: flex; gap: .7rem; font-size: .9rem; }
.notif-item.unread { background: #f3f6ff; }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; background: #e8eefc; color: var(--sc-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Mobile bottom navigation */
.bottom-nav { display: none; }
@media (max-width: 991.98px) {
  .brand-logo { height: 50px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--sc-line); box-shadow: 0 -4px 16px rgba(16, 32, 80, .06); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: .45rem .15rem; min-height: 58px; font-size: .72rem; line-height: 1.2; font-weight: 600; color: var(--sc-muted); position: relative; white-space: nowrap; }
  .bottom-nav a .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .bottom-nav a i { font-size: 1.3rem; }
  .bottom-nav a.active { color: var(--sc-primary); }
  .bottom-nav a.cta i { background: var(--sc-accent); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: -20px; box-shadow: 0 6px 14px rgba(226, 35, 26, .35); border: 3px solid #fff; }
  .bottom-nav .badge-dot { top: 4px; right: calc(50% - 22px); }
  body.has-bottom-nav { padding-bottom: 64px; }
}

/* ---------- Cards & sections ---------- */
.card { border: 1px solid var(--sc-line); border-radius: var(--sc-radius); box-shadow: var(--sc-shadow); background: var(--sc-card); }
.card-header { background: #fff; border-bottom: 1px solid var(--sc-line); font-weight: 700; padding: .85rem 1.1rem; border-radius: var(--sc-radius) var(--sc-radius) 0 0 !important; }
.card-body { padding: 1.1rem; }
@media (min-width: 768px) { .card-body { padding: 1.35rem; } }
.section { padding: 3rem 0; }
@media (min-width: 992px) { .section { padding: 4.5rem 0; } }
.section-title { font-weight: 700; margin-bottom: .25rem; }
.section-sub { color: var(--sc-muted); margin-bottom: 1.75rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--sc-accent); }
.page-head { background: linear-gradient(120deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%); color: #fff; padding: 1.75rem 0 4.25rem; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.page-head p { opacity: .85; margin: .25rem 0 0; }
.page-body { margin-top: -3rem; position: relative; z-index: 2; padding-bottom: 3rem; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); margin-bottom: .5rem; font-size: .875rem; }
.page-head .breadcrumb a { color: #fff; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(246,177,0,.25), transparent 60%), linear-gradient(125deg, var(--sc-primary) 0%, var(--sc-primary-dark) 70%); color: #fff; position: relative; overflow: hidden; padding: 2.5rem 0 3.5rem; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 20px 20px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 700; line-height: 1.2; }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.08rem; }
.hero-strip { display: inline-flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; background: var(--sc-highlight); color: #1b2236; font-weight: 700; padding: .35rem .9rem; border-radius: 999px; font-size: .9rem; }
.hero-search { background: #fff; border-radius: 16px; padding: .6rem; box-shadow: var(--sc-shadow-lg); }
.hero-search .form-control, .hero-search .form-select { border: 0; min-height: 50px; font-size: 1rem; background-color: #f4f6fb; }
.hero-search .form-control:focus, .hero-search .form-select:focus { box-shadow: 0 0 0 3px rgba(26,63,168,.2); }
.hero-visual { position: relative; max-width: 540px; margin-left: auto; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; display: block; border-radius: 28px; box-shadow: 0 24px 60px rgba(4, 16, 60, .45); outline: 6px solid rgba(255, 255, 255, .14); }
.hero-chip { position: absolute; background: #fff; color: var(--sc-ink); border-radius: 12px; padding: .5rem .8rem; box-shadow: var(--sc-shadow-lg); font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: .45rem; }
.hero-chip i { font-size: 1.15rem; }
.hero-chip.c1 { left: -18px; top: 4%; }
.hero-chip.c2 { right: -14px; bottom: 12%; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 575.98px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-chip { font-size: .75rem; padding: .35rem .6rem; }
  .hero-chip.c1 { left: 8px; top: 6%; }
  .hero-chip.c2 { right: 8px; top: 6%; left: auto; }
  .hero-chip.c2 { display: none; }
}
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: .7rem .9rem; }
.hero-stat strong { display: block; font-size: 1.4rem; line-height: 1.1; }
.hero-stat span { font-size: .82rem; opacity: .85; }
@media (max-width: 991.98px) { .hero-visual { margin: 1.5rem auto 0; } .hero-chip.c1 { left: 6px; } .hero-chip.c2 { right: 6px; } }

/* ---------- Category tiles ---------- */
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1.1rem .6rem; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); height: 100%; color: var(--sc-ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sc-shadow-lg); border-color: transparent; color: var(--sc-ink); }
.cat-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.75rem; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 6px 14px rgba(0,0,0,.08); flex-shrink: 0; }
.cat-icon.sm { width: 40px; height: 40px; font-size: 1.1rem; box-shadow: none; }
.cat-tile .name { font-weight: 700; line-height: 1.25; font-size: .95rem; }
.cat-tile .alt { font-size: .8rem; color: var(--sc-muted); line-height: 1.2; }
.cat-tile .count { font-size: .78rem; color: var(--sc-primary); font-weight: 600; }

/* ---------- Worker card ---------- */
.worker-card { height: 100%; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.worker-card:hover { box-shadow: var(--sc-shadow-lg); transform: translateY(-2px); }
.worker-card .card-body { display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.worker-card .wc-top { display: flex; gap: .8rem; align-items: center; min-width: 0; }
.worker-card .wc-name { font-weight: 700; font-size: 1.02rem; color: var(--sc-ink); line-height: 1.25; }
.worker-card .wc-name:hover { color: var(--sc-primary); }
.worker-card .wc-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .85rem; color: var(--sc-muted); }
.worker-card .wc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .7rem; border-top: 1px dashed var(--sc-line); }
.wage { font-weight: 700; color: var(--sc-ink); font-size: 1.05rem; white-space: nowrap; }
.wage small { font-weight: 500; color: var(--sc-muted); font-size: .8rem; }
.avatar-wrap { position: relative; flex-shrink: 0; }
.avail-dot { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.avail-available { background: #16a34a; } .avail-busy { background: #f59e0b; } .avail-unavailable { background: #9ca3af; }
.verified-badge { color: #1d9bf0; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; background: #eef2fc; color: var(--sc-primary); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip.gray { background: #f1f3f8; color: var(--sc-muted); }
.chip.green { background: #e7f7ee; color: #15803d; }
.chip.amber { background: #fff4db; color: #a16207; }
.chip.red { background: #fde8e7; color: #b91c1c; }
.stars { color: #f5a400; letter-spacing: 1px; white-space: nowrap; }
.stars .bi-star { color: #d5d9e3; }
.fav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sc-line); background: #fff; color: var(--sc-muted); display: inline-flex; align-items: center; justify-content: center; }
.fav-btn.saved, .fav-btn:hover { color: var(--sc-accent); border-color: #f6c3c0; background: #fff5f5; }

/* ---------- Job card ---------- */
.job-card { height: 100%; transition: box-shadow .15s, transform .15s; }
.job-card:hover { box-shadow: var(--sc-shadow-lg); transform: translateY(-2px); }
.job-card .card-body { display: flex; flex-direction: column; gap: .55rem; height: 100%; }
.job-title { font-weight: 700; color: var(--sc-ink); font-size: 1.05rem; line-height: 1.3; }
a.job-title:hover { color: var(--sc-primary); }
.job-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; color: var(--sc-muted); }
.job-meta i { color: var(--sc-primary); }
.job-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .6rem; border-top: 1px dashed var(--sc-line); }

/* ---------- How it works ---------- */
/* Column layout keeps the CTA pinned to the bottom so both cards line up at equal height. */
.method-card { display: flex; flex-direction: column; align-items: flex-start; border-radius: 18px; padding: 1.75rem; height: 100%; position: relative; overflow: hidden; }
.method-card.a { background: #eef3ff; }
.method-card.b { background: #fff4f3; }
.method-card h3 { font-size: 1.25rem; font-weight: 700; }
.method-card > .btn { margin-top: auto !important; }
.method-card > .step:last-of-type { margin-bottom: 1.5rem; }
.step { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem; width: 100%; }
.step > span:last-child { min-width: 0; padding-top: .2rem; }
.step-num { width: 32px; height: 32px; border-radius: 50%; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.method-card.a .step-num { background: var(--sc-primary); }
.method-card.b .step-num { background: var(--sc-accent); }
@media (max-width: 575.98px) {
  .method-card { padding: 1.25rem; border-radius: 16px; }
  .method-card h3 { font-size: 1.1rem; }
  .method-card > .btn { align-self: stretch; }
}

.trust-item { display: flex; gap: .9rem; }
.trust-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; background: #eef2fc; color: var(--sc-primary); }
.quote-card { height: 100%; }
.quote-card .bi-quote { font-size: 2rem; color: #d9e1f6; line-height: 1; }

.cta-band { background: linear-gradient(120deg, var(--sc-accent), #b3150e); color: #fff; border-radius: 22px; padding: 2rem; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band.blue { background: linear-gradient(120deg, var(--sc-primary), var(--sc-primary-dark)); }

/* ---------- Featured services (house shifting / vehicle rental) ---------- */
/* --svc is the category colour set in Admin › Categories. Cards overlap the hero's bottom edge. */
.services-strip { position: relative; z-index: 2; margin-top: -2rem; }
.svc-card { --svc: var(--sc-primary); display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.6rem 1.6rem 2.1rem; border-radius: 22px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: var(--svc); background: radial-gradient(circle at 100% 0, rgba(255, 255, 255, .22), transparent 50%), linear-gradient(135deg, var(--svc), color-mix(in srgb, var(--svc) 62%, #060b1f));
  box-shadow: 0 12px 34px color-mix(in srgb, var(--svc) 35%, transparent), var(--sc-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.svc-card::before { content: ''; position: absolute; z-index: -1; right: -50px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .07); }
.svc-card::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.svc-card:hover, .svc-card:focus-visible { color: #fff; transform: translateY(-5px); box-shadow: 0 20px 48px color-mix(in srgb, var(--svc) 45%, transparent), var(--sc-shadow-lg); }
.svc-card:hover::after, .svc-card:focus-visible::after { transform: translateX(120%); }
.svc-card:focus-visible { outline: 3px solid var(--sc-highlight); outline-offset: 3px; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.svc-icon { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font-size: 2.1rem; color: var(--svc); background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); animation: svc-float 3.2s ease-in-out infinite; }
.svc-vehicle .svc-icon { animation-delay: -1.6s; }
.svc-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #1b2236; background: var(--sc-highlight); white-space: nowrap; }
.svc-title { font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; margin-top: .35rem; letter-spacing: -.01em; }
.svc-text { opacity: .88; }
.svc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .15rem; }
.svc-chips span { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); }
.svc-cta { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.15rem; min-height: 46px; border-radius: 12px; font-weight: 700; color: var(--sc-ink); background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); transition: background .2s ease; }
.svc-cta i { transition: transform .2s ease; }
.svc-card:hover .svc-cta { background: var(--sc-highlight); }
.svc-card:hover .svc-cta i { transform: translateX(4px); }
/* Moving "road" dashes along the bottom edge. */
.svc-road { position: absolute; left: 0; right: 0; bottom: 12px; height: 3px; opacity: .35; background: repeating-linear-gradient(90deg, #fff 0 18px, transparent 18px 34px); background-size: 34px 3px; animation: svc-road 1.4s linear infinite; }
.svc-card:not(:hover) .svc-road { animation-play-state: paused; }
@keyframes svc-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes svc-road { to { background-position: -34px 0; } }
@media (max-width: 575.98px) {
  .services-strip { margin-top: -1.25rem; }
  .svc-card { padding: 1.25rem 1.25rem 1.9rem; }
  .svc-icon { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 16px; }
  .svc-cta { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .svc-icon, .svc-road { animation: none; } .svc-card::after { display: none; } }

/* ---------- Partner promo banner (Kenabecha) ---------- */
.promo-banner { display: flex; align-items: center; gap: 1.5rem; padding: 2rem 2.25rem; border-radius: 22px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 100% 0, rgba(246, 177, 0, .28), transparent 45%), linear-gradient(120deg, var(--sc-primary-dark), var(--sc-primary) 60%, #2a5be0);
  box-shadow: var(--sc-shadow-lg); transition: transform .2s ease, box-shadow .2s ease; }
.promo-banner::before, .promo-banner::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.promo-banner::before { left: -70px; bottom: -90px; width: 240px; height: 240px; background: rgba(255, 255, 255, .07); }
.promo-banner::after { right: 18%; top: -50px; width: 130px; height: 130px; border: 18px solid rgba(255, 255, 255, .06); }
.promo-banner:hover, .promo-banner:focus-visible { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 48px rgba(16, 32, 80, .24); }
.promo-banner:focus-visible { outline: 3px solid var(--sc-highlight); outline-offset: 3px; }
.promo-icon { flex-shrink: 0; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 2.2rem; color: var(--sc-ink); background: var(--sc-highlight); box-shadow: 0 8px 24px rgba(246, 177, 0, .35); transform: rotate(-6deg); transition: transform .2s ease; }
.promo-banner:hover .promo-icon { transform: rotate(0) scale(1.05); }
.promo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.promo-title { font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em; }
.promo-text { opacity: .85; font-size: 1.05rem; }
.promo-domain { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; margin-top: .25rem; padding: .15rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .14); }
.promo-btn { flex-shrink: 0; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.promo-banner:hover .promo-btn { --bs-btn-bg: #e0a100; }
@media (max-width: 767.98px) {
  .promo-banner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
  .promo-icon { width: 60px; height: 60px; font-size: 1.75rem; border-radius: 16px; }
  .promo-btn { align-self: stretch; }
}

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.form-control, .form-select { min-height: 46px; border-radius: 10px; border-color: #d6dced; font-size: 1rem; }
textarea.form-control { min-height: 110px; }
.form-control:focus, .form-select:focus { border-color: var(--sc-primary); box-shadow: 0 0 0 3px rgba(26,63,168,.15); }
.form-text { color: var(--sc-muted); font-size: .82rem; }
.form-check-input { width: 1.2em; height: 1.2em; margin-top: .2em; }
.form-check-input:checked { background-color: var(--sc-primary); border-color: var(--sc-primary); }
.form-section-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.form-section-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--sc-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.role-option { position: relative; display: block; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; }
.role-option .box { border: 2px solid var(--sc-line); border-radius: 14px; padding: 1rem; display: flex; gap: .8rem; align-items: flex-start; height: 100%; transition: border-color .15s, background .15s; }
.role-option input:checked + .box { border-color: var(--sc-primary); background: #f3f6ff; }
.role-option input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(26,63,168,.25); }
.role-option .box i { font-size: 1.6rem; color: var(--sc-primary); }
.skill-check { display: inline-block; margin: 0 .35rem .45rem 0; }
.skill-check input { position: absolute; opacity: 0; }
.skill-check span { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #d6dced; border-radius: 999px; padding: .3rem .8rem; cursor: pointer; font-size: .88rem; background: #fff; min-height: 36px; }
.skill-check input:checked + span { background: var(--sc-primary); border-color: var(--sc-primary); color: #fff; }
.skill-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(26,63,168,.25); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: #d5d9e3; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a400; }
.star-input input:focus-visible + label { outline: 2px solid var(--sc-primary); border-radius: 4px; }
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; padding: 2rem 0; }
.auth-card { max-width: 520px; margin: 0 auto; width: 100%; }

/* ---------- Dashboard ---------- */
.dash-nav { position: sticky; top: 84px; }
.dash-nav .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: 2px; font-weight: 600; color: var(--sc-ink); display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem; }
.dash-nav .list-group-item i { color: var(--sc-muted); font-size: 1.1rem; }
.dash-nav .list-group-item:hover { background: #f1f4fb; }
.dash-nav .list-group-item.active { background: var(--sc-primary); color: #fff; }
.dash-nav .list-group-item.active i { color: #fff; }
.dash-pills { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dash-pills::-webkit-scrollbar { display: none; }
.dash-pills a { white-space: nowrap; padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--sc-line); font-weight: 600; font-size: .88rem; color: var(--sc-ink); min-height: 40px; display: inline-flex; align-items: center; gap: .35rem; }
.dash-pills a.active { background: var(--sc-primary); color: #fff; border-color: var(--sc-primary); }
.stat-card { display: flex; flex-direction: row; align-items: center; gap: .9rem; padding: 1rem; height: 100%; color: var(--sc-ink); }
a.stat-card:hover { color: var(--sc-ink); box-shadow: var(--sc-shadow-lg); }
.stat-card .ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-card .val { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.stat-card .lbl { font-size: .82rem; color: var(--sc-muted); line-height: 1.25; }
.ic-blue { background: #e8eefc; color: var(--sc-primary); } .ic-red { background: #fde8e7; color: var(--sc-accent); }
.ic-amber { background: #fff4db; color: #b77900; } .ic-green { background: #e5f6ec; color: #15803d; }
.ic-purple { background: #f0e9fd; color: #7c3aed; } .ic-teal { background: #e0f5f4; color: #0f766e; }
.list-row { display: flex; gap: .8rem; align-items: center; padding: .8rem 1.1rem; border-bottom: 1px solid var(--sc-line); }
.list-row:last-child { border-bottom: 0; }
.progress { height: 8px; border-radius: 99px; background: #e8ecf5; }
.progress-bar { background: linear-gradient(90deg, var(--sc-primary), #3b6ff0); }
.tabs-scroll { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--sc-line); margin-bottom: 1rem; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll a { padding: .6rem .9rem; font-weight: 600; color: var(--sc-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs-scroll a.active { color: var(--sc-primary); border-bottom-color: var(--sc-primary); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--sc-line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #c5cee3; }
.timeline li.done::after { border-color: #16a34a; background: #16a34a; }

/* ---------- Bids comparison ---------- */
.bid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bid-stats div { background: #f5f7fc; border-radius: 12px; padding: .6rem; text-align: center; }
.bid-stats strong { display: block; font-size: 1.1rem; }
.bid-stats span { font-size: .78rem; color: var(--sc-muted); }
.bid-card { border-left: 4px solid transparent; }
.bid-card.best { border-left-color: #16a34a; }
.bid-card.accepted { border-left-color: var(--sc-primary); background: #f6f9ff; }
.bid-card.muted { opacity: .65; }
.bid-amount { font-size: 1.35rem; font-weight: 700; color: var(--sc-ink); line-height: 1.1; }

/* ---------- Messaging ---------- */
.chat-shell { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - 190px); min-height: 480px; overflow: hidden; padding: 0; }
.chat-list { border-right: 1px solid var(--sc-line); overflow-y: auto; }
.chat-list a { display: flex; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--sc-line); color: var(--sc-ink); align-items: center; }
.chat-list a:hover { background: #f6f8fd; }
.chat-list a.active { background: #eef3ff; }
.chat-list .unread-pill { background: var(--sc-accent); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 20px; padding: 0 6px; text-align: center; font-weight: 700; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { padding: .7rem 1rem; border-bottom: 1px solid var(--sc-line); display: flex; align-items: center; gap: .7rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #f7f9fd; display: flex; flex-direction: column; gap: .45rem; }
.bubble { max-width: min(75%, 520px); padding: .55rem .85rem; border-radius: 16px; background: #fff; border: 1px solid var(--sc-line); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-line; }
.bubble.mine { align-self: flex-end; background: var(--sc-primary); color: #fff; border-color: var(--sc-primary); border-bottom-right-radius: 4px; }
.bubble:not(.mine) { border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: .15rem; text-align: right; }
.chat-form { border-top: 1px solid var(--sc-line); padding: .6rem; display: flex; gap: .5rem; background: #fff; }
.chat-form textarea { min-height: 46px; max-height: 140px; resize: none; }
@media (max-width: 767.98px) {
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 150px); height: calc(100dvh - 150px); }
  .chat-shell.has-active .chat-list { display: none; }
  .chat-shell:not(.has-active) .chat-main { display: none; }
  .bubble { max-width: 85%; }
}

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; vertical-align: middle; }
.table > :not(caption) > * > * { padding: .75rem .9rem; border-bottom-color: var(--sc-line); }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--sc-muted); font-weight: 700; background: #f8f9fc; white-space: nowrap; }
/* Stack table rows into cards on phones */
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--sc-line); padding: .5rem 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0 !important; padding: .3rem 1rem !important; text-align: right; }
  .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--sc-muted); text-align: left; font-size: .85rem; }
  .table-stack td.td-main { display: block; text-align: left; }
  .table-stack td.td-main::before { display: none; }
}

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-state .ic { width: 76px; height: 76px; border-radius: 50%; background: #eef2fc; color: var(--sc-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: .9rem; }
.flash-wrap { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1090; width: min(420px, calc(100vw - 2rem)); pointer-events: none; }
.flash-wrap .alert { pointer-events: auto; margin-bottom: .5rem; }
@media (max-width: 991.98px) { .flash-wrap { bottom: calc(72px + env(safe-area-inset-bottom)); left: .75rem; right: .75rem; width: auto; } }
.admin-body .flash-wrap { bottom: 1.25rem; }
.flash-wrap .alert { box-shadow: var(--sc-shadow-lg); border: 0; border-radius: 12px; display: flex; gap: .6rem; align-items: flex-start; }
.pagination { flex-wrap: wrap; gap: .25rem; }
.page-link { border-radius: 8px !important; min-width: 40px; text-align: center; color: var(--sc-primary); }
.active > .page-link { background: var(--sc-primary); border-color: var(--sc-primary); }
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { background: #f0f4fd; color: var(--sc-primary); box-shadow: none; }
.profile-cover { height: 120px; background: linear-gradient(120deg, var(--sc-primary), var(--sc-primary-dark)); border-radius: var(--sc-radius) var(--sc-radius) 0 0; position: relative; overflow: hidden; }
.profile-cover::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 16px 16px; }
.profile-avatar { width: 112px; height: 112px; border: 4px solid #fff; margin-top: -56px; box-shadow: var(--sc-shadow); position: relative; z-index: 1; }
.portfolio-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 12px; }
.sticky-side { position: sticky; top: 90px; }
.filter-card .form-label { font-size: .85rem; }
.offcanvas-filters { --bs-offcanvas-width: 340px; }
.footer { background: #0c1a4a; color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; font-size: .92rem; }
.footer h6 { color: #fff; font-weight: 700; margin-bottom: .9rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer .footer-logo { display: inline-block; }
.footer .footer-logo img { height: 64px; width: auto; max-width: 100%; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; }
.notice { border-radius: 12px; padding: .8rem 1rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.notice.info { background: #eef3ff; color: #1e3a8a; }
.notice.warn { background: #fff6df; color: #7a5300; }
.notice.danger { background: #fdecea; color: #8f1d17; }
.notice.success { background: #e7f7ee; color: #14532d; }
.prose p { margin-bottom: 1rem; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.dl-grid dt { font-size: .78rem; color: var(--sc-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.dl-grid dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Admin ---------- */
.admin-body { background: #f2f4f9; }
.admin-sidebar { width: 260px; background: #0c1a4a; color: rgba(255,255,255,.75); position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1040; }
.admin-sidebar .brand { padding: 1rem 1.1rem; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar .brand img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.admin-sidebar .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: 1rem 1.2rem .35rem; color: rgba(255,255,255,.45); font-weight: 700; }
.admin-sidebar a.nav-item-link { display: flex; align-items: center; gap: .7rem; padding: .55rem 1.2rem; color: rgba(255,255,255,.78); font-weight: 500; border-left: 3px solid transparent; }
.admin-sidebar a.nav-item-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-sidebar a.nav-item-link.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--sc-highlight); }
.admin-sidebar .cnt { margin-left: auto; background: var(--sc-accent); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 7px; font-weight: 700; }
.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--sc-line); padding: .6rem 1.25rem; display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 1020; }
.admin-content { padding: 1.25rem; }
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.show { transform: none; box-shadow: var(--sc-shadow-lg); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: .9rem; }
}
.admin-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035; }
.admin-backdrop.show { display: block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .bottom-nav, .footer { display: none !important; } }
.mini-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.section-head .section-sub { margin-bottom: 0; }
.section-link { flex-shrink: 0; white-space: nowrap; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .9rem; border-radius: 999px; background: #eef2fc; min-height: 40px; }
.section-link:hover { background: #e1e8fa; }
@media (max-width: 575.98px) { .section-head { align-items: flex-start; } .section-link { padding: .35rem .7rem; font-size: .85rem; } }
/* Header: never let menu items or the main call-to-action wrap onto two lines */
.site-header .nav-link, .site-header .btn { white-space: nowrap; }
/* Logo keeps its full size: the brand never shrinks to make room for menu items (phones override below). */
.site-header .navbar-brand { flex-shrink: 0; }
.site-header .brand-logo { max-width: none; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .site-header .nav-link { padding: .5rem .6rem !important; }
  .site-header .navbar-brand { margin-right: 1rem !important; }
  .brand-logo { height: 52px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .nav-link { padding: .45rem .45rem !important; font-size: .92rem; }
  .site-header .nav-link.nav-tutorials { padding: .35rem .65rem .35rem .35rem !important; }
  .site-header .btn { padding-left: .75rem; padding-right: .75rem; font-size: .92rem; }
  .brand-logo { height: 46px; }
}
/* Footer contact rows: icon + text side by side */
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact li i { margin-top: .15rem; flex-shrink: 0; }
.footer-contact li > span, .footer-contact li > a { min-width: 0; overflow-wrap: anywhere; }
/* Small icon buttons inside chips (e.g. remove skill) — comfortable tap target */
.chip-remove { width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 0; background: rgba(0,0,0,.06); color: #b91c1c; }
.chip-remove:hover { background: #fde8e7; }
/* Small phones: keep the header on a single row */
@media (max-width: 575.98px) {
  .site-header .navbar { padding: .35rem 0; }
  .site-header .navbar > .container { flex-wrap: nowrap; gap: .25rem; }
  .brand-logo { height: 40px; }
  .site-header .navbar-brand { margin-right: .25rem; min-width: 0; flex-shrink: 1; }
  .site-header .brand-logo { max-width: 100%; }
  .site-header .icon-btn { width: 36px; height: 36px; font-size: 1.05rem; }
  .site-header .avatar { width: 34px; height: 34px; }
  .lang-switch a { padding: .15rem .5rem; min-height: 28px; font-size: .8rem; }
  .site-header .navbar-toggler { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .site-header .gap-2 { gap: .35rem !important; }
}
/* Mobile chat: header (~56px) + page tabs (~58px) + paddings + bottom bar (~64px) */
@media (max-width: 767.98px) {
  .chat-shell { height: calc(100vh - 210px); height: calc(100dvh - 210px); min-height: 360px; }
}

/* ---------- House shifting ---------- */
.shift-box { border: 1px solid var(--sc-line); border-radius: 14px; padding: 1rem; background: #fafbff; height: 100%; }
.item-row { border: 1px solid var(--sc-line); border-radius: 12px; padding: .75rem; margin-bottom: .6rem; background: #fff; }
.item-remove { min-height: 44px; width: 44px; }
.item-chip { display: inline-flex; align-items: center; gap: .2rem; margin: 0 .35rem .45rem 0; border: 1px dashed #c3cbe3; border-radius: 999px; padding: .3rem .8rem; background: #fff; color: var(--sc-ink); font-size: .88rem; min-height: 36px; }
.item-chip:hover, .item-chip:focus-visible { border-color: var(--sc-primary); color: var(--sc-primary); background: #eef2fc; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.photo-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f1f3f8; margin: 0; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: flex; align-items: center; justify-content: center; }
.photo-remove-check { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .3rem; padding: .25rem .4rem; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; cursor: pointer; }
.photo-thumb.existing:has(input:checked) img { opacity: .35; }
.photo-error { white-space: pre-line; }

/* ---------- Hiring method choice ---------- */
.choice-card { display: flex; gap: .8rem; align-items: flex-start; height: 100%; margin: 0; padding: 1rem; border: 2px solid var(--sc-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice-card:hover { border-color: #c3cbe3; }
.choice-card .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef2fc; color: var(--sc-primary); font-size: 1.25rem; }
.choice-card strong { display: block; line-height: 1.35; }
.choice-card small { display: block; color: var(--sc-muted); margin-top: .2rem; }
.btn-check:checked + .choice-card, .choice-card:has(.choice-radio:checked), .choice-card.static { border-color: var(--sc-primary); background: #f4f7ff; box-shadow: 0 0 0 3px rgba(26, 63, 168, .12); }
.btn-check:focus-visible + .choice-card, .choice-card:has(.choice-radio:focus-visible) { outline: 3px solid rgba(26, 63, 168, .35); outline-offset: 2px; }
.choice-card.static { cursor: default; }
/* Visible radio inside the card. Native radios are drawn by the OS and Bootstrap's .form-check-input is
   1em × 1em with flex-shrink: 1, so in a flex row it gets squeezed into an oval; draw a fixed-size circle instead. */
.choice-radio { -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: 0 0 20px; width: 20px; height: 20px; min-width: 20px; min-height: 20px; margin: .1rem 0 0; padding: 0; border: 2px solid #aab4cf; border-radius: 50%; background: #fff; display: inline-grid; place-content: center; cursor: pointer; transition: border-color .15s; }
.choice-radio::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sc-primary); transform: scale(0); transition: transform .15s; }
.choice-radio:checked { border-color: var(--sc-primary); }
.choice-radio:checked::before { transform: scale(1); }
.choice-radio:focus-visible { outline: 3px solid rgba(26, 63, 168, .35); outline-offset: 2px; }
@supports selector(:has(*)) { .choice-radio:focus-visible { outline: none; } } /* the card shows the focus ring */
.choice-card:hover .choice-radio:not(:checked) { border-color: var(--sc-primary); }
@media (forced-colors: active) { .choice-radio::before { forced-color-adjust: none; background: Highlight; } }
.choice-group.is-invalid .choice-card { border-color: var(--bs-danger); }
.choice-group.is-invalid .choice-radio { border-color: var(--bs-danger); }
@media (max-width: 575.98px) {
  .choice-card { gap: .65rem; padding: .85rem; }
  .choice-card .ic { flex-basis: 36px; width: 36px; height: 36px; font-size: 1.05rem; }
}
/* Hiring method on the job request form: colour-filled cards (company = royal blue, direct = orange).
   Builds on .choice-card, so selection, focus and validation behave the same. --hc is the card's colour.
   Every gradient stop keeps white text at 4.5:1 contrast or better. */
.hire-card--company { --hc: #1a3fa8; --hc-bg: linear-gradient(135deg, #2c5bd8 0%, #1a3fa8 55%, #102a78 100%); --hc-shadow: rgba(16, 32, 80, .45); }
.hire-card--direct { --hc: #c2410c; --hc-bg: linear-gradient(135deg, #cc4a0c 0%, #b83d0a 55%, #9a3209 100%); --hc-shadow: rgba(154, 50, 9, .5); }
.choice-card.hire-card, .choice-card.hire-card:has(.choice-radio:checked), .choice-card.hire-card.static {
  position: relative; gap: 1rem; padding: 1.25rem 2.75rem 1.35rem 1.25rem; border: 0; border-radius: 18px; color: #fff;
  background: radial-gradient(circle at 100% 0, rgba(255, 255, 255, .14) 0 64px, transparent 65px), var(--hc-bg);
  box-shadow: 0 6px 18px -6px var(--hc-shadow); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease; }
.choice-card.hire-card .ic { flex: 0 0 52px; width: 52px; height: 52px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 1.5rem; }
.choice-card.hire-card strong { font-size: 1.05rem; color: #fff; }
.choice-card.hire-card small { color: rgba(255, 255, 255, .9); line-height: 1.5; }
.choice-card.hire-card .choice-radio { margin-top: .2rem; border-color: rgba(255, 255, 255, .8); background: transparent; }
.choice-card.hire-card .choice-radio::before { background: var(--hc); }
.choice-card.hire-card .choice-radio:checked { border-color: #fff; background: #fff; }
.choice-card.hire-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(16, 32, 80, .55); }
.choice-card.hire-card:hover .choice-radio:not(:checked) { border-color: #fff; }
/* Selected: white inner ring + colour outer ring, a check badge, and the other card steps back. */
.choice-card.hire-card:has(.choice-radio:checked), .choice-card.hire-card.static { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--hc), 0 16px 32px -12px rgba(16, 32, 80, .6); }
.choice-card.hire-card::after { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; top: .7rem; right: .8rem; font-size: 1.35rem; line-height: 1; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .2s ease; }
.choice-card.hire-card:has(.choice-radio:checked)::after, .choice-card.hire-card.static::after { opacity: 1; transform: scale(1); }
/* Desaturate rather than fade the other card, so its white text keeps its contrast. */
.choice-group:has(.choice-radio:checked) .choice-card.hire-card:not(:has(.choice-radio:checked)) { filter: saturate(.35); box-shadow: none; }
.choice-group:has(.choice-radio:checked) .choice-card.hire-card:not(:has(.choice-radio:checked)):hover { filter: saturate(.8); }
.choice-card.hire-card:has(.choice-radio:focus-visible) { outline: 3px solid var(--hc); outline-offset: 5px; }
.choice-group.is-invalid .choice-card.hire-card { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bs-danger); }
.choice-group.is-invalid .choice-card.hire-card .choice-radio { border-color: #fff; }
.choice-card.hire-card.static { cursor: default; transform: none; }
@media (max-width: 575.98px) {
  .choice-card.hire-card, .choice-card.hire-card:has(.choice-radio:checked), .choice-card.hire-card.static { gap: .75rem; padding: 1rem 2.5rem 1.1rem 1rem; }
  .choice-card.hire-card .ic { flex-basis: 44px; width: 44px; height: 44px; font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .choice-card.hire-card, .choice-card.hire-card::after { transition: none; }
  .choice-card.hire-card:hover { transform: none; }
}
/* Searchable select (data-combobox in public/js/app.js); .form-select supplies the field look and chevron. */
.combo { position: relative; }
.combo-input { cursor: text; }
.combo-list { position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; max-height: 280px; overflow-y: auto; margin: .25rem 0 0; padding: .3rem; list-style: none; background: #fff; border: 1px solid var(--sc-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 23, 42, .12); }
.combo-list [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .5rem .75rem; border-radius: 8px; cursor: pointer; }
.combo-list [role="option"].active { background: #eef2fc; }
.combo-list [role="option"][aria-selected="true"] { color: var(--sc-primary); font-weight: 600; }
.combo-list [role="option"][aria-selected="true"]::after { content: "\2713"; }
.combo-list .combo-empty { padding: .75rem; color: var(--sc-muted); text-align: center; }
.job-status-chips { display: inline-flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
/* Phones: navbar dropdowns are positioned without Popper, so the notification panel (anchored to the
   bell) could open past the left edge. Pin it under the sticky header across the screen instead. */
@media (max-width: 575.98px) {
  .site-header .notif-menu { position: fixed !important; top: 3.5rem !important; left: .5rem !important; right: .5rem !important; width: auto; max-height: calc(100vh - 8rem); margin-top: 0 !important; transform: none !important; }
}

/* ---------- Worker Account Settings ---------- */
.worker-settings [id] { scroll-margin-top: 90px; }
.form-section-subtitle { display: flex; align-items: center; gap: .45rem; font-weight: 700; margin: 1.25rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--sc-line); }
.completion-value { font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--sc-ink); }
.completion-bar { height: 12px; border-radius: 999px; background: #e9edf7; }
.completion-bar .progress-bar { border-radius: 999px; transition: width .4s ease; }
.missing-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; border: 1px dashed #e0b44a; background: #fff8e6; color: #8a5a00; font-size: .82rem; font-weight: 600; min-height: 32px; }
.missing-chip:hover, .missing-chip:focus-visible { background: #fff0c7; color: #6b4500; }
.verify-badge { display: flex; gap: .85rem; align-items: flex-start; height: 100%; padding: 1rem; border-radius: 14px; border: 1px solid; }
.verify-badge > i { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.verify-badge strong { display: block; font-size: 1.05rem; }
.verify-badge small { display: block; margin-top: .2rem; }
.verify-badge.verified { background: #e7f7ee; border-color: #b7e4c7; color: #14532d; }
.verify-badge.pending { background: #fff6df; border-color: #f3d58a; color: #7a5300; }
.verify-badge.rejected { background: #fdecea; border-color: #f5c2bd; color: #8f1d17; }
.verify-badge.incomplete { background: #f3f5fa; border-color: var(--sc-line); color: #3d4560; }
.settings-nav { position: relative; }
.doc-card { height: 100%; padding: 1rem; border: 1px solid var(--sc-line); border-radius: 14px; background: #fff; }
.doc-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #f1f3f8; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-thumb.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border: 2px dashed #d3d9e8; color: var(--sc-muted); font-size: .85rem; }
.doc-thumb.empty i { font-size: 2rem; }
/* NID front + back slots (Account Settings › documents; previews handled by data-doc-slot in app.js) */
.doc-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.doc-side { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.doc-side-head { display: flex; justify-content: space-between; align-items: center; gap: .25rem; }
.doc-side .doc-thumb a { display: block; width: 100%; height: 100%; }
.doc-side .doc-thumb.empty { padding: .5rem; text-align: center; font-size: .8rem; }
.doc-side .doc-thumb.empty i { font-size: 1.6rem; }
.doc-side .doc-thumb.is-new { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sc-primary); }
.doc-side.is-invalid .doc-thumb { box-shadow: 0 0 0 2px var(--bs-danger); }
.doc-side-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.doc-side-actions .btn { flex: 1 1 auto; justify-content: center; }
.doc-input:focus-visible + .doc-side-actions label { outline: 3px solid rgba(26, 63, 168, .35); outline-offset: 2px; }
.doc-error { color: var(--bs-danger); font-size: .8rem; }
.doc-error:empty { display: none; }

/* ---------- Settings tabs (Worker Account Settings) ---------- */
.settings-tabs-wrap { position: relative; margin-bottom: 1rem; }
/* position:relative makes the strip the containing block of absolutely positioned bits (e.g. visually-hidden
   badge text), so they are clipped by its scrolling instead of widening the page on phones. */
.settings-tabs { position: relative; display: flex; flex-wrap: nowrap; gap: .35rem; margin: 0; padding: .35rem; list-style: none; overflow-x: auto; background: #fff; border: 1px solid var(--sc-line); border-radius: 16px; box-shadow: var(--sc-shadow); scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tabs .nav-item { flex: 1 0 auto; }
.settings-tabs .nav-link { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem .9rem; border: 0; border-radius: 12px; background: transparent; color: var(--sc-muted); font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s, box-shadow .15s; }
.settings-tabs .nav-link:hover { background: #f3f5fb; color: var(--sc-ink); }
.settings-tabs .nav-link.active { background: var(--sc-primary); color: #fff; box-shadow: 0 4px 12px rgba(26, 63, 168, .25); }
.settings-tabs .nav-link:focus-visible { outline: 3px solid rgba(26, 63, 168, .35); outline-offset: 2px; }
.tab-missing { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sc-highlight); color: #3d2a00; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.settings-tabs .nav-link.active .tab-missing { background: #fff; color: var(--sc-primary); }
/* Edge fades hint that the strip scrolls sideways on narrow screens. */
.settings-tabs-wrap::before, .settings-tabs-wrap::after { content: ''; position: absolute; top: 1px; bottom: 1px; width: 28px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 1; }
.settings-tabs-wrap::before { left: 1px; border-radius: 16px 0 0 16px; background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
.settings-tabs-wrap::after { right: 1px; border-radius: 0 16px 16px 0; background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0)); }
.settings-tabs-wrap.fade-start::before, .settings-tabs-wrap.fade-end::after { opacity: 1; }
/* Tablets and up: every tab visible, wrapping onto a second row when needed. */
@media (min-width: 768px) {
  .settings-tabs { flex-wrap: wrap; overflow-x: visible; }
  .settings-tabs-wrap::before, .settings-tabs-wrap::after { display: none; }
}
/* Panes may sit inside the shared profile form, so Bootstrap's ".tab-content > .tab-pane" rule is not enough. */
.settings-tabs-content .tab-pane { display: none; }
.settings-tabs-content .tab-pane.active { display: block; }
.settings-tabs-content .tab-pane:focus { outline: none; }
.settings-save { display: grid; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .settings-save { display: flex; justify-content: flex-end; } }

/* ---------- Admin roles & permissions ---------- */
.perm-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .7rem 0; border-top: 1px solid var(--sc-line); }
.perm-row .perm-module { flex: 0 0 210px; max-width: 100%; margin: 0; }
.perm-actions { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 280px; min-width: 0; }
.perm-chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 34px; padding: .25rem .75rem; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; color: var(--sc-muted); font-size: .85rem; font-weight: 600; cursor: pointer; user-select: none; transition: background .15s, border-color .15s, color .15s; }
.perm-chip:hover { border-color: var(--sc-primary); color: var(--sc-primary); }
.perm-chip .on { display: none; }
.btn-check:checked + .perm-chip { background: var(--sc-primary); border-color: var(--sc-primary); color: #fff; }
.btn-check:checked + .perm-chip .on { display: inline; }
.btn-check:focus-visible + .perm-chip { outline: 3px solid rgba(26, 63, 168, .35); outline-offset: 2px; }
.btn-check:disabled + .perm-chip { opacity: .6; cursor: not-allowed; }
.perm-chip.inherited { background: #eef2fc; border-color: #c9d5f4; color: var(--sc-primary); }
.perm-chip .via-role { font-size: .7rem; font-weight: 600; background: #fff; color: var(--sc-primary); border-radius: 999px; padding: 0 .4rem; }
.role-chip { font-size: .9rem; }
@media (max-width: 575.98px) { .perm-row .perm-module { flex-basis: 100%; } }

/* ---- Worker wallet & commissions ---------------------------------------- */
.wallet-hero { background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%); color: #fff; border: 0; overflow: hidden; position: relative; }
.wallet-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.wallet-hero .lbl { font-size: .82rem; opacity: .85; font-weight: 600; }
.wallet-hero .big { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.wallet-hero .sub-val { font-size: 1.15rem; font-weight: 700; }
.wallet-hero .divider { border-left: 1px solid rgba(255, 255, 255, .2); }
@media (max-width: 575.98px) { .wallet-hero .divider { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: .75rem; } }
.money-tile { padding: .9rem 1rem; height: 100%; }
.money-tile .lbl { font-size: .8rem; color: var(--sc-muted); font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.money-tile .val { font-size: 1.25rem; font-weight: 700; margin-top: .15rem; word-break: break-word; }
.money-tile.tone-red .val { color: #b91c1c; } .money-tile.tone-green .val { color: #15803d; } .money-tile.tone-amber .val { color: #9a6700; }
.due-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid var(--sc-line); }
.due-row:last-child { border-bottom: 0; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.countdown.late { color: #b91c1c; } .countdown.soon { color: #9a6700; }
.money-breakdown { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; }
.money-breakdown dt { color: var(--sc-muted); font-weight: 600; }
.money-breakdown dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.money-breakdown .total { border-top: 1px dashed var(--sc-line); padding-top: .45rem; font-size: 1.05rem; }
.pay-account { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border: 1px dashed var(--sc-line); border-radius: 10px; background: #fafbfe; }
.ledger-amt.credit { color: #15803d; } .ledger-amt.debit { color: #b91c1c; }

/* ---------- Video tutorials ---------- */
.tut-card { height: 100%; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.tut-card:hover { box-shadow: var(--sc-shadow-lg); transform: translateY(-2px); }
.tut-card .card-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.tut-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0f172a; cursor: pointer; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .2s; }
.tut-card:hover .tut-thumb img, .tut-thumb:focus-visible img { transform: scale(1.04); opacity: .9; }
.tut-thumb.is-unavailable img { opacity: 0; }
.tut-thumb.is-unavailable::before { content: '\F21E'; font-family: 'bootstrap-icons'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,.35); }
.tut-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--sc-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .15s; }
.tut-play i { margin-left: 4px; }
.tut-play.sm { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 1.1rem; }
.tut-play.sm i { margin-left: 2px; }
.tut-thumb:hover .tut-play, .tut-thumb:focus-visible .tut-play, .tut-admin-thumb:hover .tut-play { transform: scale(1.1); }
.tut-badge { position: absolute; top: .6rem; left: .6rem; display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; font-weight: 600; }
.tut-title { font-size: 1.02rem; font-weight: 700; line-height: 1.4; margin: 0; }
.tut-title a:hover { color: var(--sc-primary) !important; }
.tut-desc { color: var(--sc-muted); font-size: .9rem; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tut-watch { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; padding-top: .6rem; min-height: 40px; }
.tut-body { white-space: pre-line; line-height: 1.75; }
.tut-count { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 999px; background: rgba(0,0,0,.07); font-size: .75rem; text-align: center; }
.dash-pills a.active .tut-count { background: rgba(255,255,255,.25); }
.tut-sec-icon { width: 48px; height: 48px; border-radius: 14px; background: #eef2fc; color: var(--sc-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.tut-search .form-control, .tut-search .btn, .tut-search .input-group-text { min-height: 48px; }

.tut-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.tut-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tut-frame.is-short { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; width: auto; }
.tut-fallback { display: flex; align-items: center; gap: .75rem; padding: 2.5rem 1.5rem; justify-content: center; text-align: center; color: var(--sc-muted); }
.tut-fallback i { font-size: 2rem; }
.tut-modal .modal-content { border: 0; border-radius: var(--sc-radius); overflow: hidden; }
.tut-modal .modal-body { background: #000; }
.tut-modal .tut-fallback { background: #fff; }
@media (max-width: 575.98px) {
  .tut-modal .modal-dialog { margin: .5rem; }
  .tut-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; font-size: 1.75rem; }
}

.tut-admin-thumb { position: relative; flex-shrink: 0; width: 128px; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #0f172a; }
.tut-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tut-admin-actions { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; flex-shrink: 0; }
.tut-admin-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; border: 2px dashed #d3d9e8; border-radius: 10px; text-align: center; }
.tut-admin-empty i { font-size: 2.25rem; color: #e2231a; }
@media (max-width: 767.98px) {
  .tut-admin-row { flex-wrap: wrap; }
  .tut-admin-thumb { width: 104px; }
  .tut-admin-row > .flex-grow-1 { flex-basis: calc(100% - 120px); }
  .tut-admin-actions { width: 100%; justify-content: flex-start; }
}

/* ---------- Vehicle rental (গাড়ি লাগবে) ---------- */
.vb-hero { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: var(--sc-radius); color: #fff; background: linear-gradient(120deg, #0f766e 0%, #115e59 55%, var(--sc-primary-dark) 100%); box-shadow: var(--sc-shadow); }
.vb-hero p { opacity: .9; }
.vb-hero-ic { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }
.vb-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.vb-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 104px; height: 100%; padding: .8rem .5rem; border: 2px solid var(--sc-line); border-radius: 14px; background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.vb-type:hover { border-color: #b9d9d4; }
.vb-type .ic { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e0f5f4; color: #0f766e; font-size: 1.45rem; }
.vb-type .nm { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.btn-check:checked + .vb-type { border-color: #0f766e; background: #f0fbf9; box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.btn-check:checked + .vb-type .ic { background: #0f766e; color: #fff; }
.btn-check:focus-visible + .vb-type, .btn-check:focus-visible + label { outline: 3px solid rgba(26, 63, 168, .35); outline-offset: 2px; }
.vb-place { border: 1px solid var(--sc-line); border-radius: 14px; padding: 1rem; background: #fafbff; height: 100%; }
.vb-seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.vb-seg label { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--sc-line); border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; }
.vb-seg .btn-check:checked + label { border-color: var(--sc-primary); background: #f4f7ff; color: var(--sc-primary); }

.vb-route { position: relative; display: grid; gap: .9rem; padding: 1rem 1rem 1rem 1.1rem; border: 1px solid var(--sc-line); border-radius: 14px; background: #fafbff; }
.vb-stop { display: flex; gap: .8rem; position: relative; }
.vb-stop .dot { flex: 0 0 14px; width: 14px; height: 14px; margin-top: .3rem; border-radius: 50%; border: 3px solid #16a34a; background: #fff; position: relative; z-index: 1; }
.vb-stop .dot.to { border-color: var(--sc-accent); background: var(--sc-accent); }
.vb-stop:first-child::after { content: ''; position: absolute; left: 6px; top: 1.3rem; bottom: -1.2rem; border-left: 2px dashed #c9d2e6; }

.vb-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.vb-steps::-webkit-scrollbar { display: none; }
.vb-steps li { flex: 1 0 84px; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; position: relative; font-size: .78rem; color: var(--sc-muted); }
.vb-steps li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--sc-line); }
.vb-steps li:first-child::before { display: none; }
.vb-steps li.done::before, .vb-steps li.current::before { background: #0f766e; }
.vb-steps .b { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef0f4; font-weight: 700; position: relative; z-index: 1; }
.vb-steps li.done .b { background: #0f766e; color: #fff; }
.vb-steps li.current .b { background: #fff; color: #0f766e; box-shadow: 0 0 0 3px #0f766e inset; }
.vb-steps li.current .t { color: var(--sc-ink); font-weight: 700; }

.vb-booking-row { transition: box-shadow .15s, transform .15s; }
.vb-booking-row:hover { box-shadow: var(--sc-shadow-lg); transform: translateY(-1px); }
.vb-booking-row .card-body { display: flex; align-items: center; gap: .9rem; }
.vb-booking-ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #e0f5f4; color: #0f766e; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }

.vb-vehicle .card-body { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.vb-vehicle-photo { flex: 0 0 112px; width: 112px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e0f5f4; color: #0f766e; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.vb-vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.vb-vehicle .flex-grow-1 { flex-basis: 240px; }
.vb-vehicle-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; }
.vb-vehicle-actions .form-select { min-width: 150px; }
.vb-doc { border: 1px dashed #c9d2e6; border-radius: 12px; padding: .8rem; height: 100%; background: #fafbff; }
.vb-doc.is-invalid { border-color: #dc3545; }

.vb-card { height: 100%; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.vb-card:hover { box-shadow: var(--sc-shadow-lg); transform: translateY(-2px); }
.vb-card .card-body { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.vb-card-photo { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e0f5f4, #eef3ff); color: #0f766e; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.vb-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.vb-card-type { position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: .75rem; font-weight: 600; }
.vb-landing { background: linear-gradient(180deg, #f0fbf9, #fff); }
.vb-how { display: flex; gap: .7rem; align-items: center; padding: .7rem; border-radius: 12px; background: #fff; border: 1px solid var(--sc-line); height: 100%; }

@media (max-width: 575.98px) {
  .vb-hero { padding: 1rem; }
  .vb-hero-ic { flex-basis: 52px; width: 52px; height: 52px; font-size: 1.6rem; }
  .vb-types { grid-template-columns: repeat(2, 1fr); }
  .vb-seg { display: grid; grid-template-columns: 1fr; width: 100%; }
  .vb-submit { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 5; background: var(--sc-bg); padding: .5rem 0; }
  .vb-submit .btn { flex: 1 1 auto; }
  .vb-vehicle-photo { flex-basis: 88px; width: 88px; }
  .vb-vehicle-actions { width: 100%; justify-content: flex-start; }
}
