/*
 * theme.css - modern vizualis reteg a style.css folott.
 * A design-tokenek feluldefinialasaval az egesz app frissul, a meglevo
 * elrendezes valtoztatasa nelkul.
 */

:root {
    --c-ink:        #0B1220;
    --c-ink-2:      #334155;
    --c-muted:      #64748B;
    --c-subtle:     #94A3B8;
    --c-line:       #E7EBF3;
    --c-line-soft:  #F1F5F9;
    --c-bg:         #F4F6FB;
    --c-surface:    #FFFFFF;

    --c-blue:       #4F46E5;   /* indigo primary */
    --c-blue-light: #EEF0FF;
    --c-blue-dark:  #4338CA;
    --c-teal:       #0EA5A4;
    --c-teal-light: #ECFEFF;

    --brand-grad:   linear-gradient(135deg, #4F46E5 0%, #6366F1 45%, #0EA5E9 100%);
    --brand-grad-soft: linear-gradient(135deg, rgba(79,70,229,.12), rgba(14,165,233,.10));

    --sidebar-bg:   #0B1120;
    --sidebar-text: rgba(226,232,240,.86);
    --sidebar-muted:rgba(148,163,184,.68);
    --sidebar-line: rgba(148,163,184,.14);
    --sidebar-active: rgba(99,102,241,.20);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
    --shadow-sm: 0 2px 6px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 10px 24px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
    --shadow-lg: 0 24px 50px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.06);
}

body {
    background:
        radial-gradient(1200px 480px at 100% -10%, rgba(99,102,241,.08), transparent 60%),
        radial-gradient(900px 400px at -10% 0%, rgba(14,165,233,.07), transparent 55%),
        var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Oldalsav ---------- */
.app-sidebar {
    background:
        radial-gradient(600px 300px at 50% -20%, rgba(99,102,241,.28), transparent 60%),
        var(--sidebar-bg);
    border-right: 1px solid rgba(148,163,184,.10);
}
.sidebar-link {
    border-radius: 12px;
    font-weight: 500;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar-link:hover { transform: translateX(2px); }
.sidebar-link.is-active {
    background: var(--sidebar-active);
    box-shadow: inset 0 0 0 1px rgba(129,140,248,.35);
    color: #fff;
}
.sidebar-link.is-active .sidebar-icon { color: #C7D2FE; }
.sidebar-section-label {
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--sidebar-muted);
}
.sidebar-bottom-card {
    background: var(--brand-grad);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-md);
}
.sidebar-bottom-card small { color: rgba(255,255,255,.82); }

/* ---------- Felso sav ---------- */
.app-topbar {
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--c-line);
}
.topbar-search input {
    border-radius: 999px;
    background: var(--c-line-soft);
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.topbar-search input:focus {
    background: #fff;
    border-color: var(--c-blue);
    box-shadow: 0 0 0 4px var(--c-blue-light);
}

/* ---------- Kartyak ---------- */
.card {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
.dashboard-panel:hover { box-shadow: var(--shadow-md); }

.dashboard-hero {
    position: relative;
    overflow: hidden;
    background: var(--brand-grad);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
}
.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 240px at 90% -30%, rgba(255,255,255,.28), transparent 60%);
    pointer-events: none;
}
.dashboard-hero .eyebrow { color: rgba(255,255,255,.85); }
.dashboard-hero p { color: rgba(255,255,255,.9); }
.dashboard-focus-card {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    backdrop-filter: blur(6px);
    border-radius: var(--radius-md);
}
.dashboard-focus-card small { color: rgba(255,255,255,.82); }

/* ---------- Gombok ---------- */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--brand-grad);
    border: none;
    box-shadow: 0 8px 18px rgba(79,70,229,.28);
}
.btn-primary:hover, .btn-primary:focus {
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(79,70,229,.34);
}
.btn-lg { border-radius: 14px; }
.btn-outline-primary {
    border-color: var(--c-blue);
    color: var(--c-blue);
}
.btn-outline-primary:hover {
    background: var(--c-blue);
    border-color: var(--c-blue);
}

/* ---------- Urlapok ---------- */
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--c-line);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 4px var(--c-blue-light);
}
.form-label { font-weight: 600; color: var(--c-ink-2); }

/* ---------- Tablazatok ---------- */
.table > :not(caption) > * > * { padding: .85rem 1rem; }
.table thead th {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11.5px;
    color: var(--c-muted);
    border-bottom: 1px solid var(--c-line);
}
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: var(--c-line-soft); }

/* ---------- Badge / cimke ---------- */
.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .4em .7em;
}

/* ---------- Ertesitesek ---------- */
.alert { border: 1px solid transparent; border-radius: 12px; }
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-danger  { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-info    { background: var(--c-blue-light); border-color: #C7D2FE; color: #3730A3; }

/* ---------- Belepteto / auth oldalak ---------- */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(99,102,241,.16), transparent 60%),
        radial-gradient(700px 460px at 0% 100%, rgba(14,165,233,.14), transparent 55%),
        var(--c-bg);
}
.auth-main { width: 100%; }
.auth-card-wrap { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-card {
    padding: 34px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-lg);
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--brand-grad) border-box;
    border: 1px solid transparent;
}
.auth-card h1 { font-size: 1.6rem; font-weight: 800; margin: 4px 0 10px; }
.auth-card .eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-blue);
}
.auth-lead { color: var(--c-muted); line-height: 1.6; margin-bottom: 20px; }
.auth-form { display: grid; gap: 14px; }
.auth-form .form-label { margin-bottom: 4px; }
.auth-form-links { text-align: center; margin-top: 4px; }
.auth-form-links a { color: var(--c-blue); text-decoration: none; font-weight: 600; font-size: 14px; }
.auth-form-links a:hover { text-decoration: underline; }
.auth-alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 4px; }
.auth-alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.auth-alert-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }

/* A belepteto urlap alatti "elfelejtett jelszo" link a landing oldalon is. */
.auth-form-links { margin-top: 2px; }

/* ---------- Finomhangolas ---------- */
.back-link { color: var(--c-blue); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.list-group-item { border-color: var(--c-line-soft); }

@media (max-width: 575.98px) {
    .auth-card { padding: 26px 20px; }
}

/* ---------- Public login / landing page polish ---------- */
body.is-guest {
    background: #F7FAFF;
}

body.is-guest .auth-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
    background:
        linear-gradient(180deg, #020817 0, #07162D 31rem, #F7FAFF 31rem, #F7FAFF 100%);
}

body.is-guest .auth-main,
body.is-guest .app-content {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.is-guest .landing-auth {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
    background: #F7FAFF;
}

body.is-guest .landing-auth > .public-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 5vw;
    border: 0;
    border-radius: 0;
    background: rgba(2, 8, 23, .96);
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 18px 42px rgba(2, 8, 23, .24);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}

body.is-guest .public-logo {
    min-width: 0;
}

body.is-guest .public-logo-frame,
body.is-guest .public-logo-card {
    width: 278px;
    height: 58px;
    padding: 8px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    overflow: hidden;
}

body.is-guest .public-logo-frame img,
body.is-guest .public-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

body.is-guest .public-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.is-guest .public-nav a {
    min-height: 44px;
    padding: 11px 15px;
    color: rgba(226, 232, 240, .9);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

body.is-guest .public-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

body.is-guest .public-nav .public-nav-contact {
    color: #fff;
    background: linear-gradient(135deg, #0062FC, #00C8FD);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .36);
}

body.is-guest .landing-auth > .landing-auth-panel {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.is-guest .landing-auth-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 520px);
    align-items: center;
    gap: 42px;
    min-height: 600px;
    padding: 86px 5vw 74px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(2, 8, 23, .98) 0%, rgba(7, 22, 45, .98) 48%, rgba(17, 70, 155, .94) 100%);
}

body.is-guest .landing-auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 0 45%, rgba(14, 165, 233, .14) 46%, transparent 72%),
        repeating-linear-gradient(112deg, rgba(125, 211, 252, .08) 0 1px, transparent 1px 22px);
    opacity: .52;
    pointer-events: none;
}

body.is-guest .landing-auth-panel > * {
    position: relative;
    z-index: 1;
}

body.is-guest .landing-hero-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.is-guest .landing-brand-row {
    margin-bottom: 42px;
}

body.is-guest .landing-brand-row strong,
body.is-guest .landing-brand-row span {
    color: #fff;
}

body.is-guest .brand-mark {
    background: linear-gradient(135deg, #0062FC, #00C8FD);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .34);
}

body.is-guest .landing-hero-copy .eyebrow,
body.is-guest .landing-section-head .eyebrow,
body.is-guest .auth-card-head .eyebrow {
    color: #7FD8FF;
    letter-spacing: .12em;
}

body.is-guest .landing-hero-copy h1 {
    max-width: 980px;
    margin: 0 0 26px;
    color: #fff;
    font-size: 4.85rem;
    line-height: .98;
    font-weight: 850;
}

body.is-guest .landing-highlight {
    display: inline;
    color: #7FD8FF;
}

body.is-guest .landing-hero-copy p {
    max-width: 780px;
    color: rgba(226, 232, 240, .86);
    font-size: 1.15rem;
    line-height: 1.75;
}

body.is-guest .landing-action-row {
    gap: 14px;
    margin-top: 30px;
}

body.is-guest .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

body.is-guest .btn svg {
    width: 18px;
    height: 18px;
}

body.is-guest .btn-primary {
    background: linear-gradient(135deg, #0062FC, #00C8FD);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .32);
}

body.is-guest .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .07);
}

body.is-guest .btn-outline-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

body.is-guest .landing-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
}

body.is-guest .landing-metric-grid > div {
    min-height: 94px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
}

body.is-guest .landing-metric-grid span {
    display: block;
    color: #93C5FD;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.is-guest .landing-metric-grid strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 1.1rem;
}

body.is-guest .landing-access-card {
    padding: 34px;
    border-radius: 22px;
    background: #fff;
    color: #0F172A;
    box-shadow: 0 30px 70px rgba(2, 8, 23, .24);
}

body.is-guest .landing-access-card h2 {
    color: #0F172A;
    font-size: 2rem;
    line-height: 1.12;
}

body.is-guest .landing-access-card p,
body.is-guest .landing-login-note,
body.is-guest .landing-access-steps small {
    color: #64748B;
}

body.is-guest .landing-access-steps {
    display: grid;
    gap: 12px;
    margin: 26px 0;
}

body.is-guest .landing-access-steps > div {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 10px 14px;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #fff;
}

body.is-guest .landing-access-steps span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    background: #0062FC;
    font-weight: 800;
}

body.is-guest .landing-access-steps strong {
    color: #0F172A;
}

body.is-guest .landing-login-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
}

body.is-guest .landing-auth > section,
body.is-guest .landing-auth > .public-site-footer {
    width: min(calc(100% - 40px), 1500px);
    margin: 28px auto 0;
}

body.is-guest .landing-pricing-section,
body.is-guest .landing-feature-section,
body.is-guest .landing-flow-section,
body.is-guest .landing-showcase-section,
body.is-guest .landing-audience-section,
body.is-guest .landing-application-section,
body.is-guest .landing-login-section {
    padding: 46px;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
}

body.is-guest .landing-section-head {
    max-width: 850px;
    margin-bottom: 26px;
}

body.is-guest .landing-section-head h2 {
    color: #0F172A;
    font-size: 2.25rem;
    line-height: 1.12;
    font-weight: 850;
}

body.is-guest .landing-section-head p {
    color: #64748B;
    line-height: 1.7;
}

body.is-guest .landing-feature-grid {
    gap: 16px;
}

body.is-guest .landing-feature-card,
body.is-guest .landing-audience-grid article,
body.is-guest .landing-benefit-list > div,
body.is-guest .landing-application-copy > div,
body.is-guest .landing-flow-grid > div {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #F8FBFF);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

body.is-guest .landing-feature-card {
    position: relative;
    min-height: 150px;
    padding: 22px 22px 22px 76px;
}

body.is-guest .landing-feature-card > svg {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 38px;
    height: 38px;
    padding: 8px;
    color: #0062FC;
    border-radius: 12px;
    background: #EFF6FF;
}

body.is-guest .landing-feature-card h3,
body.is-guest .landing-audience-grid strong,
body.is-guest .landing-flow-grid strong {
    color: #0F172A;
}

body.is-guest .landing-feature-card p,
body.is-guest .landing-audience-grid p,
body.is-guest .landing-flow-grid small {
    color: #64748B;
    line-height: 1.6;
}

body.is-guest .landing-flow-grid {
    position: relative;
    gap: 18px;
}

body.is-guest .landing-flow-grid span {
    background: #0062FC;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

body.is-guest .landing-showcase-grid,
body.is-guest .landing-application-grid {
    gap: 24px;
}

body.is-guest .landing-preview-card {
    min-height: 360px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(2, 8, 23, .98), rgba(15, 45, 92, .98));
    box-shadow: 0 18px 44px rgba(2, 8, 23, .16);
}

body.is-guest .landing-preview-card * {
    color: #fff;
}

body.is-guest .landing-preview-list > div,
body.is-guest .landing-preview-stats > div {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
}

body.is-guest .landing-application-form,
body.is-guest .landing-login-card {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .08);
}

body.is-guest .landing-inline-login {
    align-items: end;
}

body.is-guest .landing-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 42px;
    color: #fff;
    border-radius: 22px;
    background: linear-gradient(115deg, #07162D, #0050D6);
    box-shadow: 0 22px 50px rgba(29, 78, 216, .18);
}

body.is-guest .landing-final-cta h2,
body.is-guest .landing-final-cta .eyebrow {
    color: #fff;
}

body.is-guest .public-site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0 42px;
    color: #64748B;
}

body.is-guest .public-site-footer strong {
    display: block;
    color: #0F172A;
}

body.is-guest .public-site-footer span {
    display: block;
}

@media (max-width: 1180px) {
    body.is-guest .landing-auth-panel {
        grid-template-columns: 1fr;
        padding: 64px 5vw;
    }

    body.is-guest .landing-access-card {
        max-width: 720px;
    }

    body.is-guest .landing-hero-copy h1 {
        font-size: 4rem;
    }
}

@media (max-width: 860px) {
    body.is-guest .landing-auth > .public-site-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px 18px;
    }

    body.is-guest .public-logo-frame,
    body.is-guest .public-logo-card {
        width: 240px;
        height: 52px;
    }

    body.is-guest .public-nav {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    body.is-guest .public-nav a {
        white-space: nowrap;
    }

    body.is-guest .landing-auth-panel {
        min-height: auto;
        padding: 46px 20px;
    }

    body.is-guest .landing-hero-copy h1 {
        font-size: 3.1rem;
        line-height: 1.04;
    }

    body.is-guest .landing-metric-grid,
    body.is-guest .landing-feature-grid,
    body.is-guest .landing-flow-grid,
    body.is-guest .landing-audience-grid,
    body.is-guest .landing-showcase-grid,
    body.is-guest .landing-application-grid,
    body.is-guest .landing-form-grid,
    body.is-guest .landing-inline-login {
        grid-template-columns: 1fr;
    }

    body.is-guest .landing-auth > section,
    body.is-guest .landing-auth > .public-site-footer {
        width: calc(100% - 28px);
    }

    body.is-guest .landing-pricing-section,
    body.is-guest .landing-feature-section,
    body.is-guest .landing-flow-section,
    body.is-guest .landing-showcase-section,
    body.is-guest .landing-audience-section,
    body.is-guest .landing-application-section,
    body.is-guest .landing-login-section {
        padding: 28px;
        border-radius: 20px;
    }

    body.is-guest .landing-section-head h2 {
        font-size: 1.8rem;
    }

    body.is-guest .landing-final-cta,
    body.is-guest .public-site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    body.is-guest .public-logo-frame,
    body.is-guest .public-logo-card {
        width: 210px;
        height: 48px;
    }

    body.is-guest .public-nav a:not(.public-nav-contact):not([href="#belepes"]) {
        display: none;
    }

    body.is-guest .public-nav {
        justify-content: flex-end;
    }

    body.is-guest .landing-brand-row {
        margin-bottom: 30px;
    }

    body.is-guest .landing-hero-copy h1 {
        font-size: 2.35rem;
    }

    body.is-guest .landing-hero-copy p {
        font-size: 1rem;
    }

    body.is-guest .landing-action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.is-guest .landing-access-card,
    body.is-guest .landing-pricing-section,
    body.is-guest .landing-feature-section,
    body.is-guest .landing-flow-section,
    body.is-guest .landing-showcase-section,
    body.is-guest .landing-audience-section,
    body.is-guest .landing-application-section,
    body.is-guest .landing-login-section,
    body.is-guest .landing-final-cta {
        padding: 22px;
    }

    body.is-guest .landing-feature-card {
        padding: 74px 18px 20px;
    }
}

/* =====================================================================
   PREMIUM APP DESIGN SYSTEM — bejelentkezés utáni felület
   Egyetlen, tiszta forrás (a korábbi 8 egymásra rakott patch-réteg
   helyett). Attio / Pipedrive ihletésű letisztult, magabiztos irány:
   visszafogott gradiens, egységes rács, valódi kártya-hierarchia.
   ===================================================================== */

:root {
    /* --- Felszín és szöveg --- */
    --app-bg:          #F3F6F6;
    --app-surface:     #FFFFFF;
    --app-surface-2:   #F6F9F9;
    --app-line:        #E1E8E7;
    --app-line-strong: #CDD9D8;
    --app-ink:         #0F1A19;
    --app-text:        #1D2B2A;
    --app-muted:       #62726F;
    --app-faint:       #93A19E;

    /* --- Márka: az LDwebdesign logóból kinyert valódi grádiens (navy → royal kék → cián) --- */
    --app-navy:        #04173A;
    --app-navy-2:      #0A2C64;
    --app-blue:        #0062FC;
    --app-blue-dark:   #0050D6;
    --app-blue-light:  #E7F1FF;
    --app-cyan:        #00C8FD;

    /* --- Státusz --- */
    --app-green:       #12946A;
    --app-green-light: #E5F6EE;
    --app-amber:       #B96A0C;
    --app-amber-light: #FCF1DF;
    --app-red:         #D14B36;
    --app-red-light:   #FBEAE6;
    --app-violet:      #7C58E8;
    --app-violet-light:#F0EBFC;

    /* --- Skálák --- */
    --app-radius-sm:   10px;
    --app-radius-md:   14px;
    --app-radius-lg:   18px;
    --app-radius-xl:   22px;
    --app-shadow-sm:   0 1px 2px rgba(13,25,23,.06), 0 1px 1px rgba(13,25,23,.04);
    --app-shadow-md:   0 8px 20px rgba(13,25,23,.07), 0 2px 6px rgba(13,25,23,.05);
    --app-shadow-lg:   0 20px 46px rgba(11,55,50,.16);
    --app-sidebar-w:   256px;
    --app-page-max:    1420px;
    --app-gap:         18px;
}

/* --------------------------------------------------------------------
   TOKEN-HÍD: a style.css (a réteg-alap, ~4500 sor) a saját --c-* és
   --sidebar-* változóit használja SZÁZNÁL is több helyen szerte az
   alkalmazásban. Eddig a theme.css csak egyenkénti class-okat írt
   felül, ami whack-a-mole hibákhoz vezetett (pl. quote-list-price,
   quote-list-meta-item — sosem kaptak explicit felülírást, ezért a
   RÉGI kék tokent használták, ami rossz kontrasztot adott az ÚJ sötét
   hero-hátterekkel). Itt magukat az alap-tokeneket írjuk felül, így a
   style.css MINDEN meglévő szabálya automatikusan az új paletta szerint
   jelenik meg — nem kell egyenként vadászni a class-okra.
   -------------------------------------------------------------------- */
body.is-authenticated {
    --c-ink:         var(--app-ink);
    --c-ink-2:       var(--app-text);
    --c-muted:       var(--app-muted);
    --c-subtle:      var(--app-faint);
    --c-line:        var(--app-line);
    --c-line-soft:   var(--app-surface-2);
    --c-bg:          var(--app-bg);
    --c-surface:     var(--app-surface);

    --c-blue:        var(--app-blue);
    --c-blue-light:  var(--app-blue-light);
    --c-blue-dark:   var(--app-blue-dark);
    --c-teal:        var(--app-cyan);
    --c-teal-light:  #E4F8FA;
    --c-green:       var(--app-green);
    --c-green-light: var(--app-green-light);
    --c-amber:       var(--app-amber);
    --c-amber-light: var(--app-amber-light);
    --c-red:         var(--app-red);
    --c-red-light:   var(--app-red-light);
    --c-purple:      var(--app-violet);
    --c-purple-light:var(--app-violet-light);

    --sidebar-bg:     var(--app-navy);
    --sidebar-text:   rgba(226,238,236,.82);
    --sidebar-muted:  rgba(178,196,193,.68);
    --sidebar-line:   rgba(255,255,255,.08);
    --sidebar-active: rgba(0,98,252,.24);

    --radius-sm: var(--app-radius-sm);
    --radius-md: var(--app-radius-md);
    --radius-lg: var(--app-radius-lg);
    --radius-xl: var(--app-radius-xl);
    --shadow-xs: var(--app-shadow-sm);
    --shadow-sm: var(--app-shadow-sm);
    --shadow-md: var(--app-shadow-md);
    --shadow-lg: var(--app-shadow-lg);
}

/* --------------------------------------------------------------------
   Mozgás-rendszer: visszafogott, célzott animációk
   -------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes app-fade-up {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes app-pulse-ring {
        0%   { box-shadow: 0 0 0 0 rgba(209,75,54,.35); }
        70%  { box-shadow: 0 0 0 7px rgba(209,75,54,0); }
        100% { box-shadow: 0 0 0 0 rgba(209,75,54,0); }
    }
    @keyframes app-sheen {
        0%   { background-position: -140% 0; }
        100% { background-position: 240% 0; }
    }

    body.is-authenticated .dashboard-hero,
    body.is-authenticated .dashboard-hero.card,
    body.is-authenticated .page-header,
    body.is-authenticated .calendar-hero,
    body.is-authenticated .lead-banner,
    body.is-authenticated .quote-list-head,
    body.is-authenticated .settings-page-head,
    body.is-authenticated .portal-admin-hero,
    body.is-authenticated .email-automation-hero,
    body.is-authenticated .ac-catalog-hero,
    body.is-authenticated .registry-list-hero {
        animation: app-fade-up .42s cubic-bezier(.2,.7,.3,1) both;
    }

    body.is-authenticated .dashboard-stat-card,
    body.is-authenticated .next-action-card,
    body.is-authenticated .quick-list-item,
    body.is-authenticated .source-summary-card,
    body.is-authenticated .pipeline-card {
        animation: app-fade-up .38s cubic-bezier(.2,.7,.3,1) both;
    }
    body.is-authenticated .dashboard-stat-grid > *:nth-child(1) { animation-delay: .02s; }
    body.is-authenticated .dashboard-stat-grid > *:nth-child(2) { animation-delay: .06s; }
    body.is-authenticated .dashboard-stat-grid > *:nth-child(3) { animation-delay: .10s; }
    body.is-authenticated .dashboard-stat-grid > *:nth-child(4) { animation-delay: .14s; }

    body.is-authenticated .sla-breached,
    body.is-authenticated .sla-danger {
        animation: app-pulse-ring 2.2s ease-out infinite;
    }
}

/* --------------------------------------------------------------------
   Alap
   -------------------------------------------------------------------- */
