/* ==================================================================
   MogamiSoft Support — matches the mogamisoft.com "Orbit" design system
   ink #12111F · lime #96D700 · Sora (display) + Inter (body)
   ================================================================== */
:root {
    --bg: #0b0a14; --bg-2: #0f0e1b;
    --surface: #12111f; --surface-2: #181729; --surface-3: #201f35;
    --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
    --text: #f1f1f6; --muted: #a9a8bd; --dim: #75748c;
    --lime: #96d700; --lime-2: #b4f02a; --lime-soft: rgba(150,215,0,.12); --lime-line: rgba(150,215,0,.35);
    --violet: #7c6cff; --danger: #ff6b6b; --ok: #3ddc97; --warn: #ffb547; --info: #4cc9f0;
    --radius: 18px; --radius-sm: 12px; --radius-lg: 28px;
    --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
    --nav-h: 72px;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-2); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; letter-spacing: -.02em; font-weight: 700; color: var(--text); }
p { margin: 0 0 .8rem; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--lime); color: var(--surface); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 28px; } }
.container-sm { max-width: 760px; }
.container-md { max-width: 980px; }

/* ---------- text helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--lime); }
.display { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.035em; }
.h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.h3 { font-size: 1.12rem; }
.lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: .875rem; } .xs { font-size: .78rem; }
.text-lime { color: var(--lime); } .text-danger { color: var(--danger); } .text-ok { color: var(--ok); } .text-warn { color: var(--warn); }
.hl { background: linear-gradient(90deg, var(--lime), var(--lime-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.center { text-align: center; } .right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { overflow-wrap: anywhere; }

/* ---------- layout utilities ---------- */
.flex { display: flex; } .wrap { flex-wrap: wrap; } .items-center { align-items: center; } .items-start { align-items: flex-start; }
.between { justify-content: space-between; } .gap-1 { gap: .35rem; } .gap-2 { gap: .6rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; }
.grow { flex: 1; min-width: 0; }
.mt-1 { margin-top: .35rem; } .mt-2 { margin-top: .7rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-6 { margin-top: 2.25rem; }
.mb-2 { margin-bottom: .7rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 18px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.with-side { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .with-side { grid-template-columns: minmax(0, 1fr) 340px; } }
.hide-sm { display: none !important; }
@media (min-width: 768px) { .hide-sm { display: initial !important; } .show-sm { display: none !important; } }

/* ---------- buttons ---------- */
.btn { --b-bg: rgba(255,255,255,.03); --b-fg: var(--text); --b-line: var(--line-2);
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding: .65rem 1.25rem; border-radius: 999px;
    background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-line); font: inherit; font-weight: 600; font-size: .92rem; line-height: 1.2;
    white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); color: var(--b-fg); --b-line: var(--lime-line); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { --b-bg: var(--lime); --b-fg: #0b0a14; --b-line: var(--lime); box-shadow: 0 10px 30px -12px rgba(150,215,0,.55); }
.btn-primary:hover { --b-bg: var(--lime-2); --b-line: var(--lime-2); --b-fg: #0b0a14; }
.btn-ghost:hover { --b-bg: var(--lime-soft); }
.btn-danger { --b-bg: rgba(255,107,107,.1); --b-fg: #ff9a9a; --b-line: rgba(255,107,107,.35); }
.btn-danger:hover { --b-bg: rgba(255,107,107,.18); --b-line: var(--danger); --b-fg: #ffb3b3; }
.btn-ok { --b-bg: rgba(61,220,151,.12); --b-fg: #7cf0bf; --b-line: rgba(61,220,151,.4); }
.btn-sm { min-height: 36px; padding: .45rem .95rem; font-size: .84rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.btn-google { --b-bg: #fff; --b-fg: #1f1f1f; --b-line: #fff; }
.btn-google:hover { --b-bg: #f1f1f1; --b-fg: #1f1f1f; --b-line: #f1f1f1; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- top navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(11,10,20,.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; color: var(--text); }
.brand-mark { height: 40px; width: auto; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-word { height: 38px; width: auto; }
.brand-sub { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); border-inline-start: 1px solid var(--line-2); padding-inline-start: .65rem; line-height: 1.25; }
@media (max-width: 420px) { .brand-word { height: 32px; } .brand-mark { height: 34px; } .brand-sub { display: none; } }
.nav-links { display: none; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); position: relative; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; margin: auto; bottom: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
@media (min-width: 960px) { .nav-links { display: flex; } .menu-btn { display: none !important; } }
.menu-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.mobile-panel { display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: rgba(11,10,20,.98); padding: 20px 16px 40px; overflow-y: auto; }
.nav-open .mobile-panel { display: block; }
.nav-open { overflow: hidden; }
.mobile-panel a { display: flex; align-items: center; gap: .8rem; padding: 1rem .25rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-panel a.active { color: var(--lime); }

/* user menu */
.user-menu { position: relative; }
.user-menu > button { display: inline-flex; align-items: center; gap: .55rem; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: .88rem; }
.user-menu > button:hover { border-color: var(--lime-line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--lime-soft); color: var(--lime); font-weight: 700; font-size: .78rem; flex-shrink: 0; border: 1px solid var(--lime-line); }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); display: none; z-index: 60; }
.user-menu.open .dropdown { display: block; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px; font-size: .88rem; color: var(--muted); background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- page header ---------- */
.page { padding-block: clamp(1.6rem, 4vw, 2.6rem) 4rem; position: relative; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.page-head .h1 { margin-top: .5rem; }
.breadcrumb { display: flex; gap: .4rem; align-items: center; font-size: .84rem; color: var(--dim); }
.breadcrumb a { color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2.4vw, 1.6rem); position: relative; }
.card-tight { padding: 1rem; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { font-size: 1.02rem; }
.card-link { display: block; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.card-link:hover { border-color: var(--lime-line); transform: translateY(-2px); color: inherit; }
.card-accent { border-color: var(--lime-line); background: linear-gradient(180deg, rgba(150,215,0,.07), transparent 60%), var(--surface); }
.card-warn { border-color: rgba(255,181,71,.4); background: linear-gradient(180deg, rgba(255,181,71,.08), transparent 70%), var(--surface); }
.card-danger { border-color: rgba(255,107,107,.35); }
.section-title { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 .7rem; }

/* stats */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.stat .k { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.stat .k i { color: var(--lime); }
.stat .v { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-top: .3rem; letter-spacing: -.02em; }
.stat .s { font-size: .78rem; color: var(--dim); }
a.stat:hover { border-color: var(--lime-line); }

/* ---------- forms ---------- */
.field { margin-bottom: 1.05rem; }
.field label, .label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.field .hint { font-size: .78rem; color: var(--dim); margin-top: .35rem; }
.field .error, .error-text { font-size: .8rem; color: #ff9a9a; margin-top: .35rem; }
.input, .select, .textarea {
    width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: .7rem .9rem; font: inherit; font-size: .94rem;
    transition: border-color .2s, box-shadow .2s; min-height: 46px; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: rgba(255,107,107,.6); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a9a8bd' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.select option { background: var(--surface-2); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 12px 0 0 12px; }
.input-group .addon { display: grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 12px 12px 0; background: var(--surface-2); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.form-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); cursor: pointer; font-size: .9rem; line-height: 1.5; margin-bottom: .6rem; }
.check:hover { border-color: var(--lime-line); }
.check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--lime); flex-shrink: 0; }
.check.inline { display: inline-flex; padding: .4rem .2rem; border: 0; background: none; margin: 0; }
.has-error .check, .check.has-error { border-color: rgba(255,107,107,.6); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch input { width: 42px; height: 24px; appearance: none; background: var(--surface-3); border-radius: 999px; position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s; border: 1px solid var(--line-2); }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.switch input:checked { background: var(--lime-soft); border-color: var(--lime-line); }
.switch input:checked::after { transform: translateX(18px); background: var(--lime); }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 1.2rem; border: 1.5px dashed var(--line-2); border-radius: 14px; text-align: center; color: var(--muted); cursor: pointer; font-size: .88rem; background: var(--bg-2); transition: border-color .2s; }
.file-drop:hover, .file-drop.drag { border-color: var(--lime); color: var(--text); }
.file-drop i { font-size: 1.3rem; color: var(--lime); }
.file-drop input { display: none; }
.file-list { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .82rem; color: var(--muted); }
.file-list li { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; }

/* category picker */
.cat-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-opt { position: relative; display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.cat-opt:hover { border-color: var(--lime-line); }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cat-opt .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); flex-shrink: 0; font-size: 1rem; }
.cat-opt b { display: block; font-size: .92rem; }
.cat-opt span.d { display: block; font-size: .78rem; color: var(--dim); line-height: 1.4; margin-top: .15rem; }
.cat-opt .fee { font-size: .78rem; font-weight: 600; color: var(--lime); margin-top: .35rem; display: block; }
.cat-opt:has(input:checked) { border-color: var(--lime); background: var(--lime-soft); }
.cat-opt:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- alerts / flashes ---------- */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: .9rem; margin-bottom: 1rem; }
.alert i { margin-top: .2rem; }
.alert-success { border-color: rgba(61,220,151,.35); background: rgba(61,220,151,.08); } .alert-success i { color: var(--ok); }
.alert-error { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); } .alert-error i { color: var(--danger); }
.alert-info { border-color: rgba(76,201,240,.35); background: rgba(76,201,240,.07); } .alert-info i { color: var(--info); }
.alert-warn { border-color: rgba(255,181,71,.4); background: rgba(255,181,71,.08); } .alert-warn i { color: var(--warn); }
.flash-stack { position: fixed; top: calc(var(--nav-h) + 12px); right: 16px; left: 16px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.flash-stack .alert { pointer-events: auto; max-width: 460px; width: 100%; box-shadow: var(--shadow); background-color: var(--surface-2); animation: slidein .35s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- badges ---------- */
.badge, .prio { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-open { color: #7fd8ff; background: rgba(76,201,240,.1); border-color: rgba(76,201,240,.25); }
.badge-in_progress { color: var(--lime); background: var(--lime-soft); border-color: var(--lime-line); }
.badge-awaiting_customer { color: var(--warn); background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.3); }
.badge-on_hold { color: #c9c3ff; background: rgba(124,108,255,.12); border-color: rgba(124,108,255,.3); }
.badge-resolved { color: var(--ok); background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.3); }
.badge-closed { color: var(--muted); background: rgba(255,255,255,.05); border-color: var(--line-2); }
.badge-not_resolved { color: #ff9a9a; background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.3); }
.bill-none { color: var(--dim); background: transparent; border-color: var(--line); }
.bill-awaiting_payment { color: #0b0a14; background: var(--warn); }
.bill-payment_claimed { color: var(--info); background: rgba(76,201,240,.1); border-color: rgba(76,201,240,.3); }
.bill-paid { color: var(--ok); background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.3); }
.bill-waived { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--line-2); }
.bill-refunded { color: #c9c3ff; background: rgba(124,108,255,.12); border-color: rgba(124,108,255,.3); }
.prio { padding: .15rem .55rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.prio-low { color: var(--dim); border-color: var(--line-2); }
.prio-medium { color: var(--info); border-color: rgba(76,201,240,.3); }
.prio-high { color: var(--warn); border-color: rgba(255,181,71,.4); }
.prio-urgent { color: #0b0a14; background: var(--danger); }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 8px; font-size: .76rem; background: var(--surface-3); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: .75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255,255,255,.02); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-link { color: var(--text); font-weight: 600; }
.row-link:hover { color: var(--lime); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .88rem; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }

/* ticket list (customer) */
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-row { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.ticket-row:hover { border-color: var(--lime-line); color: inherit; transform: translateY(-1px); }
.ticket-row .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); flex-shrink: 0; }
.ticket-row .t { font-weight: 600; }
.ticket-row .m { font-size: .8rem; color: var(--dim); display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .15rem; }
.ticket-row .b { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0; }
@media (max-width: 600px) { .ticket-row { flex-wrap: wrap; } .ticket-row .b { flex-direction: row; width: 100%; align-items: center; justify-content: flex-start; } }

/* tabs / segmented */
.tabs { display: flex; gap: .3rem; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; max-width: 100%; }
.tabs a { padding: .45rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--lime); color: #0b0a14; font-weight: 600; }
.tabs .count { opacity: .7; margin-left: .25rem; }

/* ---------- conversation ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: .8rem; align-items: flex-start; }
.msg .bubble { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: .9rem 1.1rem; }
.msg.staff .bubble { border-color: var(--lime-line); background: linear-gradient(180deg, rgba(150,215,0,.05), transparent 60%), var(--surface); }
.msg.internal .bubble { border-style: dashed; border-color: rgba(255,181,71,.45); background: rgba(255,181,71,.05); }
.msg .who { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .82rem; margin-bottom: .45rem; }
.msg .who b { font-size: .88rem; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.event { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--muted); padding: .2rem .4rem .2rem 1rem; }
.event i { color: var(--lime); margin-top: .25rem; width: 16px; text-align: center; }
.event .body { white-space: pre-wrap; }
.event.private { color: var(--warn); }
.att { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 10px; background: var(--surface-3); color: var(--text); font-size: .8rem; margin: .5rem .4rem 0 0; }
.att:hover { color: var(--lime); }
.att-img { display: block; margin-top: .6rem; max-width: 280px; border-radius: 10px; border: 1px solid var(--line-2); }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .auth { grid-template-columns: 1.05fr 1fr; } }
.auth-aside { position: relative; overflow: hidden; display: none; padding: 48px; background: var(--bg-2); border-right: 1px solid var(--line); flex-direction: column; justify-content: space-between; }
@media (min-width: 1000px) { .auth-aside { display: flex; } }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-card .brand { margin-bottom: 2rem; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--dim); font-size: .8rem; margin: 1.3rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow-lime { background: rgba(150,215,0,.16); } .glow-violet { background: rgba(124,108,255,.16); }
.dots-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.rel { position: relative; z-index: 1; }
.promise { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: .9rem; align-items: flex-start; }
.promise .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); flex-shrink: 0; border: 1px solid var(--lime-line); }
.promise b { display: block; font-family: var(--font-display); font-size: .98rem; }
.promise span { color: var(--muted); font-size: .88rem; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .95rem .4rem .45rem; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); font-size: .84rem; color: var(--muted); }
.pill b { background: var(--lime); color: #0b0a14; font-size: .68rem; padding: .15rem .55rem; border-radius: 999px; letter-spacing: .04em; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.step::before { counter-increment: s; content: '0' counter(s); font-family: var(--font-display); font-weight: 700; color: var(--lime); font-size: .9rem; display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .88rem; }
.section { padding-block: clamp(3rem, 7vw, 5rem); position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--lime); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin-top: .7rem; font-size: .92rem; }

/* ---------- payment ---------- */
.pay-total { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; }
.qr-box { background: #fff; border-radius: 16px; padding: 14px; display: inline-block; }
.qr-box img, .qr-box canvas { width: 200px; height: 200px; display: block; }
.copy { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font-family: 'JetBrains Mono', monospace; font-size: .86rem; cursor: pointer; color: var(--text); }
.copy:hover { border-color: var(--lime-line); }
.pay-method { border: 1px solid var(--line-2); border-radius: 16px; padding: 1.2rem; background: var(--bg-2); }

/* ---------- legal ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: .6rem 0 .4rem; }
.legal h2 { font-size: 1.18rem; margin: 2rem 0 .7rem; color: var(--text); }
.legal h3 { font-size: 1rem; margin: 1.3rem 0 .5rem; }
.legal p, .legal li { color: #cfcedd; font-size: .95rem; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .35rem; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.legal .toc ol { margin: 0; columns: 2; column-gap: 2rem; font-size: .88rem; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.legal td, .legal th { border: 1px solid var(--line-2); padding: .6rem .8rem; text-align: left; vertical-align: top; color: #cfcedd; }
.callout { border-left: 3px solid var(--lime); background: var(--lime-soft); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.2rem 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; color: var(--dim); font-size: .84rem; background: var(--bg-2); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }

/* ---------- admin shell ---------- */
.admin { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1100px) { .admin { grid-template-columns: 250px minmax(0, 1fr); } }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; z-index: 70; transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y: auto; }
.side-open .sidebar { transform: none; box-shadow: var(--shadow); }
@media (min-width: 1100px) { .sidebar { position: sticky; top: 0; height: 100vh; transform: none; width: auto; } }
.sidebar .brand { padding: 4px 8px 18px; }
.side-label { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 14px 10px 6px; }
.side-link { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 10px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.side-link i { width: 18px; text-align: center; font-size: .92rem; }
.side-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side-link.active { background: var(--lime-soft); color: var(--lime); }
.side-link .count { margin-left: auto; font-size: .72rem; background: var(--surface-3); color: var(--text); padding: .05rem .5rem; border-radius: 999px; }
.side-link.active .count { background: var(--lime); color: #0b0a14; }
.side-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 65; }
.side-open .side-scrim { display: block; }
@media (min-width: 1100px) { .side-scrim, .side-toggle { display: none !important; } }
.admin-top { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 16px; background: rgba(11,10,20,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .admin-top { padding: 0 28px; } }
.admin-main { min-width: 0; }
.admin-search { flex: 1; max-width: 420px; position: relative; }
.admin-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: .85rem; }
.admin-search .input { padding-left: 2.3rem; min-height: 40px; border-radius: 999px; font-size: .88rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.filters .select, .filters .input { width: auto; min-height: 40px; font-size: .86rem; padding-block: .45rem; }
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); font-size: .85rem; }
.pagination .active { background: var(--lime); color: #0b0a14; border-color: var(--lime); font-weight: 700; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2rem; color: var(--lime); margin-bottom: .8rem; display: block; }
.empty h3 { margin-bottom: .4rem; }

/* dialogs */
dialog { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5,4,10,.7); backdrop-filter: blur(3px); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
dialog .dlg-head h3 { font-size: 1.05rem; }
dialog .dlg-body { padding: 1.3rem 1.4rem; max-height: 70vh; overflow-y: auto; }
dialog .dlg-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* settings nav */
.subnav { display: flex; flex-direction: column; gap: 2px; }
.subnav a { padding: .55rem .85rem; border-radius: 10px; color: var(--muted); font-size: .9rem; display: flex; gap: .65rem; align-items: center; }
.subnav a i { width: 18px; text-align: center; }
.subnav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.subnav a.active { background: var(--lime-soft); color: var(--lime); }
.settings-layout { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .settings-layout { grid-template-columns: 220px minmax(0, 1fr); } }

.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--lime-2)); border-radius: 999px; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.chart-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-bars .b { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--lime), rgba(150,215,0,.35)); min-height: 2px; position: relative; }
.chart-bars .b:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: .72rem; background: var(--surface-3); padding: .15rem .45rem; border-radius: 6px; white-space: nowrap; }
.chart-bars .l { font-size: .68rem; color: var(--dim); white-space: nowrap; }

.stars { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.stars input { display: none; }
.stars label { font-size: 1.5rem; color: var(--surface-3); cursor: pointer; transition: color .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--lime); }

@media print { .site-nav, .site-footer, .sidebar, .admin-top, .btn { display: none !important; } body { background: #fff; color: #000; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- welcome / business-details pop-up ---------- */
dialog.onboard { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border-radius: 24px; overflow: hidden; }
dialog.onboard::backdrop { background: rgba(5,4,10,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.onboard[open] { animation: obIn .4s var(--ease); }
@keyframes obIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
div.onboard { border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; background: var(--surface-2); }
.onboard-grid { display: grid; grid-template-columns: 1fr; max-height: inherit; }
@media (min-width: 860px) { .onboard-grid { grid-template-columns: 340px minmax(0, 1fr); } }
.onboard-side { position: relative; padding: 26px 24px; background: radial-gradient(ellipse at 0% 0%, rgba(150,215,0,.18), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .onboard-side { border-bottom: 0; border-right: 1px solid var(--line); padding: 32px 28px; } }
.onboard-steps { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--dim); font-weight: 600; letter-spacing: .02em; }
.onboard-steps b, .onboard-steps span { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; }
.onboard-steps b { background: var(--lime); color: #0b0a14; }
.onboard-steps span { border: 1px solid var(--line-2); color: var(--muted); }
.onboard-steps i { font-size: .6rem; }
.onboard-why { list-style: none; padding: 0; margin: 1.4rem 0 0; display: none; gap: 14px; }
@media (min-width: 860px) { .onboard-why { display: grid; } }
.onboard-why li { display: flex; gap: .8rem; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.onboard-why li > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); border: 1px solid var(--lime-line); flex-shrink: 0; }
.onboard-why b { display: block; color: var(--text); font-size: .9rem; margin-bottom: .1rem; }
.onboard-form { padding: 24px; overflow-y: auto; max-height: calc(100vh - 24px - 120px); }
@media (min-width: 860px) { .onboard-form { padding: 30px 32px; max-height: calc(100vh - 24px); } }
div.onboard .onboard-form { max-height: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: .2rem 0 1.1rem; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 600; font-size: .9rem; color: var(--muted); transition: .2s; }
.seg input:checked + span { border-color: var(--lime); background: var(--lime-soft); color: var(--lime); }
.seg input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.onboard.is-individual .biz-only { display: none; }
.onboard-skip { display: block; width: 100%; margin-top: .8rem; background: none; border: 0; color: var(--dim); font: inherit; font-size: .84rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.onboard-skip:hover { color: var(--muted); }
@media (max-width: 859px) {
    dialog.onboard { overflow-y: auto; }
    dialog.onboard .onboard-form { max-height: none; overflow: visible; }
    .onboard-grid { max-height: none; }
}

/* ---------- UltraViewer remote-support box ---------- */
.uv-head { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.uv-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); border: 1px solid var(--lime-line); font-size: 1.15rem; flex-shrink: 0; }
.uv-steps { counter-reset: uv; list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .uv-steps { grid-template-columns: 1fr 1fr; } }
.uv-steps li { counter-increment: uv; position: relative; padding: .75rem .9rem .75rem 2.7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); font-size: .85rem; color: var(--muted); line-height: 1.5; }
.uv-steps li::before { content: counter(uv); position: absolute; left: .8rem; top: .75rem; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: #0b0a14; font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.uv-steps b { color: var(--text); }