/* ===== TOP BAR ===== */
.top-bar {
    background: #0b1220;
    color: #cbd5f5;
    font-size: 0.9rem;
    position: relative;
    z-index: 1100;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.top-bar a {
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-label {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.7);
}

.top-bar-bookmark-hint {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
    white-space: nowrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #0f172a;
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
    display: none;
    z-index: 1200;
}

.lang-menu.active {
    display: grid;
    gap: 6px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
}

.lang-item:hover,
.lang-item.is-current {
    background: rgba(255, 255, 255, 0.1);
}

.lang-flag img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 4px;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    padding: 10px 0;
    gap: 16px;
    flex-wrap: nowrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-logo {
    display: block;
    max-height: 24px;
    width: auto;
    height: auto;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-desktop {
    flex: 1 1 auto;
    margin: 0 12px 0 24px;
    min-width: 0;
    overflow: visible;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(6px, 1vw, 12px);
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    row-gap: 0;
    justify-content: center;
    overflow: visible;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    transition: var(--transition);
    font-weight: 600;
    font-size: clamp(0.76rem, 0.55vw, 0.95rem);
    line-height: 1.15;
    white-space: nowrap;
    position: relative;
}

@media (min-width: 1200px) {
    .nav-menu {
        gap: clamp(4px, 0.7vw, 12px);
    }

    .nav-link {
        padding: 8px clamp(8px, 0.6vw, 12px);
        font-size: clamp(0.7rem, 0.42vw + 0.32rem, 0.95rem);
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    justify-content: flex-end;
    z-index: 2000;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-content {
    background: #fff;
    width: min(360px, 92vw);
    padding: 20px;
    position: relative;
    height: 100%;
    overflow-y: auto;
    box-shadow: -14px 0 36px rgba(15, 23, 42, 0.18);
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
}

.mobile-nav {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-link {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    min-height: 44px;
}

.mobile-link:hover {
    background: rgba(37, 99, 235, 0.08);
}

.mobile-actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}


.site-bg {
    background:
        radial-gradient(circle at 8% 0%, rgba(80, 116, 255, 0.2), transparent 38%),
        radial-gradient(circle at 92% 10%, rgba(54, 211, 255, 0.16), transparent 35%),
        linear-gradient(180deg, #eef3ff 0%, #f4f7ff 35%, #f8faff 100%);
    color: var(--text);
    min-height: 100%;
}

/* ===== PAGE HEADER ===== */
.page-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: block;
    padding: clamp(48px, 7vw, 72px) 0;
    color: #fff;
}

.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.page-header::before {
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(124, 163, 255, 0.42) 0%, rgba(124, 163, 255, 0.08) 38%, transparent 62%),
        radial-gradient(circle at 86% 12%, rgba(133, 111, 255, 0.32) 0%, rgba(133, 111, 255, 0.08) 34%, transparent 60%);
}

.page-header::after {
    width: clamp(240px, 30vw, 420px);
    height: clamp(240px, 30vw, 420px);
    right: -16%;
    top: -45%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(174, 203, 255, 0.24) 0%, rgba(174, 203, 255, 0) 70%);
}

.page-header .container {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.page-header.is-centered .container{
    justify-items: center;
    text-align: center;
}

.page-header.is-centered p{
    margin-left: auto;
    margin-right: auto;
}

.page-header h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin: 0;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 720px;
    margin: 0;
}


.contact-page .page-header {
    text-align: center;
    padding-top: 48px;
    padding-bottom: 32px;
    color: var(--text);
}

.contact-page .page-header::before,
.contact-page .page-header::after {
    display: none;
}

.contact-page .page-title,
.contact-page .page-subtitle {
    color: var(--text);
}

.contact-page .page-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    opacity: 1;
}

.contact-page .page-header--center {
    min-height: 0;
}

.contact-page .contact-page-section {
    padding-top: 0;
}

.page-header--dark,
.page-header--legal,
.page-header--accent {
    color: #fff;
}

.page-header--dark,
.page-header--legal,
.page-header--accent {
    background: linear-gradient(128deg, #0e1f4f 0%, #16357a 45%, #234da8 100%);
}

.page-header--home {
    padding: clamp(56px, 8vw, 92px) 0 clamp(52px, 7vw, 84px);
}

/* ===== BLOG ===== */
.blog-page .page-header {
    /* было: padding: clamp(48px, 7vw, 72px) 0; (глобально) */
    padding-top: clamp(34px, 5vw, 56px);
    padding-bottom: clamp(18px, 2.5vw, 28px);
}

/* Убираем лишний вертикальный gap от глобального section padding (section { padding: var(--sectionY) 0; }) */
.blog-page .page-header + section {
    padding-top: clamp(14px, 2vw, 22px);
}

/* На мобильных ещё сильнее подтянуть */
@media (max-width: 768px) {
    .blog-page .page-header {
        padding-top: 28px;
        padding-bottom: 16px;
    }

    .blog-page .page-header + section {
        padding-top: 12px;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.breadcrumb i {
    opacity: 0.6;
}

/* ===== TOOLS ===== */
.tools-hero {
    background: transparent;
    padding: var(--sectionY) 0;
}

.tools-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
}

.tools-hero-stats {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tools-hero-stat {
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tools-hero-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.tools-search {
    position: relative;
}

.tools-search input {
    padding-left: 42px;
}

.tools-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.tools-category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tools-category-tab {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.tools-category-tab.is-active {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--primary);
}

.tools-section {
    background: transparent;
}

.tools-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tools-pill-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text);
}

.tools-history-table {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
}

.tools-history-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.tools-history-row:last-child {
    border-bottom: none;
}

.tools-history-head {
    background: rgba(15, 23, 42, 0.04);
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.tool-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 18px;
    display: grid;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tool-value {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 12px 0;
}

.tool-number {
    display: inline-block;
    min-width: 3.5ch;
    font-variant-numeric: tabular-nums;
}

.tool-unit {
    font-size: 0.9rem;
    color: var(--muted);
    margin-left: 4px;
}

.tool-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.tool-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card p {
    color: var(--muted);
}

.tools-catalog-page {
    background: transparent;
    padding-top: var(--container-pad-mobile);
}

@media (min-width: 768px) {
    .tools-catalog-page {
        padding-top: var(--container-pad-tablet);
    }
}

@media (min-width: 992px) {
    .tools-catalog-page {
        padding-top: var(--container-pad-desktop);
    }
}

.tools-catalog-header {
    margin-bottom: 18px;
}

.tools-catalog-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.tools-catalog-toolbar .tools-search input {
    min-height: 48px;
    border-radius: 14px;
    border-color: rgba(15, 23, 42, 0.14);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.tools-catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tools-top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.tools-top-row .tool-pill {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.tools-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 24px);
}

.tools-catalog-card {
    height: 100%;
    min-height: 320px;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.tools-catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
    background: #fcfdff;
}

.tools-catalog-card:focus-within {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.tools-catalog-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    font-size: 1.1rem;
}

.tools-category-badge {
    margin-left: auto;
    white-space: nowrap;
}

.tools-catalog-card .tool-card-body {
    display: grid;
    gap: 8px;
}

.tools-catalog-card .tool-card-body strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tools-catalog-card .tool-card-body p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.5;
    min-height: 3em;
}

.tool-card-actions {
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.tool-card-actions .btn {
    min-height: 46px;
    border-radius: 14px;
}

.tool-card-actions .btn-outline {
    border-color: rgba(37, 99, 235, 0.35);
}

.tools-catalog-tip {
    margin-top: 20px;
}

@media (max-width: 1199px) {
    .tools-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .tools-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tools-catalog-grid {
        grid-template-columns: 1fr;
    }

    .tools-catalog-card {
        min-height: auto;
        padding: 20px;
    }
}

.tool-page-header {
    display: grid;
    gap: 10px;
}

.tool-catalog-page {
    padding-top: 0;
}

.tool-catalog-page .tool-page-header {
    justify-items: center;
    text-align: center;
    padding-block: clamp(24px, 4vw, 40px);
}

.tool-page-header h1 {
    margin: 0;
    font-size: clamp(1.9rem, 2.6vw, 2.35rem);
    line-height: 1.2;
}

.tool-catalog-page .tool-page-header h1 {
    max-width: min(100%, 28ch);
}

.tool-page-header .text-muted {
    margin: 0;
    max-width: 72ch;
    line-height: 1.6;
}

.tools-page-layout .tool-card-shell,
.tools-page-layout .tools-info-panel {
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    background: #fff;
}

.tool-output-mono,
.tool-code,
.tool-value-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    overflow-wrap: anywhere;
}

.qr-wrap {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 12px;
    width: fit-content;
    background: #fff;
}

.tool-section {
    display: grid;
    gap: 14px;
}

.tool-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    align-items: start;
}

.tool-card-shell,
.tools-info-panel {
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    gap: 16px;
}

.tool-card-title,
.ip-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.tool-value-grid {
    display: grid;
    gap: 12px;
}

.tool-value-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(248, 250, 252, 0.8);
}

.tool-value-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    grid-column: 1 / -1;
}