body.is-authenticated {
    background: var(--app-bg) !important;
    color: var(--app-text);
    font-feature-settings: "cv11", "ss01";
}

body.is-authenticated .app-shell,
body.is-authenticated .app-shell-authenticated {
    grid-template-columns: var(--app-sidebar-w) minmax(0, 1fr);
    background: transparent;
}

/* --------------------------------------------------------------------
   Oldalsáv
   -------------------------------------------------------------------- */
body.is-authenticated .app-sidebar,
body.is-authenticated .desktop-sidebar {
    width: var(--app-sidebar-w);
    padding: 0;
    background: linear-gradient(180deg, var(--app-navy-2) 0%, var(--app-navy) 100%);
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
}

@media (min-width: 1181px) {
    body.is-authenticated .desktop-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.18) transparent;
    }
    body.is-authenticated .desktop-sidebar::-webkit-scrollbar { width: 6px; }
    body.is-authenticated .desktop-sidebar::-webkit-scrollbar-track { background: transparent; }
    body.is-authenticated .desktop-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 999px;
    }
    body.is-authenticated .desktop-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }
}

body.is-authenticated .sidebar-brand {
    padding: 22px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

body.is-authenticated .sidebar-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 10px 14px;
    border-radius: var(--app-radius-md);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.20);
    overflow: hidden;
}

body.is-authenticated .sidebar-logo-frame img {
    display: block;
    width: 100%;
    max-width: 176px;
    max-height: 46px;
    object-fit: contain;
}

body.is-authenticated .sidebar-nav {
    padding: 10px 14px 16px;
}

body.is-authenticated .sidebar-section-label {
    margin: 20px 8px 8px;
    color: rgba(255,255,255,.38);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.is-authenticated .sidebar-nav .sidebar-section-label:first-child {
    margin-top: 6px;
}

body.is-authenticated .sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    margin: 1px 0;
    padding: 9px 11px;
    border-radius: var(--app-radius-sm);
    color: rgba(226,232,245,.72);
    font-size: .89rem;
    font-weight: 560;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

body.is-authenticated .sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    transform: none;
}

body.is-authenticated .sidebar-link.is-active {
    color: #fff;
    background: var(--app-blue);
    font-weight: 650;
    box-shadow: 0 6px 16px rgba(0,98,252,.35);
}

body.is-authenticated .sidebar-icon {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: inherit;
}

body.is-authenticated .sidebar-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.1;
}

body.is-authenticated .sidebar-link.is-active .sidebar-icon {
    background: rgba(255,255,255,.16);
}

body.is-authenticated .sidebar-bottom-card {
    margin: 14px 14px 18px;
    padding: 16px;
    border-radius: var(--app-radius-md);
    background: rgba(0,98,252,.16);
    border: 1px solid rgba(255,255,255,.08);
    color: #D9E3FF;
    box-shadow: none;
}

body.is-authenticated .sidebar-bottom-card span { color: #93B4FF; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
body.is-authenticated .sidebar-bottom-card strong { display: block; margin: 4px 0 2px; color: #fff; }
body.is-authenticated .sidebar-bottom-card small { color: rgba(217,227,255,.72); }

/* Mobil oldalsáv ugyanazt a bőrt kapja */
body.is-authenticated .mobile-sidebar {
    background: linear-gradient(180deg, var(--app-navy-2) 0%, var(--app-navy) 100%);
}
body.is-authenticated .mobile-sidebar-head {
    border-bottom: 1px solid rgba(255,255,255,.08);
}
body.is-authenticated .mobile-sidebar .sidebar-logo-frame {
    min-height: 60px;
    box-shadow: none;
}

/* --------------------------------------------------------------------
   Felső sáv
   -------------------------------------------------------------------- */
body.is-authenticated .app-main { min-width: 0; background: transparent; }

body.is-authenticated .app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 72px;
    padding: 14px 28px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--app-line);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: none;
}

body.is-authenticated .topbar-search {
    height: 44px;
    max-width: 660px;
    border-radius: var(--app-radius-md);
    background: var(--app-surface-2);
    border: 1px solid var(--app-line);
    box-shadow: none;
    transition: border-color .15s ease, background .15s ease;
}

body.is-authenticated .topbar-search:focus-within {
    background: #fff;
    border-color: var(--app-blue);
    box-shadow: 0 0 0 3px var(--app-blue-light);
}

body.is-authenticated .topbar-search input {
    color: var(--app-text);
    font-weight: 500;
}

body.is-authenticated .topbar-search input::placeholder { color: var(--app-faint); }
body.is-authenticated .topbar-search-icon svg { width: 17px; height: 17px; color: var(--app-faint); }

body.is-authenticated .topbar-actions { gap: 10px; }

body.is-authenticated .topbar-pill,
body.is-authenticated .topbar-notify,
body.is-authenticated .topbar-install-desktop,
body.is-authenticated .topbar-profile-trigger {
    min-height: 42px;
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    color: var(--app-text);
    font-weight: 600;
    box-shadow: none;
}

body.is-authenticated .topbar-pill:hover,
body.is-authenticated .topbar-notify:hover,
body.is-authenticated .topbar-profile-trigger:hover {
    border-color: var(--app-line-strong);
    background: var(--app-surface-2);
}

body.is-authenticated .topbar-notify,
body.is-authenticated .topbar-install-desktop { color: var(--app-blue); }

body.is-authenticated .topbar-avatar {
    background: var(--app-blue);
    color: #fff;
    box-shadow: none;
}

body.is-authenticated .topbar-profile-menu {
    border-radius: var(--app-radius-md);
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow-lg);
}

body.is-authenticated .admin-client-switcher {
    display: grid;
    grid-template-columns: auto minmax(170px, 240px);
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 5px 8px 5px 12px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
}

body.is-authenticated .admin-client-switcher label { margin: 0; color: var(--app-muted); font-size: 11px; font-weight: 700; }
body.is-authenticated .admin-client-switcher .form-select {
    min-height: 32px !important;
    height: 32px;
    padding-top: 3px; padding-bottom: 3px;
    border-radius: 9px !important;
    font-weight: 650;
    background-color: var(--app-surface-2);
}

body.is-authenticated .mobile-admin-client-switcher { display: grid; gap: 7px; padding: 8px 10px 12px; }
body.is-authenticated .dropdown-item-label { color: var(--app-muted); font-size: 12px; font-weight: 700; }
body.is-authenticated .mobile-admin-client-switcher .form-select { min-height: 42px !important; border-radius: 11px !important; font-weight: 650; }

@media (max-width: 1320px) {
    body.is-authenticated .admin-client-switcher { grid-template-columns: 1fr; min-width: 200px; }
}
@media (max-width: 760px) {
    body.is-authenticated .admin-client-switcher { display: none; }
}

/* --------------------------------------------------------------------
   Tartalom konténer
   -------------------------------------------------------------------- */
body.is-authenticated .app-content {
    width: min(100%, var(--app-page-max));
    margin: 0 auto;
    padding: 26px 28px 32px;
}

body.is-authenticated .dashboard-shell,
body.is-authenticated .page-stack,
body.is-authenticated .content-stack {
    display: grid;
    gap: var(--app-gap);
}

/* --------------------------------------------------------------------
   Oldal-fejlécek / hero sávok (dashboard + minden más "hero" felület)
   Egységes, visszafogott kék gradiens — nem 3 különböző radial blob.
   -------------------------------------------------------------------- */
body.is-authenticated .dashboard-hero,
body.is-authenticated .dashboard-hero.card,
body.is-authenticated .page-header,
body.is-authenticated .calendar-hero,
body.is-authenticated .lead-banner,
body.is-authenticated .settings-page-head,
body.is-authenticated .portal-admin-hero,
body.is-authenticated .email-automation-hero,
body.is-authenticated .ac-catalog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 0;
    padding: 30px 32px;
    border: 0;
    border-radius: var(--app-radius-xl);
    color: #fff;
    background: linear-gradient(120deg, var(--app-navy-2) 0%, var(--app-blue-dark) 62%, var(--app-blue) 100%) !important;
    box-shadow: var(--app-shadow-lg);
}

body.is-authenticated .dashboard-hero::before,
body.is-authenticated .page-header::before,
body.is-authenticated .calendar-hero::before,
body.is-authenticated .lead-banner::before,
body.is-authenticated .settings-page-head::before,
body.is-authenticated .portal-admin-hero::before,
body.is-authenticated .email-automation-hero::before,
body.is-authenticated .ac-catalog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(560px 260px at 88% 0%, #000, transparent 72%);
    mask-image: radial-gradient(560px 260px at 88% 0%, #000, transparent 72%);
    opacity: .55;
    pointer-events: none;
}

/* Aláírás-motívum: absztrakt szellőző/légáramlás grafika — a klíma-témából
   magából, saját készítésű SVG (nincs szerzői jogi kockázat). Lassan forog,
   ettől lesz "élő", prémium érzete a fejléceknek. */
body.is-authenticated .dashboard-hero::after,
body.is-authenticated .page-header::after,
body.is-authenticated .calendar-hero::after,
body.is-authenticated .lead-banner::after,
body.is-authenticated .settings-page-head::after,
body.is-authenticated .portal-admin-hero::after,
body.is-authenticated .email-automation-hero::after,
body.is-authenticated .ac-catalog-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -70px;
    bottom: -80px;
    width: 320px;
    height: 320px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%20200%22%20fill%3D%22none%22%3E%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2286%22%20stroke%3D%22white%22%20stroke-opacity%3D%220.14%22%20stroke-width%3D%221.5%22/%3E%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2262%22%20stroke%3D%22white%22%20stroke-opacity%3D%220.18%22%20stroke-width%3D%221.5%22/%3E%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2238%22%20stroke%3D%22white%22%20stroke-opacity%3D%220.22%22%20stroke-width%3D%221.5%22/%3E%20%3Cg%20stroke%3D%22white%22%20stroke-opacity%3D%220.3%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%20%3Cpath%20d%3D%22M100%2014%20L100%2034%22/%3E%20%3Cpath%20d%3D%22M100%20166%20L100%20186%22/%3E%20%3Cpath%20d%3D%22M14%20100%20L34%20100%22/%3E%20%3Cpath%20d%3D%22M166%20100%20L186%20100%22/%3E%20%3Cpath%20d%3D%22M39%2039%20L53%2053%22/%3E%20%3Cpath%20d%3D%22M147%20147%20L161%20161%22/%3E%20%3Cpath%20d%3D%22M161%2039%20L147%2053%22/%3E%20%3Cpath%20d%3D%22M53%20147%20L39%20161%22/%3E%20%3C/g%3E%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%227%22%20fill%3D%22white%22%20fill-opacity%3D%220.35%22/%3E%20%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    opacity: .9;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes app-vent-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    body.is-authenticated .dashboard-hero::after,
    body.is-authenticated .page-header::after,
    body.is-authenticated .calendar-hero::after,
    body.is-authenticated .lead-banner::after,
    body.is-authenticated .settings-page-head::after,
    body.is-authenticated .portal-admin-hero::after,
    body.is-authenticated .email-automation-hero::after,
    body.is-authenticated .ac-catalog-hero::after {
        animation: app-vent-spin 40s linear infinite;
    }
}

@media (max-width: 860px) {
    body.is-authenticated .dashboard-hero::after,
    body.is-authenticated .page-header::after,
    body.is-authenticated .calendar-hero::after,
    body.is-authenticated .lead-banner::after,
    body.is-authenticated .settings-page-head::after,
    body.is-authenticated .portal-admin-hero::after,
    body.is-authenticated .email-automation-hero::after,
    body.is-authenticated .ac-catalog-hero::after {
        width: 200px;
        height: 200px;
        right: -50px;
        bottom: -60px;
    }
}

body.is-authenticated .dashboard-hero > *,
body.is-authenticated .page-header > *,
body.is-authenticated .calendar-hero > *,
body.is-authenticated .lead-banner > *,
body.is-authenticated .settings-page-head > *,
body.is-authenticated .portal-admin-hero > *,
body.is-authenticated .email-automation-hero > *,
body.is-authenticated .ac-catalog-hero > * {
    position: relative;
    z-index: 1;
}

body.is-authenticated .dashboard-hero h1,
body.is-authenticated .page-header h1,
body.is-authenticated .calendar-hero h1,
body.is-authenticated .lead-banner h1,
body.is-authenticated .settings-page-head h1,
body.is-authenticated .portal-admin-hero h1,
body.is-authenticated .email-automation-hero h1,
body.is-authenticated .ac-catalog-hero h1 {
    max-width: 700px;
    margin: 4px 0 10px;
    color: #fff !important;
    font-size: clamp(1.7rem, 2.2vw, 2.35rem);
    font-weight: 750;
    line-height: 1.12;
}

body.is-authenticated .dashboard-hero p,
body.is-authenticated .page-header p,
body.is-authenticated .calendar-hero p,
body.is-authenticated .lead-banner p,
body.is-authenticated .settings-page-head p,
body.is-authenticated .portal-admin-hero p,
body.is-authenticated .email-automation-hero p,
body.is-authenticated .ac-catalog-hero p {
    max-width: 640px;
    margin: 0 0 16px;
    color: rgba(255,255,255,.82) !important;
    font-size: .96rem;
    line-height: 1.6;
}

body.is-authenticated .dashboard-hero .eyebrow,
body.is-authenticated .page-header .eyebrow,
body.is-authenticated .calendar-hero .eyebrow,
body.is-authenticated .lead-banner .eyebrow,
body.is-authenticated .eyebrow {
    color: #7FD8FF !important;
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body.is-authenticated .dashboard-hero.card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 24px; align-items: center; }

body.is-authenticated .dashboard-actions,
body.is-authenticated .dashboard-hero .dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

body.is-authenticated .dashboard-hero .btn,
body.is-authenticated .page-header .btn,
body.is-authenticated .calendar-hero .btn,
body.is-authenticated .lead-banner .btn {
    min-width: 116px;
    min-height: 38px;
    padding: 9px 16px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.26);
    font-weight: 650;
}

body.is-authenticated .dashboard-hero .btn-primary,
body.is-authenticated .page-header .btn-primary,
body.is-authenticated .calendar-hero .btn-primary,
body.is-authenticated .lead-banner .btn-primary {
    position: relative;
    overflow: hidden;
    color: var(--app-blue-dark);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

body.is-authenticated .dashboard-hero .btn:hover { background: rgba(255,255,255,.22); }
body.is-authenticated .dashboard-hero .btn-primary:hover { background: #fff; filter: brightness(1.03); }

/* --- Ajánlat-lista soronkénti fejléc: kompakt, tompított sáv, NEM teljes oldal-hero --- */
body.is-authenticated .quote-list-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin: -1px -1px 16px;
    padding: 22px 24px;
    border-radius: var(--app-radius-lg) var(--app-radius-lg) 0 0;
    color: #fff;
    background: linear-gradient(120deg, var(--app-navy-2) 0%, var(--app-navy) 100%);
}

body.is-authenticated .quote-list-head::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -40px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%20200%22%20fill%3D%22none%22%3E%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2286%22%20stroke%3D%22white%22%20stroke-opacity%3D%220.12%22%20stroke-width%3D%221.5%22/%3E%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2262%22%20stroke%3D%22white%22%20stroke-opacity%3D%220.15%22%20stroke-width%3D%221.5%22/%3E%20%3Cg%20stroke%3D%22white%22%20stroke-opacity%3D%220.24%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%20%3Cpath%20d%3D%22M100%2014%20L100%2034%22/%3E%20%3Cpath%20d%3D%22M100%20166%20L100%20186%22/%3E%20%3Cpath%20d%3D%22M14%20100%20L34%20100%22/%3E%20%3Cpath%20d%3D%22M166%20100%20L186%20100%22/%3E%20%3C/g%3E%20%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    body.is-authenticated .quote-list-head::after { animation: app-vent-spin 40s linear infinite; }
}
body.is-authenticated .quote-list-head > * { position: relative; z-index: 1; }

body.is-authenticated .quote-list-head h2 {
    margin: 2px 0 6px;
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 750;
}

body.is-authenticated .quote-list-head p { color: rgba(255,255,255,.72) !important; margin: 0; }
body.is-authenticated .quote-list-head .eyebrow { color: #7FD8FF !important; }

body.is-authenticated .quote-list-price {
    color: #fff !important;
    font-size: 1.55rem;
    font-weight: 800;
}

body.is-authenticated .quote-list-actions-inline { display: flex; flex-wrap: wrap; gap: 8px; }

body.is-authenticated .quote-list-head .btn {
    min-height: 36px;
    padding: 7px 14px;
    color: #fff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    font-weight: 620;
    font-size: .87rem;
}
body.is-authenticated .quote-list-head .btn:hover { background: rgba(255,255,255,.18); }

body.is-authenticated .quote-list-head .btn-primary {
    color: var(--app-navy);
    background: #fff;
    border-color: #fff;
}
body.is-authenticated .quote-list-head .btn-outline-success {
    color: #fff;
    background: rgba(18,148,106,.32);
    border-color: rgba(102,214,168,.5);
}
body.is-authenticated .quote-list-head .btn-outline-danger {
    color: #fff;
    background: rgba(209,75,54,.32);
    border-color: rgba(240,150,132,.5);
}
body.is-authenticated .quote-list-head .btn-outline-secondary {
    color: #fff;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.24);
}

/* A meta-dobozok (Státusz / Érvényes / Telepítés / Létrehozva) most már
   a világos kártyatesthez tartoznak vizuálisan, nem a sötét sávhoz. */
body.is-authenticated .quote-list-meta {
    padding: 0 24px 20px;
}
body.is-authenticated .quote-list-meta-item {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-2);
}
body.is-authenticated .quote-list-meta-item span { color: var(--app-faint); }
body.is-authenticated .quote-list-meta-item strong { color: var(--app-ink); }
body.is-authenticated .quote-list-meta-item small { color: var(--app-muted); }
body.is-authenticated .quote-list-card { padding: 0 !important; overflow: hidden; }
body.is-authenticated .quote-list-grid { gap: 16px; }

body.is-authenticated .dashboard-hero-side {
    display: grid;
    grid-template-rows: auto auto;
    gap: 12px;
}

body.is-authenticated .dashboard-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.is-authenticated .dashboard-focus-card,
body.is-authenticated .dashboard-hero .mini-stat {
    padding: 16px 18px;
    border-radius: var(--app-radius-md);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
}

body.is-authenticated .dashboard-focus-card span,
body.is-authenticated .dashboard-hero .mini-stat span,
body.is-authenticated .dashboard-focus-card small,
body.is-authenticated .dashboard-hero .mini-stat small { color: rgba(255,255,255,.72) !important; }
body.is-authenticated .dashboard-focus-card strong,
body.is-authenticated .dashboard-hero .mini-stat strong { color: #fff !important; font-size: 1.5rem; }

/* --------------------------------------------------------------------
   Kártyák és panelek — egységes felület minden kártya-szerű elemhez
   -------------------------------------------------------------------- */
body.is-authenticated .card,
body.is-authenticated .dashboard-panel,
body.is-authenticated .dashboard-stat-card,
body.is-authenticated .next-actions-panel,
body.is-authenticated .source-breakdown-panel,
body.is-authenticated .quote-card,
body.is-authenticated .quote-list-card,
body.is-authenticated .lead-card,
body.is-authenticated .customer-card,
body.is-authenticated .settings-card,
body.is-authenticated .calendar-card,
body.is-authenticated .job-card,
body.is-authenticated .invoice-card,
body.is-authenticated .email-card,
body.is-authenticated .portal-card,
body.is-authenticated .filter-card,
body.is-authenticated .table-card,
body.is-authenticated .form-card,
body.is-authenticated .detail-card,
body.is-authenticated .side-card,
body.is-authenticated .registry-unit-card,
body.is-authenticated .email-rule-editor,
body.is-authenticated .email-log-panel,
body.is-authenticated .schedule-card,
body.is-authenticated .crm-filter-panel,
body.is-authenticated .filter-panel,
body.is-authenticated form.card,
body.is-authenticated .search-filter-card {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}

body.is-authenticated .dashboard-panel,
body.is-authenticated .next-actions-panel,
body.is-authenticated .source-breakdown-panel,
body.is-authenticated .crm-filter-panel,
body.is-authenticated .filter-panel,
body.is-authenticated .search-filter-card {
    padding: 20px;
}

body.is-authenticated .dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

body.is-authenticated .dashboard-panel-head h2,
body.is-authenticated .card h2,
body.is-authenticated .card h3,
body.is-authenticated .section-title {
    margin: 0;
    color: var(--app-ink);
    font-size: 1.08rem;
    font-weight: 700;
}

body.is-authenticated .dashboard-panel-head p,
body.is-authenticated .card p:not(.dashboard-hero p),
body.is-authenticated .text-muted {
    margin: 3px 0 0;
    color: var(--app-muted) !important;
}

/* --- Dashboard statisztika-kártyák (ikon + szám) --- */
body.is-authenticated .dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.is-authenticated .dashboard-stat-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value"
        "icon hint";
    align-items: center;
    column-gap: 13px;
    row-gap: 1px;
    min-height: 104px;
    padding: 17px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.is-authenticated .dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--app-line-strong);
    box-shadow: var(--app-shadow-md);
}

body.is-authenticated .dashboard-stat-card::before,
body.is-authenticated .dashboard-stat-card::after { display: none; }

body.is-authenticated .dashboard-stat-card .stat-icon {
    grid-area: icon;
    align-self: start;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--app-blue-light);
    color: var(--app-blue);
    transition: transform .25s cubic-bezier(.3,1.4,.5,1);
}
body.is-authenticated .dashboard-stat-card:hover .stat-icon { transform: scale(1.1) rotate(-6deg); }
body.is-authenticated .dashboard-stat-card .stat-icon svg { width: 18px; height: 18px; stroke-width: 2.2; }

