:root {
    --ink: #19352f;
    --ink-soft: #5a7269;
    --sand: #f6f1e9;
    --sand-deep: #e7dece;
    --leaf: #86a96f;
    --leaf-bright: #d9e7bb;
    --sun: #d8ac45;
    --berry: #b14f5f;
    --panel: rgba(248, 243, 235, 0.88);
    --panel-strong: rgba(255, 251, 245, 0.94);
    --line: rgba(25, 53, 47, 0.12);
    --line-strong: rgba(25, 53, 47, 0.2);
    --shadow: 0 22px 60px rgba(25, 53, 47, 0.14);
    --shadow-soft: 0 12px 30px rgba(25, 53, 47, 0.09);
    --header-media-height: 167px;
    --header-offset: 182px;
    --footer-offset: 96px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
    background: var(--page-background-color);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.12)),
        radial-gradient(circle at top left, rgba(216, 172, 69, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(134, 169, 111, 0.16), transparent 32%),
        var(--page-background-image);
    background-attachment: fixed;
}

.public-body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}

textarea {
    resize: vertical;
}

label {
    display: grid;
    gap: 0.55rem;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin: 0 0 0.45rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--ink-soft);
}

.primary-button,
.ghost-button,
.danger-button,
.read-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--ink), #275447);
    color: white;
    box-shadow: 0 12px 24px rgba(23, 63, 53, 0.24);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(23, 63, 53, 0.16);
}

.danger-button {
    background: rgba(177, 79, 95, 0.12);
    color: #8f3143;
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.read-link:hover,
.pitch-link:hover,
.topbar-nav a:hover {
    transform: translateY(-1px);
}

.flash {
    margin: 0 auto 1rem;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    max-width: 1240px;
}

.flash-success {
    background: rgba(139, 177, 116, 0.18);
    border: 1px solid rgba(139, 177, 116, 0.32);
}

.flash-error {
    background: rgba(177, 79, 95, 0.14);
    border: 1px solid rgba(177, 79, 95, 0.3);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(247, 242, 234, 0.8);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(25, 53, 47, 0.08);
}

.brand-strip {
    display: grid;
    grid-template-columns: var(--left-share) var(--right-share);
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 0.35rem;
    gap: 0.85rem;
}

.brand-slot {
    height: var(--header-media-height);
    min-height: var(--header-media-height);
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(25, 53, 47, 0.08);
    box-shadow: var(--shadow-soft);
}

.brand-slot-logo {
    background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(238, 230, 217, 0.92));
    padding: 0.72rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-slot-logo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.brand-slot-ad {
    padding: 0;
    background: transparent;
}

.brand-slot-ad-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.brand-slot-ad-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.brand-slot-ad-item.is-active {
    opacity: 1;
}

.brand-slot-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.76);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    text-align: center;
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -0.03em;
    color: var(--ink);
}

.brand-slot-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.brand-slot-ad-item-contain {
    background: linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(238, 230, 217, 0.92));
}

.brand-slot-ad-item-contain img {
    object-fit: contain;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto 0.75rem;
    padding: 0.42rem 0.8rem;
    border-radius: 22px;
    border: 1px solid rgba(25, 53, 47, 0.1);
    background: rgba(247, 242, 234, 0.88);
    box-shadow: 0 8px 20px rgba(25, 53, 47, 0.06);
}

.topbar-toggle,
.circuit-mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(25, 53, 47, 0.16);
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(25, 53, 47, 0.08);
}

.topbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-left: auto;
}

.user-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
    padding: 0.34rem 0.72rem 0.34rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(134, 169, 111, 0.24);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(25, 53, 47, 0.08);
    color: var(--ink);
}

.user-level-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    height: 1.8rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: rgba(134, 169, 111, 0.16);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.user-level-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
}

.user-level-first-name {
    min-width: 0;
    max-width: 10ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.topbar-nav a {
    padding: 0.34rem 0.82rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.topbar-nav .is-active,
.pitch-link {
    background: rgba(134, 169, 111, 0.15);
    border: 1px solid rgba(134, 169, 111, 0.16);
}

.topbar-nav .pitch-link:first-child {
    background: rgba(23, 63, 53, 0.08);
    border-color: rgba(23, 63, 53, 0.12);
}

.page-shell {
    padding: var(--header-offset) 1.25rem var(--footer-offset);
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 1.7rem;
}

.intro-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: clamp(1.8rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(255, 251, 245, 0.97), rgba(244, 239, 230, 0.9));
    border: 1px solid var(--line);
    border-radius: 36px;
    box-shadow: var(--shadow);
    text-align: center;
}

.intro-panel::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 169, 111, 0.16), transparent 72%);
}

