:root {
    --ink: #1f2430;
    --ink-soft: #646978;
    --paper: #fffdf9;
    --canvas: #f6f4ef;
    --line: #e6e2da;
    --coral: #ef6a50;
    --coral-dark: #ad3b2b;
    --apricot: #f4a25f;
    --sun: #f4cf68;
    --mint: #82c9b8;
    --green: #17624e;
    --green-soft: #e4f4ee;
    --red: #9d3437;
    --red-soft: #fbe9e7;
    --violet: #625b9d;
    --shadow: 0 16px 42px rgba(43, 40, 34, .07);
    --shadow-soft: 0 7px 22px rgba(43, 40, 34, .05);
    --radius: 22px;
    --radius-small: 13px;
    --sidebar: 260px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-soft); }

.app-shell { display: flex; }
body.nav-open { overflow: hidden; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar);
    padding: 30px 22px 24px;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #f8f4ed;
    background:
        radial-gradient(circle at 24% 86%, rgba(244, 162, 95, .18), transparent 24%),
        linear-gradient(175deg, #292d3a 0%, #1c202b 100%);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand > span:last-child { display: flex; align-items: baseline; font-size: 21px; letter-spacing: -.5px; }
.brand strong { font-weight: 760; }
.brand small { font-size: 21px; font-weight: 370; }
.brand-mark { position: relative; display: inline-block; width: 38px; height: 38px; }
.brand-mark i { position: absolute; display: block; border-radius: 50%; background: var(--coral); }
.brand-mark i:nth-child(1) { width: 20px; height: 20px; left: 2px; top: 3px; }
.brand-mark i:nth-child(2) { width: 13px; height: 13px; right: 1px; top: 6px; background: var(--sun); }
.brand-mark i:nth-child(3) { width: 16px; height: 16px; left: 13px; bottom: 1px; background: var(--mint); }
.main-nav { display: grid; gap: 7px; margin-top: 58px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 13px; color: #b9bdc7; font-weight: 620; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.is-active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--coral); }
.nav-icon { display: inline-grid; width: 26px; height: 26px; place-items: center; color: #fff; font-size: 20px; font-weight: 400; }
.sidebar-note { display: flex; gap: 11px; margin: auto 4px 24px; padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.04); }
.sidebar-note div { display: grid; gap: 3px; }
.sidebar-note strong { font-size: 12px; font-weight: 650; }
.sidebar-note small { color: #aeb2be; font-size: 10px; line-height: 1.4; }
.status-dot { width: 9px; height: 9px; margin-top: 4px; flex: none; border-radius: 50%; background: #70d5ab; box-shadow: 0 0 0 4px rgba(112,213,171,.12); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: inline-grid; width: 39px; height: 39px; flex: none; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--coral), var(--apricot)); font-weight: 750; }
.avatar-large { width: 54px; height: 54px; font-size: 20px; }
.sidebar-user-copy { display: grid; min-width: 0; flex: 1; }
.sidebar-user-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy small { color: #aeb2be; font-size: 10px; }
.icon-link { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #c3c6cf; font-size: 23px; }
.icon-link:hover { color: #fff; background: rgba(255,255,255,.08); }

.page-shell { width: calc(100% - var(--sidebar)); min-height: 100vh; margin-left: var(--sidebar); }
.topbar { display: flex; min-height: 104px; padding: 23px clamp(24px, 4vw, 58px); align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,253,249,.85); backdrop-filter: blur(14px); }
.topbar h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.6px; }
.eyebrow { margin-bottom: 4px; color: var(--ink-soft); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.topbar-actions { display: flex; margin-left: auto; align-items: center; gap: 9px; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.page-content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 34px clamp(24px, 4vw, 58px) 70px; }

.button { display: inline-flex; min-height: 43px; padding: 10px 17px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.1; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.sidebar a:focus-visible, .sidebar button:focus-visible { outline-color: #f4cf68; }
.button-primary { color: #fff; background: linear-gradient(135deg, #c44733, #aa3828); box-shadow: 0 8px 20px rgba(180,61,43,.22); }
.button-primary:hover { box-shadow: 0 11px 25px rgba(239,106,80,.29); }
.button-secondary { border-color: var(--line); background: #fff; }
.button-secondary:hover, .button-ghost:hover { border-color: #d7d1c7; background: #faf8f4; }
.button-ghost { border-color: transparent; background: transparent; }
.button-compact { min-height: 38px; padding: 9px 14px; font-size: 12px; }
.button-wide { width: 100%; min-height: 48px; }
.button-whatsapp { color: #176c54; border-color: #b8dfd2; background: #ebf8f3; }
.button-danger { color: #a53e40; border-color: #efc1bd; background: #fff6f5; }

.flash-stack { display: grid; gap: 8px; margin-bottom: 22px; }
.flash { display: flex; padding: 12px 15px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid; border-radius: 12px; font-size: 13px; font-weight: 600; }
.flash button { border: 0; background: none; cursor: pointer; font-size: 19px; }
.flash-success { color: #276f5d; border-color: #b9dfd3; background: #edf8f4; }
.flash-error { color: #a33d3f; border-color: #efc1bd; background: #fff4f3; }

.welcome-strip { position: relative; display: flex; min-height: 175px; margin-bottom: 22px; padding: 33px 38px; align-items: center; overflow: hidden; border-radius: var(--radius); color: #fff; background: linear-gradient(110deg, #303442 0%, #252a37 65%, #34313d 100%); box-shadow: var(--shadow); }
.welcome-strip h2 { margin-bottom: 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -1.1px; }
.welcome-strip p:last-child { max-width: 570px; margin: 0; color: #c8cbd3; }
.welcome-strip .eyebrow { color: #efb3a5; }
.welcome-art { position: absolute; right: 4%; width: 220px; height: 155px; opacity: .95; }
.welcome-art i { position: absolute; display: block; border-radius: 50%; }
.welcome-art i:nth-child(1) { width: 102px; height: 102px; right: 50px; top: 11px; background: var(--coral); }
.welcome-art i:nth-child(2) { width: 58px; height: 58px; right: 8px; bottom: 12px; background: var(--sun); }
.welcome-art i:nth-child(3) { width: 70px; height: 70px; left: 9px; bottom: 3px; background: var(--mint); }

.stats-grid { display: grid; margin-bottom: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { position: relative; min-height: 156px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-soft); }
.stat-card p { margin: 13px 0 3px; color: var(--ink-soft); font-size: 12px; font-weight: 620; }
.stat-card strong { display: block; margin-bottom: 3px; font-size: 28px; line-height: 1.1; letter-spacing: -.8px; }
.stat-card small { color: #686b74; font-size: 11px; }
.stat-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; color: #fff; background: var(--violet); font-size: 15px; }
.stat-icon-mint { color: #246c5c; background: #d9f0ea; }
.stat-icon-green { color: #25725d; background: #dff2eb; }
.stat-icon-coral { color: #a9493c; background: #fbe4df; }
.stat-card-highlight { color: #fff; border-color: transparent; background: linear-gradient(135deg, #bd4532, #a9382a); }
.stat-card-highlight p, .stat-card-highlight small { color: #fff; }
.stat-card-highlight .stat-icon { color: var(--coral); background: #fff; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.panel-heading { display: flex; min-height: 85px; padding: 23px 26px 18px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.35px; }
.text-link { color: var(--coral-dark); font-size: 12px; font-weight: 720; }
.text-link span { margin-left: 5px; }
.transaction-list { padding: 8px 18px 15px; }
.transaction-row { display: flex; padding: 13px 8px; align-items: center; gap: 13px; border-bottom: 1px solid #eeeae3; transition: background .15s ease; }
.transaction-row:last-child { border-bottom: 0; }
.transaction-row:hover { background: #faf8f4; }
.transaction-symbol { display: grid; width: 37px; height: 37px; flex: none; place-items: center; border-radius: 12px; font-size: 19px; font-weight: 500; }
.transaction-symbol.is-credit { color: #24725d; background: var(--green-soft); }
.transaction-symbol.is-debit { color: #aa473f; background: var(--red-soft); }
.transaction-symbol.is-reversal { filter: saturate(.45); }
.transaction-main { display: grid; min-width: 0; flex: 1; }
.transaction-main strong { font-size: 13px; }
.transaction-main small { overflow: hidden; max-width: 500px; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-meta { display: grid; flex: none; justify-items: end; }
.transaction-meta strong { font-size: 13px; }
.transaction-meta small { color: #686b74; font-size: 11px; }
.amount-credit { color: var(--green); }
.amount-debit { color: var(--red); }

.empty-state { display: grid; min-height: 300px; padding: 45px 20px; place-items: center; align-content: center; text-align: center; }
.empty-state h3 { margin: 13px 0 5px; }
.empty-state p { max-width: 440px; margin-bottom: 20px; color: var(--ink-soft); }
.empty-mark { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 16px; color: var(--coral); background: #fbe8e3; font-weight: 800; letter-spacing: 2px; }
.compact-empty { min-height: 220px; }

.toolbar { display: flex; margin-bottom: 17px; align-items: center; justify-content: space-between; gap: 14px; }
.search-form { display: flex; width: min(590px, 100%); padding: 5px 6px 5px 14px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.search-form > span { color: #999; font-size: 20px; }
.search-form input { min-width: 0; height: 38px; flex: 1; border: 0; outline: 0; background: transparent; }
.search-form:focus-within { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet); }
.filter-chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: #fff; font-size: 11px; font-weight: 650; }
.filter-chip.is-active { color: #8e4438; border-color: #edc8bf; background: #fff5f2; }
.customer-panel { overflow: hidden; }
.customer-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 20px; color: #60636d; background: #faf9f6; font-size: 11px; font-weight: 730; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 15px 20px; border-top: 1px solid #eeeae3; vertical-align: middle; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #fdfbf8; }
.customer-name { display: flex; align-items: center; gap: 11px; }
.customer-name > span:last-child { display: grid; }
.customer-name strong { font-size: 13px; }
.customer-name small { color: #686b74; font-size: 11px; }
.customer-avatar { display: inline-grid; width: 39px; height: 39px; flex: none; place-items: center; border-radius: 50%; color: #744a3d; background: linear-gradient(135deg, #f6d9c8, #f9e9d4); font-weight: 760; }
.customer-avatar-large { width: 62px; height: 62px; font-size: 23px; }
.phone-value { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; padding: 4px 8px; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 760; letter-spacing: .02em; }
.badge-success { color: #22634f; background: #e1f3ed; }
.badge-warning { color: #806018; background: #fff3d5; }
.badge-neutral { color: #5f626a; background: #ececea; }
.align-right { text-align: right !important; }
.balance-cell { white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; }
.row-arrow { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #878991; background: #f3f1ec; font-size: 21px; }

.content-narrow { max-width: 900px; margin: 0 auto; }
.back-link { display: inline-flex; margin-bottom: 15px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--coral-dark); }
.form-panel { overflow: hidden; }
.stack-form { display: grid; gap: 19px; }
.form-panel > .stack-form { padding: 27px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12px; font-weight: 700; }
.field > span b { color: var(--coral); }
.field > span em { color: #666a73; font-size: 10px; font-style: normal; font-weight: 500; }
.field small, .form-hint { color: #6f727a; font-size: 11px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #dcd8d0; border-radius: 12px; color: var(--ink); background: #fff; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.field input { height: 45px; padding: 0 13px; }
.field select { height: 45px; padding: 0 13px; }
.field textarea { min-height: 90px; padding: 12px 13px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet); }
.field input::placeholder, .field textarea::placeholder { color: #686b74; }
.field-small { gap: 4px; }
.field-small input { height: 38px; }
.check-stack { display: grid; gap: 10px; }
.check-field { display: flex; padding: 14px; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: #faf9f6; cursor: pointer; }
.check-field input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--coral); }
.check-field span { display: grid; }
.check-field strong { font-size: 12px; }
.check-field small { color: var(--ink-soft); font-size: 10px; }
.form-actions { display: flex; padding-top: 7px; align-items: center; justify-content: flex-end; gap: 9px; }
.error-list { padding: 12px 15px; border: 1px solid #efc1bd; border-radius: 12px; color: #a33d3f; background: #fff4f3; }
.form-panel > .error-list { margin: 20px 27px 0; }
.error-list p { margin: 0; font-size: 12px; font-weight: 600; }
.error-list p + p { margin-top: 5px; }

.detail-header { display: flex; margin-bottom: 20px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.detail-name-row { display: flex; align-items: center; gap: 14px; }
.detail-name-row h2 { margin: 0; font-size: 27px; letter-spacing: -.8px; }
.detail-name-row p { margin: 3px 0 0; color: var(--ink-soft); font-size: 12px; }
.title-with-badge { display: flex; align-items: center; gap: 9px; }
.detail-actions { display: flex; gap: 9px; }
.balance-hero { position: relative; min-height: 190px; margin-bottom: 20px; padding: 32px 38px; overflow: hidden; border-radius: var(--radius); color: #fff; background: linear-gradient(115deg, #2d3140, #252936); box-shadow: var(--shadow); }
.balance-hero p { margin-bottom: 4px; color: #c2c5ce; font-size: 12px; font-weight: 600; }
.balance-hero strong { display: inline-block; font-size: clamp(43px, 6vw, 67px); line-height: 1; letter-spacing: -3px; }
.balance-hero > div:first-child span { margin-left: 10px; color: #d0d2d8; font-size: 12px; }
.balance-hero > small { position: absolute; left: 38px; bottom: 24px; color: #c3c6ce; font-size: 11px; }
.balance-dots { position: absolute; right: 5%; top: 15px; width: 270px; height: 170px; }
.balance-dots i { position: absolute; display: block; border-radius: 50%; }
.balance-dots i:nth-child(1) { width: 100px; height: 100px; right: 52px; top: 15px; background: var(--coral); }
.balance-dots i:nth-child(2) { width: 61px; height: 61px; right: 8px; top: 91px; background: var(--sun); }
.balance-dots i:nth-child(3) { width: 67px; height: 67px; left: 15px; top: 72px; background: var(--mint); }
.balance-dots i:nth-child(4) { width: 29px; height: 29px; left: 81px; top: 12px; background: #827ab5; }
.balance-dots i:nth-child(5) { width: 18px; height: 18px; right: 11px; top: 29px; background: #f5ad8d; }
.detail-grid { display: grid; margin-bottom: 20px; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; }
.booking-panel, .customer-info-panel { overflow: hidden; }
.booking-panel > .stack-form { padding: 24px 26px 26px; }
.segmented-control { display: grid; padding: 4px; grid-template-columns: 1fr 1fr; border-radius: 13px; background: #f0eee9; }
.segmented-control label { cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 720; }
.segmented-control input:checked + span { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(30,30,30,.07); }
.segmented-control input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 1px; }
.segmented-control b { font-size: 18px; font-weight: 500; }
.amount-field input { height: 56px; font-size: 25px; font-weight: 720; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 50px; }
.input-suffix > span { position: absolute; right: 15px; top: 50%; color: var(--ink-soft); font-size: 11px; font-weight: 750; transform: translateY(-50%); }
.quick-amounts { display: flex; margin-top: -10px; flex-wrap: wrap; gap: 7px; }
.quick-amounts button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.quick-amounts button:hover { color: var(--coral-dark); border-color: #ecc3b9; background: #fff7f4; }
.inline-notice { margin: 25px; padding: 14px; border: 1px solid #e7d7ac; border-radius: 12px; color: #806221; background: #fff9e8; font-size: 12px; }
.customer-info-panel .panel-heading { min-height: 85px; }
.info-list { margin: 0; padding: 14px 25px 24px; }
.info-list > div { display: grid; padding: 12px 0; grid-template-columns: 120px 1fr; gap: 13px; border-bottom: 1px solid #eeeae3; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.info-list dd { margin: 0; font-size: 12px; font-weight: 620; word-break: break-word; }
.info-list .info-notes { grid-template-columns: 1fr; }
.info-list .info-notes dd { font-weight: 450; line-height: 1.6; }
.spans-full { grid-column: 1 / -1; }

.history-panel { overflow: hidden; }
.history-count { padding: 5px 9px; border-radius: 999px; color: var(--ink-soft); background: #f0eee9; font-size: 9px; font-weight: 700; }
.history-list { padding: 8px 25px 16px; }
.history-row { display: flex; padding: 17px 0; align-items: flex-start; gap: 13px; border-bottom: 1px solid #eeeae3; }
.history-row:last-child { border-bottom: 0; }
.history-main { min-width: 0; flex: 1; }
.history-title { display: flex; align-items: center; gap: 7px; }
.history-title strong { font-size: 12px; }
.history-main > small { color: #686b74; font-size: 11px; }
.history-amount { display: grid; min-width: 130px; justify-items: end; }
.history-amount strong { font-size: 13px; white-space: nowrap; }
.history-amount small { color: #686b74; font-size: 11px; }
.reversal-details { margin-top: 8px; }
.reversal-details summary { width: fit-content; color: #9a5a50; cursor: pointer; font-size: 10px; font-weight: 650; }
.reversal-details form { display: flex; max-width: 510px; margin-top: 8px; align-items: end; gap: 8px; }
.reversal-details .field { flex: 1; }

.profile-summary { display: flex; margin: 25px 27px 0; padding: 15px; align-items: center; gap: 12px; border-radius: 14px; background: #f7f4ef; }
.profile-summary div { display: grid; }
.profile-summary strong { font-size: 13px; }
.profile-summary small { color: var(--ink-soft); font-size: 10px; }
.secondary-form-panel { margin-top: 20px; }

.auth-page { min-height: 100vh; background: #f2eee8; }
.auth-wrap { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.auth-brand-panel { position: relative; display: flex; padding: clamp(35px, 6vw, 76px); flex-direction: column; overflow: hidden; color: #fff; background: linear-gradient(150deg, #2d3140 0%, #222632 100%); }
.brand-light { color: #fff; }
.auth-message { position: relative; z-index: 2; max-width: 540px; margin: auto 0; }
.auth-message .eyebrow { color: #eaa999; }
.auth-message h1 { margin-bottom: 18px; font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -3px; }
.auth-message p:last-child { max-width: 470px; color: #bfc3cd; font-size: 16px; }
.auth-orbit { position: absolute; right: -90px; bottom: -80px; width: 420px; height: 420px; }
.auth-orbit i { position: absolute; display: block; border-radius: 50%; }
.auth-orbit i:nth-child(1) { width: 190px; height: 190px; right: 105px; bottom: 110px; background: var(--coral); }
.auth-orbit i:nth-child(2) { width: 112px; height: 112px; right: 30px; bottom: 53px; background: var(--sun); }
.auth-orbit i:nth-child(3) { width: 128px; height: 128px; left: 15px; bottom: 5px; background: var(--mint); }
.auth-orbit i:nth-child(4) { width: 52px; height: 52px; left: 110px; top: 35px; background: #7770ad; }
.auth-form-panel { display: grid; padding: 42px; place-items: center; background: var(--paper); }
.auth-form-wrap { width: min(100%, 450px); }
.auth-heading { margin-bottom: 27px; }
.auth-heading h1 { margin: 5px 0 8px; font-size: 34px; letter-spacing: -1.2px; }
.auth-heading p { color: var(--ink-soft); }
.auth-kicker { color: var(--coral-dark); font-size: 10px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.auth-form-panel .stack-form { gap: 17px; }
.auth-footer { margin: 28px 0 0; color: #6f727a; font-size: 11px; text-align: center; }

.center-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; background: var(--canvas); }
.status-card { width: min(100%, 540px); padding: 45px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; }
.status-card-inline { margin: 70px auto; }
.status-code { display: block; margin-bottom: 10px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.status-card h1, .status-card h2 { margin-bottom: 8px; }
.status-card p { margin-bottom: 22px; color: var(--ink-soft); }
.mobile-backdrop { display: none; }
.nav-close { display: none; position: absolute; right: 15px; top: 15px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; background: rgba(255,255,255,.06); cursor: pointer; font-size: 22px; }
.customer-mobile-phone { display: none; }
.team-mobile-meta { display: none; }
.pagination { display: grid; padding: 16px 22px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.pagination a { color: var(--coral-dark); font-weight: 700; }
.pagination a:last-child { justify-self: end; }
.pagination > span:nth-child(2) { text-align: center; }

@media (max-width: 1150px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .welcome-art, .balance-dots { right: -20px; opacity: .55; transform: scale(.85); }
}

@media (max-width: 900px) {
    :root { --sidebar: 250px; }
    .sidebar { transform: translateX(-101%); transition: transform .22s ease; }
    .nav-close { display: grid; place-items: center; }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open .mobile-backdrop { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(16,18,24,.44); }
    .page-shell { width: 100%; margin-left: 0; }
    .menu-button { display: inline-grid; place-items: center; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .customer-info-panel { grid-column: auto; }
}

@media (max-width: 680px) {
    .topbar { min-height: 82px; padding: 17px; }
    .topbar .eyebrow { display: none; }
    .topbar h1 { font-size: 19px; }
    .topbar-actions .button-primary { display: none; }
    .topbar-actions .button-ghost { padding: 8px; }
    .page-content { padding: 21px 15px 50px; }
    .welcome-strip { min-height: 190px; padding: 26px 23px; }
    .welcome-art { right: -85px; opacity: .25; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { min-height: 145px; padding: 17px; }
    .stat-card strong { font-size: 23px; }
    .panel-heading { min-height: 76px; padding: 19px; }
    .transaction-list { padding-inline: 10px; }
    .transaction-meta small { display: none; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .filter-chip { width: fit-content; }
    .customer-table th:nth-child(2), .customer-table td:nth-child(2), .customer-table th:nth-child(3), .customer-table td:nth-child(3) { display: none; }
    .customer-mobile-phone { display: block; color: #666a73 !important; }
    .team-table th:nth-child(2), .team-table td:nth-child(2), .team-table th:nth-child(3), .team-table td:nth-child(3), .team-table th:nth-child(4), .team-table td:nth-child(4) { display: none; }
    .team-mobile-meta { display: block; color: #666a73 !important; }
    .data-table th, .data-table td { padding: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-panel > .stack-form { padding: 20px; }
    .form-panel > .error-list { margin-inline: 20px; }
    .detail-header { align-items: stretch; flex-direction: column; }
    .detail-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .balance-hero { min-height: 178px; padding: 27px 23px; }
    .balance-hero > small { left: 23px; bottom: 21px; }
    .balance-dots { right: -120px; opacity: .3; }
    .booking-panel > .stack-form { padding: 20px; }
    .history-list { padding-inline: 18px; }
    .history-row { flex-wrap: wrap; }
    .history-main { min-width: calc(100% - 54px); }
    .history-amount { width: 100%; padding-left: 50px; grid-auto-flow: column; justify-content: space-between; }
    .reversal-details form { align-items: stretch; flex-direction: column; }
    .auth-form-panel { padding: 30px 20px; }
    .status-card { padding: 32px 22px; }
}