body.is-authenticated .stat-blue .stat-icon   { color: var(--app-blue);   background: var(--app-blue-light); }
body.is-authenticated .stat-green .stat-icon  { color: var(--app-green);  background: var(--app-green-light); }
body.is-authenticated .stat-amber .stat-icon  { color: var(--app-amber);  background: var(--app-amber-light); }
body.is-authenticated .stat-red .stat-icon    { color: var(--app-red);    background: var(--app-red-light); }
body.is-authenticated .stat-indigo .stat-icon { color: var(--app-violet); background: var(--app-violet-light); }
body.is-authenticated .stat-teal .stat-icon   { color: var(--app-cyan);   background: #E4F7FB; }
body.is-authenticated .stat-slate .stat-icon  { color: var(--app-muted); background: var(--app-surface-2); }

body.is-authenticated .dashboard-stat-card span,
body.is-authenticated .dashboard-stat-card .stat-label {
    grid-area: label;
    display: block;
    min-width: 0;
    color: var(--app-muted);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

body.is-authenticated .dashboard-stat-card strong {
    grid-area: value;
    display: block;
    min-width: 0;
    margin-top: 2px;
    color: var(--app-ink);
    font-size: 1.5rem;
    font-weight: 750;
    line-height: 1.15;
    white-space: nowrap;
}

body.is-authenticated .dashboard-stat-card small {
    grid-area: hint;
    display: block;
    min-width: 0;
    margin-top: 2px;
    color: var(--app-muted);
    font-weight: 500;
    white-space: normal;
    overflow-wrap: break-word;
}

/* --- Következő teendők --- */
body.is-authenticated .next-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.is-authenticated .next-action-card {
    display: block;
    min-height: 128px;
    padding: 16px;
    border: 1px solid var(--app-line);
    border-left: 3px solid var(--app-blue);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

body.is-authenticated .next-action-card:hover {
    transform: translateY(-1px);
    border-color: var(--app-line-strong);
    box-shadow: var(--app-shadow-md);
}

body.is-authenticated .next-action-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--app-muted);
    font-size: .71rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.is-authenticated .next-action-card strong {
    display: block;
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.3;
}

body.is-authenticated .next-action-card em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    min-height: 26px;
    padding: 5px 11px;
    color: var(--app-blue);
    background: var(--app-blue-light);
    border-radius: 999px;
    font-size: .74rem;
    font-style: normal;
    font-weight: 700;
}

/* --- Forrás-lebontás --- */
body.is-authenticated .source-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

body.is-authenticated .source-summary-card {
    padding: 16px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-2);
    box-shadow: none;
}

body.is-authenticated .source-summary-manual { background: var(--app-amber-light); border-color: #F4DFB8; }
body.is-authenticated .source-summary-customer { background: var(--app-green-light); border-color: #BFE8D4; }

body.is-authenticated .source-summary-card span {
    display: block;
    color: var(--app-muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

body.is-authenticated .source-summary-card strong {
    display: block;
    margin-top: 5px;
    color: var(--app-ink);
    font-size: 1.6rem;
    font-weight: 750;
}

body.is-authenticated .source-summary-card small { color: var(--app-muted); }

body.is-authenticated .source-breakdown-list { display: grid; gap: 9px; }

body.is-authenticated .source-breakdown-row {
    display: grid;
    grid-template-columns: minmax(200px, .9fr) minmax(220px, 1.8fr) 66px;
    align-items: center;
    gap: 16px;
    padding: 13px 15px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
}

body.is-authenticated .source-breakdown-meta span,
body.is-authenticated .source-breakdown-number strong { color: var(--app-ink); font-weight: 700; }
body.is-authenticated .source-breakdown-meta small,
body.is-authenticated .source-breakdown-number small { display: block; color: var(--app-muted); }

body.is-authenticated .source-breakdown-track,
body.is-authenticated .pipeline-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--app-line);
}

body.is-authenticated .source-breakdown-track span,
body.is-authenticated .pipeline-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--app-blue);
}

body.is-authenticated .source-manual .source-breakdown-track span,
body.is-authenticated .source-manual-customer .source-breakdown-track span { background: var(--app-green); }

/* --- Munkamenet elrendezés (fő + oldal oszlop) --- */
body.is-authenticated .dashboard-board {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
    gap: var(--app-gap);
    align-items: start;
}

body.is-authenticated .dashboard-main-column,
body.is-authenticated .dashboard-side-column { display: grid; gap: var(--app-gap); }
body.is-authenticated .dashboard-side-column { position: sticky; top: 92px; }

/* --- Pipeline áttekintés --- */
body.is-authenticated .pipeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 16px;
}

body.is-authenticated .pipeline-card {
    padding: 15px;
    min-height: 100px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-2);
}

body.is-authenticated .pipeline-card span { display: block; min-height: 32px; color: var(--app-muted); font-weight: 700; font-size: .82rem; }
body.is-authenticated .pipeline-card strong { display: block; color: var(--app-ink); font-size: 1.7rem; font-weight: 750; }

body.is-authenticated .pipeline-insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
    gap: 12px;
}

body.is-authenticated .pipeline-chart,
body.is-authenticated .pipeline-kpi {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
}

body.is-authenticated .pipeline-chart { padding: 17px; }
body.is-authenticated .pipeline-chart-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.is-authenticated .pipeline-chart-head h3 { margin: 3px 0 0; font-size: .96rem; font-weight: 700; }

body.is-authenticated .pipeline-bars { display: grid; gap: 11px; }
body.is-authenticated .pipeline-bar-label { display: flex; justify-content: space-between; color: var(--app-text); font-weight: 600; margin-bottom: 5px; font-size: .88rem; }

body.is-authenticated .pipeline-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
body.is-authenticated .pipeline-kpi { padding: 15px; }
body.is-authenticated .pipeline-kpi strong { display: block; color: var(--app-blue); font-size: 1.45rem; line-height: 1; }

/* --- Gyorslisták --- */
body.is-authenticated .quick-list { display: grid; gap: 10px; }

body.is-authenticated .quick-list-item {
    position: relative;
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
    text-decoration: none;
}

body.is-authenticated .quick-list-link:hover { border-color: var(--app-line-strong); background: var(--app-surface-2); }
body.is-authenticated .quick-list-link::after {
    content: "›";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-faint);
    font-size: 22px;
    line-height: 1;
}
body.is-authenticated .quick-list-item strong { color: var(--app-ink); }
body.is-authenticated .quick-list-item span { color: var(--app-muted); }

body.is-authenticated .empty-state {
    padding: 20px;
    border-radius: var(--app-radius-md);
    color: var(--app-muted);
    text-align: center;
    background: var(--app-surface-2);
}

/* --------------------------------------------------------------------
   Napi munkaterv
   -------------------------------------------------------------------- */
body.is-authenticated .daily-plan-panel { margin-top: var(--app-gap); }

body.is-authenticated .panel-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    color: var(--app-blue);
    font-size: .71rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.is-authenticated .daily-plan-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 15px;
}

body.is-authenticated .daily-plan-summary > div {
    min-height: 74px;
    padding: 14px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-2);
}

body.is-authenticated .daily-plan-summary span { display: block; color: var(--app-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
body.is-authenticated .daily-plan-summary strong { display: block; margin-top: 5px; color: var(--app-ink); font-size: 1.65rem; line-height: 1; }

body.is-authenticated .daily-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

body.is-authenticated .daily-plan-column {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
}

body.is-authenticated .daily-plan-column-head { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 11px; }
body.is-authenticated .daily-plan-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--app-blue); background: var(--app-blue-light); }
body.is-authenticated .daily-plan-icon svg { width: 18px; height: 18px; stroke-width: 2.3; }
body.is-authenticated .daily-plan-column h3 { margin: 0; color: var(--app-ink); font-size: .95rem; font-weight: 750; }
body.is-authenticated .daily-plan-column p { margin: 3px 0 0; color: var(--app-muted); font-size: .8rem; line-height: 1.3; }

body.is-authenticated .daily-plan-list { display: grid; gap: 9px; }

body.is-authenticated .daily-plan-item {
    display: grid;
    gap: 4px;
    min-height: 88px;
    padding: 12px 13px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    color: inherit;
    text-decoration: none;
    background: var(--app-surface-2);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

body.is-authenticated .daily-plan-item:hover { transform: translateY(-1px); border-color: var(--app-line-strong); box-shadow: var(--app-shadow-sm); }
body.is-authenticated .daily-plan-item span { width: fit-content; max-width: 100%; padding: 3px 8px; border-radius: 999px; color: var(--app-blue-dark); background: var(--app-blue-light); font-size: .71rem; font-weight: 700; }
body.is-authenticated .daily-plan-item strong { color: var(--app-ink); font-size: .94rem; font-weight: 700; line-height: 1.25; }
body.is-authenticated .daily-plan-item small { color: var(--app-muted); font-weight: 500; line-height: 1.3; }

body.is-authenticated .daily-plan-empty {
    min-height: 88px;
    padding: 16px 13px;
    border: 1px dashed var(--app-line-strong);
    border-radius: var(--app-radius-sm);
    color: var(--app-faint);
    background: var(--app-surface-2);
    font-weight: 650;
}

body.is-authenticated .daily-plan-quotes .daily-plan-icon,
body.is-authenticated .daily-plan-quotes .daily-plan-item span { color: var(--app-violet); background: var(--app-violet-light); }
body.is-authenticated .daily-plan-jobs .daily-plan-icon,
body.is-authenticated .daily-plan-jobs .daily-plan-item span { color: var(--app-green); background: var(--app-green-light); }
body.is-authenticated .daily-plan-sla .daily-plan-icon,
body.is-authenticated .daily-plan-sla .daily-plan-item span { color: var(--app-red); background: var(--app-red-light); }

/* --------------------------------------------------------------------
   Klímakatalógus
   -------------------------------------------------------------------- */
body.is-authenticated .ac-catalog-hero .dashboard-actions .btn { min-width: 150px; }
body.is-authenticated .ac-catalog-filter { padding: 18px; border-radius: var(--app-radius-lg); }

body.is-authenticated .ac-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

body.is-authenticated .ac-model-card {
    overflow: hidden;
    padding: 0;
    border-radius: var(--app-radius-lg);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

body.is-authenticated .ac-model-card:hover {
    transform: translateY(-2px);
    border-color: var(--app-line-strong);
    box-shadow: var(--app-shadow-md);
}

body.is-authenticated .ac-model-image {
    position: relative;
    min-height: 172px;
    padding: 14px;
    background: linear-gradient(135deg, var(--app-blue-light), #EAFBFF);
}

body.is-authenticated .ac-model-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--app-radius-md);
    border: 1px solid var(--app-line);
    background: #fff;
}

body.is-authenticated .ac-model-image span {
    position: absolute;
    top: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--app-blue-dark);
    background: rgba(255,255,255,.94);
    border: 1px solid var(--app-line);
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.is-authenticated .ac-model-premium .ac-model-image span { color: var(--app-violet); }

body.is-authenticated .ac-model-body { padding: 18px; }
body.is-authenticated .ac-model-brand { color: var(--app-blue); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
body.is-authenticated .ac-model-card h2 { margin: 4px 0 7px; color: var(--app-ink); font-size: 1.1rem; font-weight: 750; }
body.is-authenticated .ac-model-card p { min-height: 42px; margin: 0 0 14px; color: var(--app-muted); font-weight: 500; }

body.is-authenticated .ac-model-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
body.is-authenticated .ac-model-specs div { padding: 11px; border: 1px solid var(--app-line); border-radius: var(--app-radius-sm); background: var(--app-surface-2); }
body.is-authenticated .ac-model-specs span,
body.is-authenticated .ac-model-tags span { display: block; color: var(--app-muted); font-size: .71rem; font-weight: 700; }
body.is-authenticated .ac-model-specs strong { display: block; margin-top: 2px; color: var(--app-ink); font-size: .96rem; }

body.is-authenticated .ac-model-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
body.is-authenticated .ac-model-tags span { min-height: 26px; padding: 5px 9px; border-radius: 999px; color: var(--app-blue); background: var(--app-blue-light); }

body.is-authenticated .ac-model-actions { display: flex; gap: 9px; flex-wrap: wrap; }

@media (max-width: 1320px) { body.is-authenticated .ac-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    body.is-authenticated .ac-catalog-grid { grid-template-columns: 1fr; }
    body.is-authenticated .ac-model-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------
   Vezérlők: gombok, mezők, jelvények, táblázatok
   -------------------------------------------------------------------- */
body.is-authenticated .form-label,
body.is-authenticated label { color: var(--app-text); font-weight: 620; }

body.is-authenticated .form-control,
body.is-authenticated .form-select,
body.is-authenticated textarea,
body.is-authenticated input[type="text"],
body.is-authenticated input[type="email"],
body.is-authenticated input[type="password"],
body.is-authenticated input[type="number"],
body.is-authenticated input[type="date"],
body.is-authenticated input[type="time"],
body.is-authenticated input[type="datetime-local"] {
    min-height: 42px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    color: var(--app-text);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

body.is-authenticated textarea { min-height: 116px; }

body.is-authenticated .form-control:focus,
body.is-authenticated .form-select:focus,
body.is-authenticated textarea:focus,
body.is-authenticated input:focus {
    border-color: var(--app-blue);
    box-shadow: 0 0 0 3px var(--app-blue-light);
}

body.is-authenticated .btn { border-radius: var(--app-radius-sm); font-weight: 650; min-height: 40px; }
body.is-authenticated .btn-sm { min-height: 34px; }

body.is-authenticated .btn-primary,
body.is-authenticated .btn-success {
    border-color: transparent;
    background: var(--app-blue);
    box-shadow: 0 8px 18px rgba(0,98,252,.22);
}
body.is-authenticated .btn-primary:hover { background: var(--app-blue-dark); }

body.is-authenticated .btn-outline-primary { color: var(--app-blue); border-color: #AECBFF; background: #fff; }
body.is-authenticated .btn-outline-primary:hover { color: #fff; background: var(--app-blue); border-color: var(--app-blue); }
body.is-authenticated .btn-primary {
    position: relative;
    overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
    body.is-authenticated .btn-primary::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
        background-size: 220% 100%;
        background-position: -140% 0;
        pointer-events: none;
    }
    body.is-authenticated .btn-primary:hover::after { animation: app-sheen .9s ease; }
}
body.is-authenticated .btn-outline-danger,
body.is-authenticated .btn-danger { border-color: rgba(209,75,54,.35); }

body.is-authenticated .badge,
body.is-authenticated .sla-inline,
body.is-authenticated .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
    white-space: nowrap;
}

body.is-authenticated .sla-breached,
body.is-authenticated .sla-danger,
body.is-authenticated .badge.bg-danger { color: var(--app-red); background: var(--app-red-light); border-color: #F6C6C1; }

body.is-authenticated .table-responsive,
body.is-authenticated .table-card {
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow-sm);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

body.is-authenticated .table-responsive::-webkit-scrollbar,
body.is-authenticated .table-card::-webkit-scrollbar { height: 8px; }
body.is-authenticated .table-responsive::-webkit-scrollbar-thumb,
body.is-authenticated .table-card::-webkit-scrollbar-thumb { background: var(--app-line-strong); border-radius: 999px; }
body.is-authenticated .table-responsive::-webkit-scrollbar-track,
body.is-authenticated .table-card::-webkit-scrollbar-track { background: transparent; }

body.is-authenticated .table { margin: 0; }

body.is-authenticated .table thead th {
    padding: 15px 16px;
    color: var(--app-faint);
    font-size: .74rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--app-line);
    background: var(--app-surface-2);
}

body.is-authenticated .table tbody td {
    padding: 15px 16px;
    color: var(--app-text);
    border-bottom: 1px solid #EEF1F6;
    vertical-align: middle;
}

body.is-authenticated .table tbody tr:last-child td { border-bottom: 0; }
body.is-authenticated .table tbody tr:hover td { background: var(--app-surface-2); }
body.is-authenticated .table a { color: var(--app-blue); font-weight: 650; text-decoration: none; }
body.is-authenticated .table a:hover { text-decoration: underline; }

body.is-authenticated .quote-card,
body.is-authenticated .quote-list-card { padding: 22px; }

body.is-authenticated .quote-actions,
body.is-authenticated .record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

body.is-authenticated .quote-total,
body.is-authenticated .price-total {
    color: var(--app-blue);
    font-size: clamp(1.6rem, 1.8vw, 2.05rem);
    font-weight: 750;
}

body.is-authenticated .calendar-day,
body.is-authenticated .calendar-slot,
body.is-authenticated .job-card,
body.is-authenticated .maintenance-card {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
}

/* --------------------------------------------------------------------
   Lábléc
   -------------------------------------------------------------------- */
body.is-authenticated .app-footer {
    width: min(100%, var(--app-page-max));
    margin: 22px auto 26px;
    padding: 16px 22px;
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    box-shadow: none;
}

/* --------------------------------------------------------------------
   Reszponzív töréspontok — egységes, egy helyen
   -------------------------------------------------------------------- */
@media (max-width: 1320px) {
    body.is-authenticated .dashboard-hero.card { grid-template-columns: 1fr; }
    body.is-authenticated .dashboard-hero-side { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); grid-template-rows: auto; }
    body.is-authenticated .dashboard-stat-grid,
    body.is-authenticated .daily-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
    body.is-authenticated .app-shell,
    body.is-authenticated .app-shell-authenticated { display: block; }
    body.is-authenticated .desktop-sidebar { display: none !important; }
    body.is-authenticated .app-content { width: 100%; padding: 20px 18px 26px; }
    body.is-authenticated .dashboard-board,
    body.is-authenticated .pipeline-insight-grid { grid-template-columns: 1fr; }
    body.is-authenticated .dashboard-side-column { position: static; }
}

@media (max-width: 860px) {
    body.is-authenticated .dashboard-stat-grid,
    body.is-authenticated .source-summary-grid,
    body.is-authenticated .pipeline-grid,
    body.is-authenticated .next-action-grid,
    body.is-authenticated .daily-plan-grid,
    body.is-authenticated .daily-plan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.is-authenticated .source-breakdown-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 760px) {
    body.is-authenticated .app-topbar {
        display: grid;
        gap: 10px;
        min-height: 0;
        padding: 12px;
    }
    body.is-authenticated .topbar-mobile-brand {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    body.is-authenticated .mobile-menu-btn,
    body.is-authenticated .mobile-profile-btn {
        width: 44px;
        height: 44px;
        border-radius: var(--app-radius-sm);
        background: var(--app-surface);
        border: 1px solid var(--app-line);
    }
    body.is-authenticated .topbar-mobile-logo { max-height: 32px; max-width: 172px; object-fit: contain; }
    body.is-authenticated .topbar-search { order: 2; width: 100%; max-width: none; margin: 0; }
    body.is-authenticated .topbar-shortcut,
    body.is-authenticated .topbar-actions { display: none; }

    body.is-authenticated .app-content { padding: 14px 10px 22px; }
    body.is-authenticated .dashboard-shell,
    body.is-authenticated .page-stack,
    body.is-authenticated .content-stack { gap: 14px; }

    body.is-authenticated .dashboard-hero,
    body.is-authenticated .dashboard-hero.card,
    body.is-authenticated .page-header,
    body.is-authenticated .calendar-hero,
    body.is-authenticated .lead-banner,
    body.is-authenticated .settings-page-head,
    body.is-authenticated .ac-catalog-hero {
        padding: 20px;
        border-radius: 18px;
    }

    body.is-authenticated .quote-list-head { padding: 18px; }

    body.is-authenticated .dashboard-hero h1,
    body.is-authenticated .page-header h1,
    body.is-authenticated .calendar-hero h1 { font-size: 1.65rem; }

    body.is-authenticated .quote-list-head h2 { font-size: 1.02rem; }

    body.is-authenticated .dashboard-actions,
    body.is-authenticated .dashboard-hero-grid,
    body.is-authenticated .dashboard-stat-grid,
    body.is-authenticated .next-action-grid,
    body.is-authenticated .source-summary-grid,
    body.is-authenticated .pipeline-grid,
    body.is-authenticated .pipeline-kpis,
    body.is-authenticated .pipeline-insight-grid,
    body.is-authenticated .daily-plan-grid,
    body.is-authenticated .daily-plan-summary {
        grid-template-columns: 1fr !important;
    }

    body.is-authenticated .dashboard-actions { display: grid; }
    body.is-authenticated .dashboard-actions .btn,
    body.is-authenticated .quote-actions .btn,
    body.is-authenticated .record-actions .btn { width: 100%; }

    body.is-authenticated .card,
    body.is-authenticated .dashboard-panel,
    body.is-authenticated .dashboard-stat-card,
    body.is-authenticated .next-actions-panel,
    body.is-authenticated .source-breakdown-panel,
    body.is-authenticated .quote-card,
    body.is-authenticated .quote-list-card,
    body.is-authenticated .settings-card {
        border-radius: 16px;
        padding: 16px;
    }

    body.is-authenticated .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    body.is-authenticated .table { min-width: 680px; }
    body.is-authenticated .table thead th,
    body.is-authenticated .table tbody td { padding: 12px; }

    body.is-authenticated .app-footer {
        margin: 16px 10px 22px;
        width: auto;
        text-align: center;
    }
}

/* =====================================================================
   ÚJ KOMPONENSEK: gauge-widgetek, toast-értesítések, parancspaletta,
   üres állapot illusztráció, aktivitás-idővonal, ajánlat-dokumentum
   ===================================================================== */

/* --- Körkörös mérő-widget (gauge) --- */
body.is-authenticated .gauge {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--gauge-size, 64px);
    height: var(--gauge-size, 64px);
    flex: 0 0 auto;
}
body.is-authenticated .gauge-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--gauge-color, var(--app-blue)) calc(var(--gauge-value, 0) * 1%), var(--app-line) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px));
    transition: background 1s cubic-bezier(.3,.8,.4,1);
}
body.is-authenticated .gauge-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: .92rem;
    font-weight: 800;
    color: var(--app-ink);
}
body.is-authenticated .gauge-row { display: flex; align-items: center; gap: 14px; }
body.is-authenticated .gauge-row-copy { min-width: 0; }
body.is-authenticated .gauge-row-copy strong { display: block; color: var(--app-ink); font-size: 1.05rem; }
body.is-authenticated .gauge-row-copy span { display: block; color: var(--app-muted); font-size: .82rem; margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
    body.is-authenticated .gauge-ring { animation: app-fade-up .5s ease both; }
}

/* --- Toast-értesítések (a PHP által renderelt .alert-success/.alert-danger
   elemeket a JS emeli ki ide, ne kelljen minden oldalon markupot módosítani) --- */
#app-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}
body.is-authenticated .app-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    border-left: 4px solid var(--app-blue);
    box-shadow: var(--app-shadow-lg);
    color: var(--app-text);
    font-size: .92rem;
    font-weight: 560;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2,.8,.3,1), opacity .32s ease;
}
body.is-authenticated .app-toast.is-visible { transform: translateX(0); opacity: 1; }
body.is-authenticated .app-toast.is-leaving { transform: translateX(120%); opacity: 0; }
body.is-authenticated .app-toast-success { border-left-color: var(--app-green); }
body.is-authenticated .app-toast-danger  { border-left-color: var(--app-red); }
body.is-authenticated .app-toast-icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: var(--app-blue); }
body.is-authenticated .app-toast-success .app-toast-icon { color: var(--app-green); }
body.is-authenticated .app-toast-danger .app-toast-icon { color: var(--app-red); }
body.is-authenticated .app-toast-close {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--app-faint);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 8px;
}
@media (max-width: 640px) {
    #app-toast-stack { top: auto; bottom: 14px; right: 14px; left: 14px; width: auto; }
}

