
/* ===== Prokatavto360-aligned shell overrides ===== */
:root, .cb-app {
    --accent: #cefe24;
    --accent-2: #b8e820;
    --lime: #cefe24;
    --bg: #f5f4f2;
    --surface: #f5f4f2;
    --card: #ffffff;
    --text: #272824;
    --ink: #141412;
    --muted: rgba(39, 40, 36, 0.64);
    --line: rgba(210, 208, 204, 0.55);
    --border: rgba(210, 208, 204, 0.55);
    --radius: 20px;
    --shadow: 0 2px 16px rgba(39, 40, 36, 0.06);
}
body, .cb-app, .cb-topbar h1, .cb-side-name, .cb-side-mark, .cb-btn-sm, .cb-nav-btn {
    font-family: 'Manrope', system-ui, sans-serif !important;
}
.cb-app { background: #141412; }
.cb-side {
    background: #141412 !important;
    color: rgba(255,255,255,0.88);
}
.cb-side-brand { border-bottom: 1px solid rgba(255,255,255,0.08); }
.cb-side-mark {
    background: rgba(206,254,36,0.15) !important;
    color: #cefe24 !important;
    border-radius: 50% !important;
    width: 32px !important; height: 32px !important;
    font-size: 0.65rem !important;
}
.cb-side-company {
    margin: 0 0.65rem 0.75rem;
    padding: 14px !important;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border-bottom: none !important;
}
.cb-nav-btn {
    border-radius: 12px !important;
    color: rgba(255,255,255,0.65) !important;
    font-weight: 600 !important;
}
.cb-nav-btn:hover { background: rgba(255,255,255,0.06) !important; color: #fff !important; }
.cb-nav-btn.on {
    background: rgba(206,254,36,0.12) !important;
    color: #cefe24 !important;
    box-shadow: none !important;
}
.cb-nav-btn.on svg { opacity: 1; }
.cb-nav-badge {
    background: #cefe24 !important;
    color: #141412 !important;
}
.cb-status.active { background: rgba(206,254,36,0.15); color: #cefe24; }
.cb-main { background: #f5f4f2; min-height: 100vh; }
.cb-topbar {
    background: rgba(245,244,242,0.92) !important;
    border-bottom: 1px solid rgba(210,208,204,0.55) !important;
    backdrop-filter: blur(16px);
}
.cb-topbar h1 {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}
.cb-balance-pill {
    border-radius: 999px !important;
    border: 1px solid rgba(210,208,204,0.55);
    background: #fff !important;
    box-shadow: 0 2px 16px rgba(39,40,36,0.06);
}
.cb-balance-pill strong { color: #141412; }
.cb-btn-sm {
    border-radius: 999px !important;
    font-weight: 800 !important;
    border: 1px solid rgba(210,208,204,0.55);
    background: #fff;
}
.cb-btn-sm.primary, .cb-btn-sm.primary:hover {
    background: #cefe24 !important;
    color: #272824 !important;
    border-color: #cefe24 !important;
}
.cb-content { padding: 28px 28px 48px; }
@media (max-width: 1024px) { .cb-content { padding: 20px 16px 40px; } }
.cb-card, .cb-onboard {
    background: #fff !important;
    border: 1px solid rgba(210,208,204,0.55) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 16px rgba(39,40,36,0.06) !important;
}
.cb-card-head h3, .cb-onboard h2 {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}
.cb-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 1100px) { .cb-kpis { grid-template-columns: repeat(2, 1fr); } }
.cb-kpi {
    background: #fff !important;
    border: 1px solid rgba(210,208,204,0.55) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 16px rgba(39,40,36,0.06) !important;
    padding: 18px 20px !important;
}
.cb-kpi strong {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #272824 !important;
}
.cb-kpi span {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(39,40,36,0.64) !important;
}
.cb-onboard {
    background: linear-gradient(135deg, #141412 0%, #272824 100%) !important;
    color: rgba(255,255,255,0.88) !important;
    border-color: #141412 !important;
}
.cb-onboard h2 { color: #fff !important; }
.cb-onboard p { color: rgba(255,255,255,0.55) !important; }
.cb-side-foot a:hover { color: #cefe24 !important; }
.cb-progress span { background: #cefe24 !important; }

/* Cabinet dashboard */
.cb-app {
    --cb-sidebar: 260px;
    --cb-top: 64px;
    min-height: 100vh;
    background: var(--surface);
    display: grid;
    grid-template-columns: var(--cb-sidebar) minmax(0, 1fr);
}
@media (max-width: 1024px) {
    .cb-app {
        grid-template-columns: 1fr;
        padding-bottom: 4.5rem;
    }
}

/* Sidebar */
.cb-side {
    position: sticky; top: 0;
    height: 100vh;
    background: linear-gradient(180deg, var(--ink) 0%, #152019 100%);
    color: #fff;
    display: flex; flex-direction: column;
    z-index: 50;
    overflow: hidden;
}
@media (max-width: 1024px) {
    .cb-side {
        position: fixed; inset: auto 0 0 0;
        height: auto; flex-direction: row;
        overflow-x: auto;
        border-top: 1px solid rgba(255,255,255,.08);
        -webkit-overflow-scrolling: touch;
    }
}

.cb-side-brand {
    display: flex; align-items: center; gap: .65rem;
    padding: 1.25rem 1.35rem 1rem;
    text-decoration: none; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
@media (max-width: 1024px) { .cb-side-brand { display: none; } }
.cb-side-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--accent);
    color: #272824;
    display: grid; place-items: center;
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: .58rem;
}
.cb-side-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800; font-size: .95rem;
    letter-spacing: -.02em;
}
.cb-side-name small {
    display: block; font-size: .65rem; font-weight: 500;
    color: rgba(255,255,255,.45); margin-top: .1rem;
}

.cb-side-company {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 1024px) { .cb-side-company { display: none; } }
.cb-side-company h2 {
    font-size: .82rem; font-weight: 700;
    margin-bottom: .25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-side-company p {
    font-size: .72rem; color: rgba(255,255,255,.5);
}
.cb-status {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: .45rem;
    padding: .2rem .55rem; border-radius: 999px;
    font-size: .65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.cb-status.active { background: rgba(206,254,36,.2); color: #cefe24; }
.cb-status.pending { background: rgba(255,200,80,.15); color: #e8c060; }
.cb-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
}

.cb-nav {
    flex: 1; padding: .75rem .65rem;
    display: flex; flex-direction: column; gap: .2rem;
    overflow-y: auto;
}
@media (max-width: 1024px) {
    .cb-nav {
        flex-direction: row; flex: 1;
        padding: .5rem .65rem; gap: .35rem;
    }
}
.cb-nav-btn {
    display: flex; align-items: center; gap: .7rem;
    width: 100%; padding: .7rem .85rem;
    border: none; border-radius: 12px;
    background: transparent; color: rgba(255,255,255,.55);
    font: inherit; font-size: .84rem; font-weight: 600;
    text-align: left; cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
    position: relative;
}
@media (max-width: 1024px) {
    .cb-nav-btn {
        flex-direction: column; gap: .2rem;
        padding: .55rem .65rem; font-size: .65rem;
        min-width: 4.5rem;
    }
    .cb-nav-btn span.lbl { display: block; }
}
.cb-nav-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.cb-nav-btn.on {
    background: rgba(206,254,36,.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(206,254,36,.25);
}
.cb-nav-btn svg { flex-shrink: 0; opacity: .85; }
.cb-nav-badge {
    margin-left: auto;
    min-width: 20px; height: 20px; padding: 0 .4rem;
    border-radius: 999px;
    background: var(--accent); color: #272824;
    font-size: .65rem; font-weight: 800;
    display: grid; place-items: center;
}
@media (max-width: 1024px) {
    .cb-nav-badge {
        position: absolute; top: 4px; right: 4px;
        margin: 0; min-width: 16px; height: 16px;
        font-size: .58rem;
    }
}

.cb-side-foot {
    padding: 1rem 1.35rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 1024px) { .cb-side-foot { display: none; } }
.cb-side-foot a {
    display: block; font-size: .78rem;
    color: rgba(255,255,255,.45); text-decoration: none;
    margin-bottom: .35rem;
}
.cb-side-foot a:hover { color: var(--accent); }

/* Main */
.cb-main { min-width: 0; display: flex; flex-direction: column; }

.cb-topbar {
    position: sticky; top: 0; z-index: 40;
    height: var(--cb-top);
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
    background: rgba(248,249,250,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.cb-topbar h1 {
    font-size: 1.15rem; font-weight: 800;
    letter-spacing: -.02em;
}
.cb-topbar-actions {
    display: flex; align-items: center; gap: .65rem;
}

.cb-balance-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .84rem; font-weight: 700;
    cursor: pointer;
    transition: border-color .2s;
}
.cb-balance-pill:hover { border-color: var(--accent); }
.cb-balance-pill span { color: var(--muted); font-weight: 500; }
.cb-balance-pill strong { color: var(--accent); }

.cb-user-menu {
    display: flex; align-items: center; gap: .5rem;
}
.cb-user-phone {
    font-size: .78rem; color: var(--muted);
    display: none;
}
@media (min-width: 700px) { .cb-user-phone { display: block; } }
.cb-btn-sm {
    padding: .45rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font: inherit; font-size: .78rem; font-weight: 600;
    color: var(--muted); cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.cb-btn-sm:hover { border-color: #d07070; color: #9a5050; }
.cb-btn-sm.primary {
    background: var(--accent); border-color: var(--accent); color: #272824;
}
.cb-btn-sm.primary:hover { filter: brightness(1.05); color: #272824; }

.cb-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1280px;
    width: 100%;
}

.cb-panel { display: none; animation: cbFade .3s ease; }
.cb-panel.on { display: block; }
@keyframes cbFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* Stats row */
.cb-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .cb-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cb-kpis { grid-template-columns: 1fr; } }

.cb-kpi {
    padding: 1.2rem 1.3rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.cb-kpi::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    opacity: .6;
}
.cb-kpi-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: .65rem;
}
.cb-kpi-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center;
}
.cb-kpi-delta {
    font-size: .7rem; font-weight: 700;
    padding: .15rem .45rem; border-radius: 999px;
}
.cb-kpi-delta.up { background: #f3fadb; color: var(--accent); }
.cb-kpi-delta.neu { background: var(--surface-2); color: var(--muted); }
.cb-kpi-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem; font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: .25rem;
}
.cb-kpi-lbl { font-size: .78rem; color: var(--muted); }

/* Grid layouts */
.cb-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .cb-row { grid-template-columns: 1fr; } }

.cb-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.cb-card-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.cb-card-head h3 {
    font-size: .92rem; font-weight: 800;
}
.cb-card-body { padding: 1.15rem 1.25rem; }

/* Chart */
.cb-chart {
    display: flex; align-items: flex-end; gap: .35rem;
    height: 140px; padding-top: .5rem;
}
.cb-chart-bar {
    flex: 1; min-width: 0;
    background: linear-gradient(180deg, var(--accent), rgba(206,254,36,.35));
    border-radius: 6px 6px 2px 2px;
    transition: height .4s ease;
    position: relative;
}
.cb-chart-bar:hover { filter: brightness(1.08); }
.cb-chart-bar:last-child {
    background: linear-gradient(180deg, #b8e820, var(--accent));
}

/* Table */
.cb-table-wrap { overflow-x: auto; }
.cb-table {
    width: 100%; border-collapse: collapse;
    font-size: .84rem;
}
.cb-table th {
    text-align: left; padding: .7rem 1rem;
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.cb-table td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.cb-table tr:last-child td { border-bottom: none; }
.cb-table tr:hover td { background: var(--surface-2); }

.cb-tag {
    display: inline-block;
    padding: .2rem .5rem; border-radius: 999px;
    font-size: .68rem; font-weight: 700;
}
.cb-tag.green { background: #f3fadb; color: var(--accent); }
.cb-tag.amber { background: #faf0e8; color: #a07040; }
.cb-tag.gray { background: var(--surface-2); color: var(--muted); }
.cb-tag.blue { background: #e8f0fa; color: #4a70a0; }
.cb-tag.red { background: #fceaea; color: #9a5050; }

/* Plan cards */
.cb-plans {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 800px) { .cb-plans { grid-template-columns: 1fr; } }
.cb-plan {
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    transition: border-color .2s, transform .2s;
}
.cb-plan.current {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.cb-plan h4 {
    font-size: 1rem; font-weight: 800; margin-bottom: .25rem;
}
.cb-plan-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    color: var(--accent); margin: .5rem 0;
}
.cb-plan-price span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.cb-plan ul {
    margin: .75rem 0 1rem; padding: 0; list-style: none;
    font-size: .82rem; color: var(--muted);
}
.cb-plan li {
    padding: .3rem 0 .3rem 1rem; position: relative;
}
.cb-plan li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--accent); font-weight: 700;
}
.cb-plan-btn {
    width: 100%; padding: .65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    font: inherit; font-size: .82rem; font-weight: 700;
    cursor: pointer; transition: all .2s;
}
.cb-plan.current .cb-plan-btn {
    background: var(--accent); border-color: var(--accent); color: #272824;
}
.cb-plan-btn:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.cb-plan.current .cb-plan-btn:hover { filter: brightness(1.05); color: #272824; }

/* Balance hero */
.cb-balance-hero {
    display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, var(--ink), #1a3028);
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: 1.5rem;
}
.cb-balance-hero-val {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem; font-weight: 800;
    letter-spacing: -.03em;
}
.cb-balance-hero-val span { font-size: 1rem; opacity: .6; }
.cb-balance-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cb-balance-actions button {
    padding: .65rem 1.2rem;
    border: none; border-radius: 999px;
    font: inherit; font-size: .84rem; font-weight: 700;
    cursor: pointer;
}
.cb-balance-actions .fill { background: var(--accent); color: #272824; }
.cb-balance-actions .ghost {
    background: rgba(255,255,255,.1); color: #272824;
    border: 1px solid rgba(255,255,255,.15);
}

/* Ticket */
.cb-ticket {
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: .65rem;
    cursor: pointer;
    transition: border-color .2s;
}
.cb-ticket:hover { border-color: var(--accent); }
.cb-ticket-top {
    display: flex; justify-content: space-between; align-items: center;
    gap: .75rem; margin-bottom: .35rem;
}
.cb-ticket-id { font-size: .72rem; color: var(--muted); font-weight: 600; }
.cb-ticket h4 { font-size: .9rem; font-weight: 700; }

/* Forms */
.cb-form-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (max-width: 600px) { .cb-form-grid { grid-template-columns: 1fr; } }
.cb-field label {
    display: block; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); margin-bottom: .4rem;
}
.cb-field input, .cb-field select, .cb-field textarea {
    width: 100%; padding: .7rem .85rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    font: inherit; font-size: .88rem;
    background: var(--card);
}
.cb-field input:focus, .cb-field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.cb-field.full { grid-column: 1 / -1; }

.cb-onboard {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(206,254,36,.08), var(--card));
    border: 1px dashed rgba(206,254,36,.35);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1.5rem;
}
.cb-onboard h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.cb-onboard p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; max-width: 480px; margin-inline: auto; }

.cb-empty {
    text-align: center; padding: 2.5rem 1rem;
    color: var(--muted); font-size: .88rem;
}

.cb-toast {
    position: fixed; bottom: 5rem; left: 50%;
    transform: translateX(-50%) translateY(120%);
    padding: .75rem 1.25rem;
    background: var(--ink); color: #fff;
    border-radius: 999px; font-size: .84rem; font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: transform .35s ease;
    z-index: 100;
}
.cb-toast.on { transform: translateX(-50%) translateY(0); }
@media (min-width: 1025px) { .cb-toast { bottom: 1.5rem; } }

.cb-quick {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
}
@media (max-width: 600px) { .cb-quick { grid-template-columns: 1fr; } }
.cb-quick a, .cb-quick button {
    display: flex; align-items: center; gap: .5rem;
    padding: .75rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit; font-size: .82rem; font-weight: 600;
    color: var(--text); text-decoration: none;
    cursor: pointer; transition: border-color .2s;
}
.cb-quick a:hover, .cb-quick button:hover { border-color: var(--accent); }

.cb-progress {
    height: 6px; background: var(--surface-2);
    border-radius: 999px; overflow: hidden;
    margin-top: .35rem;
}
.cb-progress span {
    display: block; height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width .4s ease;
}

.cb-tx-amount.credit { color: var(--accent); }
.cb-tx-amount.debit { color: #9a5050; }
