/* ==========================================================================
   LANDING PAGE + CLIENT PORTAL — global styles
   (Presunuto z Home.razor.css — scoped CSS nedosahne do child komponent.
    ::deep selektory nahrazeny scopem pod .landing-container.)
   ========================================================================== */

/* ─── 1. Klientská Zóna (Pro přihlášené uživatele) ────────────────────────── */
.client-portal-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px 0 40px 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    box-sizing: border-box;
}

.client-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wh-border);
}

.portal-header-logo {
    height: 48px;
    object-fit: contain;
}

.portal-header-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    color: var(--wh-text);
    letter-spacing: -0.5px;
}

.portal-header-subtitle {
    font-size: 0.85rem;
    color: var(--wh-text-2);
    margin: 2px 0 0 0;
    font-weight: 600;
}

.motto-pill-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(23, 101, 141, 0.12) 0%, rgba(242, 148, 65, 0.12) 100%);
    border: 1px solid rgba(23, 101, 141, 0.25);
    color: var(--wh-bolt-sky-deep);
}

/* Client Launchpad Card */
.client-launchpad-card {
    background: var(--wh-surface);
    border-radius: 20px;
    border: 1px solid var(--wh-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.launchpad-divider {
    border-bottom: 1px solid var(--wh-divider);
}

.launchpad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.launchpad-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: var(--wh-surface-alt);
    border: 1px solid var(--wh-border);
    text-decoration: none;
    color: var(--wh-text);
    min-width: 0;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.launchpad-tile:hover {
    background: var(--wh-surface);
    border-color: var(--wh-bolt-sky);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(23, 101, 141, 0.15);
}

.launchpad-tile.highlight-tile {
    background: linear-gradient(135deg, rgba(23, 101, 141, 0.07) 0%, var(--wh-surface) 100%);
    border-color: rgba(23, 101, 141, 0.30);
}

.launchpad-tile.highlight-tile:hover {
    border-color: var(--wh-bolt-sky);
    box-shadow: 0 10px 25px -5px rgba(23, 101, 141, 0.2);
}

.launchpad-tile.main-dash-tile {
    background: linear-gradient(135deg, rgba(166, 206, 57, 0.08) 0%, var(--wh-surface) 100%);
    border-color: rgba(166, 206, 57, 0.30);
}

.launchpad-tile.main-dash-tile:hover {
    border-color: var(--wh-bolt-lime-deep);
    box-shadow: 0 10px 25px -5px rgba(166, 206, 57, 0.2);
}

.tile-icon-bg {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tile-icon-bg.purple { background: var(--wh-grad-violet); color: #fff; box-shadow: 0 6px 14px rgba(91, 45, 142, 0.35); }
.tile-icon-bg.orange { background: var(--wh-grad-orange); color: #fff; box-shadow: 0 6px 14px rgba(179, 74, 0, 0.35); }
.tile-icon-bg.blue   { background: var(--wh-grad-sky);    color: #fff; box-shadow: 0 6px 14px rgba(27, 79, 114, 0.35); }
.tile-icon-bg.green  { background: var(--wh-grad-lime);   color: #fff; box-shadow: 0 6px 14px rgba(85, 139, 47, 0.35); }

.tile-info {
    flex-grow: 1;
    min-width: 0;
}

.tile-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--wh-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tile-desc {
    font-size: 0.78rem;
    color: var(--wh-text-2);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-arrow {
    color: var(--wh-text-2);
    font-size: 0.85rem !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.launchpad-tile:hover .tile-arrow {
    color: var(--wh-bolt-sky);
    transform: translateX(3px);
}

.badge-new {
    background: var(--wh-bolt-sky);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

/* ─── 2. Sdílené styly (portál + marketing) ──────────────────────────────── */

.roadmap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

/* Výrazné pastelové barvy s perfektní čitelností pro klientskou zónu */
.client-portal-header .roadmap-badge.beta,
.roadmap-badge.beta {
    background: #ffedd5; /* Výrazná pastelová teplá oranžová */
    color: #9a3412;      /* Sytý, maximálně kontrastní text */
    border: 1.5px solid #fb923c; /* Výrazná pastelová kontura */
}

.client-portal-header .roadmap-badge.launch,
.roadmap-badge.launch {
    background: #dcfce7; /* Výrazná svěží pastelová zelená */
    color: #14532d;      /* Sytý, maximálně kontrastní text */
    border: 1.5px solid #4ade80; /* Výrazná pastelová kontura */
}

/* Pro tmavou horní lištu hostů */
.roadmap-top-bar .roadmap-badge.beta {
    background: rgba(254, 215, 170, 0.22);
    color: #fed7aa;
    border: 1.5px solid #fb923c;
}

.roadmap-top-bar .roadmap-badge.launch {
    background: rgba(187, 247, 208, 0.22);
    color: rgba(166, 206, 57, 0.30);
    border: 1.5px solid #4ade80;
}

.roadmap-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* Dark varianty pastelovych roadmap badge */
.mud-theme-dark .roadmap-badge.beta {
    background: rgba(242, 148, 65, 0.18);
    color: #FDBA74;
    border-color: rgba(242, 148, 65, 0.50);
}

.mud-theme-dark .roadmap-badge.launch {
    background: rgba(166, 206, 57, 0.16);
    color: #BEF264;
    border-color: rgba(166, 206, 57, 0.45);
}


/* Quick Links */
.quick-links-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.quick-links-title {
    font-size: 0.85rem;
    color: var(--wh-text-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background-color: var(--wh-surface);
    border: 1px solid var(--wh-border);
    border-radius: 16px;
    color: var(--wh-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    border-color: var(--wh-bolt-sky);
    color: var(--wh-bolt-sky);
    box-shadow: 0 10px 15px -3px rgba(79, 180, 229, 0.1);
}

.quick-link-icon {
    font-size: 1.3rem !important;
    color: var(--wh-bolt-sky);
}

/* FAQ Section */
.faq-section {
    background-color: var(--wh-surface);
}


@media (max-width: 992px) {
    .launchpad-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}


/* ─── Mission control (přihlášený) ─── */
.wh-portal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mud-palette-divider);
    margin-bottom: 24px;
}

.wh-portal-title {
    font-size: 1.55rem;
    font-weight: 900;
    margin: 0;
    color: var(--mud-palette-text-primary);
    letter-spacing: -0.5px;
}

.wh-portal-sub {
    font-size: 0.85rem;
    color: var(--mud-palette-text-secondary);
    margin: 4px 0 0;
    font-weight: 600;
}

.wh-attention {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--wh-radius-l);
    padding: 26px 28px;
    box-shadow: var(--wh-shadow-1);
}

.wh-attention-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mud-palette-text-secondary);
    margin: 0 0 16px;
}

.wh-attention-title .mud-icon-root { color: var(--wh-bolt-orange); }

.wh-attention-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--wh-radius-m);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wh-attention-item + .wh-attention-item { margin-top: 10px; }

.wh-attention-item--ok {
    color: var(--mud-palette-text-secondary);
    background: rgba(166, 206, 57, 0.08);
    border: 1px solid rgba(166, 206, 57, 0.25);
}

.wh-attention-item--ok .mud-icon-root { color: var(--wh-bolt-lime-deep); }

.wh-attention-item--warn {
    color: var(--mud-palette-text-primary);
    background: rgba(242, 148, 65, 0.08);
    border: 1px solid rgba(242, 148, 65, 0.3);
}

.wh-attention-item--warn .mud-icon-root { color: var(--wh-bolt-orange); }

.wh-attention-item--info {
    color: var(--mud-palette-text-primary);
    background: rgba(79, 180, 229, 0.08);
    border: 1px solid rgba(79, 180, 229, 0.3);
}

.wh-attention-item--info .mud-icon-root { color: var(--wh-bolt-sky); }

.wh-attention-item--warn:hover,
.wh-attention-item--info:hover {
    transform: translateX(3px);
    box-shadow: var(--wh-shadow-1);
}

.wh-attention-arrow {
    margin-left: auto;
    color: var(--mud-palette-text-secondary) !important;
    font-size: 0.8rem !important;
}

/* Enterprise služby pro VN/VVN (přihlášený) */
.wh-ent-lead {
    font-size: 0.95rem;
    color: var(--mud-palette-text-secondary);
    margin: 0 0 16px;
    max-width: 72ch;
    line-height: 1.65;
}

/* Doporučené další kroky */
.wh-next-steps-list,
.wh-steps-list { display: flex; flex-direction: column; gap: 12px; }

.wh-next-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--wh-radius-m);
    text-decoration: none;
    transition: all 0.2s ease;
}

.wh-next-step:hover {
    transform: translateX(3px);
    border-color: var(--wh-bolt-sky);
    box-shadow: var(--wh-shadow-1);
}

.wh-next-step > .mud-icon-root:first-child {
    color: var(--wh-bolt-sky);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.wh-next-step-title {
    font-weight: 800;
    font-size: 0.94rem;
    color: var(--mud-palette-text-primary);
}

.wh-next-step-desc {
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 3px;
}

/* ─── WATT HUB Spectral Hero Cockpit (HomeAuthorizedView) ─── */
.wh-home-cockpit {
    position: relative;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--wh-radius-xl, 24px);
    padding: clamp(26px, 2.8vw, 36px) clamp(26px, 3vw, 40px);
    box-shadow: var(--wh-shadow-2);
    overflow: hidden;
}

.wh-home-cockpit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wh-grad-spectrum);
    z-index: 2;
}

.wh-home-cockpit::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(79, 180, 229, 0.10) 0%, rgba(139, 74, 158, 0.06) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.wh-home-cockpit-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.wh-home-subject-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.wh-home-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(79, 180, 229, 0.12);
    color: var(--wh-bolt-sky-deep);
    border: 1px solid rgba(79, 180, 229, 0.30);
}

.mud-theme-dark .wh-home-profile-chip {
    color: var(--wh-bolt-sky);
    background: rgba(79, 180, 229, 0.15);
}

.wh-home-profile-chip--plan {
    background: rgba(139, 74, 158, 0.12);
    color: var(--wh-bolt-violet);
    border-color: rgba(139, 74, 158, 0.30);
}

.mud-theme-dark .wh-home-profile-chip--plan {
    color: #c48fd8;
    background: rgba(139, 74, 158, 0.20);
}

.wh-home-profile-chip--iso {
    background: rgba(166, 206, 57, 0.14);
    color: var(--wh-bolt-lime-deep);
    border-color: rgba(166, 206, 57, 0.35);
}

.mud-theme-dark .wh-home-profile-chip--iso {
    color: var(--wh-bolt-lime);
    background: rgba(166, 206, 57, 0.16);
}

/* ─── Hlavička a 5-úhelníková vizualizace EnMS & ČSN EN ISO 50001 ─── */
.wh-enms-master-section {
    padding-top: 8px;
}

.wh-enms-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.wh-enms-section-head--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 780px;
    margin: 0 auto 12px;
    gap: 10px;
}