/* --- Parancspaletta (Ctrl/Cmd+K) --- */
#app-command-palette {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 16px 16px;
    background: rgba(4,23,58,.42);
    backdrop-filter: blur(3px);
}
#app-command-palette.is-open { display: flex; }
body.is-authenticated .cmdk-box {
    width: min(560px, 100%);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow-lg);
    overflow: hidden;
    animation: app-fade-up .18s ease both;
}
body.is-authenticated .cmdk-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--app-line);
}
body.is-authenticated .cmdk-input-row svg { width: 18px; height: 18px; color: var(--app-faint); flex: 0 0 auto; }
body.is-authenticated .cmdk-input {
    flex: 1 1 auto;
    border: 0;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--app-text);
}
body.is-authenticated .cmdk-hint {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--app-surface-2);
    border: 1px solid var(--app-line);
    color: var(--app-faint);
    font-size: .72rem;
    font-weight: 700;
}
body.is-authenticated .cmdk-list { max-height: 360px; overflow-y: auto; padding: 8px; }
body.is-authenticated .cmdk-group-label {
    margin: 10px 10px 4px;
    color: var(--app-faint);
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}
body.is-authenticated .cmdk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--app-radius-sm);
    color: var(--app-text);
    text-decoration: none;
    cursor: pointer;
}
body.is-authenticated .cmdk-item svg { width: 17px; height: 17px; color: var(--app-muted); flex: 0 0 auto; }
body.is-authenticated .cmdk-item span { flex: 1 1 auto; font-weight: 560; font-size: .92rem; }
body.is-authenticated .cmdk-item.is-active,
body.is-authenticated .cmdk-item:hover { background: var(--app-blue-light); }
body.is-authenticated .cmdk-item.is-active svg,
body.is-authenticated .cmdk-item:hover svg { color: var(--app-blue); }
body.is-authenticated .cmdk-empty { padding: 24px; text-align: center; color: var(--app-muted); font-size: .88rem; }

/* --- Üres állapotok: finom illusztráció minden .empty-state elemhez --- */
body.is-authenticated .empty-state {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 32px 20px;
    text-align: center;
}
body.is-authenticated .empty-state::before {
    content: "";
    width: 52px;
    height: 52px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%2221%22%20stroke%3D%22%2300C8FD%22%20stroke-opacity%3D%220.35%22%20stroke-width%3D%222%22%20stroke-dasharray%3D%223%206%22/%3E%3Cpath%20d%3D%22M24%2013v10l7%204%22%20stroke%3D%22%230062FC%22%20stroke-opacity%3D%220.55%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .9;
}
body.is-authenticated .table-empty-state { padding: 30px 16px; }
body.is-authenticated .table-empty-state strong { color: var(--app-ink); font-size: .98rem; }
body.is-authenticated .table-empty-state span { color: var(--app-muted); font-size: .86rem; max-width: 360px; }

/* --- Aktivitás-idővonal (lead/ügyfél jegyzetek) --- */
body.is-authenticated .notes-list {
    display: grid;
    gap: 0;
    position: relative;
    padding-left: 20px;
}
body.is-authenticated .notes-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--app-line);
}
body.is-authenticated .note-item {
    position: relative;
    padding: 0 0 18px 18px;
    border-top: 0;
    line-height: 1.55;
    font-size: .88rem;
}
body.is-authenticated .note-item::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--app-blue);
    border: 2px solid var(--app-surface);
    box-shadow: 0 0 0 2px var(--app-line);
}
body.is-authenticated .note-item:last-child { padding-bottom: 0; }
body.is-authenticated .note-meta { color: var(--app-faint); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }

/* --- Ajánlat-dokumentum (PDF/nyomtatás) — mindig világos, elegáns "letterhead" --- */
body.is-authenticated .quote-print {
    background: #fff !important;
    color: #1A2233 !important;
    border: 1px solid #E3E7EE !important;
    border-top: 6px solid var(--app-blue) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}
body.is-authenticated .quote-print .quote-brand { display: flex; align-items: center; gap: 16px; }
body.is-authenticated .quote-print .quote-logo { max-height: 56px; max-width: 180px; object-fit: contain; }
body.is-authenticated .quote-print h1 { color: #0F1A2E !important; font-weight: 800 !important; }
body.is-authenticated .quote-print h2 { color: #7A8699 !important; font-weight: 800 !important; font-size: .74rem !important; letter-spacing: .06em; }
body.is-authenticated .quote-print .badge { background: var(--app-blue-light) !important; color: var(--app-blue-dark) !important; }
body.is-authenticated .quote-print .display-6 { color: var(--app-blue) !important; }
body.is-authenticated .quote-print table thead th { background: #F4F7FB !important; color: #7A8699 !important; border-bottom: 2px solid #E3E7EE !important; }
body.is-authenticated .quote-print table tbody td,
body.is-authenticated .quote-print table tfoot th { border-color: #EEF1F6 !important; }
body.is-authenticated .quote-print table tfoot th { font-size: 1.05rem; }

/* --- Ügyféltörténet idővonal jelvénye: új márkaszín --- */
body.is-authenticated .timeline-badge {
    background: linear-gradient(180deg, var(--app-blue), var(--app-blue-dark));
}
body.is-authenticated .timeline-item:hover {
    border-color: var(--app-line-strong);
}

/* --- Integrációk (Facebook/Google/webhook kártyák) --- */
body.is-authenticated .integration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
body.is-authenticated .integration-card-muted {
    opacity: .6;
}
body.is-authenticated .integration-card details summary {
    cursor: pointer;
    color: var(--app-blue);
    font-weight: 650;
}
@media (max-width: 900px) {
    body.is-authenticated .integration-grid { grid-template-columns: 1fr; }
}

/* --- Számla-státusz jelvények színkódolva --- */
body.is-authenticated .invoice-status-paid    { color: var(--app-green); background: var(--app-green-light); }
body.is-authenticated .invoice-status-issued  { color: var(--app-blue); background: var(--app-blue-light); }
body.is-authenticated .invoice-status-draft   { color: var(--app-muted); background: var(--app-surface-2); }
body.is-authenticated .invoice-status-failed  { color: var(--app-red); background: var(--app-red-light); }
body.is-authenticated .invoice-status-storno  { color: var(--app-amber); background: var(--app-amber-light); text-decoration: line-through; }

/* --- Leadek: nézet-váltó (Táblázat / Kanban) --- */
body.is-authenticated .leads-view-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    border-radius: var(--app-radius-md);
    background: var(--app-surface-2);
    border: 1px solid var(--app-line);
}
body.is-authenticated .leads-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--app-radius-sm);
    background: transparent;
    color: var(--app-muted);
    font-weight: 650;
    font-size: .88rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
body.is-authenticated .leads-view-btn svg { width: 16px; height: 16px; }
body.is-authenticated .leads-view-btn.is-active { background: var(--app-surface); color: var(--app-blue); box-shadow: var(--app-shadow-sm); }

/* --- Kanban tábla --- */
body.is-authenticated .leads-kanban {
    display: grid;
    grid-template-columns: repeat(5, minmax(240px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}
body.is-authenticated .leads-kanban-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface-2);
    padding: 14px;
}
body.is-authenticated .leads-kanban-column.is-dragover {
    border-color: var(--app-blue);
    background: var(--app-blue-light);
}
body.is-authenticated .leads-kanban-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
body.is-authenticated .leads-kanban-column-head h3 {
    margin: 0;
    font-size: .85rem;
    font-weight: 750;
    color: var(--app-ink);
}
body.is-authenticated .leads-kanban-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    color: var(--app-muted);
    font-size: .72rem;
    font-weight: 750;
}
body.is-authenticated .leads-kanban-cards {
    display: grid;
    gap: 9px;
    min-height: 60px;
}
body.is-authenticated .leads-kanban-card {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    color: inherit;
    text-decoration: none;
    cursor: grab;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
}
body.is-authenticated .leads-kanban-card:hover {
    transform: translateY(-1px);
    border-color: var(--app-line-strong);
    box-shadow: var(--app-shadow-sm);
}
body.is-authenticated .leads-kanban-card.is-dragging { opacity: .4; }
body.is-authenticated .leads-kanban-card strong { color: var(--app-ink); font-size: .9rem; }
body.is-authenticated .leads-kanban-card span { color: var(--app-muted); font-size: .78rem; }
body.is-authenticated .leads-kanban-sla {
    justify-self: start;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 750;
}
body.is-authenticated .leads-kanban-sla.sla-pending { color: var(--app-amber); background: var(--app-amber-light); }
body.is-authenticated .leads-kanban-sla.sla-breached { color: var(--app-red); background: var(--app-red-light); }
body.is-authenticated .leads-kanban-empty {
    padding: 16px;
    text-align: center;
    color: var(--app-faint);
    font-size: .8rem;
    border: 1px dashed var(--app-line-strong);
    border-radius: var(--app-radius-sm);
}

@media (max-width: 1180px) {
    body.is-authenticated .leads-kanban { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
}
@media (max-width: 760px) {
    body.is-authenticated .leads-kanban { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(78vw, 1fr); }
}

/* --- Topbar ikon-gombok (harang, sötét mód, súgó) --- */
body.is-authenticated .topbar-icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    color: var(--app-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
body.is-authenticated .topbar-icon-btn:hover { color: var(--app-blue); border-color: var(--app-line-strong); }
body.is-authenticated .topbar-icon-btn svg { width: 18px; height: 18px; }

/* --- Értesítési központ --- */
body.is-authenticated .topbar-notif { position: relative; }
body.is-authenticated .topbar-notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--app-red);
    border: 2px solid var(--app-surface);
}
body.is-authenticated .topbar-notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: min(380px, 92vw);
    max-height: 70vh;
    overflow-y: auto;
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow-lg);
}
body.is-authenticated .topbar-notif.is-open .topbar-notif-panel { display: block; }
body.is-authenticated .topbar-notif-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--app-line);
    font-weight: 750;
    color: var(--app-ink);
}
body.is-authenticated .topbar-notif-list { padding: 8px; }
body.is-authenticated .topbar-notif-loading,
body.is-authenticated .topbar-notif-empty {
    padding: 22px 12px;
    text-align: center;
    color: var(--app-muted);
    font-size: .86rem;
}
body.is-authenticated .topbar-notif-group-label {
    margin: 10px 10px 4px;
    color: var(--app-faint);
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}
body.is-authenticated .topbar-notif-item {
    display: block;
    padding: 10px 12px;
    border-radius: var(--app-radius-sm);
    color: inherit;
    text-decoration: none;
}
body.is-authenticated .topbar-notif-item:hover { background: var(--app-surface-2); }
body.is-authenticated .topbar-notif-item strong { display: block; color: var(--app-ink); font-size: .88rem; }
body.is-authenticated .topbar-notif-item span { display: block; color: var(--app-muted); font-size: .78rem; margin-top: 2px; }

/* --- Billentyűparancs-puska --- */
#app-shortcuts-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4,23,58,.42);
    backdrop-filter: blur(3px);
}
#app-shortcuts-modal.is-open { display: flex; }
body.is-authenticated .shortcuts-box { width: min(420px, 100%); padding: 4px 0; }
body.is-authenticated .shortcuts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--app-line);
    color: var(--app-ink);
}
body.is-authenticated .shortcuts-list { padding: 10px 18px 16px; display: grid; gap: 10px; }
body.is-authenticated .shortcuts-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.is-authenticated .shortcuts-row span { color: var(--app-text); font-size: .9rem; }
body.is-authenticated .shortcuts-row kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--app-surface-2);
    border: 1px solid var(--app-line-strong);
    color: var(--app-ink);
    font-family: inherit;
    font-size: .78rem;
    font-weight: 750;
    box-shadow: 0 2px 0 var(--app-line-strong);
}

/* --- Valós idejű űrlap-visszajelzés --- */
body.is-authenticated .form-control.is-valid,
body.is-authenticated .form-control.is-invalid {
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}
body.is-authenticated .form-control.is-valid {
    border-color: var(--app-green) !important;
    box-shadow: 0 0 0 3px var(--app-green-light) !important;
}
body.is-authenticated .form-control.is-invalid {
    border-color: var(--app-red) !important;
    box-shadow: 0 0 0 3px var(--app-red-light) !important;
}
body.is-authenticated .field-feedback {
    display: block;
    margin-top: 5px;
    font-size: .8rem;
    font-weight: 550;
}
body.is-authenticated .field-feedback.is-invalid-text { color: var(--app-red); }
body.is-authenticated .field-feedback.is-valid-text { color: var(--app-green); }

/* --- Sötét mód --- */
html[data-theme="dark"] body.is-authenticated {
    --app-bg: #0A0F1C;
    --app-surface: #121A2C;
    --app-surface-2: #0E1526;
    --app-line: #232D45;
    --app-line-strong: #303C58;
    --app-ink: #F2F5FB;
    --app-text: #D7DEEA;
    --app-muted: #8C99B2;
    --app-faint: #66738C;
    --app-blue-light: rgba(46,134,255,.16);
    --app-green-light: rgba(18,148,106,.18);
    --app-amber-light: rgba(185,106,12,.20);
    --app-red-light: rgba(209,75,54,.18);
    --app-violet-light: rgba(124,88,232,.20);
    background: var(--app-bg) !important;
}
html[data-theme="dark"] body.is-authenticated .app-sidebar,
html[data-theme="dark"] body.is-authenticated .mobile-sidebar {
    background: linear-gradient(180deg, #060A14 0%, #0A0F1C 100%);
}
html[data-theme="dark"] body.is-authenticated .app-topbar {
    background: rgba(10,15,28,.88);
    border-bottom-color: var(--app-line);
}
html[data-theme="dark"] body.is-authenticated .sidebar-logo-frame { background: #fff; }
html[data-theme="dark"] body.is-authenticated .topbar-search,
html[data-theme="dark"] body.is-authenticated .form-control,
html[data-theme="dark"] body.is-authenticated .form-select,
html[data-theme="dark"] body.is-authenticated textarea,
html[data-theme="dark"] body.is-authenticated input {
    background: var(--app-surface-2) !important;
    color: var(--app-text) !important;
}
html[data-theme="dark"] body.is-authenticated .table thead th { background: var(--app-surface-2); }
html[data-theme="dark"] body.is-authenticated .table tbody tr:hover td { background: var(--app-surface-2); }
html[data-theme="dark"] body.is-authenticated [data-theme-icon-dark] { display: none; }
html[data-theme="dark"] body.is-authenticated [data-theme-icon-light] { display: inline; }

/* =====================================================================
   Dashboard Premium Redesign - 2026-07-13
   Scope: dashboard.php only
   ===================================================================== */

body.is-authenticated:has(.dashboard-premium),
body.is-authenticated:has(.dashboard-shell) {
    background:
        linear-gradient(135deg, rgba(246,248,252,.96), rgba(241,246,250,.94)),
        repeating-linear-gradient(90deg, rgba(12,22,36,.035) 0 1px, transparent 1px 82px),
        repeating-linear-gradient(0deg, rgba(12,22,36,.028) 0 1px, transparent 1px 82px) !important;
}

body.is-authenticated .dashboard-premium,
body.is-authenticated .dashboard-shell {
    --dash-ink: #07111f;
    --dash-text: #26364c;
    --dash-muted: #66758a;
    --dash-soft: #f6f8fb;
    --dash-line: rgba(16, 31, 52, .105);
    --dash-navy: #071321;
    --dash-blue: #1264f4;
    --dash-cyan: #11a7c9;
    --dash-green: #12946a;
    --dash-amber: #c87913;
    --dash-red: #d14b36;
    --dash-violet: #7357d9;
    --dash-radius: 8px;
    --dash-radius-lg: 8px;
    --dash-shadow: 0 14px 40px rgba(16, 31, 52, .10);
    --dash-shadow-strong: 0 24px 70px rgba(5, 16, 31, .20);
    gap: 18px;
}

body.is-authenticated .dashboard-premium .card,
body.is-authenticated .dashboard-shell .card {
    border-radius: var(--dash-radius);
}

body.is-authenticated .dashboard-premium .dashboard-hero,
body.is-authenticated .dashboard-shell .dashboard-hero.card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 22px;
    min-height: 360px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--dash-radius-lg);
    color: #fff;
    background:
        linear-gradient(115deg, rgba(7,19,33,.98) 0%, rgba(10,34,56,.97) 52%, rgba(13,90,134,.92) 100%) !important;
    box-shadow: var(--dash-shadow-strong);
}

body.is-authenticated .dashboard-premium .dashboard-hero::before,
body.is-authenticated .dashboard-shell .dashboard-hero.card::before {
    opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.15));
    mask-image: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.15));
}

body.is-authenticated .dashboard-premium .dashboard-hero::after,
body.is-authenticated .dashboard-shell .dashboard-hero.card::after {
    right: -46px;
    bottom: -54px;
    width: 300px;
    height: 300px;
    opacity: .46;
    filter: drop-shadow(0 30px 50px rgba(17,167,201,.18));
}

body.is-authenticated .dashboard-premium .dashboard-hero-copy,
body.is-authenticated .dashboard-shell .dashboard-hero-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

body.is-authenticated .dashboard-premium .dashboard-hero h1,
body.is-authenticated .dashboard-shell .dashboard-hero h1 {
    max-width: 760px;
    margin: 8px 0 12px;
    font-size: clamp(2.15rem, 4.1vw, 4.65rem);
    line-height: .96;
    font-weight: 820;
    letter-spacing: 0;
}

body.is-authenticated .dashboard-premium .dashboard-hero p,
body.is-authenticated .dashboard-shell .dashboard-hero p {
    max-width: 720px;
    margin-bottom: 24px;
    color: rgba(235,244,255,.76) !important;
    font-size: 1.02rem;
    line-height: 1.72;
}

body.is-authenticated .dashboard-premium .dashboard-hero .eyebrow,
body.is-authenticated .dashboard-shell .dashboard-hero .eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(125,216,255,.28);
    border-radius: 999px;
    color: #8ee4ff !important;
    background: rgba(125,216,255,.08);
    letter-spacing: .08em;
}

body.is-authenticated .dashboard-premium .dashboard-actions,
body.is-authenticated .dashboard-shell .dashboard-actions {
    gap: 9px;
}

body.is-authenticated .dashboard-premium .dashboard-actions .btn,
body.is-authenticated .dashboard-shell .dashboard-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: var(--dash-radius);
    backdrop-filter: blur(10px);
}

body.is-authenticated .dashboard-premium .dashboard-actions .btn svg,
body.is-authenticated .dashboard-shell .dashboard-actions .btn svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
}

body.is-authenticated .dashboard-premium .dashboard-hero-side,
body.is-authenticated .dashboard-shell .dashboard-hero-side {
    align-self: stretch;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 12px;
    min-width: 0;
}

body.is-authenticated .dashboard-premium .dashboard-focus-card,
body.is-authenticated .dashboard-shell .dashboard-focus-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    padding: 22px;
    border-radius: var(--dash-radius);
    border: 1px solid rgba(255,255,255,.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07)),
        rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
    backdrop-filter: blur(16px);
}

body.is-authenticated .dashboard-premium .dashboard-focus-card::after,
body.is-authenticated .dashboard-shell .dashboard-focus-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: conic-gradient(from 160deg, rgba(142,228,255,.88), rgba(19,148,106,.72), rgba(255,255,255,.18), rgba(142,228,255,.88));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
    opacity: .86;
}

body.is-authenticated .dashboard-premium .dashboard-focus-card span,
body.is-authenticated .dashboard-shell .dashboard-focus-card span {
    color: rgba(235,244,255,.70) !important;
    font-size: .75rem;
    font-weight: 760;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.is-authenticated .dashboard-premium .dashboard-focus-card strong,
body.is-authenticated .dashboard-shell .dashboard-focus-card strong {
    max-width: 280px;
    color: #fff !important;
    font-size: clamp(2.15rem, 4vw, 3.4rem) !important;
    font-weight: 820;
    line-height: .98;
}

body.is-authenticated .dashboard-premium .dashboard-focus-card small,
body.is-authenticated .dashboard-shell .dashboard-focus-card small {
    color: rgba(235,244,255,.64) !important;
    font-weight: 650;
}

body.is-authenticated .dashboard-premium .dashboard-hero-grid,
body.is-authenticated .dashboard-shell .dashboard-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.is-authenticated .dashboard-premium .dashboard-hero .mini-stat,
body.is-authenticated .dashboard-shell .dashboard-hero .mini-stat {
    min-height: 94px;
    padding: 14px;
    border-radius: var(--dash-radius);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.075);
    backdrop-filter: blur(10px);
}

body.is-authenticated .dashboard-premium .dashboard-hero .mini-stat span,
body.is-authenticated .dashboard-shell .dashboard-hero .mini-stat span {
    display: block;
    min-height: 32px;
    color: rgba(235,244,255,.62) !important;
    font-size: .72rem;
    font-weight: 720;
    text-transform: uppercase;
}

body.is-authenticated .dashboard-premium .dashboard-hero .mini-stat strong,
body.is-authenticated .dashboard-shell .dashboard-hero .mini-stat strong {
    display: block;
    margin-top: 8px;
    color: #fff !important;
    font-size: 1.65rem !important;
    font-weight: 800;
}

body.is-authenticated .dashboard-premium .dashboard-panel,
body.is-authenticated .dashboard-shell .dashboard-panel,
body.is-authenticated .dashboard-premium .dashboard-stat-card,
body.is-authenticated .dashboard-shell .dashboard-stat-card,
body.is-authenticated .dashboard-premium .next-actions-panel,
body.is-authenticated .dashboard-shell .next-actions-panel,
body.is-authenticated .dashboard-premium .source-breakdown-panel,
body.is-authenticated .dashboard-shell .source-breakdown-panel {
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86)),
        var(--app-surface);
    box-shadow: var(--dash-shadow);
}

body.is-authenticated .dashboard-premium .dashboard-panel,
body.is-authenticated .dashboard-shell .dashboard-panel,
body.is-authenticated .dashboard-premium .next-actions-panel,
body.is-authenticated .dashboard-shell .next-actions-panel,
body.is-authenticated .dashboard-premium .source-breakdown-panel,
body.is-authenticated .dashboard-shell .source-breakdown-panel {
    padding: 22px;
}

body.is-authenticated .dashboard-premium .dashboard-panel:hover,
body.is-authenticated .dashboard-shell .dashboard-panel:hover {
    box-shadow: 0 18px 46px rgba(16,31,52,.12);
}

body.is-authenticated .dashboard-premium .dashboard-panel-head,
body.is-authenticated .dashboard-shell .dashboard-panel-head {
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(16,31,52,.075);
}