.intro-panel > * {
    position: relative;
    z-index: 1;
}

.intro-copy {
    width: min(100%, 58rem);
    margin: 0 auto;
    font-size: clamp(1.12rem, 1.9vw, 1.38rem);
    line-height: 1.85;
    color: var(--ink);
}

.hero-panel,
.cta-band,
.login-card,
.install-card,
.article-shell,
.panel-card,
.stat-card,
.highlight-card,
.news-card,
.ad-card,
.plan-card,
.empty-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1.2rem;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
}

.hero-copy {
    padding: 1rem;
}

.hero-copy h1,
.section-heading h1,
.article-shell h1 {
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(2.1rem, 5vw, 4.3rem);
    line-height: 0.95;
    margin: 0 0 1rem;
}

.hero-copy p:last-of-type,
.section-heading p:last-of-type,
.plan-card p,
.highlight-card p,
.news-card p,
.empty-card p {
    color: var(--ink-soft);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.hero-stats,
.stats-grid {
    display: grid;
    gap: 1rem;
}

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

.hero-stats article,
.stat-card {
    padding: 1.2rem;
}

.hero-stats strong,
.stat-card strong {
    display: block;
    font-size: 2.2rem;
    font-family: Georgia, "Palatino Linotype", serif;
    margin-bottom: 0.35rem;
}

.highlight-grid,
.plans-grid,
.circuit-grid,
.news-grid,
.dashboard-grid {
    display: grid;
    gap: 1rem;
}

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

.plans-grid,
.plans-grid-wide,
.circuit-grid,
.news-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
}

.plans-grid > *,
.plans-grid-wide > *,
.circuit-grid > *,
.news-grid > * {
    min-height: 100%;
}

.plans-grid > *,
.plans-grid-wide > * {
    grid-column: span 6;
}

.plans-grid > :only-child,
.plans-grid-wide > :only-child,
.circuit-grid > :only-child {
    grid-column: 1 / -1;
}

.circuit-grid > * {
    grid-column: span 6;
}

.news-grid > * {
    grid-column: span 4;
}

.highlight-card,
.circuit-card,
.plan-card,
.news-card,
.ad-card,
.empty-card {
    padding: 1.2rem;
}

.section-block {
    position: relative;
    overflow: hidden;
    padding: clamp(1.45rem, 3vw, 2.2rem);
    border-radius: 36px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(247, 240, 230, 0.86));
    box-shadow: var(--shadow-soft);
}

.section-block::before {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 172, 69, 0.12), transparent 74%);
}

.section-block-news::before {
    top: -100px;
    right: -60px;
    bottom: auto;
    background: radial-gradient(circle, rgba(134, 169, 111, 0.14), transparent 74%);
}

.section-block > * {
    position: relative;
    z-index: 1;
}

.circuit-card {
    display: grid;
    gap: 0.95rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 234, 0.92));
    border: 1px solid rgba(25, 53, 47, 0.1);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.circuit-card:nth-child(odd) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 243, 226, 0.9));
}

.circuit-card::before {
    content: "";
    width: 4.2rem;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--leaf), var(--sun));
}