.tool-value-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text);
}

.tool-field {
    display: grid;
    gap: 8px;
}

.tool-field input,
.tool-field textarea,
.tool-field select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    min-height: 44px;
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.tool-field textarea {
    resize: vertical;
}

.tool-field input:focus,
.tool-field textarea:focus,
.tool-field select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.65);
}

.tool-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.84rem, 0.45vw, 0.95rem);
}

.tool-checkbox input {
    width: 18px;
    height: 18px;
}

.ip-data-grid {
    display: grid;
    gap: 12px;
}

.ip-data-row {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(248, 250, 252, 0.75);
}

.ip-data-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ip-value {
    margin: 0;
    font-size: 1.55rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.ip-meta {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
}

.ip-description-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ip-description-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    line-height: 1.55;
}

.ip-description-list i {
    color: var(--primary);
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ip-note {
    display: grid;
    gap: 6px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--muted);
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    padding: 14px;
    line-height: 1.5;
}

.ip-note h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.ip-note p {
    margin: 0;
}

.ip-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ip-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ip-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.tool-button-group .btn {
    min-height: 44px;
}

.tool-progress {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(248, 250, 252, 0.85);
}

.tool-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tool-progress-status {
    color: var(--muted);
    font-size: 0.9rem;
}

.tool-progress-chip {
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    background: rgba(148, 163, 184, 0.2);
}

.tool-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.tool-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
    transition: width 0.28s ease;
}

.tool-progress-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tool-progress-step {
    font-size: 0.75rem;
    text-align: center;
    color: var(--muted);
}

.tool-progress-step.is-active {
    color: var(--text);
    font-weight: 600;
}

.tool-progress[data-state="done"] .tool-progress-fill,
.tool-progress[data-state="success"] .tool-progress-fill {
    width: 100%;
}

.tool-progress[data-state="done"] .tool-progress-chip,
.tool-progress[data-state="success"] .tool-progress-chip {
    color: #166534;
    background: rgba(34, 197, 94, 0.14);
}

.tool-progress[data-state="error"] .tool-progress-fill {
    width: 100%;
    background: linear-gradient(90deg, #fb7185, #f97316);
}

.tool-progress[data-state="error"] .tool-progress-chip {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.14);
}

.tool-progress[data-state="loading"] .tool-progress-fill {
    width: 55%;
    animation: tool-progress-indeterminate 1.1s ease-in-out infinite;
}

@keyframes tool-progress-indeterminate {
    0% { transform: translateX(-85%); }
    100% { transform: translateX(170%); }
}

.ip-status {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 10px;
    background: rgba(148, 163, 184, 0.2);
    font-size: 0.82rem;
}

.ip-status[data-state="success"] {
    color: #166534;
    background: rgba(34, 197, 94, 0.14);
}

.ip-status[data-state="error"] {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.14);
}

.ip-helper-copy {
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.9rem;
}

.ip-intro {
    font-size: clamp(0.84rem, 0.45vw, 0.95rem);
    line-height: 1.55;
}

.microcopy {
    color: var(--muted);
    font-size: clamp(0.84rem, 0.45vw, 0.95rem);
}

.tools-next {
    margin-top: 12px;
    color: var(--muted);
}

.tools-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.tool-preview-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tool-preview-card i {
    color: var(--primary);
}

.tool-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.internet-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.internet-actions {
    flex-wrap: wrap;
}

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

.internet-metric-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.8);
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}

.internet-metric-label {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.internet-metric-value {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
}

.internet-metric-unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.internet-metric-quality {
    min-height: 1.2em;
    font-size: 0.9rem;
    line-height: 1.3;
}

.internet-info-grid {
    gap: 12px;
}

.internet-info-card h3 {
    margin: 0;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
}

.internet-kv-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.internet-kv-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 10px;
    align-items: start;
    line-height: 1.45;
}

.internet-kv-key {
    color: var(--muted);
    font-size: 0.86rem;
}

.internet-kv-value {
    min-width: 0;
    text-align: right;
    justify-self: end;
    word-break: break-word;
}

.internet-kv-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.84rem;
}