body.is-authenticated .dashboard-premium .dashboard-panel-head h2,
body.is-authenticated .dashboard-shell .dashboard-panel-head h2 {
    color: var(--dash-ink);
    font-size: 1.18rem;
    font-weight: 780;
}

body.is-authenticated .dashboard-premium .dashboard-panel-head p,
body.is-authenticated .dashboard-shell .dashboard-panel-head p {
    max-width: 760px;
    color: var(--dash-muted) !important;
}

body.is-authenticated .dashboard-premium .dashboard-stat-grid,
body.is-authenticated .dashboard-shell .dashboard-stat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

body.is-authenticated .dashboard-premium .dashboard-stat-card,
body.is-authenticated .dashboard-shell .dashboard-stat-card {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "label" "value" "hint";
    align-items: start;
    min-height: 168px;
    padding: 18px;
    overflow: hidden;
}

body.is-authenticated .dashboard-premium .dashboard-stat-card::after,
body.is-authenticated .dashboard-shell .dashboard-stat-card::after {
    content: "";
    display: block;
    position: absolute;
    inset: auto 14px 14px 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, currentColor, rgba(255,255,255,0));
    opacity: .22;
}

body.is-authenticated .dashboard-premium .dashboard-stat-card .stat-icon,
body.is-authenticated .dashboard-shell .dashboard-stat-card .stat-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: var(--dash-radius);
}

body.is-authenticated .dashboard-premium .dashboard-stat-card .stat-label,
body.is-authenticated .dashboard-shell .dashboard-stat-card .stat-label {
    min-height: 32px;
    color: var(--dash-muted);
    letter-spacing: .06em;
}

body.is-authenticated .dashboard-premium .dashboard-stat-card strong,
body.is-authenticated .dashboard-shell .dashboard-stat-card strong {
    margin-top: 6px;
    color: var(--dash-ink);
    font-size: clamp(1.42rem, 1.65vw, 1.95rem);
    letter-spacing: 0;
    white-space: normal;
}

body.is-authenticated .dashboard-premium .dashboard-stat-card small,
body.is-authenticated .dashboard-shell .dashboard-stat-card small {
    margin-top: 8px;
    color: var(--dash-muted);
}

body.is-authenticated .dashboard-premium .daily-plan-panel,
body.is-authenticated .dashboard-shell .daily-plan-panel {
    margin-top: 0;
    border-color: rgba(18,100,244,.16);
}

body.is-authenticated .dashboard-premium .daily-plan-summary,
body.is-authenticated .dashboard-shell .daily-plan-summary {
    gap: 10px;
}

body.is-authenticated .dashboard-premium .daily-plan-summary > div,
body.is-authenticated .dashboard-shell .daily-plan-summary > div,
body.is-authenticated .dashboard-premium .source-summary-card,
body.is-authenticated .dashboard-shell .source-summary-card,
body.is-authenticated .dashboard-premium .pipeline-card,
body.is-authenticated .dashboard-shell .pipeline-card {
    border-radius: var(--dash-radius);
    border-color: rgba(16,31,52,.08);
    background: linear-gradient(180deg, rgba(246,248,251,.96), rgba(255,255,255,.92));
}

body.is-authenticated .dashboard-premium .daily-plan-summary strong,
body.is-authenticated .dashboard-shell .daily-plan-summary strong,
body.is-authenticated .dashboard-premium .source-summary-card strong,
body.is-authenticated .dashboard-shell .source-summary-card strong,
body.is-authenticated .dashboard-premium .pipeline-card strong,
body.is-authenticated .dashboard-shell .pipeline-card strong {
    color: var(--dash-ink);
}

body.is-authenticated .dashboard-premium .daily-plan-column,
body.is-authenticated .dashboard-shell .daily-plan-column {
    border-radius: var(--dash-radius);
    border-color: rgba(16,31,52,.08);
    background: rgba(255,255,255,.72);
}

body.is-authenticated .dashboard-premium .daily-plan-item,
body.is-authenticated .dashboard-shell .daily-plan-item,
body.is-authenticated .dashboard-premium .quick-list-item,
body.is-authenticated .dashboard-shell .quick-list-item,
body.is-authenticated .dashboard-premium .next-action-card,
body.is-authenticated .dashboard-shell .next-action-card {
    border-radius: var(--dash-radius);
    border-color: rgba(16,31,52,.08);
    background: rgba(255,255,255,.78);
}

body.is-authenticated .dashboard-premium .daily-plan-item:hover,
body.is-authenticated .dashboard-shell .daily-plan-item:hover,
body.is-authenticated .dashboard-premium .quick-list-link:hover,
body.is-authenticated .dashboard-shell .quick-list-link:hover,
body.is-authenticated .dashboard-premium .next-action-card:hover,
body.is-authenticated .dashboard-shell .next-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(18,100,244,.28);
    background: #fff;
    box-shadow: 0 14px 34px rgba(16,31,52,.10);
}

body.is-authenticated .dashboard-premium .next-action-grid,
body.is-authenticated .dashboard-shell .next-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.is-authenticated .dashboard-premium .next-action-card,
body.is-authenticated .dashboard-shell .next-action-card {
    display: flex;
    min-height: 154px;
    flex-direction: column;
    justify-content: space-between;
    border-left-width: 0;
}

body.is-authenticated .dashboard-premium .next-action-card em,
body.is-authenticated .dashboard-shell .next-action-card em,
body.is-authenticated .dashboard-premium .daily-plan-item span,
body.is-authenticated .dashboard-shell .daily-plan-item span {
    border-radius: 999px;
}

body.is-authenticated .dashboard-premium .source-breakdown-row,
body.is-authenticated .dashboard-shell .source-breakdown-row {
    border-radius: var(--dash-radius);
    border-color: rgba(16,31,52,.08);
    background: rgba(255,255,255,.72);
}

body.is-authenticated .dashboard-premium .source-breakdown-track,
body.is-authenticated .dashboard-shell .source-breakdown-track,
body.is-authenticated .dashboard-premium .pipeline-bar-track,
body.is-authenticated .dashboard-shell .pipeline-bar-track {
    height: 10px;
    background: #e8edf4;
}

body.is-authenticated .dashboard-premium .source-breakdown-track span,
body.is-authenticated .dashboard-shell .source-breakdown-track span,
body.is-authenticated .dashboard-premium .pipeline-bar,
body.is-authenticated .dashboard-shell .pipeline-bar {
    background: linear-gradient(90deg, var(--dash-blue), var(--dash-cyan));
    box-shadow: 0 4px 12px rgba(18,100,244,.22);
}

body.is-authenticated .dashboard-premium .dashboard-board,
body.is-authenticated .dashboard-shell .dashboard-board {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .45fr);
}

body.is-authenticated .dashboard-premium .pipeline-grid,
body.is-authenticated .dashboard-shell .pipeline-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.is-authenticated .dashboard-premium .pipeline-card,
body.is-authenticated .dashboard-shell .pipeline-card {
    min-height: 118px;
}

body.is-authenticated .dashboard-premium .pipeline-insight-grid,
body.is-authenticated .dashboard-shell .pipeline-insight-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
}

body.is-authenticated .dashboard-premium .pipeline-chart,
body.is-authenticated .dashboard-shell .pipeline-chart,
body.is-authenticated .dashboard-premium .pipeline-kpi,
body.is-authenticated .dashboard-shell .pipeline-kpi {
    border-radius: var(--dash-radius);
    border-color: rgba(16,31,52,.08);
    background: rgba(255,255,255,.76);
}

body.is-authenticated .dashboard-premium .pipeline-kpis,
body.is-authenticated .dashboard-shell .pipeline-kpis {
    grid-template-columns: 1fr;
}

body.is-authenticated .dashboard-premium .quick-list-item,
body.is-authenticated .dashboard-shell .quick-list-item {
    padding: 15px 42px 15px 16px;
}

body.is-authenticated .dashboard-premium .quick-list-item strong,
body.is-authenticated .dashboard-shell .quick-list-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dash-ink);
}

body.is-authenticated .dashboard-premium .quick-list-item span,
body.is-authenticated .dashboard-shell .quick-list-item span,
body.is-authenticated .dashboard-premium .quick-list-item small,
body.is-authenticated .dashboard-shell .quick-list-item small {
    color: var(--dash-muted);
}

body.is-authenticated .dashboard-premium .empty-state,
body.is-authenticated .dashboard-shell .empty-state,
body.is-authenticated .dashboard-premium .daily-plan-empty,
body.is-authenticated .dashboard-shell .daily-plan-empty {
    border-radius: var(--dash-radius);
    border: 1px dashed rgba(16,31,52,.16);
    background:
        linear-gradient(180deg, rgba(246,248,251,.95), rgba(255,255,255,.75));
}

html[data-theme="dark"] body.is-authenticated:has(.dashboard-premium),
html[data-theme="dark"] body.is-authenticated:has(.dashboard-shell) {
    background:
        linear-gradient(135deg, rgba(7,12,22,.98), rgba(10,17,30,.98)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 82px),
        repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 82px) !important;
}

html[data-theme="dark"] body.is-authenticated .dashboard-premium,
html[data-theme="dark"] body.is-authenticated .dashboard-shell {
    --dash-ink: #f4f7fb;
    --dash-text: #d7deea;
    --dash-muted: #95a2b8;
    --dash-line: rgba(255,255,255,.11);
    --dash-shadow: 0 18px 46px rgba(0,0,0,.28);
}

html[data-theme="dark"] body.is-authenticated .dashboard-premium .dashboard-panel,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .dashboard-panel,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .dashboard-stat-card,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .dashboard-stat-card,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .next-actions-panel,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .next-actions-panel,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .source-breakdown-panel,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .source-breakdown-panel,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .daily-plan-summary > div,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .daily-plan-summary > div,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .daily-plan-column,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .daily-plan-column,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .daily-plan-item,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .daily-plan-item,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .quick-list-item,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .quick-list-item,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .next-action-card,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .next-action-card,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .source-breakdown-row,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .source-breakdown-row,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .pipeline-card,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .pipeline-card,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .pipeline-chart,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .pipeline-chart,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .pipeline-kpi,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .pipeline-kpi {
    border-color: rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(18,26,44,.96), rgba(14,21,38,.90)) !important;
}

html[data-theme="dark"] body.is-authenticated .dashboard-premium .source-breakdown-track,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .source-breakdown-track,
html[data-theme="dark"] body.is-authenticated .dashboard-premium .pipeline-bar-track,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .pipeline-bar-track {
    background: #232d45;
}

@media (max-width: 1500px) {
    body.is-authenticated .dashboard-premium .dashboard-stat-grid,
    body.is-authenticated .dashboard-shell .dashboard-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1320px) {
    body.is-authenticated .dashboard-premium .dashboard-hero,
    body.is-authenticated .dashboard-shell .dashboard-hero.card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body.is-authenticated .dashboard-premium .dashboard-hero-side,
    body.is-authenticated .dashboard-shell .dashboard-hero-side {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 1180px) {
    body.is-authenticated .dashboard-premium .dashboard-board,
    body.is-authenticated .dashboard-shell .dashboard-board,
    body.is-authenticated .dashboard-premium .pipeline-insight-grid,
    body.is-authenticated .dashboard-shell .pipeline-insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body.is-authenticated .dashboard-premium .dashboard-hero-grid,
    body.is-authenticated .dashboard-shell .dashboard-hero-grid,
    body.is-authenticated .dashboard-premium .next-action-grid,
    body.is-authenticated .dashboard-shell .next-action-grid,
    body.is-authenticated .dashboard-premium .pipeline-grid,
    body.is-authenticated .dashboard-shell .pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.is-authenticated .dashboard-premium .dashboard-hero-side,
    body.is-authenticated .dashboard-shell .dashboard-hero-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.is-authenticated .dashboard-premium .dashboard-hero,
    body.is-authenticated .dashboard-shell .dashboard-hero.card {
        padding: 18px;
    }

    body.is-authenticated .dashboard-premium .dashboard-hero h1,
    body.is-authenticated .dashboard-shell .dashboard-hero h1 {
        font-size: 2.25rem;
        line-height: 1;
    }

    body.is-authenticated .dashboard-premium .dashboard-actions,
    body.is-authenticated .dashboard-shell .dashboard-actions,
    body.is-authenticated .dashboard-premium .dashboard-hero-grid,
    body.is-authenticated .dashboard-shell .dashboard-hero-grid,
    body.is-authenticated .dashboard-premium .dashboard-stat-grid,
    body.is-authenticated .dashboard-shell .dashboard-stat-grid,
    body.is-authenticated .dashboard-premium .source-summary-grid,
    body.is-authenticated .dashboard-shell .source-summary-grid,
    body.is-authenticated .dashboard-premium .next-action-grid,
    body.is-authenticated .dashboard-shell .next-action-grid,
    body.is-authenticated .dashboard-premium .pipeline-grid,
    body.is-authenticated .dashboard-shell .pipeline-grid {
        grid-template-columns: 1fr !important;
    }

    body.is-authenticated .dashboard-premium .dashboard-panel-head,
    body.is-authenticated .dashboard-shell .dashboard-panel-head {
        display: grid;
    }
}

/* =====================================================================
   Dashboard Color Harmony + Clarity Pass - 2026-07-13
   ===================================================================== */

body.is-authenticated .dashboard-premium,
body.is-authenticated .dashboard-shell {
    --dash-primary: #1457d9;
    --dash-primary-2: #0f6fdc;
    --dash-accent: #0e9fb0;
    --dash-success: #12805c;
    --dash-warning: #b96f10;
    --dash-danger: #c63f32;
    --dash-neutral: #526176;
    --dash-primary-soft: rgba(20,87,217,.105);
    --dash-accent-soft: rgba(14,159,176,.105);
    --dash-success-soft: rgba(18,128,92,.115);
    --dash-warning-soft: rgba(185,111,16,.13);
    --dash-danger-soft: rgba(198,63,50,.115);
    --dash-neutral-soft: rgba(82,97,118,.11);

    --dash-blue: var(--dash-primary);
    --dash-cyan: var(--dash-accent);
    --dash-green: var(--dash-success);
    --dash-amber: var(--dash-warning);
    --dash-red: var(--dash-danger);
    --dash-violet: var(--dash-primary-2);
}

body.is-authenticated .dashboard-premium .dashboard-hero,
body.is-authenticated .dashboard-shell .dashboard-hero.card {
    background:
        linear-gradient(115deg, rgba(7,19,33,.98) 0%, rgba(9,31,54,.98) 56%, rgba(20,87,217,.88) 100%) !important;
}

body.is-authenticated .dashboard-premium .dashboard-hero .eyebrow,
body.is-authenticated .dashboard-shell .dashboard-hero .eyebrow {
    color: #a8e8ff !important;
    border-color: rgba(168,232,255,.30);
    background: rgba(168,232,255,.09);
}

body.is-authenticated .dashboard-premium .dashboard-focus-card::after,
body.is-authenticated .dashboard-shell .dashboard-focus-card::after {
    background: conic-gradient(from 160deg, rgba(168,232,255,.9), rgba(20,87,217,.75), rgba(255,255,255,.18), rgba(168,232,255,.9));
}

body.is-authenticated .dashboard-premium .dashboard-panel-head,
body.is-authenticated .dashboard-shell .dashboard-panel-head {
    position: relative;
    padding-left: 14px;
}

body.is-authenticated .dashboard-premium .dashboard-panel-head::before,
body.is-authenticated .dashboard-shell .dashboard-panel-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--dash-primary), var(--dash-accent));
}

body.is-authenticated .dashboard-premium .panel-kicker,
body.is-authenticated .dashboard-shell .panel-kicker,
body.is-authenticated .dashboard-premium .eyebrow,
body.is-authenticated .dashboard-shell .eyebrow {
    color: var(--dash-primary) !important;
}

body.is-authenticated .dashboard-premium .dashboard-panel-head .btn,
body.is-authenticated .dashboard-shell .dashboard-panel-head .btn {
    border-color: rgba(20,87,217,.22);
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

body.is-authenticated .dashboard-premium .dashboard-panel-head .btn:hover,
body.is-authenticated .dashboard-shell .dashboard-panel-head .btn:hover {
    color: #fff;
    border-color: var(--dash-primary);
    background: var(--dash-primary);
}

body.is-authenticated .dashboard-premium .dashboard-stat-card,
body.is-authenticated .dashboard-shell .dashboard-stat-card {
    color: var(--dash-primary);
    border-top: 4px solid currentColor;
}

body.is-authenticated .dashboard-premium .stat-blue,
body.is-authenticated .dashboard-shell .stat-blue { color: var(--dash-primary); }
body.is-authenticated .dashboard-premium .stat-green,
body.is-authenticated .dashboard-shell .stat-green { color: var(--dash-success); }
body.is-authenticated .dashboard-premium .stat-amber,
body.is-authenticated .dashboard-shell .stat-amber { color: var(--dash-warning); }
body.is-authenticated .dashboard-premium .stat-indigo,
body.is-authenticated .dashboard-shell .stat-indigo { color: var(--dash-primary-2); }
body.is-authenticated .dashboard-premium .stat-teal,
body.is-authenticated .dashboard-shell .stat-teal { color: var(--dash-accent); }
body.is-authenticated .dashboard-premium .stat-red,
body.is-authenticated .dashboard-shell .stat-red { color: var(--dash-danger); }
body.is-authenticated .dashboard-premium .stat-slate,
body.is-authenticated .dashboard-shell .stat-slate { color: var(--dash-neutral); }

body.is-authenticated .dashboard-premium .stat-blue .stat-icon,
body.is-authenticated .dashboard-shell .stat-blue .stat-icon { color: var(--dash-primary); background: var(--dash-primary-soft); }
body.is-authenticated .dashboard-premium .stat-green .stat-icon,
body.is-authenticated .dashboard-shell .stat-green .stat-icon { color: var(--dash-success); background: var(--dash-success-soft); }
body.is-authenticated .dashboard-premium .stat-amber .stat-icon,
body.is-authenticated .dashboard-shell .stat-amber .stat-icon { color: var(--dash-warning); background: var(--dash-warning-soft); }
body.is-authenticated .dashboard-premium .stat-indigo .stat-icon,
body.is-authenticated .dashboard-shell .stat-indigo .stat-icon { color: var(--dash-primary-2); background: var(--dash-primary-soft); }
body.is-authenticated .dashboard-premium .stat-teal .stat-icon,
body.is-authenticated .dashboard-shell .stat-teal .stat-icon { color: var(--dash-accent); background: var(--dash-accent-soft); }
body.is-authenticated .dashboard-premium .stat-red .stat-icon,
body.is-authenticated .dashboard-shell .stat-red .stat-icon { color: var(--dash-danger); background: var(--dash-danger-soft); }
body.is-authenticated .dashboard-premium .stat-slate .stat-icon,
body.is-authenticated .dashboard-shell .stat-slate .stat-icon { color: var(--dash-neutral); background: var(--dash-neutral-soft); }

body.is-authenticated .dashboard-premium .daily-plan-summary > div,
body.is-authenticated .dashboard-shell .daily-plan-summary > div,
body.is-authenticated .dashboard-premium .source-summary-card,
body.is-authenticated .dashboard-shell .source-summary-card,
body.is-authenticated .dashboard-premium .pipeline-card,
body.is-authenticated .dashboard-shell .pipeline-card {
    position: relative;
    overflow: hidden;
}

body.is-authenticated .dashboard-premium .daily-plan-summary > div::after,
body.is-authenticated .dashboard-shell .daily-plan-summary > div::after,
body.is-authenticated .dashboard-premium .source-summary-card::after,
body.is-authenticated .dashboard-shell .source-summary-card::after,
body.is-authenticated .dashboard-premium .pipeline-card::after,
body.is-authenticated .dashboard-shell .pipeline-card::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dash-primary), rgba(20,87,217,0));
    opacity: .20;
}

body.is-authenticated .dashboard-premium .daily-plan-column-head,
body.is-authenticated .dashboard-shell .daily-plan-column-head {
    min-height: 56px;
}

