

.z-\[82\] { z-index: 82; }
.z-\[92\] { z-index: 92; }

:root,
[data-theme="dark"] {
    --bg-app: #0a0a0c;
    --bg-surface: #131315;
    --bg-surface-2: #1b1b1f;
    --bg-elevated: #212125;
    --border-subtle: #262629;
    --border-strong: #333338;

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a8;
    --text-tertiary: #6c6c74;

    --accent: #ffffff;
    --accent-2: #c9c9ce;
    --accent-grad: linear-gradient(135deg, #ffffff 0%, #c4c4ca 100%);
    --accent-contrast: #0a0a0c;

    --positive: #34d399;
    --negative: #f87171;

    --accent-solid-bg: #2d2d33;
    --accent-solid-text: #ffffff;

    --shadow-soft: 0 8px 30px rgba(0,0,0,0.315);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.21);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

[data-theme="light"] {
    --bg-app: #f5f5f6;
    --bg-surface: #ffffff;
    --bg-surface-2: #f7f7f8;
    --bg-elevated: #ffffff;
    --border-subtle: #e7e7e9;
    --border-strong: #d5d5d9;

    --text-primary: #0e0e10;
    --text-secondary: #55555c;
    --text-tertiary: #8a8a92;

    --accent: #0e0e10;
    --accent-2: #3a3a40;
    --accent-grad: linear-gradient(135deg, #17171a 0%, #050505 100%);
    --accent-contrast: #ffffff;

    --positive: #16a34a;
    --negative: #dc2626;

    --accent-solid-bg: var(--accent-grad);
    --accent-solid-text: #ffffff;

    --shadow-soft: 0 8px 30px rgba(10,10,12,0.056);
    --shadow-card: 0 2px 12px rgba(10,10,12,0.042);
}

* { box-sizing: border-box; }

html {
    scrollbar-gutter: stable;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-app);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color .35s ease, color .35s ease;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.sc-mobile-page-bg { background: var(--bg-app); }

.sc-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

@media (min-width: 1024px) {
    .sc-table-card-lg {
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
        overflow: hidden;
    }

        .sc-fullscreen-lg-modal {
        display: flex; align-items: center; justify-content: center;
        padding: 2.5rem;
    }
    .sc-fullscreen-lg-modal .sc-fullscreen-lg-card {
        max-width: 560px; width: 100%; max-height: 85vh;
        border-radius: 24px !important;
        box-shadow: 0 30px 80px rgba(0,0,0,0.35);
        border: 1px solid var(--border-subtle);
        background: var(--bg-app) !important;
    }
        .sc-fullscreen-lg-modal .sc-fullscreen-lg-card-wide {
        max-width: 900px; width: 100%; height: 640px;
        border-radius: 24px !important;
        box-shadow: 0 30px 80px rgba(0,0,0,0.35);
        border: 1px solid var(--border-subtle);
        background: var(--bg-app) !important;
    }
}

.z-\[60\] { z-index: 60; }
.z-\[70\] { z-index: 70; }
.z-\[75\] { z-index: 75; }
.z-\[80\] { z-index: 80; }
.z-\[82\] { z-index: 82; }
.z-\[89\] { z-index: 89; }
.z-\[90\] { z-index: 90; }
.z-\[95\] { z-index: 95; }
.z-\[92\] { z-index: 92; }
.z-\[98\] { z-index: 98; }
.z-\[101\] { z-index: 101; }

.z-\[110\] { z-index: 110; }

.sc-sheet-backdrop {
    background: transparent;
}

.sc-sheet-t { transition: transform .38s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease-out; }
.sc-sheet-t-out { transition: transform .22s cubic-bezier(0.4, 0, 1, 1), opacity .18s ease-in; }
.sc-sheet-hidden { opacity: 0; transform: translateY(100%); }
.sc-sheet-shown { opacity: 1; transform: translateY(0); }
@media (min-width: 1024px) {
    .sc-sheet-hidden { opacity: 0; transform: translateX(48px); }
    .sc-sheet-shown { opacity: 1; transform: translateX(0); }
}
.sc-order-sheet-card {
    display: flex;
    flex-direction: column;
    min-height: 0;

    background: var(--bg-surface);
}
.sc-order-sheet-handle {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 4px;
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
}
.sc-order-sheet-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--border-strong);
}
.sc-order-sheet-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1;
    min-height: 0;
}