.wh-enms-main-heading {
    margin: 4px 0 0;
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--mud-palette-text-primary);
}

.wh-ent-lead--centered {
    margin: 4px auto 0;
    max-width: 66ch;
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ─── Pětiúhelníkové / kruhové schéma 5 akcí okolo loga WATT HUB (styl Screen 2) ─── */
.wh-enms-pentagon-figure {
    margin: 18px 0 44px;
}

.wh-enms-pentagon-stage {
    position: relative;
    width: 100%;
    max-width: 1140px;
    height: 650px;
    margin: 0 auto;
}

.wh-enms-pentagon-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.wh-enms-orbit-ring {
    stroke: var(--mud-palette-divider);
    stroke-width: 1.5;
    stroke-dasharray: 6 8;
    opacity: 0.85;
}

.wh-enms-spoke {
    stroke-width: 2.2;
    stroke-linecap: round;
    opacity: 0.78;
}

.wh-enms-spoke--sky    { stroke: var(--wh-bolt-sky); }
.wh-enms-spoke--violet { stroke: var(--wh-bolt-violet); }
.wh-enms-spoke--orange { stroke: var(--wh-bolt-orange); }
.wh-enms-spoke--lime   { stroke: var(--wh-bolt-lime-deep); }
.mud-theme-dark .wh-enms-spoke--lime { stroke: var(--wh-bolt-lime); }

.wh-enms-arc {
    stroke-width: 2.5;
    stroke-dasharray: 8 6;
    stroke-linecap: round;
    opacity: 0.9;
}

.wh-enms-arc--sky    { stroke: var(--wh-bolt-sky); }
.wh-enms-arc--violet { stroke: var(--wh-bolt-violet); }
.wh-enms-arc--orange { stroke: var(--wh-bolt-orange); }
.wh-enms-arc--lime   { stroke: var(--wh-bolt-lime-deep); }
.mud-theme-dark .wh-enms-arc--lime { stroke: var(--wh-bolt-lime); }

.wh-enms-arc-badge {
    fill: var(--mud-palette-surface);
    stroke-width: 1.8;
}

.wh-enms-arc-badge--sky    { stroke: var(--wh-bolt-sky); color: var(--wh-bolt-sky-deep); }
.wh-enms-arc-badge--violet { stroke: var(--wh-bolt-violet); color: var(--wh-bolt-violet); }
.wh-enms-arc-badge--orange { stroke: var(--wh-bolt-orange); color: var(--wh-bolt-orange); }
.wh-enms-arc-badge--lime   { stroke: var(--wh-bolt-lime-deep); color: var(--wh-bolt-lime-deep); }

/* Středový rozbočovač WATT HUB (identický styl s .wh-lp-network-hub na Screen 2) */
.wh-enms-pentagon-hub {
    position: absolute;
    left: 50%;
    top: 52.4%;
    transform: translate(-50%, -50%);
    width: clamp(196px, 20%, 232px);
    min-height: 242px;
    z-index: 2;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 16px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 24px;
    background: var(--mud-palette-surface);
    box-shadow: 0 18px 54px -20px rgba(23, 38, 60, 0.24);
}

.mud-theme-dark .wh-enms-pentagon-hub {
    box-shadow: 0 18px 54px -20px rgba(0, 0, 0, 0.65);
}

.wh-enms-pentagon-hub::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    clip-path: polygon(50% 0, 100% 26%, 90% 80%, 48% 100%, 0 70%, 8% 22%);
    background: conic-gradient(
        from 20deg,
        color-mix(in srgb, var(--wh-bolt-yellow) 18%, transparent),
        color-mix(in srgb, var(--wh-bolt-orange) 14%, transparent),
        color-mix(in srgb, var(--wh-bolt-sky) 16%, transparent),
        color-mix(in srgb, var(--wh-bolt-lime) 16%, transparent),
        color-mix(in srgb, var(--wh-bolt-violet) 14%, transparent),
        color-mix(in srgb, var(--wh-bolt-yellow) 18%, transparent)
    );
}

