@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #fbfcfd;
    --border: #e8ecf2;
    --text: #101828;
    --text-secondary: #667085;
    --text-muted: #98a2b3;
    --primary: #167a3a;
    --primary-soft: #ecf8f0;
    --primary-border: #cfead8;
    --navy: #111827;
    --warning-soft: #fff7e6;
    --warning-text: #a15c00;
    --danger-soft: #fff1f1;
    --danger-text: #b42318;
    --info-soft: #eef4ff;
    --info-text: #344c9a;
    --radius-card: 20px;
    --radius-input: 12px;
    --shadow-soft: 0 12px 30px rgba(16, 24, 40, .04);
    --shadow-panel: 0 1px 2px rgba(16, 24, 40, .04);
}

/* Modern topup checkout */
.topup-wrap-modern {
    width: min(100%, 1140px);
    margin: 0 auto;
    padding: 32px 24px 56px;
    gap: 22px;
}

.topup-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr);
    gap: 20px;
    align-items: end;
}

.topup-hero h1 {
    margin: 6px 0 8px;
    color: #101828;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0;
}

.topup-hero p {
    max-width: 690px;
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

.topup-secure-note {
    padding: 16px 18px;
    border: 1px solid #cfead8;
    border-radius: 18px;
    background: #ecf8f0;
    color: #167a3a;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.topup-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 24px;
    align-items: start;
}

.topup-target-banner {
    grid-column: 1 / -1;
    padding: 16px 20px;
    border: 1px solid #cfead8;
    border-radius: 18px;
    background: #ecf8f0;
    color: #167a3a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.topup-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.topup-panel,
.topup-summary-card {
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

.topup-panel {
    padding: 22px;
}

.topup-panel-head,
.topup-summary-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.topup-panel-head h2,
.topup-summary-card h2 {
    margin: 4px 0 0;
    color: #101828;
    font-size: 1.12rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.topup-device-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.topup-device-select-panel {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}

.topup-device-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.topup-device-select-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    background: #ffffff;
    color: #101828;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.topup-device-select-card:hover {
    border-color: #218f3f;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07);
}

.topup-device-select-title {
    color: #101828;
    font-size: 17px;
    font-weight: 700;
}

.topup-device-select-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.topup-device-select-card dl div {
    display: grid;
    grid-template-columns: minmax(90px, .42fr) minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ecf2;
}

.topup-device-select-card dt {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.topup-device-select-card dd {
    margin: 0;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.topup-device-select-card > strong {
    color: #167a3a;
    font-size: 14px;
    font-weight: 700;
}

.topup-device-grid div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    background: #fbfcfd;
}

.topup-device-grid span,
.topup-review-list dt,
.topup-field small,
.topup-processing-note {
    color: #667085;
}

.topup-device-grid span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.topup-device-grid strong {
    display: block;
    overflow-wrap: anywhere;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
}

.topup-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.topup-tile {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.topup-tile:hover {
    border-color: #b8c8d8;
    transform: translateY(-1px);
}

.topup-tile.is-selected {
    border-color: #218f3f;
    background: #f0faf4;
    box-shadow: 0 10px 22px rgba(33, 143, 63, 0.08);
}

.topup-tile.is-disabled {
    cursor: not-allowed;
    opacity: .58;
    background: #f7f8fb;
    transform: none;
}

.topup-native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.topup-tile-mark {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #c6d0dc;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 4px #ffffff;
}

.topup-tile.is-selected .topup-tile-mark {
    border-color: #218f3f;
    background: #218f3f;
}

.topup-tile strong {
    display: block;
    color: #101828;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.topup-tile small {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.topup-amount-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    gap: 16px;
}

.topup-field {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.topup-field input[type="number"] {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    font-weight: 600;
    outline: none;
}

.topup-field input[type="number"]:focus {
    border-color: #218f3f;
    box-shadow: 0 0 0 4px rgba(33, 143, 63, .12);
}

.topup-field small {
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.topup-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 50px;
    padding: 4px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #f7f8fb;
}

.topup-segmented label {
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #667085;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.topup-segmented label.is-selected {
    background: #ffffff;
    color: #167a3a;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

.topup-rate-note {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #cfead8;
    border-radius: 16px;
    background: #ecf8f0;
    color: #167a3a;
    font-size: 14px;
    line-height: 1.45;
}

.topup-rate-note span {
    color: #50745e;
}

.topup-rate-note.is-eur {
    border-color: #dbe4f0;
    background: #f7f8fb;
    color: #344054;
}

.topup-rate-note.is-eur span {
    color: #667085;
}

.topup-summary-card {
    position: sticky;
    top: 22px;
    padding: 22px;
}

.topup-review-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.topup-review-list div {
    display: grid;
    grid-template-columns: minmax(112px, .56fr) minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf2;
}

.topup-review-list dt {
    font-size: 13px;
    font-weight: 600;
}

.topup-review-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.topup-processing-note {
    margin: 18px 0;
    padding: 14px;
    border-radius: 16px;
    background: #f7f8fb;
    font-size: 13px;
    line-height: 1.55;
}

.topup-summary-card .topup-submit {
    width: 100%;
    min-height: 50px;
    margin: 0;
    border-radius: 14px;
    font-size: 15px;
}

@media (max-width: 980px) {
    .topup-wrap-modern {
        padding: 24px 16px 44px;
    }

    .topup-hero,
    .topup-checkout,
    .topup-amount-grid {
        grid-template-columns: 1fr;
    }

    .topup-target-banner {
        grid-column: auto;
    }

    .topup-summary-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .topup-panel,
    .topup-summary-card,
    .topup-hero .topup-secure-note {
        border-radius: 18px;
    }

    .topup-device-grid,
    .topup-device-select-grid,
    .topup-tile-grid,
    .topup-payment-grid {
        grid-template-columns: 1fr;
    }

    .topup-device-select-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .topup-device-select-card dd {
        text-align: left;
    }

    .topup-panel,
    .topup-summary-card {
        padding: 18px;
    }

    .topup-panel-head {
        align-items: flex-start;
    }

    .topup-review-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .topup-review-list dd {
        text-align: left;
    }

    .topup-summary-card .topup-submit {
        width: 100%;
    }
}

.topup-wrap {
    display: grid;
    gap: 24px;
}

.topup-head,
.topup-result,
.topup-device-card,
.topup-form {
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.topup-head,
.topup-result {
    padding: 28px;
}

.topup-head h1,
.topup-result h1 {
    margin: 6px 0 10px;
    color: #101828;
}

.topup-head p,
.topup-result p {
    max-width: 760px;
    color: #667085;
    line-height: 1.6;
}

.topup-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: start;
}

.topup-device-card,
.topup-form-section,
.topup-summary {
    padding: 22px;
}

.topup-form {
    overflow: hidden;
}

.topup-form-section,
.topup-summary {
    border-bottom: 1px solid #e8ecf2;
}

.topup-form-section h2,
.topup-summary h2 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #101828;
}

.topup-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.topup-choice + .topup-choice {
    margin-top: 10px;
}

.topup-choice input {
    margin-top: 3px;
}

.topup-choice strong,
.topup-choice small {
    display: block;
}

.topup-choice strong {
    color: #101828;
}

.topup-choice small {
    margin-top: 3px;
    color: #667085;
    line-height: 1.45;
}

.topup-choice:has(input:checked),
.topup-choice.is-active {
    border-color: #167a3a;
    background: #f0faf4;
}

.topup-choice.is-disabled {
    cursor: not-allowed;
    opacity: 0.62;
    background: #f7f8fb;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.topup-grid label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 700;
}

.topup-grid input,
.topup-grid select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: #101828;
    background: #ffffff;
}

.topup-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.topup-payment-options .topup-choice + .topup-choice {
    margin-top: 0;
}

.topup-summary-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.topup-summary-list div {
    display: grid;
    grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #e8ecf2;
}

.topup-summary-list dt {
    color: #667085;
    font-weight: 600;
}

.topup-summary-list dd {
    margin: 0;
    color: #101828;
    font-weight: 800;
}

.topup-summary p {
    margin: 16px 0 0;
    color: #667085;
    line-height: 1.55;
}

.topup-submit {
    margin: 22px;
}

.topup-result-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    margin: 22px 0;
    align-items: start;
}

.topup-qr-box {
    display: grid;
    place-items: center;
    padding: 16px;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    background: #f7f8fb;
}

.topup-qr-box img {
    width: 100%;
    max-width: 260px;
    height: auto;
}

.topup-result.is-success {
    border-color: #b7e4c7;
}

.topup-result.is-error {
    border-color: #fecaca;
}

@media (max-width: 900px) {
    .topup-layout,
    .topup-result-grid,
    .topup-grid,
    .topup-payment-options {
        grid-template-columns: 1fr;
    }

    .topup-summary-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text);
    font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    background: var(--bg);
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #0f6530; }

/* Shared app primitives */
.app-shell { min-height: 100vh; background: var(--bg); }
.app-header, .portal-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.app-container, .portal-wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 1.35rem auto 3.25rem;
}

.admin-form-wrap { width: min(1120px, calc(100% - 2rem)); }

.app-card,
.auth-card,
.panel-card,
.metric-card,
.form-card,
.credit-card,
.dashboard-hero,
.admin-title,
.action-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-panel);
}

.app-grid { display: grid; gap: 1rem; }
.app-section { margin-bottom: 1rem; }

.admin-body,
.auth-page {
    background:
        radial-gradient(circle at 18% -10%, rgba(22, 122, 58, .055), transparent 25rem),
        var(--bg);
}

.portal-logo {
    color: var(--navy);
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: 0;
}

.portal-logo span {
    color: var(--primary);
    font-weight: 600;
}

.app-version-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .22rem .55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, .72);
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}

.portal-header nav {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.header-user {
    color: var(--text-secondary);
    font-size: .9rem;
    font-weight: 500;
}

.nav-link {
    color: var(--text-secondary);
    font-size: .9rem;
    font-weight: 500;
    padding: .5rem .7rem;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.admin-header { border-top: 0; }

h1, h2, h3, p { margin-top: 0; }

h1 {
    margin-bottom: .45rem;
    color: var(--text);
    font-size: clamp(1.85rem, 3.4vw, 2.25rem);
    line-height: 1.14;
    font-weight: 650;
    letter-spacing: -.01em;
}

.client-login-page h1,
.login-card-head h2 {
    font-family: "Roboto Slab", Roboto, system-ui, sans-serif;
}

h2 {
    margin-bottom: .35rem;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.25;
    font-weight: 600;
}

h3 {
    margin-bottom: .3rem;
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-size: .93rem;
}

.muted { color: var(--text-secondary); }

.eyebrow {
    color: var(--primary);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .055em;
    margin-bottom: .38rem;
    text-transform: uppercase;
}

/* Login */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(430px, 100%);
    padding: clamp(1.35rem, 4vw, 2rem);
    box-shadow: var(--shadow-soft);
}

.client-login-page {
    background:
        radial-gradient(circle at 85% 18%, rgba(22, 122, 58, .08), transparent 28rem),
        radial-gradient(circle at 10% 90%, rgba(22, 122, 58, .06), transparent 20rem),
        #f4f7f4;
}

.client-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2.4rem);
}

.client-login-panel {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .86fr);
    gap: clamp(1.4rem, 5vw, 3rem);
    align-items: center;
    padding: clamp(1.7rem, 5vw, 3.4rem);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 20px 50px rgba(16, 24, 40, .05);
}

.login-copy h1 {
    max-width: 620px;
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 5vw, 3.2rem);
    line-height: 1.06;
    font-weight: 700;
}

.login-copy h1 span {
    color: var(--primary);
}

.login-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 36px;
    padding: .48rem .9rem;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.login-lead {
    max-width: 640px;
    color: #52627a;
    font-size: 1.02rem;
    line-height: 1.75;
}

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    max-width: 610px;
    margin: 1.8rem 0 1.45rem;
}

.login-feature-grid div {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 56px;
    padding: .8rem .95rem;
    border: 1px solid var(--primary-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
    color: var(--text);
    font-weight: 600;
}

.login-feature-grid span,
.login-secure-note span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-size: .72rem;
    flex: 0 0 auto;
}

.login-feature-grid svg,
.login-secure-note svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-secure-note {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-height: 48px;
    padding: .75rem 1rem;
    border-radius: 14px;
    color: #075b29;
    background: var(--primary-soft);
    font-weight: 700;
}

.client-login-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.35rem, 4vw, 2rem);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .18), transparent 34%),
        linear-gradient(145deg, #1f973f, #159348);
    box-shadow: 0 22px 50px rgba(22, 122, 58, .24);
}

.login-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.7rem;
}

.login-card-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .15);
}

.login-card-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-card-head p {
    margin-bottom: .15rem;
    color: rgba(255, 255, 255, .86);
    font-size: .82rem;
    font-weight: 500;
    text-transform: uppercase;
}

.login-card-head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.55rem;
}

.client-login-form {
    display: grid;
    gap: 1rem;
}

.client-login-form label {
    color: #fff;
}

.client-login-form label span {
    color: rgba(255, 255, 255, .94);
    font-weight: 700;
}

.client-login-form input {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    background: #eaf2ff;
    font-weight: 600;
}

.client-login-form input:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}

.client-login-submit {
    min-height: 56px;
    margin-top: .25rem;
    border: 0;
    border-radius: 16px;
    color: var(--primary);
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.login-card-links {
    display: flex;
    justify-content: center;
    gap: .65rem;
    flex-wrap: wrap;
    margin-top: 1.05rem;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
}

.login-card-links a {
    color: #fff;
}

.login-card-links a:hover {
    color: #e9fff0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-border);
    border-radius: 13px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: .82rem;
    font-weight: 700;
}

/* Dashboard */
.dashboard-hero,
.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
    background:
        linear-gradient(135deg, rgba(236, 248, 240, .72), rgba(255, 255, 255, .95)),
        var(--surface);
    box-shadow: var(--shadow-soft);
}

.dashboard-hero p,
.admin-title p { margin-bottom: 0; }

.hero-meta {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-top: .85rem;
}

.hero-state {
    margin-top: .55rem;
}

.hero-state strong {
    display: block;
    margin-bottom: .18rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.hero-state p {
    margin-bottom: 0;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.dashboard-left,
.dashboard-right {
    display: grid;
    gap: 1rem;
}

.credit-card {
    padding: 1.15rem;
    background: var(--surface);
}

.credit-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.credit-top > div:first-child {
    min-width: 0;
    margin-right: auto;
}

.credit-top h2 {
    margin: .1rem 0 .15rem;
    font-size: 1.12rem;
    line-height: 1.2;
    font-weight: 700;
}

.credit-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: .86rem;
}

.credit-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: .22rem .55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: #fff;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.credit-amount {
    display: flex;
    align-items: baseline;
    gap: .42rem;
    color: var(--text);
    font-size: clamp(2.5rem, 5vw, 3rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
}

.credit-amount span {
    color: var(--text-secondary);
    font-size: .98rem;
    font-weight: 500;
}

.credit-warning {
    margin: .85rem 0;
    padding: .72rem .85rem;
    border: 1px solid #fde5b5;
    border-radius: 13px;
    color: var(--warning-text);
    background: var(--warning-soft);
    font-size: .88rem;
    font-weight: 500;
}

.credit-message {
    margin: .55rem 0 .82rem;
    padding: .64rem .76rem;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    font-size: .86rem;
    font-weight: 500;
}

.credit-message.low,
.credit-message.critical {
    color: var(--warning-text);
    background: var(--warning-soft);
    border-color: #fde5b5;
}

.credit-message.critical {
    color: var(--danger-text);
    background: var(--danger-soft);
    border-color: #ffd1d1;
}

.device-credit-list,
.device-card-list {
    display: grid;
    gap: .58rem;
}

.device-credit-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto) auto;
    gap: .75rem;
    align-items: center;
    padding: .72rem .76rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.device-credit-item:hover {
    border-color: var(--primary-border);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.035);
}

.device-credit-item strong,
.device-card-head strong {
    display: block;
    color: var(--text);
    font-size: .94rem;
    font-weight: 600;
}

.device-credit-value strong {
    font-size: 1.22rem;
    line-height: 1.15;
    font-weight: 700;
}

.device-credit-item span {
    display: block;
    color: var(--text-secondary);
    font-size: .82rem;
}

.device-credit-value {
    display: grid;
    justify-items: end;
    gap: .28rem;
}

.device-credit-item.is-travel-card-only {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    grid-template-areas:
        "main value"
        "main action";
    align-items: center;
}

.device-credit-item.is-travel-card-only .device-credit-main {
    grid-area: main;
    min-width: 0;
}

.device-credit-item.is-travel-card-only .device-credit-value {
    grid-area: value;
    justify-items: end;
    text-align: right;
}

.device-credit-item.is-travel-card-only .device-credit-value strong {
    font-size: 1rem;
    line-height: 1.2;
}