.sc-chat-pinned {
    flex-shrink: 0;
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-subtle);
}

.sc-chat-bubble-text {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.sc-chat-textarea {
    min-width: 0;
    resize: none;
    overflow-y: hidden;
}
.sc-chat-pinned-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-tertiary);
}
.sc-chat-pinned-item + .sc-chat-pinned-item {
    border-top: 1px solid var(--border-subtle);
}
.sc-chat-pinned-item svg { flex-shrink: 0; margin-top: 1px; }
@media (max-width: 1023.98px) {

    .sc-order-sheet-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: env(safe-area-inset-top, 0px);
        width: 100%;
        max-width: none !important;
        height: auto;
        max-height: none;
        border-radius: 22px 22px 0 0 !important;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.28);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .sc-order-sheet-handle {
        display: flex;
    }

    .sc-order-sheet-card.sc-sheet-content-h {
        top: auto;
        max-height: 85vh;
    }

}

.sc-card-elevated {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

@media (min-width: 1024px) {
    [x-ref="invoiceFormCollapse"] { display: block !important; height: auto !important; overflow: visible !important; }
}

@keyframes sc-tap-bounce {

    0% { transform: scale(1); }
    35% { transform: scale(0.95); }
    65% { transform: scale(1.025); }
    100% { transform: scale(1); }
}
.sc-tap-bounce {
    animation: sc-tap-bounce .28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sc-dots-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sc-dots-loader span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.45);
    animation: sc-dots-bounce 1.05s ease-in-out infinite;
}
.sc-dots-loader span:nth-child(1) { animation-delay: 0s; }
.sc-dots-loader span:nth-child(2) { animation-delay: 0.15s; }
.sc-dots-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes sc-dots-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.55;
    }
    30% {
        transform: translateY(-11px);
        opacity: 1;
    }
}

.sc-card-hero {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background:
        radial-gradient(circle at 15% -10%, rgba(255,255,255,0.10), transparent 55%),
        radial-gradient(circle at 100% 10%, rgba(255,255,255,0.06), transparent 45%),
        var(--bg-elevated);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.sc-hero-wave {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(160deg, #050506 0%, #151517 30%, #232326 55%, #101012 85%, #050506 100%);
    overflow: hidden;
}
.sc-hero-wave::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 12% -15%, rgba(255,255,255,0.09), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0,0,0,0.4), transparent 60%);
    pointer-events: none;
}
.sc-hero-wave-svg {
    display: block; width: 100%; height: 32px; margin: 0; margin-bottom: -2px; position: relative;
}

.sc-app-ticker-track { animation: scAppTicker 38s linear infinite; }
@keyframes scAppTicker { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
    .sc-app-ticker-track { animation: none; }
}

@media (min-width: 1024px) {
        .sc-hero-wave {
        width: auto; left: auto; right: auto; margin-left: 0; margin-right: 0;
        border-radius: 28px;
    }
}

.sc-quick-tile {
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    padding: 1rem .5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    transition: transform .25s cubic-bezier(.4,0,.2,1), background-color .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1);
}
.sc-quick-tile:active { transform: translateY(0) scale(0.97); }
.sc-quick-tile:hover {
    transform: translateY(-3px);
    background: color-mix(in srgb, var(--bg-surface) 92%, black);
    box-shadow: var(--shadow-card);
}
[data-theme="light"] .sc-quick-tile:hover {
    background: color-mix(in srgb, var(--bg-surface) 96%, black);
}

.icon-badge {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-grad);
}
.sc-quick-tile .icon-badge {
    width: 42px; height: 42px; border-radius: 13px;
}

.sc-quick-tile-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-surface-2); color: var(--text-secondary);
}
.sc-quick-tile .sc-quick-tile-icon {
    width: 42px; height: 42px; border-radius: 13px;
}

.sc-list-row {
    transition: background-color .15s ease;
}
.sc-list-row:hover { background: var(--bg-surface-2); }

.sc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; font-size: .95rem;
    border-radius: 9999px;
    padding: .8rem 1.4rem;
    border: none; cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}
.sc-btn:active { transform: scale(0.97); }
.sc-btn:disabled { opacity: .45; cursor: not-allowed; }

.sc-btn-primary {
    background: var(--accent-grad);
    color: var(--accent-contrast);
}
.sc-btn-primary:hover:not(:disabled) { opacity: .92; }

