:root {
    --bg: #f6f8fb;
    --bg-deep: #172033;
    --card: rgba(255, 255, 255, 0.86);
    --card-solid: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);

    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #ecfdf5;
    --violet: #4f46e5;
    --cyan: #0284c7;
    --accent: #f59e0b;

    --success: #15803d;
    --success-soft: #dcfce7;
    --warning: #b45309;
    --warning-soft: #fef3c7;

    --shadow-lg: 0 30px 90px rgba(15, 23, 42, 0.16);
    --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.10);
    --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.07);

    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(236, 253, 245, 0.74) 0%, rgba(246, 248, 251, 0.94) 36%, #eef2f7 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    padding: 3px 7px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.07);
    color: #334155;
    font-size: 0.92em;
}

.bg-orb {
    display: none;
}

.bg-orb-one {
    width: 340px;
    height: 340px;
    left: -130px;
    top: 140px;
    background: rgba(37, 99, 235, 0.13);
}

.bg-orb-two {
    width: 420px;
    height: 420px;
    right: -160px;
    bottom: -120px;
    background: rgba(124, 58, 237, 0.13);
}

.app-shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(23, 32, 51, 0.97), rgba(18, 51, 55, 0.95));
    color: #ffffff;
    overflow-y: auto;
}

.brand-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.brand-card::after {
    display: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 19px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.34);
}

.brand-logo span {
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge-blue {
    background: rgba(45, 212, 191, 0.16);
    color: #ccfbf1;
}

.badge-light {
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary);
}

.badge-muted {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.brand-card h1 {
    position: relative;
    z-index: 1;
    margin: 13px 0 0;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.055em;
}

.brand-card p {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: 13px;
}

.brand-meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.brand-meta div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.brand-meta strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.brand-meta span {
    display: block;
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 12px;
}

.side-nav {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.side-nav a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 17px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-nav a:hover,
.side-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(4px);
}

.side-nav a.disabled {
    opacity: 0.42;
    pointer-events: none;
}

.nav-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
}

.side-nav a.active .nav-icon,
.side-nav a:hover .nav-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
}

.sidebar-note {
    margin-top: 22px;
    padding: 17px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 13px;
}

.sidebar-note .note-label {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
}

.sidebar-note strong {
    display: block;
    color: #ffffff;
    margin-bottom: 6px;
}

.sidebar-note p {
    margin: 0;
}

.sidebar-note code {
    background: rgba(255, 255, 255, 0.10);
    color: #e2e8f0;
}

.main-content {
    min-width: 0;
    padding: 32px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: stretch;
    padding: 34px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(236, 253, 245, 0.84));
    box-shadow: var(--shadow-lg);
}

.hero-section::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    margin: 16px 0 0;
    max-width: 860px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.hero-content p {
    margin: 20px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 15px;
    padding: 11px 17px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.27);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.34);
}

.btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-sm);
}

.btn-small {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 13px;
}

.btn-muted,
button:disabled {
    cursor: not-allowed;
    background: #e2e8f0;
    color: #64748b;
    box-shadow: none;
}

.btn-muted:hover,
button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.hero-status-card {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.status-header span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.status-header strong {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 12px;
}

.status-number {
    padding: 22px 0 16px;
}

.status-number strong {
    display: block;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.status-number span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.progress-track {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--cyan), var(--accent));
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.status-grid div {
    padding: 13px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
}

.status-grid strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.status-grid span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ad-wrapper {
    margin: 24px 0;
}

.ad-label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.ad-slot {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px dashed rgba(100, 116, 139, 0.38);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.84)),
        repeating-linear-gradient(
            45deg,
            rgba(37, 99, 235, 0.035),
            rgba(37, 99, 235, 0.035) 10px,
            transparent 10px,
            transparent 20px
        );
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.ad-slot::before {
    display: none;
}

.ad-slot span {
    position: relative;
    z-index: 1;
}

.ad-leaderboard {
    min-height: 110px;
}

.ad-horizontal {
    min-height: 100px;
}

.ad-large {
    min-height: 250px;
}

.ad-top {
    margin-top: -4px;
}

.ad-bottom {
    margin-bottom: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.summary-card {
    position: relative;
    overflow: hidden;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.summary-card::after {
    display: none;
}

.summary-featured {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.94));
}

.summary-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 900;
}

.summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-card strong {
    display: block;
    margin-top: 10px;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.07em;
}

.summary-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.section-heading h3 {
    margin: 13px 0 0;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.section-heading p {
    margin: 9px 0 0;
    max-width: 760px;
    color: var(--muted);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tool-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 278px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cyan), var(--accent));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: var(--shadow-md);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-soon {
    background: rgba(255, 255, 255, 0.62);
}

.tool-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 21px;
    border-bottom: 1px solid var(--line);
}

.tool-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.22);
}

.tool-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tool-heading h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.tool-status {
    white-space: nowrap;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.status-active {
    background: var(--success-soft);
    color: var(--success);
}

.status-soon {
    background: var(--warning-soft);
    color: var(--warning);
}

.tool-content {
    flex: 1;
    padding: 21px;
}

.tool-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 17px 21px;
    border-top: 1px solid var(--line);
    background: rgba(248, 250, 252, 0.78);
}

