/* HW-Key Premium Layer v7 — dark mode only */

.skip-link {
    position: absolute; top: -100px; left: 1rem; z-index: 10000;
    padding: 0.65rem 1.25rem; background: var(--brand); color: #fff;
    font-weight: 600; font-size: 0.875rem; border-radius: var(--radius-sm);
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; outline: 2px solid #fff; outline-offset: 2px; }

.page-loader {
    position: fixed; inset: 0; z-index: 99999; background: var(--bg);
    display: grid; place-items: center;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader__logo {
    width: 52px; height: 52px; margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--brand), #059669);
    color: #fff; font-weight: 900; font-size: 1.5rem;
    display: grid; place-items: center; border-radius: var(--radius);
    animation: loaderPulse 1.2s ease-in-out infinite;
}
.page-loader__bar { width: 120px; height: 3px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 0 auto; }
.page-loader__bar span { display: block; height: 100%; width: 40%; background: var(--brand); animation: loaderSlide 1s ease-in-out infinite; }
@keyframes loaderPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
@keyframes loaderSlide { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }

.toast-container {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
    display: flex; flex-direction: column; gap: 0.5rem;
    max-width: min(380px, calc(100vw - 2rem)); pointer-events: none;
}
.hw-toast {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.85rem 1rem; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); font-size: 0.875rem; color: var(--text);
    opacity: 0; transform: translateX(20px); transition: all 0.3s var(--ease); pointer-events: auto;
}
.hw-toast.is-visible { opacity: 1; transform: translateX(0); }
.hw-toast--success i { color: #22c55e; }
.hw-toast--error i { color: #ef4444; }
.hw-toast--warning i { color: #f59e0b; }
.hw-toast--info i { color: var(--brand); }
.hw-toast__close { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; }

.sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    display: flex; background: var(--bg-elevated); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15); transform: translateY(100%);
    transition: transform 0.35s var(--ease); padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem; font-weight: 600; font-size: 0.85rem; color: var(--text);
    text-decoration: none; border-right: 1px solid var(--border);
}
.sticky-cta__btn--primary { background: var(--brand); color: #fff; border-color: transparent; }
@media (min-width: 992px) { .sticky-cta { display: none; } }
@media (max-width: 991px) { .back-to-top { bottom: calc(72px + env(safe-area-inset-bottom, 0)); } }

.breadcrumb-nav { background: var(--bg-muted); border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; }
.breadcrumb-list li { display: flex; align-items: center; color: var(--text-muted); }
.breadcrumb-list li:not(:last-child)::after { content: '/'; opacity: 0.4; margin-left: 0.35rem; }
.breadcrumb-list a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--brand); }
.breadcrumb-list span { color: var(--text); font-weight: 500; }

.trust-bar { background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-bar__item { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.trust-bar__item i { color: var(--brand); font-size: 1.15rem; }
@media (max-width: 768px) { .trust-bar__grid { grid-template-columns: repeat(2, 1fr); } }

.stats-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stats-showcase__item { background: var(--bg-elevated); padding: 2rem 1.5rem; text-align: center; transition: background var(--duration); }
.stats-showcase__item:hover { background: var(--bg-muted); }
.stats-showcase__value { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.stats-showcase__label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-top: 0.5rem; }
@media (max-width: 768px) { .stats-showcase { grid-template-columns: repeat(2, 1fr); } }

.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.workflow-grid::before { content: ''; position: absolute; top: 2.5rem; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--border), var(--brand)); opacity: 0.4; }
.workflow-step { position: relative; z-index: 1; text-align: center; padding: 1.5rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform var(--duration), box-shadow var(--duration); }
.workflow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.workflow-step__number { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 0.75rem; }
.workflow-step__icon { width: 56px; height: 56px; margin: 0 auto 1rem; background: var(--brand-soft); color: var(--brand); border-radius: var(--radius); display: grid; place-items: center; font-size: 1.5rem; }
.workflow-step__title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.workflow-step__text { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
@media (max-width: 991px) { .workflow-grid { grid-template-columns: repeat(2, 1fr); } .workflow-grid::before { display: none; } }
@media (max-width: 576px) { .workflow-grid { grid-template-columns: 1fr; } }

.brand-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-marquee__track { display: flex; gap: 2.5rem; animation: marquee 28s linear infinite; width: max-content; }
.brand-marquee__track span { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.search-bar { position: relative; max-width: 480px; margin: 0 auto 2rem; }
.search-bar i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-bar input { width: 100%; padding: 0.85rem 1rem 0.85rem 2.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); color: var(--text); font-size: 0.95rem; }
.search-bar input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.empty-state { text-align: center; padding: 3rem 1.5rem; background: var(--bg-elevated); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state__icon { width: 72px; height: 72px; margin: 0 auto 1.25rem; background: var(--bg-muted); border-radius: var(--radius-lg); display: grid; place-items: center; font-size: 2rem; color: var(--text-muted); }
.empty-state__title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.empty-state__text { color: var(--text-secondary); max-width: 360px; margin: 0 auto; font-size: 0.92rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.35rem 0.75rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-full); color: rgba(248,250,252,0.85); }
.hero-badge i { color: #4ade80; }

body.nav-open { overflow: hidden; }

/* ── Hero quick stats (live snapshot) ── */
.hero-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    animation: fadeUp 0.6s var(--ease) 0.2s both;
}

.hero-quick-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    padding: 1rem 0.85rem 1.1rem;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.hero-quick-stats__item:last-child { border-right: none; }

.hero-quick-stats__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
}