.sc-btn-secondary {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.sc-btn-secondary:hover:not(:disabled) { border-color: var(--accent); }

.sc-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.sc-btn-ghost:hover:not(:disabled) { color: var(--text-primary); }

.sc-pin-boxes {
    display: flex; gap: .55rem; justify-content: center;
    user-select: none; -webkit-user-select: none;
}
.sc-pin-box {
    width: 46px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-surface-2);
    color: var(--text-primary);
    transition: border-color .15s ease, background-color .15s ease, transform .08s ease;
    cursor: pointer;
}
.sc-pin-box:active { transform: scale(0.94); }
.sc-pin-box.is-filled { border-color: var(--accent); }
.sc-pin-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--text-primary);
    opacity: 0; transform: scale(0.4);
    transition: opacity .12s ease, transform .12s ease;
}
.sc-pin-box.is-filled .sc-pin-dot { opacity: 1; transform: scale(1); }

.sc-pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    max-width: 280px;
    margin: 0 auto;
}
.sc-pin-key {
    height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 600;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    border-radius: 16px;
    border: none;
    background: var(--bg-surface-2);
    color: var(--text-primary);
    transition: background-color .12s ease, transform .08s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none; -webkit-user-select: none;
}
.sc-pin-key:active { background: var(--bg-elevated); transform: scale(0.94); }
.sc-pin-key-empty { background: transparent; pointer-events: none; }
.sc-pin-key-back { color: var(--text-secondary); }

.sc-input {
    width: 100%;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: .75rem .9rem;
    color: var(--text-primary);
    font-size: .95rem;
    outline: none;
    transition: border-color .15s ease;
}
.sc-input:focus { border-color: var(--accent); }
.sc-input::placeholder { color: var(--text-tertiary); }
.sc-input-error { border-color: var(--negative) !important; }
.sc-required-star { color: var(--negative); margin-left: 1px; }

select.sc-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239aa4bf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 11px;
    padding-right: 2.4rem;
    cursor: pointer;
}
select.sc-input option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.sc-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
    text-transform: capitalize; }
.sc-pill-positive { background: rgba(33,209,126,0.12); color: var(--positive); }
.sc-pill-negative { background: rgba(255,92,114,0.12); color: var(--negative); }
.sc-pill-warning { background: rgba(255,184,0,0.14); color: #E0A000; }
.sc-pill-neutral { background: var(--bg-surface-2); color: var(--text-tertiary); }

.sc-oc-head { display: flex; align-items: flex-start; gap: .7rem; }
.sc-oc-title { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.sc-oc-sub { font-size: .76rem; color: var(--text-tertiary); margin-top: 1px; }
.sc-oc-meta {
    display: flex; flex-direction: column; gap: .45rem;
    margin-top: .75rem; padding-top: .7rem;
    border-top: 1px solid var(--border-subtle);
}

.sc-oc-meta-group { display: flex; flex-direction: column; gap: .45rem; }
.sc-oc-meta-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .78rem; }
.sc-oc-meta-label { display: flex; align-items: center; gap: .4rem; color: var(--text-tertiary); flex-shrink: 0; }
.sc-oc-meta-label svg { flex-shrink: 0; }
.sc-oc-meta-value { font-weight: 600; color: var(--text-primary); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sc-oc-meta-value.sc-oc-meta-value-wrap { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-all; }

.sc-oc-meta-row.sc-oc-meta-row-top { align-items: flex-start; }
.sc-oc-meta-row.sc-oc-meta-row-top .sc-oc-meta-label { padding-top: 1px; }
.sc-oc-note {
    display: flex; align-items: flex-start; gap: .5rem;
    padding: .65rem .75rem; border-radius: 12px;
    margin-top: .75rem; font-size: .72rem; line-height: 1.45;
    text-align: left;
}
.sc-oc-note-positive { background: rgba(52,211,153,0.1); color: var(--positive); }
.sc-oc-note-warning { background: rgba(255,184,0,0.1); color: #E0A000; }
.sc-oc-note-negative { background: rgba(248,113,113,0.1); color: var(--negative); }

.sc-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    color: var(--text-tertiary); font-size: .68rem; font-weight: 600;
    padding: .4rem .5rem; border-radius: 9999px;
    transition: color .15s ease;
}
.sc-nav-item.active, .sc-nav-item:hover { color: var(--accent); }

.sc-fade-in { animation: scFadeIn .35s ease both; }
@keyframes scFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.sc-theme-toggle {
    width: 44px; height: 26px; border-radius: 999px;
    background: var(--bg-surface-2); border: 1px solid var(--border-strong);
    position: relative; cursor: pointer;
}
.sc-theme-toggle .knob {
    position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent-grad);
    transition: transform .25s ease;
}
[data-theme="light"] .sc-theme-toggle .knob { transform: translateX(18px); }

.sc-theme-toggle-lg { width: 52px; height: 30px; }
.sc-theme-toggle-lg .knob { width: 22px; height: 22px; }
[data-theme="light"] .sc-theme-toggle-lg .knob { transform: translateX(22px); }
.sc-settings-row-control { min-width: 104px; display: flex; align-items: center; justify-content: flex-end; }

.sc-skeleton {
    background: linear-gradient(90deg, var(--bg-surface-2) 25%, var(--bg-elevated) 50%, var(--bg-surface-2) 75%);
    background-size: 200% 100%;
    animation: scShimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes scShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.sc-skeleton-on-gradient {
    background: linear-gradient(90deg, rgba(255,255,255,0.12) 25%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.12) 75%);
    background-size: 200% 100%;
    animation: scShimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}

.sc-modal-backdrop {

    position: fixed; inset: 0; background: rgba(5,7,14,0.6);
    backdrop-filter: blur(4px); z-index: 77;
}

.sc-coin-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-surface-2);
}
.sc-coin-icon img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.sc-coin-icon .icon-fallback {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .8rem; color: var(--accent-contrast);
    background: var(--accent-grad);
}