.circuit-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.circuit-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.circuit-card-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.circuit-logo-frame {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    padding: 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(25, 53, 47, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.circuit-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.circuit-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(25, 53, 47, 0.06);
    color: var(--ink-soft);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.circuit-card h3 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    line-height: 1.08;
}

.circuit-location {
    margin: -0.15rem 0 0;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.circuit-description {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.circuit-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.circuit-website-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    background: rgba(25, 53, 47, 0.06);
    border: 1px solid rgba(25, 53, 47, 0.1);
    font-weight: 700;
    line-height: 1.3;
}

.circuit-website-link span {
    font-weight: 500;
    color: var(--ink-soft);
    word-break: break-word;
}

.circuit-rating-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.72rem 0.95rem;
    border-radius: 18px;
    background: rgba(234, 243, 226, 0.8);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.circuit-rating-link span {
    font-weight: 500;
    color: var(--ink-soft);
}

.circuit-contact {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(25, 53, 47, 0.1);
}

.circuit-contact-item {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.circuit-contact span {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.circuit-contact strong {
    font-size: 1rem;
    word-break: break-word;
}

.circuit-contact a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    word-break: break-word;
}

.circuit-contact a:hover {
    text-decoration: underline;
}

.circuit-group-head {
    margin: 0 0 1rem;
}

.circuit-group-anchor {
    scroll-margin-top: calc(var(--header-offset) + 1.25rem);
}

.circuit-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: -0.2rem 0 1.45rem;
}

.circuit-mobile-nav-shell {
    position: relative;
}

.circuit-mobile-only-nav {
    display: none;
}

.circuit-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(25, 53, 47, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(25, 53, 47, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.circuit-category-button:hover {
    transform: translateY(-1px);
    border-color: rgba(25, 53, 47, 0.28);
    background: rgba(234, 243, 226, 0.9);
}

.circuit-subgroup-head {
    margin: 1.1rem 0 0.85rem;
    scroll-margin-top: calc(var(--header-offset) + 1.25rem);
}

.circuit-subgroup-head h3 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    color: var(--ink);
}

.circuit-divider {
    width: 100%;
    height: 1px;
    margin: 1.8rem 0 1.35rem;
    background: linear-gradient(90deg, transparent, rgba(25, 53, 47, 0.18), transparent);
}

.circuit-test-section {
    overflow: visible;
}

.circuit-test-shell {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 1.3rem;
}

.circuit-test-sidebar {
    position: sticky;
    top: calc(var(--header-offset) - 1.2rem);
}

.circuit-test-sidebar-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 26px;
    border: 1px solid rgba(25, 53, 47, 0.1);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
}

.circuit-test-sidebar-nav {
    display: grid;
    gap: 0.55rem;
}

.circuit-test-category-button {
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 0.72rem 0.9rem;
    border-radius: 18px;
    box-shadow: none;
}

.circuit-test-content {
    min-width: 0;
}

.circuit-test-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.circuit-test-card {
    position: relative;
    display: grid;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid rgba(25, 53, 47, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 239, 229, 0.92));
    box-shadow: 0 10px 24px rgba(25, 53, 47, 0.08);
}

.circuit-test-card:nth-child(odd) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 243, 228, 0.9));
}

.circuit-test-card-head {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
}

.circuit-test-card-brand {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.circuit-test-logo-frame {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    display: grid;
    place-items: center;
    padding: 0.65rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(25, 53, 47, 0.1);
}

.circuit-test-card-summary {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.circuit-test-card.has-benefits-badge .circuit-test-card-summary,
.circuit-test-card.has-benefits-badge .circuit-card-badges {
    padding-right: 5.2rem;
}

.circuit-test-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.circuit-test-card h3 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.18rem, 1.65vw, 1.48rem);
    line-height: 1.08;
}

.circuit-test-location {
    margin: 0.16rem 0 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.35;
    font-weight: 700;
}

.circuit-test-description {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.55;
}

.circuit-test-benefits-details {
    display: grid;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(134, 169, 111, 0.18);
    background: rgba(141, 174, 79, 0.08);
}

.benefits-level-list {
    display: grid;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(25, 53, 47, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.benefits-level-item,
.benefits-general-terms {
    display: grid;
    gap: 0.28rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(25, 53, 47, 0.08);
}

.benefits-level-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    padding: 0.5rem 0.8rem;
    border: 0;
    border-top: 1px solid rgba(25, 53, 47, 0.08);
    border-radius: 0;
}

.benefits-level-item:first-child {
    border-top: 0;
}

.benefits-level-item strong {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    white-space: nowrap;
}

.benefits-level-item div {
    min-width: 0;
    line-height: 1.4;
}

.benefits-level-inline-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}

.circuit-test-meta {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.circuit-test-meta-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.42rem 0.68rem;
    border-radius: 14px;
    border: 1px solid rgba(25, 53, 47, 0.08);
    background: rgba(25, 53, 47, 0.04);
    color: inherit;
    text-decoration: none;
}

.circuit-test-meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}

.circuit-test-meta-value {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.circuit-test-meta-value:hover,
a.circuit-test-meta-item:hover .circuit-test-meta-value {
    text-decoration: underline;
}

.circuit-test-subgroup-head {
    margin-top: 1.35rem;
}

.benefits-program-badge {
    display: block;
    object-fit: contain;
}

.benefits-program-badge-circuit {
    position: absolute;
    top: -0.9rem;
    right: -0.85rem;
    width: 112px;
    height: 112px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 10px 22px rgba(25, 53, 47, 0.18));
}