.wh-enms-hub-logo {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 6px 12px;
    margin-bottom: 12px;
}

.wh-enms-hub-logo img {
    display: block;
    width: 146px;
    height: 88px;
    object-fit: contain;
}

.wh-enms-pentagon-hub strong {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--mud-palette-text-primary);
}

.wh-enms-pentagon-hub > span {
    margin-top: 4px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.82rem;
}

.wh-enms-hub-pill {
    margin-top: 10px !important;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem !important;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(79, 180, 229, 0.12);
    color: var(--wh-bolt-sky-deep) !important;
    border: 1px solid rgba(79, 180, 229, 0.28);
}

.mud-theme-dark .wh-enms-hub-pill {
    color: var(--wh-bolt-sky) !important;
}

/* 5 obdélníkových karet po obvodu pětiúhelníku (styl .wh-lp-network-node ze Screen 2) */
.wh-enms-cycle-node {
    --node-accent: var(--wh-bolt-sky-deep);
    position: absolute;
    width: clamp(244px, 26.5%, 306px);
    min-height: 118px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 22px;
    border-radius: 20px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    box-shadow: var(--wh-shadow-1);
    text-decoration: none;
    color: var(--mud-palette-text-primary);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wh-enms-cycle-node:hover {
    border-color: var(--node-accent);
    box-shadow: var(--wh-shadow-2);
    text-decoration: none;
    color: var(--mud-palette-text-primary);
}

/* 5 vrcholů pětiúhelníku */
.wh-enms-cycle-node--pos1 { left: 50%;   top: 10.3%; transform: translate(-50%, -50%); }
.wh-enms-cycle-node--pos2 { left: 84.7%; top: 36.4%; transform: translate(-50%, -50%); }
.wh-enms-cycle-node--pos3 { left: 74.4%; top: 85.2%; transform: translate(-50%, -50%); }
.wh-enms-cycle-node--pos4 { left: 25.6%; top: 85.2%; transform: translate(-50%, -50%); }
.wh-enms-cycle-node--pos5 { left: 15.3%; top: 36.4%; transform: translate(-50%, -50%); }

.wh-enms-cycle-node--pos1:hover,
.wh-enms-cycle-node--pos2:hover,
.wh-enms-cycle-node--pos3:hover,
.wh-enms-cycle-node--pos4:hover,
.wh-enms-cycle-node--pos5:hover {
    transform: translate(-50%, calc(-50% - 3px));
}

/* Barevné spektrální varianty 5 karet */
.wh-enms-cycle-node--start  { --node-accent: #0F766E; }
.wh-enms-cycle-node--sky    { --node-accent: var(--wh-bolt-sky-deep); }
.wh-enms-cycle-node--violet { --node-accent: var(--wh-bolt-violet); }
.wh-enms-cycle-node--orange { --node-accent: #C25E00; }
.wh-enms-cycle-node--lime   { --node-accent: var(--wh-bolt-lime-deep); }

.mud-theme-dark .wh-enms-cycle-node--start  { --node-accent: #5EEAD4; }
.mud-theme-dark .wh-enms-cycle-node--sky    { --node-accent: var(--wh-bolt-sky); }
.mud-theme-dark .wh-enms-cycle-node--violet { --node-accent: #C8A8EB; }
.mud-theme-dark .wh-enms-cycle-node--orange { --node-accent: var(--wh-bolt-orange); }
.mud-theme-dark .wh-enms-cycle-node--lime   { --node-accent: var(--wh-bolt-lime); }

.wh-enms-node-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: color-mix(in srgb, var(--node-accent) 12%, var(--mud-palette-surface));
    color: var(--node-accent);
}

.wh-enms-node-icon .mud-icon-root {
    font-size: 1.5rem;
}

.wh-enms-node-body {
    min-width: 0;
}

.wh-enms-node-role {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--node-accent);
}

.wh-enms-node-body h3 {
    margin: 3px 0 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--mud-palette-text-primary);
}

.wh-enms-node-body p {
    margin: 5px 0 0;
    font-size: 0.81rem;
    line-height: 1.4;
    color: var(--mud-palette-text-secondary);
}

.wh-enms-pentagon-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--mud-palette-text-secondary);
}

