/* SellFire Media eSMS 4.3 — one stylesheet, no build step. */

@font-face { font-family: "Urbanist"; font-weight: 400; font-display: swap; src: url("../fonts/urbanist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-weight: 500; font-display: swap; src: url("../fonts/urbanist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-weight: 600; font-display: swap; src: url("../fonts/urbanist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-weight: 700; font-display: swap; src: url("../fonts/urbanist-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #F3F4FB;
  --surface: #FFFFFF;
  --sunken: #F0F1F9;
  --line: #E2E5F1;
  --line-strong: #CDD2E6;
  --ink: #15183A;
  --muted: #5B6188;
  --faint: #9196B6;

  --cyan: #0891B2;   --cyan-soft: #E0F6FB;
  --blue: #2563EB;   --blue-soft: #E5EDFE;
  --violet: #7C3AED; --violet-soft: #F0E9FE;
  --pink: #DB2777;   --pink-soft: #FCE7F1;
  --green: #059669;  --green-soft: #DDF5EC;
  --amber: #C2710C;  --amber-soft: #FDF1DC;
  --red: #DC2626;    --red-soft: #FDE6E6;
  --gray: #5B6188;   --gray-soft: #ECEEF6;

  --brand: linear-gradient(120deg, #FF8A00 0%, #FF2D3A 45%, #A42BE8 100%);
  --focus: 0 0 0 3px rgba(164, 43, 232, .35);
  --shadow: 0 1px 2px rgba(21, 24, 58, .05), 0 6px 20px -8px rgba(21, 24, 58, .10);
  --shadow-pop: 0 24px 60px -16px rgba(21, 24, 58, .35);
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0D0F24;
  --surface: #151933;
  --sunken: #1B2040;
  --line: #262B4D;
  --line-strong: #353B66;
  --ink: #EEF0FF;
  --muted: #A6ABD0;
  --faint: #6F75A3;
  --cyan: #38BDF8;   --cyan-soft: rgba(56,189,248,.14);
  --blue: #6E9BFF;   --blue-soft: rgba(110,155,255,.15);
  --violet: #A78BFA; --violet-soft: rgba(167,139,250,.15);
  --pink: #F472B6;   --pink-soft: rgba(244,114,182,.14);
  --green: #34D399;  --green-soft: rgba(52,211,153,.13);
  --amber: #FBBF24;  --amber-soft: rgba(251,191,36,.13);
  --red: #F87171;    --red-soft: rgba(248,113,113,.14);
  --gray: #A6ABD0;   --gray-soft: rgba(166,171,208,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -10px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.ico { width: 18px; height: 18px; flex: none; stroke-width: 1.9; }
[data-theme="light"] .only-dark, [data-theme="dark"] .only-light { display: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Shell ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 50; display: flex; flex-direction: column; color: #fff;
  background:
    radial-gradient(420px 260px at -10% -5%, rgba(255,122,0,.30), transparent 60%),
    radial-gradient(380px 300px at 110% 105%, rgba(124,58,237,.45), transparent 60%),
    radial-gradient(300px 220px at 90% 35%, rgba(219,39,119,.16), transparent 60%),
    #1A0A33;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.55); }
.side-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-weight: 500; color: rgba(255,255,255,.72); transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.is-on { background: rgba(255,255,255,.11); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-link.is-on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.nav-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.nav-ico .ico { width: 17px; height: 17px; }
.nav-ico.t-blue { color: #93B4FF; } .nav-ico.t-cyan { color: #67E8F9; } .nav-ico.t-pink { color: #F9A8D4; } .nav-ico.t-green { color: #6EE7B7; }
.nav-ico.t-amber { color: #FCD34D; } .nav-ico.t-violet { color: #C4B5FD; } .nav-ico.t-gray { color: #CBD0EE; }
.nav-link.is-on .nav-ico { color: #fff; }
.nav-link.is-on .t-blue { background: #2563EB; } .nav-link.is-on .t-cyan { background: #0891B2; } .nav-link.is-on .t-pink { background: #DB2777; }
.nav-link.is-on .t-green { background: #059669; } .nav-link.is-on .t-amber { background: #D97706; } .nav-link.is-on .t-violet { background: #7C3AED; }
.nav-link.is-on .t-gray { background: #4B5280; }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: #DB2777; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin: 8px 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.side-user { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-user b, .side-user em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user b { font-size: 14px; font-weight: 600; }
.side-user em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.55); }

.frame { padding-left: 256px; min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { width: 14px; height: 14px; color: var(--faint); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 32px 48px; }
.main:focus { box-shadow: none; }
.foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.scrim { display: none; }

@media (max-width: 1023px) {
  .side { transform: translateX(-100%); transition: transform .2s ease; }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(13,15,36,.55); }
  .frame { padding-left: 0; }
  .menu-btn { display: inline-grid; }
  .top { padding: 0 16px; }
  .main { padding: 20px 16px 40px; }
}
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.page-sub { margin-top: 6px; color: var(--muted); max-width: 64ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .1s, filter .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .ico { width: 17px; height: 17px; }
.btn-primary { color: #fff; background: linear-gradient(120deg, #FF4D1F, #A42BE8); box-shadow: 0 6px 18px -8px rgba(164,43,232,.7); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--sunken); }
.btn-soft { background: var(--violet-soft); color: var(--violet); }
.btn-soft:hover { filter: brightness(.97); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.07); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.btn-danger-ghost:hover { background: var(--red-soft); }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn-sm .ico { width: 15px; height: 15px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.icon-btn.on-dark { color: rgba(255,255,255,.65); width: 34px; height: 34px; }
.icon-btn.on-dark:hover { background: rgba(255,255,255,.1); color: #fff; }
.link { color: var(--blue); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Dropdown menu */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); z-index: 60; }
.menu-pop a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; }
.menu-pop a:hover { background: var(--sunken); }
.menu-pop a .ico { margin-top: 2px; color: var(--violet); }
.menu-pop span { display: flex; flex-direction: column; }
.menu-pop b { font-size: 14px; font-weight: 600; }
.menu-pop em { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 16px; font-weight: 700; }
.card-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--sunken); border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .g-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .g-2, .g-4 { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 20px; }
.mb { margin-bottom: 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Stat tiles */
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.stat-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.stat-ico .ico { width: 22px; height: 22px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.stat-hint { font-size: 12px; color: var(--faint); }
.t-blue { background: var(--blue-soft); color: var(--blue); } .t-cyan { background: var(--cyan-soft); color: var(--cyan); }
.t-violet { background: var(--violet-soft); color: var(--violet); } .t-pink { background: var(--pink-soft); color: var(--pink); }
.t-green { background: var(--green-soft); color: var(--green); } .t-amber { background: var(--amber-soft); color: var(--amber); }
.t-red { background: var(--red-soft); color: var(--red); } .t-gray { background: var(--gray-soft); color: var(--gray); }

/* Badges, chips */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-green { background: var(--green-soft); color: var(--green); } .b-red { background: var(--red-soft); color: var(--red); }
.b-amber { background: var(--amber-soft); color: var(--amber); } .b-blue { background: var(--blue-soft); color: var(--blue); }
.b-violet { background: var(--violet-soft); color: var(--violet); } .b-gray { background: var(--gray-soft); color: var(--gray); }
.b-cyan { background: var(--cyan-soft); color: var(--cyan); } .b-pink { background: var(--pink-soft); color: var(--pink); }
.sender { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 99px; flex: none; }
.dot-ok { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.dot-bad { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent); }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.avatar.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }

/* Alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; margin-bottom: 18px; border-radius: 14px; font-weight: 500; border: 1px solid transparent; }
.alert .ico { margin-top: 1px; }
.alert-success { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.alert-error { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.alert-warn { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.alert-info { background: var(--blue-soft); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 22%, transparent); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink); }
.label em { font-style: normal; font-weight: 500; color: var(--faint); }
.input { width: 100%; height: 42px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 120px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239196B6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover { border-color: var(--faint); }
.input:focus { outline: none; border-color: #6366F1; box-shadow: var(--focus); }
.input::placeholder { color: var(--faint); }
.hint { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-section { font-size: 13px; font-weight: 700; color: var(--violet); display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.form-section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #6366F1; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 13px; background: var(--sunken); border: 1px solid var(--line); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:checked + span.s-add { color: var(--green); } .seg input:checked + span.s-deduct { color: var(--red); } .seg input:checked + span.s-set { color: var(--blue); }
.seg input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 12px 22px; background: var(--sunken); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--sunken) 55%, transparent); }
.table .r { text-align: right; }
.table .msg { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who b { display: block; font-weight: 600; }
.who em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.amt-pos { color: var(--green); font-weight: 700; } .amt-neg { color: var(--red); font-weight: 700; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.toolbar .input { height: 38px; width: auto; min-width: 180px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pager-btns { display: flex; gap: 6px; }

/* Empty */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 24px; }
.empty-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.empty-ico .ico { width: 24px; height: 24px; }
.empty-title { margin-top: 14px; font-weight: 700; }
.empty-body { margin-top: 4px; color: var(--muted); max-width: 40ch; font-size: 14px; }
.empty-act { margin-top: 18px; }

/* ---------- Signature: the credit pass ---------- */
.pass { position: relative; overflow: hidden; color: #fff; border-radius: 24px; padding: 26px 28px; isolation: isolate; box-shadow: 0 18px 40px -18px rgba(37, 30, 120, .6); }
.pass::before, .pass::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); transform: rotate(-12deg); }
.pass::before { width: 520px; height: 200px; right: -170px; top: -40px; }
.pass::after { width: 340px; height: 130px; right: -60px; top: 10px; border-color: rgba(255,255,255,.14); }
.pass-glow { position: absolute; z-index: -1; width: 260px; height: 260px; right: -60px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }
.pass-top { display: flex; align-items: center; gap: 14px; }
.pass-top .avatar { background: rgba(255,255,255,.18) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pass-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.pass-proj { font-size: 13.5px; color: rgba(255,255,255,.78); }
.pass-credits { margin-top: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pass-label { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600; }
.pass-num { font-size: 52px; font-weight: 700; letter-spacing: -.035em; line-height: 1; margin-top: 4px; }
.pass-senders { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pass-senders span { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; background: rgba(255,255,255,.16); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; }
.pass-meta { font-size: 12.5px; color: rgba(255,255,255,.75); text-align: right; }
.pass .btn-on { background: #fff; color: #1E1B4B; }
.pass .btn-on:hover { filter: brightness(.95); }
.pass .btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }
.pass .btn-glass:hover { background: rgba(255,255,255,.22); }

/* Client tiles on the dashboard / list */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--line-strong); }
.tile-bar { position: absolute; inset: 0 0 auto 0; height: 4px; }
.tile-credits { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tile-credits b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.tile-credits span { font-size: 12.5px; color: var(--muted); }
.tile-senders { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.tile-foot { display: flex; gap: 8px; margin-top: auto; }
.tile-foot form { flex: 1; display: flex; }
.tile-foot .btn { flex: 1; }
.low { color: var(--red) !important; }

/* Hero (admin) */
.hello { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 28px; margin-bottom: 22px; color: #fff; background: var(--brand); isolation: isolate; }
.hello::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 240px; right: -180px; top: -60px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); transform: rotate(-10deg); }
.hello h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.hello p { color: rgba(255,255,255,.82); margin-top: 6px; max-width: 58ch; }
.hello .date { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); margin: 0 0 6px; }
.steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.step { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 6px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-weight: 600; font-size: 14px; transition: background .15s; }
.step:hover { background: rgba(255,255,255,.24); }
.step i.n { font-style: normal; width: 30px; height: 30px; border-radius: 99px; background: #fff; color: #3B2FB8; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* Attention list */
.att { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.att:last-child { border-bottom: 0; }
.att-txt { flex: 1; min-width: 0; }
.att-txt b { display: block; font-weight: 600; }
.att-txt span { font-size: 13px; color: var(--muted); }

/* Key/value list */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Timeline (credit log) */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.feed li:last-child { border-bottom: 0; }
.feed .f-txt { flex: 1; min-width: 0; }
.feed .f-txt b { font-weight: 600; font-size: 14px; }
.feed .f-txt span { display: block; font-size: 12.5px; color: var(--muted); }
.feed .f-amt { text-align: right; font-size: 14px; }
.feed .f-amt span { display: block; font-size: 12px; color: var(--faint); font-weight: 500; }

/* ---------- Modal ---------- */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); overflow: auto; }
.modal-wide { width: min(760px, calc(100vw - 24px)); }
.modal-sm { width: min(420px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(13, 15, 36, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 4px; }
.modal-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.modal-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.modal-body { padding: 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--sunken); }
.confirm { display: flex; gap: 14px; padding: 24px 24px 18px; }
.confirm h2 { font-size: 17px; font-weight: 700; }
.confirm p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.confirm-ico { width: 42px; height: 42px; border-radius: 99px; flex: none; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }

/* ---------- Send SMS ---------- */
.counter { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.counter span { padding: 4px 10px; border-radius: 99px; background: var(--sunken); }
.counter b { color: var(--ink); }
.phone { margin: 0 auto; width: 100%; max-width: 300px; border-radius: 38px; padding: 12px; background: linear-gradient(160deg, #1E1B4B, #0F172A); box-shadow: var(--shadow-pop); }
.phone-screen { border-radius: 28px; background: var(--bg); overflow: hidden; min-height: 420px; display: flex; flex-direction: column; }
.phone-top { padding: 22px 16px 14px; text-align: center; border-bottom: 1px solid var(--line); background: var(--surface); }
.phone-top .avatar { margin: 0 auto 8px; }
.phone-top b { display: block; font-size: 14px; letter-spacing: .05em; }
.phone-top span { font-size: 12px; color: var(--muted); }
.phone-body { flex: 1; padding: 18px 14px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.bubble.is-empty { color: var(--faint); font-style: italic; }

/* ---------- Auth / install ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  background: radial-gradient(520px 360px at 0% 30%, rgba(255,122,0,.5), transparent 60%), radial-gradient(520px 420px at 100% 0%, rgba(124,58,237,.65), transparent 60%), radial-gradient(420px 320px at 70% 110%, rgba(219,39,119,.45), transparent 60%), #1A0A33; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); transform: rotate(-16deg); }
.auth-art::before { width: 780px; height: 300px; left: -120px; top: 34%; }
.auth-art::after { width: 520px; height: 200px; left: 20px; top: 44%; border-color: rgba(255,255,255,.12); }
.auth-art h2 { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; max-width: 14ch; }
.auth-art p { margin-top: 14px; color: rgba(255,255,255,.75); max-width: 40ch; }
.auth-bubbles { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.auth-bubbles span { padding: 10px 16px; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); font-size: 14px; }
.auth-bubbles span:nth-child(2) { margin-left: 40px; background: rgba(255,255,255,.22); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.auth-card .page-sub { margin-bottom: 26px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

.install { min-height: 100vh; padding: 40px 16px; background: radial-gradient(800px 400px at 0% 0%, rgba(255,122,0,.12), transparent 60%), radial-gradient(800px 500px at 100% 0%, rgba(124,58,237,.14), transparent 60%), var(--bg); }
.install-wrap { max-width: 760px; margin: 0 auto; }
.install-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.install-brand img { height: 40px; width: auto; }
.req { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.req span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; padding: 14px; white-space: pre; overflow-x: auto; }

/* ---------- Invoice ---------- */
.inv { max-width: 860px; margin: 0 auto; background: #fff; color: #15183A; border-radius: 22px; overflow: hidden; border: 1px solid #E2E5F1; box-shadow: var(--shadow); }
.inv-top { position: relative; overflow: hidden; padding: 30px 34px; color: #fff; background: linear-gradient(120deg, #FF8A00, #FF2D3A 45%, #A42BE8); isolation: isolate; }
.inv-top::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 220px; right: -140px; top: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); transform: rotate(-8deg); }
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.inv-logo { background: #fff; border-radius: 14px; padding: 10px 14px; }
.inv-logo img { height: 34px; width: auto; }
.inv-title { text-align: right; }
.inv-title b { display: block; font-size: 30px; letter-spacing: .12em; font-weight: 700; }
.inv-title span { font-size: 14px; opacity: .85; }
.inv-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.inv-strip div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 10px 14px; }
.inv-strip small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.inv-strip strong { font-size: 15px; }
.inv-pad { padding: 28px 34px; display: flex; flex-direction: column; gap: 22px; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inv-box { border: 1px solid #E2E5F1; border-radius: 16px; padding: 16px 18px; }
.inv-box h4 { margin: 0 0 8px; font-size: 12px; color: #7C3AED; font-weight: 700; }
.inv-box p { font-size: 14px; color: #5B6188; }
.inv-box p b { color: #15183A; font-size: 16px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th { text-align: left; font-size: 12px; color: #5B6188; padding: 10px 12px; background: #F3F4FB; }
.inv-table td { padding: 14px 12px; border-bottom: 1px solid #E2E5F1; }
.inv-table .r { text-align: right; }
.inv-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(120deg, #ECFEFF, #EEF2FF 50%, #F5F3FF); }
.inv-total small { font-size: 12px; color: #5B6188; font-weight: 600; display: block; }
.inv-total strong { font-size: 30px; letter-spacing: -.02em; color: #15183A; }
.inv-words { font-size: 13.5px; color: #5B6188; }
.inv-words b { color: #15183A; }
.inv-kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.inv-kv dt { color: #5B6188; } .inv-kv dd { margin: 0; font-weight: 600; }
.inv-state { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.inv-state.paid { background: #DDF5EC; color: #047857; } .inv-state.pending { background: #FDF1DC; color: #A35C06; } .inv-state.cancelled { background: #ECEEF6; color: #5B6188; }
.inv-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 34px; border-top: 1px solid #E2E5F1; font-size: 12.5px; color: #5B6188; }
.inv-foot b { color: #15183A; font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.inv-rainbow { height: 6px; background: linear-gradient(90deg, #FFC529, #FF7A00, #FF2D3A, #A42BE8); }
@media (max-width: 640px) { .inv-parties, .inv-strip { grid-template-columns: 1fr; } .inv-pad, .inv-top { padding: 22px; } }

@media print {
  .side, .top, .foot, .no-print, .alert { display: none !important; }
  .frame { padding: 0; } .main { padding: 0; max-width: none; }
  body { background: #fff; }
  .inv { border: 0; box-shadow: none; border-radius: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Overrides kept last so they win over the shared tone classes */
.top .menu-btn { display: none; }
@media (max-width: 1023px) { .top .menu-btn { display: inline-grid; } }
.side .nav-link:not(.is-on) .nav-ico { background: rgba(255,255,255,.07); }

/* ===================== 4.1 additions ===================== */

/* Top bar pills: weather + clock */
.pill { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pill-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.pill-ico .ico { width: 16px; height: 16px; }
.pill-txt { display: flex; flex-direction: column; line-height: 1.15; }
.pill-txt b { font-size: 13.5px; font-weight: 700; }
.pill-txt em { font-style: normal; font-size: 11.5px; color: var(--muted); }
@media (max-width: 1180px) { .hide-md { display: none; } }

/* "Viewing as client" banner */
.imp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 20px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #DB2777, #7C3AED); box-shadow: 0 10px 30px -14px rgba(219,39,119,.7); }
.imp span { flex: 1; min-width: 220px; font-size: 14px; }
.imp .btn-on { background: #fff; color: #4C1D95; }

/* Two balances */
.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pool { border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; line-height: 1.2; }
.pool em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.pool b { font-size: 17px; font-weight: 700; }
.p-tr { background: var(--violet-soft); color: var(--violet); }
.p-as { background: var(--cyan-soft); color: var(--cyan); }
.tile-credits div b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

.pass-pools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pass-pools span { display: inline-flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); line-height: 1.2; }
.pass-pools em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.75); font-weight: 600; }
.pass-pools b { font-size: 18px; font-weight: 700; }

/* Bulk tables */
.table .chk { width: 44px; padding-right: 0; }
.table input[type=checkbox] { width: 17px; height: 17px; accent-color: #6366F1; cursor: pointer; }
.table tr.is-picked td { background: color-mix(in srgb, var(--violet-soft) 70%, transparent) !important; }
.bulkbar { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; background: linear-gradient(120deg, color-mix(in srgb, var(--blue-soft) 80%, transparent), var(--violet-soft)); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--violet); font-weight: 600; }
.bulkbar.is-on { display: flex; }
.danger-hover:hover { background: var(--red-soft); color: var(--red); }
.toolbar .spacer { flex: 1; }

/* Chart */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding: 8px 22px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #A42BE8, #FF2D3A 60%, #FF8A00); min-height: 4px; position: relative; }
.bar i.zero { background: var(--sunken); }
.bar i:hover::after { content: attr(data-v); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: var(--surface); font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.bar span { font-size: 11px; color: var(--faint); white-space: nowrap; }
.chart-foot { display: flex; gap: 18px; padding: 14px 22px 18px; font-size: 13px; color: var(--muted); }
.chart-foot b { color: var(--ink); }

/* Templates list */
.tpl { display: flex; align-items: flex-start; gap: 10px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.tpl:last-child { border-bottom: 0; }
.tpl-txt { flex: 1; min-width: 0; }
.tpl-txt b { font-size: 14px; font-weight: 600; display: block; }
.tpl-txt span { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===================== iPhone (Apple Messages look) ===================== */
.iphone { --ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 620; margin: 0 auto; padding: 11px; border-radius: 54px;
  background: linear-gradient(145deg, #3A3A3F, #1C1C1E 40%, #2C2C2E); box-shadow: inset 0 0 0 1.5px #55555c, inset 0 0 0 4px #161618, 0 40px 80px -30px rgba(20, 16, 70, .55), 0 18px 30px -18px rgba(0,0,0,.4); }
.iphone::before { content: ""; position: absolute; left: -3px; top: 120px; width: 3px; height: 60px; border-radius: 3px 0 0 3px; background: #2C2C2E; box-shadow: 0 80px 0 #2C2C2E; }
.iphone::after { content: ""; position: absolute; right: -3px; top: 170px; width: 3px; height: 90px; border-radius: 0 3px 3px 0; background: #2C2C2E; }
.ios { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; color: #000; font-family: var(--ios); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
.ios-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; z-index: 3; }
.ios-status { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 6px 26px 0 32px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; background: rgba(247,247,247,.96); }
.ios-icons { display: flex; align-items: center; gap: 5px; }
.ios-icons svg { display: block; }
.ios-head { position: relative; display: flex; flex-direction: column; align-items: center; padding: 4px 16px 10px; background: rgba(247,247,247,.96); border-bottom: .5px solid #C6C6C8; }
.ios-back { position: absolute; left: 10px; top: 14px; color: #007AFF; font-size: 30px; line-height: 1; font-weight: 300; }
.ios-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 500; background: linear-gradient(180deg, #A5A9B4, #858994); }
.ios-name { margin-top: 5px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 2px; color: #000; }
.ios-name::after { content: "›"; color: #8E8E93; font-size: 14px; }
.ios-body { flex: 1; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; background: #fff; }
.ios-stamp { text-align: center; font-size: 11px; color: #8E8E93; margin: 4px 0 8px; line-height: 1.35; }
.ios-stamp b { font-weight: 600; }
.ios-in { position: relative; align-self: flex-start; max-width: 78%; padding: 7px 12px 8px; border-radius: 18px; background: #E9E9EB; color: #000; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; white-space: pre-wrap; word-break: break-word; }
.ios-in.tail::before { content: ""; position: absolute; left: -7px; bottom: 0; width: 20px; height: 20px; background: #E9E9EB; border-bottom-right-radius: 16px; }
.ios-in.tail::after { content: ""; position: absolute; left: -10px; bottom: 0; width: 10px; height: 20px; background: #fff; border-bottom-right-radius: 10px; }
.ios-in.is-empty { color: #8E8E93; }
.ios-note { align-self: center; font-size: 11px; color: #8E8E93; margin-top: 6px; }
.ios-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 6px; background: #fff; }
.ios-plus { width: 32px; height: 32px; border-radius: 50%; background: #E9E9EB; color: #8E8E93; display: grid; place-items: center; font-size: 22px; font-weight: 300; flex: none; }
.ios-input { flex: 1; height: 34px; border-radius: 18px; border: 1px solid #D1D1D6; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #A1A1A6; font-size: 15px; }
.ios-home { height: 22px; display: grid; place-items: center; background: #fff; }
.ios-home::before { content: ""; width: 120px; height: 5px; border-radius: 3px; background: #000; }
.ios-anim .ios-in { opacity: 0; transform: translateY(8px) scale(.97); animation: bubble .45s cubic-bezier(.2,.8,.2,1) forwards; }
.ios-anim .ios-in:nth-of-type(2) { animation-delay: .5s; } .ios-anim .ios-in:nth-of-type(3) { animation-delay: 1.1s; } .ios-anim .ios-in:nth-of-type(4) { animation-delay: 1.7s; }
@keyframes bubble { to { opacity: 1; transform: none; } }
.preview-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 20px; background: radial-gradient(320px 260px at 20% 0%, rgba(255,122,0,.14), transparent 70%), radial-gradient(320px 260px at 90% 100%, rgba(124,58,237,.16), transparent 70%), var(--surface); }
.preview-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ===================== Login (4.1) ===================== */
.login { position: relative; min-height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 40px clamp(20px, 5vw, 80px); color: #fff; isolation: isolate;
  background:
    radial-gradient(700px 520px at 8% 12%, rgba(255,122,0,.55), transparent 60%),
    radial-gradient(640px 560px at 52% 0%, rgba(255,45,58,.55), transparent 62%),
    radial-gradient(720px 620px at 100% 40%, rgba(124,58,237,.7), transparent 60%),
    radial-gradient(620px 520px at 30% 110%, rgba(219,39,119,.55), transparent 60%),
    #170830; }
.login::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 40% 50%, #000 20%, transparent 70%); }
.login-orbit { position: absolute; z-index: -1; left: -10%; top: 30%; width: 120%; height: 60%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.16); transform: rotate(-14deg); }
.login-orbit.o2 { left: 5%; top: 38%; width: 80%; height: 42%; border-color: rgba(255,255,255,.1); }
.login-brand { position: absolute; top: 28px; left: clamp(20px, 5vw, 80px); display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.login-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 36px; }
.login-copy h1 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.login-copy p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.8); max-width: 38ch; }
.login-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.login-feats span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(8px); }
.login-feats .ico { width: 16px; height: 16px; }
.login-phone { transform: rotate(4deg); }
.login-phone .iphone { width: 270px; }
.login-card { justify-self: center; width: 100%; max-width: 440px; padding: 36px; border-radius: 28px; color: var(--ink); background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 40px 90px -30px rgba(10, 6, 50, .7); backdrop-filter: blur(20px); }
.login-card .logo { height: 44px; width: auto; margin-bottom: 26px; }
.login-card .logo.only-dark { display: none; }
[data-theme="dark"] .login-card .logo.only-light { display: none; }
[data-theme="dark"] .login-card .logo.only-dark { display: block; }
.login-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.login-card .sub { color: var(--muted); margin: 6px 0 26px; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.input-ico { position: relative; }
.input-ico > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-ico .input { padding-left: 42px; height: 48px; border-radius: 14px; }
.input-ico .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.login-help { margin-top: 22px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sunken); font-size: 13px; color: var(--muted); }
.login-help .ico { color: var(--violet); }
@media (max-width: 1100px) { .login-phone { display: none; } }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; padding-top: 90px; } .login-copy p, .login-feats { display: none; } .login-copy h1 { font-size: 30px; } }
.table td .link, .table .who b { white-space: nowrap; }
.toolbar input[type=date] { min-width: 150px; }

/* ===================== 4.2 sidebar (HRIS style) ===================== */
.side { width: 260px; transition: width .2s ease, transform .2s ease; }
.frame { padding-left: 260px; transition: padding .2s ease; }
.side-top { display: flex; align-items: center; padding: 18px 14px 10px 18px; }
.brand { flex: 1; min-width: 0; padding: 0; gap: 11px; }
.brand-txt { min-width: 0; }
.brand-txt b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.brand-txt em { font-size: 12px; color: rgba(255,255,255,.5); white-space: nowrap; }
.brand-grad { font-style: normal; background: linear-gradient(90deg, #FFB020, #FF5A4D 50%, #D35CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side-close { display: none; }
.side-nav { padding: 4px 12px 10px; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.side-nav::-webkit-scrollbar { width: 6px; } .side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
.nav-group { margin: 16px 10px 6px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.42); letter-spacing: .01em; }
.nav-group:first-child { margin-top: 6px; }
.nav-link { padding: 7px 10px; font-size: 14.5px; }
.nav-ico { width: 30px; height: 30px; border-radius: 9px; }
.nav-ico.plain { background: transparent !important; color: rgba(255,255,255,.65); }
.side-collapse { margin: 4px 12px 6px; width: calc(100% - 24px); border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; }
.side-collapse .kbd, .kbd { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); font: 600 11px/1 ui-monospace, Menlo, monospace; color: rgba(255,255,255,.55); }
.when-closed { display: none; }
.side-meter { display: flex; flex-direction: column; margin: 6px 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,122,0,.22), rgba(124,58,237,.3)); border: 1px solid rgba(255,255,255,.12); line-height: 1.25; }
.side-meter em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; }
.side-meter b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.side-meter span { font-size: 12px; color: rgba(255,255,255,.5); }
.side-foot { position: relative; display: block; margin: 0; padding: 10px 12px 14px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; }
.side-foot summary { list-style: none; display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 14px; cursor: pointer; }
.side-foot summary::-webkit-details-marker { display: none; }
.side-foot summary:hover, .side-foot[open] summary { background: rgba(255,255,255,.07); }
.side-foot .avatar { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.side-chev { color: rgba(255,255,255,.45); width: 16px; height: 16px; }
.side-menu { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); padding: 6px; border-radius: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-pop); z-index: 70; }
.side-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.side-menu-head b { display: block; font-size: 14px; }
.side-menu-head em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.side-menu a, .side-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; }
.side-menu a:hover, .side-menu button:hover { background: var(--sunken); }
.side-menu .danger { color: var(--red); }
.nav-link.is-on::before { left: -12px; }

/* Collapsed (desktop) */
@media (min-width: 1024px) {
  .is-collapsed .side { width: 78px; }
  .is-collapsed .frame { padding-left: 78px; }
  .is-collapsed .side-top { justify-content: center; padding: 18px 0 10px; }
  .is-collapsed .brand { flex: none; }
  .is-collapsed .brand-txt, .is-collapsed .nav-text, .is-collapsed .nav-count, .is-collapsed .kbd, .is-collapsed .side-user, .is-collapsed .side-chev, .is-collapsed .side-meter { display: none; }
  .is-collapsed .nav-group { margin: 12px auto 8px; width: 22px; height: 1px; background: rgba(255,255,255,.14); }
  .is-collapsed .nav-group span { display: none; }
  .is-collapsed .nav-link { justify-content: center; padding: 7px 0; position: relative; }
  .is-collapsed .nav-link .nav-count + * { display: none; }
  .is-collapsed .side-collapse { width: auto; margin: 4px 12px 6px; justify-content: center; }
  .is-collapsed .when-open { display: none; } .is-collapsed .when-closed { display: block; }
  .is-collapsed .side-foot summary { justify-content: center; padding: 6px 0; }
  .is-collapsed .side-menu { left: 10px; right: auto; width: 230px; }
  .is-collapsed .nav-link:has(.nav-count)::after { content: ""; position: absolute; top: 6px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: #DB2777; box-shadow: 0 0 0 2px #1A0A33; }
}
.side-tip { position: fixed; z-index: 90; pointer-events: none; padding: 6px 10px; border-radius: 9px; background: #1E1B4B; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-pop); transform: translateY(-50%); opacity: 0; transition: opacity .12s; }
.side-tip.is-on { opacity: 1; }
@media (max-width: 1023px) { .side { width: 280px; } .frame { padding-left: 0; } .side-close { display: inline-grid; } .side-collapse { display: none; } }

/* Bell */
.bell summary { position: relative; }
.bell-dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #DB2777; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.bell-pop { width: 340px; }
.bell-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bell-head span { font-size: 12.5px; color: var(--muted); }
.bell-pop a { align-items: center; }
.bell-pop a .ico { margin: 0; color: inherit; }
.bell-empty { display: flex; align-items: center; gap: 8px; padding: 16px 10px; color: var(--green); font-size: 14px; font-weight: 600; }
@media (max-width: 640px) { .bell-pop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }

/* Groups / announcements / reports helpers */
.ann { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 14px; border-radius: 18px; border: 1px solid transparent; }
.ann b { display: block; font-size: 15px; }
.ann p { font-size: 14px; margin-top: 2px; white-space: pre-line; }
.ann-info { background: var(--blue-soft); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 20%, transparent); }
.ann-success { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 20%, transparent); }
.ann-warn { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.ann p, .ann span { color: var(--ink); opacity: .85; }
.meter { height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; min-width: 90px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FF8A00, #FF2D3A, #A42BE8); }
.act-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.act-ico .ico { width: 16px; height: 16px; }

/* ===================== 4.3 login ===================== */
.lx { grid-template-columns: minmax(0, 1.05fr) auto minmax(360px, 430px); gap: clamp(24px, 3vw, 56px); padding: 110px clamp(20px, 4.5vw, 80px) 80px; }
.lx-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.lx-glow.g1 { width: 380px; height: 380px; left: 42%; top: 18%; background: rgba(255,122,0,.28); animation: drift 14s ease-in-out infinite alternate; }
.lx-glow.g2 { width: 420px; height: 420px; right: 8%; bottom: -12%; background: rgba(219,39,119,.28); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.08); } }

.lx-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px clamp(20px, 4.5vw, 80px); }
.lx-brand { display: flex; align-items: center; gap: 12px; }
.lx-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.lx-brand b { font-size: 18px; font-weight: 700; }
.lx-brand em { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.6); }
.lx-help { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; color: rgba(255,255,255,.85); backdrop-filter: blur(10px); transition: background .15s; }
.lx-help:hover { background: rgba(255,255,255,.18); }

.lx-status { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; margin-bottom: 22px; border-radius: 99px; background: rgba(16,185,129,.14); border: 1px solid rgba(52,211,153,.35); color: #A7F3D0; font-size: 13px; font-weight: 600; }
.lx-status i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.lx-copy h1 { font-size: clamp(36px, 3.7vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; max-width: 13ch; }
.lx-lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 44ch; }
.lx-feats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.lx-feats li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.lx-feats b { display: block; font-size: 14px; font-weight: 700; }
.lx-feats em { display: block; font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.62); margin-top: 2px; line-height: 1.4; }
.lx-fi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.lx-fi .ico { width: 18px; height: 18px; }
.lx .lx-feats .t-violet, .lx .lx-float .t-violet { background: rgba(167,139,250,.2); color: #C4B5FD; }
.lx .lx-feats .t-cyan, .lx .lx-float .t-cyan { background: rgba(34,211,238,.18); color: #67E8F9; }
.lx .lx-feats .t-green, .lx .lx-float .t-green { background: rgba(52,211,153,.18); color: #6EE7B7; }
.lx .lx-feats .t-pink { background: rgba(244,114,182,.18); color: #F9A8D4; }
.lx-nets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.55); }
.lx-nets span { margin-right: 4px; }
.lx-nets b { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.88); font-weight: 600; letter-spacing: .01em; }

.lx-phone { position: relative; padding: 30px 40px; }
.lx-phone .login-phone .iphone { width: 268px; }
.lx-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(20, 17, 58, .72); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.lx-float b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.lx-float em { display: block; font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.65); }
.lx-float .lx-fi { width: 32px; height: 32px; border-radius: 10px; }
.lx-float.f1 { top: 14%; left: -28px; }
.lx-float.f2 { top: 46%; right: -34px; animation-delay: -2s; }
.lx-float.f3 { bottom: 8%; left: -12px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.ios-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; margin-top: 2px; border-radius: 18px; background: #E9E9EB; opacity: 0; animation: bubble .4s 2.3s forwards; }
.ios-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8E8E93; animation: dot 1.2s infinite; }
.ios-typing i:nth-child(2) { animation-delay: .15s; } .ios-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.lx .login-card { position: relative; overflow: hidden; padding: 38px 36px 30px; }
.lx-ribbon { position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #FFC529, #FF7A00, #FF2D3A, #A42BE8); }
.lx-caps { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--amber); }
.lx-caps .ico { width: 14px; height: 14px; }
.lx-trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.lx-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lx-trust .ico { width: 15px; height: 15px; color: var(--green); }
.lx-trust span + span .ico { color: var(--violet); }
.lx .login-help { margin-top: 16px; align-items: flex-start; line-height: 1.5; }
.lx .login-help .ico { margin-top: 2px; }
.lx-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 18px clamp(20px, 4.5vw, 80px); font-size: 12.5px; color: rgba(255,255,255,.45); }

@media (max-width: 1280px) { .lx { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); } .lx-phone { display: none; } }
@media (max-width: 900px) {
  .lx { grid-template-columns: 1fr; padding: 96px 16px 70px; gap: 28px; }
  .lx-copy h1 { font-size: 32px; max-width: none; }
  .lx-lead, .lx-nets { display: none; }
  .lx-feats { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .lx-feats em { display: none; }
  .lx-feats li { padding: 10px; align-items: center; }
  .lx-help span { display: none; }
  .lx-help { width: 42px; padding: 0; justify-content: center; }
  .lx .login-card { order: -1; padding: 30px 22px 24px; }
  .lx-copy { order: 0; }
  .lx-foot { position: static; padding: 0; justify-content: center; flex-wrap: wrap; }
}
.lx-caps[hidden] { display: none; }
.lx-copy h1 { max-width: 15ch; }

/* ===================== 4.2.1 polish ===================== */
.foot { align-items: center; color: var(--muted); }
.credit { display: inline-flex; align-items: center; gap: 5px; }
.credit b { font-weight: 700; background: linear-gradient(90deg, #FF7A00, #FF2D3A, #A42BE8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heart { font-style: normal; color: #E11D48; display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1.05); } }
.lx-foot { color: rgba(255,255,255,.55); }
.lx-foot .credit b { background: linear-gradient(90deg, #FFC94D, #FF7A6B, #E08CFF); -webkit-background-clip: text; background-clip: text; }

/* Login card: solid surface, no browser autofill tint */
.lx .login-card { background: var(--surface); border-color: rgba(255,255,255,.7); box-shadow: 0 50px 100px -30px rgba(8, 4, 40, .75), 0 0 0 1px rgba(255,255,255,.05); }
.lx .login-card .input { background: var(--sunken); border-color: var(--line); }
.lx .login-card .input:focus { background: var(--surface); }
.input:-webkit-autofill, .input:-webkit-autofill:hover, .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--sunken) inset; transition: background-color 9999s ease-out;
}
.lx .login-card h2 { font-size: 30px; }
.lx .login-help { background: linear-gradient(120deg, var(--blue-soft), var(--violet-soft)); }

/* Floating cards: keep the phone's bubbles and input bar clear */
.lx-phone { padding: 40px 56px; }
.lx-float.f1 { top: 9%; left: -6px; }
.lx-float.f2 { top: 40%; right: -10px; }
.lx-float.f3 { top: auto; bottom: 2%; left: auto; right: 6px; }
.lx-phone .login-phone { filter: drop-shadow(0 30px 50px rgba(6, 3, 40, .45)); }
.lx-float.f1 { top: 22%; left: -44px; }

/* Phone avatar with the brand mark */
.ios-av.has-img { background: linear-gradient(180deg, #F4F4F7, #DCDCE3); padding: 9px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.ios-av.has-img img { width: 100%; height: 100%; object-fit: contain; }

/* Network logos */
.lx-nets { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.lx-nets > span { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.55); }
.lx-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-logo { height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.4); transition: transform .15s; }
.lx-logo:hover { transform: translateY(-2px); }
.lx-logo img { height: 26px; width: auto; display: block; }
.lx-dialog img { height: 30px; }
.lx-mobitel img { height: 28px; }
.lx-hutch { background: #FF6600; padding: 0 12px; }
.lx-hutch img { height: 30px; }
.lx-airtel img { height: 22px; }
@media (max-width: 900px) { .lx-nets { display: flex; } .lx-logo { height: 40px; padding: 0 12px; } .lx-logo img { height: 22px; } }
.lx-mobitel img { height: 34px; } .lx-logo { min-width: 84px; }

/* Network logos: identical tiles, logos fitted inside the same box */
.lx-logos { gap: 10px; }
.lx-logo, .lx-hutch { width: 124px; height: 52px; min-width: 0; padding: 0; border-radius: 14px; }
.lx-logo img, .lx-dialog img, .lx-mobitel img, .lx-hutch img, .lx-airtel img { width: 92px; height: 30px; object-fit: contain; }
@media (max-width: 900px) {
  .lx-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .lx-logo, .lx-hutch { width: auto; height: 46px; }
  .lx-logo img, .lx-dialog img, .lx-mobitel img, .lx-hutch img, .lx-airtel img { width: 80%; height: 24px; }
}
@media (min-width: 901px) {
  .lx-logos { flex-wrap: nowrap; }
  .lx-logo, .lx-hutch { width: 108px; height: 50px; }
  .lx-logo img, .lx-dialog img, .lx-mobitel img, .lx-hutch img, .lx-airtel img { width: 80px; height: 28px; }
}

/* Phone typography: Urbanist for the iOS chrome, Poppins for messages */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
.iphone { --ios: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ios-status { font-family: "Urbanist", sans-serif; font-weight: 700; font-size: 15.5px; }
.ios-name { font-family: "Urbanist", sans-serif; font-size: 13px; font-weight: 600; }
.ios-stamp { font-family: "Urbanist", sans-serif; font-size: 11.5px; }
.ios-in { font-family: "Poppins", "Noto Sans Sinhala", "Iskoola Pota", "Noto Sans Tamil", sans-serif; font-size: 13.5px; line-height: 1.45; letter-spacing: 0; padding: 8px 13px 9px; }
.ios-input { font-family: "Poppins", sans-serif; font-size: 13.5px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: linear-gradient(120deg, #FF4D1F, #A42BE8); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }
.alert-warn + .alert, .card-body > .alert { margin-bottom: 0; }