.device-credit-item.is-travel-card-only .btn {
    grid-area: action;
    justify-self: end;
    white-space: nowrap;
}

.device-card-item {
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.device-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .7rem;
}

.panel-card,
.form-card,
.metric-card,
.action-panel {
    padding: 1.1rem;
}

.dashboard-card { box-shadow: var(--shadow-panel); }

.card-title,
.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.card-subtitle,
.form-card > p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: .88rem;
}

.detail-list,
.info-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.detail-list div,
.info-list div {
    display: grid;
    grid-template-columns: minmax(116px, .85fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: .64rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-list div:first-child,
.info-list div:first-child { padding-top: 0; }

.detail-list div:last-child,
.info-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-list strong,
.info-list strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-long-value {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-inline-action {
    width: fit-content;
    max-width: 100%;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
}

.admin-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

dt {
    color: var(--text-muted);
    font-size: .84rem;
    font-weight: 400;
}

dd {
    margin: 0;
    color: var(--text);
    font-size: .92rem;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

.empty-value {
    color: var(--text-muted);
    font-weight: 400;
}

.quick-actions {
    display: grid;
    gap: .62rem;
}

.action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    min-height: 46px;
    padding: .72rem .85rem;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    background: var(--surface);
    font-size: .92rem;
    font-weight: 500;
}

.action-link:hover {
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.action-link > span {
    display: grid;
    gap: .12rem;
}

.action-link strong {
    color: inherit;
    font-size: .92rem;
    font-weight: 600;
}

.action-link small {
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 400;
}

.action-link em {
    color: var(--text-muted);
    font-style: normal;
}

.inline-action-form {
    margin: 0;
}

.inline-action-form .action-link {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.action-link.primary {
    color: var(--primary);
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.action-link.primary small,
.action-link.primary em {
    color: var(--text-muted);
}

.support-feedback {
    padding: .78rem .9rem;
    border-radius: 13px;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.45;
}

.support-feedback.success {
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
}

.support-feedback.error {
    color: var(--danger-text);
    background: var(--danger-soft);
    border: 1px solid #ffd1d1;
}

.support-request-panel {
    display: none;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(247, 248, 251, .92), rgba(255, 255, 255, .98)),
        #fff;
}

.support-request-panel.is-open,
.support-request-panel:target {
    display: grid;
    gap: .9rem;
}

.support-panel-head h3 {
    margin: 0 0 .28rem;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 700;
}

.support-panel-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .86rem;
    line-height: 1.5;
}

.support-request-form {
    display: grid;
    gap: .78rem;
}

.support-request-form textarea {
    min-height: 132px;
}

.request-note {
    padding: .78rem .9rem;
    border: 1px solid var(--primary-border);
    border-radius: 13px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: .86rem;
    line-height: 1.5;
}

.support-request-form .btn {
    justify-self: start;
}

.btn-attention {
    box-shadow: 0 10px 26px rgba(245, 158, 11, .18);
}

.support-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-card);
    background:
        linear-gradient(135deg, rgba(236, 248, 240, .85), rgba(255, 255, 255, .96)),
        var(--surface);
    box-shadow: var(--shadow-panel);
}

.activity-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .64rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-list li:first-child {
    padding-top: 0;
}

.activity-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-list span {
    color: var(--text-secondary);
    font-size: .88rem;
}

.activity-list strong {
    color: var(--text);
    font-size: .9rem;
    font-weight: 500;
}

.support-card h2 {
    font-size: 1.08rem;
}

.support-card p:last-child {
    margin-bottom: 0;
}

.support-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.support-phone,
.support-actions span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .48rem .75rem;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 600;
}

.support-phone {
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--primary-border);
}

.support-actions span {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, .65);
    border: 1px solid var(--border);
}

.client-alert,
.note-card {
    position: relative;
    margin-top: 1.15rem;
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.25rem 1.1rem 1.55rem;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .045);
    overflow: hidden;
}

.client-alert + .client-alert {
    margin-top: -.55rem;
}

.client-alert + .dashboard-layout,
.note-card + .dashboard-layout {
    margin-top: .25rem;
}

.client-alert::before,
.note-card::before {
    content: "";
    position: absolute;
    inset: 1rem auto 1rem 1rem;
    width: 3px;
    border-radius: 999px;
    background: currentColor;
    opacity: .75;
}

.client-alert {
    color: var(--warning-text);
    border: 1px solid rgba(245, 158, 11, .24);
    background:
        linear-gradient(135deg, rgba(255, 247, 230, .92), rgba(255, 255, 255, .98) 72%),
        #fff;
}

.client-alert-global {
    border-color: rgba(245, 158, 11, .28);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .09), transparent 34%),
        linear-gradient(135deg, #fff8ed, #fff 76%);
}

.note-card {
    color: var(--primary);
    border: 1px solid var(--primary-border);
    background:
        linear-gradient(135deg, rgba(236, 248, 240, .95), rgba(255, 255, 255, .98) 72%),
        #fff;
}

.client-alert strong,
.note-card strong {
    display: block;
    margin-bottom: .38rem;
    color: var(--text);
    font-size: .98rem;
    font-weight: 600;
}

.client-alert p,
.note-card p {
    max-width: 68rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: .94rem;
    line-height: 1.55;
}

/* Admin overview */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    margin-bottom: 1rem;
}

.metric-card {
    box-shadow: var(--shadow-panel);
}

.metric-card span {
    display: block;
    color: var(--text-secondary);
    font-size: .86rem;
    margin-bottom: .3rem;
}

.metric-card strong {
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -.01em;
}

/* Badges */
.app-badge,
.status-badge,
.status-pill,
.mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: .24rem .56rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    background: #f2f4f7;
    color: var(--text-secondary);
}

.mini-badge {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, .72);
    border-color: var(--border);
}

.status-badge.ok,
.status-badge.active,
.status-pill.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary-border);
}

.status-badge.low {
    color: var(--warning-text);
    background: var(--warning-soft);
    border-color: #fde5b5;
}

.status-badge.critical,
.status-badge.expired,
.status-pill.inactive {
    color: var(--danger-text);
    background: var(--danger-soft);
    border-color: #ffd1d1;
}

.status-badge.pending {
    color: var(--info-text);
    background: var(--info-soft);
    border-color: #d9e5ff;
}

.status-pill.pending {
    color: var(--info-text);
    background: var(--info-soft);
    border-color: #d9e5ff;
}

.status-badge.paused {
    color: var(--text-secondary);
    background: #f2f4f7;
    border-color: var(--border);
}

/* Buttons */
.app-button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .62rem .95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.btn-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(22, 122, 58, .14);
}

.btn-primary:hover {
    color: #fff;
    background: #126c33;
    box-shadow: 0 10px 22px rgba(22, 122, 58, .18);
}

.btn-secondary,
.btn-light {
    color: var(--text);
    background: #fff;
    border-color: var(--border);
}

.btn-secondary:hover,
.btn-light:hover {
    color: var(--primary);
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.btn-danger {
    color: #fff;
    background: var(--danger-text);
}

.btn-danger:hover {
    color: #fff;
    background: #8f1f16;
}

.btn-small {
    min-height: 34px;
    padding: .45rem .72rem;
    font-size: .82rem;
}

/* Forms */
.form-stack,
.admin-form {
    display: grid;
    gap: .9rem;
}

label {
    display: grid;
    gap: .38rem;
    color: var(--text);
    font-size: .88rem;
    font-weight: 500;
}

label span {
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 400;
}

label small {
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.35;
    font-weight: 400;
}

.app-input,
input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    padding: .72rem .82rem;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-size: .93rem;
    font-weight: 400;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--primary-border);
    box-shadow: 0 0 0 4px rgba(22, 122, 58, .10);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.form-wide { grid-column: 1 / -1; }

.form-actions,
.search-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    box-shadow: var(--shadow-panel);
}

.action-panel strong {
    font-weight: 600;
}

.action-panel p {
    margin-bottom: 0;
    font-size: .88rem;
}

.save-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
}

.search-row {
    justify-content: space-between;
    margin-bottom: .9rem;
    padding: .65rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
}

.search-row input {
    max-width: 500px;
    background: #fff;
}

.alert {
    padding: .82rem .95rem;
    border-radius: 14px;
    margin-bottom: .9rem;
    font-size: .9rem;
    font-weight: 500;
}

.alert-error,
.alert-danger {
    color: var(--danger-text);
    background: var(--danger-soft);
    border: 1px solid #ffd1d1;
}

.alert-success {
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
}

.alert-warning {
    color: var(--warning-text);
    background: var(--warning-soft);
    border: 1px solid #fde5b5;
}

/* Tables */
.app-table,
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: .78rem .85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
    font-size: .9rem;
}

th {
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .045em;
    background: #fafbfc;
}

td strong {
    color: var(--text);
    font-weight: 600;
}

td small,
td span {
    display: block;
    color: var(--text-secondary);
    font-size: .82rem;
}

tr:last-child td { border-bottom: 0; }

.danger-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ffd1d1;
    border-radius: 18px;
    background: var(--danger-soft);
}

.danger-box strong {
    color: var(--danger-text);
    font-weight: 600;
}

.danger-box p {
    margin-bottom: 0;
    color: #7a271a;
    font-size: .88rem;
}

.device-form-inner {
    padding-top: .25rem;
}

.device-actions {
    margin-top: .95rem;
}