.circuit-plus-options-details {
    display: grid;
    gap: 0.38rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(25, 53, 47, 0.08);
}

.circuit-plus-options-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.circuit-plus-options-details p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.58;
}

.plan-card ul,
.feature-list {
    margin: 1rem 0 0;
    padding-left: 1.15rem;
    line-height: 1.7;
}

.news-cover,
.article-cover,
.preview-image,
.request-image {
    border-radius: 24px;
    object-fit: cover;
}

.news-cover {
    width: 100%;
    height: 220px;
    margin: 0;
}

.news-video-frame,
.article-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
}

.news-video-frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.article-video-frame {
    aspect-ratio: 16 / 9;
    margin: 1rem 0 1.2rem;
}

.news-video-frame iframe,
.article-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.news-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-meta span,
.article-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(25, 53, 47, 0.06);
}

.news-feed {
    display: grid;
    gap: 1rem;
}

.news-row,
.ad-card {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: stretch;
    min-height: 280px;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.news-row:not(.news-row-with-image) {
    grid-template-columns: 1fr;
}

.news-row-media {
    display: block;
    min-height: 100%;
}

.news-row-video {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    background: #000;
}

.news-row-video .news-video-frame {
    width: 100%;
    margin-block: auto;
    border-radius: 0;
}

.news-row-media .news-cover {
    height: 100%;
    min-height: 100%;
    border-radius: 0;
}

.news-row-body {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.3rem 1.4rem;
}

.news-row-body h3 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.08;
}

.news-row-footer {
    margin-top: auto;
}

.news-row .read-link {
    margin-top: 0;
}

.news-section-footer,
.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.read-link {
    margin-top: 1rem;
    padding-inline: 0;
    justify-content: flex-start;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.read-link::after {
    content: " ->";
}

.ad-card {
    background: linear-gradient(135deg, #173f35, #2a5b4c);
    color: white;
}

.ad-card-media {
    position: relative;
    min-height: 100%;
    background: rgba(255, 255, 255, 0.12);
}

.benefits-program-badge-ad {
    position: absolute;
    top: -0.3rem;
    right: -0.55rem;
    width: 84px;
    height: 84px;
    z-index: 2;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.ad-card .benefits-program-badge-ad {
    width: 84px;
    height: 84px;
    min-height: 0;
    max-width: none;
    border-radius: 0;
}

.ad-card img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}

.ad-card-tag {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(23, 63, 53, 0.82);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ad-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.4rem 1.5rem;
}

.ad-card h3 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.08;
}

.ad-card p:last-of-type {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.section-heading,
.panel-heading,
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-heading {
    margin: 0 0 1.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(25, 53, 47, 0.1);
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 15ch;
}

.cta-band,
.login-card,
.article-shell {
    padding: 1.4rem;
    margin-bottom: 1.2rem;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 1.4rem;
}

.stack-form,
.stack-list {
    display: grid;
    gap: 1rem;
}

.article-shell {
    width: min(860px, 100%);
    margin-inline: auto;
    padding: clamp(1.8rem, 4vw, 3rem);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(246, 241, 232, 0.88));
}

.interest-links-grid {
    display: grid;
    gap: 1.2rem;
}

.interest-link-card {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(25, 53, 47, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 232, 0.9));
    box-shadow: var(--shadow-soft);
}

.interest-link-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    background: linear-gradient(135deg, rgba(228, 236, 214, 0.72), rgba(244, 232, 209, 0.8));
}

.interest-link-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interest-link-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.interest-link-body {
    display: grid;
    align-content: center;
    gap: 0.9rem;
    padding: 1.6rem 1.7rem;
}

.interest-link-body h3 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.55rem, 2.3vw, 2.25rem);
    line-height: 1.02;
}

.interest-link-body h3 a,
.interest-link-body p a {
    color: inherit;
}

.interest-link-body p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: 1.02rem;
}

.article-cover {
    width: 100%;
    height: 420px;
    margin: 1rem 0 1.2rem;
}

.article-cover-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 1rem 0 1.2rem;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.article-cover-trigger .article-cover {
    margin: 0;
}

.lightbox-overlay[hidden] {
    display: none;
}

.has-lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 16, 14, 0.82);
}