body.is-authenticated .dashboard-premium .daily-plan-calls .daily-plan-icon,
body.is-authenticated .dashboard-shell .daily-plan-calls .daily-plan-icon,
body.is-authenticated .dashboard-premium .daily-plan-calls .daily-plan-item span,
body.is-authenticated .dashboard-shell .daily-plan-calls .daily-plan-item span {
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

body.is-authenticated .dashboard-premium .daily-plan-quotes .daily-plan-icon,
body.is-authenticated .dashboard-shell .daily-plan-quotes .daily-plan-icon,
body.is-authenticated .dashboard-premium .daily-plan-quotes .daily-plan-item span,
body.is-authenticated .dashboard-shell .daily-plan-quotes .daily-plan-item span {
    color: var(--dash-warning);
    background: var(--dash-warning-soft);
}

body.is-authenticated .dashboard-premium .daily-plan-jobs .daily-plan-icon,
body.is-authenticated .dashboard-shell .daily-plan-jobs .daily-plan-icon,
body.is-authenticated .dashboard-premium .daily-plan-jobs .daily-plan-item span,
body.is-authenticated .dashboard-shell .daily-plan-jobs .daily-plan-item span {
    color: var(--dash-success);
    background: var(--dash-success-soft);
}

body.is-authenticated .dashboard-premium .daily-plan-sla .daily-plan-icon,
body.is-authenticated .dashboard-shell .daily-plan-sla .daily-plan-icon,
body.is-authenticated .dashboard-premium .daily-plan-sla .daily-plan-item span,
body.is-authenticated .dashboard-shell .daily-plan-sla .daily-plan-item span {
    color: var(--dash-danger);
    background: var(--dash-danger-soft);
}

body.is-authenticated .dashboard-premium .next-action-card,
body.is-authenticated .dashboard-shell .next-action-card,
body.is-authenticated .dashboard-premium .daily-plan-item,
body.is-authenticated .dashboard-shell .daily-plan-item,
body.is-authenticated .dashboard-premium .quick-list-item,
body.is-authenticated .dashboard-shell .quick-list-item {
    box-shadow: 0 1px 0 rgba(16,31,52,.04);
}

body.is-authenticated .dashboard-premium .next-action-lead,
body.is-authenticated .dashboard-shell .next-action-lead { border-top: 3px solid var(--dash-primary); }
body.is-authenticated .dashboard-premium .next-action-quote,
body.is-authenticated .dashboard-shell .next-action-quote { border-top: 3px solid var(--dash-warning); }
body.is-authenticated .dashboard-premium .next-action-job,
body.is-authenticated .dashboard-shell .next-action-job { border-top: 3px solid var(--dash-success); }
body.is-authenticated .dashboard-premium .next-action-sla,
body.is-authenticated .dashboard-shell .next-action-sla { border-top: 3px solid var(--dash-danger); }

body.is-authenticated .dashboard-premium .next-action-card em,
body.is-authenticated .dashboard-shell .next-action-card em {
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

body.is-authenticated .dashboard-premium .next-action-quote em,
body.is-authenticated .dashboard-shell .next-action-quote em {
    color: var(--dash-warning);
    background: var(--dash-warning-soft);
}

body.is-authenticated .dashboard-premium .next-action-job em,
body.is-authenticated .dashboard-shell .next-action-job em {
    color: var(--dash-success);
    background: var(--dash-success-soft);
}

body.is-authenticated .dashboard-premium .next-action-sla em,
body.is-authenticated .dashboard-shell .next-action-sla em {
    color: var(--dash-danger);
    background: var(--dash-danger-soft);
}

body.is-authenticated .dashboard-premium .source-summary-card,
body.is-authenticated .dashboard-shell .source-summary-card,
body.is-authenticated .dashboard-premium .source-breakdown-row,
body.is-authenticated .dashboard-shell .source-breakdown-row {
    border-left: 4px solid var(--dash-accent);
}

body.is-authenticated .dashboard-premium .source-summary-manual,
body.is-authenticated .dashboard-shell .source-summary-manual,
body.is-authenticated .dashboard-premium .source-manual,
body.is-authenticated .dashboard-shell .source-manual,
body.is-authenticated .dashboard-premium .source-manual-customer,
body.is-authenticated .dashboard-shell .source-manual-customer {
    border-left-color: var(--dash-warning);
}

body.is-authenticated .dashboard-premium .source-summary-customer,
body.is-authenticated .dashboard-shell .source-summary-customer,
body.is-authenticated .dashboard-premium .source-customer,
body.is-authenticated .dashboard-shell .source-customer {
    border-left-color: var(--dash-success);
}

body.is-authenticated .dashboard-premium .source-breakdown-track span,
body.is-authenticated .dashboard-shell .source-breakdown-track span {
    background: linear-gradient(90deg, var(--dash-accent), rgba(14,159,176,.72));
}

body.is-authenticated .dashboard-premium .source-manual .source-breakdown-track span,
body.is-authenticated .dashboard-shell .source-manual .source-breakdown-track span,
body.is-authenticated .dashboard-premium .source-manual-customer .source-breakdown-track span,
body.is-authenticated .dashboard-shell .source-manual-customer .source-breakdown-track span {
    background: linear-gradient(90deg, var(--dash-warning), rgba(185,111,16,.68));
}

body.is-authenticated .dashboard-premium .source-customer .source-breakdown-track span,
body.is-authenticated .dashboard-shell .source-customer .source-breakdown-track span {
    background: linear-gradient(90deg, var(--dash-success), rgba(18,128,92,.68));
}

body.is-authenticated .dashboard-premium .pipeline-bar-0,
body.is-authenticated .dashboard-shell .pipeline-bar-0 { background: linear-gradient(90deg, var(--dash-primary), rgba(20,87,217,.70)); }
body.is-authenticated .dashboard-premium .pipeline-bar-1,
body.is-authenticated .dashboard-shell .pipeline-bar-1 { background: linear-gradient(90deg, var(--dash-primary-2), rgba(15,111,220,.70)); }
body.is-authenticated .dashboard-premium .pipeline-bar-2,
body.is-authenticated .dashboard-shell .pipeline-bar-2 { background: linear-gradient(90deg, var(--dash-warning), rgba(185,111,16,.70)); }
body.is-authenticated .dashboard-premium .pipeline-bar-3,
body.is-authenticated .dashboard-shell .pipeline-bar-3 { background: linear-gradient(90deg, var(--dash-success), rgba(18,128,92,.70)); }
body.is-authenticated .dashboard-premium .pipeline-bar-4,
body.is-authenticated .dashboard-shell .pipeline-bar-4 { background: linear-gradient(90deg, var(--dash-danger), rgba(198,63,50,.70)); }

body.is-authenticated .dashboard-premium .pipeline-kpi-primary,
body.is-authenticated .dashboard-shell .pipeline-kpi-primary {
    border-color: rgba(20,87,217,.20);
    background: linear-gradient(180deg, var(--dash-primary-soft), rgba(255,255,255,.80)) !important;
}

body.is-authenticated .dashboard-premium .quick-list-link::after,
body.is-authenticated .dashboard-shell .quick-list-link::after {
    color: var(--dash-primary);
    opacity: .55;
}

html[data-theme="dark"] body.is-authenticated .dashboard-premium,
html[data-theme="dark"] body.is-authenticated .dashboard-shell {
    --dash-primary-soft: rgba(58,136,255,.18);
    --dash-accent-soft: rgba(24,178,196,.18);
    --dash-success-soft: rgba(31,161,116,.18);
    --dash-warning-soft: rgba(210,138,36,.18);
    --dash-danger-soft: rgba(226,84,68,.18);
    --dash-neutral-soft: rgba(149,162,184,.16);
}

html[data-theme="dark"] body.is-authenticated .dashboard-premium .pipeline-kpi-primary,
html[data-theme="dark"] body.is-authenticated .dashboard-shell .pipeline-kpi-primary {
    background: linear-gradient(180deg, rgba(58,136,255,.18), rgba(18,26,44,.92)) !important;
}

/* =====================================================================
   Dashboard Declutter Pass - 2026-07-13
   ===================================================================== */
body.is-authenticated .dashboard-premium .next-actions-panel,
body.is-authenticated .dashboard-premium .source-breakdown-panel,
body.is-authenticated .dashboard-premium .pipeline-grid {
    display: none !important;
}

body.is-authenticated .dashboard-premium .dashboard-stat-grid-compact,
body.is-authenticated .dashboard-shell .dashboard-stat-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.is-authenticated .dashboard-premium .dashboard-stat-grid-compact .dashboard-stat-card {
    min-height: 138px;
}

body.is-authenticated .dashboard-premium .dashboard-board,
body.is-authenticated .dashboard-shell .dashboard-board {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
    gap: 18px;
    align-items: start;
}

body.is-authenticated .dashboard-premium .pipeline-insight-grid,
body.is-authenticated .dashboard-shell .pipeline-insight-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 16px;
}

body.is-authenticated .dashboard-premium .pipeline-chart,
body.is-authenticated .dashboard-shell .pipeline-chart {
    min-height: 360px;
}

body.is-authenticated .dashboard-premium .quick-list,
body.is-authenticated .dashboard-shell .quick-list {
    gap: 8px;
}

body.is-authenticated .dashboard-premium .quick-list-item,
body.is-authenticated .dashboard-shell .quick-list-item {
    padding: 13px 14px;
}

body.is-authenticated .dashboard-premium .daily-plan-list,
body.is-authenticated .dashboard-shell .daily-plan-list {
    gap: 8px;
}

body.is-authenticated .dashboard-premium .daily-plan-item,
body.is-authenticated .dashboard-shell .daily-plan-item {
    padding: 12px;
}

@media (max-width: 1280px) {
    body.is-authenticated .dashboard-premium .dashboard-board,
    body.is-authenticated .dashboard-shell .dashboard-board,
    body.is-authenticated .dashboard-premium .pipeline-insight-grid,
    body.is-authenticated .dashboard-shell .pipeline-insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    body.is-authenticated .dashboard-premium .dashboard-stat-grid-compact,
    body.is-authenticated .dashboard-shell .dashboard-stat-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    body.is-authenticated .dashboard-premium .dashboard-stat-grid-compact,
    body.is-authenticated .dashboard-shell .dashboard-stat-grid-compact {
        grid-template-columns: 1fr !important;
    }
}
/* =====================================================================
   Dashboard Maintenance Focus - 2026-07-13
   ===================================================================== */
body.is-authenticated .dashboard-premium .mini-stat-link,
body.is-authenticated .dashboard-shell .mini-stat-link {
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body.is-authenticated .dashboard-premium .mini-stat-link:hover,
body.is-authenticated .dashboard-shell .mini-stat-link:hover {
    transform: translateY(-1px);
    border-color: rgba(20,87,217,.28);
    background: linear-gradient(180deg, rgba(20,87,217,.08), rgba(255,255,255,.92));
}

body.is-authenticated .dashboard-premium .maintenance-focus-line,
body.is-authenticated .dashboard-shell .maintenance-focus-line {
    display: grid;
    grid-template-columns: minmax(170px, .75fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 14px 0 0;
    padding: 13px 15px;
    border: 1px solid rgba(185,111,16,.22);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,246,230,.92), rgba(255,255,255,.86));
    color: var(--dash-text);
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(15,23,42,.06);
}

body.is-authenticated .dashboard-premium .maintenance-focus-line span,
body.is-authenticated .dashboard-shell .maintenance-focus-line span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-warning);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.is-authenticated .dashboard-premium .maintenance-focus-line span svg,
body.is-authenticated .dashboard-shell .maintenance-focus-line span svg {
    width: 16px;
    height: 16px;
}

body.is-authenticated .dashboard-premium .maintenance-focus-line strong,
body.is-authenticated .dashboard-shell .maintenance-focus-line strong {
    color: var(--dash-text);
    font-size: 15px;
    font-weight: 900;
}

body.is-authenticated .dashboard-premium .maintenance-focus-line small,
body.is-authenticated .dashboard-shell .maintenance-focus-line small {
    justify-self: end;
    color: var(--dash-muted);
    font-size: 12px;
    font-weight: 800;
}

body.is-authenticated .dashboard-premium .maintenance-focus-line:hover,
body.is-authenticated .dashboard-shell .maintenance-focus-line:hover {
    border-color: rgba(185,111,16,.36);
    background: linear-gradient(90deg, rgba(255,241,214,.98), rgba(255,255,255,.92));
}

@media (max-width: 820px) {
    body.is-authenticated .dashboard-premium .maintenance-focus-line,
    body.is-authenticated .dashboard-shell .maintenance-focus-line {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    body.is-authenticated .dashboard-premium .maintenance-focus-line small,
    body.is-authenticated .dashboard-shell .maintenance-focus-line small {
        justify-self: start;
    }
}
/* =====================================================================
   Dashboard Capacity Focus - 2026-07-13
   ===================================================================== */
body.is-authenticated .dashboard-premium .dashboard-capacity-line,
body.is-authenticated .dashboard-shell .dashboard-capacity-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.24);
    background: rgba(255,255,255,.68);
    color: var(--dash-muted);
    font-size: 12px;
    font-weight: 800;
}

body.is-authenticated .dashboard-premium .dashboard-capacity-line em,
body.is-authenticated .dashboard-shell .dashboard-capacity-line em {
    font-style: normal;
    color: var(--dash-text);
}

body.is-authenticated .dashboard-premium .dashboard-capacity-line.capacity-open,
body.is-authenticated .dashboard-shell .dashboard-capacity-line.capacity-open {
    border-color: rgba(18,128,92,.22);
    background: var(--dash-success-soft);
}

body.is-authenticated .dashboard-premium .dashboard-capacity-line.capacity-steady,
body.is-authenticated .dashboard-shell .dashboard-capacity-line.capacity-steady {
    border-color: rgba(20,87,217,.22);
    background: var(--dash-primary-soft);
}

body.is-authenticated .dashboard-premium .dashboard-capacity-line.capacity-busy,
body.is-authenticated .dashboard-shell .dashboard-capacity-line.capacity-busy {
    border-color: rgba(185,111,16,.26);
    background: var(--dash-warning-soft);
}
/* =====================================================================
   Calendar Premium Redesign - 2026-07-13
   ===================================================================== */
body.is-authenticated .calendar-premium {
    display: grid;
    gap: 18px;
}

body.is-authenticated .calendar-premium .calendar-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    min-height: 210px;
}

body.is-authenticated .calendar-premium .calendar-hero-copy {
    max-width: 760px;
}

body.is-authenticated .calendar-premium .calendar-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.is-authenticated .calendar-premium .calendar-hero .eyebrow svg {
    width: 16px;
    height: 16px;
}

body.is-authenticated .calendar-premium .calendar-hero-actions,
body.is-authenticated .calendar-premium .calendar-toolbar-actions,
body.is-authenticated .calendar-premium .calendar-pending-actions,
body.is-authenticated .calendar-premium .calendar-add-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.is-authenticated .calendar-premium .calendar-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.is-authenticated .calendar-premium .calendar-stat-card {
    position: relative;
    min-height: 132px;
    padding: 18px;
    overflow: hidden;
}

body.is-authenticated .calendar-premium .calendar-stat-card > span:not(.stat-icon) {
    display: block;
    margin-top: 12px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

body.is-authenticated .calendar-premium .calendar-stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--app-text);
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 900;
}

body.is-authenticated .calendar-premium .calendar-stat-card small {
    display: block;
    margin-top: 6px;
    color: var(--app-muted);
    font-weight: 750;
}

body.is-authenticated .calendar-premium .calendar-stat-card.load-open .stat-icon { color: var(--app-green); background: var(--app-green-light); }
body.is-authenticated .calendar-premium .calendar-stat-card.load-steady .stat-icon { color: var(--app-blue); background: var(--app-blue-light); }
body.is-authenticated .calendar-premium .calendar-stat-card.load-busy .stat-icon { color: var(--app-amber); background: var(--app-amber-light); }

body.is-authenticated .calendar-premium .calendar-toolbar {
    padding: 18px;
}

body.is-authenticated .calendar-premium .calendar-toolbar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
}

body.is-authenticated .calendar-premium .calendar-title-block {
    display: grid;
    gap: 4px;
}

body.is-authenticated .calendar-premium .calendar-title {
    color: var(--app-text);
    font-size: 1.45rem;
    font-weight: 900;
}

body.is-authenticated .calendar-premium .calendar-subtitle {
    color: var(--app-muted);
    font-size: 13px;
    font-weight: 700;
}

body.is-authenticated .calendar-premium .calendar-toolbar-actions .btn {
    min-width: 42px;
    justify-content: center;
}

body.is-authenticated .calendar-premium .calendar-toolbar-actions .btn svg {
    width: 17px;
    height: 17px;
}

body.is-authenticated .calendar-premium .calendar-platform-pill {
    display: grid;
    gap: 2px;
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: var(--app-surface-2);
}

body.is-authenticated .calendar-premium .calendar-platform-pill strong {
    color: var(--app-text);
    font-size: 13px;
    font-weight: 900;
}

body.is-authenticated .calendar-premium .calendar-platform-pill span {
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 750;
}

body.is-authenticated .calendar-premium .calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--app-line);
}

body.is-authenticated .calendar-premium .calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    background: #fff;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 850;
}

body.is-authenticated .calendar-premium .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

body.is-authenticated .calendar-premium .legend-dot.actual { background: var(--app-green); }
body.is-authenticated .calendar-premium .legend-dot.expected { background: var(--app-amber); }
body.is-authenticated .calendar-premium .calendar-dot-cleaning { background: var(--app-blue); }
body.is-authenticated .calendar-premium .calendar-dot-repair { background: var(--app-red); }
body.is-authenticated .calendar-premium .calendar-dot-survey { background: #64748B; }

body.is-authenticated .calendar-premium .calendar-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
    align-items: start;
}

body.is-authenticated .calendar-premium .calendar-side {
    position: sticky;
    top: 18px;
}

body.is-authenticated .calendar-premium .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(128px, 1fr));
    gap: 0;
    padding: 0;
    overflow: hidden;
}