.sc-copy-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px;
    color: var(--text-tertiary); transition: color .15s ease, background-color .15s ease;
}
.sc-copy-btn:hover { color: var(--accent); background: var(--bg-surface-2); }

.sc-copy-btn-on-gradient:hover {
    background: rgba(0,0,0,0.18) !important;
    color: white !important;
}

.sc-select-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    background: var(--bg-surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: .7rem .9rem; cursor: pointer; transition: border-color .15s ease; text-align: left;
}
.sc-select-btn:hover { border-color: var(--accent); }
.sc-select-static {
    width: 100%; display: flex; align-items: center; gap: .6rem;
    background: var(--bg-surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: .7rem .9rem; color: var(--text-primary); cursor: default;
}

@media (max-width: 640px) {
        .sc-input:not(textarea):not(.sc-input-message), select.sc-input, .sc-select-btn, .sc-select-static {
        border-radius: 9999px !important;
    }
    textarea.sc-input, .sc-input-message {
        border-radius: var(--radius-md) !important;
    }

    .sc-input { font-size: 16px; }
}

.sc-select-dropdown {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 45;
    background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); max-height: 260px; overflow-y: auto; padding: .4rem;

    overscroll-behavior: contain;
    isolation: isolate;
}
.sc-select-option {
    width: 100%; display: flex; align-items: center; gap: .6rem;
    padding: .55rem .6rem; border-radius: var(--radius-sm); text-align: left; font-size: .9rem;
    transition: background-color .12s ease;
}
.sc-select-option:hover { background: var(--bg-surface-2); }
.sc-select-option.is-active { background: var(--bg-surface-2); color: var(--accent); font-weight: 600; }
.sc-select-icon { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; object-fit: contain; background: var(--bg-app); padding: 2px; box-sizing: border-box; }

.sc-number-wrap {
    display: flex; align-items: stretch;
    background: var(--bg-surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    overflow: hidden;
}
.sc-number-wrap input {
    flex: 1; min-width: 0; border: none; background: transparent; text-align: center;
    padding: .7rem .3rem; color: var(--text-primary); font-size: .95rem; outline: none;
    -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.sc-number-wrap input::-webkit-outer-spin-button,
.sc-number-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sc-number-btn {
    width: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); background: transparent; border: none; cursor: pointer;
    transition: background-color .12s ease, color .12s ease; font-size: 1.15rem; font-weight: 500;
    user-select: none;
}
.sc-number-btn:hover { background: var(--bg-elevated); color: var(--accent); }
.sc-number-btn:active { transform: scale(0.93); }

.sc-number-btn-circle {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-surface-2); border: 1px solid var(--border-strong);
    color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; font-weight: 500;
    transition: background-color .12s ease, color .12s ease, border-color .12s ease;
    user-select: none;
}
.sc-number-btn-circle:hover { border-color: var(--accent); color: var(--accent); }
.sc-number-btn-circle:active { transform: scale(0.92); }