.lightbox-figure {
    position: relative;
    z-index: 1201;
    width: min(1120px, 100%);
    margin: 0;
}

.lightbox-image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 3rem);
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.lightbox-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 1202;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 16, 14, 0.78);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.article-excerpt {
    font-size: 1.12rem;
    color: var(--ink-soft);
    line-height: 1.8;
}

.article-body {
    line-height: 1.85;
    white-space: normal;
}

.article-body a,
.article-excerpt a,
.news-excerpt a {
    color: var(--berry);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    word-break: break-word;
}

.article-body a:hover,
.article-excerpt a:hover,
.news-excerpt a:hover {
    color: #8f3143;
}

.subscribe-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 1.4rem;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border-radius: 32px;
    border: 1px solid rgba(25, 53, 47, 0.1);
    background: linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(234, 243, 226, 0.92));
    box-shadow: var(--shadow-soft);
}

.subscribe-panel h3 {
    margin: 0 0 0.8rem;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.02;
}

.subscribe-panel p:last-of-type {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.72;
}

.subscribe-panel-article {
    width: min(860px, 100%);
    margin: 0 auto;
}

.subscribe-form {
    display: grid;
    gap: 0.85rem;
}

.subscribe-input {
    display: block;
}

.subscribe-input input {
    min-height: 56px;
    background: rgba(255, 255, 255, 0.92);
}

.plan-card,
.news-card,
.empty-card {
    background: var(--panel-strong);
    box-shadow: var(--shadow-soft);
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.35rem 1.35rem 1.45rem;
}

.news-card h3 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    line-height: 1.08;
}

.news-card-featured {
    grid-column: span 12;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.news-card-featured:not(.news-card-with-image) {
    grid-template-columns: 1fr;
}

.news-card-featured .news-cover {
    height: 100%;
    min-height: 100%;
}

.news-card-featured .news-card-body {
    justify-content: center;
    padding: clamp(1.7rem, 3vw, 2.2rem);
}

.news-excerpt,
.plan-summary {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.72;
}

.plan-card {
    display: grid;
    gap: 1.2rem;
    padding: 1.6rem;
}

.plan-card-top {
    display: grid;
    gap: 0.55rem;
}

.plan-card h2 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(2.35rem, 4vw, 3.3rem);
    line-height: 0.95;
}

.plan-price-cycle {
    font-size: 0.42em;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink-soft);
    white-space: nowrap;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

.feature-list li::before {
    content: "";
    position: absolute;
    top: 0.58rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--leaf), var(--sun));
}

.empty-card {
    grid-column: 1 / -1;
    padding: 1.5rem;
}

.site-footer {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(23, 63, 53, 0.92);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(18px);
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(139, 177, 116, 0.24), transparent 28%),
        radial-gradient(circle at bottom right, rgba(244, 185, 66, 0.18), transparent 26%),
        linear-gradient(180deg, #f6f1e9, #ece4d6);
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
}