body.is-authenticated .calendar-premium .calendar-head {
    padding: 13px 12px;
    background: var(--app-surface-2);
    border-bottom: 1px solid var(--app-line);
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

body.is-authenticated .calendar-premium .calendar-day {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 156px;
    padding: 12px;
    border: 0;
    border-right: 1px solid var(--app-line);
    border-bottom: 1px solid var(--app-line);
    border-radius: 0;
    background: #fff;
}

body.is-authenticated .calendar-premium .calendar-day:nth-child(7n + 7) {
    border-right: 0;
}

body.is-authenticated .calendar-premium .calendar-day.is-muted {
    background: #F8FAFC;
}

body.is-authenticated .calendar-premium .calendar-day.is-muted .calendar-day-number,
body.is-authenticated .calendar-premium .calendar-day.is-muted .calendar-empty-day {
    opacity: .42;
}

body.is-authenticated .calendar-premium .calendar-day.is-today {
    background: linear-gradient(180deg, rgba(231,241,255,.94), #fff);
    box-shadow: inset 0 0 0 2px rgba(0,98,252,.18);
}

body.is-authenticated .calendar-premium .calendar-day.load-medium {
    background: linear-gradient(180deg, rgba(252,241,223,.58), #fff 54%);
}

body.is-authenticated .calendar-premium .calendar-day.load-heavy {
    background: linear-gradient(180deg, rgba(251,234,230,.68), #fff 56%);
}

body.is-authenticated .calendar-premium .calendar-day-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 10px;
}

body.is-authenticated .calendar-premium .calendar-day-number {
    color: var(--app-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

body.is-authenticated .calendar-premium .today-pill {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--app-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

body.is-authenticated .calendar-premium .calendar-day-meta {
    color: var(--app-muted);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

body.is-authenticated .calendar-premium .calendar-events {
    display: grid;
    gap: 7px;
    align-content: start;
}

body.is-authenticated .calendar-premium .calendar-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 8px;
    padding: 8px 9px;
    border: 1px solid var(--app-line);
    border-left: 3px solid var(--app-blue);
    border-radius: 10px;
    background: rgba(255,255,255,.88);
    color: var(--app-text);
    text-decoration: none;
}

body.is-authenticated .calendar-premium .calendar-event:hover {
    border-color: var(--app-line-strong);
    transform: translateY(-1px);
}

body.is-authenticated .calendar-premium .calendar-event strong {
    color: var(--app-blue);
    font-size: 11px;
    font-weight: 950;
}

body.is-authenticated .calendar-premium .calendar-event span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--app-text);
    font-size: 12px;
    font-weight: 850;
}

body.is-authenticated .calendar-premium .calendar-event small {
    grid-column: 1 / -1;
    color: var(--app-muted);
    font-size: 11px;
    font-weight: 750;
}

body.is-authenticated .calendar-premium .calendar-event.type-installation { border-left-color: var(--app-green); }
body.is-authenticated .calendar-premium .calendar-event.type-maintenance { border-left-color: var(--app-amber); }
body.is-authenticated .calendar-premium .calendar-event.type-cleaning { border-left-color: var(--app-blue); }
body.is-authenticated .calendar-premium .calendar-event.type-repair { border-left-color: var(--app-red); }
body.is-authenticated .calendar-premium .calendar-event.type-survey { border-left-color: #64748B; }

body.is-authenticated .calendar-premium .calendar-empty-day {
    display: grid;
    place-items: center;
    min-height: 62px;
    border: 1px dashed var(--app-line);
    border-radius: 10px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 800;
}

body.is-authenticated .calendar-premium .calendar-side-panel,
body.is-authenticated .calendar-premium .calendar-pending-panel {
    padding: 18px;
}

body.is-authenticated .calendar-premium .calendar-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body.is-authenticated .calendar-premium .calendar-section-head h2 {
    margin: 3px 0 4px;
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 900;
}

body.is-authenticated .calendar-premium .calendar-section-head p {
    margin: 0;
    color: var(--app-muted);
    font-size: 13px;
    font-weight: 700;
}

body.is-authenticated .calendar-premium .calendar-pending-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.is-authenticated .calendar-premium .calendar-pending-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: var(--app-surface-2);
}

body.is-authenticated .calendar-premium .calendar-pending-item strong,
body.is-authenticated .calendar-premium .calendar-agenda-item > strong {
    color: var(--app-text);
    font-weight: 900;
}

body.is-authenticated .calendar-premium .calendar-pending-item span {
    display: block;
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 750;
}

body.is-authenticated .calendar-premium .calendar-agenda-list {
    display: grid;
    gap: 10px;
}

body.is-authenticated .calendar-premium .calendar-agenda-item {
    display: grid;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
}

body.is-authenticated .calendar-premium .calendar-agenda-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.is-authenticated .calendar-premium .task-type {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--app-blue-light);
    color: var(--app-blue);
    font-size: 11px;
    font-weight: 900;
}

body.is-authenticated .calendar-premium .task-type.type-installation { background: var(--app-green-light); color: var(--app-green); }
body.is-authenticated .calendar-premium .task-type.type-maintenance { background: var(--app-amber-light); color: var(--app-amber); }
body.is-authenticated .calendar-premium .task-type.type-repair { background: var(--app-red-light); color: var(--app-red); }

body.is-authenticated .calendar-premium .calendar-agenda-date {
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

body.is-authenticated .calendar-premium .calendar-agenda-meta {
    display: grid;
    gap: 4px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 1320px) {
    body.is-authenticated .calendar-premium .calendar-board,
    body.is-authenticated .calendar-premium .calendar-toolbar-row {
        grid-template-columns: 1fr;
    }

    body.is-authenticated .calendar-premium .calendar-side {
        position: static;
    }

    body.is-authenticated .calendar-premium .calendar-grid {
        overflow-x: auto;
    }
}

@media (max-width: 980px) {
    body.is-authenticated .calendar-premium .calendar-stat-grid,
    body.is-authenticated .calendar-premium .calendar-pending-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.is-authenticated .calendar-premium .calendar-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 620px) {
    body.is-authenticated .calendar-premium .calendar-stat-grid,
    body.is-authenticated .calendar-premium .calendar-pending-grid {
        grid-template-columns: 1fr;
    }

    body.is-authenticated .calendar-premium .calendar-grid {
        grid-template-columns: repeat(7, minmax(116px, 1fr));
    }
}
/* =====================================================================
   Calendar Next Job Focus - 2026-07-13
   ===================================================================== */
body.is-authenticated .calendar-premium .calendar-hero-side {
    display: grid;
    gap: 12px;
    justify-items: end;
    min-width: 300px;
}

body.is-authenticated .calendar-premium .calendar-next-job {
    display: grid;
    gap: 5px;
    width: min(100%, 340px);
    padding: 15px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 42px rgba(0,0,0,.14);
}

body.is-authenticated .calendar-premium .calendar-next-job:hover {
    background: rgba(255,255,255,.20);
    transform: translateY(-1px);
}

body.is-authenticated .calendar-premium .calendar-next-job span {
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.is-authenticated .calendar-premium .calendar-next-job strong {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 950;
}

body.is-authenticated .calendar-premium .calendar-next-job small {
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 750;
}

body.is-authenticated .calendar-premium .calendar-next-job-empty {
    pointer-events: none;
}

body.is-authenticated .calendar-premium .calendar-hero-side .calendar-hero-actions {
    justify-content: flex-end;
}

@media (max-width: 980px) {
    body.is-authenticated .calendar-premium .calendar-hero-side {
        justify-items: start;
        min-width: 0;
    }

    body.is-authenticated .calendar-premium .calendar-next-job {
        width: 100%;
    }

    body.is-authenticated .calendar-premium .calendar-hero-side .calendar-hero-actions {
        justify-content: flex-start;
    }
}
/* =====================================================================
   CRM Wide Premium Refresh - 2026-07-13
   ===================================================================== */
body.is-authenticated .dashboard-shell,
body.is-authenticated .page-stack,
body.is-authenticated .content-stack {
    gap: 18px;
}

body.is-authenticated .compact-page-hero,
body.is-authenticated .registry-list-hero,
body.is-authenticated .ac-catalog-hero {
    min-height: 188px;
}

body.is-authenticated .dashboard-panel,
body.is-authenticated .card.p-4,
body.is-authenticated .registry-section,
body.is-authenticated .registry-filter,
body.is-authenticated .ac-catalog-filter,
body.is-authenticated .integration-card,
body.is-authenticated .settings-card,
body.is-authenticated .email-rule-editor,
body.is-authenticated .email-client-filter,
body.is-authenticated .customer-portal-admin,
body.is-authenticated .ai-assistant-card {
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 44px rgba(15,23,42,.06);
}

body.is-authenticated .dashboard-panel,
body.is-authenticated .registry-section,
body.is-authenticated .registry-filter,
body.is-authenticated .ac-catalog-filter,
body.is-authenticated .email-rule-editor,
body.is-authenticated .email-client-filter,
body.is-authenticated .customer-portal-admin,
body.is-authenticated .ai-assistant-card {
    padding: 20px;
}

body.is-authenticated .card.p-4 {
    padding: 22px !important;
}

body.is-authenticated .page-toolbar {
    margin-bottom: 16px;
    padding: 12px 0;
}

body.is-authenticated .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--app-blue);
    font-weight: 850;
    text-decoration: none;
}

body.is-authenticated .back-link:hover {
    color: var(--app-blue-dark);
}

body.is-authenticated .dashboard-panel-head,
body.is-authenticated .settings-card-head,
body.is-authenticated .email-editor-head,
body.is-authenticated .section-head,
body.is-authenticated .quote-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

body.is-authenticated .dashboard-panel-head h2,
body.is-authenticated .settings-card-head h2,
body.is-authenticated .email-editor-head h2,
body.is-authenticated .section-head h2,
body.is-authenticated .quote-section-head h2,
body.is-authenticated .registry-section .section-title {
    margin: 0 0 4px;
    color: var(--app-text);
    font-size: 1.02rem;
    font-weight: 920;
}

body.is-authenticated .dashboard-panel-head p,
body.is-authenticated .settings-card-head p,
body.is-authenticated .email-editor-head p,
body.is-authenticated .section-head p,
body.is-authenticated .quote-section-head p {
    margin: 0;
    color: var(--app-muted);
    font-size: 13px;
    font-weight: 700;
}

body.is-authenticated .form-label {
    margin-bottom: 6px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

body.is-authenticated .form-control,
body.is-authenticated .form-select,
body.is-authenticated textarea.form-control {
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background-color: #fff;
    color: var(--app-text);
    font-weight: 650;
    box-shadow: none;
}

body.is-authenticated .form-control,
body.is-authenticated .form-select {
    min-height: 44px;
}

body.is-authenticated textarea.form-control {
    line-height: 1.55;
}

body.is-authenticated .form-control:focus,
body.is-authenticated .form-select:focus,
body.is-authenticated textarea.form-control:focus {
    border-color: rgba(0,98,252,.44);
    box-shadow: 0 0 0 4px rgba(0,98,252,.10);
}

body.is-authenticated .form-text,
body.is-authenticated .text-muted,
body.is-authenticated small.text-muted {
    color: var(--app-muted) !important;
}

body.is-authenticated .crm-filter-panel,
body.is-authenticated .registry-filter,
body.is-authenticated .ac-catalog-filter,
body.is-authenticated .email-client-filter {
    background: linear-gradient(180deg, #fff, #F8FAFC);
}

body.is-authenticated .crm-filter-panel form,
body.is-authenticated .registry-filter form,
body.is-authenticated .ac-catalog-filter form {
    align-items: end;
}

body.is-authenticated .table-responsive {
    border-radius: 14px;
    border: 1px solid var(--app-line);
    background: #fff;
}

body.is-authenticated .table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #F8FAFC;
    color: var(--app-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

body.is-authenticated .table tbody td {
    font-size: 13px;
}

body.is-authenticated .table tbody tr {
    transition: background .16s ease;
}

body.is-authenticated .table tbody tr:hover td {
    background: #F9FBFF;
}

body.is-authenticated .table .btn,
body.is-authenticated .table form .btn {
    white-space: nowrap;
}

body.is-authenticated .badge,
body.is-authenticated .work-status,
body.is-authenticated .unit-status,
body.is-authenticated .task-type {
    border-radius: 999px;
    font-weight: 850;
}

body.is-authenticated .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    font-weight: 850;
}

body.is-authenticated .btn svg {
    width: 16px;
    height: 16px;
}

body.is-authenticated .empty-state,
body.is-authenticated .table-empty-state,
body.is-authenticated .registry-empty {
    display: grid;
    gap: 8px;
    place-items: center;
    padding: 28px;
    border: 1px dashed var(--app-line-strong);
    border-radius: 14px;
    background: #F8FAFC;
    color: var(--app-muted);
    text-align: center;
    font-weight: 750;
}

body.is-authenticated .empty-state strong,
body.is-authenticated .table-empty-state strong {
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 900;
}

body.is-authenticated .quick-list {
    display: grid;
    gap: 10px;
}

body.is-authenticated .quick-list-item,
body.is-authenticated .quick-list-link {
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
}

body.is-authenticated .quick-list-link:hover {
    border-color: rgba(0,98,252,.26);
    background: #F9FBFF;
    transform: translateY(-1px);
}

body.is-authenticated .dashboard-focus-card,
body.is-authenticated .mini-stat {
    border-radius: 14px;
}

body.is-authenticated .dashboard-hero-grid {
    gap: 10px;
}

body.is-authenticated .registry-metrics,
body.is-authenticated .dashboard-stat-grid,
body.is-authenticated .source-summary-grid {
    gap: 14px;
}

body.is-authenticated .registry-metric,
body.is-authenticated .dashboard-stat-card,
body.is-authenticated .source-summary-card {
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.05);
}

body.is-authenticated .registry-metric:hover,
body.is-authenticated .dashboard-stat-card:hover,
body.is-authenticated .source-summary-card:hover {
    border-color: rgba(0,98,252,.20);
    transform: translateY(-1px);
}

body.is-authenticated .registry-grid,
body.is-authenticated .ac-catalog-grid {
    gap: 16px;
}

body.is-authenticated .registry-unit-card,
body.is-authenticated .ac-model-card {
    border: 1px solid var(--app-line);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(15,23,42,.06);
    overflow: hidden;
}

body.is-authenticated .registry-unit-card:hover,
body.is-authenticated .ac-model-card:hover {
    border-color: rgba(0,98,252,.22);
    transform: translateY(-2px);
}

body.is-authenticated .registry-unit-actions,
body.is-authenticated .calendar-add-actions,
body.is-authenticated .calendar-pending-actions,
body.is-authenticated .record-actions,
body.is-authenticated .quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.is-authenticated .registry-layout {
    gap: 18px;
}

body.is-authenticated .registry-hero {
    border-radius: 18px;
    border: 1px solid var(--app-line);
    box-shadow: 0 18px 44px rgba(15,23,42,.06);
}

body.is-authenticated .timeline-list {
    display: grid;
    gap: 10px;
}

body.is-authenticated .timeline-item,
body.is-authenticated .activity-item {
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
}

body.is-authenticated .integration-card,
body.is-authenticated .email-rule-editor {
    overflow: hidden;
}

body.is-authenticated .integration-card code,
body.is-authenticated .portal-link-row input,
body.is-authenticated .email-placeholder-list button {
    border-radius: 10px;
}

body.is-authenticated .email-automation-layout,
body.is-authenticated .settings-grid,
body.is-authenticated .dashboard-board,
body.is-authenticated .arrivals-detail-grid {
    gap: 18px;
}

body.is-authenticated .email-placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.is-authenticated .email-placeholder-list button {
    border: 1px solid var(--app-line);
    background: #F8FAFC;
    color: var(--app-blue);
    font-weight: 850;
}

body.is-authenticated .email-placeholder-list button:hover {
    background: var(--app-blue-light);
    border-color: rgba(0,98,252,.24);
}

body.is-authenticated .lead-card,
body.is-authenticated .lead-kanban-card,
body.is-authenticated .kanban-card,
body.is-authenticated .quote-card,
body.is-authenticated .job-card {
    border-radius: 14px;
    border: 1px solid var(--app-line);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

body.is-authenticated .leads-view-toggle {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    background: rgba(255,255,255,.12);
}

body.is-authenticated .leads-view-btn {
    min-height: 36px;
    border: 0;
    border-radius: 10px;
    padding: 7px 11px;
    background: transparent;
    color: rgba(255,255,255,.76);
    font-weight: 850;
}

body.is-authenticated .leads-view-btn.is-active,
body.is-authenticated .leads-view-btn:hover {
    background: #fff;
    color: var(--app-blue);
}

body.is-authenticated .quote-print {
    border-radius: 18px;
}

body.is-authenticated .quote-brand,
body.is-authenticated .quote-total-box,
body.is-authenticated .quote-summary {
    border-radius: 14px;
}

body.is-authenticated .portal-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.is-authenticated .portal-link-row input {
    min-width: min(100%, 360px);
}

body.is-authenticated .alert {
    border-radius: 14px;
    border-width: 1px;
    font-weight: 700;
}

body.is-authenticated .technician-job-grid,
body.is-authenticated .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

body.is-authenticated .table-stack-mobile td[data-label]::before {
    color: var(--app-muted);
    font-weight: 900;
}

@media (max-width: 980px) {
    body.is-authenticated .dashboard-panel-head,
    body.is-authenticated .settings-card-head,
    body.is-authenticated .email-editor-head,
    body.is-authenticated .section-head,
    body.is-authenticated .quote-section-head {
        display: grid;
    }

    body.is-authenticated .card.p-4,
    body.is-authenticated .dashboard-panel,
    body.is-authenticated .registry-section,
    body.is-authenticated .registry-filter,
    body.is-authenticated .ac-catalog-filter,
    body.is-authenticated .email-rule-editor,
    body.is-authenticated .customer-portal-admin {
        padding: 16px !important;
    }
}

@media (max-width: 760px) {
    body.is-authenticated .table-stack-mobile thead {
        display: none;
    }

    body.is-authenticated .table-stack-mobile tbody,
    body.is-authenticated .table-stack-mobile tr,
    body.is-authenticated .table-stack-mobile td {
        display: block;
        width: 100%;
    }

    body.is-authenticated .table-stack-mobile tr {
        padding: 12px;
        border-bottom: 1px solid var(--app-line);
    }

    body.is-authenticated .table-stack-mobile td {
        display: grid;
        grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border: 0;
    }

    body.is-authenticated .table-stack-mobile td[data-label]::before {
        content: attr(data-label);
    }
}
/* Premium Operations Pack - 2026-07-13 */
.dispatch-page{display:grid;gap:22px}
.dispatch-hero .dashboard-actions{align-items:center}
.dispatch-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr);gap:22px;align-items:start}
.dispatch-map-frame{position:relative;min-height:360px;border-radius:18px;overflow:hidden;border:1px solid rgba(15,23,42,.1);background:#eef4f8}
.dispatch-map-frame iframe{width:100%;height:100%;min-height:360px;border:0;display:block}
.dispatch-map-empty{height:360px;display:grid;place-items:center;text-align:center;padding:28px;color:var(--app-muted)}
.dispatch-map-empty strong{display:block;color:var(--app-ink);font-size:1.1rem}
.dispatch-route-list{display:grid;gap:10px;margin-top:14px}
.dispatch-route-stop{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:12px;border:1px solid rgba(15,23,42,.08);border-radius:14px;text-decoration:none;color:inherit;background:#fff}
.dispatch-route-stop>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--app-blue-soft);color:var(--app-blue);font-weight:800}
.dispatch-route-stop strong,.dispatch-route-stop small{display:block}.dispatch-route-stop small{color:var(--app-muted)}
.urgent-insert-panel{position:sticky;top:90px}
.dispatch-capacity.open{border-color:rgba(22,163,74,.28)}.dispatch-capacity.busy{border-color:rgba(245,158,11,.36)}.dispatch-capacity.overload{border-color:rgba(220,38,38,.38)}
.dispatch-week-board{display:grid;grid-template-columns:repeat(7,minmax(180px,1fr));gap:12px;overflow-x:auto;padding-bottom:6px}
.dispatch-day-column{min-height:220px;padding:12px;border:1px solid rgba(15,23,42,.1);border-radius:16px;background:#f8fafc}
.dispatch-day-column.busy{background:#fffbeb;border-color:#fde68a}.dispatch-day-column.overload{background:#fff1f2;border-color:#fecdd3}
.dispatch-day-column.is-dragover{outline:3px solid rgba(37,99,235,.24);outline-offset:2px}
.dispatch-day-head a{display:flex;justify-content:space-between;gap:8px;text-decoration:none;color:inherit;margin-bottom:10px}
.dispatch-day-head span{font-size:.82rem;color:var(--app-muted);font-weight:700}
.dispatch-dropzone{display:grid;gap:9px;min-height:160px}
.dispatch-job-card{display:grid;gap:3px;padding:11px;border-radius:14px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 8px 18px rgba(15,23,42,.06);text-decoration:none;color:inherit;cursor:grab}
.dispatch-job-card.is-dragging{opacity:.55}
.dispatch-job-card strong{font-size:.92rem}.dispatch-job-card span,.dispatch-job-card small{font-size:.78rem;color:var(--app-muted)}
.dispatch-empty-day{display:grid;place-items:center;min-height:74px;border:1px dashed rgba(100,116,139,.35);border-radius:14px;color:var(--app-muted);font-weight:700;font-size:.86rem}
.lead-heat-badge{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:5px 9px;border-radius:999px;font-size:.78rem;font-weight:850;background:#e2e8f0;color:#334155}
.lead-heat-badge.heat-3,.lead-heat-badge.heat-4,.lead-heat-badge.heat-5{background:#fee2e2;color:#991b1b}
.lead-heat-badge.heat-2{background:#fef3c7;color:#92400e}.lead-heat-badge.heat-0,.lead-heat-badge.heat-1{background:#e0f2fe;color:#075985}
.lead-heat-inline{display:block;margin-top:8px;color:#1d4ed8;font-size:.77rem;font-weight:800}
@media(max-width:1100px){.dispatch-layout{grid-template-columns:1fr}.urgent-insert-panel{position:static}.dispatch-week-board{grid-template-columns:repeat(7,220px)}}
@media(max-width:700px){.dispatch-map-frame,.dispatch-map-frame iframe,.dispatch-map-empty{min-height:280px;height:280px}.dispatch-week-board{grid-template-columns:repeat(7,210px)}}
/* =====================================================================
   DASHBOARD 2.0 — teljes áttervezés (2026-07)
   Cél: átlátható hierarchia + prémium, visszafogott felület.
   Minden szabály a .dash2 wrapperen keresztül scope-olt (3 osztályos
   specificitás), így a közös komponensek többi oldala érintetlen marad.
   Szerkezet: világos oldalfejléc → osztott KPI-sáv → 2 oszlopos board
   (munka balra, fókusz + listák jobbra).
   ===================================================================== */

/* --- Oldalfejléc: könnyed, világos, a navy hero helyett --- */
body.is-authenticated .dash2 .dash2-pagehead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 4px 2px 0;
}

body.is-authenticated .dash2 .dash2-date {
    display: block;
    color: var(--app-muted);
    font-size: .76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .07em;
}

body.is-authenticated .dash2 .dash2-pagehead h1 {
    margin: 7px 0 5px;
    color: var(--app-ink);
    font-size: clamp(1.55rem, 2.1vw, 1.95rem);
    font-weight: 780;
    letter-spacing: -.015em;
    line-height: 1.1;
}

body.is-authenticated .dash2 .dash2-pagehead p {
    margin: 0;
    color: var(--app-muted);
    font-size: .95rem;
}

body.is-authenticated .dash2 .dash2-pagehead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

body.is-authenticated .dash2 .dash2-pagehead-actions .btn svg {
    width: 16px;
    height: 16px;
    margin-right: 2px;
    vertical-align: -3px;
}

/* --- KPI-sáv: egyetlen kártya, hajszálvonal-osztott cellákkal --- */
body.is-authenticated .dash2 .dash2-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    overflow: hidden;
    background: var(--app-line);
}

body.is-authenticated .dash2 .dash2-kpis .dashboard-stat-card {
    min-height: 110px;
    padding: 18px 17px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--app-surface);
    transition: background .16s ease;
}

body.is-authenticated .dash2 .dash2-kpis .dashboard-stat-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
    background: var(--app-surface-2);
}

body.is-authenticated .dash2 .dash2-kpis .dashboard-stat-card strong {
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

/* --- Board: 2 oszlopos fő elrendezés --- */
body.is-authenticated .dash2 .dash2-board {
    display: grid;
    grid-template-columns: minmax(0, 1.52fr) minmax(320px, .58fr);
    gap: var(--app-gap);
    align-items: start;
}

body.is-authenticated .dash2 .dash2-main,
body.is-authenticated .dash2 .dash2-side {
    display: grid;
    gap: var(--app-gap);
    min-width: 0;
}

body.is-authenticated .dash2 .dash2-side {
    position: sticky;
    top: 86px;
}

/* --- Mai fókusz: az egyetlen sötét márka-pillanat, kompakt oldalkártya --- */
body.is-authenticated .dash2 .dash2-focus {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px;
    border: 0;
    border-radius: var(--app-radius-lg);
    color: #fff;
    background: linear-gradient(140deg, var(--app-navy) 0%, var(--app-navy-2) 52%, var(--app-blue-dark) 118%);
    box-shadow: 0 22px 48px -20px rgba(4, 23, 58, .55);
}

body.is-authenticated .dash2 .dash2-focus::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(320px 200px at 100% 0%, #000, transparent 74%);
    mask-image: radial-gradient(320px 200px at 100% 0%, #000, transparent 74%);
    opacity: .6;
    pointer-events: none;
}

body.is-authenticated .dash2 .dash2-focus > * { position: relative; z-index: 1; }

body.is-authenticated .dash2 .dash2-focus-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

body.is-authenticated .dash2 .dash2-focus-kicker {
    color: #7FD8FF;
    font-size: .71rem;
    font-weight: 780;
    text-transform: uppercase;
    letter-spacing: .08em;
}

body.is-authenticated .dash2 .dash2-focus-day {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.78);
    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

body.is-authenticated .dash2 .dash2-focus-value {
    display: block;
    margin-bottom: 14px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 780;
    line-height: 1.15;
    letter-spacing: -.01em;
}

body.is-authenticated .dash2 .dash2-focus-ai {
    display: block;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--app-radius-md);
    background: rgba(255,255,255,.09);
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

body.is-authenticated .dash2 .dash2-focus-ai:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-1px);
}

body.is-authenticated .dash2 .dash2-focus-ai span {
    display: block;
    margin-bottom: 3px;
    color: #7FD8FF;
    font-size: .68rem;
    font-weight: 780;
    text-transform: uppercase;
    letter-spacing: .06em;
}

body.is-authenticated .dash2 .dash2-focus-ai strong {
    display: block;
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
}

body.is-authenticated .dash2 .dash2-focus-ai small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.68);
    line-height: 1.35;
}

body.is-authenticated .dash2 .dash2-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

body.is-authenticated .dash2 .dash2-focus .mini-stat {
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--app-radius-sm);
    background: rgba(255,255,255,.07);
}

body.is-authenticated .dash2 .dash2-focus .mini-stat span {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: .68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.is-authenticated .dash2 .dash2-focus .mini-stat strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 780;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* --- Következő lépések: kompakt, rangsorolt lista a kártyarács helyett --- */
body.is-authenticated .dash2 .dash2-next-list {
    display: grid;
    gap: 8px;
}

body.is-authenticated .dash2 .dash2-next-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

body.is-authenticated .dash2 .dash2-next-item:hover {
    border-color: var(--app-line-strong);
    background: var(--app-surface-2);
}

body.is-authenticated .dash2 .dash2-next-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--app-blue);
    box-shadow: 0 0 0 3px var(--app-blue-light);
}

body.is-authenticated .dash2 .dash2-next-quote .dash2-next-dot { background: var(--app-violet); box-shadow: 0 0 0 3px var(--app-violet-light); }
body.is-authenticated .dash2 .dash2-next-job .dash2-next-dot { background: var(--app-green); box-shadow: 0 0 0 3px var(--app-green-light); }

body.is-authenticated .dash2 .dash2-next-copy { min-width: 0; }

body.is-authenticated .dash2 .dash2-next-copy strong {
    display: block;
    overflow: hidden;
    color: var(--app-ink);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.is-authenticated .dash2 .dash2-next-copy small {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: var(--app-muted);
    font-size: .78rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.is-authenticated .dash2 .dash2-next-item svg {
    width: 15px;
    height: 15px;
    color: var(--app-faint);
}

/* --- Pipeline: sávok + mérőórák, duplikált számkártyák nélkül --- */
body.is-authenticated .dash2 .dash2-pipeline-total {
    color: var(--app-ink);
    font-size: 1.02rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.is-authenticated .dash2 .dash2-bars {
    gap: 13px;
    margin: 2px 0 18px;
}

body.is-authenticated .dash2 .pipeline-bar-track { height: 9px; }

body.is-authenticated .dash2 .pipeline-bar.dash2-bar-blue   { background: var(--app-blue); }
body.is-authenticated .dash2 .pipeline-bar.dash2-bar-cyan   { background: var(--app-cyan); }
body.is-authenticated .dash2 .pipeline-bar.dash2-bar-violet { background: var(--app-violet); }
body.is-authenticated .dash2 .pipeline-bar.dash2-bar-green  { background: var(--app-green); }
body.is-authenticated .dash2 .pipeline-bar.dash2-bar-red    { background: var(--app-red); }

body.is-authenticated .dash2 .dash2-pipeline-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

body.is-authenticated .dash2 .dash2-pipeline-kpis .pipeline-kpi { padding: 13px 14px; }
body.is-authenticated .dash2 .dash2-pipeline-kpis .pipeline-kpi-primary strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
body.is-authenticated .dash2 .dash2-pipeline-kpis .pipeline-kpi-primary span { display: block; color: var(--app-muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
body.is-authenticated .dash2 .dash2-pipeline-kpis .pipeline-kpi-primary small { display: block; margin-top: 2px; color: var(--app-muted); }
body.is-authenticated .dash2 .gauge { --gauge-size: 50px; }
body.is-authenticated .dash2 .gauge-row { gap: 11px; }
body.is-authenticated .dash2 .gauge-row-copy strong { font-size: .88rem; }
body.is-authenticated .dash2 .gauge-row-copy span { font-size: .74rem; }

/* --- Napi munkaterv finomítás: 2×2 rács, kompaktabb összegzők --- */
body.is-authenticated .dash2 .daily-plan-panel { margin-top: 0; }

body.is-authenticated .dash2 .daily-plan-summary > div {
    min-height: 0;
    padding: 11px 14px;
}

body.is-authenticated .dash2 .daily-plan-summary strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }

body.is-authenticated .dash2 .daily-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.is-authenticated .dash2 .daily-plan-item { min-height: 0; }

body.is-authenticated .dash2 .dash2-plan-more {
    display: block;
    padding: 8px 12px;
    border: 1px dashed var(--app-line-strong);
    border-radius: var(--app-radius-sm);
    color: var(--app-blue);
    background: var(--app-surface);
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}

body.is-authenticated .dash2 .dash2-plan-more:hover {
    background: var(--app-blue-light);
    border-color: var(--app-blue);
}

/* --- Beérkezés lebontása: tömörebb sorok --- */
body.is-authenticated .dash2 .source-summary-card { padding: 12px 14px; }
body.is-authenticated .dash2 .source-summary-card strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
body.is-authenticated .dash2 .source-breakdown-row { padding: 10px 14px; grid-template-columns: minmax(150px, .85fr) minmax(140px, 1.6fr) 62px; gap: 13px; }
body.is-authenticated .dash2 .source-breakdown-track { height: 7px; }

/* --- Gyorslisták: lead-sor avatárral --- */
body.is-authenticated .dash2 .quick-list-item { padding: 12px 36px 12px 14px; }

body.is-authenticated .dash2 .dash2-lead-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

body.is-authenticated .dash2 .dash2-lead-row .lead-avatar {
    width: 32px;
    height: 32px;
    font-size: .82rem;
}

body.is-authenticated .dash2 .dash2-lead-copy { min-width: 0; }
body.is-authenticated .dash2 .dash2-lead-copy strong,
body.is-authenticated .dash2 .dash2-lead-copy > span,
body.is-authenticated .dash2 .dash2-lead-copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.is-authenticated .dash2 .dash2-lead-copy > span { font-size: .8rem; }
body.is-authenticated .dash2 .dash2-lead-copy small { margin-top: 1px; }

/* --- Belépő animáció: finom, lépcsőzetes --- */
@media (prefers-reduced-motion: no-preference) {
    body.is-authenticated .dash2 .dash2-pagehead,
    body.is-authenticated .dash2 .dash2-kpis,
    body.is-authenticated .dash2 .dash2-main > *,
    body.is-authenticated .dash2 .dash2-side > * {
        animation: app-fade-up .42s cubic-bezier(.2,.7,.3,1) both;
    }
    body.is-authenticated .dash2 .dash2-kpis { animation-delay: .05s; }
    body.is-authenticated .dash2 .dash2-main > *:nth-child(1) { animation-delay: .1s; }
    body.is-authenticated .dash2 .dash2-main > *:nth-child(2) { animation-delay: .16s; }
    body.is-authenticated .dash2 .dash2-main > *:nth-child(3) { animation-delay: .22s; }
    body.is-authenticated .dash2 .dash2-side > *:nth-child(1) { animation-delay: .12s; }
    body.is-authenticated .dash2 .dash2-side > *:nth-child(2) { animation-delay: .18s; }
    body.is-authenticated .dash2 .dash2-side > *:nth-child(3) { animation-delay: .24s; }
    body.is-authenticated .dash2 .dash2-side > *:nth-child(4) { animation-delay: .3s; }
}

/* --- Reszponzív viselkedés --- */
@media (max-width: 1460px) {
    body.is-authenticated .dash2 .dash2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1220px) {
    body.is-authenticated .dash2 .dash2-board { grid-template-columns: minmax(0, 1fr); }
    body.is-authenticated .dash2 .dash2-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    body.is-authenticated .dash2 .dash2-focus { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    body.is-authenticated .dash2 .dash2-pagehead { align-items: stretch; flex-direction: column; }
    body.is-authenticated .dash2 .dash2-pagehead-actions .btn { flex: 1 1 calc(50% - 9px); }
    body.is-authenticated .dash2 .dash2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.is-authenticated .dash2 .dash2-side { grid-template-columns: minmax(0, 1fr); }
    body.is-authenticated .dash2 .daily-plan-grid { grid-template-columns: minmax(0, 1fr); }
    body.is-authenticated .dash2 .daily-plan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.is-authenticated .dash2 .dash2-pipeline-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.is-authenticated .dash2 .source-breakdown-row { grid-template-columns: minmax(0, 1fr) 62px; }
    body.is-authenticated .dash2 .source-breakdown-row .source-breakdown-chart { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 470px) {
    body.is-authenticated .dash2 .dash2-kpis { grid-template-columns: minmax(0, 1fr); }
    body.is-authenticated .dash2 .dash2-kpis .dashboard-stat-card { min-height: 0; }
    body.is-authenticated .dash2 .dash2-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Dash2 kiegészítések: link-KPI cella, kapacitás-sor, mini-stat link --- */
body.is-authenticated .dash2 .dash2-kpis a.dashboard-stat-card {
    text-decoration: none;
    cursor: pointer;
}

body.is-authenticated .dash2 .dash2-focus-capacity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--app-radius-sm);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.78);
    font-size: .8rem;
    font-weight: 650;
}

body.is-authenticated .dash2 .dash2-focus-capacity em {
    font-style: normal;
    font-weight: 780;
    color: #7FD8FF;
}

body.is-authenticated .dash2 .dash2-focus-capacity.capacity-busy em { color: #FFB4A4; }
body.is-authenticated .dash2 .dash2-focus-capacity.capacity-steady em { color: #FFD79A; }

body.is-authenticated .dash2 .dash2-focus a.mini-stat {
    display: block;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease;
}

body.is-authenticated .dash2 .dash2-focus a.mini-stat:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.28);
}

/* --- Dash2 alap-konténer: saját rács, .dashboard-shell nélkül (így a
   régebbi "premium" réteg .dashboard-shell-scope-ú szabályai nem érintik,
   és a sötét mód token-alapon hibátlanul működik) --- */
body.is-authenticated .dash2 {
    display: grid;
    gap: var(--app-gap);
}

/* Karbantartás-fókusz sor: token-alapú (világos + sötét módban is jó) */
body.is-authenticated .dash2 .maintenance-focus-line {
    display: grid;
    grid-template-columns: minmax(170px, .75fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 14px 0 0;
    padding: 12px 15px;
    border: 1px solid var(--app-amber);
    border-color: color-mix(in srgb, var(--app-amber) 30%, transparent);
    border-radius: var(--app-radius-md);
    background: var(--app-amber-light);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

body.is-authenticated .dash2 .maintenance-focus-line:hover {
    transform: translateY(-1px);
    border-color: var(--app-amber);
}

body.is-authenticated .dash2 .maintenance-focus-line span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--app-amber);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.is-authenticated .dash2 .maintenance-focus-line span svg { width: 16px; height: 16px; }

body.is-authenticated .dash2 .maintenance-focus-line strong {
    color: var(--app-ink);
    font-size: .92rem;
    font-weight: 750;
}

body.is-authenticated .dash2 .maintenance-focus-line small {
    justify-self: end;
    color: var(--app-muted);
    font-weight: 650;
}

@media (max-width: 760px) {
    body.is-authenticated .dash2 .maintenance-focus-line { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    body.is-authenticated .dash2 .maintenance-focus-line small { justify-self: start; }
}

/* --- Dash2 panel-felszín: a későbbi, hardcode-olt fehér .dashboard-panel
   szabályt (radius 16 / rgba fehér) token-alapra állítjuk vissza, hogy a
   sötét mód is működjön és a lekerekítés egységes maradjon --- */
body.is-authenticated .dash2 .dashboard-panel,
body.is-authenticated .dash2 .card {
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}

body.is-authenticated .dash2 .dash2-focus {
    border: 0;
    background: linear-gradient(140deg, var(--app-navy) 0%, var(--app-navy-2) 52%, var(--app-blue-dark) 118%);
    box-shadow: 0 22px 48px -20px rgba(4, 23, 58, .55);
}

/* --- Lead-avatár alapstílus (az új theme-ből kimaradt, itt pótoljuk) --- */
body.is-authenticated .dash2 .lead-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    color: var(--app-blue);
    background: var(--app-blue-light);
}

body.is-authenticated .dash2 .lead-avatar-blue   { color: var(--app-blue);   background: var(--app-blue-light); }
body.is-authenticated .dash2 .lead-avatar-teal   { color: var(--app-cyan);   background: var(--app-cyan-light, var(--app-blue-light)); }
body.is-authenticated .dash2 .lead-avatar-green  { color: var(--app-green);  background: var(--app-green-light); }
body.is-authenticated .dash2 .lead-avatar-amber  { color: var(--app-amber);  background: var(--app-amber-light); }
body.is-authenticated .dash2 .lead-avatar-red    { color: var(--app-red);    background: var(--app-red-light); }
body.is-authenticated .dash2 .lead-avatar-purple { color: var(--app-violet); background: var(--app-violet-light); }

/* --- Hiányzó sötét-mód tokenek pótlása (cyan/indigo-light) --- */
html[data-theme="dark"] body.is-authenticated {
    --app-cyan-light: rgba(0, 200, 253, .18);
    --app-indigo-light: rgba(79, 95, 222, .22);
}

/* --- Teal statikon: hardcode-olt világos háttér helyett token (sötét módhoz) --- */
body.is-authenticated .dash2 .stat-teal .stat-icon {
    color: var(--app-cyan);
    background: var(--app-cyan-light, #E4F7FB);
}

/* --- Stat-kártya trend jelző (az új theme-ből kimaradt; abszolút pozíció,
   különben a rács tetejére, a felirat alá csúszna) --- */
body.is-authenticated .dash2 .stat-trend {
    position: absolute;
    top: 13px;
    right: 13px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
}
body.is-authenticated .dash2 .stat-trend svg { width: 12px; height: 12px; stroke-width: 3; }
body.is-authenticated .dash2 .stat-trend-up { color: var(--app-green); background: var(--app-green-light); }
body.is-authenticated .dash2 .stat-trend-down { color: var(--app-red); background: var(--app-red-light); }
body.is-authenticated .dash2 .dash2-kpis .dashboard-stat-card { position: relative; }

/* =====================================================================
   ELŐFIZETÉS (Stripe) — subscription.php + nyitóoldali árazás
   Végig --app-* tokenekkel, így a sötét mód külön szabály nélkül működik.
   ===================================================================== */

/* --- Állapot-jelvény --- */
body.is-authenticated .sub-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}
body.is-authenticated .sub-tone-green  { color: var(--app-green);  background: var(--app-green-light); }
body.is-authenticated .sub-tone-blue   { color: var(--app-blue);   background: var(--app-blue-light); }
body.is-authenticated .sub-tone-amber  { color: var(--app-amber);  background: var(--app-amber-light); }
body.is-authenticated .sub-tone-red    { color: var(--app-red);    background: var(--app-red-light); }
body.is-authenticated .sub-tone-slate  { color: var(--app-muted);  background: var(--app-surface-2); border-color: var(--app-line); }

/* --- Elrendezés --- */
body.is-authenticated .subscription-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: var(--app-gap);
    align-items: start;
}

/* --- Csomag-kártya --- */
body.is-authenticated .subscription-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 18px;
}
body.is-authenticated .subscription-price strong {
    color: var(--app-ink);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
body.is-authenticated .subscription-price span {
    color: var(--app-muted);
    font-size: 1rem;
    font-weight: 650;
}

body.is-authenticated .subscription-features {
    display: grid;
    gap: 9px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
body.is-authenticated .subscription-features li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: var(--app-text);
    font-weight: 550;
}
body.is-authenticated .subscription-features svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
    color: var(--app-green);
}

body.is-authenticated .subscription-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
body.is-authenticated .subscription-meta > div {
    padding: 12px 14px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-2);
}
body.is-authenticated .subscription-meta span {
    display: block;
    color: var(--app-muted);
    font-size: .71rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}
body.is-authenticated .subscription-meta strong {
    display: block;
    margin-top: 3px;
    color: var(--app-ink);
    font-size: .95rem;
    font-weight: 700;
}

body.is-authenticated .subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
body.is-authenticated .subscription-actions .btn svg {
    width: 17px;
    height: 17px;
    margin-right: 6px;
    vertical-align: -3px;
}
body.is-authenticated .subscription-note {
    margin: 14px 0 0;
    color: var(--app-muted);
    font-size: .84rem;
    line-height: 1.55;
}

/* --- Garancia-panel --- */
body.is-authenticated .subscription-guarantee {
    position: relative;
    border-color: var(--app-line);
}
body.is-authenticated .subscription-guarantee.is-active {
    border-color: color-mix(in srgb, var(--app-green) 38%, transparent);
    box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--app-green) 55%, transparent), var(--app-shadow-sm);
}
body.is-authenticated .guarantee-badge {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 14px;
    color: var(--app-green);
    background: var(--app-green-light);
}
body.is-authenticated .guarantee-badge svg { width: 24px; height: 24px; stroke-width: 2.2; }
body.is-authenticated .subscription-guarantee h2 {
    margin: 0 0 8px;
    color: var(--app-ink);
    font-size: 1.12rem;
    font-weight: 780;
    line-height: 1.25;
}
body.is-authenticated .subscription-guarantee > p {
    margin: 0 0 16px;
    color: var(--app-muted);
    line-height: 1.6;
}

body.is-authenticated .guarantee-countdown {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--app-green) 30%, transparent);
    border-radius: var(--app-radius-md);
    background: var(--app-green-light);
    text-align: center;
}
body.is-authenticated .guarantee-countdown strong {
    display: block;
    color: var(--app-green);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
}
body.is-authenticated .guarantee-countdown span {
    display: block;
    margin-top: 4px;
    color: var(--app-text);
    font-size: .88rem;
    font-weight: 650;
}
body.is-authenticated .guarantee-countdown small {
    display: block;
    margin-top: 6px;
    color: var(--app-muted);
    font-size: .78rem;
}