/* Responzivní přechod pětiúhelníku na menších obrazovkách (< 960px) */
@media (max-width: 960px) {
    .wh-enms-pentagon-stage {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 680px;
    }

    .wh-enms-pentagon-svg {
        display: none;
    }

    .wh-enms-pentagon-hub {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        grid-column: 1 / -1;
        order: -1;
        width: min(100%, 280px);
        min-height: 210px;
        margin: 12px auto 8px;
    }

    .wh-enms-cycle-node,
    .wh-enms-cycle-node--pos1,
    .wh-enms-cycle-node--pos2,
    .wh-enms-cycle-node--pos3,
    .wh-enms-cycle-node--pos4,
    .wh-enms-cycle-node--pos5 {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
    }

    .wh-enms-cycle-node--pos1:hover,
    .wh-enms-cycle-node--pos2:hover,
    .wh-enms-cycle-node--pos3:hover,
    .wh-enms-cycle-node--pos4:hover,
    .wh-enms-cycle-node--pos5:hover {
        transform: translateY(-2px);
    }

    .wh-enms-cycle-node--pos5 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .wh-enms-pentagon-stage {
        grid-template-columns: 1fr;
    }
}

/* ─── 4 Spektrální pilíře EnMS & ČSN EN ISO 50001 (PDCA) ─── */
.wh-enms-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1279px) {
    .wh-enms-pillars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .wh-enms-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.wh-enms-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--wh-radius-l, 20px);
    padding: 26px 24px;
    box-shadow: var(--wh-shadow-1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wh-enms-pillar:hover {
    transform: translateY(-3px);
    box-shadow: var(--wh-shadow-2);
}

.wh-enms-pillar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.wh-enms-pillar--sky::before { background: var(--wh-grad-sky); }
.wh-enms-pillar--violet::before { background: var(--wh-grad-violet); }
.wh-enms-pillar--orange::before { background: var(--wh-grad-amber); }
.wh-enms-pillar--lime::before { background: var(--wh-grad-lime); }

.wh-enms-pillar--sky:hover { border-color: rgba(79, 180, 229, 0.45); }
.wh-enms-pillar--violet:hover { border-color: rgba(139, 74, 158, 0.45); }
.wh-enms-pillar--orange:hover { border-color: rgba(242, 148, 65, 0.45); }
.wh-enms-pillar--lime:hover { border-color: rgba(166, 206, 57, 0.45); }

.wh-enms-pdca-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 12px;
}