.sc-amount-chip {
    padding: .4rem .95rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
    background: var(--bg-surface-2); border: 1px solid var(--border-subtle); color: var(--text-secondary);
    transition: all .12s ease; cursor: pointer; flex-shrink: 0;
}
.sc-amount-chip:hover { border-color: var(--accent); color: var(--accent); }
.sc-amount-chip.is-active { background: var(--accent-grad); color: var(--accent-contrast); border-color: transparent; }

@media (min-width: 1024px) {
    .sc-tab-narrow { max-width: 600px; }
}

.sc-settings-row-icon {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--bg-surface-2); color: var(--text-secondary);
}

.sc-theme-toggle-circle {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-subtle); background: var(--bg-surface-2); color: var(--text-secondary);
    cursor: pointer;
}

.sc-theme-icon-moon { display: none; }
[data-theme="light"] .sc-theme-icon-sun { display: block; }
[data-theme="light"] .sc-theme-icon-moon { display: none; }
:root:not([data-theme="light"]) .sc-theme-icon-sun { display: none; }
:root:not([data-theme="light"]) .sc-theme-icon-moon { display: block; }

.sc-checkbox { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.sc-checkbox input[type="checkbox"] {
    position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; z-index: 1;
}
.sc-checkbox .box {
    width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
    border: 1.5px solid var(--border-strong); background: var(--bg-surface-2);
    display: flex; align-items: center; justify-content: center;
    transition: background-color .15s ease, border-color .15s ease;
}
.sc-checkbox .box svg { opacity: 0; transform: scale(0.5); transition: all .15s ease; }
.sc-checkbox input[type="checkbox"]:checked ~ .box { background: var(--accent-grad); border-color: transparent; }
.sc-checkbox input[type="checkbox"]:checked ~ .box svg { opacity: 1; transform: scale(1); }
.sc-checkbox input[type="checkbox"]:focus-visible ~ .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-checkbox:hover .box { border-color: var(--accent); }

.sc-row-divider {
    border-top: 1px solid var(--border-subtle);
}
@media (min-width: 1024px) {
    .sc-row-divider-lg { border-top: 1px solid var(--border-subtle); }
}

.sc-logo-badge {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
}

@keyframes sc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sc-float { animation: sc-float 2.2s ease-in-out infinite; }

.sc-menu-item {
    width: 100%; display: flex; align-items: center; gap: .75rem;
    padding: .6rem .6rem; border-radius: var(--radius-md);
    font-size: .9rem; font-weight: 600; text-align: left;
    transition: background-color .12s ease;
}
.sc-menu-item:hover { background: var(--bg-surface-2); }
.sc-menu-icon {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-surface-2); color: var(--text-secondary);
}
.sc-menu-item:hover .sc-menu-icon { color: var(--accent); }

.sc-menu-grid-item {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 1rem .5rem; border-radius: var(--radius-md);
    font-size: .74rem; font-weight: 600; text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.sc-menu-grid-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-surface-2); color: var(--text-secondary);
}

.sc-invoice-legal-card { order: 3; }
@media (min-width: 1024px) { .sc-invoice-legal-card { order: 0; } }

.sc-sidebar-item {
    width: 100%; display: flex; align-items: center; gap: .8rem;
    padding: .65rem .75rem; border-radius: var(--radius-md);
    font-size: .875rem; font-weight: 600; text-align: left;
    color: var(--text-secondary);
    transition: background-color .12s ease, color .12s ease;
}
.sc-sidebar-item:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.sc-sidebar-item.active { background: var(--accent-solid-bg); color: var(--accent-solid-text); }
.sc-sidebar-item.active svg path { stroke: var(--accent-solid-text); }
.sc-sidebar-item svg { flex-shrink: 0; }

.sc-stat-card {
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-card);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sc-stat-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.sc-stat-card .icon-badge {
    width: 34px; height: 34px; border-radius: 10px;
    margin-bottom: .6rem;
}
.sc-stat-value { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.85rem; font-weight: 700; line-height: 1.1; }
.sc-stat-label { font-size: .8rem; color: var(--text-tertiary); margin-top: .3rem; }

