@font-face { font-family: "Plus Jakarta Sans"; src: url("../vendor/fonts/PlusJakartaSans-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
/* Bill92 — UI styles (on top of Bootstrap 5.3) */
:root {
  --im-ink: #0c1d2e;
  --im-ink-2: #15293d;
  --im-teal: #0f766e;
  --im-teal-2: #0d9488;
  --im-teal-soft: #e6f4f2;
  --im-amber: #f5a524;
  --im-paper: #f6f7f4;
  --im-line: #e4e6e1;
  --im-muted: #66717d;
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: #0f766e;
  --bs-link-hover-color: #0b5c56;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: #1d2a36;
  --bs-border-color: #e4e6e1;
}
body { background: var(--im-paper); -webkit-font-smoothing: antialiased; }
.btn-primary { --bs-btn-bg: var(--im-teal); --bs-btn-border-color: var(--im-teal); --bs-btn-hover-bg: #0b5c56; --bs-btn-hover-border-color: #0b5c56; --bs-btn-active-bg: #0a4f4a; --bs-btn-disabled-bg: var(--im-teal); --bs-btn-disabled-border-color: var(--im-teal); }
.btn-outline-primary { --bs-btn-color: var(--im-teal); --bs-btn-border-color: var(--im-teal); --bs-btn-hover-bg: var(--im-teal); --bs-btn-hover-border-color: var(--im-teal); --bs-btn-active-bg: var(--im-teal); }
.btn-amber { background: var(--im-amber); border-color: var(--im-amber); color: #1d1300; font-weight: 600; }
.btn-amber:hover { background: #e39512; border-color: #e39512; color: #1d1300; }
.btn { border-radius: 10px; font-weight: 500; }
.form-control, .form-select { border-radius: 10px; border-color: #d8dbd5; }
.form-control:focus, .form-select:focus { border-color: var(--im-teal-2); box-shadow: 0 0 0 .2rem rgba(13, 148, 136, .15); }
.form-label { font-weight: 600; font-size: .85rem; color: #34414d; margin-bottom: .3rem; }
.card { border: 1px solid var(--im-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(12, 29, 46, .04); }
.card-header { background: transparent; border-bottom: 1px solid var(--im-line); font-weight: 600; }
.text-muted, .text-secondary { color: var(--im-muted) !important; }
.table > :not(caption) > * > * { padding: .7rem .75rem; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--im-muted); font-weight: 600; background: #fafbf9; }
.badge-status { font-weight: 600; padding: .4em .7em; border-radius: 999px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }

/* App shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: var(--im-ink); color: #c7d1db; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 1.25rem 1.25rem 1rem; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: .8rem !important; letter-spacing: -.02em; background: linear-gradient(135deg, var(--im-teal-2), #34d399); display: inline-flex; align-items: center; justify-content: center; color: #04231f; font-weight: 800; font-size: .95rem; }
.sidebar nav { padding: .5rem .75rem; flex: 1; overflow-y: auto; }
.sidebar .nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6f8296; padding: 1rem .75rem .35rem; }
.sidebar a.nav-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 9px; color: #c7d1db; text-decoration: none; font-size: .93rem; margin-bottom: 2px; }
.sidebar a.nav-item:hover { background: var(--im-ink-2); color: #fff; }
.sidebar a.nav-item.active { background: rgba(13, 148, 136, .22); color: #fff; }
.sidebar a.nav-item .bi { font-size: 1.05rem; opacity: .9; }
.sidebar .lock { margin-left: auto; font-size: .7rem; color: var(--im-amber); }
.sidebar .usage { margin: .75rem; padding: .9rem; border-radius: 12px; background: var(--im-ink-2); font-size: .85rem; }
.usage-bar { height: 6px; background: #2a3e52; border-radius: 99px; overflow: hidden; margin: .5rem 0 .65rem; }
.usage-bar > span { display: block; height: 100%; background: var(--im-teal-2); }
.usage-bar.full > span { background: var(--im-amber); }
.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; border-bottom: 1px solid var(--im-line); background: rgba(255,255,255,.7); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.content { padding: 1.75rem 2rem 3rem; max-width: 1240px; }
.page-title { font-weight: 700; font-size: 1.45rem; margin: 0; letter-spacing: -.01em; }
.dev-banner { background: #fff4d6; color: #6b4b00; text-align: center; font-size: .82rem; padding: .35rem; border-bottom: 1px solid #f5dfa0; }
@media (max-width: 991px) {
  .sidebar { position: fixed; left: -260px; z-index: 1040; transition: left .2s; }
  .sidebar.open { left: 0; }
  .content, .topbar { padding-left: 1rem; padding-right: 1rem; }
}

/* Stats */
.stat { padding: 1.1rem 1.2rem; }
.stat .label { font-size: .78rem; color: var(--im-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .value { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; margin-top: .2rem; }
.stat .sub { font-size: .82rem; color: var(--im-muted); }
.locked { position: relative; }
.locked .blur { filter: blur(5px); user-select: none; pointer-events: none; }
.locked .unlock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .5rem; text-align: center; padding: 1rem; }
.quota-card { background: linear-gradient(135deg, #0c1d2e, #123b46); color: #e7eef4; border: 0; }
.quota-card .usage-bar { background: rgba(255,255,255,.15); height: 8px; }
.quota-card.full { background: linear-gradient(135deg, #3b2500, #6b3f00); }

/* Invoice editor */
.items-table td { vertical-align: top; }
.items-table input { min-width: 0; }
.items-table .col-qty { width: 100px; }
.items-table .col-price { width: 140px; }
.items-table .col-amount { width: 130px; text-align: right; padding-top: 1.05rem !important; font-variant-numeric: tabular-nums; }
.totals-box { background: #fafbf9; border: 1px solid var(--im-line); border-radius: 12px; padding: 1rem 1.1rem; }
.totals-box .row-t { display: flex; justify-content: space-between; padding: .25rem 0; font-variant-numeric: tabular-nums; }
.totals-box .grand { border-top: 1px solid var(--im-line); margin-top: .4rem; padding-top: .6rem; font-weight: 700; font-size: 1.15rem; }
.template-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.template-pick label { border: 1.5px solid var(--im-line); border-radius: 12px; padding: .7rem; cursor: pointer; background: #fff; font-size: .85rem; position: relative; display: block; }
.template-pick input { position: absolute; opacity: 0; }
.template-pick input:checked + .tp { color: var(--im-teal); }
.template-pick label:has(input:checked) { border-color: var(--im-teal); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.template-pick label.disabled { opacity: .55; cursor: not-allowed; }
.tp-thumb { height: 54px; border-radius: 7px; margin-bottom: .45rem; background: #f1f2ef; position: relative; overflow: hidden; }
.tp-thumb::before, .tp-thumb::after { content: ""; position: absolute; left: 10px; right: 10px; height: 4px; border-radius: 3px; background: #d5d8d2; }
.tp-thumb::before { top: 26px; } .tp-thumb::after { top: 36px; right: 40px; }
.tp-classic { border-top: 6px solid #1f2937; } .tp-modern { background: #fff; border: 1px solid #e5e7eb; } .tp-modern::before { background: #0f766e; width: 30px; }
.tp-professional { border-top: 16px solid #1e3a8a; } .tp-elegant { border-top: 1px solid #8a6d3b; border-bottom: 1px solid #8a6d3b; background: #fbf8f2; } .tp-creative { border-left: 10px solid #e4572e; }
.preview-frame { width: 100%; height: 1120px; border: 1px solid var(--im-line); border-radius: 12px; background: #fff; }

/* Public / marketing */
.pub-nav { background: rgba(246,247,244,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--im-line); }
.pub-nav .brand { font-weight: 700; color: var(--im-ink); text-decoration: none; display: flex; align-items: center; gap: .55rem; font-size: 1.1rem; }
.hero { padding: 5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: var(--im-ink); }
.hero h1 em { font-style: normal; color: var(--im-teal); }
.hero .lead { font-size: 1.15rem; color: #46525e; max-width: 36rem; }
.eyebrow { display: inline-flex; gap: .45rem; align-items: center; font-size: .8rem; font-weight: 600; color: var(--im-teal); background: var(--im-teal-soft); padding: .3rem .75rem; border-radius: 99px; }
.mock { background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(12,29,46,.25), 0 0 0 1px rgba(12,29,46,.06); padding: 1.6rem; transform: rotate(1.2deg); }
.mock .bar { height: 8px; border-radius: 4px; background: #eceee9; }
.section { padding: 4.5rem 0; }
.section h2 { font-weight: 800; letter-spacing: -.025em; color: var(--im-ink); }
.feature-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--im-teal-soft); color: var(--im-teal); font-size: 1.3rem; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--im-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.price-card { border-radius: 18px; padding: 1.8rem; height: 100%; background: #fff; border: 1px solid var(--im-line); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--im-teal); box-shadow: 0 20px 40px -20px rgba(15,118,110,.35); }
.price-card .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--im-ink); }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.price-card li { padding: .3rem 0; display: flex; gap: .55rem; font-size: .93rem; }
.price-card li .bi-check2 { color: var(--im-teal); }
.price-card li.no { color: #9aa3ab; }
.dark-band { background: var(--im-ink); color: #dbe4ec; }
.dark-band h2 { color: #fff; }
.footer { border-top: 1px solid var(--im-line); padding: 2.5rem 0; font-size: .9rem; color: var(--im-muted); }
.footer a { color: var(--im-muted); text-decoration: none; }
.footer a:hover { color: var(--im-ink); }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; font-weight: 700; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; }
.upgrade-hero { background: linear-gradient(135deg, #0c1d2e, #123b46); color: #e7eef4; border-radius: 18px; padding: 2.2rem; }
.upgrade-hero h1 { color: #fff; font-weight: 800; letter-spacing: -.02em; }