.wh-enms-pillar--sky .wh-enms-pdca-tag {
    background: rgba(79, 180, 229, 0.14);
    color: var(--wh-bolt-sky-deep);
}
.mud-theme-dark .wh-enms-pillar--sky .wh-enms-pdca-tag { color: var(--wh-bolt-sky); }

.wh-enms-pillar--violet .wh-enms-pdca-tag {
    background: rgba(139, 74, 158, 0.14);
    color: var(--wh-bolt-violet);
}
.mud-theme-dark .wh-enms-pillar--violet .wh-enms-pdca-tag { color: #c48fd8; }

.wh-enms-pillar--orange .wh-enms-pdca-tag {
    background: rgba(242, 148, 65, 0.15);
    color: #c25e00;
}
.mud-theme-dark .wh-enms-pillar--orange .wh-enms-pdca-tag { color: var(--wh-bolt-orange); }

.wh-enms-pillar--lime .wh-enms-pdca-tag {
    background: rgba(166, 206, 57, 0.16);
    color: var(--wh-bolt-lime-deep);
}
.mud-theme-dark .wh-enms-pillar--lime .wh-enms-pdca-tag { color: var(--wh-bolt-lime); }

.wh-enms-pillar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mud-palette-text-primary);
    line-height: 1.3;
    margin: 0 0 10px;
}