body.is-authenticated .guarantee-inactive {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px dashed var(--app-line-strong);
    border-radius: var(--app-radius-md);
    color: var(--app-muted);
    background: var(--app-surface-2);
    font-size: .88rem;
    line-height: 1.5;
}
body.is-authenticated .guarantee-refunded {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--app-radius-md);
    background: var(--app-surface-2);
    text-align: center;
}
body.is-authenticated .guarantee-refunded strong {
    display: block;
    color: var(--app-ink);
    font-size: 1.3rem;
    font-weight: 800;
}
body.is-authenticated .guarantee-refunded span { color: var(--app-muted); font-size: .85rem; }

body.is-authenticated .guarantee-terms {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--app-line);
    list-style: none;
}
body.is-authenticated .guarantee-terms li {
    position: relative;
    padding-left: 18px;
    color: var(--app-muted);
    font-size: .84rem;
    line-height: 1.55;
}
body.is-authenticated .guarantee-terms li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--app-line-strong);
}
body.is-authenticated .guarantee-terms strong { color: var(--app-text); }

/* --- Oldalsáv előfizetés-kártya linkké alakítva --- */
body.is-authenticated .sidebar-bottom-link {
    display: block;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}
body.is-authenticated .sidebar-bottom-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

@media (max-width: 1080px) {
    body.is-authenticated .subscription-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    body.is-authenticated .subscription-price strong { font-size: 2.1rem; }
    body.is-authenticated .subscription-actions .btn { width: 100%; }
}

/* =====================================================================
   NYITÓOLDALI ÁRAZÁS (login.php — vendég nézet)
   ===================================================================== */
/* A meretezest/kereteet a kozos .landing-auth > section szabalyok adjak,
   hogy a szekcio pontosan ugyanolyan szeles legyen, mint a tobbi. */
body.is-guest .landing-pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 28px;
}
body.is-guest .pricing-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border-radius: 22px;
    background: linear-gradient(140deg, #0A2C64 0%, #0050D6 62%, #0062FC 100%);
    color: #fff;
    box-shadow: 0 28px 64px rgba(4, 23, 58, .28);
}
body.is-guest .pricing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(420px 220px at 90% 0%, #000, transparent 72%);
    mask-image: radial-gradient(420px 220px at 90% 0%, #000, transparent 72%);
    opacity: .55;
    pointer-events: none;
}
body.is-guest .pricing-card > * { position: relative; z-index: 1; }
body.is-guest .pricing-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid rgba(125, 216, 255, .34);
    border-radius: 999px;
    background: rgba(125, 216, 255, .12);
    color: #8EE4FF;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.is-guest .pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 6px;
}
body.is-guest .pricing-amount strong {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.02em;
}
body.is-guest .pricing-amount span { color: rgba(255,255,255,.78); font-size: 1.05rem; font-weight: 650; }
body.is-guest .pricing-card p { color: rgba(255,255,255,.82); line-height: 1.65; margin: 0 0 22px; }
body.is-guest .pricing-list {
    display: grid;
    gap: 11px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}
body.is-guest .pricing-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: rgba(255,255,255,.92);
    line-height: 1.5;
}
body.is-guest .pricing-list svg { width: 17px; height: 17px; margin-top: 3px; stroke-width: 3; color: #8EE4FF; }
body.is-guest .pricing-card .btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    background: #fff;
    color: #0050D6;
    font-weight: 780;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
body.is-guest .pricing-card .btn:hover { background: #fff; filter: brightness(.97); color: #0050D6; }
body.is-guest .pricing-fineprint { margin: 14px 0 0; color: rgba(255,255,255,.62); font-size: .82rem; text-align: center; }

body.is-guest .guarantee-panel {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid #DCE6F2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}
body.is-guest .guarantee-seal {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #12946A;
    background: #E5F6EE;
}
body.is-guest .guarantee-seal svg { width: 32px; height: 32px; stroke-width: 2.1; }
body.is-guest .guarantee-panel h3 {
    margin: 0 0 10px;
    color: #0F1A19;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}
body.is-guest .guarantee-panel > p { color: #62726F; line-height: 1.7; margin: 0 0 20px; }
body.is-guest .guarantee-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
body.is-guest .guarantee-steps li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
body.is-guest .guarantee-steps b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E7F1FF;
    color: #0050D6;
    font-size: .82rem;
    font-weight: 800;
}
body.is-guest .guarantee-steps strong { display: block; color: #0F1A19; font-weight: 750; }
body.is-guest .guarantee-steps small { display: block; margin-top: 2px; color: #62726F; line-height: 1.5; }

@media (max-width: 900px) {
    body.is-guest .landing-pricing-grid { grid-template-columns: minmax(0, 1fr); }
    body.is-guest .pricing-card, body.is-guest .guarantee-panel { padding: 26px; }
}

/* =====================================================================
   NYITÓOLDALI ÖNKISZOLGÁLÓ REGISZTRÁCIÓ (login.php #jelentkezes)
   ===================================================================== */

/* Ár-összegző a regisztrációs blokk bal oldalán */
body.is-guest .landing-application-copy .landing-signup-summary {
    /* A szulo (.landing-application-copy div) egy 28px+1fr ikonracsot ad minden
       gyerekenek - ezt itt fel kell oldani, kulonben a felirat a 28px-es
       oszlopba szorulna es karakterenkent torne. */
    display: block;
    grid-template-columns: none;
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(125, 216, 255, .28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 98, 252, .10), rgba(0, 200, 253, .06));
}
body.is-guest .landing-application-copy .landing-signup-summary span {
    display: block;
    color: #4A5A72;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
body.is-guest .landing-application-copy .landing-signup-summary strong {
    display: block;
    margin: 5px 0 3px;
    color: #0A2C64;
    font-size: 2.1rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.02em;
}
body.is-guest .landing-application-copy .landing-signup-summary small {
    display: block;
    color: #5B6B82;
    font-size: .84rem;
    line-height: 1.5;
}

/* Feltételek elfogadása */
body.is-guest .landing-terms-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    cursor: pointer;
}
body.is-guest .landing-terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #0062FC;
    cursor: pointer;
}
body.is-guest .landing-terms-check span {
    color: #4A5A72;
    font-size: .88rem;
    line-height: 1.5;
}
body.is-guest .landing-terms-check a {
    color: #0050D6;
    font-weight: 650;
    text-decoration: underline;
}

/* Mezőcímke melletti halvány magyarázat */
body.is-guest .form-hint {
    color: #7A8699;
    font-weight: 500;
    font-size: .82rem;
}

/* A regisztrációs űrlap egy fokkal levegősebb, mint a régi jelentkezési */
body.is-guest .landing-application-form .landing-form-grid { gap: 16px; }
body.is-guest .landing-application-form .form-control { min-height: 46px; }
body.is-guest .landing-application-form .btn-lg { margin-top: 20px; }
body.is-guest .landing-form-note a { color: #0050D6; font-weight: 650; }

/* A regisztracios blokk ket oszlopa egyforma magas legyen: a bal oldali
   szovegoszlop kitolti a magassagot, es az ar-osszegzo az aljara kerul,
   igy nem marad nagy ures folt az urlap mellett. */
body.is-guest .landing-application-grid { align-items: stretch; }
body.is-guest .landing-application-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
body.is-guest .landing-application-copy .landing-signup-summary { margin-top: auto; }

/* =====================================================================
   KAPCSOLATFELVÉTELI OLDAL (contact.php)
   A landing-* osztályokra épül, csak a két saját doboz kap stílust.
   ===================================================================== */
body.is-guest .contact-page .landing-application-section { margin-top: 28px; }

/* Közvetlen e-mail elérhetőség */
body.is-guest .landing-application-copy .contact-direct {
    display: block;
    grid-template-columns: none;
    margin-top: 4px;
    padding: 16px 18px;
    border: 1px solid #DBEAFE;
    border-radius: 14px;
    background: #F5F9FF;
}
body.is-guest .landing-application-copy .contact-direct span {
    display: block;
    color: #5B6B82;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
body.is-guest .landing-application-copy .contact-direct a {
    display: inline-block;
    margin: 5px 0 3px;
    color: #0050D6;
    font-size: 1.08rem;
    font-weight: 750;
    text-decoration: none;
}
body.is-guest .landing-application-copy .contact-direct a:hover { text-decoration: underline; }
body.is-guest .landing-application-copy .contact-direct small {
    display: block;
    color: #5B6B82;
    font-size: .84rem;
}

/* "Már biztos vagy benne?" - önkiszolgáló út a kapcsolati oldalról */
body.is-guest .landing-application-copy .contact-selfserve {
    display: block;
    grid-template-columns: none;
    margin-top: auto;
    padding: 18px 20px;
    border: 1px solid rgba(125, 216, 255, .30);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 98, 252, .10), rgba(0, 200, 253, .06));
}
body.is-guest .landing-application-copy .contact-selfserve strong {
    display: block;
    margin-bottom: 4px;
    color: #0A2C64;
    font-size: 1rem;
    font-weight: 800;
}
body.is-guest .landing-application-copy .contact-selfserve span {
    display: block;
    margin-bottom: 14px;
    color: #4A5A72;
    font-size: .9rem;
    line-height: 1.55;
}
body.is-guest .landing-application-copy .contact-selfserve .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
}
