/* ==========================================================================
   TruelyServe design system ("Handshake Blue" theme)
   One set of tokens for the admin panel and the customer/vendor web app.
   Built on Bootstrap 5.3 — tokens below override Bootstrap's variables.
   Logo colours: navy #0B3A6B, sky #38BDF8. To rebrand, change the tokens only.
   ========================================================================== */

:root {
  /* Brand: Trust Navy scale (600 = logo navy, primary buttons and headers) */
  --ql-brand-50:  #eef4fc;
  --ql-brand-100: #dce8ff;   /* Sky Tint: chips, cards */
  --ql-brand-200: #b6cdf2;
  --ql-brand-500: #2f6fed;   /* Link Blue: links, selected states */
  --ql-brand-600: #0b3a6b;
  --ql-brand-700: #082d54;
  --ql-brand-900: #061f3b;
  --ql-link:      #2f6fed;
  --ql-sky:       #38bdf8;   /* logo chip colour: highlights */
  --ql-gold:      #f5b82e;   /* Quote Gold: best quote / premium only */
  --ql-gold-bg:   #fef4d9;

  /* Type */
  --ql-font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Neutrals */
  --ql-ink:        #0f1e36;
  --ql-ink-2:      #33435c;
  --ql-muted:      #5b6b82;
  --ql-subtle:     #94a3b8;
  --ql-border:     #e2e8f2;
  --ql-border-2:   #cbd5e3;
  --ql-surface:    #ffffff;
  --ql-surface-2:  #f8fafd;
  --ql-bg:         #f4f7fc;   /* Page Mist */

  /* Status */
  --ql-success: #16a34a;  --ql-success-bg: #dcfce7;
  --ql-warning: #b45309;  --ql-warning-bg: #fef3c7;
  --ql-danger:  #dc2626;  --ql-danger-bg:  #fee2e2;
  --ql-info:    #0369a1;  --ql-info-bg:    #e0f2fe;

  /* Shape & depth */
  --ql-radius-sm: 8px;
  --ql-radius:    12px;
  --ql-radius-lg: 16px;
  --ql-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --ql-shadow:    0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --ql-shadow-lg: 0 12px 32px -8px rgba(15, 23, 42, .18);

  /* Sidebar (admin) — same navy as the logo so the dark wordmark blends in */
  --ql-sidebar-bg:     #0b3a6b;
  --ql-sidebar-ink:    #d3e0f0;
  --ql-sidebar-muted:  #8ea7c7;
  --ql-sidebar-active: rgba(56, 189, 248, .18);
  --ql-sidebar-w:      256px;

  /* Bootstrap overrides */
  --bs-primary: var(--ql-brand-600);
  --bs-primary-rgb: 11, 58, 107;
  --bs-link-color: var(--ql-link);
  --bs-link-color-rgb: 47, 111, 237;
  --bs-link-hover-color: var(--ql-brand-600);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .9375rem;
  --bs-body-color: var(--ql-ink);
  --bs-body-bg: var(--ql-bg);
  --bs-border-color: var(--ql-border);
  --bs-border-radius: var(--ql-radius-sm);
  --bs-border-radius-lg: var(--ql-radius);
  --bs-secondary-color: var(--ql-muted);
  --bs-focus-ring-color: rgba(47, 111, 237, .25);
}

body { -webkit-font-smoothing: antialiased; background: var(--ql-bg); color: var(--ql-ink); }
h1, h2, h3, h4, h5, h6 { color: var(--ql-ink); font-family: var(--ql-font-head); font-weight: 800; letter-spacing: -.02em; }
.card-title, .card-header { font-family: var(--ql-font-head); }
.text-muted, .text-secondary { color: var(--ql-muted) !important; }
a { text-decoration: none; }
::selection { background: var(--ql-brand-100); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: var(--ql-radius-sm); padding: .55rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-lg { padding: .75rem 1.25rem; font-size: 1rem; }
.btn-sm { padding: .35rem .7rem; font-size: .8125rem; }
.btn-primary {
  --bs-btn-bg: var(--ql-brand-600); --bs-btn-border-color: var(--ql-brand-600);
  --bs-btn-hover-bg: var(--ql-brand-700); --bs-btn-hover-border-color: var(--ql-brand-700);
  --bs-btn-active-bg: var(--ql-brand-700); --bs-btn-active-border-color: var(--ql-brand-700);
  --bs-btn-disabled-bg: var(--ql-brand-200); --bs-btn-disabled-border-color: var(--ql-brand-200);
  box-shadow: 0 1px 2px rgba(11, 58, 107, .3);
}
.btn-gold { --bs-btn-bg: var(--ql-gold); --bs-btn-border-color: var(--ql-gold); --bs-btn-color: var(--ql-brand-900); --bs-btn-hover-bg: #e9a91a; --bs-btn-hover-border-color: #e9a91a; --bs-btn-hover-color: var(--ql-brand-900); }
.btn-light { --bs-btn-bg: var(--ql-surface); --bs-btn-border-color: var(--ql-border); --bs-btn-hover-bg: var(--ql-surface-2); --bs-btn-hover-border-color: var(--ql-border-2); --bs-btn-color: var(--ql-ink-2); }
.btn-ghost { background: transparent; border: 0; color: var(--ql-ink-2); }
.btn-ghost:hover { background: var(--ql-surface-2); }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .8125rem; color: var(--ql-ink-2); margin-bottom: .35rem; }
.form-control, .form-select {
  border-color: var(--ql-border-2); border-radius: var(--ql-radius-sm);
  padding: .6rem .8rem; font-size: .9375rem; color: var(--ql-ink);
}
.form-control::placeholder { color: var(--ql-subtle); }
.form-control:focus, .form-select:focus { border-color: var(--ql-brand-500); box-shadow: 0 0 0 3px rgba(47, 111, 237, .18); }
.form-text { color: var(--ql-muted); font-size: .8rem; }
.input-group-text { background: var(--ql-surface-2); border-color: var(--ql-border-2); color: var(--ql-muted); font-weight: 500; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ql-subtle); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.5rem; }
.input-icon > .toggle-password { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ql-muted); padding: .35rem .5rem; border-radius: 6px; }
.input-icon > .toggle-password:hover { background: var(--ql-surface-2); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--ql-border); border-radius: var(--ql-radius); box-shadow: var(--ql-shadow-sm); background: var(--ql-surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--ql-border); padding: 1rem 1.25rem; font-weight: 700; }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }

/* ---------- Alerts ---------- */
.alert { border: 0; border-radius: var(--ql-radius-sm); display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; padding: .8rem 1rem; }
.alert .bi { font-size: 1.05rem; line-height: 1.2; }
.alert-danger  { background: var(--ql-danger-bg);  color: #991b1b; }
.alert-success { background: var(--ql-success-bg); color: #166534; }
.alert-warning { background: var(--ql-warning-bg); color: #92400e; }
.alert-info    { background: var(--ql-info-bg);    color: #075985; }

/* ---------- Badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.pill-success { background: var(--ql-success-bg); color: #166534; }
.pill-warning { background: var(--ql-warning-bg); color: #92400e; }
.pill-danger  { background: var(--ql-danger-bg);  color: #991b1b; }
.pill-neutral { background: #f1f5f9; color: var(--ql-ink-2); }
.pill-brand   { background: var(--ql-brand-100); color: var(--ql-brand-600); }
.pill-gold    { background: var(--ql-gold-bg); color: #8a5a00; }
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ql-muted); font-weight: 600; background: var(--ql-surface-2); border-bottom: 1px solid var(--ql-border); padding: .7rem 1.25rem; }
.table > tbody td { padding: .85rem 1.25rem; border-color: var(--ql-border); vertical-align: middle; }
.table > tbody tr:last-child td { border-bottom: 0; }

/* ---------- Logo ---------- */
.ql-logo { display: inline-flex; align-items: center; }
.ql-logo img { height: 38px; width: auto; display: block; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ql-muted); }
.empty-state .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ql-brand-100); color: var(--ql-brand-600); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: .75rem; }
.empty-state h3 { font-size: 1rem; margin-bottom: .25rem; }

/* ==========================================================================
   Auth pages (split screen)
   ========================================================================== */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--ql-surface); }