.internet-kv-expandable {
    min-width: 0;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.internet-kv-expandable .internet-kv-value {
    max-height: 3.3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.internet-kv-expandable.is-expanded .internet-kv-value {
    max-height: none;
    -webkit-line-clamp: unset;
}

.internet-report-card {
    gap: 10px;
}

.internet-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.internet-report-header h3 {
    margin: 0;
}

.internet-report-output {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(248, 250, 252, 0.9);
    max-height: 170px;
    overflow: auto;
    font-size: 0.84rem;
    line-height: 1.45;
}

.internet-report-output.is-expanded {
    max-height: 420px;
}

.tool-info-list {
    display: grid;
    gap: 10px;
}

.tool-faq {
    display: grid;
    gap: 12px;
}

.tools-empty {
    color: var(--muted);
    padding: 12px 0;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tools-bookmark {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tools-disclaimer {
    margin-top: 20px;
    color: var(--muted);
    text-align: center;
}

/* ===== SPEEDTEST ===== */
.speedtest-card {
    display: grid;
    gap: 24px;
}

.speedtest-hero {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.speedtest-dial {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.speedtest-dial svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.speedtest-track {
    fill: none;
    stroke: rgba(37, 99, 235, 0.12);
    stroke-width: 12;
}

.speedtest-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: calc(339.292 * (1 - var(--speedtest-progress, 0)));
    transition: stroke-dashoffset 0.4s ease;
}

.speedtest-dial-content {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76%;
    max-width: 160px;
    max-height: 76%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: anywhere;
}

.speedtest-label {
    margin: 0;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.25;
    color: var(--muted);
}

.speedtest-value-row {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.speedtest-number {
    display: inline-block;
    min-width: 4ch;
    max-width: 8ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.85rem, 5.3vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-align: center;
    vertical-align: baseline;
}

.speedtest-unit {
    flex-shrink: 0;
    font-size: 0.88rem;
    line-height: 1;
    color: var(--muted);
}

.speedtest-status {
    min-height: 1.3em;
    font-size: 0.86rem;
    line-height: 1.2;
}

.speedtest-summary {
    display: grid;
    gap: 16px;
}

.speedtest-current {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 1rem;
}

.speedtest-progress {
    display: grid;
    gap: 8px;
}

.speedtest-progress-bar {
    height: 8px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.speedtest-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.9));
    transition: width 0.4s ease;
}

.speedtest-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.84rem, 0.45vw, 0.95rem);
}

.speedtest-actions {
    display: grid;
    gap: 10px;
}

.speedtest-note {
    font-size: clamp(0.84rem, 0.45vw, 0.95rem);
}

.speedtest-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.speedtest-metric {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}


.speedtest-metric strong {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
}
.speedtest-metric .speedtest-number {
    min-width: 4.5ch;
    text-align: right;
}

.speedtest-stages {
    display: grid;
    gap: 12px;
}

.speedtest-stage {
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--border);
    display: grid;
    gap: 10px;
}

.speedtest-stage-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: clamp(0.84rem, 0.45vw, 0.95rem);
}

.speedtest-stage-status {
    font-weight: 600;
    color: var(--muted);
}

.speedtest-stage-bar {
    height: 6px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.speedtest-stage-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: rgba(37, 99, 235, 0.6);
    transition: width 0.3s ease;
}

.speedtest-stage[data-state="running"] {
    border-color: rgba(37, 99, 235, 0.4);
}

.speedtest-stage[data-state="running"] .speedtest-stage-status {
    color: var(--primary);
}

.speedtest-stage[data-state="done"] {
    border-color: rgba(22, 163, 74, 0.4);
}

.speedtest-stage[data-state="done"] .speedtest-stage-status {
    color: #15803d;
}

.speedtest-stage[data-state="failed"] {
    border-color: rgba(239, 68, 68, 0.4);
}

.speedtest-stage[data-state="failed"] .speedtest-stage-status {
    color: #b91c1c;
}

@media (max-width: 900px) {
    .speedtest-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .speedtest-dial {
        width: 208px;
        height: 208px;
    }

    .speedtest-metrics {
        grid-template-columns: 1fr;
    }
}

.speedtest-error {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    gap: 8px;
    color: #b91c1c;
}