.wh-enms-benefit {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--mud-palette-text-secondary);
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--mud-palette-background-grey);
    border-left: 3px solid var(--wh-bolt-sky);
    margin-bottom: 18px;
}

.wh-enms-pillar--violet .wh-enms-benefit { border-left-color: var(--wh-bolt-violet); }
.wh-enms-pillar--orange .wh-enms-benefit { border-left-color: var(--wh-bolt-orange); }
.wh-enms-pillar--lime .wh-enms-benefit { border-left-color: var(--wh-bolt-lime-deep); }

.wh-enms-tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.wh-enms-tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--mud-palette-text-primary);
    border: 1px solid transparent;
    transition: all 0.18s ease;
    font-size: 0.86rem;
    font-weight: 700;
}

.wh-enms-tool-link:hover {
    background: rgba(79, 180, 229, 0.08);
    border-color: rgba(79, 180, 229, 0.28);
    transform: translateX(3px);
}

.wh-enms-tool-link .mud-icon-root:first-child {
    font-size: 1.2rem;
    color: var(--wh-bolt-sky);
    flex-shrink: 0;
}

.wh-enms-pillar--violet .wh-enms-tool-link .mud-icon-root:first-child { color: var(--wh-bolt-violet); }
.wh-enms-pillar--orange .wh-enms-tool-link .mud-icon-root:first-child { color: var(--wh-bolt-orange); }
.wh-enms-pillar--lime .wh-enms-tool-link .mud-icon-root:first-child { color: var(--wh-bolt-lime-deep); }
.mud-theme-dark .wh-enms-pillar--lime .wh-enms-tool-link .mud-icon-root:first-child { color: var(--wh-bolt-lime); }