.sc-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-grad); color: var(--accent-contrast); font-weight: 700; font-size: .75rem;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.sc-table tr.sc-clickable-row { cursor: pointer; transition: background-color .12s ease; }
.sc-table tr.sc-clickable-row:hover { background: var(--bg-surface-2); }

.sc-icon-btn {
    display: flex; align-items: center; justify-content: center; gap: .35rem;
}

.sc-spinner {
    width: 16px; height: 16px; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.35); border-top-color: white;
    border-radius: 50%; display: inline-block;
    animation: sc-spin .65s linear infinite;
}
@keyframes sc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.sc-loader-bounce { animation: sc-bounce 0.8s ease-in-out infinite; }
.sc-spinner-dark { border-color: rgba(0,0,0,0.15); border-top-color: var(--accent); }
@keyframes sc-spin { to { transform: rotate(360deg); } }

.sc-brand-gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.sc-gate-wrap { position: relative; }
.sc-gate-content { transition: filter .15s ease; }
.sc-gate-content.sc-gate-blurred { filter: blur(5px); pointer-events: none; user-select: none; }
.sc-gate-overlay {
    position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; gap: .85rem;
    padding: 1.5rem; border-radius: inherit;
    background: color-mix(in srgb, var(--bg-surface) 72%, transparent);
}
.sc-gate-overlay p { max-width: 240px; }

.sc-fieldset-reset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sc-form-busy-wrap { position: relative; }
.sc-form-busy-overlay {
    position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--bg-surface) 55%, transparent);
    backdrop-filter: blur(1.5px); border-radius: inherit;
}

.sc-invoice-skel-row {
    display: flex; align-items: center; gap: .75rem;
    padding: .875rem; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
    margin-bottom: .5rem;
}

.sc-settings-row-btn {
    height: 44px; padding: 0 1rem; border-radius: var(--radius-md);
    font-size: .875rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.sc-toggle-switch {
    -webkit-appearance: none; appearance: none; width: 52px; height: 30px; border-radius: 999px;
    background: var(--bg-surface-2); border: 1px solid var(--border-strong); position: relative;
    cursor: pointer; flex-shrink: 0; transition: background-color .15s ease;
}
.sc-toggle-switch::before {
    content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-grad); transition: transform .15s ease;
}
.sc-toggle-switch:checked { background: var(--bg-surface-2); border-color: var(--border-strong); }
.sc-toggle-switch:checked::before { transform: translateX(22px); }

.sc-lang-flag-circle { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border-subtle); }
.sc-lang-flag-circle svg, .sc-lang-flag-btn svg { display: block; width: 100%; height: 100%; }

.sc-lang-flag-btn {
    width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    border: 1px solid var(--border-subtle); padding: 0; margin: 0; display: block;
    background: none; cursor: pointer; line-height: 0;
}

.sc-word-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sc-word-card { display: flex; align-items: center; gap: .55rem; padding: .62rem .7rem; border-radius: 12px; background: var(--bg-surface-2); border: 1px solid var(--border-subtle); min-width: 0; }
.sc-word-n { flex: none; width: 1.35rem; text-align: right; font-size: .7rem; font-weight: 700; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.sc-word-t { min-width: 0; font-weight: 700; font-size: .95rem; letter-spacing: .01em; overflow-wrap: anywhere; transition: filter .2s ease; }
.sc-word-grid.is-blur .sc-word-t { filter: blur(9px); }
.sc-timer-bar { height: 4px; border-radius: 4px; background: var(--bg-elevated); overflow: hidden; }
.sc-timer-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 1s linear; }
.sc-timer-bar.is-low > i { background: var(--negative); }
.sc-word-field { position: relative; }
.sc-word-field > span { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); font-size: .7rem; font-weight: 700; color: var(--text-tertiary); pointer-events: none; font-variant-numeric: tabular-nums; }
.sc-word-field > input { padding-left: 2rem; padding-right: .5rem; font-size: .9rem; font-weight: 600; text-transform: lowercase; }
.sc-word-field > input.is-bad { border-color: var(--negative); }
.sc-qr { display: inline-block; padding: 14px; border-radius: 18px; background: #fff; line-height: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.sc-qr svg { width: 188px; height: 188px; display: block; }

.sc-haptic-switch {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sc-haptic-host { position: relative; }
button:disabled > .sc-haptic-switch { pointer-events: none; }