.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.auth-card-copy {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.auth-card-copy h1 {
    margin: 0;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 0.95;
}

.auth-card-copy p:last-of-type,
.auth-note {
    color: var(--ink-soft);
    line-height: 1.6;
}

.auth-card-form {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.social-icon svg {
    width: 1.02rem;
    height: 1.02rem;
    display: block;
    fill: currentColor;
}

.social-icon-facebook {
    color: #1877f2;
}

.social-icon-instagram {
    color: #f77737;
}

.social-icon-tiktok {
    color: #25f4ee;
}

.install-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.install-card {
    width: min(1020px, 100%);
    padding: 1.5rem;
}

.form-grid,
.form-grid-2 {
    display: grid;
    gap: 1rem;
}

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

.form-section {
    display: grid;
    gap: 0.9rem;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 24px;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.field-note,
.media-status {
    margin: -0.2rem 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.color-picker-field {
    display: grid;
    grid-template-columns: 150px 1fr 56px;
    gap: 0.8rem;
    align-items: end;
}

.color-picker-field input[type="color"] {
    min-height: 52px;
    padding: 0.35rem;
}

.color-preview-chip {
    width: 56px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
}

.inline-check input {
    width: auto;
}

.dashboard-body {
    background:
        radial-gradient(circle at top right, rgba(139, 177, 116, 0.18), transparent 24%),
        linear-gradient(180deg, #f7f2ea, #ede7dc);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 310px 1fr;
    min-height: 100vh;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.4rem;
    padding: 1.4rem;
    background: linear-gradient(180deg, #173f35, #21493d);
    color: white;
}

.dashboard-sidebar h1 {
    margin: 0;
    font-size: 2rem;
    font-family: Georgia, "Palatino Linotype", serif;
}

.sidebar-user,
.sidebar-plan {
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-nav {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.dashboard-nav a {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-nav .is-active,
.dashboard-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.dashboard-main {
    padding: 1.5rem;
}

.dashboard-topbar {
    margin-bottom: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.panel-card {
    padding: 1.2rem;
}

.panel-card-compact {
    padding-top: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.line-item,
.quick-links {
    display: grid;
    gap: 0.9rem;
}

.line-item {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}

.line-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.quick-links a {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(139, 177, 116, 0.12);
}

.table-shell {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 1rem 0.7rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--ink-soft);
    font-weight: 700;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.preview-image,
.request-image {
    width: 100%;
    max-height: 250px;
    margin-top: 0.75rem;
}

.preview-image-logo,
.table-thumb {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
}

.preview-image-logo {
    width: min(180px, 100%);
    aspect-ratio: 1;
    padding: 1rem;
    object-fit: contain;
}

.table-thumb {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    font-weight: 700;
    color: var(--ink-soft);
}

.table-thumb img,
.table-thumb-square {
    width: 56px;
    height: 56px;
}

.table-thumb-square {
    object-fit: contain;
    padding: 0.4rem;
}

.table-thumb-placeholder {
    background: rgba(134, 169, 111, 0.12);
}

@media (max-width: 1080px) {
    .hero-panel,
    .login-card,
    .auth-shell,
    .dashboard-grid,
    .highlight-grid,
    .plans-grid,
    .circuit-grid,
    .plans-grid-wide,
    .news-grid,
    .form-grid-2,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        height: auto;
    }

    .plans-grid,
    .plans-grid-wide,
    .circuit-grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plans-grid > *,
    .plans-grid-wide > *,
    .circuit-grid > *,
    .news-grid > * {
        grid-column: auto;
    }

    .news-row,
    .ad-card,
    .news-card-featured,
    .interest-link-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .circuit-test-shell,
    .circuit-test-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        position: relative;
        gap: 0.18rem;
        padding: 0.3rem 0.6rem;
    }

    .topbar-toggle,
    .circuit-mobile-nav-toggle {
        display: inline-flex;
        min-height: 34px;
        padding: 0.4rem 0.82rem;
        justify-content: center;
        text-align: center;
    }

    .topbar-toggle::after,
    .circuit-mobile-nav-toggle::after {
        content: "+";
        margin-left: 0.45rem;
        font-size: 1rem;
        line-height: 1;
    }

    .topbar.is-open .topbar-toggle::after,
    .circuit-mobile-nav-shell.is-open .circuit-mobile-nav-toggle::after {
        content: "-";
    }

    .topbar-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        margin-left: 0;
    }

    .topbar.is-open .topbar-nav {
        display: flex;
    }

    .topbar-toggle {
        margin-left: auto;
    }

    .topbar-nav a {
        width: 100%;
        text-align: left;
    }

    .user-level-badge {
        gap: 0.35rem;
        padding: 0.3rem 0.58rem 0.3rem 0.34rem;
        max-width: calc(100% - 4.6rem);
    }

    .user-level-number {
        min-width: 1.55rem;
        height: 1.55rem;
        font-size: 0.86rem;
    }

    .user-level-icon {
        width: 26px;
        height: 26px;
    }

    .user-level-first-name {
        max-width: 7ch;
        font-size: 0.92rem;
    }

    .circuit-mobile-only-nav {
        display: block;
    }

    .circuit-desktop-only-sidebar {
        display: none;
    }

    .circuit-mobile-fixed-nav {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: min(1240px, calc(100% - 1rem));
        top: var(--header-height, var(--header-offset));
    }

    .circuit-mobile-nav-shell {
        z-index: 20;
        margin-bottom: 0;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        overflow: visible;
    }

    .circuit-mobile-nav-shell.is-open {
        border-radius: 18px;
        border: 1px solid rgba(25, 53, 47, 0.1);
        background: rgba(247, 242, 234, 0.97);
        box-shadow: 0 10px 26px rgba(25, 53, 47, 0.08);
        backdrop-filter: blur(14px);
        overflow: hidden;
    }

    .circuit-test-sidebar {
        position: static;
        top: auto;
        z-index: auto;
    }

    .circuit-category-nav,
    .circuit-test-sidebar-nav {
        display: none;
        margin: 0.2rem 0 0;
        flex-direction: column;
        gap: 0.45rem;
        overflow: visible;
        flex-wrap: nowrap;
        padding: 0 0.45rem 0.45rem;
        scrollbar-width: auto;
    }

    .circuit-mobile-nav-shell.is-open .circuit-category-nav,
    .circuit-mobile-nav-shell.is-open .circuit-test-sidebar-nav {
        display: flex;
    }

    .circuit-test-sidebar-nav {
        gap: 0.45rem;
    }

    .circuit-test-sidebar-card {
        gap: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .circuit-category-button,
    .circuit-test-category-button {
        flex: 0 0 auto;
        width: 100%;
        min-height: 34px;
        padding: 0.48rem 0.82rem;
        font-size: 0.84rem;
        justify-content: flex-start;
        box-shadow: none;
    }

    .circuit-mobile-fixed-nav + .circuit-mobile-content-offset {
        margin-top: 2rem;
    }

    .circuit-mobile-nav-toggle {
        width: 100%;
        min-height: 34px;
        padding: 0.44rem 0.9rem;
        border: 1px solid rgba(25, 53, 47, 0.1);
        border-radius: 999px;
        background: rgba(247, 242, 234, 0.96);
        justify-content: center;
        text-align: center;
        box-shadow: 0 8px 18px rgba(25, 53, 47, 0.08);
    }
}

@media (max-width: 760px) {
    .brand-strip,
    .topbar,
    .hero-panel,
    .highlight-grid,
    .plans-grid,
    .circuit-grid,
    .plans-grid-wide,
    .dashboard-grid,
    .stats-grid,
    .login-card,
    .cta-band,
    .form-grid-2,
    .ad-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topbar,
    .cta-band,
    .section-heading,
    .panel-heading,
    .dashboard-topbar,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-shell {
        width: min(100% - 1rem, 100%);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .color-picker-field {
        grid-template-columns: 1fr;
    }

    .site-footer {
        position: static;
        margin-top: 1rem;
    }

    :root {
        --header-media-height: 96px;
        --footer-offset: 2rem;
    }

    .brand-strip {
        padding: 0 0 0.25rem;
        gap: 0.45rem;
    }

    .brand-slot-logo {
        padding: 0.55rem 0.8rem;
    }

    .section-block,
    .intro-panel,
    .article-shell,
    .subscribe-panel {
        border-radius: 28px;
    }

    .circuit-test-section {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .section-heading h1,
    .section-heading h2 {
        max-width: none;
    }

    .article-cover {
        height: 260px;
    }

    .news-video-frame {
        min-height: 0;
    }

    .circuit-card-head,
    .circuit-card-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .circuit-card-badges {
        justify-content: flex-start;
    }

    .subscribe-panel {
        grid-template-columns: 1fr;
    }

    .news-row-body,
    .ad-card-body {
        padding: 1.15rem;
    }

    .circuit-test-grid {
        gap: 0.75rem;
    }

    .circuit-test-card {
        gap: 0.62rem;
        padding: 0.9rem;
        border-radius: 20px;
    }

    .circuit-test-card-head {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .circuit-test-logo-frame {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        padding: 0.5rem;
        border-radius: 14px;
    }

    .circuit-test-title-row {
        flex-direction: column;
        gap: 0.38rem;
    }

    .circuit-test-card.has-benefits-badge .circuit-test-card-summary,
    .circuit-test-card.has-benefits-badge .circuit-card-badges {
        padding-right: 4.25rem;
    }

    .circuit-card-badges {
        justify-content: flex-start;
    }

    .circuit-test-card h3 {
        font-size: 1.05rem;
    }

    .circuit-test-location,
    .circuit-test-description,
    .circuit-test-meta-value {
        font-size: 0.88rem;
    }

    .circuit-test-meta {
        gap: 0.3rem;
    }

    .circuit-test-meta-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.36rem 0.56rem;
    }

.circuit-test-meta-label {
        font-size: 0.68rem;
    }

    .benefits-program-badge-circuit {
        top: -0.7rem;
        right: -0.55rem;
        width: 84px;
        height: 84px;
    }

    .benefits-program-badge-ad {
        top: -0.2rem;
        right: -0.35rem;
        width: 68px;
        height: 68px;
    }
}

.benefits-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.benefits-shell-wide {
    max-width: 1240px;
}

.benefits-shell-scroll {
    min-height: calc(100vh + 5rem);
}

.benefits-card {
    max-width: 780px;
    margin: 0 auto;
}

.benefits-register-card {
    max-width: 1080px;
}

.benefits-public-grid {
    align-items: start;
}

.benefits-code-entry-card {
    max-width: none;
}

.benefits-code-entry-form {
    margin-bottom: 1.15rem;
}

.benefits-code-entry-heading h2,
.benefits-code-entry-heading h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
}

.benefits-code-entry-recent {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.benefits-config-editor {
    display: grid;
    gap: 0.8rem;
}

.benefits-config-editor h3 {
    margin: 0;
}

.benefits-merchant-operation-grid {
    display: grid;
    gap: 1rem;
}

.benefits-merchant-column {
    min-width: 0;
}

.benefits-merchant-offer-card {
    display: grid;
    gap: 0.8rem;
}

.benefits-merchant-offer-block,
.benefits-merchant-terms-block {
    display: grid;
    gap: 0.32rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(25, 53, 47, 0.08);
    background: rgba(25, 53, 47, 0.04);
}

.benefits-merchant-offer-block p,
.benefits-merchant-terms-block p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.benefits-scan-user-card {
    margin-bottom: 0;
}

.benefits-scan-user-row-stack {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.benefits-level-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.benefits-merchant-recent-card {
    margin-top: 1rem;
}

.benefits-merchant-recent-card .line-item {
    padding: 0.45rem 0;
    gap: 0.55rem;
}

.benefits-merchant-recent-card .line-item p {
    margin: 0.08rem 0 0;
    font-size: 0.88rem;
}

.benefits-merchant-recent-card .line-item strong,
.benefits-merchant-recent-card .line-item span {
    font-size: 0.93rem;
}

.benefits-inline-actions {
    justify-content: flex-start;
}

.benefits-merchant-column form + form {
    margin-top: 0.85rem;
}

@media (min-width: 980px) {
    .benefits-register-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .benefits-profile-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
        gap: 1.25rem;
    }

    .benefits-profile-main .form-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
    }

    .benefits-profile-main .form-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .benefits-merchant-operation-grid {
        grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.25fr) minmax(280px, 1fr);
        align-items: start;
    }
}

.benefits-span-2 {
    grid-column: 1 / -1;
}

.benefits-level-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(141, 174, 79, 0.16);
    color: #19352f;
    font-weight: 700;
}

.benefits-qr-card {
    text-align: center;
}

.benefits-qr-image {
    width: min(100%, 320px);
    height: auto;
    margin: 1.25rem auto;
    display: block;
    border-radius: 24px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(25, 53, 47, 0.08);
}

.benefits-qr-image-inline {
    width: min(100%, 180px);
    margin: 0 auto 1rem;
    padding: 0.75rem;
}

.benefits-profile-code-block {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(25, 53, 47, 0.1);
}

.benefits-profile-level-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.benefits-profile-level-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 auto;
}

.benefits-manual-code-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    background: rgba(25, 53, 47, 0.08);
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.benefits-info {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(25, 53, 47, 0.1);
    padding-top: 1rem;
}

.benefits-info-standalone {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.benefits-info summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}

.benefits-info-body {
    margin-top: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.75;
}

.benefits-break-all {
    word-break: break-all;
}

.benefits-primary-actions {
    justify-content: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.benefits-scan-user {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.benefits-scan-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.benefits-scan-user-doc {
    justify-content: flex-start;
}

.benefits-scan-user-doc span {
    color: #5a7269;
}

.benefits-merchant-links {
    margin-top: 1.25rem;
}

.benefits-benefit-note {
    margin-top: 0.8rem;
}

@media (max-width: 979px) {
    .benefits-level-icon {
        width: 56px;
        height: 56px;
    }

    .benefits-merchant-operation-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.stats-filter-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.stats-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.stats-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.stats-content-card {
    min-width: 0;
}

.stats-content-card .table-shell {
    overflow-x: visible;
}

.stats-content-card table {
    table-layout: fixed;
}

.stats-content-card th,
.stats-content-card td {
    word-break: break-word;
}

@media (max-width: 1080px) {
    .stats-filter-form,
    .stats-filter-fields {
        grid-template-columns: 1fr;
    }
}