.hero-quick-stats__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.hero-quick-stats__value {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}

.hero-quick-stats__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-quick-stats__item--ok .hero-quick-stats__icon {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.hero-quick-stats__item--ok .hero-quick-stats__dot {
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
}

.hero-quick-stats__item--warn .hero-quick-stats__icon {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.hero-quick-stats__item--warn .hero-quick-stats__dot {
    background: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}

.hero-quick-stats__item--down .hero-quick-stats__icon {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.hero-quick-stats__item--down .hero-quick-stats__dot {
    background: #f87171;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
}

.hero-quick-stats__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.7);
    margin-top: 0.15rem;
}

.hero-quick-stats__hint {
    font-size: 0.72rem;
    color: rgba(248, 250, 252, 0.45);
    line-height: 1.3;
    max-width: 11rem;
}

@media (max-width: 575px) {
    .hero-quick-stats {
        grid-template-columns: 1fr;
    }

    .hero-quick-stats__item {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        gap: 0.35rem 0.75rem;
        padding: 0.85rem 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-quick-stats__item:last-child { border-bottom: none; }

    .hero-quick-stats__icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .hero-quick-stats__value {
        font-size: 1.15rem;
        margin-left: auto;
    }

    .hero-quick-stats__label,
    .hero-quick-stats__hint {
        width: calc(100% - 3rem);
        margin-left: 2.75rem;
        max-width: none;
    }

    .hero-quick-stats__label { margin-top: 0; }
}

/* ── Hero server status panel ── */
.hero-server-status {
    background: rgba(13, 20, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    animation: fadeUp 0.6s var(--ease) 0.15s both;
}

.hero-server-status__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.hero-server-status__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4ade80;
    margin-bottom: 0.35rem;
}

.hero-server-status__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.hero-server-status__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.hero-server-status__pill--online {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.hero-server-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { opacity: 0.85; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

.hero-server-status__body {
    overflow: visible;
}

.hero-server-status__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    color: rgba(248, 250, 252, 0.65);
}

.hero-server-status__footer a {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
}

.hero-server-status__footer a:hover { color: #86efac; }

.server-status-table-wrap { overflow-x: auto; }

.server-status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.server-status-table thead th {
    background: rgba(11, 18, 32, 0.98);
    color: rgba(248, 250, 252, 0.55);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-status-table tbody td {
    padding: 0.75rem 1.25rem;
    color: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.server-status-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.server-status-table tbody tr:last-child td { border-bottom: none; }

.server-status-table__price {
    font-weight: 600;
    color: #fff;
}

.server-status-table__price small {
    font-weight: 500;
    opacity: 0.55;
    font-size: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.status-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge--online {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.status-badge--online .status-badge__dot { background: #4ade80; }

.status-badge--offline {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.status-badge--offline .status-badge__dot { background: #f87171; }

@media (max-width: 991px) {
    .hero-server-status { margin-top: 0.5rem; }
}