.speedtest-error-meta,
.speedtest-error-trace {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.speedtest-error-title {
    font-weight: 600;
}

.speedtest-error-trace code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: inherit;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #0b1220;
    color: #e2e8f0;
    padding: clamp(44px, 6vw, 60px) 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.footer-logo {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 1.2rem;
}

.footer-brand-logo {
    display: block;
    max-height: 24px;
    width: auto;
    height: auto;
}

.footer-description {
    margin: 16px 0;
    color: rgba(226, 232, 240, 0.8);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.footer-badges .badge {
    padding: 8px 14px;
    font-size: clamp(0.84rem, 0.45vw, 0.95rem);
    font-weight: 600;
    background: rgba(15, 23, 42, 0.7);
    color: rgba(226, 232, 240, 0.9);
    border-color: rgba(148, 163, 184, 0.26);
}

.footer-badges .badge i {
    color: #38bdf8;
}

.footer-badges .badge-soft {
    background: rgba(15, 23, 42, 0.7);
    color: rgba(226, 232, 240, 0.9);
    border-color: rgba(148, 163, 184, 0.26);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.footer-grid h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-about {
    margin-top: 28px;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 6px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(226, 232, 240, 0.82);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition);
    line-height: 1.45;
    min-height: 44px;
}

.footer-links a i {
    color: #38bdf8;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.footer-links a span {
    line-height: 1.35;
}

.footer-links a:hover {
    color: #fff;
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.75);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 36px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(226, 232, 240, 0.8);
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== PRICING & FAQ ===== */
.page-section-title {
    text-align: center;
    margin-bottom: 24px;
}

.page-section-title p {
    max-width: 720px;
    margin: 0 auto;
}

.section-lead {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.section-lead p {
    margin-bottom: 0;
}

.section-cta {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 3vw, 32px);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(79, 70, 229, 0.08));
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    align-items: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cards-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-list {
    display: grid;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-index {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-weight: 700;
}

.comparison-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.comparison-table thead th {
    background: #f8fafc;
    font-weight: 700;
}

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

.comparison-highlight {
    background: rgba(37, 99, 235, 0.06);
}

.comparison-cards {
    display: none;
    gap: 16px;
}

.comparison-compact {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.comparison-row:last-child {
    border-bottom: 0;
}

.comparison-label {
    font-weight: 600;
}

.comparison-pro {
    color: var(--primary);
    font-weight: 600;
}

.comparison-plan-cards {
    display: none;
    gap: 14px;
}

.comparison-plan-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.comparison-plan-card.is-highlight {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), #fff 35%);
}

.comparison-plan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.comparison-plan-card-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.comparison-plan-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.comparison-plan-card li {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.comparison-plan-card li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.comparison-plan-card li span {
    color: var(--muted);
    font-size: 0.9rem;
}

.comparison-plan-card li strong {
    font-size: 1rem;
}
.comparison-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.empty-state {
    display: grid;
    gap: 12px;
    border-radius: 18px;
    padding: clamp(20px, 3vw, 30px);
    background: rgba(15, 23, 42, 0.04);
    border: 1px dashed rgba(148, 163, 184, 0.6);
}

.status-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.pricing-plans {
    padding: var(--sectionY) 0;
}

.pricing-hero-compact {
    padding-bottom: 28px;
}

.pricing-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pricing-hero-badges .badge-soft {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pricing-grid-item {
    min-width: 0;
}

.pricing-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.14);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 35%);
}

.pricing-card .card-header,
.pricing-card .card-body,
.pricing-card .card-footer {
    padding: 24px;
}

.pricing-card .price {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    margin: 12px 0;
}

.pricing-card .amount {
    font-size: 2rem;
    font-weight: 700;
}

.plan-features {
    list-style: none;
    display: grid;
    gap: 10px;
}

.pricing-card .card-body {
    flex: 1;
}

.pricing-card .card-footer {
    margin-top: auto;
}

.pricing-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pricing-heading h3 {
    margin-bottom: 0;
}

.plan-badge {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.plan-features i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.85rem;
}

.plan-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-footnote {
    margin-top: 20px;
    text-align: center;
}

.pricing-refund-card {
    max-width: 820px;
    margin: 0 auto;
}

.faq-list-compact {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

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

.faq-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.tools-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tool-action {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.blog-page .page-header {
    background: transparent;
}

.blog-page .page-header::before,
.blog-page .page-header::after {
    content: none;
}

.blog-page .page-header h1,
.blog-page .page-header p {
    color: var(--text, #111);
}

.blog-controls {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 24px;
}

.blog-controls input,
.blog-controls select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.blog-controls input[name="search"] {
    min-width: 320px;
}

.blog-featured {
    margin-bottom: 20px;
}

.blog-featured h2,
.blog-card h3 {
    margin: 10px 0;
}

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

.blog-card {
    display: grid;
    gap: 10px;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-pagination {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.blog-pagination a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
}

.blog-pagination a.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
}

.blog-article {
    max-width: 820px;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.03rem;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 1.5em;
    scroll-margin-top: 80px;
}

.blog-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    overflow-x: auto;
}

.blog-content code {
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
}

.blog-toc ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.blog-toc .level-3 {
    padding-left: 12px;
}

.blog-next-list {
    display: grid;
    gap: 12px;
}

.blog-next-list a {
    display: grid;
    gap: 4px;
    text-decoration: none;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-controls {
        grid-template-columns: 1fr 1fr;
    }

    .blog-article-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-grid,
    .blog-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1279px) {
    .nav-link {
        padding: 7px 10px;
    }
}

@media (max-width: 1199px) {
    .nav-desktop,
    .auth-buttons {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .navbar {
        min-height: 64px;
    }

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

@media (max-width: 639px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-badges {
        justify-content: flex-start;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

/* ===== SUPPORT CENTER ===== */
.support-center-wrap {
    width: 100%;
}

.support-center-hero {
    padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 76px);
}

.support-center-lead {
    max-width: 860px;
    margin-bottom: 20px;
}

.support-channel-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.support-channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 1.15rem;
}

.support-channel-note {
    margin-bottom: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-process-card {
    position: relative;
    padding-top: 52px;
}

.support-process-step {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.support-sla-card ul,
.support-checklist-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.support-sla-note {
    margin-top: 18px;
    color: #64748b;
    font-size: 0.92rem;
}

.support-checklist-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: var(--gap);
}

.support-tools-aside {
    display: grid;
    align-content: start;
    gap: 14px;
}

.support-faq-list {
    display: grid;
    gap: 12px;
}

.support-faq-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0 20px;
}

.support-faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    padding: 16px 26px 16px 0;
    position: relative;
}

.support-faq-item summary::-webkit-details-marker {
    display: none;
}

.support-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

.support-faq-item[open] summary::after {
    content: '−';
}

.support-faq-item p {
    margin: 0 0 18px;
    color: var(--muted);
}

.support-bottom-cta {
    background: #fff;
    border-color: var(--border);
}

@media (max-width: 900px) {
    .cards-grid.three,
    .support-checklist-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== BUSINESS PAGE ===== */
.business-hero .container {
    max-width: 1160px;
}

.business-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.business-badges .badge-soft {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.business-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-card {
    height: 100%;
}

.business-security {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.business-checklist {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.business-request-form {
    max-width: 980px;
    margin: 0 auto;
}

.business-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.business-form-grid label {
    display: grid;
    gap: 8px;
}

.business-form-grid .full-width {
    grid-column: 1 / -1;
}

@media (max-width: 1023px) {
    .business-feature-grid,
    .business-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .business-security {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .business-form-grid,
    .business-feature-grid,
    .business-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SERVERS INFRASTRUCTURE PAGE ===== */
.servers-page .servers-hero {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.servers-page .servers-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(780px 380px at 84% 2%, rgba(59, 130, 246, 0.12), transparent 60%),
        radial-gradient(860px 460px at 12% 95%, rgba(37, 99, 235, 0.08), transparent 70%);
    pointer-events: none;
}

.servers-page .servers-hero .container {
    position: relative;
    z-index: 1;
}

.servers-page .servers-hero .servers-hero-container {
    width: 100%;
}

.servers-page .servers-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
    align-items: stretch;
    gap: clamp(18px, 3vw, 30px);
}

.servers-page .servers-hero-content {
    padding: clamp(20px, 3.2vw, 34px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(1.5px);
}

.servers-page .servers-hero-eyebrow {
    background: rgba(37, 99, 235, 0.12);
    color: var(--dark);
    border-color: rgba(37, 99, 235, 0.2);
}

.servers-page .servers-hero-content h1 {
    color: var(--dark);
    max-width: 16ch;
    margin-bottom: 14px;
}

.servers-page .servers-hero-lead {
    color: var(--text);
    margin: 0;
    max-width: 62ch;
    line-height: 1.72;
}

.servers-page .servers-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.servers-page .servers-badges .status-chip {
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.1);
    color: var(--dark);
}

.servers-page .servers-hero-actions {
    margin-top: 22px;
}

.servers-page .servers-hero-security {
    padding: clamp(18px, 2.7vw, 28px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.servers-page .servers-hero-security h2 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: clamp(1.2rem, 2.1vw, 1.45rem);
}

.servers-page .servers-hero-security-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.servers-page .servers-hero-security-item {
    min-height: 112px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: rgba(37, 99, 235, 0.06);
    padding: 14px;
}

.servers-page .servers-hero-security-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.16);
    color: var(--primary);
    margin-bottom: 10px;
}

.servers-page .servers-hero-security-item p {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 0.89rem;
}

.servers-page .servers-hero-security-item strong {
    color: var(--dark);
    line-height: 1.45;
    font-size: 0.93rem;
    font-weight: 600;
}

.servers-page .servers-hero-security-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.1);
}

.servers-page .servers-hero-actions .btn {
    min-height: 46px;
    border-radius: 14px;
}

.servers-infra-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.servers-feature-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 22px;
    height: 100%;
}

.servers-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    margin-bottom: 12px;
}

.servers-feature-card h3,
.servers-location-card h4 {
    margin: 0 0 8px;
}

.servers-feature-card p,
.servers-location-card p {
    margin: 0;
    color: var(--muted);
}

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

.servers-security-item {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
    min-height: 62px;
}

.servers-security-item i {
    color: var(--primary);
    margin-top: 3px;
}

.servers-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.servers-subtitle {
    margin-bottom: 12px;
}

.servers-subtitle-divider {
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.34);
}

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

.servers-location-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.servers-location-grid.planned .servers-location-card {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.03));
}

.servers-location-card h4 {
    font-weight: 700;
}

.servers-location-card .status-chip {
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.servers-location-card .status-chip.success {
    background: rgba(30, 64, 175, 0.08);
    color: #1e3a8a;
}

.servers-location-card .status-chip.warning {
    background: rgba(217, 119, 6, 0.1);
    color: #92400e;
}

.servers-cis-callout {
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(120deg, #e0ebff 0%, #f5f8ff 56%, #eaf2ff 100%);
}

.servers-cis-callout h2::before {
    content: "\f0a2";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #2563eb;
}

.servers-choose-card {
    border-radius: 18px;
}

.servers-checklist {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.servers-checklist li {
    position: relative;
    padding-left: 28px;
}

.servers-checklist li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #2563eb;
}

.servers-faq-list .support-faq-item {
    border-radius: 16px;
}

.servers-faq-list .support-faq-item summary {
    min-height: 62px;
    display: flex;
    align-items: center;
    line-height: 1.45;
}

.servers-faq-list .support-faq-item summary:hover {
    background: #f8fafc;
}

.servers-faq-list .support-faq-item p {
    line-height: 1.72;
}

@media (max-width: 1199px) {
    .servers-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .servers-hero-security {
        max-width: 760px;
    }

    .servers-location-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .servers-security-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .servers-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .servers-hero-content {
        padding: 18px;
    }

    .servers-hero-content h1 {
        font-size: clamp(1.95rem, 8vw, 2.4rem);
    }

    .servers-hero-actions {
        width: 100%;
    }

    .servers-hero-actions .btn {
        width: 100%;
    }

    .servers-hero-security-grid {
        grid-template-columns: 1fr;
    }

    .servers-hero-security-item {
        min-height: 96px;
    }

    .servers-security-grid,
    .servers-location-grid {
        grid-template-columns: 1fr;
    }

    .servers-security-item {
        min-height: 58px;
    }

    .servers-cis-callout .section-cta-actions {
        width: 100%;
    }

    .servers-cis-callout .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .pricing-hero-compact .container,
    .pricing-plans .container,
    .section-muted .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pricing-card .card-header,
    .pricing-card .card-body,
    .pricing-card .card-footer {
        padding: 18px;
    }

    .pricing-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pricing-heading h3 {
        font-size: 1.2rem;
    }

    .plan-badge {
        font-size: 0.78rem;
        line-height: 1.15;
    }

    .pricing-card .amount {
        font-size: clamp(1.7rem, 8vw, 2rem);
        line-height: 1.1;
    }

    .pricing-card .period,
    .pricing-card .text-muted,
    .plan-features li {
        font-size: 0.95rem;
    }

    .plan-features {
        gap: 12px;
    }

    .pricing-card .btn,
    .pricing-refund-card .btn,
    .section-cta-actions .btn {
        width: 100%;
        min-height: 46px;
        font-size: 1rem;
        justify-content: center;
    }

    .comparison-compact {
        display: none;
    }

    .comparison-plan-cards {
        display: grid;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-card {
        padding: 18px;
    }

    .step-card h3 {
        font-size: 1.08rem;
        margin-bottom: 8px;
    }

    .step-index {
        width: 38px;
        height: 38px;
        border-radius: 999px;
    }

    .section-cta {
        padding: 20px;
        gap: 14px;
    }

    .section-cta-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comparison-plan-cards {
        display: none;
    }
}

/* ===== LEGAL CENTER ===== */
.legal-center-hero {
    padding: clamp(30px, 5vw, 56px) 0 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.legal-center-shell {
    width: 100%;
}

.legal-breadcrumb {
    margin-bottom: 18px;
}

.legal-hero-card,
.legal-doc-nav,
.legal-quick-card,
.legal-toc-desktop,
.legal-toc-mobile,
.legal-content,
.legal-contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.legal-hero-card {
    padding: clamp(24px, 4vw, 40px);
}

.legal-eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
    font-size: .78rem;
    margin-bottom: 10px;
}

.legal-hero-subtitle {
    max-width: 820px;
    color: var(--muted);
    margin: 0;
}

.legal-hero-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-hero-meta span {
    font-size: .94rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
}

.legal-doc-nav,
.legal-quick-card {
    margin-top: 16px;
    padding: 20px;
}

.legal-doc-nav h2,
.legal-quick-card h2 {
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.legal-doc-nav-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.legal-doc-link {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    color: var(--text);
    background: #f8fafc;
    font-weight: 600;
}

.legal-doc-link:hover {
    border-color: rgba(37, 99, 235, 0.32);
}

.legal-doc-link.is-active {
    background: rgba(37, 99, 235, 0.11);
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--primary);
}

.legal-quick-card ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.legal-center-body {
    padding: 10px 0 clamp(34px, 6vw, 60px);
}

.legal-main-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 900px);
    gap: 24px;
    align-items: start;
}

.legal-toc-desktop {
    position: sticky;
    top: 108px;
    padding: 18px;
}

.legal-toc-desktop strong {
    display: block;
    margin-bottom: 12px;
}

.legal-toc-desktop ol,
.legal-toc-mobile ol {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.legal-toc-desktop a,
.legal-toc-mobile a,
.prose-legal a {
    color: #334155;
    text-decoration-color: rgba(51, 65, 85, .38);
}

.legal-toc-mobile {
    display: none;
    padding: 16px;
}

.legal-toc-mobile summary {
    font-weight: 700;
    cursor: pointer;
}

.prose-legal {
    max-width: 900px;
    padding: clamp(24px, 4vw, 40px);
    line-height: 1.68;
}

.prose-legal h2 {
    margin-top: 2.2em;
    margin-bottom: .65em;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.prose-legal h2:first-child {
    margin-top: 0;
}

.prose-legal h3 {
    margin-top: 1.4em;
    margin-bottom: .5em;
    font-size: 1.08rem;
}

.prose-legal ul,
.prose-legal ol {
    padding-left: 1.25rem;
}

.legal-callout {
    border-radius: 16px;
    padding: 16px 18px;
    margin: 14px 0;
    border: 1px solid var(--border);
}

.legal-callout p {
    margin: 0;
}

.legal-callout--note {
    background: #f8fafc;
}

.legal-callout--important {
    background: #fff7ed;
    border-color: #fdba74;
}

.legal-callout--definition {
    background: #eff6ff;
    border-color: #93c5fd;
}

.legal-contact-section {
    padding-bottom: clamp(38px, 6vw, 70px);
}

.legal-contact-card {
    padding: clamp(22px, 3vw, 34px);
}

.legal-contact-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-contact-list a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    background: #f8fafc;
}

@media (max-width: 1023px) {
    .legal-doc-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-main-grid {
        grid-template-columns: 1fr;
    }

    .legal-toc-desktop {
        display: none;
    }

    .legal-toc-mobile {
        display: block;
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .legal-doc-nav-grid {
        grid-template-columns: 1fr;
    }

    .prose-legal {
        padding: 20px;
    }
}

/* ===== DASHBOARD ===== */
.dashboard-shell { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 24px; max-width: 1200px; }
.dashboard-sidebar { position: sticky; top: 96px; align-self: start; background: #0f172a; color: #fff; border-radius: 20px; padding: 20px; display: grid; gap: 8px; }
.dashboard-brand { font-weight: 700; letter-spacing: 0.08em; font-size: 0.75rem; color: #93c5fd; margin-bottom: 10px; }
.dashboard-nav-link { color: #cbd5e1; text-decoration: none; padding: 10px 12px; border-radius: 12px; display: flex; gap: 10px; align-items: center; }
.dashboard-nav-link.is-active, .dashboard-nav-link:hover { background: rgba(59, 130, 246, 0.2); color: #fff; }
.dashboard-main { display: grid; gap: 20px; }
.dashboard-topbar { display: flex; justify-content: space-between; align-items: center; }
.dashboard-topbar h1 { margin: 0; }
.dashboard-stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.dashboard-stats-grid.small { grid-template-columns: repeat(4, minmax(0,1fr)); }
.status-pill { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.status-pill.is-active { background: #dcfce7; color: #166534; }
.status-pill.is-expired { background: #fee2e2; color: #b91c1c; }
.status-pill.is-trial { background: #dbeafe; color: #1d4ed8; }
.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dashboard-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dashboard-feed li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: #93c5fd; }
.dot.success { background: #22c55e; }
.dot.warning { background: #f59e0b; }
.dot.info { background: #3b82f6; }
.empty-state { text-align: center; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 24px; }
.dashboard-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.btn-xs { padding: 6px 10px; font-size: 0.76rem; }
.promo-banner { margin-top: 16px; border: 1px solid #dbeafe; background: linear-gradient(135deg, #eff6ff, #f8fafc); border-radius: 14px; padding: 14px; }
.inline-copy { display: flex; align-items: center; gap: 8px; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; padding: 8px; margin-bottom: 8px; }
.dashboard-form { display: grid; gap: 12px; }
.dashboard-form label { display: grid; gap: 6px; font-weight: 600; }
.dashboard-form input, .dashboard-form select { border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; }
.dashboard-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e2e8f0; display: none; z-index: 900; padding: 8px 10px; justify-content: space-around; }
.dashboard-bottom-nav a { color: #64748b; text-decoration: none; display: grid; gap: 4px; justify-items: center; font-size: 0.74rem; }
.dashboard-bottom-nav a.is-active { color: #2563eb; font-weight: 700; }
.dashboard-modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 2000; padding: 16px; }
.dashboard-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 2000; }
.dashboard-modal-card { position: relative; z-index: 2010; width: min(500px, 92vw); max-height: calc(100vh - 32px); overflow: auto; pointer-events: auto; }
.dashboard-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dashboard-modal-head h3 { margin: 0; }
.dashboard-modal-close { position: absolute; top: 16px; right: 16px; z-index: 2020; width: 36px; height: 36px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #0f172a; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.4rem; line-height: 1; pointer-events: auto; }
.dashboard-modal-close:hover { background: #f8fafc; }
body.modal-open { overflow: hidden; }

@media (max-width: 1024px) {
    .dashboard-shell { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 88vw); border-radius: 0 20px 20px 0; transform: translateX(-110%); transition: .25s ease; z-index: 1100; }
    .dashboard-sidebar.is-open { transform: translateX(0); }
    .dashboard-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dashboard-stats-grid.small { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dashboard-columns { grid-template-columns: 1fr; }
    .dashboard-bottom-nav { display: flex; }
    .dashboard-page { padding-bottom: 86px; }
}

/* ===== AUTH PAGES ===== */
.auth-shell {
    padding: clamp(36px, 7vw, 84px) 0;
}

.auth-card-wrap {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
    padding: clamp(22px, 4vw, 34px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-card h1 {
    font-size: clamp(1.35rem, 2.8vw, 1.95rem);
    margin-bottom: 10px;
}

.auth-subtitle {
    margin: 0 0 20px;
    color: var(--text-muted);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-check input {
    width: 16px;
    height: 16px;
}

.auth-link,
.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

.auth-switch {
    margin-top: 18px;
    margin-bottom: 0;
    color: var(--text-muted);
    text-align: center;
}

.auth-submit {
    min-height: 48px;
}

.auth-alert {
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.auth-alert--error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.auth-alert--success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.9), 0 14px 28px rgba(37, 99, 235, 0.3);
}

.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
}

@media (max-width: 767px) {
    .auth-shell {
        padding: 24px 0;
    }

    .auth-card-wrap {
        max-width: 100%;
    }

    .auth-card {
        border-radius: 16px;
        padding: 20px 16px;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Cabinet */
.cabinet {
    padding: 30px 0 56px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 35%), #f4f7fc;
}

.cabinet-container {
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 0 clamp(16px, 2vw, 32px);
}

.cabinet-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(18px, 2vw, 32px);
    align-items: start;
}

.cab-overlay { position: fixed; inset: 0; background: rgba(5, 11, 26, 0.55); z-index: 2490; }

.cab-sidebar {
    position: sticky;
    top: 88px;
    background: linear-gradient(160deg, #0b1224 0%, #111b34 100%);
    color: #e5eaf5;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 26px 40px rgba(7, 12, 30, 0.35);
    border: 1px solid rgba(143, 166, 220, 0.18);
}

.cab-logo { margin: 6px 10px 14px; display: flex; align-items: center; gap: 10px; }
.cab-logo-image { display: block; max-height: 20px; width: auto; height: auto; }
.cab-logo-name { font-weight: 700; letter-spacing: 0.02em; }
.cab-nav { display: grid; gap: 6px; }
.cab-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; border-radius: 12px; text-decoration: none;
    color: #c2d0eb; border: 1px solid transparent;
    transition: all .18s ease;
}
.cab-link:hover { color: #fff; background: rgba(147, 197, 253, 0.12); transform: translateX(2px); }
.cab-link.is-active { color: #fff; background: rgba(59, 130, 246, 0.22); border-color: rgba(147, 197, 253, 0.4); box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.1); }
.cab-link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.55); }
.cab-sidebar-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(147, 197, 253, 0.15); }
.cab-sidebar-logout { width: 100%; }

.cab-content { display: grid; gap: 18px; min-width: 0; }
.cab-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    padding: clamp(18px, 2vw, 24px);
    box-shadow: 0 12px 28px rgba(12, 25, 45, 0.08), 0 3px 8px rgba(12, 25, 45, 0.06);
}
.cab-card:hover { box-shadow: 0 18px 34px rgba(12, 25, 45, 0.11), 0 4px 12px rgba(12, 25, 45, 0.07); }
.cab-head h1 { margin: 0 0 8px; font-size: clamp(1.55rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
.cab-head p, .cab-muted { margin: 0; color: #5f6f86; }

.cab-grid { display: grid; gap: 16px; }
.cab-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cab-grid-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cab-kpi { display: grid; gap: 12px; }
.cab-kpi-label { font-size: 0.82rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.cab-kpi-value { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; margin: 0; }

.cab-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cab-card-inline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cab-link-inline { color: #2563eb; font-weight: 600; text-decoration: none; }
.cab-link-inline:hover { text-decoration: underline; }

.btn { border-radius: 12px; transition: all .18s ease; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(147, 197, 253, .55); }
.btn-primary { background: #1d4ed8; border-color: #1d4ed8; box-shadow: 0 10px 18px rgba(29, 78, 216, 0.22); }
.btn-primary:hover { background: #1e40af; border-color: #1e40af; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: #1e293b; border-color: #cbd5e1; }
.btn-secondary:hover { background: #f8fafc; }
.btn-tertiary { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.btn-tertiary:hover { background: #e2e8f0; }
.btn-xs { padding: 7px 12px; min-height: 36px; }

.cab-badge { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cab-badge-active { background: #dcfce7; color: #166534; }
.cab-badge-trial { background: #dbeafe; color: #1d4ed8; }
.cab-badge-pending { background: #e2e8f0; color: #334155; }
.cab-badge-expired { background: #fee2e2; color: #991b1b; }

.cab-table-wrap { overflow: auto; border: 1px solid #e2e8f0; border-radius: 14px; }
.cab-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.cab-table th, .cab-table td { padding: 13px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: middle; }
.cab-table th { font-size: .84rem; text-transform: uppercase; letter-spacing: .03em; color: #64748b; background: #f8fafc; }

.cab-form-grid { display: grid; gap: 12px; margin-top: 14px; }
.cab-form-grid label { display: grid; gap: 6px; color: #334155; font-weight: 500; }
.cab-checkbox { display: flex !important; align-items: center; gap: 8px; }
.cab-code { display: block; margin-top: 8px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }

.cab-empty { text-align: center; padding: 30px 15px; }
.cab-empty-icon { font-size: 28px; color: #94a3b8; margin-bottom: 8px; }
.cab-feed { margin: 0; padding-left: 18px; }
.cab-feed li { margin-bottom: 8px; }
.cab-feed span { color: #64748b; font-size: 12px; margin-left: 8px; }
.cab-banner { margin-top: 12px; padding: 12px; border-radius: 12px; background: linear-gradient(120deg, #1d4ed8, #4f46e5); color: #fff; }
.cab-flash { padding: 10px 12px; border-radius: 12px; background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.cab-flash-error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.cab-modal { position: fixed; inset: 0; display: none; z-index: 3000; }
.cab-modal.is-open { display: block; }
.cab-modal-overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); z-index: 1; }
.cab-modal-dialog { position: relative; z-index: 2; max-width: 520px; width: calc(100% - 24px); margin: 8vh auto; background: #fff; border-radius: 18px; padding: 22px; max-height: 82vh; overflow: auto; }
.cab-modal-close { position: absolute; top: 10px; right: 10px; border: 0; background: #f1f5f9; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; }

.cab-menu-btn { display: none; margin-bottom: 12px; }

@media (max-width: 1280px) {
    .cab-grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .cabinet-shell { grid-template-columns: 1fr; }
    .cab-menu-btn { display: inline-flex; }
    .cab-sidebar {
        position: fixed;
        left: 16px;
        top: 16px;
        bottom: 16px;
        width: min(320px, calc(100vw - 32px));
        z-index: 2500;
        transform: translateX(-120%);
        transition: transform .2s ease;
    }
    .cab-sidebar.is-open { transform: translateX(0); }
}

@media (max-width: 768px) {
    .cabinet-container { padding: 0 16px; }
    .cab-grid-2, .cab-grid-kpi { grid-template-columns: 1fr; }
    .cab-actions .btn, .cab-card-inline .btn { width: 100%; }
    .cab-card-inline { flex-direction: column; align-items: flex-start; }
    .cab-head { padding-right: 14px; }
}

/* Premium landing refresh */
.landing-premium {
    --lp-bg: #f3f7ff;
    --lp-border: rgba(20, 57, 140, 0.12);
    --lp-text: #0b1736;
    --lp-muted: #52607d;
}

.landing-hero {
    padding-top: 0;
}

.landing-hero__shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(162, 196, 255, 0.2);
    background: linear-gradient(145deg, rgba(6, 24, 66, 0.84), rgba(18, 58, 140, 0.68)), radial-gradient(circle at 18% 8%, rgba(122, 176, 255, 0.46) 0%, rgba(122, 176, 255, 0.08) 42%, transparent 70%);
    box-shadow: 0 26px 54px rgba(5, 19, 58, 0.32);
    display: grid;
    gap: 2rem;
    padding: clamp(1.2rem, 2vw, 2.7rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.landing-hero__aurora {
    position: absolute;
    inset: -35% auto auto -20%;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 91, 255, 0.3) 0%, rgba(86, 141, 255, 0.18) 35%, transparent 70%);
    pointer-events: none;
}

.landing-hero__content,
.landing-hero__visual {
    position: relative;
    z-index: 1;
}

.landing-kicker {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #c6ddff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.landing-hero h1 {
    color: #f6f9ff;
    font-size: clamp(1.9rem, 3vw, 3.05rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.landing-hero__lead {
    color: rgba(227, 236, 255, 0.92);
    max-width: 56ch;
    font-size: 1.05rem;
}

.landing-hero__bullets {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.66rem;
}

.landing-hero__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(237, 243, 255, 0.95);
    font-weight: 500;
}

.landing-dot {
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(140deg, #1e5bff, #64a0ff);
    box-shadow: 0 0 0 4px rgba(30, 91, 255, 0.12);
}

.landing-hero__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.landing-hero__badges {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.landing-hero__visual {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.landing-lock-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(104, 140, 230, 0.24);
    padding: 1rem;
    box-shadow: 0 18px 35px rgba(24, 53, 122, 0.11);
}

.landing-lock-card svg {
    width: 68px;
    flex-shrink: 0;
}

.landing-lock-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #314669;
}

.landing-connection-card .connection-card {
    height: 100%;
}

.landing-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(92, 132, 226, 0.4);
    pointer-events: none;
}

.landing-orbit--one {
    width: 120px;
    height: 120px;
    top: -20px;
    right: 30px;
}

.landing-orbit--two {
    width: 180px;
    height: 180px;
    bottom: 8%;
    right: -20px;
}

.landing-grid {
    display: grid;
    gap: 1rem;
}

.landing-grid--benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-grid--usecases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card {
    border-radius: 20px;
    border: 1px solid var(--lp-border);
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    padding: 1.25rem;
    min-height: 220px;
    box-shadow: 0 15px 34px rgba(20, 50, 120, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.landing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(20, 50, 120, 0.14);
}

.landing-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, #1e5bff, #7bb2ff);
    color: #fff;
    margin-bottom: 0.8rem;
}

.landing-card__icon--soft {
    background: linear-gradient(155deg, #edf3ff, #dce8ff);
    color: #1f4bb8;
}

.landing-card h3,
.landing-step h3 {
    font-size: 1.07rem;
    line-height: 1.3;
}

.landing-card p,
.landing-step p {
    margin: 0.5rem 0 0;
    color: var(--lp-muted);
}

.landing-card--compact {
    min-height: 185px;
}

.landing-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
}

.landing-steps::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, rgba(30, 91, 255, 0.2), rgba(30, 91, 255, 0.55), rgba(30, 91, 255, 0.2));
}

.landing-step {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--lp-border);
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 12px 28px rgba(20, 50, 120, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.landing-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(20, 50, 120, 0.15);
}

.landing-step__index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(155deg, #1e5bff, #67a4ff);
    box-shadow: 0 0 0 6px rgba(30, 91, 255, 0.14);
}

.landing-final {
    border-radius: 28px;
    text-align: center;
    padding: clamp(1.4rem, 3vw, 2.8rem);
    background: radial-gradient(circle at 25% 20%, rgba(143, 183, 255, 0.6), rgba(30, 91, 255, 0.96));
    color: #fff;
    box-shadow: 0 26px 54px rgba(14, 42, 108, 0.33);
}

.landing-final h2 {
    color: #fff;
}

.landing-final p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 62ch;
    margin: 0.7rem auto 1rem;
}

.landing-final__badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.landing-final__badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.reveal-up {
    animation: revealUp .55s ease both;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .landing-hero__shell {
        grid-template-columns: 1fr;
    }

    .landing-grid--benefits,
    .landing-grid--usecases,
    .landing-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-steps::before {
        display: none;
    }
}

@media (max-width: 760px) {
    .page-header--home {
        padding: clamp(44px, 13vw, 64px) 0;
    }

    .landing-grid--benefits,
    .landing-grid--usecases,
    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-hero__shell,
    .landing-final,
    .landing-card,
    .landing-step {
        border-radius: 18px;
    }

    .landing-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .landing-card,
    .landing-step {
        animation: none;
        transition: none;
    }
}

/* ===== RESPONSIVE FIXES: HEADER + TOOLS ===== */
@media (max-width: 1199px) {
    .nav-desktop,
    .auth-buttons {
        display: none !important;
    }

    .mobile-toggle {
        display: inline-flex !important;
    }

    .navbar {
        min-height: 64px;
        gap: 10px;
    }

    .tool-split-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tool-card-shell,
    .tools-info-panel,
    .tools-page-layout .tool-card-shell,
    .tools-page-layout .tools-info-panel {
        padding: 18px;
        gap: 14px;
    }
}

@media (max-width: 420px) {
    .navbar {
        gap: 8px;
        padding: 8px 0;
    }

    .brand-name {
        font-size: 1rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .mobile-menu-content {
        width: min(340px, 95vw);
        padding: 16px;
    }
}

.tools-page-layout,
.tool-split-layout,
.tool-section,
.tool-card-shell,
.tools-info-panel {
    min-width: 0;
}

.tools-page-layout pre,
.tools-page-layout table,
.tools-page-layout .tool-code,
.tools-page-layout .tool-output-mono,
.tools-page-layout .tool-value-text {
    max-width: 100%;
    overflow-x: auto;
}

/* ===== CANVAS BACKGROUND MODE ===== */
.canvas-bg-page .section-muted,
.canvas-bg-page .about-section-muted,
.canvas-bg-page .legal-center-hero {
    background: transparent;
}

/* ===== 404 PAGE ===== */
.error-404-hero {
    padding: clamp(56px, 12vw, 96px) 0;
}

/* 404 page text should be dark on white card */
.error-404 .error-card,
.error-404 .error-card * {
    color: var(--text, #111827);
}

/* 404: primary button text must be white */
.error-404 .error-primary-btn,
.error-404 .error-primary-btn * {
    color: #fff !important;
}

.error-404 .error-muted {
    color: rgba(17, 24, 39, 0.7);
}

.error-404-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 16px;
    border-radius: 24px;
}

.error-404-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
}

.error-404-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.error-404-code {
    display: inline-flex;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-2);
    letter-spacing: 0.08em;
}

.error-404-countdown {
    font-size: 1.05rem;
    color: var(--muted);
}

.error-404-countdown span {
    display: inline-flex;
    min-width: 1.5ch;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-2);
}

.error-404-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .error-404-card {
        gap: 14px;
    }

    .error-404-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