.device-deactivate-form {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

.table-actions {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}

.topups-table-wrap {
    overflow-x: visible;
}

.topups-table {
    width: 100%;
    table-layout: fixed;
}

.topups-table th,
.topups-table td {
    vertical-align: middle;
}

.topups-table th:nth-child(1),
.topups-table td:nth-child(1) { width: 24%; }
.topups-table th:nth-child(2),
.topups-table td:nth-child(2) { width: 17%; }
.topups-table th:nth-child(3),
.topups-table td:nth-child(3) { width: 14%; }
.topups-table th:nth-child(4),
.topups-table td:nth-child(4) { width: 13%; }
.topups-table th:nth-child(5),
.topups-table td:nth-child(5) { width: 20%; }
.topups-table th:nth-child(6),
.topups-table td:nth-child(6) { width: 12%; }

.topups-table strong,
.topups-table small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.topups-table small {
    margin-top: .18rem;
    color: var(--text-secondary);
    font-size: .78rem;
    line-height: 1.35;
    font-weight: 500;
}

.topups-table .status-pill {
    margin-bottom: .25rem;
}

.topups-actions {
    justify-content: flex-start;
}

.topups-actions .btn {
    width: 100%;
    min-height: 34px;
    padding-inline: .55rem;
    white-space: normal;
}

@media (max-width: 820px) {
    .topups-table-wrap {
        overflow-x: visible;
    }

    .topups-table,
    .topups-table thead,
    .topups-table tbody,
    .topups-table tr,
    .topups-table th,
    .topups-table td {
        display: block;
        width: 100% !important;
    }

    .topups-table thead {
        display: none;
    }

    .topups-table tr {
        padding: .9rem 0;
        border-bottom: 1px solid var(--border);
    }

    .topups-table td {
        padding: .36rem 0;
        border-bottom: 0;
    }

    .topups-actions .btn {
        width: auto;
    }
}

@media (max-width: 980px) {
    .client-login-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-layout,
    .metric-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .admin-title,
    .panel-head,
    .card-title,
    .action-panel,
    .danger-box {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    body { font-size: 14px; }

    .client-login-shell {
        padding: .75rem;
    }

    .client-login-panel {
        padding: 1rem;
        border-radius: 20px;
    }

    .login-copy h1 {
        font-size: 2rem;
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
        margin: 1.2rem 0;
    }

    .client-login-card {
        border-radius: 20px;
    }

    .portal-header {
        position: static;
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: .85rem 1rem;
    }

    .portal-header nav,
    .portal-header .btn,
    .save-actions,
    .save-actions .btn,
    .quick-actions .action-link,
    .support-request-form .btn,
    .form-actions .btn {
        width: 100%;
    }

    .portal-wrap,
    .admin-form-wrap {
        width: min(100% - 1rem, 1120px);
        margin-top: .75rem;
    }

    .auth-card,
    .panel-card,
    .form-card,
    .credit-card,
    .dashboard-hero,
    .admin-title,
    .action-panel {
        border-radius: 16px;
    }

    .dashboard-hero,
    .admin-title,
    .credit-card,
    .panel-card,
    .form-card,
    .action-panel {
        padding: 1rem;
    }

    .client-alert,
    .note-card {
        padding: 1rem 1rem 1rem 1.35rem;
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .client-alert::before,
    .note-card::before {
        inset: .9rem auto .9rem .8rem;
    }

    h1 { font-size: 1.7rem; }
    .credit-amount { font-size: 2.35rem; }

    .detail-list div,
    .info-list div,
    .device-credit-item {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    dd { text-align: left; }
    .device-credit-value { justify-items: start; }
    .device-credit-item .btn { width: 100%; }
    .credit-top {
        align-items: flex-start;
    }
    .search-row input { max-width: none; }
}

/* Final topup checkout UI layer */
body:has(.topup-wrap-modern) {
    background: #f5f7fa;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topup-wrap-modern.portal-wrap {
    width: min(100% - 32px, 1120px);
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 0 64px;
    display: grid;
    gap: 22px;
}

.topup-wrap-modern .topup-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 22px;
    align-items: center;
    padding: 26px;
    border: 1px solid #dcefe3;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f2fbf5 100%);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

.topup-wrap-modern .topup-hero h1 {
    margin: 6px 0 8px;
    color: #101828;
    font-size: 32px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: 0;
}

.topup-wrap-modern .topup-hero p {
    max-width: 680px;
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

.topup-wrap-modern .eyebrow {
    margin: 0;
    color: #167a3a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.topup-wrap-modern .topup-secure-note {
    padding: 15px 17px;
    border: 1px solid #cfead8;
    border-radius: 16px;
    background: rgba(236, 248, 240, .82);
    color: #167a3a;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.topup-wrap-modern .topup-device-select-panel,
.topup-wrap-modern .topup-panel,
.topup-wrap-modern .topup-summary-card,
.topup-wrap-modern .topup-result {
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

.topup-wrap-modern .topup-panel,
.topup-wrap-modern .topup-summary-card,
.topup-wrap-modern .topup-device-select-panel,
.topup-wrap-modern .topup-result {
    padding: 24px;
}

.topup-wrap-modern .topup-device-select-panel {
    width: 100%;
    max-width: none;
    margin: 0;
}

.topup-wrap-modern .topup-device-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.topup-wrap-modern .topup-device-select-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    background: #ffffff;
    color: #101828;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.topup-wrap-modern .topup-device-select-card:hover,
.topup-wrap-modern .topup-device-select-card:focus-visible {
    border-color: #218f3f;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.topup-wrap-modern .topup-device-select-title {
    color: #101828;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.topup-wrap-modern .topup-device-select-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.topup-wrap-modern .topup-device-select-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.topup-wrap-modern .topup-device-select-card dl div {
    display: grid;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e8ecf2;
}

.topup-wrap-modern .topup-device-select-card dl div:last-child {
    border-bottom: 0;
}

.topup-wrap-modern .topup-device-select-card dt,
.topup-wrap-modern .topup-review-list dt,
.topup-wrap-modern .topup-device-grid span {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.topup-wrap-modern .topup-device-select-card dd {
    margin: 0;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.topup-wrap-modern .topup-device-select-card > strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #167a3a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.topup-wrap-modern .topup-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    gap: 24px;
    align-items: start;
}

.topup-wrap-modern .topup-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.topup-wrap-modern .topup-target-banner {
    grid-column: 1 / -1;
    padding: 16px 20px;
    border: 1px solid #cfead8;
    border-radius: 18px;
    background: #ecf8f0;
    color: #167a3a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.topup-wrap-modern .topup-panel-head,
.topup-wrap-modern .topup-summary-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.topup-wrap-modern .topup-panel-head h2,
.topup-wrap-modern .topup-summary-card h2 {
    margin: 4px 0 0;
    color: #101828;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.topup-wrap-modern .topup-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.topup-wrap-modern .topup-device-grid div {
    display: grid;
    grid-template-columns: minmax(118px, .48fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #e8ecf2;
    border-radius: 0;
    background: transparent;
}

.topup-wrap-modern .topup-device-grid strong {
    display: block;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.topup-wrap-modern .topup-tile-grid,
.topup-wrap-modern .topup-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.topup-wrap-modern .topup-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
}

.topup-wrap-modern .topup-tile {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    min-height: 94px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background: #ffffff;
    color: #101828;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.topup-wrap-modern .topup-tile:hover {
    border-color: #b8c8d8;
    transform: translateY(-1px);
}

.topup-wrap-modern .topup-tile.is-selected {
    border-color: #218f3f;
    background: #f0faf4;
    box-shadow: 0 10px 22px rgba(33, 143, 63, 0.08);
}

.topup-wrap-modern .topup-tile.is-disabled {
    cursor: not-allowed;
    opacity: .6;
    background: #f7f8fb;
    transform: none;
}

.topup-wrap-modern .topup-tile-mark {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #c6d0dc;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 4px #ffffff;
}

.topup-wrap-modern .topup-tile.is-selected .topup-tile-mark {
    border-color: #218f3f;
    background: #218f3f;
}

.topup-wrap-modern .topup-tile strong {
    display: block;
    color: #101828;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.topup-wrap-modern .topup-tile small {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.topup-wrap-modern .topup-amount-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .78fr);
    gap: 16px;
}

.topup-wrap-modern .topup-field {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.topup-wrap-modern .topup-field input[type="number"] {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    font-weight: 600;
    outline: none;
}

.topup-wrap-modern .topup-field input[type="number"]:focus {
    border-color: #218f3f;
    box-shadow: 0 0 0 4px rgba(33, 143, 63, .12);
}

.topup-wrap-modern .topup-field small {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.topup-wrap-modern .topup-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 50px;
    padding: 4px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #f7f8fb;
}

.topup-wrap-modern .topup-segmented label {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #667085;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.topup-wrap-modern .topup-segmented label.is-selected {
    background: #ffffff;
    color: #167a3a;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

.topup-wrap-modern .topup-rate-note {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #cfead8;
    border-radius: 16px;
    background: #ecf8f0;
    color: #167a3a;
    font-size: 14px;
    line-height: 1.45;
}

.topup-wrap-modern .topup-rate-note span {
    color: #50745e;
}

.topup-wrap-modern .topup-rate-note.is-eur {
    border-color: #dbe4f0;
    background: #f7f8fb;
    color: #344054;
}

.topup-wrap-modern .topup-rate-note.is-eur span {
    color: #667085;
}

.topup-wrap-modern .topup-summary-card {
    position: sticky;
    top: 22px;
}

.topup-wrap-modern .topup-review-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.topup-wrap-modern .topup-review-list div {
    display: grid;
    grid-template-columns: minmax(112px, .56fr) minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf2;
}

.topup-wrap-modern .topup-review-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.topup-wrap-modern .topup-processing-note {
    margin: 18px 0;
    padding: 14px;
    border-radius: 16px;
    background: #f7f8fb;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.topup-wrap-modern .topup-summary-card .topup-submit {
    width: 100%;
    min-height: 50px;
    margin: 0;
    border-radius: 999px;
    background: #167a3a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(22, 122, 58, .18);
}

.topup-wrap-modern .topup-summary-card .topup-submit:hover,
.topup-wrap-modern .topup-summary-card .topup-submit:focus-visible {
    background: #218f3f;
    outline: none;
    box-shadow: 0 0 0 4px rgba(33, 143, 63, .13), 0 12px 24px rgba(22, 122, 58, .18);
}

@media (max-width: 980px) {
    .topup-wrap-modern.portal-wrap {
        width: min(100% - 24px, 1120px);
        padding: 24px 0 48px;
    }

    .topup-wrap-modern .topup-hero,
    .topup-wrap-modern .topup-checkout,
    .topup-wrap-modern .topup-amount-grid {
        grid-template-columns: 1fr;
    }

    .topup-wrap-modern .topup-target-banner {
        grid-column: auto;
    }

    .topup-wrap-modern .topup-summary-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .topup-wrap-modern.portal-wrap {
        width: min(100% - 16px, 1120px);
        padding-top: 16px;
    }

    .topup-wrap-modern .topup-hero,
    .topup-wrap-modern .topup-panel,
    .topup-wrap-modern .topup-summary-card,
    .topup-wrap-modern .topup-device-select-panel,
    .topup-wrap-modern .topup-result {
        padding: 18px;
        border-radius: 18px;
    }

    .topup-wrap-modern .topup-hero h1 {
        font-size: 28px;
    }

    .topup-wrap-modern .topup-device-select-grid,
    .topup-wrap-modern .topup-tile-grid,
    .topup-wrap-modern .topup-payment-grid,
    .topup-wrap-modern .topup-device-grid {
        grid-template-columns: 1fr;
    }

    .topup-wrap-modern .topup-device-select-card dl div,
    .topup-wrap-modern .topup-device-grid div,
    .topup-wrap-modern .topup-review-list div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .topup-wrap-modern .topup-device-select-card dd,
    .topup-wrap-modern .topup-device-grid strong,
    .topup-wrap-modern .topup-review-list dd {
        text-align: left;
    }

    .topup-wrap-modern .topup-summary-card .topup-submit {
        width: 100%;
    }
}

/* Topup UI v3: explicit browser-applied overrides for topup.php */
body.topup-page {
    background: #f5f7fa;
    color: #101828;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.topup-page .topup-wrap-modern.portal-wrap {
    display: grid;
    width: calc(100% - 32px);
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 0 64px;
    gap: 22px;
}

body.topup-page .topup-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    align-items: center;
    gap: 22px;
    padding: 26px;
    border: 1px solid #dcefe3;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f2fbf5 100%);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

body.topup-page .topup-hero h1 {
    margin: 6px 0 8px;
    color: #101828;
    font-size: 32px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: 0;
}

body.topup-page .topup-hero p {
    max-width: 680px;
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

body.topup-page .eyebrow {
    margin: 0;
    color: #167a3a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.topup-page .topup-secure-note {
    padding: 15px 17px;
    border: 1px solid #cfead8;
    border-radius: 16px;
    background: rgba(236, 248, 240, .86);
    color: #167a3a;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

body.topup-page .topup-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    align-items: start;
    gap: 24px;
}

body.topup-page .topup-main {
    display: grid;
    min-width: 0;
    gap: 18px;
}

body.topup-page .topup-target-banner {
    grid-column: 1 / -1;
    padding: 16px 20px;
    border: 1px solid #cfead8;
    border-radius: 18px;
    background: #ecf8f0;
    color: #167a3a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

body.topup-page .topup-panel,
body.topup-page .topup-summary-card,
body.topup-page .topup-device-select-panel,
body.topup-page .topup-result {
    padding: 24px;
    border: 1px solid #e8ecf2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

body.topup-page .topup-panel-head,
body.topup-page .topup-summary-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body.topup-page .topup-panel-head h2,
body.topup-page .topup-summary-card h2 {
    margin: 4px 0 0;
    color: #101828;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

body.topup-page .topup-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

body.topup-page .topup-device-grid div {
    display: grid;
    grid-template-columns: minmax(118px, .48fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #e8ecf2;
    border-radius: 0;
    background: transparent;
}

body.topup-page .topup-device-grid span,
body.topup-page .topup-review-list dt,
body.topup-page .topup-device-select-card dt {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

body.topup-page .topup-device-grid strong {
    display: block;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

body.topup-page .topup-tile-grid,
body.topup-page .topup-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.topup-page .topup-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
}

body.topup-page .topup-tile {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    min-height: 94px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background: #ffffff;
    color: #101828;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.topup-page .topup-tile:hover,
body.topup-page .topup-tile:focus-within {
    border-color: #218f3f;
    transform: translateY(-1px);
}

body.topup-page .topup-tile.is-selected {
    border-color: #218f3f;
    background: #f0faf4;
    box-shadow: 0 10px 22px rgba(33, 143, 63, 0.08);
}

body.topup-page .topup-tile.is-disabled {
    cursor: not-allowed;
    opacity: .6;
    background: #f7f8fb;
    transform: none;
}

body.topup-page .topup-tile-mark {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #c6d0dc;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 4px #ffffff;
}

body.topup-page .topup-tile.is-selected .topup-tile-mark {
    border-color: #218f3f;
    background: #218f3f;
}

body.topup-page .topup-tile strong {
    display: block;
    color: #101828;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

body.topup-page .topup-tile small {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

body.topup-page .topup-amount-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .78fr);
    gap: 16px;
}

body.topup-page .topup-field {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

body.topup-page .topup-field input[type="number"] {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    font-weight: 600;
    outline: none;
}

body.topup-page .topup-field input[type="number"]:focus {
    border-color: #218f3f;
    box-shadow: 0 0 0 4px rgba(33, 143, 63, .12);
}

body.topup-page .topup-field small {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

body.topup-page .topup-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 50px;
    padding: 4px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #f7f8fb;
}

body.topup-page .topup-segmented label {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #667085;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

body.topup-page .topup-segmented label.is-selected {
    background: #ffffff;
    color: #167a3a;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

body.topup-page .topup-rate-note {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #cfead8;
    border-radius: 16px;
    background: #ecf8f0;
    color: #167a3a;
    font-size: 14px;
    line-height: 1.45;
}

body.topup-page .topup-rate-note span {
    color: #50745e;
}

body.topup-page .topup-rate-note.is-eur {
    border-color: #dbe4f0;
    background: #f7f8fb;
    color: #344054;
}

body.topup-page .topup-summary-card {
    position: sticky;
    top: 22px;
}

body.topup-page .topup-review-list {
    display: grid;
    margin: 0;
    gap: 0;
}

body.topup-page .topup-review-list div {
    display: grid;
    grid-template-columns: minmax(112px, .56fr) minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf2;
}

body.topup-page .topup-review-list dd {
    margin: 0;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

body.topup-page .topup-processing-note {
    margin: 18px 0;
    padding: 14px;
    border-radius: 16px;
    background: #f7f8fb;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

body.topup-page .topup-summary-card .topup-submit {
    width: 100%;
    min-height: 50px;
    margin: 0;
    border-radius: 999px;
    background: #167a3a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(22, 122, 58, .18);
}

body.topup-page .topup-device-select-panel {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.topup-page .topup-device-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.topup-page .topup-device-select-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    background: #ffffff;
    color: #101828;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.topup-page .topup-device-select-card:hover,
body.topup-page .topup-device-select-card:focus-visible {
    border-color: #218f3f;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
    outline: none;
}

body.topup-page .topup-device-select-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.topup-page .topup-device-select-title {
    color: #101828;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

body.topup-page .topup-device-select-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

body.topup-page .topup-device-select-card dl div {
    display: grid;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e8ecf2;
}

body.topup-page .topup-device-select-card dl div:last-child {
    border-bottom: 0;
}

body.topup-page .topup-device-select-card dd {
    margin: 0;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

body.topup-page .topup-device-select-card > strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #167a3a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 980px) {
    body.topup-page .topup-wrap-modern.portal-wrap {
        width: calc(100% - 24px);
        padding: 24px 0 48px;
    }

    body.topup-page .topup-hero,
    body.topup-page .topup-checkout,
    body.topup-page .topup-amount-grid {
        grid-template-columns: 1fr;
    }

    body.topup-page .topup-target-banner {
        grid-column: auto;
    }

    body.topup-page .topup-summary-card {
        position: static;
    }
}

@media (max-width: 720px) {
    body.topup-page .topup-wrap-modern.portal-wrap {
        width: calc(100% - 16px);
        padding-top: 16px;
    }

    body.topup-page .topup-hero,
    body.topup-page .topup-panel,
    body.topup-page .topup-summary-card,
    body.topup-page .topup-device-select-panel,
    body.topup-page .topup-result {
        padding: 18px;
        border-radius: 18px;
    }

    body.topup-page .topup-hero h1 {
        font-size: 28px;
    }

    body.topup-page .topup-device-select-grid,
    body.topup-page .topup-tile-grid,
    body.topup-page .topup-payment-grid,
    body.topup-page .topup-device-grid {
        grid-template-columns: 1fr;
    }

    body.topup-page .topup-device-select-card dl div,
    body.topup-page .topup-device-grid div,
    body.topup-page .topup-review-list div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body.topup-page .topup-device-select-card dd,
    body.topup-page .topup-device-grid strong,
    body.topup-page .topup-review-list dd {
        text-align: left;
    }
}
/* === Portal footer === */

.portal-footer {
  margin-top: 48px;
  padding: 28px 20px 32px;
  border-top: 1px solid #e8ecf2;
  background: rgba(255, 255, 255, 0.55);
  color: #667085;
}

.portal-footer-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 20px;
  align-items: center;
}

.portal-footer-brand {
  display: grid;
  gap: 6px;
}

.portal-footer-brand strong {
  color: #101828;
  font-size: 14px;
  font-weight: 700;
}

.portal-footer-brand span {
  font-size: 13px;
  line-height: 1.5;
}

.portal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
}

.portal-footer-links a {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portal-footer-links a:hover {
  color: #218f3f;
}

.portal-footer-copy {
  font-size: 12px;
  color: #98a2b3;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .portal-footer {
    margin-top: 36px;
    padding: 24px 16px 28px;
  }

  .portal-footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  .portal-footer-links {
    justify-content: flex-start;
  }

  .portal-footer-copy {
    text-align: left;
    white-space: normal;
  }
}
/* === Privacy page === */

.privacy-wrap {
  width: min(100%, 920px);
}

.privacy-hero {
  margin-top: 28px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid #e8ecf2;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(33, 143, 63, 0.08), transparent 34%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

.privacy-hero h1 {
  margin: 0 0 10px;
  color: #101828;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.privacy-hero p {
  max-width: 720px;
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.privacy-hero .privacy-updated {
  margin-top: 14px;
  color: #218f3f;
  font-size: 13px;
  font-weight: 700;
}

.privacy-card {
  margin-top: 14px;
  padding: 24px 28px;
  border: 1px solid #e8ecf2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.035);
}

.privacy-card h2 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.privacy-card p {
  margin: 0 0 14px;
  color: #344054;
  font-size: 14px;
  line-height: 1.75;
}

.privacy-card p:last-child {
  margin-bottom: 0;
}

.privacy-card ul {
  margin: 12px 0 16px;
  padding-left: 20px;
  color: #344054;
}

.privacy-card li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.65;
}

.privacy-card a {
  color: #167a3a;
  font-weight: 700;
  text-decoration: none;
}

.privacy-card a:hover {
  text-decoration: underline;
}

.privacy-table {
  margin: 16px 0;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  overflow: hidden;
}

.privacy-table div {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8ecf2;
}

.privacy-table div:last-child {
  border-bottom: 0;
}

.privacy-table span {
  color: #667085;
  font-size: 13px;
}

.privacy-table strong {
  color: #101828;
  font-size: 14px;
}

.privacy-note {
  padding: 12px 14px;
  border: 1px solid #f2d7a0;
  border-radius: 14px;
  background: #fff8eb;
  color: #7a4a00 !important;
  font-size: 13px !important;
}

.privacy-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d6eadc;
  border-radius: 999px;
  background: #eef8f1;
  color: #167a3a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 680px) {
  .privacy-hero,
  .privacy-card {
    padding: 20px;
    border-radius: 18px;
  }

  .privacy-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
/* ===service note === */

.client-service-note {
  width: min(100%, 1120px);
  margin: 16px auto 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.client-service-note-inner {
  position: relative;
  padding: 15px 18px 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.035);
  overflow: hidden;
}

.client-service-note-inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #218f3f, rgba(33, 143, 63, 0.18));
  opacity: 0.9;
}

.client-service-note-label {
  display: block;
  margin: 0 0 5px 0;
  padding-left: 12px;
  color: #167a3a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-service-note p {
  max-width: 820px;
  margin: 0;
  padding-left: 12px;
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .client-service-note {
    margin: 14px 0 18px;
  }

  .client-service-note-inner {
    padding: 14px 15px;
    border-radius: 16px;
  }

  .client-service-note-label,
  .client-service-note p {
    padding-left: 10px;
  }
}
/* === Trust / security card === */

.trust-card {
  padding: 22px;
  border: 1px solid #e8ecf2;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.96)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

.trust-card-head h2 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.trust-card-head p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.trust-points {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.trust-point {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid #edf1f5;
  border-radius: 16px;
  background: #ffffff;
}

.trust-point-mark {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: #eef8f1;
  position: relative;
}

.trust-point-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 6px;
  height: 10px;
  border: solid #218f3f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.trust-point strong {
  display: block;
  margin-bottom: 3px;
  color: #101828;
  font-size: 14px;
  font-weight: 700;
}

.trust-point p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .trust-card {
    padding: 18px;
    border-radius: 18px;
  }

  .trust-card-head h2 {
    font-size: 18px;
  }

  .trust-point {
    padding: 12px;
    border-radius: 14px;
  }
}
/* === Topup success / card payment result === */

.topup-success-wrap {
  width: min(100%, 920px);
  margin: 0 auto;
  padding-top: 34px;
  padding-bottom: 56px;
}

.topup-success-card {
  position: relative;
  padding: 28px;
  border: 1px solid #e8ecf2;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(33, 143, 63, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
  overflow: hidden;
}

.topup-success-card.is-success {
  border-color: rgba(33, 143, 63, 0.22);
}

.topup-success-card.is-error {
  border-color: rgba(220, 53, 69, 0.22);
}

.topup-success-status {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

.topup-success-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #eef8f1;
  color: #218f3f;
  font-size: 26px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(33, 143, 63, 0.12);
}

.topup-success-card.is-error .topup-success-icon {
  background: #fff1f3;
  color: #c02f3d;
  box-shadow: inset 0 0 0 1px rgba(192, 47, 61, 0.12);
}

.topup-success-kicker {
  margin: 0 0 6px;
  color: #218f3f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topup-success-card.is-error .topup-success-kicker {
  color: #c02f3d;
}

.topup-success-card h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.topup-success-lead {
  max-width: 680px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.topup-success-note {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #d6eadc;
  border-radius: 16px;
  background: #f4fbf6;
  color: #2f6f42;
  font-size: 14px;
  line-height: 1.6;
}

.topup-success-note.is-warning {
  border-color: #f2d7a0;
  background: #fff8eb;
  color: #7a4a00;
}

.topup-success-summary {
  margin-top: 24px;
  border: 1px solid #e8ecf2;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
}

.topup-success-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f5;
  background: #fbfcfd;
}

.topup-success-summary-head span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.topup-success-summary-head strong {
  color: #101828;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.topup-success-pill {
  display: inline-flex !important;
  align-items: center;
  min-height: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eef8f1;
  color: #167a3a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.topup-success-list {
  margin: 0;
}

.topup-success-list div {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid #edf1f5;
}

.topup-success-list div:last-child {
  border-bottom: 0;
}

.topup-success-list dt {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.topup-success-list dd {
  margin: 0;
  color: #101828;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.topup-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.topup-success-actions .btn {
  min-height: 46px;
  padding-inline: 20px;
}

@media (max-width: 700px) {
  .topup-success-wrap {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .topup-success-card {
    padding: 20px;
    border-radius: 22px;
  }

  .topup-success-status {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topup-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 24px;
  }

  .topup-success-lead {
    font-size: 14px;
  }

  .topup-success-summary-head {
    padding: 16px;
    flex-direction: column;
    gap: 10px;
  }

  .topup-success-list div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 16px;
  }

  .topup-success-list dd {
    text-align: left;
    font-size: 14px;
  }

  .topup-success-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topup-success-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* === QR payment result page === */

.topup-qr-wrap {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding-top: 34px;
  padding-bottom: 56px;
}

.topup-qr-card {
  padding: 28px;
  border: 1px solid #e8ecf2;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(33, 143, 63, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
  overflow: hidden;
}

.topup-qr-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

.topup-qr-status-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 19px;
  background: #eef8f1;
  color: #218f3f;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px rgba(33, 143, 63, 0.12);
}

.topup-qr-kicker {
  margin: 0 0 6px;
  color: #218f3f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topup-qr-card h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.topup-qr-lead {
  max-width: 720px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.topup-qr-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}

.topup-qr-visual,
.topup-qr-summary {
  border: 1px solid #e8ecf2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.035);
}

.topup-qr-visual {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.topup-qr-box-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  padding: 18px;
  border: 1px solid #edf1f5;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #ffffff, #f8fafc);
}

.topup-qr-box-modern img {
  display: block;
  width: min(100%, 250px);
  height: auto;
  border-radius: 14px;
}

.topup-qr-hint {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.topup-qr-summary {
  overflow: hidden;
}

.topup-qr-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f5;
  background: #fbfcfd;
}

.topup-qr-summary-head span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.topup-qr-summary-head strong {
  color: #101828;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.topup-qr-pill {
  display: inline-flex !important;
  align-items: center;
  min-height: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff8eb;
  color: #8a5700 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.topup-qr-list {
  margin: 0;
}

.topup-qr-list div {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid #edf1f5;
}

.topup-qr-list div:last-child {
  border-bottom: 0;
}

.topup-qr-list dt {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.topup-qr-list dd {
  margin: 0;
  color: #101828;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.topup-qr-long-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.topup-qr-note {
  margin: 18px 20px 20px;
  padding: 13px 15px;
  border: 1px solid #d6eadc;
  border-radius: 16px;
  background: #f4fbf6;
  color: #2f6f42;
  font-size: 13px;
  line-height: 1.6;
}

.topup-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.topup-qr-actions .btn {
  min-height: 46px;
  padding-inline: 20px;
}

@media (max-width: 820px) {
  .topup-qr-wrap {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .topup-qr-card {
    padding: 20px;
    border-radius: 22px;
  }

  .topup-qr-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topup-qr-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 14px;
  }

  .topup-qr-lead {
    font-size: 14px;
  }

  .topup-qr-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
  }

  .topup-qr-visual {
    padding: 16px;
  }

  .topup-qr-box-modern {
    min-height: auto;
    padding: 16px;
  }

  .topup-qr-box-modern img {
    width: min(100%, 235px);
  }

  .topup-qr-summary-head {
    padding: 16px;
    flex-direction: column;
    gap: 10px;
  }

  .topup-qr-list div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 16px;
  }

  .topup-qr-list dd {
    text-align: left;
    font-size: 14px;
  }

  .topup-qr-note {
    margin: 16px;
  }

  .topup-qr-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topup-qr-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================================================
   Moje ENC dashboard – jemný premium facelift
   pouze vizuální vrstva, bez změny logiky
========================================================= */

:root {
  --enc-green: #218f3f;
  --enc-green-dark: #176d30;
  --enc-ink: #0f172a;
  --enc-muted: #667085;
  --enc-line: #e7ebf0;
  --enc-soft: #f5f7fa;
  --enc-card: rgba(255, 255, 255, 0.92);
}

/* Celkové pozadí portálu */
body {
  background:
    radial-gradient(circle at 18% 8%, rgba(33, 143, 63, 0.055), transparent 26%),
    radial-gradient(circle at 80% 14%, rgba(15, 23, 42, 0.035), transparent 24%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
  color: var(--enc-ink);
}

/* Horní lišta – více jako moderní SaaS/banka */
.portal-header {
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.portal-logo {
  font-weight: 850;
  letter-spacing: -0.02em;
}

.portal-logo span {
  color: var(--enc-green);
}

.header-user {
  color: #475467;
  font-weight: 700;
}

/* Hlavní šířka a rytmus */
.portal-wrap {
  max-width: 1120px;
  padding-top: 28px;
  padding-bottom: 44px;
}

/* Hero karta */
.dashboard-hero {
  position: relative;
  padding: 28px 30px;
  border: 1px solid rgba(216, 231, 223, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 10%, rgba(33, 143, 63, 0.09), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 246, 0.94));
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(33, 143, 63, 0.055);
  pointer-events: none;
}

.dashboard-hero h1 {
  margin-top: 2px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero-state strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.hero-state p {
  margin-top: 4px;
  color: var(--enc-muted);
}

.hero-meta {
  margin-top: 16px;
}

/* Oznámení – čistší a méně “bootstrap” */
.client-service-note {
  margin-top: 18px;
  border: 1px solid rgba(33, 143, 63, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248, 253, 250, 0.94));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.035);
}

.client-service-note-inner {
  padding: 18px 22px;
}

.client-service-note-label {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--enc-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-service-note p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}

/* Rozložení */
.dashboard-layout {
  gap: 20px;
  margin-top: 20px;
}

.dashboard-left,
.dashboard-right {
  gap: 20px;
}

/* Společný vzhled karet */
.credit-card,
.panel-card,
.support-card,
.trust-card,
.note-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: var(--enc-card);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.credit-card:hover,
.panel-card:hover,
.support-card:hover,
.trust-card:hover {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.065);
}

/* Nadpisy v kartách */
.credit-card h2,
.panel-card h2,
.support-card h2,
.trust-card h2,
.dashboard-card h2 {
  color: var(--enc-ink);
  letter-spacing: -0.035em;
}

.eyebrow {
  color: var(--enc-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Kreditová karta */
.credit-card {
  padding: 22px;
}

.credit-top {
  align-items: flex-start;
}

.credit-message {
  border-radius: 16px;
  padding: 13px 15px;
  font-weight: 750;
}

/* Položky kreditů */
.device-credit-list {
  gap: 12px;
}

.device-credit-item {
  padding: 15px;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #ffffff, #fbfcfd);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.device-credit-item:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 143, 63, 0.20);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.device-credit-main strong,
.device-credit-value strong {
  letter-spacing: -0.02em;
}

/* Rychlé akce – více “app” styl */
.quick-actions {
  padding: 22px;
}

.action-link {
  border: 1px solid #edf1f5;
  border-radius: 17px;
  background: #ffffff;
  transition: all 0.18s ease;
}

.action-link:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 143, 63, 0.20);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.action-link.primary {
  border-color: rgba(33, 143, 63, 0.18);
  background:
    radial-gradient(circle at 95% 10%, rgba(33, 143, 63, 0.10), transparent 28%),
    linear-gradient(135deg, #ecf8f0, #ffffff);
}

.action-link strong {
  letter-spacing: -0.02em;
}

.action-link small {
  color: #667085;
}

/* Pravé informační karty */
.dashboard-card {
  padding: 22px;
}

.device-card-item {
  border: 1px solid #edf1f5;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.device-card-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f5;
  margin-bottom: 8px;
}

/* Detail list – lehčí, přehlednější */
.detail-list div {
  padding: 10px 0;
  border-color: #edf1f5;
}

.detail-list dt {
  color: #7a8594;
  font-size: 12px;
  font-weight: 750;
}

.detail-list dd {
  color: var(--enc-ink);
  font-weight: 800;
}

/* Status badges */
.status-badge,
.mini-badge,
.credit-count-badge {
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

/* Bezpečnostní karta trochu kompaktnější */
.trust-card {
  padding: 22px;
}

.trust-points {
  gap: 10px;
}

.trust-point {
  border-radius: 16px;
  background: #ffffff;
}

/* Footer – více vycentrovaný a moderní */
.portal-footer {
  margin-top: 20px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.50);
}

.portal-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Mobil */
@media (max-width: 860px) {
  .portal-header {
    padding: 10px 14px;
    align-items: flex-start;
    gap: 10px;
  }

  .portal-header nav {
    gap: 8px;
  }

  .header-user {
    display: none;
  }

  .portal-wrap {
    padding: 18px 14px 34px;
  }

  .dashboard-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .dashboard-hero h1 {
    font-size: 31px;
  }

  .hero-meta {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .hero-meta::-webkit-scrollbar {
    display: none;
  }

  .mini-badge {
    white-space: nowrap;
  }

  .dashboard-layout {
    gap: 16px;
  }

  .credit-card,
  .panel-card,
  .support-card,
  .trust-card {
    border-radius: 20px;
    padding: 18px;
  }

  .device-credit-item {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: flex-start;
  }

  .device-credit-value {
    align-items: flex-start;
  }

  .device-credit-item .btn {
    width: 100%;
    justify-content: center;
  }

  .action-link {
    border-radius: 15px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .detail-list dd {
    text-align: left;
  }

  .portal-footer-inner {
    padding: 0 16px;
    gap: 14px;
  }
}
/* =========================================================
   Moje ENC login – premium facelift
   pouze vzhled, bez změny logiky
========================================================= */

.auth-page.client-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(33, 143, 63, 0.10), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(33, 143, 63, 0.07), transparent 28%),
    linear-gradient(180deg, #f7faf8 0%, #eef4f0 100%);
  color: #0f172a;
}

.client-login-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 90px) 18px 34px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.client-login-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 34px;
  background:
    radial-gradient(circle at 94% 12%, rgba(33, 143, 63, 0.06), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(250,252,251,0.94));
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.90);
  overflow: hidden;
}

.client-login-panel::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -130px;
  bottom: -150px;
  border-radius: 999px;
  background: rgba(33, 143, 63, 0.055);
  pointer-events: none;
}

.client-login-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -120px;
  top: -130px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.035);
  pointer-events: none;
}

.login-copy,
.client-login-card {
  position: relative;
  z-index: 2;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #eef8f1;
  color: #218f3f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.login-copy h1 {
  max-width: 650px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.065em;
}

.login-copy h1 span {
  color: #218f3f;
}

.login-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #536173;
  font-size: 17px;
  line-height: 1.8;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.login-feature-grid div {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #e7edf2;
  border-radius: 17px;
  background: rgba(255,255,255,0.86);
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.login-feature-grid span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #218f3f;
}

.login-feature-grid svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-secure-note {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 26px;
  padding: 13px 17px;
  border-radius: 17px;
  background: #edf8f0;
  color: #176d30;
  font-size: 15px;
  font-weight: 850;
}

.login-secure-note span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(33,143,63,0.12);
}

.login-secure-note svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #218f3f;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Login karta */
.client-login-card {
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.16), transparent 28%),
    linear-gradient(145deg, #218f3f 0%, #147432 100%);
  color: #ffffff;
  box-shadow:
    0 30px 70px rgba(33, 143, 63, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}

.login-card-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.13);
}

.login-card-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-card-head p {
  margin: 0 0 4px;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.login-card-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.client-login-form {
  display: grid;
  gap: 16px;
}

.client-login-form label {
  display: grid;
  gap: 7px;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

.client-login-form label span {
  color: rgba(255,255,255,0.92);
}

.client-login-form input {
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  color: #0f172a;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.client-login-form input:focus {
  background: #ffffff;
  border-color: rgba(255,255,255,0.80);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}

.client-login-submit {
  min-height: 58px;
  margin-top: 6px;
  border: 0;
  border-radius: 17px;
  background: #ffffff;
  color: #218f3f;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.client-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.22);
}

.login-card-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 800;
}

.login-card-links a {
  color: #ffffff;
  text-decoration: none;
}

.login-card-links a:hover {
  text-decoration: underline;
}

.client-login-card .alert {
  margin-bottom: 16px;
  border-radius: 14px;
}

/* Spodní trustbar pod loginem */
.client-login-trustbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-login-trustbar div {
  padding: 15px 17px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.client-login-trustbar strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.client-login-trustbar span {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

/* Tablet */
@media (max-width: 980px) {
  .client-login-shell {
    align-content: start;
    padding-top: 24px;
  }

  .client-login-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .client-login-card {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .login-copy {
    text-align: center;
  }

  .login-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .login-secure-note {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobil */
@media (max-width: 640px) {
  .auth-page.client-login-page {
    background:
      radial-gradient(circle at 50% -8%, rgba(33, 143, 63, 0.12), transparent 36%),
      linear-gradient(180deg, #f7faf8 0%, #eef4f0 100%);
  }

  .client-login-shell {
    min-height: auto;
    padding: 14px 12px 28px;
  }

  .client-login-panel {
    padding: 18px;
    border-radius: 24px;
    gap: 20px;
  }

  .login-copy h1 {
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .login-lead {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.65;
  }

  .login-feature-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  .login-feature-grid div {
    min-height: 50px;
    padding: 11px 13px;
    font-size: 14px;
    border-radius: 15px;
  }

  .login-secure-note {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 13px;
    font-size: 13px;
    text-align: left;
  }

  .client-login-card {
    padding: 20px;
    border-radius: 24px;
  }

  .login-card-head {
    margin-bottom: 20px;
  }

  .login-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .login-card-head h2 {
    font-size: 25px;
  }

  .client-login-form input,
  .client-login-submit {
    min-height: 52px;
    border-radius: 15px;
  }

  .login-card-links {
    gap: 6px;
    font-size: 13px;
  }

  .client-login-trustbar {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .client-login-trustbar div {
    padding: 13px 15px;
    border-radius: 16px;
  }
}
/* =========================================================
   Moje ENC Admin login – odlišný backoffice styl
   pouze vzhled, bez změny logiky
========================================================= */

.admin-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(15, 23, 42, 0.10), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(33, 143, 63, 0.06), transparent 28%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
  color: #0f172a;
}

.admin-login-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: 100%;
  position: relative;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background:
    radial-gradient(circle at 90% 8%, rgba(15, 23, 42, 0.045), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow:
    0 26px 70px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.86);
  overflow: hidden;
}

.admin-login-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0f172a, #218f3f);
}

.admin-login-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  pointer-events: none;
}

.admin-login-top {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.admin-login-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #0f172a, #1f2937);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.20);
}

.admin-login-kicker {
  margin: 0 0 5px;
  color: #218f3f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.admin-login-text {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.admin-login-security {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-bottom: 22px;
  padding: 13px 14px;
  border: 1px solid #e7edf2;
  border-radius: 16px;
  background: #f8fafc;
}

.admin-login-security span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef8f1;
  position: relative;
}

.admin-login-security span::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 10px;
  height: 8px;
  border: 2px solid #218f3f;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.admin-login-security span::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 8px;
  height: 7px;
  border: 2px solid #218f3f;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.admin-login-security p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.admin-login-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 15px;
}

.admin-login-form label {
  display: grid;
  gap: 7px;
}

.admin-login-form label span {
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.admin-login-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #dfe5ec;
  border-radius: 15px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-login-form input:focus {
  border-color: rgba(33, 143, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(33, 143, 63, 0.10);
}

.admin-login-submit {
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 15px;
  background:
    linear-gradient(135deg, #0f172a 0%, #1f2937 52%, #218f3f 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.24);
}

.admin-login-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #edf1f5;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

/* Chybová hláška v admin loginu */
.admin-login-card .alert {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  border-radius: 14px;
}

/* Mobilní zobrazení */
@media (max-width: 560px) {
  .admin-login-shell {
    min-height: auto;
    padding: 14px;
    place-items: start center;
  }

  .admin-login-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .admin-login-top {
    align-items: flex-start;
  }

  .admin-login-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 16px;
  }

  .admin-login-card h1 {
    font-size: 31px;
  }

  .admin-login-text {
    font-size: 14px;
  }

  .admin-login-form input,
  .admin-login-submit {
    min-height: 50px;
    border-radius: 14px;
  }

  .admin-login-foot {
    display: grid;
    gap: 5px;
  }
}

/* Compact client topbar on mobile */
@media (max-width: 576px) {
  .client-dashboard-page .portal-header {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 10px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
  }

  .client-dashboard-page .portal-logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    color: #101828;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .client-dashboard-page .portal-logo span {
    color: #218f3f;
  }

  .client-dashboard-page .app-version-badge {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-height: 18px;
    padding: 1px 7px;
    border-radius: 999px;
    color: #98a2b3;
    background: #f7f8fb;
    font-size: 10px;
    font-weight: 700;
  }

  .client-dashboard-page .portal-header nav {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
  }

  .client-dashboard-page .portal-header .header-user {
    display: none;
  }

  .client-dashboard-page .portal-header .btn {
    width: auto;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none;
  }

  .client-dashboard-page .portal-wrap {
    padding-top: 14px;
  }
}

/* Premium client dashboard redesign */
.client-dashboard-page.portal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -8%, rgba(33, 143, 63, 0.13), transparent 30%),
    linear-gradient(180deg, #f7fbf8 0%, #f4f8fb 42%, #eef3f7 100%);
  color: #0f172a;
}

.client-dashboard-page .portal-topbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.client-dashboard-page .portal-topbar .portal-logo {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-dashboard-page .portal-topbar .portal-logo span {
  color: #218f3f;
}

.client-dashboard-page .portal-topbar .app-version-badge {
  min-height: 24px;
  padding: 2px 9px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
  font-size: 11px;
  font-weight: 800;
}

.client-dashboard-page .portal-topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.client-dashboard-page .portal-topbar .header-user {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.client-dashboard-page .portal-topbar .btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  font-size: 13px;
  font-weight: 750;
}

.client-dashboard-page .portal-main {
  max-width: 1220px;
  padding: 28px 22px 48px;
}

.client-dashboard-page .portal-hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 30px 32px;
  border: 1px solid rgba(205, 232, 214, 0.96);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(234, 248, 239, 0.96), rgba(255, 255, 255, 0.82) 54%, rgba(255, 255, 255, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
}

.client-dashboard-page .portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, transparent 62%, rgba(33, 143, 63, 0.11) 62%, rgba(33, 143, 63, 0.02) 100%);
}

.client-dashboard-page .portal-hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -72px;
  top: -56px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(33, 143, 63, 0.18), rgba(33, 143, 63, 0.05) 52%, transparent 70%);
}

.client-dashboard-page .portal-hero > * {
  position: relative;
  z-index: 1;
}

.client-dashboard-page .portal-hero h1 {
  max-width: 720px;
  margin: 4px 0 12px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.client-dashboard-page .hero-state {
  max-width: 680px;
}

.client-dashboard-page .hero-state strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.client-dashboard-page .hero-state p {
  margin-top: 4px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

.client-dashboard-page .hero-meta {
  margin-top: 18px;
  gap: 8px;
}

.client-dashboard-page .mini-badge,
.client-dashboard-page .credit-count-badge {
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.82);
  color: #64748b;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
  font-weight: 750;
}

.client-dashboard-page .status-badge,
.client-dashboard-page .status-pill,
.client-dashboard-page .status-active,
.client-dashboard-page .status-warning {
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.client-dashboard-page .status-badge.active,
.client-dashboard-page .status-badge.ok,
.client-dashboard-page .status-active {
  color: #167a3a;
  background: #eaf8ef;
  border-color: #c6ecd2;
}

.client-dashboard-page .status-badge.low,
.client-dashboard-page .status-warning {
  color: #a15c06;
  background: #fff7e8;
  border-color: #fedf89;
}

.client-dashboard-page .status-badge.critical {
  color: #b42318;
  background: #fff1f0;
  border-color: #fecdca;
}

.client-dashboard-page .status-badge.paused,
.client-dashboard-page .status-badge.pending {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.client-dashboard-page .portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.client-dashboard-page .dashboard-left,
.client-dashboard-page .dashboard-right {
  display: grid;
  gap: 18px;
}

.client-dashboard-page .portal-card,
.client-dashboard-page .note-card,
.client-dashboard-page .client-alert,
.client-dashboard-page .client-service-note {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86));
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
}

.client-dashboard-page .portal-card {
  padding: 22px;
}

.client-dashboard-page .credit-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(33, 143, 63, 0.08), transparent 34%);
}

.client-dashboard-page .credit-top {
  gap: 8px;
  margin-bottom: 14px;
}

.client-dashboard-page .credit-top h2,
.client-dashboard-page .panel-card h2,
.client-dashboard-page .support-card h2,
.client-dashboard-page .trust-card h2 {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.client-dashboard-page .credit-subtitle,
.client-dashboard-page .card-subtitle,
.client-dashboard-page .support-card p,
.client-dashboard-page .trust-card p {
  color: #64748b;
  line-height: 1.55;
}

.client-dashboard-page .credit-message {
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid #c6ecd2;
  background: #eaf8ef;
  color: #167a3a;
  font-size: 14px;
  font-weight: 750;
}

.client-dashboard-page .credit-message.low {
  border-color: #fedf89;
  background: #fff7e8;
  color: #a15c06;
}

.client-dashboard-page .credit-message.critical {
  border-color: #fecdca;
  background: #fff1f0;
  color: #b42318;
}

.client-dashboard-page .device-card {
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.client-dashboard-page .device-credit-item {
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto) auto;
  gap: 14px;
  padding: 16px;
}

.client-dashboard-page .device-credit-item strong,
.client-dashboard-page .device-card-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.client-dashboard-page .device-credit-main span,
.client-dashboard-page .device-credit-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.client-dashboard-page .device-credit-value strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 850;
}

.client-dashboard-page .device-credit-item .btn {
  min-height: 42px;
  border-radius: 999px;
  padding-inline: 15px;
  font-weight: 850;
}

.client-dashboard-page .device-credit-item .btn-primary,
.client-dashboard-page .btn-attention {
  background: linear-gradient(135deg, #218f3f, #167a3a);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(33, 143, 63, 0.22);
}

.client-dashboard-page .btn-attention {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.18);
}

.client-dashboard-page .action-list {
  display: grid;
  gap: 11px;
}

.client-dashboard-page .action-list > div:first-child {
  margin-bottom: 4px;
}

.client-dashboard-page .action-item {
  position: relative;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.client-dashboard-page .action-item::before {
  content: "•";
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(33, 143, 63, 0.13), rgba(33, 143, 63, 0.04));
  border: 1px solid rgba(33, 143, 63, 0.14);
  color: #218f3f;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.client-dashboard-page .action-item.primary {
  border-color: rgba(33, 143, 63, 0.24);
  background:
    linear-gradient(135deg, #eaf8ef, #ffffff);
  color: #167a3a;
}

.client-dashboard-page .action-item.primary::before {
  content: "+";
  background:
    linear-gradient(135deg, #218f3f, #167a3a);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(33, 143, 63, 0.18);
  color: #ffffff;
}

.client-dashboard-page .action-list > a:nth-of-type(2)::before {
  content: "↗";
}

.client-dashboard-page .action-list > a:nth-of-type(3)::before {
  content: "≡";
}

.client-dashboard-page .action-list > a:nth-of-type(4)::before,
.client-dashboard-page .inline-action-form .action-item::before {
  content: "?";
}

.client-dashboard-page .action-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-dashboard-page .action-item strong {
  font-size: 14px;
  font-weight: 850;
}

.client-dashboard-page .action-item small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.client-dashboard-page .action-item em {
  color: #94a3b8;
  font-size: 18px;
}

.client-dashboard-page .dashboard-card .card-title,
.client-dashboard-page .device-card-head {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.client-dashboard-page .detail-list {
  display: grid;
  gap: 0;
}

.client-dashboard-page .detail-list div,
.client-dashboard-page .detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.62fr) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.client-dashboard-page .detail-list div:last-child {
  border-bottom: 0;
}

.client-dashboard-page .detail-list dt {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.client-dashboard-page .detail-list dd {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  text-align: right;
}

.client-dashboard-page .device-card-item {
  padding: 18px;
}

.client-dashboard-page .support-card {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(234, 248, 239, 0.9), rgba(255, 255, 255, 0.9));
}

.client-dashboard-page .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-dashboard-page .support-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #218f3f, #167a3a);
  box-shadow: 0 14px 28px rgba(33, 143, 63, 0.22);
  font-weight: 850;
}

.client-dashboard-page .support-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-weight: 750;
}

.client-dashboard-page .trust-card {
  background:
    linear-gradient(180deg, #ffffff, rgba(248, 250, 252, 0.92));
}

.client-dashboard-page .trust-points {
  gap: 10px;
}

.client-dashboard-page .trust-point {
  padding: 13px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: #ffffff;
}

.client-dashboard-page .trust-point-mark {
  background: #eaf8ef;
  border-color: #c6ecd2;
}

.client-dashboard-page .trust-point strong {
  color: #0f172a;
  font-weight: 850;
}

.client-dashboard-page .activity-list {
  display: grid;
  gap: 10px;
}

.client-dashboard-page .activity-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.025);
}

.client-dashboard-page .activity-list li:first-child,
.client-dashboard-page .activity-list li:last-child {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

.client-dashboard-page .activity-list span {
  min-width: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.client-dashboard-page .activity-list strong {
  flex-shrink: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

.client-dashboard-page .inline-action-form .action-item {
  width: 100%;
}

@media (max-width: 900px) {
  .client-dashboard-page .portal-grid {
    grid-template-columns: 1fr;
  }

  .client-dashboard-page .dashboard-left,
  .client-dashboard-page .dashboard-right {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .client-dashboard-page .portal-main {
    padding: 16px 14px 34px;
  }

  .client-dashboard-page .portal-card,
  .client-dashboard-page .portal-hero,
  .client-dashboard-page .note-card,
  .client-dashboard-page .client-alert,
  .client-dashboard-page .client-service-note {
    border-radius: 22px;
  }

  .client-dashboard-page .portal-hero {
    min-height: 0;
    padding: 20px;
  }

  .client-dashboard-page .portal-hero h1 {
    margin-top: 2px;
    font-size: 30px;
  }

  .client-dashboard-page .hero-state p {
    font-size: 14px;
  }

  .client-dashboard-page .hero-meta {
    margin-top: 14px;
  }

  .client-dashboard-page .device-credit-item,
  .client-dashboard-page .device-credit-item.is-travel-card-only {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 10px;
    padding: 14px;
  }

  .client-dashboard-page .device-credit-item.is-travel-card-only .device-credit-main,
  .client-dashboard-page .device-credit-item.is-travel-card-only .device-credit-value,
  .client-dashboard-page .device-credit-item.is-travel-card-only .btn {
    grid-area: auto;
  }

  .client-dashboard-page .device-credit-value,
  .client-dashboard-page .device-credit-item.is-travel-card-only .device-credit-value {
    justify-items: start;
    text-align: left;
  }

  .client-dashboard-page .device-credit-item .btn {
    width: 100%;
    min-height: 44px;
  }

  .client-dashboard-page .action-item {
    min-height: 60px;
    padding: 12px;
  }

  .client-dashboard-page .detail-list div,
  .client-dashboard-page .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 0;
  }

  .client-dashboard-page .detail-list dd {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .client-dashboard-page .portal-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    padding: 8px 12px;
  }

  .client-dashboard-page .portal-topbar .portal-logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
  }

  .client-dashboard-page .portal-topbar .app-version-badge {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-height: 18px;
    padding: 1px 7px;
    font-size: 10px;
    box-shadow: none;
  }

  .client-dashboard-page .portal-topbar nav {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .client-dashboard-page .portal-topbar .header-user {
    display: none;
  }

  .client-dashboard-page .portal-topbar .btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    box-shadow: none;
  }

  .client-dashboard-page .portal-main {
    padding-top: 14px;
  }

  .client-dashboard-page .portal-hero {
    padding: 18px;
  }

  .client-dashboard-page .portal-hero h1 {
    font-size: 27px;
  }

  .client-dashboard-page .portal-hero::after {
    width: 170px;
    height: 170px;
    right: -68px;
    top: -48px;
  }

  .client-dashboard-page .portal-card {
    padding: 18px;
  }

  .client-dashboard-page .credit-top {
    align-items: flex-start;
  }

  .client-dashboard-page .credit-top h2,
  .client-dashboard-page .panel-card h2,
  .client-dashboard-page .support-card h2,
  .client-dashboard-page .trust-card h2 {
    font-size: 18px;
  }
}
/* =========================================================
   Moje ENC dashboard – hero v2 premium facelift
   Bez změny logiky, pouze vzhled
========================================================= */

.client-dashboard-page .portal-hero-v2 {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(198, 236, 210, 0.95);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%, rgba(33, 143, 63, 0.18), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(33, 143, 63, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3fbf6 52%, #ffffff 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.client-dashboard-page .portal-hero-v2::before {
  content: "";
  position: absolute;
  inset: auto -90px -130px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(33, 143, 63, 0.16), transparent 68%);
  pointer-events: none;
}

.client-dashboard-page .hero-content-v2 {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.client-dashboard-page .portal-hero-v2 h1 {
  max-width: 760px;
  margin: 4px 0 12px;
  color: #0f172a;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.client-dashboard-page .hero-wave {
  display: inline-block;
  font-size: 0.8em;
  transform: translateY(-2px);
}

.client-dashboard-page .portal-hero-v2 .hero-state {
  max-width: 700px;
  margin-top: 0;
}

.client-dashboard-page .portal-hero-v2 .hero-state strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 850;
}

.client-dashboard-page .portal-hero-v2 .hero-state p {
  margin-top: 5px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.client-dashboard-page .hero-stats-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.client-dashboard-page .hero-stat-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
  backdrop-filter: blur(10px);
}

.client-dashboard-page .hero-stat-card span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-dashboard-page .hero-stat-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.client-dashboard-page .hero-stat-card small {
  display: block;
  margin-top: 6px;
  color: #7a8594;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.client-dashboard-page .hero-actions-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.client-dashboard-page .hero-actions-v2 .btn {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 999px;
}

.client-dashboard-page .hero-meta-v2 {
  margin-top: 16px;
}

.client-dashboard-page .hero-status-panel-v2 {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: space-between;
  justify-items: start;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(198, 236, 210, 0.95);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(33, 143, 63, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
}

.client-dashboard-page .hero-status-panel-v2 strong {
  align-self: end;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.client-dashboard-page .hero-status-panel-v2 small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mobilní verze hero */
@media (max-width: 860px) {
  .client-dashboard-page .portal-hero-v2 {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
  }

  .client-dashboard-page .portal-hero-v2 h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .client-dashboard-page .hero-stats-v2 {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .client-dashboard-page .hero-stat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: center;
    padding: 14px 15px;
    border-radius: 18px;
  }

  .client-dashboard-page .hero-stat-card span,
  .client-dashboard-page .hero-stat-card small {
    grid-column: 1;
  }

  .client-dashboard-page .hero-stat-card strong {
    grid-column: 2;
    grid-row: 1 / 3;
    text-align: right;
    font-size: 24px;
  }

  .client-dashboard-page .hero-actions-v2 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .client-dashboard-page .hero-actions-v2 .btn {
    width: 100%;
    min-height: 48px;
  }

  .client-dashboard-page .hero-status-panel-v2 {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 20px;
  }

  .client-dashboard-page .hero-status-panel-v2 strong {
    margin-left: auto;
    font-size: 17px;
    text-align: right;
  }

  .client-dashboard-page .hero-status-panel-v2 small {
    display: none;
  }
}
/* Hero v2 – odstranění vysokého panelu se zavádějícím globálním stavem kreditu */
.client-dashboard-page .portal-hero-v2 {
  grid-template-columns: 1fr;
}

.client-dashboard-page .hero-service-pill-v2 {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(198, 236, 210, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(10px);
}

.client-dashboard-page .hero-service-pill-v2 small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .client-dashboard-page .hero-service-pill-v2 {
    position: static;
    width: fit-content;
    margin-top: 14px;
  }

  .client-dashboard-page .hero-service-pill-v2 small {
    display: inline;
  }
}
/* =========================================================
   Moje ENC dashboard – kreditové mini karty v2
========================================================= */

.client-dashboard-page .credit-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.client-dashboard-page .credit-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(33, 143, 63, 0.08), transparent 68%);
  pointer-events: none;
}

.client-dashboard-page .device-credit-list {
  position: relative;
  z-index: 2;
  gap: 14px;
}

.client-dashboard-page .device-credit-item {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main value"
    "main action";
  gap: 12px 18px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(33, 143, 63, 0.07), transparent 30%),
    linear-gradient(135deg, #ffffff, #fbfcfd);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.client-dashboard-page .device-credit-main {
  grid-area: main;
  min-width: 0;
}

.client-dashboard-page .device-credit-value {
  grid-area: value;
  justify-items: end;
  text-align: right;
}

.client-dashboard-page .device-credit-item .btn {
  grid-area: action;
  justify-self: end;
  min-height: 38px;
  padding-inline: 14px;
}

.client-dashboard-page .device-credit-main strong {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 900;
}

.client-dashboard-page .device-credit-main span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.client-dashboard-page .device-credit-value strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.client-dashboard-page .device-credit-value .status-badge {
  margin-top: 6px;
}

/* Nízký kredit – jemné zvýraznění konkrétního zařízení */
.client-dashboard-page .device-credit-item:has(.status-badge.low),
.client-dashboard-page .device-credit-item:has(.status-badge.critical) {
  border-color: rgba(245, 158, 11, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.13), transparent 32%),
    linear-gradient(135deg, #ffffff, #fffaf0);
}

.client-dashboard-page .device-credit-item:has(.status-badge.low) .btn-primary,
.client-dashboard-page .device-credit-item:has(.status-badge.critical) .btn-primary {
  box-shadow: 0 14px 30px rgba(33, 143, 63, 0.22);
}

/* Mobil – kreditová mini karta jako app tile */
@media (max-width: 680px) {
  .client-dashboard-page .credit-card {
    padding: 20px;
    border-radius: 24px;
  }

  .client-dashboard-page .device-credit-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "value"
      "action";
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .client-dashboard-page .device-credit-value {
    justify-items: start;
    text-align: left;
  }

  .client-dashboard-page .device-credit-item .btn {
    width: 100%;
    justify-self: stretch;
    min-height: 44px;
  }
}
/* =========================================================
   Moje ENC dashboard – rychlé akce v3 FIX
========================================================= */

.client-dashboard-page .action-item{
    position:relative;
    display:grid;
    grid-template-columns:44px minmax(0,1fr) auto;
    align-items:center;
    gap:14px;

    min-height:72px;
    padding:16px 18px;

    border-radius:20px;

    background:linear-gradient(
        135deg,
        #ffffff,
        #fbfcfd
    );

    border:1px solid rgba(226,232,240,.95);

    box-shadow:
    0 10px 25px rgba(15,23,42,.035);

    transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.client-dashboard-page .action-item:hover{
    transform:translateX(4px);

    box-shadow:
    0 18px 35px rgba(15,23,42,.07);
}

.client-dashboard-page .action-item::before{

    width:42px;
    height:42px;

    position:static;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#ecf8f0;

    color:#218f3f;

    font-size:18px;
    font-weight:900;

    transform:none;
}

.client-dashboard-page .action-item.primary{

background:
radial-gradient(
circle at 100% 0%,
rgba(33,143,63,.08),
transparent 35%
),
linear-gradient(
135deg,
#f3fbf5,
#ffffff
);

border-color:
rgba(33,143,63,.22);
}

.client-dashboard-page .action-item.primary::before{

background:#218f3f;
color:#fff;
}

.client-dashboard-page .action-item strong{

display:block;

font-size:15px;
font-weight:900;

margin-bottom:3px;
}

.client-dashboard-page .action-item small{

display:block;

font-size:13px;

line-height:1.4;

color:#64748b;
}

.client-dashboard-page .action-item em{

font-style:normal;

font-size:20px;

color:#94a3b8;

font-weight:700;
}

/* mobil */

@media(max-width:680px){

.client-dashboard-page .action-item{

grid-template-columns:
44px minmax(0,1fr);

padding:14px 15px;
}

.client-dashboard-page .action-item em{

display:none;
}

.client-dashboard-page .action-item:hover{

transform:none;
}

}
/* =========================================================
   Moje ENC dashboard – detail karty v2
========================================================= */

.client-dashboard-page .dashboard-right .portal-card,
.client-dashboard-page .dashboard-right .panel-card {
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055);
}

.client-dashboard-page .device-card-item {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(33,143,63,.055), transparent 34%),
    #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.client-dashboard-page .detail-list div,
.client-dashboard-page .info-list div {
  grid-template-columns: minmax(120px, .75fr) minmax(0, 1fr);
  padding: 13px 0;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
}

.client-dashboard-page .detail-list dt,
.client-dashboard-page .info-list dt {
  color: #7a8797;
  font-size: 12px;
  font-weight: 800;
}

.client-dashboard-page .detail-list dd,
.client-dashboard-page .info-list dd {
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.client-dashboard-page .device-card-head {
  margin-bottom: 16px;
}

.client-dashboard-page .device-card-head strong {
  font-size: 17px;
  font-weight: 950;
}

.client-dashboard-page .dashboard-right .status-badge {
  font-weight: 800;
}

/* menší informační karty vpravo */
.client-dashboard-page .dashboard-right > article:not(:first-child) {
  background:
    linear-gradient(135deg, #ffffff, #fbfcfd);
}

/* mobil */
@media (max-width: 680px) {
  .client-dashboard-page .dashboard-right .portal-card,
  .client-dashboard-page .dashboard-right .panel-card {
    padding: 20px;
    border-radius: 24px;
  }

  .client-dashboard-page .detail-list div,
  .client-dashboard-page .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .client-dashboard-page .detail-list dd,
  .client-dashboard-page .info-list dd {
    text-align: left;
  }
}
/* =========================================================
   Login page – odlišení od zeleného klientského portálu
   Styl inspirovaný e-mailovou komunikací ENC
   ========================================================= */

.client-login-page {
    --login-primary: #0f4f5f;
    --login-primary-dark: #083844;
    --login-primary-soft: #e8f4f6;
    --login-accent: #d7a64a;
    --login-accent-soft: #fff6e2;
    --login-text: #101828;
    --login-muted: #5d6b7a;

    background:
        radial-gradient(circle at 86% 12%, rgba(15, 79, 95, .12), transparent 26rem),
        radial-gradient(circle at 8% 92%, rgba(215, 166, 74, .12), transparent 22rem),
        linear-gradient(135deg, #f4f8fa 0%, #eef5f7 100%);
}

.client-login-panel {
    border-color: rgba(15, 79, 95, .13);
    background:
        radial-gradient(circle at 100% 0%, rgba(15, 79, 95, .08), transparent 18rem),
        radial-gradient(circle at 0% 100%, rgba(215, 166, 74, .10), transparent 18rem),
        rgba(255, 255, 255, .92);
    box-shadow: 0 24px 60px rgba(15, 42, 56, .10);
}

.login-pill {
    color: var(--login-primary);
    background: var(--login-primary-soft);
}

.login-copy h1 span {
    color: var(--login-primary);
}

.login-lead {
    color: var(--login-muted);
}

.login-feature-grid div {
    border-color: rgba(15, 79, 95, .13);
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 10px 24px rgba(15, 42, 56, .035);
}

.login-feature-grid span,
.login-secure-note span {
    background: var(--login-primary);
}

.login-secure-note {
    color: var(--login-primary-dark);
    background: var(--login-primary-soft);
}

.client-login-card {
    background:
        radial-gradient(circle at 95% 105%, rgba(255, 255, 255, .16), transparent 34%),
        linear-gradient(145deg, #0f4f5f 0%, #083844 100%);
    box-shadow: 0 24px 58px rgba(8, 56, 68, .28);
}

.login-card-icon {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .14);
}

.login-card-head p {
    color: rgba(255, 255, 255, .82);
}

.client-login-form input {
    background: #f2f7f9;
    color: #101828;
}

.client-login-form input:focus {
    box-shadow: 0 0 0 4px rgba(215, 166, 74, .22);
}

.client-login-submit {
    color: #083844;
    background: linear-gradient(135deg, #ffffff 0%, #fff6e2 100%);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .10);
}

.client-login-submit:hover {
    color: #083844;
    background: linear-gradient(135deg, #fff9ec 0%, #ffffff 100%);
    transform: translateY(-1px);
}

.login-card-links a:hover {
    color: #ffe3a3;
}

.client-login-trustbar {
    border-color: rgba(15, 79, 95, .12);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 34px rgba(15, 42, 56, .06);
}

.client-login-trustbar strong {
    color: var(--login-primary-dark);
}

.client-login-trustbar span {
    color: var(--login-muted);
}
/* Oprava spodního trustbaru na přihlašovací stránce */
.client-login-trustbar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 14px;
}

.client-login-trustbar > div {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(15, 79, 95, .12);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 42, 56, .055);
}
/* =========================================================
   Mobilní hlavička klientského portálu – zobrazit jméno klienta
   ========================================================= */

@media (max-width: 640px) {
    .portal-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        align-items: center;
        padding: 12px 14px;
    }

    .portal-logo {
        min-width: 0;
        font-size: 14px;
        line-height: 1.25;
    }

    .app-version-badge {
        justify-self: start;
        grid-column: 1 / 2;
        grid-row: 2;
        font-size: 11px;
        min-height: 24px;
        padding: 2px 7px;
    }

    .portal-header nav {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .header-user {
        display: inline-flex;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-secondary);
        font-size: 12px;
        font-weight: 600;
    }

    .portal-header .btn,
    .portal-header .nav-link {
        width: auto;
        min-height: 34px;
        padding: 7px 11px;
        font-size: 12px;
        white-space: nowrap;
    }
}
/* =========================================================
   FIX: Zobrazit jméno klienta v mobilní hlavičce
   Musí být úplně na konci portal.css
========================================================= */

@media (max-width: 576px) {
  .client-dashboard-page .portal-header,
  .client-dashboard-page .portal-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .client-dashboard-page .portal-header nav,
  .client-dashboard-page .portal-topbar nav {
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .client-dashboard-page .portal-header .header-user,
  .client-dashboard-page .portal-topbar .header-user {
    display: inline-flex !important;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
  }

  .client-dashboard-page .portal-header .btn,
  .client-dashboard-page .portal-topbar .btn {
    width: auto !important;
    min-height: 32px;
    padding: 0 10px !important;
    font-size: 12px;
    white-space: nowrap;
  }
}
/* =========================================================
   Moje ENC klientský účet – jemné petrolejové sjednocení
   Bez změny layoutu
========================================================= */

.client-dashboard-page {
  --primary: #0f4f5f;
  --primary-soft: #e8f4f6;
  --primary-border: rgba(15, 79, 95, .18);
}

/* Pozadí stránky jen lehce do studenějšího odstínu */
.client-dashboard-page {
  background:
    radial-gradient(circle at 85% 8%, rgba(15, 79, 95, .06), transparent 26rem),
    linear-gradient(180deg, #f6fafb 0%, #eef5f7 100%);
}

/* Logo a verze */
.client-dashboard-page .portal-logo span {
  color: #0f4f5f;
}

.client-dashboard-page .app-version-badge {
  color: #0f4f5f;
  background: #e8f4f6;
  border-color: rgba(15, 79, 95, .16);
}

/* Hlavní hero ponechat layout, jen změnit barvu zelených akcentů */
.client-dashboard-page .dashboard-hero,
.client-dashboard-page .portal-hero,
.client-dashboard-page .portal-hero-v2 {
  border-color: rgba(15, 79, 95, .14);
}

.client-dashboard-page .dashboard-hero .eyebrow,
.client-dashboard-page .hero-state strong,
.client-dashboard-page .hero-stat-card span {
  color: #0f4f5f;
}

/* Tlačítka */
.client-dashboard-page .btn-primary {
  background: #0f4f5f;
  border-color: #0f4f5f;
  color: #fff;
}

.client-dashboard-page .btn-primary:hover,
.client-dashboard-page .btn-primary:focus {
  background: #083844;
  border-color: #083844;
  color: #fff;
}

.client-dashboard-page .btn-light:hover,
.client-dashboard-page .btn-secondary:hover {
  color: #0f4f5f;
  background: #e8f4f6;
  border-color: rgba(15, 79, 95, .20);
}

/* Badge a statusy */
.client-dashboard-page .status-badge.ok,
.client-dashboard-page .status-badge.active,
.client-dashboard-page .status-pill.active,
.client-dashboard-page .credit-count-badge,
.client-dashboard-page .mini-badge {
  color: #0f4f5f;
  background: #e8f4f6;
  border-color: rgba(15, 79, 95, .16);
}

/* Rychlé akce */
.client-dashboard-page .action-link.primary {
  color: #0f4f5f;
  background: #e8f4f6;
  border-color: rgba(15, 79, 95, .18);
}

.client-dashboard-page .action-link:hover {
  border-color: rgba(15, 79, 95, .22);
  background: #f4fafb;
}

/* Karty – jen lehce studenější okraj */
.client-dashboard-page .portal-card,
.client-dashboard-page .panel-card,
.client-dashboard-page .credit-card,
.client-dashboard-page .dashboard-card,
.client-dashboard-page .support-card,
.client-dashboard-page .trust-card {
  border-color: rgba(15, 79, 95, .10);
}

/* Telefon podpory */
.client-dashboard-page .support-phone {
  color: #0f4f5f;
  border-color: rgba(15, 79, 95, .18);
}

/* Focus formulářů */
.client-dashboard-page input:focus,
.client-dashboard-page select:focus,
.client-dashboard-page textarea:focus {
  border-color: rgba(15, 79, 95, .34);
  box-shadow: 0 0 0 4px rgba(15, 79, 95, .10);
}

/* Footer do petrolejové, ale bez změny rozložení */
.client-dashboard-page .portal-footer {
  background: #083844;
}

.client-dashboard-page .portal-footer,
.client-dashboard-page .portal-footer span,
.client-dashboard-page .portal-footer-copy {
  color: rgba(255,255,255,.72);
}

.client-dashboard-page .portal-footer a,
.client-dashboard-page .portal-footer strong {
  color: #fff;
}
/* =========================================================
   Moje ENC dashboard – emailový petrolejový styl
   Jemnější, světlejší, bez těžkého tmavého dojmu
========================================================= */

.client-dashboard-page {
  --enc-petrol: #0f5e6d;
  --enc-petrol-dark: #0b4954;
  --enc-petrol-soft: #e8f5f7;
  --enc-blue: #123f73;
  --enc-green: #1f8d66;
  --enc-accent-soft: #eef8fa;
}

/* Celkové pozadí stránky */
.client-dashboard-page {
  background:
    radial-gradient(circle at 88% 8%, rgba(31, 141, 102, 0.06), transparent 26rem),
    radial-gradient(circle at 8% 88%, rgba(18, 63, 115, 0.05), transparent 22rem),
    linear-gradient(180deg, #f4f9fa 0%, #edf4f6 100%);
}

/* Horní lišta */
.client-dashboard-page .portal-header,
.client-dashboard-page .portal-topbar {
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(15, 94, 109, 0.10);
  box-shadow: 0 10px 28px rgba(15, 42, 56, 0.04);
  backdrop-filter: blur(8px);
}

.client-dashboard-page .portal-logo span {
  color: var(--enc-petrol);
}

.client-dashboard-page .app-version-badge {
  background: var(--enc-petrol-soft);
  color: var(--enc-petrol);
  border-color: rgba(15, 94, 109, 0.16);
}

/* HERO – světlý emailový gradient */
.client-dashboard-page .dashboard-hero,
.client-dashboard-page .portal-hero,
.client-dashboard-page .portal-hero-v2 {
  background:
    radial-gradient(circle at 94% 10%, rgba(31, 141, 102, 0.16), transparent 24%),
    radial-gradient(circle at 10% 100%, rgba(18, 63, 115, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(18, 63, 115, 0.94) 0%, rgba(15, 94, 109, 0.92) 52%, rgba(31, 141, 102, 0.90) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 24px 54px rgba(10, 52, 62, 0.16) !important;
  overflow: hidden;
  position: relative;
}

.client-dashboard-page .dashboard-hero::before,
.client-dashboard-page .portal-hero::before,
.client-dashboard-page .portal-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  pointer-events: none;
}

.client-dashboard-page .dashboard-hero h1,
.client-dashboard-page .dashboard-hero h2,
.client-dashboard-page .dashboard-hero strong {
  color: #ffffff !important;
}

.client-dashboard-page .dashboard-hero p,
.client-dashboard-page .dashboard-hero small {
  color: rgba(255, 255, 255, 0.88) !important;
}

.client-dashboard-page .dashboard-hero .eyebrow {
  background: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
}

/* Statistické boxy v hero – poloprůhledné */
.client-dashboard-page .hero-stat-card {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

.client-dashboard-page .hero-stat-card span,
.client-dashboard-page .hero-stat-card small {
  color: rgba(255, 255, 255, 0.80) !important;
}

.client-dashboard-page .hero-stat-card strong {
  color: #ffffff !important;
}

/* Stav služby a mini badge v hero */
.client-dashboard-page .hero-service-pill-v2,
.client-dashboard-page .dashboard-hero .mini-badge,
.client-dashboard-page .hero-meta-v2 .mini-badge {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.client-dashboard-page .hero-service-pill-v2 small {
  color: rgba(255, 255, 255, 0.84) !important;
}

/* Hlavní tlačítka */
.client-dashboard-page .btn-primary {
  background: var(--enc-petrol) !important;
  border-color: var(--enc-petrol) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 94, 109, 0.16) !important;
}

.client-dashboard-page .btn-primary:hover,
.client-dashboard-page .btn-primary:focus {
  background: var(--enc-petrol-dark) !important;
  border-color: var(--enc-petrol-dark) !important;
  color: #ffffff !important;
}

/* Světlá tlačítka v hero */
.client-dashboard-page .dashboard-hero .btn-light {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: var(--enc-petrol-dark) !important;
}

.client-dashboard-page .dashboard-hero .btn-light:hover {
  background: #ffffff !important;
  color: var(--enc-petrol-dark) !important;
}

/* Obecné karty */
.client-dashboard-page .portal-card,
.client-dashboard-page .panel-card,
.client-dashboard-page .credit-card,
.client-dashboard-page .dashboard-card,
.client-dashboard-page .support-card,
.client-dashboard-page .trust-card {
  border-color: rgba(15, 94, 109, 0.10) !important;
  box-shadow: 0 16px 38px rgba(15, 42, 56, 0.05) !important;
}

/* Badge a statusy */
.client-dashboard-page .status-badge.ok,
.client-dashboard-page .status-badge.active,
.client-dashboard-page .status-pill.active,
.client-dashboard-page .credit-count-badge,
.client-dashboard-page .mini-badge {
  color: var(--enc-petrol) !important;
  background: var(--enc-petrol-soft) !important;
  border-color: rgba(15, 94, 109, 0.16) !important;
}

/* Nízký kredit ponecháme významově oranžový */
.client-dashboard-page .status-badge.low {
  background: var(--warning-soft) !important;
  color: var(--warning-text) !important;
}

/* Rychlé akce */
.client-dashboard-page .action-link.primary {
  background: var(--enc-petrol-soft) !important;
  color: var(--enc-petrol) !important;
  border-color: rgba(15, 94, 109, 0.16) !important;
}

.client-dashboard-page .action-link.primary:hover,
.client-dashboard-page .action-link:hover {
  background: #f2fafb !important;
  border-color: rgba(15, 94, 109, 0.22) !important;
}

/* Podpora */
.client-dashboard-page .support-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 141, 102, 0.06), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f5fafb 100%) !important;
}

.client-dashboard-page .support-phone {
  background: linear-gradient(135deg, var(--enc-blue) 0%, var(--enc-petrol) 55%, var(--enc-green) 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 12px 22px rgba(15, 94, 109, 0.14);
}

.client-dashboard-page .support-phone:hover {
  filter: brightness(0.96);
  color: #ffffff !important;
}

/* Bezpečnostní blok */
.client-dashboard-page .trust-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 94, 109, 0.05), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f6fbfc 100%) !important;
}

.client-dashboard-page .trust-point-mark {
  background: var(--enc-petrol) !important;
}

/* Formulář focus */
.client-dashboard-page input:focus,
.client-dashboard-page select:focus,
.client-dashboard-page textarea:focus {
  border-color: rgba(15, 94, 109, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(15, 94, 109, 0.10) !important;
}

/* Footer */
.client-dashboard-page .portal-footer {
  background: linear-gradient(135deg, #083844 0%, #0f5e6d 100%) !important;
}

.client-dashboard-page .portal-footer,
.client-dashboard-page .portal-footer span,
.client-dashboard-page .portal-footer-copy {
  color: rgba(255, 255, 255, 0.74) !important;
}

.client-dashboard-page .portal-footer a,
.client-dashboard-page .portal-footer strong {
  color: #ffffff !important;
}
/* =========================================================
   Moje ENC dashboard – sjednocení ikon v levém sloupci
   Rychlé akce + bezpečnostní karta
========================================================= */

/* Rychlé akce – odstranit pocit "hračkových" zelených koleček */
.client-dashboard-page .action-list .action-link {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
}

/* Vlastní ikona vlevo */
.client-dashboard-page .action-list .action-link::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 94, 109, .14), rgba(15, 94, 109, .06));
  border: 1px solid rgba(15, 94, 109, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

/* Jemný symbol uvnitř ikon */
.client-dashboard-page .action-list .action-link::after {
  position: absolute;
  left: 27px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f5e6d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

/* Dobít kredit */
.client-dashboard-page .action-list .action-link:nth-of-type(1)::after {
  content: "+";
}

/* Registrovat zařízení */
.client-dashboard-page .action-list .action-link:nth-of-type(2)::after {
  content: "↗";
}

/* Požádat o výpis */
.client-dashboard-page .action-list .action-link:nth-of-type(3)::after {
  content: "≡";
}

/* Kontaktovat podporu */
.client-dashboard-page .action-list .action-link:nth-of-type(4)::after {
  content: "?";
}

/* Text v akci posunout správně do druhého sloupce */
.client-dashboard-page .action-list .action-link > span {
  min-width: 0;
}

/* Šipka vpravo decentnější */
.client-dashboard-page .action-list .action-link em {
  color: rgba(15, 94, 109, .42) !important;
  font-size: 17px;
}

/* Primární akce trochu výraznější, ale stále jemná */
.client-dashboard-page .action-list .action-link.primary::before {
  background:
    linear-gradient(135deg, rgba(15, 94, 109, .20), rgba(15, 94, 109, .08));
  border-color: rgba(15, 94, 109, .18);
}

.client-dashboard-page .action-list .action-link.primary::after {
  color: #0b4954;
}

/* Hover */
.client-dashboard-page .action-list .action-link:hover::before {
  background:
    linear-gradient(135deg, rgba(15, 94, 109, .22), rgba(15, 94, 109, .09));
  border-color: rgba(15, 94, 109, .22);
}

/* Bezpečnostní karta – místo zelených fajfek jemné petrolejové ikony */
.client-dashboard-page .trust-point {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.client-dashboard-page .trust-point-mark {
  width: 38px;
  height: 38px;
  margin-top: 1px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 94, 109, .14), rgba(15, 94, 109, .06)) !important;
  border: 1px solid rgba(15, 94, 109, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

/* Zrušit původní fajfku */
.client-dashboard-page .trust-point-mark::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 12px;
  height: 16px;
  border: solid #0f5e6d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Bezpečnostní ikonky méně agresivní */
.client-dashboard-page .trust-point strong {
  color: #0f172a;
}

.client-dashboard-page .trust-point p {
  color: #64748b;
}
/* =========================================================
   Moje ENC dashboard – Bootstrap Icons v levém sloupci
========================================================= */

.client-dashboard-page .action-list .action-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
}

.client-dashboard-page .action-list .action-link::before,
.client-dashboard-page .action-list .action-link::after {
  content: none !important;
  display: none !important;
}

.client-dashboard-page .action-icon,
.client-dashboard-page .trust-point-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(15, 94, 109, .13), rgba(15, 94, 109, .05));
  border: 1px solid rgba(15, 94, 109, .13);
  color: #0f5e6d;
  font-size: 17px;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.client-dashboard-page .action-link.primary .action-icon {
  background: linear-gradient(135deg, rgba(15, 94, 109, .20), rgba(15, 94, 109, .08));
  border-color: rgba(15, 94, 109, .20);
  color: #0b4954;
}

.client-dashboard-page .action-link:hover .action-icon {
  background: linear-gradient(135deg, rgba(15, 94, 109, .22), rgba(15, 94, 109, .09));
  border-color: rgba(15, 94, 109, .24);
}

.client-dashboard-page .action-list .action-link > span:not(.action-icon) {
  min-width: 0;
}

.client-dashboard-page .action-list .action-link em {
  color: rgba(15, 94, 109, .42) !important;
  font-size: 17px;
}

/* Bezpečnostní karta */
.client-dashboard-page .trust-point {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: flex-start;
}

.client-dashboard-page .trust-point-mark {
  margin-top: 1px;
}

.client-dashboard-page .trust-point-mark::after {
  content: none !important;
  display: none !important;
}

.client-dashboard-page .trust-point-mark i {
  line-height: 1;
}

.client-dashboard-page .trust-point strong {
  color: #0f172a;
}

.client-dashboard-page .trust-point p {
  color: #64748b;
}
/* =========================================================
   Moje ENC Dashboard V3 – app layout se sidebarem
   Bez změny PHP funkcí
========================================================= */

.dashboard-app-v3 {
  --app-bg: #eef6f7;
  --app-panel: #ffffff;
  --app-petrol: #0f5e6d;
  --app-petrol-dark: #0b4954;
  --app-mint: #e6f4f2;
  --app-border: rgba(15, 94, 109, .12);
  --app-text: #102a36;
  --app-muted: #6b7b88;

  background:
    radial-gradient(circle at 85% 6%, rgba(31, 141, 102, .07), transparent 28rem),
    radial-gradient(circle at 10% 90%, rgba(18, 63, 115, .05), transparent 24rem),
    linear-gradient(180deg, #f6fbfb 0%, #edf5f7 100%);
}

.dashboard-app-v3 .modern-dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

/* Sidebar */
.dashboard-app-v3 .modern-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 22px;
  background: rgba(255, 255, 255, .84);
  border-right: 1px solid var(--app-border);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dashboard-app-v3 .modern-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--app-text);
  text-decoration: none;
}

.dashboard-app-v3 .modern-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #123f73 0%, #0f5e6d 55%, #1f8d66 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(15, 94, 109, .18);
}

.dashboard-app-v3 .modern-sidebar-brand strong {
  display: block;
  color: var(--app-text);
  font-size: 16px;
  line-height: 1.2;
}

.dashboard-app-v3 .modern-sidebar-brand small {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  margin-top: 2px;
}

.dashboard-app-v3 .modern-sidebar-nav {
  display: grid;
  gap: 8px;
}

.dashboard-app-v3 .modern-sidebar-nav a,
.dashboard-app-v3 .modern-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  color: #526473;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.dashboard-app-v3 .modern-sidebar-nav a i,
.dashboard-app-v3 .modern-logout i {
  color: var(--app-petrol);
  font-size: 18px;
}

.dashboard-app-v3 .modern-sidebar-nav a:hover,
.dashboard-app-v3 .modern-sidebar-nav a.is-active {
  color: var(--app-petrol-dark);
  background: var(--app-mint);
}

.dashboard-app-v3 .modern-sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.dashboard-app-v3 .modern-logout {
  background: #ffffff;
  border: 1px solid var(--app-border);
}

.dashboard-app-v3 .modern-logout:hover {
  color: var(--app-petrol-dark);
  background: var(--app-mint);
}

/* Content */
.dashboard-app-v3 .modern-dashboard-content {
  min-width: 0;
  padding: 22px clamp(18px, 3vw, 34px) 0;
}

.dashboard-app-v3 .modern-dashboard-topbar {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  min-height: 70px;
  padding: 14px 18px;
  border: 1px solid var(--app-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(15, 42, 56, .045);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(12px);
}

.dashboard-app-v3 .modern-topbar-label {
  display: block;
  margin-bottom: 2px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dashboard-app-v3 .modern-dashboard-topbar strong {
  color: var(--app-text);
  font-size: 18px;
}

.dashboard-app-v3 .modern-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-app-v3 .modern-dashboard-main {
  width: min(1180px, 100%);
  margin-top: 0;
}

/* Původní horní sticky header v novém režimu schovat, pokud by někde zůstal */
.dashboard-app-v3 > .portal-header {
  display: none;
}

/* Hero zjemněný jako app karta */
.dashboard-app-v3 .dashboard-hero,
.dashboard-app-v3 .portal-hero,
.dashboard-app-v3 .portal-hero-v2 {
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 10%, rgba(255,255,255,.16), transparent 26%),
    radial-gradient(circle at 8% 100%, rgba(31,141,102,.12), transparent 30%),
    linear-gradient(135deg, rgba(18, 63, 115, .94) 0%, rgba(15, 94, 109, .91) 52%, rgba(31, 141, 102, .88) 100%) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: 0 22px 48px rgba(15, 42, 56, .14) !important;
}

.dashboard-app-v3 .dashboard-hero h1,
.dashboard-app-v3 .dashboard-hero strong {
  color: #fff !important;
}

.dashboard-app-v3 .dashboard-hero p,
.dashboard-app-v3 .dashboard-hero small {
  color: rgba(255,255,255,.84) !important;
}

.dashboard-app-v3 .dashboard-hero .eyebrow {
  color: rgba(255,255,255,.88) !important;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 11px;
  width: fit-content;
}

/* Hero stat cards */
.dashboard-app-v3 .hero-stat-card {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: none !important;
}

.dashboard-app-v3 .hero-stat-card span,
.dashboard-app-v3 .hero-stat-card small {
  color: rgba(255,255,255,.76) !important;
}

.dashboard-app-v3 .hero-stat-card strong {
  color: #fff !important;
}

/* Karty */
.dashboard-app-v3 .portal-card,
.dashboard-app-v3 .panel-card,
.dashboard-app-v3 .credit-card,
.dashboard-app-v3 .dashboard-card,
.dashboard-app-v3 .support-card,
.dashboard-app-v3 .trust-card {
  border-color: var(--app-border) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 38px rgba(15, 42, 56, .055) !important;
}

/* Tlačítka */
.dashboard-app-v3 .btn-primary {
  background: var(--app-petrol) !important;
  border-color: var(--app-petrol) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(15, 94, 109, .16);
}

.dashboard-app-v3 .btn-primary:hover {
  background: var(--app-petrol-dark) !important;
  border-color: var(--app-petrol-dark) !important;
}

/* Badge */
.dashboard-app-v3 .status-badge.ok,
.dashboard-app-v3 .status-badge.active,
.dashboard-app-v3 .status-pill.active,
.dashboard-app-v3 .credit-count-badge,
.dashboard-app-v3 .mini-badge {
  color: var(--app-petrol) !important;
  background: var(--app-mint) !important;
  border-color: rgba(15, 94, 109, .16) !important;
}

/* Rychlé akce */
.dashboard-app-v3 .action-link.primary {
  background: var(--app-mint) !important;
  color: var(--app-petrol-dark) !important;
  border-color: rgba(15, 94, 109, .16) !important;
}

.dashboard-app-v3 .action-link:hover {
  background: #f3fafb !important;
  border-color: rgba(15, 94, 109, .24) !important;
}

/* Footer v novém app layoutu */
.dashboard-app-v3 .portal-footer {
  margin-top: 60px;
  margin-left: -34px;
  margin-right: -34px;
  background: linear-gradient(135deg, #083844 0%, #0f5e6d 100%) !important;
}

/* Mobil */
@media (max-width: 980px) {
  .dashboard-app-v3 .modern-dashboard-shell {
    display: block;
  }

  .dashboard-app-v3 .modern-sidebar {
    position: static;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .dashboard-app-v3 .modern-sidebar-brand {
    margin-bottom: 4px;
  }

  .dashboard-app-v3 .modern-sidebar-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-app-v3 .modern-sidebar-nav a {
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
  }

  .dashboard-app-v3 .modern-sidebar-nav a span {
    display: none;
  }

  .dashboard-app-v3 .modern-sidebar-bottom {
    display: none;
  }

  .dashboard-app-v3 .modern-dashboard-content {
    padding: 14px 12px 0;
  }

  .dashboard-app-v3 .modern-dashboard-topbar {
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-app-v3 .modern-topbar-actions {
    width: 100%;
  }

  .dashboard-app-v3 .modern-topbar-actions .btn {
    flex: 1;
  }

  .dashboard-app-v3 .portal-footer {
    margin-left: -12px;
    margin-right: -12px;
  }
}

@media (max-width: 560px) {
  .dashboard-app-v3 .modern-sidebar-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-app-v3 .modern-sidebar {
    gap: 12px;
  }

  .dashboard-app-v3 .modern-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }
}
/* Dashboard V3 – jemnější šířky a kompaktnější aplikace */
.dashboard-app-v3 .modern-dashboard-shell {
  grid-template-columns: 230px minmax(0, 1fr);
}

.dashboard-app-v3 .modern-dashboard-content {
  padding: 22px clamp(18px, 3vw, 38px) 0;
}

.dashboard-app-v3 .modern-dashboard-topbar,
.dashboard-app-v3 .modern-dashboard-main {
  width: min(1120px, 100%);
}
/* Dashboard V3 – kompaktnější hero */
.dashboard-app-v3 .dashboard-hero,
.dashboard-app-v3 .portal-hero,
.dashboard-app-v3 .portal-hero-v2 {
  padding: 34px 38px !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 42px rgba(15, 42, 56, .12) !important;
}

.dashboard-app-v3 .dashboard-hero h1 {
  font-size: clamp(2rem, 3vw, 3.1rem) !important;
  line-height: 1.08 !important;
  margin-bottom: 14px !important;
}

.dashboard-app-v3 .hero-stats-v2 {
  gap: 14px !important;
}

.dashboard-app-v3 .hero-stat-card {
  min-height: 96px !important;
  padding: 18px 20px !important;
}

.dashboard-app-v3 .hero-stat-card strong {
  font-size: 2rem !important;
}
/* Dashboard V3 – jemnější horní lišta */
.dashboard-app-v3 .modern-dashboard-topbar {
  min-height: 62px;
  padding: 12px 16px;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 42, 56, .035);
}

.dashboard-app-v3 .modern-dashboard-topbar strong {
  font-size: 16px;
}

.dashboard-app-v3 .modern-topbar-label {
  font-size: 11px;
}
/* Sidebar info karta */
.dashboard-app-v3 .modern-sidebar-card {
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15,94,109,.12), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f2fafb 100%);
  border: 1px solid rgba(15,94,109,.12);
  box-shadow: 0 12px 26px rgba(15,42,56,.04);
}

.dashboard-app-v3 .modern-sidebar-card span {
  display: block;
  color: #6b7b88;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.dashboard-app-v3 .modern-sidebar-card strong {
  display: block;
  color: #102a36;
  font-size: 18px;
  line-height: 1.2;
}

.dashboard-app-v3 .modern-sidebar-card small {
  display: block;
  color: #6b7b88;
  margin-top: 5px;
  font-size: 12px;
}
/* =========================================================
   Dashboard V3 – kompaktnější měřítko
========================================================= */

.dashboard-app-v3 .modern-dashboard-content {
  padding-top: 20px;
}

.dashboard-app-v3 .modern-dashboard-topbar,
.dashboard-app-v3 .modern-dashboard-main {
  width: min(1060px, 100%);
}

.dashboard-app-v3 .modern-dashboard-topbar {
  min-height: 58px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 20px;
}

.dashboard-app-v3 .modern-dashboard-topbar strong {
  font-size: 15px;
}

.dashboard-app-v3 .modern-topbar-label {
  font-size: 10px;
}

.dashboard-app-v3 .modern-topbar-actions .btn {
  min-height: 42px;
  padding: 0 16px;
}
/* Dashboard V3 – hero méně dominantní */
.dashboard-app-v3 .dashboard-hero,
.dashboard-app-v3 .portal-hero,
.dashboard-app-v3 .portal-hero-v2 {
  padding: 30px 34px !important;
  border-radius: 24px !important;
  min-height: auto !important;
}

.dashboard-app-v3 .dashboard-hero h1 {
  font-size: clamp(2rem, 2.6vw, 2.7rem) !important;
  margin-bottom: 12px !important;
}

.dashboard-app-v3 .hero-state {
  margin-top: 8px !important;
}

.dashboard-app-v3 .hero-stats-v2 {
  margin-top: 22px !important;
  gap: 12px !important;
}

.dashboard-app-v3 .hero-stat-card {
  min-height: 86px !important;
  padding: 15px 18px !important;
  border-radius: 18px !important;
}

.dashboard-app-v3 .hero-stat-card strong {
  font-size: 1.75rem !important;
}

.dashboard-app-v3 .hero-actions-v2 {
  margin-top: 18px !important;
}

.dashboard-app-v3 .hero-meta-v2 {
  margin-top: 14px !important;
}
/* Dashboard V3 – sidebar kompaktnější */
.dashboard-app-v3 .modern-sidebar {
  padding: 22px 18px;
  gap: 22px;
}

.dashboard-app-v3 .modern-sidebar-nav {
  gap: 6px;
}

.dashboard-app-v3 .modern-sidebar-nav a,
.dashboard-app-v3 .modern-logout {
  min-height: 42px;
  border-radius: 14px;
  font-size: 13px;
}

.dashboard-app-v3 .modern-sidebar-card {
  padding: 14px;
  border-radius: 18px;
}

.dashboard-app-v3 .modern-sidebar-card strong {
  font-size: 16px;
}
/* Dashboard V3 – karty blíž k hero */
.dashboard-app-v3 .dashboard-layout,
.dashboard-app-v3 .portal-grid {
  margin-top: 18px !important;
  gap: 20px !important;
}

.dashboard-app-v3 .portal-card,
.dashboard-app-v3 .panel-card,
.dashboard-app-v3 .credit-card,
.dashboard-app-v3 .dashboard-card,
.dashboard-app-v3 .support-card,
.dashboard-app-v3 .trust-card {
  border-radius: 22px !important;
}
/* Dashboard V3 – rozumná šířka obsahu */
.dashboard-app-v3 .modern-dashboard-topbar,
.dashboard-app-v3 .modern-dashboard-main {
  width: min(1160px, 100%) !important;
}
/* =========================================================
   Dashboard V3 – mobilní oprava sidebaru a hero
========================================================= */

@media (max-width: 980px) {
  .dashboard-app-v3 .modern-dashboard-shell {
    display: block !important;
  }

  .dashboard-app-v3 .modern-sidebar {
    position: sticky !important;
    top: 0;
    z-index: 50;
    height: auto !important;
    padding: 12px 14px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(15, 94, 109, .12);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    gap: 12px !important;
  }

  .dashboard-app-v3 .modern-sidebar-brand {
    margin: 0 !important;
  }

  .dashboard-app-v3 .modern-brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
  }

  .dashboard-app-v3 .modern-sidebar-brand strong {
    font-size: 15px !important;
  }

  .dashboard-app-v3 .modern-sidebar-brand small {
    font-size: 11px !important;
  }

  .dashboard-app-v3 .modern-sidebar-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  .dashboard-app-v3 .modern-sidebar-nav a {
    min-height: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 14px !important;
  }

  .dashboard-app-v3 .modern-sidebar-nav a span {
    display: none !important;
  }

  .dashboard-app-v3 .modern-sidebar-nav a i {
    font-size: 18px !important;
  }

  .dashboard-app-v3 .modern-sidebar-card,
  .dashboard-app-v3 .modern-sidebar-bottom {
    display: none !important;
  }

  .dashboard-app-v3 .modern-dashboard-content {
    padding: 14px 12px 0 !important;
  }

  .dashboard-app-v3 .modern-dashboard-topbar {
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .dashboard-app-v3 .modern-topbar-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
    width: 100% !important;
  }

  .dashboard-app-v3 .modern-topbar-actions .btn {
    width: 100% !important;
    min-height: 44px !important;
  }
}
@media (max-width: 680px) {
  .dashboard-app-v3 .dashboard-hero,
  .dashboard-app-v3 .portal-hero,
  .dashboard-app-v3 .portal-hero-v2 {
    padding: 26px 20px !important;
    border-radius: 24px !important;
  }

  .dashboard-app-v3 .hero-main-copy h1,
  .dashboard-app-v3 .dashboard-hero h1 {
    font-size: 2rem !important;
    line-height: 1.12 !important;
  }

  .dashboard-app-v3 .hero-state strong {
    font-size: 14px !important;
  }

  .dashboard-app-v3 .hero-state p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .dashboard-app-v3 .hero-stats-v2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 18px !important;
  }

  .dashboard-app-v3 .hero-stat-card {
    min-height: auto !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
  }

  .dashboard-app-v3 .hero-stat-card strong {
    font-size: 1.7rem !important;
    line-height: 1.1 !important;
    word-break: normal !important;
  }

  .dashboard-app-v3 .hero-stat-card span,
  .dashboard-app-v3 .hero-stat-card small {
    font-size: 11px !important;
    line-height: 1.35 !important;
    word-break: normal !important;
  }

  .dashboard-app-v3 .hero-actions-v2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .dashboard-app-v3 .hero-actions-v2 .btn {
    width: 100% !important;
    min-height: 44px !important;
  }

  .dashboard-app-v3 .hero-meta-v2 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .dashboard-app-v3 .hero-service-pill-v2 {
    position: static !important;
    width: fit-content !important;
    margin-bottom: 14px !important;
  }
}
@media (min-width: 981px) {
  .dashboard-app-v3 .dashboard-hero,
  .dashboard-app-v3 .portal-hero,
  .dashboard-app-v3 .portal-hero-v2 {
    padding: 38px 42px !important;
  }

  .dashboard-app-v3 .hero-stats-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
.dashboard-app-v3 .modern-brand-mark i {
  font-size: 20px;
  line-height: 1;
}
.dashboard-app-v3 .modern-sidebar-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e6f4f2;
  color: #0f5e6d;
  border: 1px solid rgba(15, 94, 109, .14);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.dashboard-app-v3 #hac-access-card,
.dashboard-app-v3 #support-actions {
  scroll-margin-top: 24px;
}
@media (max-width: 980px) {
  .dashboard-app-v3 #hac-access-card,
  .dashboard-app-v3 #support-actions {
    scroll-margin-top: 120px;
  }
}
/* =========================================================
   Moje ENC Dashboard V3 – finální barevný kabátek
   Petrolej / mint / bankovní čistý styl
========================================================= */

.dashboard-app-v3 {
  --me-navy: #103f5f;
  --me-petrol: #0f5e6d;
  --me-petrol-dark: #0b4954;
  --me-mint: #e7f4f3;
  --me-mint-2: #f3faf9;
  --me-border: rgba(15, 94, 109, .13);
  --me-text: #102a36;
  --me-muted: #6b7b88;
  --me-shadow: 0 18px 42px rgba(15, 42, 56, .07);

  background:
    radial-gradient(circle at 82% 10%, rgba(15, 94, 109, .07), transparent 28rem),
    radial-gradient(circle at 10% 88%, rgba(31, 141, 102, .06), transparent 24rem),
    linear-gradient(180deg, #f6fbfa 0%, #eef6f7 100%) !important;
}

/* Sidebar */
.dashboard-app-v3 .modern-sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(248,252,252,.94) 100%) !important;
  border-right: 1px solid var(--me-border) !important;
}

.dashboard-app-v3 .modern-brand-mark {
  background:
    linear-gradient(135deg, #103f5f 0%, #0f5e6d 55%, #1f8d66 100%) !important;
  box-shadow: 0 12px 24px rgba(15, 94, 109, .18) !important;
}

.dashboard-app-v3 .modern-sidebar-brand strong,
.dashboard-app-v3 .modern-sidebar-card strong {
  color: var(--me-text) !important;
}

.dashboard-app-v3 .modern-sidebar-brand small,
.dashboard-app-v3 .modern-sidebar-card small {
  color: var(--me-muted) !important;
}

.dashboard-app-v3 .modern-sidebar-nav a,
.dashboard-app-v3 .modern-logout {
  color: #526473 !important;
}

.dashboard-app-v3 .modern-sidebar-nav a i,
.dashboard-app-v3 .modern-logout i {
  color: var(--me-petrol) !important;
}

.dashboard-app-v3 .modern-sidebar-nav a:hover,
.dashboard-app-v3 .modern-sidebar-nav a.is-active {
  background: var(--me-mint) !important;
  color: var(--me-petrol-dark) !important;
}

.dashboard-app-v3 .modern-sidebar-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(15,94,109,.10), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3faf9 100%) !important;
  border-color: var(--me-border) !important;
}

/* Horní topbar */
.dashboard-app-v3 .modern-dashboard-topbar {
  background: rgba(255,255,255,.90) !important;
  border-color: var(--me-border) !important;
  box-shadow: 0 14px 34px rgba(15, 42, 56, .045) !important;
}

.dashboard-app-v3 .modern-topbar-label {
  color: var(--me-muted) !important;
}

.dashboard-app-v3 .modern-dashboard-topbar strong {
  color: var(--me-text) !important;
}

/* Hero – nový jemnější premium gradient */
.dashboard-app-v3 .dashboard-hero,
.dashboard-app-v3 .portal-hero,
.dashboard-app-v3 .portal-hero-v2 {
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.14), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(255,255,255,.10), transparent 30%),
    linear-gradient(135deg, #123f73 0%, #0f5e6d 50%, #248a72 100%) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: 0 22px 48px rgba(15, 42, 56, .14) !important;
}

.dashboard-app-v3 .dashboard-hero h1,
.dashboard-app-v3 .dashboard-hero h2,
.dashboard-app-v3 .dashboard-hero strong {
  color: #ffffff !important;
}

.dashboard-app-v3 .dashboard-hero p,
.dashboard-app-v3 .dashboard-hero small {
  color: rgba(255,255,255,.84) !important;
}

.dashboard-app-v3 .dashboard-hero .eyebrow {
  background: rgba(255,255,255,.13) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: rgba(255,255,255,.92) !important;
}

/* Stat karty v hero */
.dashboard-app-v3 .hero-stat-card {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  box-shadow: none !important;
}

.dashboard-app-v3 .hero-stat-card span,
.dashboard-app-v3 .hero-stat-card small {
  color: rgba(255,255,255,.78) !important;
}

.dashboard-app-v3 .hero-stat-card strong {
  color: #ffffff !important;
}

/* Tlačítka */
.dashboard-app-v3 .btn-primary,
.dashboard-app-v3 .support-phone {
  background: var(--me-petrol) !important;
  border-color: var(--me-petrol) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15,94,109,.16) !important;
}

.dashboard-app-v3 .btn-primary:hover,
.dashboard-app-v3 .support-phone:hover {
  background: var(--me-petrol-dark) !important;
  border-color: var(--me-petrol-dark) !important;
  color: #ffffff !important;
}

.dashboard-app-v3 .btn-light,
.dashboard-app-v3 .btn-secondary {
  color: var(--me-petrol-dark) !important;
  background: #ffffff !important;
  border-color: rgba(15,94,109,.16) !important;
}

.dashboard-app-v3 .btn-light:hover,
.dashboard-app-v3 .btn-secondary:hover {
  background: var(--me-mint) !important;
  color: var(--me-petrol-dark) !important;
}

/* Karty */
.dashboard-app-v3 .portal-card,
.dashboard-app-v3 .panel-card,
.dashboard-app-v3 .credit-card,
.dashboard-app-v3 .dashboard-card,
.dashboard-app-v3 .support-card,
.dashboard-app-v3 .trust-card {
  background: rgba(255,255,255,.96) !important;
  border-color: var(--me-border) !important;
  box-shadow: var(--me-shadow) !important;
}

/* Nadpisové štítky */
.dashboard-app-v3 .eyebrow,
.dashboard-app-v3 .card-title .eyebrow {
  color: var(--me-petrol) !important;
}

/* Badge */
.dashboard-app-v3 .status-badge.ok,
.dashboard-app-v3 .status-badge.active,
.dashboard-app-v3 .status-pill.active,
.dashboard-app-v3 .credit-count-badge,
.dashboard-app-v3 .mini-badge {
  color: var(--me-petrol) !important;
  background: var(--me-mint) !important;
  border-color: rgba(15,94,109,.18) !important;
}

/* Nízký kredit necháváme oranžový – je to důležitý stav */
.dashboard-app-v3 .status-badge.low {
  color: var(--warning-text) !important;
  background: var(--warning-soft) !important;
  border-color: #fde5b5 !important;
}

/* Rychlé akce */
.dashboard-app-v3 .action-link.primary {
  background: var(--me-mint) !important;
  color: var(--me-petrol-dark) !important;
  border-color: rgba(15,94,109,.18) !important;
}

.dashboard-app-v3 .action-link:hover {
  background: var(--me-mint-2) !important;
  border-color: rgba(15,94,109,.24) !important;
}

/* Ikony v rychlých akcích */
.dashboard-app-v3 .action-icon,
.dashboard-app-v3 .trust-point-mark {
  background:
    linear-gradient(135deg, rgba(15,94,109,.13), rgba(15,94,109,.05)) !important;
  border-color: rgba(15,94,109,.14) !important;
  color: var(--me-petrol) !important;
}

/* Podpora a bezpečnost */
.dashboard-app-v3 .support-card,
.dashboard-app-v3 .trust-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(15,94,109,.05), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfb 100%) !important;
}

/* Footer */
.dashboard-app-v3 .portal-footer {
  background: linear-gradient(135deg, #083844 0%, #0f5e6d 100%) !important;
}

.dashboard-app-v3 .portal-footer,
.dashboard-app-v3 .portal-footer span,
.dashboard-app-v3 .portal-footer-copy {
  color: rgba(255,255,255,.74) !important;
}

.dashboard-app-v3 .portal-footer a,
.dashboard-app-v3 .portal-footer strong {
  color: #ffffff !important;
}