:root {
    --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
    --font-ui: "Inter", "Segoe UI", Arial, sans-serif;
    --font-code: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* Shared UI glyphs; brand marks, charts and status colours are not overridden. */
html body svg.ui-icon:not([data-icon="minecraft"], [data-icon="windows"], [data-icon="linux"], [data-icon="paypal"]) {
    fill: none !important;
    stroke: currentColor;
    stroke-width: 1.8 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
}
html body svg.ui-icon:not([data-icon="minecraft"], [data-icon="windows"], [data-icon="linux"], [data-icon="paypal"]) > * { vector-effect: non-scaling-stroke; }
html body :is(.vps-button, .vps-copy, .crm-button, .billing-button, .vps-tabs a, .vps-tabs button) > .ui-icon {
    width: 18px;
    height: 18px;
}
html body :is(.vps-panel-heading, .vps-section-heading, .ddos-insight-card > header) :is(h2, h3) .ui-icon {
    width: 20px;
    height: 20px;
}
html body :is(.affiliate-nav-icon, .admin-sidebar nav a > i) > .ui-icon {
    width: 20px;
    height: 20px;
}

/* Section headings stay readable in content columns, independently of hero sizing. */
[data-public-content] :is(.section-title, .network-copy, .support-intro,
    .related-head, .faq-intro, .fivem-benefits-head, .fivem-pricing-head,
    .webfarm-overview-copy, .webfarm-network-head, .webfarm-ddos-head,
    .webfarm-protected-head, .webfarm-protected-copy, .info-section-head,
    .info-showcase-head, .info-reviews-head, .info-closing-copy, .partner-collection-head) h2,
[data-public-content] .page-two-col > div > h2,
[data-public-content] .configurator-head h2 {
    font-size: 32px !important;
    line-height: 1.22;
    max-width: 100%;
    margin-top: 8px;
    margin-bottom: 12px;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

[data-public-content] .fivem-benefits-head {
    display: block;
    max-width: 100%;
    margin-bottom: 28px;
}

[data-public-content] .fivem-benefits-head p {
    max-width: 68ch;
    margin: 0;
    line-height: 1.65;
}

[data-public-content] :is(.section-title, .fivem-benefits-head,
    .fivem-pricing-head, .info-section-head, .info-showcase-head,
    .info-reviews-head, .page-two-col > div) > .eyebrow {
    margin-bottom: 8px;
}

[data-public-content] .page-two-col {
    gap: 28px 40px;
}

/* Public content follows the navigation width; reading documents remain narrower. */
:root { --public-gutters: 40px; }
@media (max-width: 760px) { :root { --public-gutters: 28px; } }
@media (max-width: 420px) { :root { --public-gutters: 24px; } }
html[data-theme][data-theme] [data-public-content]:not(.info-page-legal) :is(.info-hero-inner, .info-methods.container, .info-document.container) {
    width: min(var(--max), calc(100% - var(--public-gutters))) !important;
    max-width: var(--max) !important;
}
html[data-theme][data-theme] [data-public-content] :is(.vps-os-head, .vps-os-list) {
    width: 100%; max-width: none; margin-inline: 0;
}
@media (min-width: 761px) {
    html[data-theme][data-theme] :is(.info-page-trading, .info-page-affiliazione, .info-page-partner) > .info-hero {
        min-height: min(590px, calc(100vh - 74px)) !important;
        padding-block: 74px !important;
    }
}

/* Shared presentation for public product features and technical details. */
.product-service-details { padding-block: 56px; }
.product-details-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 48px; }
.product-details-layout > div { min-width: 0; }
[data-public-content] .product-details-layout h2 { margin: 0 0 28px; font-size: 23px; font-weight: 650; line-height: 1.35; text-wrap: pretty; }
.product-details-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 24px 32px; }
.product-details-heading { grid-column: 1 / -1; }
[data-public-content] .product-details-heading h2 { margin-bottom: 4px; }
.product-details-heading .section-copy { margin: 12px 0 0; }
.product-details-layout.is-features-only { grid-template-columns: minmax(0, 1fr); }
.product-details-layout.is-compact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.product-details-layout.is-compact .product-details-specs { padding-left: 0; }
.product-details-layout.is-compact .product-feature-group:last-child { padding: 0; background: transparent; }
.product-details-layout.is-compact .product-details-features { grid-template-columns: minmax(0, 1fr); }
.product-details-layout.is-compact .product-feature-group:last-child .product-details-list { grid-template-columns: minmax(0, 1fr); }
.product-feature-group { min-width: 0; }
.product-feature-group:last-child { grid-column: 1 / -1; padding: 18px 20px; background: color-mix(in srgb, var(--cyan) 5%, transparent); }
.product-feature-group.is-single-summary:last-child { padding: 0; background: transparent; }
.product-feature-group.is-single-summary .product-details-list li { min-height: 44px; padding: 0; }
[data-public-content] .product-feature-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.product-details-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.product-feature-group:last-child .product-details-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.product-details-list li { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; font-size: 14px; line-height: 1.6; }
.product-details-list li > span { min-width: 0; overflow-wrap: anywhere; }
.product-details-list li:has(.feature-tag) { flex-wrap: wrap; }
.product-details-list li:has(.feature-tag) > span:not(.product-feature-icon) { flex: 1 1 140px; }
.product-details-layout .ui-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--cyan); }
.product-feature-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 6px; background: color-mix(in srgb, var(--cyan) 8%, transparent); }
.has-feature-descriptions .product-details-list { gap: 24px; }
.has-feature-descriptions .product-details-list li { align-items: flex-start; min-height: 0; padding: 0; }
.has-feature-descriptions .product-feature-icon { margin-top: 2px; }
.product-feature-copy { display: grid; gap: 6px; }
.product-feature-copy strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
.product-feature-copy small { color: var(--muted); font-size: 13px; line-height: 1.65; }
.product-details-specs { padding-left: 32px; }
.product-details-specs dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 0; }
.product-details-specs dl > div { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.product-details-specs dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-details-specs dd { margin: 0; padding-left: 30px; font-size: 15px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.product-details-specs dl > .product-spec-highlight { grid-column: auto; align-content: start; gap: 12px; padding: 4px 0 8px; }
.product-details-specs .product-spec-highlight dd { padding-left: 0; font-size: 22px; font-weight: 650; line-height: 1.35; }
.product-details-specs .product-spec-highlight.is-long-value dd { font-size: 17px; line-height: 1.5; }
.product-details-specs .product-spec-highlight dd.product-spec-note { padding-left: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.product-spec-number { white-space: nowrap; }
.product-details-specs .product-spec-unit { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.product-details-layout.is-fivem { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.product-details-layout.is-fivem .product-details-specs { padding-left: 0; }
.product-details-layout.is-fivem .product-feature-group:last-child { padding: 0; background: transparent; }
.product-details-layout.is-fivem .product-details-list li:has(.feature-tag) > span:not(.product-feature-icon) { flex: 0 1 auto; }
.product-details-layout.is-fivem .feature-tag { margin-left: 0; font-size: 10px; font-weight: 600; text-transform: none; }

/* Editorial separators only: keep control, card and comparison-table boundaries. */
html[data-theme][data-theme] [data-public-content] .related-grid {
    gap: 12px 24px; border: 0; border-radius: 0; background: transparent; overflow: visible;
}
html[data-theme][data-theme] [data-public-content] .related-card {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 16px;
    min-height: 96px; padding: 18px 12px; border: 0; border-radius: 6px;
    background: transparent; box-shadow: none !important; transform: none;
}
html[data-theme][data-theme] [data-public-content] .related-card::after { content: none; }
html[data-theme][data-theme] [data-public-content] .related-card:is(:hover, :focus-visible) {
    background: color-mix(in srgb, var(--cyan) 7%, transparent);
}
html[data-theme][data-theme] [data-public-content] .related-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
html[data-theme][data-theme] .related-card .related-card-visual { width: 40px; height: 40px; }
html[data-theme][data-theme] .related-card .related-card-copy { gap: 8px; }
html[data-theme][data-theme] .related-card .related-card-copy strong { color: var(--text); font-size: 17px; line-height: 1.3; }
html[data-theme][data-theme] .related-card .related-card-copy em { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
html[data-theme][data-theme] .related-card .related-card-arrow { display: grid; place-items: center; color: var(--cyan); }
.related-card-arrow .ui-icon { width: 18px; height: 18px; }
@media (max-width: 1000px) {
    html[data-theme][data-theme] [data-public-content] .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    html[data-theme][data-theme] [data-public-content] .related-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    html[data-theme][data-theme] [data-public-content] .related-card { min-height: 80px; padding: 12px 4px; }
}
html[data-theme][data-theme] .footer,
html[data-theme][data-theme] .footer :is(.footer-main, .footer-bottom, .footer-socials, .footer-legal) { border: 0 !important; }
html[data-theme][data-theme] .footer :is(.footer-col, .footer-contact) h4::after { content: ''; display: block; position: static; width: 36px; height: 2px; background: var(--footer-accent, #2999d6); margin-top: 10px; }
html[data-theme][data-theme] .footer { padding-block: 56px 24px; }
html[data-theme][data-theme] .footer .footer-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.8fr) minmax(0, 1fr); gap: 56px; align-items: start; }
html[data-theme][data-theme] .footer .footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
html[data-theme][data-theme] .footer .brand { gap: 16px; width: fit-content; }
html[data-theme][data-theme] .footer .brand-mark { width: 48px; height: 48px; flex: 0 0 48px; }
html[data-theme][data-theme] .footer .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
html[data-theme][data-theme] .footer .brand-text { font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; }
html[data-theme][data-theme] .footer .footer-brand-col p { max-width: 44ch; margin: 0; font-size: 14px; line-height: 1.8; }
html[data-theme][data-theme] .footer .footer-brand-col p strong { color: var(--text); }
html[data-theme][data-theme] .footer .footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 0; border: 0; }
html[data-theme][data-theme] .footer .footer-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; border: 0; padding: 0; gap: 0; }
html[data-theme][data-theme] .footer .footer-col:nth-child(2) { --footer-accent: #a67ddd; }
html[data-theme][data-theme] .footer :is(.footer-col, .footer-contact) h4 { margin: 8px 0 14px; padding: 0; color: var(--text); font-size: 16px; font-weight: 600; text-transform: none; }
html[data-theme][data-theme] .footer .footer-col a { display: flex; align-items: center; width: fit-content; min-height: 44px; font-size: 14px; font-weight: 500; line-height: 1.5; }
html[data-theme][data-theme] .footer .footer-socials { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
html[data-theme][data-theme] .footer .footer-socials a { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; border: 0 !important; border-radius: 6px; background: color-mix(in srgb, var(--muted) 10%, transparent) !important; }
html[data-theme][data-theme] .footer .footer-socials a:hover { background: color-mix(in srgb, var(--cyan) 18%, transparent) !important; }
html[data-theme][data-theme] .footer .footer-contact { --footer-accent: #25b993; min-width: 0; }
html[data-theme][data-theme] .footer .footer-contact > a { display: flex; align-items: center; gap: 12px; min-height: 56px; color: var(--text); text-decoration: none; }
html[data-theme][data-theme] .footer .footer-contact-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 6px; background: color-mix(in srgb, var(--cyan) 10%, transparent); color: var(--cyan); }
html[data-theme][data-theme] .footer .footer-contact-icon svg { width: 18px; height: 18px; }
html[data-theme][data-theme] .footer .footer-contact-icon .social-icon { fill: currentColor; }
html[data-theme][data-theme] .footer .footer-contact small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
html[data-theme][data-theme] .footer .footer-contact strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
html[data-theme][data-theme] .footer .footer-contact a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
html[data-theme][data-theme] .footer .footer-socials svg { width: 20px; height: 20px; }
html[data-theme][data-theme] .footer .footer-socials a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
html[data-theme][data-theme] .footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 0; }
html[data-theme][data-theme] .footer .footer-legal { display: flex; width: 100%; justify-content: space-between; flex-direction: row; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; gap: 12px 28px; font-size: 12px; font-weight: 400; line-height: 1.6; }
html[data-theme][data-theme] .footer .footer-legal > div { gap: 20px; text-transform: none; }
@media (max-width: 900px) {
    html[data-theme][data-theme] .footer .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    html[data-theme][data-theme] .footer .footer-brand-col { grid-column: 1 / -1; }
    html[data-theme][data-theme] .footer .footer-brand-col { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    html[data-theme][data-theme] .footer .footer-col { flex-direction: column; align-items: flex-start; gap: 0; }
    html[data-theme][data-theme] .footer .footer-col h4 { flex-basis: auto; }
}
@media (max-width: 620px) {
    html[data-theme][data-theme] .footer { padding-block: 32px 24px; }
    html[data-theme][data-theme] .footer .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    html[data-theme][data-theme] .footer .brand-text { font-size: 22px; }
    html[data-theme][data-theme] .footer .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
    html[data-theme][data-theme] .footer .footer-brand-col p { font-size: 14px; line-height: 1.75; }
    html[data-theme][data-theme] .footer .footer-columns { gap: 20px; padding-top: 0; border-top: 0; }
    html[data-theme][data-theme] .footer .footer-col { display: flex; flex-direction: column; grid-column: auto; min-width: 0; padding-left: 0; }
    html[data-theme][data-theme] .footer .footer-col a { min-height: 44px; display: flex; align-items: center; }
    html[data-theme][data-theme] .footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 28px; }
    html[data-theme][data-theme] .footer .footer-socials { gap: 4px; }
    html[data-theme][data-theme] .footer .footer-legal { align-items: flex-start; flex-direction: column; gap: 12px; }
}
html[data-theme][data-theme] .footer :is(.footer-col, .footer-socials, .footer-legal) a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
html[data-theme][data-theme] [data-public-content] .fivem-pricing-head {
    border: 0 !important;
    padding-bottom: 0;
}
html[data-theme][data-theme] [data-public-content] .fivem-pricing-head > p {
    border: 0 !important;
    padding-left: 0;
}
html[data-theme][data-theme] [data-public-content] > section { border-block: 0 !important; }
html[data-theme][data-theme] [data-public-content] :is(
    .page-section, .info-section, .network-section, .info-stats, .info-summary,
    .vps-os-list, .vps-os-item,
    .network-metrics, .network-metrics > div,
    .webfarm-feature-list, .webfarm-feature-list > span,
    .webfarm-stat-strip, .webfarm-stat-strip > div,
    .webfarm-protected-metrics, .webfarm-protected-metrics > div,
    .webfarm-protected-grid, .webfarm-protected-grid > section,
    .webfarm-protected-grid > section > header,
    .webfarm-peer-grid, .peer-group, .peer-group li,
    .fivem-benefit-grid, .fivem-benefit-grid > article,
    .fivem-protection-attacks, .fivem-legal,
    .info-benefits, .info-benefits > article,
    .info-stats > .container > div,
    .info-steps, .info-steps > article,
    .info-section-intro, .info-methods article ul
) { border: 0 !important; }
html[data-theme][data-theme] [data-public-content] .fivem-benefit-grid {
    gap: 24px; background: transparent !important; border-radius: 0;
}
html[data-theme][data-theme] [data-public-content] .fivem-benefit-grid > article {
    padding: 16px 0; background: transparent !important; box-shadow: none !important; transform: none;
}

/* Carry the icon treatment into editorial benefits, without restyling brand logos. */
[data-public-content] :is(.detail-accent-icon, .info-benefit-icon:has(> .ui-icon), .info-showcase-icon:has(> .ui-icon)) {
    display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px;
    border-radius: 6px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, transparent);
}
[data-public-content] :is(.detail-accent-icon, .info-benefit-icon, .info-showcase-icon) > .ui-icon { width: 20px; height: 20px; color: var(--cyan); }
[data-public-content] .fivem-benefit-grid article header { grid-template-columns: 34px minmax(0, 1fr); }
[data-public-content] .fivem-benefit-grid article p { margin-left: 46px; }
[data-public-content] .info-benefits article:has(.info-benefit-icon > .ui-icon) h3 { margin-top: 18px; }
[data-public-content] .check-grid .check { border-radius: 6px; font-weight: 600; }
[data-public-content] .check-grid .check::before { content: none; }
[data-public-content] .check-grid .check > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    .product-details-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .product-details-layout:is(.is-fivem, .is-compact) { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .product-details-specs { padding-left: 0; border-left: 0; }
}
@media (max-width: 620px) {
    .product-details-layout.is-fivem .product-details-list li:has(.feature-tag) { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px 12px; }
    .product-details-layout.is-fivem .feature-tag { grid-column: 2; justify-self: start; }
    .product-service-details { padding-block: 32px; }
    .product-details-features { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .product-feature-group:last-child .product-details-list { grid-template-columns: minmax(0, 1fr); }
    .product-details-list li { min-height: 54px; }
    .product-feature-group:last-child { padding: 16px 12px; }
    .product-details-specs dl > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .product-details-specs dd { text-align: left; padding-left: 30px; }
    [data-public-content] .product-details-layout h2 { font-size: 21px; margin-bottom: 24px; }
}
@media (max-width: 760px) {
    .navbar .brand { gap: 8px; }
    .navbar .brand-mark { width: 28px; height: 28px; flex: 0 0 28px; }
    .navbar .brand-mark img { width: 100%; height: 100%; }
    .navbar .brand-text { font-size: 14px; font-weight: 700; text-transform: none; white-space: nowrap; }
    .navbar .locale-switch a { height: 44px; }
    .navbar .theme-toggle { min-height: 44px; }
    html[data-theme][data-theme] .info-page-pagamenti > .info-hero {
        height: auto !important;
        min-height: 340px !important;
    }
    html[data-theme][data-theme] .info-page-pagamenti > .info-hero h1 {
        font-size: 40px !important;
        line-height: 1.1 !important;
    }
    [data-public-content] .product-details-heading { text-align: center; }
    [data-public-content] .product-details-layout.is-fivem .product-feature-group h3 { justify-content: center; }
    [data-public-content] .product-details-layout.is-fivem .product-details-list li {
        display: grid;
        grid-template-columns: 34px minmax(0, max-content);
        justify-content: center;
        gap: 8px 12px;
        text-align: center;
    }
    [data-public-content] .product-details-layout.is-fivem .feature-tag {
        grid-column: 1 / -1;
        justify-self: center;
    }
    [data-public-content] .product-details-layout.is-fivem .product-details-specs { text-align: center; }
    [data-public-content] .product-details-layout.is-fivem .product-details-specs dt { justify-content: center; }
    [data-public-content] .product-details-layout.is-fivem .product-details-specs dd { padding-left: 0; text-align: center; }
    [data-public-content] .fivem-benefits-section { padding-block: 48px; }
    [data-public-content] .fivem-benefits-head { text-align: center; }
    [data-public-content] .fivem-benefits-head > .eyebrow { justify-content: center; }
    [data-public-content] .fivem-benefits-head p { margin-inline: auto; }
    html[data-theme][data-theme] [data-public-content] .fivem-benefit-grid { gap: 20px; }
    html[data-theme][data-theme] [data-public-content] .fivem-benefit-grid > article { padding-block: 12px; }
    [data-public-content] .fivem-benefit-grid article header {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 12px;
        text-align: center;
    }
    [data-public-content] .fivem-benefit-grid article p {
        max-width: 34ch;
        margin: 12px auto 0;
        font-size: 13px;
        line-height: 1.65;
        text-align: center;
    }
}
@media (max-width: 360px) {
    .navbar .brand-mark { width: 24px; height: 24px; flex-basis: 24px; }
    .navbar .brand-text { font-size: 12px; }
}

@media (max-width: 1100px) {
    [data-public-content] .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    [data-public-content] .faq-intro {
        position: static;
    }
}

@media (max-width: 760px) {
    /* Avoid focus zoom on touch devices, including fields inside dialogs. */
    html[data-theme] .affiliate-dashboard :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea) {
        min-width: 0;
        max-width: 100%;
        font-size: 16px !important;
    }

    [data-public-content] :is(.section-title, .network-copy, .support-intro,
        .related-head, .faq-intro, .fivem-benefits-head, .fivem-pricing-head,
        .webfarm-overview-copy, .webfarm-network-head, .webfarm-ddos-head,
        .webfarm-protected-head, .webfarm-protected-copy, .info-section-head,
        .info-showcase-head, .info-reviews-head, .info-closing-copy, .partner-collection-head) h2,
    [data-public-content] .page-two-col > div > h2,
    [data-public-content] .configurator-head h2 {
        font-size: 26px !important;
        line-height: 1.25;
    }
}

html {
    font-family: var(--font-ui);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
body *:not(code):not(kbd):not(pre):not(samp) {
    font-family: var(--font-ui) !important;
    letter-spacing: 0 !important;
}

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

/* Keep both dropdowns on the UI font, regardless of their heading markup. */
.navbar #primaryNav,
.navbar #primaryNav * {
    font-family: var(--font-ui) !important;
}

.navbar :is(.services-mega-panel h3, .nav-more-head > strong) {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    text-wrap: balance;
}

.navbar :is(.services-mega-panel header p, .nav-more-head > small) {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
}

@media (max-width: 760px) {
    .navbar :is(.services-mega-panel h3, .nav-more-head > strong) {
        font-size: 18px;
    }
}

code,
kbd,
pre,
samp,
.affiliate-referral-control strong,
.affiliate-secret code,
.affiliate-recovery-codes code,
td code,
.order-risk-origin {
    font-family: var(--font-code) !important;
    font-family: var(--font-display) !important;
    font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text,
.admin-brand strong,
.affiliate-sidebar-brand strong {
    font-weight: 750;
    text-wrap: balance;
}

body,
input,
select,
textarea,
button {
    font-size: 14px;
}

/* Admin: compatto, ma leggibile anche nelle tabelle dense. */
.admin-shell {
    font-size: 14px;
    line-height: 1.45;
}

.admin-brand small,
.admin-nav-label,
.admin-sidebar-status small,
.admin-session small,
.admin-eyebrow,
.admin-stats span,
.admin-panel > header span,
.admin-form-grid label > span,
.coupon-rules-grid label > span,
.product-selector legend,
.target-selector > legend,
.activation-filters label > span,
.affiliate-form-grid label > span,
.affiliate-form-wide label > span,
.affiliate-renewal-form label > span,
.affiliate-admin-table th,
.activation-table th,
.coupon-list th {
    font-size: 11px !important;
    line-height: 1.35;
}

.admin-nav a,
.admin-breadcrumb,
.admin-session strong,
.admin-intro p,
.admin-panel > header > strong,
.admin-panel > header a,
.admin-form-grid input,
.admin-form-grid select,
.coupon-rules-grid input,
.coupon-rules-grid select,
.activation-filters input,
.activation-filters select,
.affiliate-admin-table td,
.activation-table td,
.coupon-list td {
    font-size: 13px !important;
}

.admin-form-grid small,
.coupon-rules-grid small,
.product-selector p,
.target-selector > p,
td small,
.affiliate-admin-stats article > small,
.affiliate-finance-strip small,
.affiliate-payout-admin-list small {
    font-size: 11px !important;
    line-height: 1.5;
}

.status-pill,
.activation-status,
.conversion-state,
.affiliate-status,
.activation-tags span,
.affiliate-payout-admin-list article > i {
    font-size: 10px !important;
}

/* Affiliati: elimina i microtesti e rende coerenti dashboard, accesso e profilo. */
.affiliate-dashboard,
.affiliate-login-page,
.affiliate-two-factor-page {
    font-size: 14px;
    line-height: 1.5;
}

.affiliate-dashboard-head h1 {
    font-size: clamp(28px, 2.4vw, 36px) !important;
    line-height: 1.12;
}

.affiliate-dashboard-head p,
.affiliate-login-panel p,
.affiliate-login-copy p,
.affiliate-profile-card header p,
.affiliate-payout-panel header p,
.affiliate-referral-panel p {
    font-size: 13px !important;
    line-height: 1.6;
}

.affiliate-sidebar-brand small,
.affiliate-nav-label,
.affiliate-rate-inline,
.affiliate-live-state,
.affiliate-kpis article > span,
.affiliate-kpis article > small,
.affiliate-settlement-strip span,
.affiliate-referral-panel > small,
.affiliate-chart-legend,
.affiliate-chart-month > small,
.affiliate-order-filters label > span,
.affiliate-order-earning small,
.affiliate-order-state,
.affiliate-two-factor label > span,
.affiliate-two-factor-head em,
.affiliate-data-note,
.affiliate-locked-heading span,
.affiliate-unlock-schedule span,
.affiliate-unlock-schedule small,
.affiliate-locked-summary > p {
    font-size: 11px !important;
    line-height: 1.45;
}

.affiliate-sidebar-nav a,
.affiliate-topbar-profile strong,
.affiliate-topbar-profile small,
.affiliate-settlement-strip strong,
.affiliate-referral-control strong,
.affiliate-chart-month > span,
.affiliate-chart-month > em,
.affiliate-order-product span,
.affiliate-order-earning span,
.affiliate-payout-methods small,
.affiliate-two-factor-head span,
.affiliate-recovery-codes p,
.affiliate-two-factor-setup details,
.affiliate-payout-action > div > span,
.affiliate-unlock-schedule span b {
    font-size: 12px !important;
}

.affiliate-two-factor :is(input, select, textarea),
.affiliate-profile-card :is(input, select, textarea),
.affiliate-order-filters :is(input, select),
.affiliate-login-panel :is(input, select) {
    font-size: 14px !important;
}

.affiliate-kpis article > strong,
.affiliate-admin-stats article > strong {
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
    .affiliate-login-panel input,
    .plan-advisor-modal :is(input[type="search"], input[type="number"], select) {
        font-size: 16px !important;
    }

    body,
    input,
    select,
    textarea,
    button {
        font-size: 14px;
    }

    .affiliate-dashboard-head h1 {
        font-size: 27px !important;
    }

    .affiliate-kpis article > span,
    .affiliate-kpis article > small,
    .affiliate-settlement-strip span,
    .affiliate-settlement-strip strong,
    .affiliate-referral-control strong,
    .affiliate-chart-month > span,
    .affiliate-chart-month > em {
        font-size: 11px !important;
    }
}
