/* =========================================================
   GLOBAL THEME
========================================================= */

:root {
    --bg: #07111f;
    --bg-soft: #0b1726;
    --panel-dark: #0d1b2c;
    --panel-dark-2: #10253b;
    --line-dark: #20344b;
    --line-dark-2: #29415b;

    --text: #152236;
    --text-dark: #eef5ff;
    --muted: #74869a;
    --muted-dark: #94a8bf;

    --accent: #39e6a4;
    --accent-dark: #16885e;
    --accent-hover: #16c986;

    --success-bg: #e7faf2;
    --success-text: #16885e;

    --warning-bg: #fff5d8;
    --warning-text: #9a6a00;

    --danger-bg: #ffe9eb;
    --danger-text: #b32838;

    --page: #f3f6fa;
    --white: #ffffff;
    --border: #e0e7ef;

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 13px;
    --radius-xl: 16px;

    --sidebar-width: 260px;
    --sidebar-collapsed: 76px;

    --shadow-sm: 0 4px 18px rgba(12, 28, 46, .05);
    --shadow-md: 0 12px 35px rgba(12, 28, 46, .08);
    --client-glow: rgba(57, 230, 164, .18);
    --client-shadow-lg: 0 18px 55px rgba(8, 24, 42, .10);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background: #f5f8fc;
    color: var(--text);
    line-height: 1.5;
}

body,
button,
input,
textarea,
select {
    font-family: inherit;
}