@media (min-width: 992px) { .auth-shell { grid-template-columns: minmax(420px, 46%) 1fr; } }
/* Top-left stays plain logo navy so the dark wordmark blends in. */
.auth-aside {
  display: none; position: relative; overflow: hidden; color: #d3e0f0; padding: 3rem;
  background: radial-gradient(700px 500px at 115% 110%, rgba(56, 189, 248, .28) 0%, transparent 60%),
              radial-gradient(500px 400px at 100% 0%, rgba(47, 111, 237, .25) 0%, transparent 60%),
              #0b3a6b;
}
@media (min-width: 992px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside h2 { color: #fff; font-size: 2rem; line-height: 1.2; font-weight: 800; max-width: 26rem; }
.auth-aside p { color: #c3d4ea; max-width: 26rem; }
.auth-feature { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.auth-feature .bi { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(56, 189, 248, .16); display: inline-flex; align-items: center; justify-content: center; color: var(--ql-sky); }
.auth-feature strong { color: #fff; display: block; font-size: .9375rem; }
.auth-feature span { color: #a9bedb; font-size: .85rem; }
.auth-copy { font-size: .8rem; color: #8ea7c7; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1rem; }
@media (min-width: 576px) { .auth-main { padding: 3rem 2rem; } }
.auth-card { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .35rem; }
.auth-card .lead-sm { color: var(--ql-muted); margin-bottom: 1.75rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--ql-subtle); font-size: .8rem; margin: 1.5rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--ql-border); }
.dev-note { font-size: .78rem; color: var(--ql-muted); background: var(--ql-surface-2); border: 1px dashed var(--ql-border-2); border-radius: var(--ql-radius-sm); padding: .6rem .8rem; }

/* ==========================================================================
   Web app (customer / vendor)
   ========================================================================== */
.app-nav { background: #fff; border-bottom: 1px solid var(--ql-border); position: sticky; top: 0; z-index: 1020; }
.app-nav .container { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-nav .nav-link { color: var(--ql-ink-2); font-weight: 500; padding: .45rem .75rem; border-radius: var(--ql-radius-sm); }
.app-nav .nav-link:hover, .app-nav .nav-link.active { color: var(--ql-brand-600); background: var(--ql-brand-100); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ql-brand-100); color: var(--ql-brand-600); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none; }
.avatar-lg { width: 44px; height: 44px; font-size: 1rem; }
.dropdown-menu { border: 1px solid var(--ql-border); border-radius: var(--ql-radius); box-shadow: var(--ql-shadow-lg); padding: .4rem; font-size: .9rem; }
.dropdown-item { border-radius: 6px; padding: .5rem .7rem; display: flex; align-items: center; gap: .6rem; color: var(--ql-ink-2); }
.dropdown-item:hover { background: var(--ql-surface-2); color: var(--ql-ink); }
.dropdown-item.disabled { color: var(--ql-subtle); }

.page-head { padding: 2rem 0 1.25rem; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head p { color: var(--ql-muted); margin: .25rem 0 0; }

/* Landing hero: big bold headline with one phrase on a sky chip (like the logo). */
.hero { position: relative; overflow: hidden; padding: 4rem 0 6.5rem;
  background:
    radial-gradient(600px 420px at 85% 20%, rgba(56, 189, 248, .22) 0%, transparent 70%),
    radial-gradient(500px 360px at 0% 100%, rgba(47, 111, 237, .10) 0%, transparent 70%),
    var(--ql-bg); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; max-width: 46rem; }
.hl-chip { display: inline-block; background: var(--ql-sky); color: var(--ql-brand-600); border-radius: .2em; padding: 0 .14em; margin: .04em 0; }
.hero p.lead { color: var(--ql-ink-2); font-size: 1.15rem; max-width: 36rem; margin: 1.1rem 0 1.75rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--ql-border); box-shadow: var(--ql-shadow-sm); color: var(--ql-brand-600); font-weight: 600; font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.25rem; }
.hero-badge .bi { color: var(--ql-link); }

/* Example quotations card beside the hero headline. */
.quote-preview { background: #fff; border: 1px solid var(--ql-border); border-radius: 20px; box-shadow: var(--ql-shadow-lg); padding: 1.5rem; max-width: 400px; margin-left: auto; }
.qp-label { font-family: var(--ql-font-head); font-weight: 800; font-size: 1.2rem; color: var(--ql-ink); margin-bottom: .5rem; }
.qp-text { margin: .75rem 0 .5rem; color: var(--ql-ink); }
.qp-sub { font-size: .8rem; color: var(--ql-muted); margin-bottom: .6rem; }
.qp-quote { display: flex; justify-content: space-between; align-items: center; background: var(--ql-bg); border: 1px solid var(--ql-border); border-radius: var(--ql-radius); padding: .75rem 1rem; margin-bottom: .6rem; }
.qp-quote strong { display: flex; align-items: center; gap: .4rem; font-size: .95rem; }
.qp-quote small { color: var(--ql-muted); font-size: .8rem; }
.qp-quote b { font-family: var(--ql-font-head); font-size: 1.2rem; color: var(--ql-brand-600); }
.qp-quote.best { border-color: var(--ql-gold); background: #fffbf0; }
.qp-online { font-size: .8rem; color: var(--ql-muted); display: flex; align-items: center; gap: .4rem; margin-top: .25rem; }
.qp-online .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ql-success); }

/* "3 simple steps" band: navy block, gold title, blue numbered circles. */
.steps-band { background: var(--ql-brand-600); color: #d3e0f0; border-radius: var(--ql-radius-lg); padding: 2rem 1.5rem; text-align: center; }
.steps-band h2 { color: var(--ql-gold); font-size: 1.35rem; margin-bottom: 1.5rem; }
.steps-band .steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps-band .steps { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; } }
.steps-band .step strong { display: block; color: #fff; font-size: 1rem; margin: .7rem 0 .25rem; }
.steps-band .step span { font-size: .85rem; color: #a9bedb; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--ql-link); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.steps-band .arrow { color: var(--ql-sky); font-size: 1.4rem; padding-top: .4rem; display: none; }
@media (min-width: 768px) { .steps-band .arrow { display: block; } }

.sector-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sector-tile { display: flex; align-items: center; gap: .85rem; padding: 1rem; background: var(--ql-surface); border: 1px solid var(--ql-border); border-radius: var(--ql-radius); box-shadow: 0 2px 8px rgba(11, 58, 107, .06); color: var(--ql-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.sector-tile:hover { border-color: var(--ql-brand-200); box-shadow: 0 6px 18px rgba(11, 58, 107, .1); transform: translateY(-1px); color: var(--ql-ink); }
.sector-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex: none; }
.sector-tile strong { display: block; font-size: .9375rem; font-family: var(--ql-font-head); font-weight: 700; }
.sector-tile small { color: var(--ql-muted); }

.cta-card { background: radial-gradient(500px 300px at 100% 0%, rgba(56, 189, 248, .3) 0%, transparent 60%), var(--ql-brand-600); color: #d3e0f0; border: 0; border-radius: var(--ql-radius-lg); padding: 1.75rem; }
.cta-card h2 { color: #fff; font-size: 1.35rem; }
.cta-card .btn-light { --bs-btn-color: var(--ql-brand-600); }
.cta-note { color: #a9bedb; }

.app-footer { border-top: 1px solid var(--ql-border); color: var(--ql-muted); font-size: .85rem; padding: 1.5rem 0; margin-top: 3rem; background: var(--ql-surface); }

/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--ql-sidebar-w); background: var(--ql-sidebar-bg); color: var(--ql-sidebar-ink); display: flex; flex-direction: column; z-index: 1040; transform: translateX(-100%); transition: transform .2s ease; }
.admin-sidebar.open { transform: none; box-shadow: var(--ql-shadow-lg); }
@media (min-width: 992px) { .admin-sidebar { transform: none; } }
.admin-sidebar .brand { height: 64px; display: flex; align-items: center; padding: 0 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-sidebar .brand .ql-logo img { height: 30px; }
.admin-sidebar .brand small { margin-left: .5rem; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ql-sidebar-muted); border: 1px solid rgba(255, 255, 255, .18); border-radius: 4px; padding: .05rem .35rem; }
.admin-nav { padding: 1rem .75rem; overflow-y: auto; flex: 1; }
.admin-nav .section { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ql-sidebar-muted); padding: 1rem .75rem .4rem; }
.admin-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: var(--ql-radius-sm); color: var(--ql-sidebar-ink); font-weight: 500; font-size: .9rem; margin-bottom: 2px; }
.admin-nav a .bi { font-size: 1.05rem; opacity: .8; }
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.active { background: var(--ql-sidebar-active); color: #fff; }
.admin-nav a.active .bi { color: var(--ql-sky); opacity: 1; }
.admin-nav a.disabled { color: #6f8db3; pointer-events: none; }
.admin-nav a .soon { margin-left: auto; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6f8db3; }
.admin-sidebar .foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .75rem; color: var(--ql-sidebar-muted); }
.admin-main { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 992px) { .admin-main { margin-left: var(--ql-sidebar-w); } }
.admin-topbar { height: 64px; background: var(--ql-surface); border-bottom: 1px solid var(--ql-border); display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; position: sticky; top: 0; z-index: 1020; }
@media (min-width: 576px) { .admin-topbar { padding: 0 1.75rem; } }
.admin-topbar h1 { font-size: 1.05rem; margin: 0; }
.admin-content { padding: 1.25rem 1rem 2rem; flex: 1; }
@media (min-width: 576px) { .admin-content { padding: 1.75rem; } }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1030; display: none; }
.sidebar-backdrop.show { display: block; }

.stat-card { padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.stat-card .icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: none; }
.stat-card .label { color: var(--ql-muted); font-size: .8125rem; font-weight: 500; }
.stat-card .value { font-family: var(--ql-font-head); font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tint-brand   { background: var(--ql-brand-100);  color: var(--ql-brand-600); }
.tint-success { background: var(--ql-success-bg); color: var(--ql-success); }
.tint-warning { background: var(--ql-warning-bg); color: var(--ql-warning); }
.tint-info    { background: var(--ql-info-bg);    color: var(--ql-info); }

.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--ql-border); font-size: .875rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--ql-muted); }
.kv strong { text-align: right; font-weight: 600; }

.checklist li { display: flex; gap: .65rem; align-items: center; padding: .45rem 0; font-size: .875rem; }
.checklist .bi-check-circle-fill { color: var(--ql-success); }
.checklist .bi-circle { color: var(--ql-border-2); }
.checklist .todo { color: var(--ql-muted); }

.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* Error page */
.error-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; text-align: center; }
.error-shell .code { font-size: 4rem; font-weight: 800; color: var(--ql-brand-600); letter-spacing: -.04em; line-height: 1; }

/* Admin: sectors */
.row-muted td { color: var(--ql-muted); }
.row-muted .sector-icon { filter: grayscale(1); opacity: .6; }
.sector-icon.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; flex: none; }
.order-buttons { display: inline-flex; gap: .15rem; }
.order-buttons .btn:disabled { opacity: .25; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: .4rem; }
.icon-picker label { cursor: pointer; margin: 0; }
.icon-picker input { position: absolute; opacity: 0; pointer-events: none; }
.icon-picker label > span:first-of-type { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px solid var(--ql-border); border-radius: 10px; font-size: 1.15rem; color: var(--ql-ink-2); background: var(--ql-surface); transition: border-color .15s, background .15s; }
.icon-picker label:hover > span:first-of-type { border-color: var(--ql-brand-200); }
.icon-picker input:checked + span { border-color: var(--ql-brand-500); background: var(--ql-brand-100); color: var(--ql-brand-600); box-shadow: 0 0 0 2px rgba(47, 111, 237, .2); }
.icon-picker input:focus-visible + span { outline: 2px solid var(--ql-brand-500); outline-offset: 2px; }
.icon-picker.is-invalid label > span:first-of-type { border-color: var(--ql-danger, #dc2626); }
.modal-content { border: 0; border-radius: 16px; }
.modal-header, .modal-footer { border-color: var(--ql-border); }
@media (max-width: 575.98px) { .modal-fullscreen-sm-down .modal-content { border-radius: 0; } }

/* Admin: sub services */
.breadcrumb { --bs-breadcrumb-divider-color: var(--ql-subtle); }
.breadcrumb-item.active { color: var(--ql-muted); }
.form-section { border: 1px solid var(--ql-border); border-radius: var(--ql-radius-sm); padding: .85rem 1rem 1rem; background: var(--ql-surface-2); }
.form-section legend { float: none; width: auto; font-size: .8125rem; margin-bottom: .5rem; padding: 0; }

/* Admin: settings */
.settings-grid { display: grid; gap: 1rem; }
@media (min-width: 1200px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.setting-row { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--ql-border); }
.setting-row:last-child { border-bottom: 0; }
.setting-text { min-width: 0; }
.setting-control { flex: none; width: 240px; display: flex; flex-direction: column; align-items: flex-end; }
.setting-control .form-switch .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.setting-number { width: 110px; text-align: right; }
@media (max-width: 575.98px) {
  .setting-row { flex-direction: column; gap: .6rem; }
  .setting-control { width: 100%; align-items: stretch; }
  .setting-control .form-switch { align-self: flex-start; }
  .setting-number { width: 100%; text-align: left; }
}
.settings-actions { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; position: sticky; bottom: 0; z-index: 5; background: var(--ql-bg); padding: .75rem 0; margin-top: 1rem; border-top: 1px solid var(--ql-border); }
@media (max-width: 575.98px) { .settings-actions .btn { flex: 1; } }

/* Admin: quote form builder */
.field-list { display: grid; gap: .75rem; }
.field-card-head { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem .6rem 1rem; border-bottom: 1px solid var(--ql-border); background: var(--ql-surface-2); border-radius: var(--ql-radius) var(--ql-radius) 0 0; }
.field-num { width: 24px; height: 24px; border-radius: 7px; background: var(--ql-brand-100); color: var(--ql-brand-600); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.field-title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-card-head .btn:disabled { opacity: .25; }
.compare-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.compare-list .btn-check:checked + .btn { background: var(--ql-brand-100); border-color: var(--ql-brand-500); color: var(--ql-brand-600); }
.compare-list .btn-check:disabled + .btn { opacity: .45; }
.builder-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
@media (max-width: 991.98px) {
  .builder-actions { position: sticky; bottom: 0; z-index: 5; background: var(--ql-bg); padding: .75rem 0; margin: 1rem 0 0; border-top: 1px solid var(--ql-border); }
  .builder-actions .btn { flex: 1; }
}
.preview-sticky { position: sticky; top: 88px; }
.phone-frame { max-width: 340px; margin: 0 auto; border: 8px solid #0f172a; border-radius: 32px; background: var(--ql-surface); overflow: hidden; box-shadow: var(--ql-shadow-lg); }
.phone-frame-top { background: var(--ql-brand-600); color: #fff; font-weight: 700; font-size: .9rem; padding: .85rem 1rem; text-align: center; }
.phone-frame-body { padding: 1rem; max-height: 560px; overflow-y: auto; background: var(--ql-surface-2); }
.pv-row { margin-bottom: .7rem; }
.pv-label { font-size: .75rem; font-weight: 600; color: var(--ql-ink-2); margin-bottom: .25rem; }
.pv-input { min-height: 36px; border: 1px solid var(--ql-border-2); border-radius: 8px; background: var(--ql-surface); padding: .45rem .6rem; font-size: .8rem; color: var(--ql-subtle); }
.pv-area { min-height: 60px; }
.pv-select::after { content: "▾"; float: right; }
.pv-file { border-style: dashed; text-align: center; }
.pv-filled { min-height: 36px; border-radius: 8px; background: var(--ql-brand-50); color: var(--ql-brand-600); padding: .45rem .6rem; font-size: .8rem; font-weight: 600; }
.pv-button { margin-top: .9rem; background: var(--ql-brand-600); color: #fff; text-align: center; font-weight: 700; font-size: .85rem; border-radius: 10px; padding: .65rem; }

/* ==========================================================================
   Landing page sections
   ========================================================================== */
.trust-line { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; font-weight: 500; color: var(--ql-ink-2); }
.trust-line .bi { color: var(--ql-success); margin-right: .3rem; }

/* Phone-style example card in the hero */
.phone-card { max-width: 380px; margin: 0 auto; background: #fff; border: 1px solid var(--ql-border); border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(11, 58, 107, .35); overflow: hidden; }
@media (min-width: 992px) { .phone-card { margin-right: 0; transform: rotate(1.5deg); } }
.phone-top { background: var(--ql-brand-600); color: #fff; font-family: var(--ql-font-head); font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: .5rem; padding: .85rem 1.25rem; }
.phone-top img { border-radius: 6px; background: #fff; }
.phone-card .quote-preview { border: 0; box-shadow: none; border-radius: 0; max-width: none; margin: 0; }
.qp-button { display: block; text-align: center; background: var(--ql-brand-600); color: #fff; font-weight: 600; border-radius: var(--ql-radius); padding: .7rem; margin-top: 1rem; }

/* Search box overlapping the hero */
.search-wrap { position: relative; margin-top: -3.25rem; z-index: 2; }
.search-box { background: #fff; border: 1px solid var(--ql-border); border-radius: var(--ql-radius-lg); box-shadow: var(--ql-shadow-lg); padding: 1rem; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .search-box { grid-template-columns: 1.4fr 1fr auto; align-items: end; padding: 1.25rem; } }
.search-box label { display: block; font-size: .78rem; font-weight: 600; color: var(--ql-muted); margin-bottom: .35rem; }
.search-box label .bi { color: var(--ql-link); }
.search-box .form-select, .search-box .form-control { height: 48px; }
.search-box .btn { height: 48px; }

/* Section spacing + headings */
.landing-section { padding-top: 4rem; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; }
.section-head p { color: var(--ql-muted); margin: 0; }

/* Service cards (like IMG_8604: white cards, soft colour icon) */
.service-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.service-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; background: #fff; border: 1px solid var(--ql-border); border-radius: var(--ql-radius-lg); box-shadow: 0 2px 8px rgba(11, 58, 107, .06); color: var(--ql-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.service-card:hover { border-color: var(--ql-brand-200); box-shadow: 0 10px 24px rgba(11, 58, 107, .12); transform: translateY(-2px); color: var(--ql-ink); }
.service-card .sector-icon { margin-bottom: .5rem; }
.service-card strong { font-family: var(--ql-font-head); font-size: 1.05rem; font-weight: 800; }
.service-card small { color: var(--ql-muted); font-size: .85rem; line-height: 1.45; flex: 1; }
.service-card .go { margin-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--ql-link); }
.service-card .go .bi { transition: transform .15s; }
.service-card:hover .go .bi { transform: translateX(3px); }

/* Steps band with icons */
.steps-band { padding: 2.5rem 1.5rem; }
.steps-band h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 800; margin-bottom: 2rem; }
.step-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(56, 189, 248, .14); color: var(--ql-sky); font-size: 1.6rem; }
.step-icon .step-num { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; font-size: .8rem; border: 2px solid var(--ql-brand-600); }
.steps-band .step strong { font-size: 1.05rem; margin-top: 1rem; }
.steps-band .step span:not(.step-icon):not(.step-num) { font-size: .9rem; }
.steps-band .arrow { padding-top: 1.2rem; }

/* Why cards */
.why-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why-card { background: #fff; border: 1px solid var(--ql-border); border-radius: var(--ql-radius-lg); padding: 1.5rem; }
.why-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ql-brand-100); color: var(--ql-brand-600); font-size: 1.3rem; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.why-card p { color: var(--ql-muted); font-size: .9rem; margin: 0; }

/* For businesses band */
.biz-band { background: radial-gradient(600px 360px at 100% 0%, rgba(56, 189, 248, .28) 0%, transparent 60%), var(--ql-brand-600); color: #d3e0f0; border-radius: var(--ql-radius-lg); padding: 2.25rem 1.5rem; }
@media (min-width: 992px) { .biz-band { padding: 3rem; } }
.biz-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: .75rem 0; }
.biz-band p { color: #c3d3ea; font-size: 1.02rem; margin-bottom: 1.5rem; max-width: 30rem; }
.biz-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: var(--ql-gold); background: rgba(245, 184, 46, .14); border-radius: 999px; padding: .3rem .75rem; }
.biz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.biz-list li { display: flex; gap: .9rem; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--ql-radius); padding: .9rem 1rem; }
.biz-list .bi { color: var(--ql-sky); font-size: 1.15rem; margin-top: .1rem; }
.biz-list strong { display: block; color: #fff; font-size: .95rem; }
.biz-list span { font-size: .85rem; color: #a9bedb; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .6rem; }
.faq details { background: #fff; border: 1px solid var(--ql-border); border-radius: var(--ql-radius); padding: 0 1.25rem; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-weight: 600; color: var(--ql-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .bi { color: var(--ql-link); transition: transform .2s; flex: none; }
.faq details[open] summary .bi { transform: rotate(45deg); }
.faq details p { color: var(--ql-muted); margin: 0 0 1rem; }

/* Site footer (navy) */
.site-footer { background: var(--ql-brand-600); color: #a9bedb; font-size: .9rem; padding: 3rem 0 1.5rem; margin-top: 4.5rem; }
.site-footer .ql-logo img { height: 34px; }
.site-footer h3 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #c3d3ea; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; }
.steps-band .step .step-icon { color: var(--ql-sky); font-size: 1.6rem; }
.steps-band .step .step-num { color: #fff; font-size: .8rem; }

/* ---------- App bar (phones) — replaces the site header on app-style pages ---------- */
.app-bar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .25rem; height: 56px; padding: 0 .5rem; background: #fff; border-bottom: 1px solid var(--ql-border); }
.app-bar-title { flex: 1; min-width: 0; margin: 0; font-size: 1.05rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ql-ink); font-size: 1.3rem; text-decoration: none; }
.app-bar-btn:active { background: var(--ql-brand-100); }
.app-bar-link { padding: .5rem .75rem; font-weight: 600; text-decoration: none; }

/* ---------- Sector page (C7) ---------- */
.crumbs { align-items: center; gap: .5rem; padding-top: 1.5rem; font-size: .875rem; color: var(--ql-muted); }
.crumbs a { text-decoration: none; }
.crumbs .bi { font-size: .7rem; }
.sector-hero { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0 1.25rem; }
.sector-hero h1 { font-size: 1.5rem; margin: 0; }
.sector-hero p { margin: .2rem 0 0; color: var(--ql-muted); font-size: .9rem; }
.sector-icon-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.6rem; }
.svc-list { display: grid; gap: .75rem; }
.svc-card { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--ql-border); border-radius: var(--ql-radius-lg); box-shadow: 0 2px 8px rgba(11, 58, 107, .06); }
.svc-card h2 { font-size: 1.05rem; margin: 0 0 .25rem; }
.svc-desc { margin: 0 0 .5rem; color: var(--ql-ink-2); font-size: .9rem; }
.svc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.svc-gets { color: var(--ql-muted); font-size: .8rem; }
.svc-action { display: flex; flex-direction: column; gap: .25rem; text-align: center; }
.svc-action .btn { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 600; }
.privacy-note { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.25rem; padding: .9rem 1rem; background: var(--ql-brand-50); border: 1px solid var(--ql-brand-100); border-radius: var(--ql-radius); font-size: .875rem; color: var(--ql-ink-2); }
.privacy-note .bi { color: var(--ql-brand-600); font-size: 1.2rem; line-height: 1.2; }
.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; flex: none; min-height: 40px; padding: .4rem .9rem; background: #fff; border: 1px solid var(--ql-border); border-radius: 999px; color: var(--ql-ink); font-size: .875rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--ql-brand-200); color: var(--ql-brand-600); }

@media (min-width: 768px) {
  .sector-hero { padding: 1rem 0 1.75rem; }
  .sector-hero h1 { font-size: 1.85rem; }
  .svc-list { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .svc-card { padding: 1.25rem; justify-content: space-between; }
  .svc-action { align-items: flex-start; text-align: left; }
  .svc-action .btn { width: auto; min-height: 44px; padding-inline: 1.25rem; }
  .chip-row { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1200px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Forms in the web app (business sign-up B0 etc.) ---------- */
.text-brand { color: var(--ql-brand-600) !important; }
.biz-form, .biz-welcome { max-width: 720px; margin: 0 auto; padding-bottom: 6.5rem; }
.form-section { background: #fff; border: 1px solid var(--ql-border); border-radius: var(--ql-radius-lg); padding: 1.1rem 1rem; margin-bottom: .9rem; box-shadow: 0 2px 8px rgba(11, 58, 107, .05); }
.form-section h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; margin: 0 0 1rem; }
.form-section h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ql-brand-100); color: var(--ql-brand-600); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.form-section .form-control, .form-section .form-select { min-height: 48px; }
.check-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; margin: 0; padding: 0; border: 0; }
.check-grid[data-off] { display: none; }
.check-card { display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .65rem .9rem; border: 1.5px solid var(--ql-border); border-radius: var(--ql-radius); background: #fff; font-weight: 500; cursor: pointer; user-select: none; }
.check-card .bi-check-circle-fill { display: none; color: var(--ql-brand-500); }
.check-card .bi-circle { color: var(--ql-border-2); }
.btn-check:checked + .check-card { border-color: var(--ql-brand-500); background: var(--ql-brand-50); color: var(--ql-brand-600); }
.btn-check:checked + .check-card .bi-check-circle-fill { display: inline; }
.btn-check:checked + .check-card .bi-circle { display: none; }
.btn-check:focus-visible + .check-card { outline: 3px solid var(--ql-brand-200); outline-offset: 1px; }
.map-box { height: 260px; border-radius: var(--ql-radius); border: 1px solid var(--ql-border); overflow: hidden; z-index: 0; }
.map-box.is-invalid { border-color: var(--ql-danger); }
.submit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1010; display: flex; flex-direction: column; gap: .25rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ql-border); box-shadow: 0 -6px 18px rgba(11, 58, 107, .08); text-align: center; }
.submit-bar .btn { width: 100%; min-height: 52px; }
.biz-hero { text-align: center; padding: 1.75rem 1rem 1.5rem; margin: 1rem 0 .9rem; border-radius: var(--ql-radius-lg); background: linear-gradient(160deg, var(--ql-brand-600), #164f8f); color: #d9e6f5; }
.biz-hero h1 { color: #fff; font-size: 1.6rem; margin: .5rem 0 .35rem; }
.biz-hero strong { color: #fff; }
.biz-hero-icon { font-size: 2.6rem; color: var(--ql-sky); }
.biz-hero.pending .biz-hero-icon { color: var(--ql-gold); }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.next-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--ql-ink-2); }
.next-list .bi { color: var(--ql-brand-500); font-size: 1.15rem; line-height: 1.3; }
.next-list em { color: var(--ql-subtle); font-style: normal; font-size: .8rem; }

@media (min-width: 576px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .biz-form, .biz-welcome { padding-bottom: 2rem; }
  .form-section { padding: 1.5rem; }
  .map-box { height: 320px; }
  .submit-bar { position: static; flex-direction: row; align-items: center; gap: 1rem; padding: 0; background: none; border: 0; box-shadow: none; text-align: left; margin-bottom: 3rem; }
  .submit-bar .btn { width: auto; padding-inline: 1.75rem; }
}

/* ==========================================================================
   App shell: on phones every customer/business screen looks like the app
   ========================================================================== */
a, button, .btn, summary, label { -webkit-tap-highlight-color: transparent; }
:root { --ql-tabbar-h: 64px; }

/* Bottom tab bar (logged in, main screens) */
.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--ql-tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--ql-border); box-shadow: 0 -4px 16px rgba(11, 58, 107, .06); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ql-muted); text-decoration: none; font-size: .68rem; font-weight: 600; }
.tab .tab-icon { font-size: 1.3rem; line-height: 1; }
.tab.active { color: var(--ql-brand-600); }
.tab-post .tab-icon { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--ql-brand-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; box-shadow: 0 6px 14px rgba(11, 58, 107, .35); border: 3px solid #fff; }
.tab-post.active { color: var(--ql-brand-600); }

/* Bottom bar for visitors */
.guest-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ql-border); box-shadow: 0 -4px 16px rgba(11, 58, 107, .06); }
.guest-bar .btn { flex: 1; min-height: 48px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.guest-bar .btn-light { background: var(--ql-brand-50); border-color: var(--ql-brand-100); color: var(--ql-brand-600); }
.mini-footer { padding: 1.5rem 1rem 1.25rem; text-align: center; font-size: .8rem; color: var(--ql-muted); }
.mini-footer a { color: var(--ql-ink-2); text-decoration: none; }
.mini-footer div { margin-top: .4rem; color: var(--ql-subtle); }

/* Coming soon screen */
.soon-screen { max-width: 420px; margin: 0 auto; padding: 3rem 1rem; text-align: center; color: var(--ql-muted); }
.soon-screen h2 { font-size: 1.3rem; margin: 1rem 0 .4rem; }
.soon-screen p { margin-bottom: 1rem; }
.soon-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--ql-brand-100); color: var(--ql-brand-600); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }

/* Account screen + app-style menu lists */
.account-page { max-width: 640px; margin: 0 auto; }
.profile-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1rem; margin: 1rem 0 .5rem; background: #fff; border: 1px solid var(--ql-border); border-radius: var(--ql-radius-lg); }
.profile-card h2 { font-size: 1.15rem; margin: 0 0 .1rem; }
.avatar-xl { width: 56px; height: 56px; font-size: 1.2rem; }
.min-w-0 { min-width: 0; }
.list-head { display: flex; align-items: center; gap: .4rem; font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ql-muted); margin: 1.25rem .25rem .5rem; }
.menu-list { background: #fff; border: 1px solid var(--ql-border); border-radius: var(--ql-radius-lg); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: .85rem; min-height: 60px; padding: .7rem 1rem; color: var(--ql-ink); text-decoration: none; border-bottom: 1px solid var(--ql-border); }
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover, .menu-item:active { background: var(--ql-surface-2); color: var(--ql-ink); }
.menu-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; background: #f1f5f9; color: var(--ql-ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.menu-text { flex: 1; min-width: 0; }
.menu-text strong { display: block; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-text small { display: block; color: var(--ql-muted); font-size: .8rem; }
.menu-item .chev { color: var(--ql-subtle); }
.btn-logout { min-height: 52px; background: #fff; border: 1px solid var(--ql-border); color: var(--ql-danger); font-weight: 600; border-radius: var(--ql-radius-lg); }
.btn-logout:hover { background: var(--ql-danger-bg); color: var(--ql-danger); border-color: var(--ql-danger-bg); }

/* What do you need? search + bottom sheet */
.search-trigger { width: 100%; display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: 0 1rem; background: #fff; border: 1px solid var(--ql-border); border-radius: 14px; color: var(--ql-muted); font-size: 1rem; text-align: left; box-shadow: 0 2px 8px rgba(11, 58, 107, .05); }
.search-trigger .bi { color: var(--ql-link); font-size: 1.1rem; }
.search-trigger:hover { border-color: var(--ql-brand-200); }
.sheet.offcanvas-bottom { height: auto; max-height: 88vh; border-radius: 20px 20px 0 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
.sheet .offcanvas-header { padding-bottom: .5rem; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--ql-border-2); margin: .6rem auto 0; }
.sheet .list-head { margin-top: .75rem; }
.sheet .menu-item { min-height: 52px; }
@media (min-width: 768px) { .sheet.offcanvas-bottom { max-width: 640px; margin: 0 auto; max-height: 75vh; } }

.svc-card:target { border-color: var(--ql-brand-500); box-shadow: 0 0 0 3px var(--ql-brand-100); }
.svc-card { scroll-margin-top: 72px; }

/* ---------- Phone only ---------- */
@media (max-width: 767.98px) {
  body.has-tabbar { padding-bottom: calc(var(--ql-tabbar-h) + env(safe-area-inset-bottom) + 8px); }
  body.has-guestbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container { padding-left: 1rem; padding-right: 1rem; }
  /* 16px inputs: iPhone does not zoom in on focus */
  .form-control, .form-select, .input-group-text { font-size: 16px; }

  /* Top bar */
  .app-nav .container { height: 56px; }
  .app-nav .ql-logo img { height: 28px; width: auto; }
  .app-bar { padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); }

  /* Home */
  .home-head { padding: 1.1rem 0 .9rem; }
  .home-head h1 { font-size: 1.4rem; }
  .cta-card { padding: 1.25rem; }
  .cta-card h2 { font-size: 1.15rem; }
  .cta-card .btn { width: 100%; min-height: 48px; }

  /* Category icon grid (Home) */
  .sector-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .sector-tile { flex-direction: column; text-align: center; gap: .45rem; padding: .85rem .4rem; }
  .sector-tile strong { font-size: .8rem; line-height: 1.2; }
  .sector-tile small { font-size: .7rem; }

  /* Login / sign up */
  .auth-main { justify-content: flex-start; padding: calc(.75rem + env(safe-area-inset-top)) 1.25rem 2rem; }
  .auth-top { display: flex; align-items: center; gap: .25rem; margin: 0 0 1.75rem -.6rem; }
  .auth-top .ql-logo img { height: 30px; width: auto; }
  .auth-card h1 { font-size: 1.5rem; }
  .auth-card .btn-lg { min-height: 52px; }

  /* Landing */
  .hero { padding: 1.75rem 0 4.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1rem; margin: .85rem 0 1.25rem; }
  .hero-badge { margin-bottom: .9rem; }
  .hero-cta { width: 100%; min-height: 52px; }
  .trust-line { margin-top: 1rem; gap: .35rem 1rem; font-size: .82rem; }
  .landing-section { padding-top: 2.5rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .service-card { align-items: center; text-align: center; padding: .9rem .4rem; gap: .2rem; }
  .service-card .sector-icon { margin-bottom: .25rem; }
  .service-card strong { font-size: .8rem; line-height: 1.2; font-weight: 700; }
  .service-card small, .service-card .go { display: none; }
}

/* Business documents (5b) */
.doc-item { align-items: flex-start; }
.doc-item .menu-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-actions { display: flex; gap: .1rem; margin-right: -.5rem; }
.doc-actions .app-bar-btn { font-size: 1.15rem; background: none; border: 0; }
.check-grid.one-col { grid-template-columns: 1fr; }
.tint-danger  { background: var(--ql-danger-bg);  color: var(--ql-danger); }
.doc-item .menu-text strong { white-space: normal; }

/* ---------- Edit business card (B5) ---------- */
.min-w-0 { min-width: 0; }
.svc-groups { display: grid; gap: .5rem; }
.svc-group { border: 1px solid var(--ql-border); border-radius: var(--ql-radius); background: var(--ql-surface-2); }
.svc-group summary { display: flex; align-items: center; gap: .5rem; min-height: 52px; padding: .6rem .9rem; font-weight: 600; cursor: pointer; list-style: none; }
.svc-group summary::-webkit-details-marker { display: none; }
.svc-group summary > span:first-child { flex: 1; }
.svc-group summary .bi { color: var(--ql-subtle); transition: transform .15s; }
.svc-group[open] summary .bi { transform: rotate(180deg); }
.svc-group .check-grid { padding: 0 .6rem .6rem; }
.big-switch { display: flex; align-items: center; gap: .6rem; padding-left: 0; min-height: 44px; }
.big-switch .form-check-input { width: 2.6em; height: 1.4em; margin: 0; float: none; flex: none; }
.big-switch .form-check-label { font-weight: 500; }
.hours-list { border: 1px solid var(--ql-border); border-radius: var(--ql-radius); overflow: hidden; }
.hours-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; padding: .6rem .8rem; border-bottom: 1px solid var(--ql-border); background: #fff; }
.hours-row:last-child { border-bottom: 0; }
.hours-row .form-switch { min-width: 8.5rem; min-height: 32px; display: flex; align-items: center; gap: .5rem; padding-left: 0; }
.hours-row .form-switch .form-check-input { float: none; margin: 0; width: 2.3em; height: 1.25em; }
.hours-row .form-check-label { font-weight: 500; }
.hours-times { display: flex; align-items: center; gap: .4rem; flex: 1 1 15rem; max-width: 22rem; min-width: 0; }
.hours-times .form-control { flex: 1 1 0; width: 0; min-width: 0; padding-right: .5rem; min-height: 42px; font-size: .95rem; }
.hours-row .closed-label { display: none; }
.hours-row.closed .hours-times { display: none; }
.hours-row.closed .closed-label { display: inline; }
.hours-row.closed { background: var(--ql-surface-2); }

/* Logo + photos */
.logo-box { display: flex; align-items: center; gap: 1rem; }
.logo-preview { width: 88px; height: 88px; flex: none; border-radius: 18px; overflow: hidden; background: var(--ql-brand-100); color: var(--ql-brand-600); display: flex; align-items: center; justify-content: center; font: 800 2rem/1 "Plus Jakarta Sans", sans-serif; border: 1px solid var(--ql-border); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.logo-preview.sm { width: 56px; height: 56px; border-radius: 14px; font-size: 1.35rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-tile { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--ql-radius); overflow: hidden; background: #e8eef7; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; top: .3rem; right: .3rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .6); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.photo-add { aspect-ratio: 1; margin: 0; width: 100%; border: 2px dashed var(--ql-border-2); border-radius: var(--ql-radius); background: #fff; color: var(--ql-brand-500); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.photo-add .bi { font-size: 1.6rem; }
.photo-add:hover { border-color: var(--ql-brand-500); background: var(--ql-brand-50); }
.upload-wait { position: fixed; inset: 0; z-index: 2000; background: rgba(255, 255, 255, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; font-weight: 600; }
.upload-wait[hidden] { display: none; }

/* My business card summary */
.biz-card-head { display: flex; align-items: center; gap: .85rem; }
.biz-about { color: var(--ql-ink-2); white-space: normal; }
.todo-card { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--ql-radius-lg); background: #fff8e6; border: 1px solid #f7dc95; color: var(--ql-ink); text-decoration: none; }
.todo-card > .bi:first-child { font-size: 1.4rem; color: #c48a07; }
.todo-card span { flex: 1; }
.todo-card strong { display: block; font-size: .95rem; }
.todo-card small { color: var(--ql-ink-2); }
.todo-card:hover { color: var(--ql-ink); background: #fff3d1; }
.form-section[id], #manage { scroll-margin-top: 72px; }

/* Public business page (C8) */
.biz-public { max-width: 720px; margin: 0 auto; padding: 1rem 0 6.5rem; }
.owner-banner { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; margin-bottom: .9rem; border-radius: var(--ql-radius); background: var(--ql-brand-50); border: 1px solid var(--ql-brand-100); color: var(--ql-ink-2); font-size: .875rem; }
.owner-banner .bi { color: var(--ql-brand-600); font-size: 1.15rem; line-height: 1.2; }
.owner-banner.off { background: var(--ql-warning-bg); border-color: #fcd98a; }
.owner-banner.off .bi { color: var(--ql-warning); }
.bp-name { font-size: 1.35rem; margin: 0 0 .3rem; }
.bp-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.bp-sub { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .35rem; font-size: .82rem; color: var(--ql-muted); }
.bp-stats { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: .5rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--ql-border); }
.bp-stats strong { display: block; font-size: 1rem; }
.bp-stats span { font-size: .78rem; color: var(--ql-muted); }
.bp-share { min-height: 40px; white-space: nowrap; }
.text-gold { color: var(--ql-gold); }
.bp-sector + .bp-sector { margin-top: .9rem; }
.bp-sector-name { display: inline-block; margin-bottom: .45rem; font-size: .82rem; font-weight: 700; color: var(--ql-ink-2); text-decoration: none; }
.bp-sector-name:hover { color: var(--ql-link); }
@media (min-width: 768px) {
  .biz-public { padding-bottom: 2rem; }
  .bp-name { font-size: 1.6rem; }
  .biz-public .crumbs { padding-top: .5rem; margin-bottom: 1rem; }
}