.tool-footer span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1240px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
    }

    .side-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sidebar-note {
        display: none;
    }

    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .main-content,
    .sidebar {
        padding: 18px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 25px;
        border-radius: 28px;
    }

    .hero-status-card {
        align-self: stretch;
    }

    .summary-grid,
    .tool-grid,
    .side-nav {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .ad-leaderboard,
    .ad-horizontal,
    .ad-large {
        min-height: 120px;
    }
}

@media (max-width: 560px) {
    .hero-actions,
    .tool-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    button {
        width: 100%;
    }

    .tool-header {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .tool-status {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .summary-card strong {
        font-size: 42px;
    }
}
.tool-page-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: stretch;
    padding: 34px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86)),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 38%);
    box-shadow: var(--shadow-lg);
}

.tool-page-hero::after {
    display: none;
}

.tool-page-hero-content {
    position: relative;
    z-index: 1;
}

.tool-page-hero h2 {
    margin: 16px 0 0;
    max-width: 850px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.tool-page-hero p {
    margin: 20px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
}

.tool-page-panel {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.tool-page-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.22);
}

.tool-page-panel strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.tool-page-panel span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 15px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.button-link.secondary {
    background: #ffffff;
    color: #334155;
    border: 1px solid var(--line);
    box-shadow: none;
}

.button-link.secondary:hover {
    box-shadow: var(--shadow-sm);
}

.ad-wrapper {
    margin: 24px 0;
}

.ad-label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.ad-slot {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    border: 1px dashed rgba(100, 116, 139, 0.38);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.84)),
        repeating-linear-gradient(
            45deg,
            rgba(37, 99, 235, 0.035),
            rgba(37, 99, 235, 0.035) 10px,
            transparent 10px,
            transparent 20px
        );
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.ad-large {
    min-height: 220px;
}

.nav a.disabled {
    opacity: 0.42;
    pointer-events: none;
}

@media (max-width: 900px) {
    .tool-page-hero {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 28px;
    }

    .tool-page-hero h2 {
        font-size: clamp(36px, 12vw, 52px);
    }
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.dashboard-topbar strong {
    display: block;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.dashboard-topbar span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dashboard-pills span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.10);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.hero-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    max-width: 720px;
}

.hero-metric {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-metric strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.hero-metric span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.rk-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px max(18px, calc((100vw - 1440px) / 2 + 18px));
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    background: rgba(246, 248, 251, 0.92);
    backdrop-filter: blur(18px);
}

.rk-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.rk-brand-link,
.rk-footer-brand {
    color: inherit;
    text-decoration: none;
}

.rk-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 180px;
}

.rk-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.22);
}

.rk-brand-text strong,
.rk-brand-text small {
    display: block;
}

.rk-brand-text strong {
    font-size: 16px;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.rk-brand-text small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.rk-site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.rk-site-nav::-webkit-scrollbar {
    display: none;
}

.rk-site-nav a {
    flex: 0 0 auto;
    padding: 9px 11px;
    border-radius: 999px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.rk-site-nav a:hover,
.rk-site-nav a.active {
    background: rgba(15, 118, 110, 0.10);
    color: var(--primary-dark);
}

.rk-header-status {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.rk-header-status strong {
    font-size: 20px;
    line-height: 1;
}

.rk-header-status span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.rk-menu-toggle {
    display: none;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    box-shadow: none;
}

.rk-ad {
    width: min(1440px, calc(100% - 36px));
    margin: 18px auto;
}

.rk-ad-label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.rk-ad-frame {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 104px;
    padding: 12px;
    border: 1px dashed rgba(100, 116, 139, 0.38);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(236, 253, 245, 0.66)),
        repeating-linear-gradient(45deg, rgba(15, 118, 110, 0.035), rgba(15, 118, 110, 0.035) 10px, transparent 10px, transparent 20px);
    color: #64748b;
    box-shadow: var(--shadow-sm);
}

.rk-ad-bottom .rk-ad-frame {
    min-height: 190px;
}

.rk-ad-placeholder {
    position: absolute;
    inset: auto;
    z-index: 0;
    font-size: 13px;
    font-weight: 900;
}

.rk-ad-unit {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 80px;
}

.rk-site-footer {
    width: min(1440px, calc(100% - 36px));
    margin: 22px auto 32px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.rk-footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
    gap: 24px;
}

.rk-footer-brand {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.rk-site-footer p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 14px;
}

.rk-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.rk-footer-nav a {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.rk-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.rk-tool-shell {
    width: min(1440px, calc(100% - 36px));
    margin: 0 auto 24px;
}

@media (max-width: 900px) {
    .dashboard-topbar,
    .rk-footer-main,
    .rk-footer-bottom {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar,
    .rk-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-pills,
    .rk-footer-nav {
        justify-content: flex-start;
    }

    .hero-metric-row,
    .rk-header-inner {
        grid-template-columns: 1fr;
    }

    .rk-site-header {
        position: static;
    }

    .rk-menu-toggle {
        display: inline-flex;
        width: fit-content;
    }

    .rk-site-nav {
        display: none;
        flex-wrap: wrap;
        overflow: visible;
    }

    .rk-site-nav.is-open {
        display: flex;
    }

    .rk-header-status {
        display: none;
    }
}