.wh-enms-tool-sub {
    display: block;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    margin-top: 1px;
}

/* ─── 5-stupňový žebříček Energetické udržitelnosti (ProfileLevelMotivation) ─── */
.wh-sustainability-card {
    position: relative;
    border-radius: var(--wh-radius-xl, 24px);
    padding: clamp(30px, 3.2vw, 42px) clamp(28px, 3.5vw, 44px);
    background:
        radial-gradient(65% 110% at 88% 0%, rgba(79, 180, 229, 0.18), transparent 60%),
        radial-gradient(50% 90% at 12% 100%, rgba(166, 206, 57, 0.10), transparent 65%),
        linear-gradient(135deg, #0D1F30 0%, #152C44 55%, #231D3C 100%);
    color: #F4F8FB;
    border: 1px solid rgba(79, 180, 229, 0.32);
    box-shadow: var(--wh-shadow-2);
    overflow: hidden;
}

.wh-sustainability-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wh-grad-spectrum);
}

.wh-sustainability-kicker {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wh-bolt-sky);
}

.wh-sustainability-phase-pill {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(245, 217, 10, 0.16);
    color: var(--wh-bolt-yellow);
    border: 1px solid rgba(245, 217, 10, 0.38);
}

.wh-sustainability-level-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.wh-sustainability-level-title {
    font-size: clamp(1.45rem, 2.2vw, 1.75rem);
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.wh-sustainability-level-desc {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 8px;
    line-height: 1.6;
    max-width: 68ch;
}

.wh-sustainability-progress-wrap {
    width: 100%;
    max-width: 360px;
    margin-top: 4px;
}

.wh-sustainability-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.wh-sustainability-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wh-bolt-sky) 0%, var(--wh-bolt-lime) 100%);
    transition: width 0.35s ease;
}

.wh-sustainability-progress-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 7px;
    text-align: right;
}

@media (max-width: 959px) {
    .wh-sustainability-progress-meta {
        text-align: left;
    }
}

.wh-sustainability-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
    .wh-sustainability-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wh-sustainability-steps {
        grid-template-columns: 1fr;
    }
}

.wh-sustainability-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.wh-sustainability-step.is-done {
    background: rgba(166, 206, 57, 0.15);
    border-color: rgba(166, 206, 57, 0.42);
}

.wh-sustainability-step.is-current {
    background: rgba(79, 180, 229, 0.22);
    border-color: var(--wh-bolt-sky);
    box-shadow: 0 0 0 1px rgba(79, 180, 229, 0.38), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.wh-sustainability-step-num {
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.68);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wh-sustainability-step.is-done .wh-sustainability-step-num { color: var(--wh-bolt-lime); }
.wh-sustainability-step.is-current .wh-sustainability-step-num { color: var(--wh-bolt-yellow); }

.wh-sustainability-step-name {
    font-size: 0.94rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
}

.wh-sustainability-step-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.45;
}

/* ─── EnMS & ISO 50001 Readiness Checklist ─── */
.wh-readiness-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-divider);
    background: var(--mud-palette-surface);
    text-decoration: none;
    color: var(--mud-palette-text-primary);
    transition: all 0.18s ease;
}

.wh-readiness-step + .wh-readiness-step {
    margin-top: 12px;
}

.wh-readiness-step:hover {
    border-color: var(--wh-bolt-sky);
    transform: translateX(3px);
    box-shadow: var(--wh-shadow-1);
}

.wh-readiness-step.is-complete {
    background: rgba(166, 206, 57, 0.06);
    border-color: rgba(166, 206, 57, 0.30);
}