button,
input,
textarea,
select {
    font-size: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 3px solid #7dd3fc;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================================
   HEADER / PUBLIC NAV
========================================================= */

header {
    height: 76px;
    background: var(--bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    border-bottom: 1px solid #1a2b40;
}

.logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 850;
    font-size: 20px;
    white-space: nowrap;
}

.logo b {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 7px;
    border-radius: 8px;
    background: var(--accent);
    color: #06131d;
    font-size: 15px;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #a8b9cc;
    font-size: 14px;
}

nav a {
    transition: color .15s ease;
}

nav a:hover {
    color: #fff;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 17px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #06131d;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(57, 230, 164, .10);
    transition:
        transform .15s ease,
        opacity .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px var(--client-glow);
}

.btn:active {
    transform: translateY(0);
}

.btn.large {
    min-height: 48px;
    padding: 14px 22px;
}

.btn.secondary {
    background: #e8eef5;
    color: #17263a;
}

.btn.secondary:hover {
    background: #dfe7f0;
}

.btn.full {
    width: 100%;
    margin: 5px 0;
}

.danger-btn {
    border: 0;
    padding: 7px 10px;
    border-radius: 7px;
    background: var(--danger-bg);
    color: var(--danger-text);
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   PUBLIC HERO
========================================================= */

.hero {
    min-height: 620px;
    padding: 90px 9%;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
    background:
        radial-gradient(
            circle at 75% 25%,
            #1a3c53,
            #07111f 48%
        );
    color: #fff;
}

.hero small,
.section > small {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 720px;
    margin: 20px 0;
    font-size: 60px;
    line-height: 1.04;
    letter-spacing: -3px;
}

.hero p {
    max-width: 650px;
    color: #a6b8cc;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   PREVIEW
========================================================= */

.preview {
    padding: 24px;
    background: var(--panel-dark);
    border: 1px solid #2a435e;
    border-radius: 17px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .4);
}

.preview .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #9cb0c4;
}

.preview i {
    color: var(--accent);
}

.preview strong {
    font-size: 36px;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 15px;
    background: #122238;
    border: 1px solid var(--line-dark);
    border-radius: 9px;
}

.row b {
    color: var(--accent);
}

.row em {
    color: #ffd166;
    font-style: normal;
}


/* =========================================================
   SECTIONS / PUBLIC GRID
========================================================= */

.section {
    padding: 90px 9%;
}

.section h2 {
    font-size: 42px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid article {
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 13px;
}

.grid p {
    color: #718197;
    line-height: 1.6;
}

.dark {
    background: var(--bg);
    color: #fff;
}

.dark p {
    max-width: 650px;
    color: #9aadc2;
    line-height: 1.7;
}

.dark pre {
    max-width: 600px;
    padding: 24px;
    overflow-x: auto;
    background: var(--panel-dark);
    border: 1px solid var(--line-dark);
    border-radius: 12px;
    color: #9df0ca;
    line-height: 1.8;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 35px 9%;
    background: var(--bg);
    color: #8ea2b8;
}


/* =========================================================
   AUTH
========================================================= */

.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px 0;
    background: var(--bg);
}

.authbox {
    width: min(430px, 92%);
    display: grid;
    gap: 14px;
    padding: 34px;
    background: var(--panel-dark);
    border: 1px solid var(--line-dark-2);
    border-radius: 16px;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.authbox h1 {
    margin: 8px 0;
}

.authbox label {
    color: #9db0c4;
    font-size: 13px;
}

.authbox input {
    width: 100%;
    margin-top: 7px;
    padding: 12px;
    background: #091522;
    border: 1px solid #2b435c;
    border-radius: 8px;
    color: #fff;
}

.error {
    padding: 12px 14px;
    border-radius: 9px;
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 13px;
}

.auth .error {
    background: #51252b;
    color: #ffb5bb;
}


/* =========================================================
   CLIENT DASHBOARD LAYOUT
========================================================= */

.dash {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(180deg, #f6f9fc 0%, #f3f6fa 100%);
}

.dash main {
    flex: 1;
    min-width: 0;
    padding: 34px 5%;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: sticky;
    top: 0;
    z-index: 50;

    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 20px 14px;

    background: var(--bg);
    color: #fff;

    border-right: 1px solid #14263a;

    transition:
        width .22s ease,
        min-width .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.sidebar-head .logo {
    margin-left: 5px;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 7px;

    border: 1px solid var(--line-dark-2);
    border-radius: 9px;

    background: var(--panel-dark);
    color: #fff;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    background: #dce7f2;
}


/* =========================================================
   SIDEBAR USER
========================================================= */

.side-user {
    display: flex;
    align-items: center;
    gap: 11px;

    margin: 4px 5px 14px;
    padding: 12px;

    background: var(--panel-dark);
    border: 1px solid #1d334b;
    border-radius: 12px;

    color: #fff;
}

.side-user strong {
    display: block;
    font-size: 13px;
}

.side-user small {
    display: block;
    margin-top: 3px;
    color: #7f95aa;
    font-size: 11px;
}

.avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;
    background: #17314a;
    color: var(--accent);
    font-weight: 900;
}


/* =========================================================
   SIDEBAR SEARCH
========================================================= */

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 5px 12px;
    padding: 8px 10px;

    background: var(--panel-dark);
    border: 1px solid #1d334b;
    border-radius: 9px;

    color: #7f95aa;
}

.sidebar-search input {
    width: 100%;
    min-width: 0;

    padding: 2px !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;
    color: #fff !important;
}

.sidebar-search input::placeholder {
    color: #71879c;
}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-link {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 44px;
    padding: 11px 12px;

    border-radius: 9px;

    color: #8fa4ba;
    font-size: 14px;

    transition:
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.side-link:hover {
    background: #13263c;
    color: #fff;
    transform: translateX(2px);
}

.side-link.active {
    background: #13263c;
    color: #fff;
    box-shadow: inset 3px 0 var(--accent);
}

.side-link:focus-visible,
.sidebar-toggle:focus-visible,
.client-mobile-menu-button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(57, 230, 164, .55);
    outline-offset: 2px;
}

.side-icon {
    width: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 17px;
}

.side-label {
    min-width: 0;
}

.side-badge {
    min-width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    margin-left: auto;
    padding: 0 6px;

    border-radius: 10px;

    background: #ef4444;
    color: #fff;

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.side-bottom {
    margin-top: auto;
    padding-top: 15px;

    border-top: 1px solid #1a2d43;
}

.balance-mini {
    margin: 0 5px 10px;
    padding: 14px;

    background: linear-gradient(
        145deg,
        #10253b,
        #0b1726
    );

    border: 1px solid #24425d;
    border-radius: 12px;

    color: #fff;
}

.balance-mini small,
.balance-mini strong,
.balance-mini a {
    display: block;
}

.balance-mini small {
    color: #8196ab;
    font-size: 11px;
}

.balance-mini strong {
    margin: 5px 0;
    font-size: 22px;
}

.balance-mini a {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   SIDEBAR COLLAPSED
========================================================= */

.client-sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
    padding-left: 9px;
    padding-right: 9px;
}

.client-sidebar-collapsed .sidebar .logo {
    margin-left: 10px;
    font-size: 0;
}

.client-sidebar-collapsed .sidebar .logo b {
    margin-right: 0;
    font-size: 16px;
}

.client-sidebar-collapsed .side-user {
    justify-content: center;
}

.client-sidebar-collapsed .side-user > div:last-child,
.client-sidebar-collapsed .side-label,
.client-sidebar-collapsed .balance-mini,
.client-sidebar-collapsed .sidebar-search {
    display: none;
}

.client-sidebar-collapsed .side-link {
    justify-content: center;
}

.client-sidebar-collapsed .side-badge {
    position: absolute;
    top: 4px;
    right: 4px;

    min-width: 16px;
    height: 16px;

    padding: 0 4px;
    font-size: 9px;
}

.client-sidebar-collapsed .sidebar-head {
    justify-content: center;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.client-mobile-menu-button {
    display: none;

    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 60;

    align-items: center;
    gap: 7px;

    padding: 8px 11px;

    border: 1px solid #d7e0e9;
    border-radius: 8px;

    background: #fff;
    color: #17263a;

    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}


/* =========================================================
   MOBILE MENU OVERLAY
========================================================= */

.dash.client-menu-open::after {
    content: "";

    position: fixed;
    inset: 0;
    z-index: 40;

    background: rgba(3, 10, 20, .45);
    backdrop-filter: blur(1px);
}


/* =========================================================
   DASHBOARD HEADER
========================================================= */

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.head h1 {
    margin: 7px 0;
    font-size: 32px;
    line-height: 1.2;
}

.head small,
.panel-title small {
    color: #71869c;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 11px;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.muted {
    color: var(--muted);
    line-height: 1.6;
}


/* =========================================================
   DASHBOARD STATS
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stats > div {
    min-width: 0;

    padding: 20px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: var(--shadow-sm);
}

.stats small {
    color: #74869a;
    font-size: 12px;
}

.stats b {
    display: block;
    margin-top: 7px;
    font-size: 26px;
}


/* =========================================================
   PANELS
========================================================= */

.panel {
    margin-top: 20px;
    padding: 20px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: var(--shadow-sm);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.panel-title h2 {
    margin: 5px 0 0;
    font-size: 22px;
}


/* =========================================================
   TABLES
========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    padding: 13px;
    border-top: 1px solid #edf1f5;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #66798d;
    font-size: 12px;
    font-weight: 800;
}

td {
    color: #24364a;
    font-size: 14px;
}

td b {
    color: #15263a;
}

.table-link {
    color: #167b61;
    font-weight: 800;
}

.table-link:hover {
    text-decoration: underline;
}


/* =========================================================
   STATUS
========================================================= */

.status,
.ok {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 14px;

    background: #edf2f6;
    color: #52677d;

    font-size: 12px;
    font-weight: 700;
}

.ok,
.status.completed {
    background: var(--success-bg);
    color: var(--success-text);
}

.status.pending,
.status.processing {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status.failed,
.status.cancelled,
.status.refunded,
.status.rejected {
    background: var(--danger-bg);
    color: var(--danger-text);
}


/* =========================================================
   EMPTY / NOTICES
========================================================= */

.empty {
    padding: 35px;
    text-align: center;
    color: #8495a8;
}

.notice,
.success,
.danger {
    margin: 15px 0;
    padding: 13px 15px;
    border-radius: 10px;
}

.notice {
    background: #eaf8f3;
    color: #176b54;
    border: 1px solid #ccefe2;
}

.notice code {
    display: block;
    margin: 10px 0;
    padding: 10px;

    overflow-x: auto;

    background: #fff;
    border-radius: 7px;
}

.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}


/* =========================================================
   ORDER TIMES
========================================================= */

.order-times {
    width: 100%;
    margin: 14px 0;
}

.order-times th {
    text-align: left;
    white-space: nowrap;
}

.order-times td {
    padding-left: 18px;
}


/* =========================================================
   WALLET
========================================================= */

.wallet-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.wallet-card {
    padding: 23px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: var(--shadow-sm);
}

.wallet-card small,
.wallet-card strong,
.wallet-card span {
    display: block;
}

.wallet-card small {
    color: #74869a;
}

.wallet-card strong {
    margin: 8px 0;
    font-size: 30px;
}

.wallet-card span {
    color: #8b9aad;
    font-size: 12px;
}

.wallet-card.primary {
    background: var(--panel-dark);
    border-color: #203b55;
    color: #fff;
}

.wallet-card.primary small,
.wallet-card.primary span {
    color: #9bb0c4;
}


/* =========================================================
   FORMS
========================================================= */

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form input {
    width: 100%;
    max-width: 400px;
}

.form-grid {
    display: grid;
    gap: 15px;
    max-width: 650px;
}

.form-grid label {
    color: #55697f;
    font-size: 13px;
    font-weight: 700;
}

.inline-form input,
.form-grid input,
.form-grid textarea,
.form-grid select,
.panel input,
.panel textarea,
.panel select {
    width: 100%;

    padding: 12px;

    border: 1px solid #d8e1eb;
    border-radius: 10px;

    background: #fff;
    color: #18283b;

    font: inherit;

    transition: border-color .15s ease, box-shadow .15s ease;
}

.inline-form input:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.panel input:focus,
.panel textarea:focus,
.panel select:focus {
    border-color: #8edfc2;
    box-shadow: 0 0 0 4px rgba(57, 230, 164, .10);
    outline: none;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    display: block;
    margin-top: 7px;
}

.form-grid textarea {
    min-height: 120px;
    resize: vertical;
}

.form-grid select,
.panel select {
    cursor: pointer;
}


/* =========================================================
   NOTIFICATIONS
========================================================= */

.notification-list article {
    position: relative;
    padding: 16px 4px;
    border-bottom: 1px solid #edf1f5;
    transition: background .18s ease, transform .18s ease;
}

.notification-list article:hover {
    background: rgba(57, 230, 164, .06);
    transform: translateY(-1px);
}

.notification-list article.notification-unread {
    border-left: 3px solid var(--accent);
}

.notification-list article:last-child {
    border-bottom: 0;
}

.notification-list h3 {
    margin: 0 0 6px;
}

.notification-list p {
    color: #61748a;
    line-height: 1.6;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-box {
    max-width: 760px;
}


/* =========================================================
   ORDER / MOBILE TABLE WRAPPER
========================================================= */

.panel {
    overflow-x: auto;
}

.panel-title,
.panel > .notice,
.panel > .success,
.panel > .error,
.panel > .empty {
    min-width: min-content;
}


/* =========================================================
   DESKTOP SIDEBAR
========================================================= */

@media (min-width: 901px) {

    .sidebar {
        position: sticky;
    }

    .side-link:hover {
        transform: translateX(2px);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .hero {
        gap: 40px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wallet-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wallet-card.primary {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   TABLET SIDEBAR
========================================================= */

@media (max-width: 900px) and (min-width: 601px) {

    .sidebar {
        width: var(--sidebar-collapsed);
        min-width: var(--sidebar-collapsed);
        padding: 18px 9px;
    }

    .sidebar .logo {
        margin-left: 10px;
        font-size: 0;
    }

    .sidebar .logo b {
        margin-right: 0;
        font-size: 16px;
    }

    .sidebar .side-user {
        justify-content: center;
    }

    .sidebar .side-user > div:last-child,
    .sidebar .side-label,
    .sidebar .balance-mini,
    .sidebar .sidebar-search {
        display: none;
    }

    .sidebar .side-link {
        justify-content: center;
    }

    .sidebar-head {
        justify-content: center;
        position: relative;
    }

    .sidebar-toggle {
        display: inline-flex;

        position: absolute;
        top: 0;
        right: -2px;
    }

    .dash main {
        padding: 30px 4%;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .wallet-card.primary {
        grid-column: auto;
    }

    .head {
        align-items: flex-start;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    .dash {
        display: block;
        min-height: 100vh;
    }

    /* Mobile sidebar */

    .dash .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;

        width: min(300px, 88vw);
        min-width: min(300px, 88vw);
        min-height: 100vh;

        padding: 14px 12px;

        transform: translateX(-102%);

        box-shadow: 8px 0 30px rgba(0, 0, 0, .22);
    }

    .dash.client-menu-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-head {
        justify-content: space-between;
        padding: 2px 3px 10px;
    }

    .sidebar-head .logo {
        margin: 0;
        font-size: 18px;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .side-user {
        display: flex;
    }

    .sidebar-search {
        display: flex;
    }

    .side-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .side-link {
        min-height: 48px;
        justify-content: flex-start;
        padding: 11px 12px;
        font-size: 14px;
    }

    .side-link span:last-child {
        display: inline;
    }

    .side-icon {
        width: 20px;
        font-size: 17px;
    }

    .side-bottom {
        display: block;
        margin-top: auto;
    }

    .balance-mini {
        display: block;
    }

    .side-badge {
        margin-left: auto;
    }

    /* Mobile menu button */

    .client-mobile-menu-button {
        display: inline-flex;
    }

    /* Main */

    .dash main {
        width: 100%;
        padding: 20px 14px;
    }

    .head {
        display: block;
    }

    .head h1 {
        font-size: 28px;
    }

    .head-actions {
        display: flex;
        width: 100%;
        margin-top: 14px;
    }

    .head-actions .btn {
        flex: 1;
        text-align: center;
    }

    /* Stats */

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stats > div {
        padding: 16px;
    }

    .stats b {
        font-size: 22px;
    }

    /* Panels */

    .panel {
        margin-top: 15px;
        padding: 16px;
    }

    .panel-title {
        align-items: flex-start;
    }

    .panel-title h2 {
        font-size: 20px;
    }

    .panel table {
        min-width: 620px;
    }

    /* Public pages */

    header {
        height: 68px;
        padding: 0 6%;
    }

    nav {
        gap: 10px;
    }

    nav a:not(.btn) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 65px 6%;
    }

    .hero h1 {
        margin: 15px 0;
        font-size: 44px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 65px 6%;
    }

    .section h2 {
        font-size: 34px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* Wallet */

    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .wallet-card.primary {
        grid-column: auto;
    }

    /* Forms */

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-form input {
        max-width: none;
    }

    /* Auth */

    .authbox {
        padding: 26px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .stats {
        grid-template-columns: 1fr;
    }

    .head-actions {
        flex-direction: column;
    }

    .head-actions .btn {
        width: 100%;
    }

    .hero h1 {
        font-size: 38px;
    }

    .panel-title {
        gap: 8px;
    }

    .panel-title .btn {
        padding: 9px 11px;
        font-size: 12px;
    }
}


/* =========================================================
   SMOOTH NAVIGATION
========================================================= */

.side-link,
.btn,
.sidebar,
.sidebar-toggle {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .sidebar,
    .client-mobile-menu-button,
    .head-actions {
        display: none !important;
    }

    .dash {
        display: block;
        background: #fff;
    }

    .dash main {
        padding: 0;
    }

    .panel,
    .stats > div {
        box-shadow: none;
        break-inside: avoid;
    }
}


/* =========================================================
   2026 CLIENT UI POLISH
========================================================= */

body.dash {
    background: linear-gradient(180deg, #f6f9fc 0%, #f3f6fa 100%);
}

.dash .panel,
.dash .stats > div,
.service-card,
.wallet-card,
.authbox {
    border: 1px solid rgba(220, 228, 238, .95);
    box-shadow: var(--shadow-sm);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.dash .panel:hover,
.dash .stats > div:hover,
.service-card:hover,
.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--client-shadow-lg);
    border-color: #d4dfeb;
}

.dash header,
body:not(.dash) header {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}

.status {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 700px) {
    .dash .panel,
    .dash .stats > div,
    .service-card,
    .wallet-card {
        border-radius: 13px;
    }
}.catalog-service-details{margin:12px 0;font-size:13px;font-weight:400;white-space:normal}.catalog-service-details summary{cursor:pointer;color:#16885e;font-weight:600;padding:8px 0}.catalog-detail-body{padding:16px;background:#f3f6fa;color:#152236;border:1px solid #e0e7ef;border-radius:10px;max-width:600px}.catalog-detail-body small{display:block}.service-group-logo{object-fit:contain;border-radius:8px;vertical-align:middle;margin-right:8px}
.product-link{color:inherit;text-decoration:none}.product-link:hover{color:#16885e;text-decoration:underline}
