/* ============================================
   SecureVPN.io — Stylesheet
   Brand color: #32A5F8
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
  --main-color: #32A5F8;
  --dark-blue-color: #1a8ad4;
  --dark-color: #0f1923;
  --white-color: #ffffff;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #ffffff;
}

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

a {
    color: #32A5F8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    padding-left: 1.5em;
}

.text-center{
    text-align: center!important;
}

/* --- Layout --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: #32A5F8;
    color: #fff;
    border-color: #32A5F8;
}

.btn-primary:hover {
    background: #1a8ad4;
    border-color: #1a8ad4;
}

.btn-secondary {
    background: #0f1923;
    color: #fff;
    border-color: #0f1923;
}

.btn-secondary:hover {
    background: #1a2a3a;
}

.btn-outline {
    background: transparent;
    color: #32A5F8;
    border-color: #32A5F8;
}

.btn-outline:hover {
    background: #32A5F8;
    color: #fff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header & Nav --- */
.site-header {
    background: #d2e8f6;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #00000012;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
}

.logo:focus-visible{
    outline: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-image {
    width: 50px;
    height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
    padding: 0;
}

.nav-link {
    color: var(--dark-color);
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: #0069b5;
    /* background: var(--dark-blue-color); */
    text-decoration: none;
}

/* Signed-in nav. The sign-out control is a form button rather than a link,
   so it has to be talked back into looking like the links beside it. */
.nav-signout {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}

.nav-email {
    color: var(--dark-color);
    font-size: 0.85rem;
    opacity: 0.75;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link-button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark-color);
    transition: transform 0.2s;
}

.hamburger {
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 6px;
    margin-left: 0.4rem;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230f1923' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s;
}

.nav-link:hover.nav-dropdown-toggle::after,
.nav-link.active.nav-dropdown-toggle::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230f1923' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.nav-dropdown.open .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #d2e8f6;
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dropdown-menu a {
    display: block;
    padding: 5px 20px;
    color: #000;
    text-decoration: none;
    font-size: 13px;
}

.dropdown-menu a:hover {
    color: var(--dark-color);
    background: rgba(50, 165, 248, 0.15);
}

/* Language switcher */
.lang-switcher {
    margin-left: 0.25rem;
}

.lang-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lang-switcher-toggle::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1923' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.lang-switcher .dropdown-menu {
    left: auto;
    right: 0;
    min-width: 160px;
    padding: 0.5rem 0;
}

.lang-switcher .dropdown-menu a {
    padding: 0.55rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f1923;
}

.lang-switcher .dropdown-menu a.is-active {
    background: rgba(50, 165, 248, 0.15);
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(15, 25, 35, 0.1);
        padding-top: 0.5rem;
    }

    .lang-switcher .dropdown-menu {
        right: auto;
    }
}

/* --- Hero --- */
.hero {
    color: #000;
    text-align: center;
    padding: 2rem 0 4rem;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(178deg, #1a8ad436 0%, rgba(255, 255, 255, 1) 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-copy {
    text-align: left;
}

.hero-lottie {
    display: flex;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url(/public/images/bg-1.png) no-repeat center center / cover; */
    /* filter: blur(6px); */
    z-index: -1;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #000;
    /* text-shadow: 2px 2px 5px black; */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #00000094;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-cta a img{
    transition: 0.3s;
}

.hero-cta a:hover img{
    box-shadow: 0 2px 12px rgb(41 165 255 / 51%);
    border-radius: 8px;
    transform: translateY(-2px);
    transition: 0.3s;
}

.page-hero {
    background: aliceblue;
    color: #000;
    text-align: left;
    padding: 3rem 0;
}

.page-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--dark-blue-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid #e4ecf2;
    color: #fff;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 20px;
}

/* --- Content Sections --- */
.content-section, .features-overview, .tools-section, .cta-section, .video-gallery,
.features-detail, .pricing-section, .guarantee-section, .pricing-comparison,
.download-section, .setup-steps, .about-content, .contact-section,
.blog-listing, .tool-cta {
    padding: 4rem 0;
}

.content-section h2, .features-overview h2, .tools-section h2,
.features-detail h2, .download-section h2, .setup-steps h2,
.about-content h2, .blog-listing h2, .pricing-comparison h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #0f1923;
}

.section-subtitle {
    color: #5a6b7d;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* --- Two Column --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

.two-col p {
    margin-bottom: 1rem;
}

/* --- Check Lists --- */
.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.check-list li {
    padding: 0.35rem 0 0.35rem 1.75rem;
    position: relative;
}

.check-list li::before {
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.check-list.positive li::before {
    content: '✓';
    color: #22c55e;
}

.check-list.negative li::before {
    content: '✗';
    color: #ef4444;
}

/* --- Use Cases Section --- */
.use-cases-section {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #e4ecf2;
    border-bottom: 1px solid #e4ecf2;
}

.use-cases-heading {
    font-size: 1.75rem;
    color: #0f1923;
    margin-bottom: 0.5rem;
    text-align: center;
}

.use-cases-section .section-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    text-align: center;
    padding: 2rem 1.25rem;
    background: #ffffff;
    border: 1px solid #dbe9f4;
    border-radius: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.use-case-card:hover {
    box-shadow: 0 6px 24px rgba(50, 165, 248, 0.12);
    transform: translateY(-3px);
}

.use-case-icon-wrap {
    width: 80px;
    height: 80px;
    background: #eaf4fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.use-case-icon {
    width: 42px;
    height: 42px;
    display: block;
}

.use-case-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #32A5F8;
}

.use-case-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-card ul li {
    color: #5a6b7d;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f4f8;
}

.use-case-card ul li:last-child {
    border-bottom: none;
    color: #32A5F8;
    font-weight: 600;
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: #f4f8fb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e4ecf2;
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: #5a6b7d;
    font-size: 0.95rem;
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* --- Privacy Visual Section --- */
.privacy-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.privacy-visuals {
    padding: 4rem 0;
}

.privacy-visual-card {
    background: #f7fbff;
    border: 1px solid #dbe9f4;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.privacy-visual-card img {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 1rem;
}

.privacy-visual-card h3 {
    font-size: 1.05rem;
    color: #0f1923;
}

/* --- Feature Blocks (Features page) --- */
.feature-block {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e4ecf2;
}

.feature-block:last-child {
    border-bottom: none;
}

.feature-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-content p {
    margin-bottom: 0.75rem;
    max-width: 750px;
}

.feature-content ul {
    margin-bottom: 1rem;
}

.feature-content li {
    margin-bottom: 0.25rem;
}

/* --- Tool Cards --- */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tool-card {
    display: block;
    background: #0f1923;
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(50, 165, 248, 0.3);
    text-decoration: none;
}

.tool-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #a0b4c8;
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #32A5F8 0%, #1a8ad4 100%);
    color: #fff;
    text-align: center;
}

.cta-section p a{
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--dark-color);
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
}

.cta-box {
    background: #f0f8ff;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
}

.cta-box h2 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cta-box p {
    color: #a0b4c8;
    margin-bottom: 1.5rem;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 2rem;
    align-items: start;
    justify-content: center;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e4ecf2;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: #32A5F8;
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #32A5F8;
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f1923;
}

.price-period {
    color: #5a6b7d;
    font-size: 1rem;
}

/* Three-step section on the homepage. An ordered list, because the order is
   the content — reading it out of sequence would be wrong. */
.steps-section {
    padding: 4rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    counter-reset: none;
}

.step-card {
    background: var(--white-color);
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--main-color);
    color: var(--white-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* The guarantee, repeated under every buy button. Quiet by design: it has to
   be readable at the moment of hesitation without competing with the button
   it sits under. */
.pricing-guarantee {
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #5a6b7d;
}

/* The guarantee under the homepage pricing preview. Quiet, because it
   reassures rather than sells. */
.guarantee-note {
    text-align: center;
    margin-top: 2rem;
    color: #5a6b7d;
}

/* The per-month equivalent. Deliberately quieter than the headline price and
   louder than the renewal note: it is the number that makes a yearly plan
   comparable to a monthly one, but it is not what gets charged. */
.price-permonth {
    color: var(--dark-blue-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.price-billed {
    color: #5a6b7d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    padding: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

/* --- Guarantee --- */
.guarantee-section {
    background: #f4f8fb;
    text-align: center;
}

.guarantee-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.guarantee-section p {
    max-width: 600px;
    margin: 0 auto;
    color: #5a6b7d;
}

/* --- Comparison Grid --- */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.comparison-item {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e4ecf2;
    border-radius: 8px;
}

.comparison-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.comparison-item p {
    color: #5a6b7d;
    font-size: 0.9rem;
}

/* --- Download Cards --- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.download-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #dbe9f4;
    box-shadow: 0 2px 12px rgba(50, 165, 248, 0.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    box-shadow: 0 8px 32px rgba(50, 165, 248, 0.16);
    transform: translateY(-4px);
}

.download-card-header {
    position: relative;
    margin-bottom: 1.25rem;
}

.download-icon {
    display: block;
    height: 56px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.download-badge {
    display: inline-block;
    margin-top: 0.75rem;
    background: #eaf4fe;
    color: #32A5F8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #c2dff7;
}

.download-card h2 {
    font-size: 1.3rem;
    color: #0f1923;
    margin-bottom: 0.5rem;
}

.download-card-desc {
    color: #5a6b7d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.download-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    text-align: left;
    border-top: 1px solid #f0f4f8;
    padding-top: 1rem;
}

.download-features li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #3a4a5c;
    border-bottom: 1px solid #f0f4f8;
}

.download-features li:last-child {
    border-bottom: none;
}

.download-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #32A5F8;
    font-weight: 700;
}

.download-card .btn-block {
    margin-top: auto;
}

/* --- Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #32A5F8;
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: #5a6b7d;
    font-size: 0.95rem;
}

/* --- About --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.value-card {
    background: #f4f8fb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e4ecf2;
}

.value-card h3 {
    margin-bottom: 0.5rem;
    color: #0f1923;
}

.about-content article {
    max-width: 800px;
}

.about-content article > h2 {
    margin-top: 2rem;
}

.about-content article > p, .about-content article > ul {
    margin-bottom: 1rem;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    margin-bottom: 0.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #32A5F8;
    box-shadow: 0 0 0 3px rgba(50, 165, 248, 0.15);
}

.field-error {
    display: block;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    font-weight: 500;
}

.alert {
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.alert p {
    margin-bottom: 0.5rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert-error {
    background: #fff2f2;
    border: 1px solid #f4c7c7;
    color: #8b1e1e;
}

.alert-success {
    background: #eefbf3;
    border: 1px solid #bce9cc;
    color: #136f3a;
}

/* --- Blog --- */
.blog-grid {
    display: grid;
    gap: 2rem;
}

.blog-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e4ecf2;
    border-radius: 8px;
}

.blog-category {
    display: inline-block;
    background: rgba(50, 165, 248, 0.1);
    color: #32A5F8;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.blog-card h2 a {
    color: #0f1923;
}

.blog-card h2 a:hover {
    color: #32A5F8;
}

.blog-card p {
    color: #5a6b7d;
    margin-bottom: 0.75rem;
}

.blog-meta {
    color: #8a95a5;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.read-more {
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- Blog Post --- */
.blog-post {
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.post-meta {
    color: #8a95a5;
    font-size: 0.9rem;
    display: flex;
    gap: 1.5rem;
}

.reading-time::before {
    content: '·';
    margin-right: 0.5rem;
}

.post-content {
    max-width: 750px;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
    color: #0f1923;
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.35rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.comparison-table th, .comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e4ecf2;
}

.comparison-table th {
    background: #f4f8fb;
    font-weight: 600;
}

/* --- Tool Pages --- */
/* Step 1: Shared hero wrapper for tool pages */
.tool-hero {
    background: aliceblue;
    color: var(--dark-color);
    padding: 3rem 0;
    text-align: center;
}

.tool-subtitle {
    color: #5a6b7d;
    margin-bottom: 2rem;
}

/* Step 2: IP tool card and details */
.ip-page-hero .page-subtitle {
    margin-bottom: 2rem;
}

.ip-page-hero .ip-result-box--light {
    background: #ffffff;
    border: 1px solid #dbe9f4;
    box-shadow: 0 8px 32px rgba(50, 165, 248, 0.1), 0 2px 8px rgba(0,0,0,0.06);
}

.ip-page-hero .ip-loading {
    color: #3a4a5c;
}

.ip-page-hero .ip-label,
.ip-page-hero .ip-detail-label {
    color: #6b8099;
}

.ip-page-hero .ip-detail-value {
    color: #0f1923;
}

.ip-page-hero .ip-detail-card {
    background: #f4f9fd;
    border-color: #dbe9f4;
}

.ip-page-hero .ip-detail-icon {
    color: #32A5F8;
}

.ip-page-hero .ip-copy-btn {
    background: rgba(50, 165, 248, 0.08);
    border-color: rgba(50, 165, 248, 0.3);
    color: #1a8ad4;
}

.ip-page-hero .ip-copy-btn:hover {
    background: rgba(50, 165, 248, 0.16);
}

.ip-page-hero .ip-copy-btn.copied {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
    color: #16a34a;
}

.ip-page-hero .ip-status {
    border-top-color: #e4ecf2;
}

.ip-page-hero .ip-status-badge.exposed {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #dc2626;
}

.ip-page-hero .ip-status-badge.protected {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.ip-page-hero .ip-status-cta {
    color: #5a6b7d;
}

.ip-address-intro-block {
    padding-bottom: 25px;
}

.ip-result-box {
    background: #0f1923;
    border: 1px solid rgba(50, 165, 248, 0.25);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(50, 165, 248, 0.1) inset;
}

/* Loading state */
.ip-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #a0b4c8;
    font-size: 1rem;
    padding: 1rem 0;
}

.ip-skeleton-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #32A5F8;
    animation: ip-pulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ip-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.6); }
}

/* IP address row */
.ip-address-display {
    margin-bottom: 1.75rem;
    text-align: center;
}

.ip-label {
    display: block;
    color: #6b8099;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ip-value-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.ip-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #32A5F8;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

/* Copy button */
.ip-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(50, 165, 248, 0.1);
    border: 1px solid rgba(50, 165, 248, 0.3);
    color: #32A5F8;
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    vertical-align: middle;
}

.ip-copy-btn:hover {
    background: rgba(50, 165, 248, 0.2);
    border-color: #32A5F8;
}

.ip-copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

/* Detail cards */
.ip-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ip-detail-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ip-detail-icon {
    color: #32A5F8;
    display: block;
    margin-bottom: 0.2rem;
    opacity: 0.85;
}

.ip-detail-label {
    display: block;
    color: #6b8099;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ip-detail-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #e2eaf2;
    word-break: break-word;
}

/* Status badge */
.ip-status {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ip-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.ip-status-badge.exposed {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.ip-status-badge.protected {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.ip-status-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ip-status-badge.exposed  .badge-dot { background: #ef4444; }
.ip-status-badge.protected .badge-dot { background: #22c55e; }

.ip-status-cta {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: #8ca0b4;
}

.ip-status-cta a {
    color: #32A5F8;
    font-weight: 600;
    text-decoration: none;
}

.ip-status-cta a:hover {
    text-decoration: underline;
}

/* Step 3: DNS tool card and table */
.dns-test-box {
    background: #ffffff;
    border: 1px solid #dbe9f4;
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.dns-loading p {
    color: #5a6b7d;
    margin-bottom: 1rem;
}

.progress-bar {
    background: #e4ecf2;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.progress-fill {
    background: #32A5F8;
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s;
}

.dns-status {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dns-status.no-leak {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dns-status.leak {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.dns-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 1rem;
}

.dns-table th {
    color: #5a6b7d;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.5rem;
    border-bottom: 1px solid #dbe9f4;
}

.dns-table td {
    color: #1a1a2e;
    padding: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #eef3f7;
}

/* --- Video Gallery --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.video-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f1923;
    border: 1px solid rgba(50, 165, 248, 0.2);
    border-radius: 10px;
    padding: 0;
    aspect-ratio: 16 / 20;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    width: 100%;
    text-decoration: none;
}

.video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.68) 100%);
}

.video-card:hover {
    border-color: #32A5F8;
    transform: translateY(-3px);
}

.video-play-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(50, 165, 248, 0.9);
    border-radius: 50%;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
    padding-left: 4px;
}

.video-card:hover .video-play-btn {
    background: #32A5F8;
    transform: scale(1.1);
}

.video-card-label {
    position: absolute;
    left: 0.75rem;
    bottom: 0.7rem;
    z-index: 1;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- Video Modal --- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    z-index: 1;
    width: min(90vw, 900px);
    background: #0f1923;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.video-modal-content video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.video-modal-close:hover {
    background: rgba(50, 165, 248, 0.8);
}

/* --- FAQ --- */
.faq-section {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-item {
    border: 1px solid #e4ecf2;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: #32A5F8;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

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

.faq-answer {
    padding: 0 1.25rem 1rem;
    color: #5a6b7d;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--main-color);
}

.breadcrumbs a:hover {
    color: #32A5F8;
}

.breadcrumb-sep {
    color: #8a95a5;
    margin: 0 0.25rem;
}

/* --- 404 --- */
.error-page {
    text-align: center;
    padding: 5rem 0;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: #e4ecf2;
    line-height: 1;
    margin: 1rem 0;
}

.error-links {
    margin-top: 2rem;
}

.error-links ul {
    list-style: none;
    padding: 0;
}

.error-links li {
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.site-footer {
    background: #0f1923;
    color: #a0b4c8;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.35rem;
}

.footer-col a {
    color: #a0b4c8;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: #32A5F8;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 991px){
    .trust-items{
        gap: 1rem;
    }

    .features-detail{
        padding: 0;
    }
}

@media (max-width: 768px) {
    .privacy-visual-grid {
        grid-template-columns: 1fr;
    }

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

    .site-header .container {
        gap: 0.75rem;
    }

    .logo-image {
        width: 42px;
        height: 42px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #d2e8f6;
        flex-direction: column;
        padding: 0.75rem 1rem 1rem;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    }

    .nav-list > li {
        width: 100%;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.7rem 0.75rem;
        width: 100%;
        border-radius: 8px;
    }

    .nav-dropdown.open > .nav-dropdown-toggle {
        background: rgba(50, 165, 248, 0.18);
        color: var(--dark-color);
    }

    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        margin-top: 0.35rem;
        border-radius: 8px;
        padding: 0.35rem;
        min-width: 0;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.55rem 0.75rem;
        font-size: 0.95rem;
        border-radius: 6px;
        color: var(--dark-color);
    }

    .dropdown-menu a:hover {
        background: rgba(50, 165, 248, 0.18);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero h1 { font-size: 2rem; }
    .page-hero h1 { font-size: 1.75rem; }
    .post-header h1 { font-size: 1.75rem; }

    .two-col,
    .features-grid,
    .use-cases-grid,
    .tools-grid,
    .pricing-grid,
    .comparison-grid,
    .download-grid,
    .steps-grid,
    .values-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ip-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Contact / Support page (best-in-class)
   Uses brand tokens; light theme; RTL-safe (logical props where practical)
   ============================================ */
.support-hero {
    background: linear-gradient(135deg, #eaf5ff 0%, #f7fbff 60%, #ffffff 100%);
    border-bottom: 1px solid #e4ecf2;
    padding: 3rem 0 2.25rem;
}
.support-hero h1 {
    font-size: 2.25rem;
    color: #0f1923;
    margin-bottom: 0.5rem;
    max-width: 22ch;
}
.support-hero .page-subtitle {
    max-width: 60ch;
    margin-bottom: 1.25rem;
}
.trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid #dbe9f4;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f1923;
    box-shadow: 0 1px 2px rgba(15, 25, 35, 0.04);
}
.trust-chip .chip-ico {
    font-size: 1rem;
    line-height: 1;
}

/* Support channel cards */
.support-channels {
    padding: 3rem 0 1rem;
}
.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.75rem;
}
.channel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #f7fbff;
    border: 1px solid #dbe9f4;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.channel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(50, 165, 248, 0.16);
    border-color: #b9dcf6;
}
.channel-card.is-primary {
    background: linear-gradient(160deg, #0f1923 0%, #14293c 100%);
    border-color: #14293c;
}
.channel-card.is-primary h3,
.channel-card.is-primary .channel-meta { color: #fff; }
.channel-card.is-primary p { color: #a9c4dc; }
.channel-icon {
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 0.85rem;
}
.channel-card h3 {
    font-size: 1.15rem;
    color: #0f1923;
    margin-bottom: 0.35rem;
}
.channel-card p {
    color: #5a6b7d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.channel-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a8ad4;
    margin-bottom: 1rem;
}
.channel-meta .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; flex: 0 0 8px;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.channel-card .btn { margin-top: auto; }
.channel-card.is-primary .btn-primary {
    background: #32A5F8; border-color: #32A5F8; color: #fff;
}
.channel-card.is-primary .btn-primary:hover {
    background: #59b7fa; border-color: #59b7fa;
}

/* Main contact layout: aside + form */
.contact-support-section { padding: 3rem 0; }
.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
}
.contact-aside h2 { font-size: 1.5rem; color: #0f1923; margin-bottom: 0.5rem; }
.contact-aside > p { color: #5a6b7d; margin-bottom: 1.5rem; }
.aside-block {
    border-inline-start: 3px solid #32A5F8;
    padding: 0.15rem 0 0.15rem 1rem;
    margin-bottom: 1.35rem;
}
html[dir="rtl"] .aside-block { padding: 0.15rem 1rem 0.15rem 0; }
.aside-block h3 { font-size: 1.02rem; margin-bottom: 0.2rem; color: #0f1923; }
.aside-block p { color: #5a6b7d; font-size: 0.94rem; margin: 0; }
.aside-block a { font-weight: 600; }

/* Specialized routing list */
.route-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.route-list li {
    display: flex; gap: 0.6rem; align-items: baseline;
    padding: 0.5rem 0; border-bottom: 1px dashed #e4ecf2;
    font-size: 0.93rem; color: #5a6b7d;
}
.route-list li:last-child { border-bottom: none; }
.route-list strong { color: #0f1923; font-weight: 700; min-width: 8.5rem; display: inline-block; }

/* The form card */
.form-card {
    background: #fff;
    border: 1px solid #e4ecf2;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 6px 22px rgba(15, 25, 35, 0.05);
}
.form-card > h2 { font-size: 1.4rem; color: #0f1923; margin-bottom: 0.25rem; }
.form-card > .form-lead { color: #5a6b7d; margin-bottom: 1.25rem; font-size: 0.96rem; }
.smart-form fieldset { border: 0; padding: 0; margin: 0; }
.smart-form legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.smart-form .form-group { margin-bottom: 1.15rem; }
.smart-form label {
    display: block; margin-bottom: 0.35rem;
    font-weight: 600; font-size: 0.92rem; color: #0f1923;
}
.smart-form .req { color: #d32f2f; margin-inline-start: 2px; }
.smart-form .opt { color: #8a95a5; font-weight: 500; font-size: 0.82rem; }
.smart-form input,
.smart-form select,
.smart-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.smart-form input:focus,
.smart-form select:focus,
.smart-form textarea:focus {
    outline: none;
    border-color: #32A5F8;
    box-shadow: 0 0 0 3px rgba(50, 165, 248, 0.15);
}
.smart-form input:user-invalid,
.smart-form textarea:user-invalid {
    border-color: #e0a3a3;
}
.smart-form .form-hint { font-size: 0.82rem; color: #8a95a5; margin-top: 0.3rem; }
.char-count { float: inline-end; font-size: 0.8rem; color: #8a95a5; font-weight: 500; }
.char-count.over { color: #d32f2f; }
.consent-row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.25rem 0 1.25rem; }
.consent-row input[type="checkbox"] { width: auto; margin-top: 0.25rem; flex: 0 0 auto; }
.consent-row label { font-weight: 500; font-size: 0.88rem; color: #5a6b7d; margin: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-privacy-note {
    display: flex; gap: 0.5rem; align-items: center;
    font-size: 0.85rem; color: #5a6b7d;
    background: #f4f8fb; border: 1px solid #e4ecf2; border-radius: 8px;
    padding: 0.6rem 0.85rem; margin-top: 1rem;
}
.form-submit-btn { font-size: 1.05rem; padding: 0.85rem 1.5rem; }

/* Error summary + success */
.error-summary {
    background: #fff2f2; border: 1px solid #f4c7c7; color: #8b1e1e;
    border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 1.25rem;
}
.error-summary h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.error-summary ul { margin: 0; padding-inline-start: 1.1rem; }
.error-summary a { color: #8b1e1e; font-weight: 600; }
.form-success {
    text-align: center;
    padding: 2rem 1.25rem;
    background: #eefbf3;
    border: 1px solid #bce9cc;
    border-radius: 12px;
}
.form-success .success-ico {
    width: 56px; height: 56px; border-radius: 50%;
    background: #22c55e; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; margin: 0 auto 0.85rem;
}
.form-success h2 { color: #136f3a; font-size: 1.4rem; margin-bottom: 0.4rem; }
.form-success p { color: #2a7d4f; margin-bottom: 0.3rem; }
.form-success .ticket-ref {
    display: inline-block; margin-top: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #fff; border: 1px dashed #bce9cc; border-radius: 8px;
    padding: 0.4rem 0.8rem; color: #136f3a; font-weight: 600;
}

/* Inline deflection panel */
.deflect-panel {
    background: #f0f8ff;
    border: 1px solid #cfe6fb;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin: 0 0 1.15rem;
}
.deflect-lead { font-weight: 700; color: #0f1923; margin-bottom: 0.4rem; font-size: 0.92rem; }
.deflect-panel ul { list-style: none; padding: 0; margin: 0; }
.deflect-panel li { margin: 0.25rem 0; }
.deflect-panel a {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-weight: 600; font-size: 0.93rem;
}
.deflect-panel a::before { content: '→'; color: #1a8ad4; }

/* Status chip states */
#statusChip .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
#statusChip[data-state="degraded"] .dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
#statusChip[data-state="maintenance"] .dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
#statusChip[data-state="outage"] .dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }

/* Contact FAQ reuse */
.contact-faq { padding: 1rem 0 3rem; }

@media (max-width: 900px) {
    .channels-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .support-hero h1 { font-size: 1.75rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .route-list strong { min-width: 0; display: block; }
}

/* ============ Newsletter ============ */
.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;
}

.nl-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.nl-signup {
    background: #16232f;
    border: 1px solid #223546;
    border-radius: 12px;
    padding: 28px 24px;
    margin: 36px 0;
}

.nl-signup-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.nl-signup-title {
    font-size: 1.4rem;
    margin: 0 0 8px;
    color: #ffffff;
}

.nl-signup-blurb {
    color: #c7d6e4;
    margin: 0 0 18px;
    font-size: 0.95rem;
}

.nl-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.nl-form-row input[type="email"] {
    flex: 1 1 260px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #2c4257;
    background: #0f1923;
    color: #ffffff;
    font-size: 1rem;
}

.nl-form-row input[type="email"]:focus {
    outline: 2px solid #32A5F8;
    border-color: #32A5F8;
}

.nl-signup-privacy {
    color: #5f7d99;
    font-size: 0.8rem;
    margin: 14px 0 0;
}

.nl-error {
    background: #3a1c22;
    border: 1px solid #7c2d3a;
    color: #ffb4c0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 18px 0;
}

.nl-status-heading {
    font-size: 2rem;
    margin-bottom: 12px;
}

.nl-status-body {
    color: #c7d6e4;
    max-width: 640px;
}

.nl-page-body {
    padding-bottom: 48px;
}

.nl-points {
    list-style: none;
    padding: 0;
    margin: 28px auto;
    max-width: 640px;
}

.nl-points li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #c7d6e4;
}

.nl-points li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #32A5F8;
    font-weight: 700;
}

.nl-magnet-teaser {
    text-align: center;
    max-width: 640px;
    margin: 36px auto 0;
    color: #c7d6e4;
}

.nl-magnet-teaser h2 {
    color: #ffffff;
    font-size: 1.3rem;
}

[dir="rtl"] .nl-points li {
    padding: 10px 30px 10px 0;
}

[dir="rtl"] .nl-points li::before {
    left: auto;
    right: 0;
}

@media (max-width: 600px) {
    .nl-form-row {
        flex-direction: column;
    }

    .nl-form-row .btn {
        width: 100%;
    }
}

/* Sticky newsletter bar — A/B exp-005 (dismissible, not a popup) */
.nl-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #0f1923;
    border-top: 2px solid #32A5F8;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .35);
    padding: 10px 16px;
}

.nl-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nl-bar-text {
    color: #fff;
    font-weight: 600;
    margin: 0;
    flex: 1 1 220px;
    font-size: 15px;
}

.nl-bar .nl-form {
    display: flex;
    gap: 8px;
    flex: 1 1 320px;
    margin: 0;
}

.nl-bar .nl-form input[type=email] {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid #2a3a4a;
}

.nl-bar-close {
    background: none;
    border: 0;
    color: #9fb3c8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.nl-bar-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .nl-bar-text {
        flex-basis: 100%;
        font-size: 14px;
    }

    .nl-bar .nl-form {
        flex-basis: 100%;
    }
}

/* Next-read internal-links module — A/B exp-006 (engagement) */
.nextread {
    padding: 48px 0;
    background: #0f1923;
}

.nextread h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 28px;
}

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

.nextread-card {
    display: block;
    padding: 20px;
    border-radius: 10px;
    background: #16232f;
    border: 1px solid #24333f;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}

.nextread-card:hover {
    border-color: #32A5F8;
    transform: translateY(-2px);
}

.nextread-card h3 {
    color: #32A5F8;
    margin: 0 0 8px;
    font-size: 17px;
}

.nextread-card p {
    color: #c3d0dc;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   Privacy Audit (/tools/privacy-audit)
   ========================================================================== */
.audit-section { padding: 8px 0 48px; }
.audit-scoreboard {
    display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
    background: #16232f; border: 1px solid #22354a; border-radius: 16px;
    padding: 28px 30px; margin-bottom: 28px;
}
.audit-ring-wrap { position: relative; width: 150px; height: 150px; flex: 0 0 150px; }
.audit-ring { width: 150px; height: 150px; display: block; }
.audit-ring-track { stroke: #22354a; }
.audit-ring-fill {
    stroke: #32A5F8; stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
    transition: stroke-dashoffset .6s ease, stroke .4s ease;
}
.audit-section[data-band="strong"] .audit-ring-fill { stroke: #2FA382; }
.audit-section[data-band="reasonable"] .audit-ring-fill { stroke: #32A5F8; }
.audit-section[data-band="leaky"] .audit-ring-fill { stroke: #C77F22; }
.audit-section[data-band="wide-open"] .audit-ring-fill { stroke: #d97362; }
.audit-ring-center {
    position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; gap: 2px; flex-direction: row;
}
#audit-score-value { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.audit-score-max { font-size: 14px; color: #5f7d99; align-self: flex-end; padding-bottom: 6px; }
.audit-scoreboard-text { flex: 1 1 280px; min-width: 260px; }
.audit-score-band { font-size: 20px; font-weight: 700; color: #eaf4fd; margin: 0 0 4px; }
.audit-progress { font-size: 14px; color: #c7d6e4; margin: 0 0 14px; min-height: 20px; }
.audit-privacy-note { font-size: 12px; color: #5f7d99; margin: 10px 0 0; }
.audit-results-title { font-size: 20px; margin-bottom: 4px; }
.audit-results-hint { font-size: 14px; color: #5f7d99; margin: 0 0 14px; }
.audit-list { display: flex; flex-direction: column; gap: 8px; }
.audit-row { background: #16232f; border: 1px solid #22354a; border-radius: 12px; overflow: hidden; }
.audit-row-head {
    width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
    background: none; border: 0; padding: 14px 16px; cursor: pointer;
    font: inherit; color: #eaf4fd;
}
.audit-row-head:hover { background: rgba(50, 165, 248, .06); }
.audit-badge {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #04121f;
}
.audit-row--ok .audit-badge { background: #2FA382; }
.audit-row--warn .audit-badge { background: #C77F22; }
.audit-row--bad .audit-badge { background: #d97362; }
.audit-row--skip .audit-badge, .audit-row--info .audit-badge { background: #5f7d99; }
.audit-row-titles { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.audit-row-label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #5f7d99; }
.audit-row-headline { font-size: 15px; font-weight: 600; }
.audit-row-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.audit-status { font-size: 13px; font-weight: 600; }
.audit-row--ok .audit-status { color: #2FA382; }
.audit-row--warn .audit-status { color: #C77F22; }
.audit-row--bad .audit-status { color: #d97362; }
.audit-row--skip .audit-status, .audit-row--info .audit-status { color: #5f7d99; }
.audit-weight { font-size: 11px; color: #5f7d99; font-variant-numeric: tabular-nums; }
.audit-weight--none { font-style: italic; }
.audit-row-body { padding: 0 16px 16px 56px; font-size: 14px; line-height: 1.6; color: #c7d6e4; }
.audit-row-body code {
    background: #0f1923; border: 1px solid #22354a; border-radius: 4px;
    padding: 1px 5px; font-size: 12px; word-break: break-all;
}
.audit-fix { color: #eaf4fd; margin-top: 8px; }
.audit-next { margin-top: 26px; }
.audit-steps { margin: 10px 0 0 20px; line-height: 1.7; color: #c7d6e4; }
.audit-explainer { padding-bottom: 40px; max-width: 820px; }
.audit-explainer h2 { margin-bottom: 12px; }
.audit-explainer p { line-height: 1.7; color: #c7d6e4; margin-bottom: 14px; }
@media (max-width: 640px) {
    .audit-scoreboard { padding: 20px; gap: 20px; justify-content: center; text-align: center; }
    .audit-scoreboard-text { text-align: center; }
    .audit-row-head { gap: 10px; padding: 12px; }
    .audit-row-body { padding: 0 12px 14px 12px; }
    .audit-row-meta { align-items: flex-end; }
}

.tool-crosslink { max-width: 820px; padding-bottom: 36px; }
.tool-crosslink h2 { margin-bottom: 10px; }
.tool-crosslink p { line-height: 1.7; color: #c7d6e4; }

/* ==========================================================================
   Password toolkit (/tools/password-check)
   ========================================================================== */
.pw-section { padding: 8px 0 40px; }
.pw-card {
    background: #16232f; border: 1px solid #22354a; border-radius: 16px;
    padding: 24px 26px; margin-bottom: 20px;
}
.pw-card h2 { font-size: 19px; margin-bottom: 14px; }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pw-input-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pw-input-row input {
    flex: 1 1 220px; min-width: 0; background: #0f1923; border: 1px solid #22354a;
    border-radius: 10px; color: #eaf4fd; font: inherit; font-size: 16px; padding: 12px 14px;
}
.pw-input-row input:focus { outline: 2px solid #32A5F8; border-color: #32A5F8; }
#pw-gen-out, #pw-phrase-out { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pw-meter { height: 10px; border-radius: 999px; background: #0f1923; overflow: hidden; margin-bottom: 12px; }
.pw-meter-fill { height: 100%; width: 0; border-radius: 999px; background: #5f7d99; transition: width .25s ease, background .25s ease; }
.pw-section[data-band="bad"] .pw-meter-fill { background: #d97362; }
.pw-section[data-band="weak"] .pw-meter-fill { background: #C77F22; }
.pw-section[data-band="fair"] .pw-meter-fill { background: #32A5F8; }
.pw-section[data-band="good"] .pw-meter-fill { background: #2FA382; }
.pw-section[data-band="great"] .pw-meter-fill { background: #2FA382; }
.pw-readout { display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.pw-band { font-size: 18px; font-weight: 700; color: #eaf4fd; margin: 0; }
.pw-facts { display: flex; gap: 22px; margin: 0; flex-wrap: wrap; }
.pw-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #5f7d99; }
.pw-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: #eaf4fd; font-variant-numeric: tabular-nums; }
.pw-common-alert {
    margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 14px;
    background: rgba(217,115,98,.12); border: 1px solid #d97362; color: #f0b9af;
}
.pw-notes { margin-top: 16px; font-size: 14px; line-height: 1.6; color: #c7d6e4; }
.pw-notes-head { color: #5f7d99; font-size: 13px; margin-bottom: 8px; }
.pw-notes ul { margin: 0 0 0 18px; }
.pw-notes li { margin-bottom: 6px; }
.pw-note-cost { color: #C77F22; font-variant-numeric: tabular-nums; font-size: 13px; }
.pw-fineprint { margin-top: 14px; font-size: 12px; line-height: 1.6; color: #5f7d99; }
.pw-control { margin-bottom: 12px; }
.pw-control label { display: block; font-size: 13px; color: #c7d6e4; margin-bottom: 6px; }
.pw-control input[type="range"] { width: 100%; accent-color: #32A5F8; }
.pw-control select {
    width: 100%; background: #0f1923; border: 1px solid #22354a; border-radius: 10px;
    color: #eaf4fd; font: inherit; padding: 10px 12px;
}
.pw-sets { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.pw-sets label { font-size: 13px; color: #c7d6e4; display: inline-flex; align-items: center; gap: 6px; }
.pw-sets input { accent-color: #32A5F8; }
.pw-explainer { max-width: 820px; padding-bottom: 40px; }
.pw-explainer h2 { margin-bottom: 12px; }
.pw-explainer p { line-height: 1.7; color: #c7d6e4; margin-bottom: 14px; }
@media (max-width: 760px) {
    .pw-grid { grid-template-columns: 1fr; }
    .pw-card { padding: 18px; }
}

/* The header is sticky, so anything scrolled to by an anchor or by
   element.scrollIntoView() lands underneath it. scroll-padding-top reserves
   the header's height for every scroll the browser performs, which fixes
   deep-linked FAQ anchors and keeps controls clickable after a jump. */
html {
    scroll-padding-top: 84px;
}
@media (max-width: 760px) {
    html { scroll-padding-top: 72px; }
}

/* ==========================================================================
   Progress system (XP toast, /progress dashboard)
   ========================================================================== */
#svpn-xp-toast {
    position: fixed; right: 16px; bottom: 16px; z-index: 99999;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none;
    max-width: min(340px, calc(100vw - 32px));
}
.svpn-xp-card {
    pointer-events: auto; background: #16232f; border: 1px solid #2a4158;
    border-left: 4px solid #32A5F8; border-radius: 12px; padding: 13px 16px;
    color: #eaf4fd; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease;
}
.svpn-xp-card.svpn-xp-in { opacity: 1; transform: none; }
.svpn-xp-sub { font-size: 12px; color: #8fd0ff; }
.svpn-xp-link { display: inline-block; margin-top: 6px; font-size: 12px; color: #32A5F8; }
@media (prefers-reduced-motion: reduce) {
    .svpn-xp-card { transition: none; transform: none; opacity: 1; }
}

.prog-section { padding: 8px 0 48px; }
.prog-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.prog-stat {
    background: #16232f; border: 1px solid #22354a; border-radius: 14px;
    padding: 16px; text-align: center;
}
.prog-stat-value { display: block; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.prog-stat-label { display: block; font-size: 12px; color: #5f7d99; margin-top: 4px; }
.prog-bar-wrap { margin-bottom: 22px; }
.prog-bar { height: 12px; border-radius: 999px; background: #16232f; border: 1px solid #22354a; overflow: hidden; }
.prog-bar-fill { height: 100%; background: linear-gradient(90deg, #1E8FE0, #32A5F8); transition: width .5s ease; }
.prog-bar-note { font-size: 13px; color: #5f7d99; margin-top: 6px; }
.prog-challenge {
    background: #16232f; border: 1px solid #22354a; border-left: 4px solid #C77F22;
    border-radius: 14px; padding: 18px 20px; margin-bottom: 24px;
}
.prog-challenge--done { border-left-color: #2FA382; }
.prog-challenge h2 { font-size: 16px; margin-bottom: 6px; }
.prog-challenge p { color: #c7d6e4; line-height: 1.6; margin: 0 0 6px; }
.prog-challenge-state { font-size: 13px; color: #5f7d99; }
.prog-h { font-size: 18px; margin: 26px 0 12px; }
.prog-h-count { font-size: 13px; color: #5f7d99; font-weight: 400; }
.prog-tasks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.prog-task {
    display: flex; align-items: center; gap: 12px; background: #16232f;
    border: 1px solid #22354a; border-radius: 10px; padding: 12px 14px;
    font-size: 14px; color: #c7d6e4;
}
.prog-task-mark {
    flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid #2a4158; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #04121f;
}
.prog-task--done { color: #eaf4fd; }
.prog-task--done .prog-task-mark { background: #2FA382; border-color: #2FA382; }
.prog-task-xp { margin-left: auto; font-size: 12px; color: #5f7d99; white-space: nowrap; }
.prog-badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.prog-badge {
    background: #16232f; border: 1px dashed #2a4158; border-radius: 12px;
    padding: 14px; text-align: center; opacity: .55;
}
.prog-badge--earned { border-style: solid; border-color: #32A5F8; opacity: 1; }
.prog-badge-name { display: block; font-size: 14px; font-weight: 700; color: #eaf4fd; }
.prog-badge-hint { display: block; font-size: 11px; color: #5f7d99; margin-top: 3px; }
.prog-badge--earned .prog-badge-hint { color: #2FA382; }
.prog-fineprint { margin-top: 22px; font-size: 12px; color: #5f7d99; line-height: 1.6; }
.prog-reset { background: none; border: 0; color: #32A5F8; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.prog-blocked { color: #c7d6e4; line-height: 1.7; background: #16232f; border: 1px solid #22354a; border-radius: 12px; padding: 18px; }
.prog-cta { margin-top: 34px; }
.prog-cta h2 { font-size: 18px; margin-bottom: 10px; }
.prog-links { margin: 0 0 0 18px; line-height: 1.9; color: #c7d6e4; }

/* ==========================================================================
   Leaderboard (/games/leaderboard) + in-game score submit
   ========================================================================== */
.lb-section { padding: 8px 0 44px; }
.lb-totals { font-size: 13px; color: #5f7d99; margin-bottom: 16px; }
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lb-card { background: #16232f; border: 1px solid #22354a; border-radius: 16px; padding: 22px 24px; }
.lb-card h2 { font-size: 18px; margin-bottom: 2px; }
.lb-sub { font-size: 12px; color: #5f7d99; margin-bottom: 14px; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: #5f7d99; padding: 6px 8px; border-bottom: 1px solid #22354a; white-space: nowrap;
}
.lb-table td { padding: 9px 8px; border-bottom: 1px solid #1b2a38; color: #c7d6e4; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table td.num, .lb-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.lb-rank { color: #5f7d99; font-variant-numeric: tabular-nums; }
.lb-table tr:nth-child(2) td { color: #eaf4fd; font-weight: 600; }
.lb-empty { color: #5f7d99; font-size: 14px; }
.lb-explainer { margin-top: 30px; max-width: 820px; }
.lb-explainer h2 { font-size: 18px; margin-bottom: 10px; }
.lb-explainer p { color: #c7d6e4; line-height: 1.7; margin-bottom: 12px; }
@media (max-width: 760px) { .lb-grid { grid-template-columns: 1fr; } }

/* Score submit panel, shown inside the game shell after a run */
#svpn-sc { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(5,10,16,.78); }
#svpn-sc[hidden] { display: none; }
.svpn-sc-card {
    position: relative; max-width: 400px; width: calc(100% - 48px); background: #16232f;
    border: 1px solid #2a4158; border-radius: 14px; padding: 24px;
    color: #eaf4fd; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 18px 60px rgba(0,0,0,.5); text-align: center;
}
.svpn-sc-title { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.svpn-sc-stats { font-size: 13px; color: #8fd0ff; margin-bottom: 14px; }
.svpn-sc-row { display: flex; gap: 8px; }
.svpn-sc-row input {
    flex: 1; min-width: 0; background: #0f1923; border: 1px solid #2a4158; border-radius: 8px;
    color: #eaf4fd; padding: 10px 12px; font: inherit;
}
.svpn-sc-row button {
    background: #32A5F8; border: 0; border-radius: 8px; color: #fff;
    font: 600 14px/1 inherit; padding: 12px 18px; cursor: pointer;
}
.svpn-sc-row button:hover { background: #1a8ad4; }
.svpn-sc-msg { font-size: 13px; color: #c7d6e4; margin-top: 12px; min-height: 18px; }
.svpn-sc-skip { background: none; border: 0; color: #5f7d99; font-size: 12px; cursor: pointer; margin-top: 10px; text-decoration: underline; }

/* ==========================================================================
   Article engagement: progress bar, TOC, read time, related block
   ========================================================================== */
.art-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 99997;
    background: rgba(50, 165, 248, .12); pointer-events: none;
}
.art-progress-fill { height: 100%; width: 0; background: #32A5F8; transition: width .1s linear; }
.art-readtime { font-size: 13px; color: #5f7d99; margin: 6px 0 18px; }
.art-toc {
    background: #16232f; border: 1px solid #22354a; border-left: 3px solid #32A5F8;
    border-radius: 12px; padding: 16px 20px; margin: 0 0 26px;
}
.art-toc-title {
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    color: #5f7d99; margin: 0 0 8px;
}
.art-toc-list { margin: 0; padding-left: 20px; }
.art-toc-list li { margin-bottom: 5px; }
.art-toc-list a { color: #c7d6e4; text-decoration: none; font-size: 14px; line-height: 1.5; }
.art-toc-list a:hover { color: #32A5F8; text-decoration: underline; }
.art-toc-list a.art-toc-active { color: #32A5F8; font-weight: 600; }
.art-related {
    background: #16232f; border: 1px solid #22354a; border-radius: 14px;
    padding: 18px 20px; margin: 28px 0;
}
.art-related-title {
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    color: #5f7d99; margin: 0 0 10px;
}
.art-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.art-related-list a {
    display: flex; flex-direction: column; gap: 2px; text-decoration: none;
    background: #0f1923; border: 1px solid #22354a; border-radius: 10px; padding: 11px 14px;
}
.art-related-list a:hover { border-color: #32A5F8; }
.art-related-kicker { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: #5f7d99; }
.art-related-name { font-size: 15px; font-weight: 600; color: #eaf4fd; }
@media (prefers-reduced-motion: reduce) { .art-progress-fill { transition: none; } }

/* ==========================================================================
   Protocol comparison (/vpn-protocols)
   ========================================================================== */
.proto-section { padding: 8px 0 40px; }
.proto-controls {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.proto-sorts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proto-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5f7d99; }
.proto-btn {
    background: #16232f; border: 1px solid #22354a; color: #c7d6e4; font: inherit;
    font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.proto-btn:hover { border-color: #32A5F8; color: #eaf4fd; }
.proto-btn--on { background: #32A5F8; border-color: #32A5F8; color: #fff; font-weight: 600; }
.proto-filter { font-size: 13px; color: #c7d6e4; display: inline-flex; align-items: center; gap: 7px; }
.proto-filter input { accent-color: #32A5F8; }
.proto-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.proto-card {
    background: #16232f; border: 1px solid #22354a; border-radius: 16px; padding: 20px 22px;
}
.proto-card[hidden] { display: none; }
.proto-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.proto-head h2 { font-size: 18px; margin: 0; }
.proto-status {
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    border: 1px solid #22354a; color: #c7d6e4; white-space: nowrap;
}
.proto-status--recommended { color: #2FA382; border-color: #2FA382; }
.proto-status--situational { color: #32A5F8; border-color: #32A5F8; }
.proto-status--legacy { color: #C77F22; border-color: #C77F22; }
.proto-status--avoid { color: #d97362; border-color: #d97362; }
.proto-metrics { margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.proto-metrics dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #5f7d99; margin-bottom: 3px; }
.proto-metrics dd { margin: 0; }
.proto-meter {
    display: block; height: 7px; border-radius: 999px; background: #0f1923;
    overflow: hidden; margin-bottom: 4px;
}
.proto-meter > span { display: block; height: 100%; background: #32A5F8; border-radius: 999px; }
.proto-card[data-status="avoid"] .proto-meter > span { background: #d97362; }
.proto-metric-note { font-size: 12px; color: #c7d6e4; line-height: 1.5; }
.proto-facts { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; color: #c7d6e4; line-height: 1.8; }
.proto-facts strong { color: #eaf4fd; font-weight: 600; }
.proto-note { font-size: 13px; line-height: 1.65; color: #c7d6e4; margin: 0; }
.proto-empty { color: #5f7d99; margin-top: 16px; }
.proto-explainer { max-width: 820px; padding-bottom: 40px; }
.proto-explainer h2 { margin-bottom: 12px; }
.proto-explainer p { line-height: 1.7; color: #c7d6e4; margin-bottom: 14px; }

/* ==========================================================================
   Site UX helpers: glossary tooltips, FAQ links, resume bar, tips ticker
   ========================================================================== */
.ux-term {
    background: none; border: 0; border-bottom: 1px dotted #32A5F8; color: inherit;
    font: inherit; padding: 0; cursor: help;
}
.ux-term:hover, .ux-term:focus { color: #32A5F8; }
.ux-tip {
    position: absolute; z-index: 99996; max-width: 320px; background: #16232f;
    border: 1px solid #2a4158; border-left: 3px solid #32A5F8; border-radius: 10px;
    padding: 12px 14px; font-size: 13px; line-height: 1.6; color: #c7d6e4;
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.ux-tip strong { display: block; color: #eaf4fd; margin-bottom: 4px; text-transform: capitalize; }
.ux-faq-link {
    background: none; border: 0; color: #5f7d99; font: inherit; font-size: 13px;
    cursor: pointer; padding: 0 0 0 8px; opacity: 0; transition: opacity .15s ease;
}
h3:hover .ux-faq-link, h4:hover .ux-faq-link, summary:hover .ux-faq-link,
.ux-faq-link:focus, .ux-faq-copied { opacity: 1; }
.ux-faq-link:hover { color: #32A5F8; }
.ux-resume {
    position: fixed; left: 16px; bottom: 16px; z-index: 99995; max-width: min(360px, calc(100vw - 32px));
    display: flex; align-items: flex-start; gap: 10px; background: #16232f;
    border: 1px solid #2a4158; border-left: 3px solid #2FA382; border-radius: 12px;
    padding: 12px 14px; font-size: 13px; line-height: 1.5; color: #c7d6e4;
    box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
.ux-resume a { color: #32A5F8; }
.ux-resume-x { background: none; border: 0; color: #5f7d99; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.ux-resume-x:hover { color: #eaf4fd; }
.ux-tips {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 16px; border-top: 1px solid #22354a;
    font-size: 13px; color: #c7d6e4;
}
.ux-tips-label {
    font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #5f7d99;
    border: 1px solid #22354a; border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.ux-tips-text { transition: opacity .25s ease; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .ux-tips-text { transition: none; } }

/* ==========================================================================
   Setup wizard + tunnel diagram (/getting-started)
   ========================================================================== */
.wiz-section { padding: 8px 0 36px; }
.wiz-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.wiz-tab {
    background: #16232f; border: 1px solid #22354a; color: #c7d6e4; font: inherit;
    font-size: 14px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.wiz-tab:hover { border-color: #32A5F8; color: #eaf4fd; }
.wiz-tab--on { background: #32A5F8; border-color: #32A5F8; color: #fff; font-weight: 600; }
.wiz-steps { list-style: none; margin: 0; padding: 0; counter-reset: wiz; }
.wiz-step {
    display: flex; gap: 14px; background: #16232f; border: 1px solid #22354a;
    border-radius: 14px; padding: 18px 20px; margin-bottom: 10px;
}
.wiz-step--done { border-color: #2FA382; }
.wiz-check {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    background: #0f1923; border: 1px solid #2a4158; color: transparent;
    font-size: 15px; font-weight: 700; line-height: 1; padding: 0;
}
.wiz-check:hover { border-color: #32A5F8; }
.wiz-step--done .wiz-check { background: #2FA382; border-color: #2FA382; color: #04121f; }
.wiz-step-body { flex: 1 1 auto; }
.wiz-step-title { font-size: 16px; margin: 2px 0 6px; counter-increment: wiz; }
.wiz-step-title::before { content: counter(wiz) ". "; color: #5f7d99; }
.wiz-step-body p { color: #c7d6e4; line-height: 1.65; margin: 0; font-size: 14px; }
.wiz-verify-links { margin-top: 10px !important; font-size: 13px; }
.wiz-progress { margin-top: 14px; }
.wiz-progress-bar { height: 8px; border-radius: 999px; background: #16232f; border: 1px solid #22354a; overflow: hidden; }
.wiz-progress-fill { display: block; height: 100%; width: 0; background: #2FA382; transition: width .3s ease; }
.wiz-progress-note { font-size: 12px; color: #5f7d99; margin-top: 6px; }

.tunnel-section { padding-bottom: 44px; max-width: 900px; }
.tunnel-section h2 { margin-bottom: 4px; }
.tunnel-caption { font-size: 12px; color: #5f7d99; margin-bottom: 16px; }
.tunnel-figure { display: flex; flex-direction: column; gap: 18px; }
.tunnel-row {
    background: #16232f; border: 1px solid #22354a; border-radius: 14px; padding: 16px 18px;
}
.tunnel-label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5f7d99; margin-bottom: 12px; }
.tunnel-track { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tunnel-node {
    display: flex; flex-direction: column; gap: 2px; background: #0f1923;
    border: 1px solid #22354a; border-radius: 10px; padding: 8px 12px;
    font-size: 13px; color: #eaf4fd; white-space: nowrap;
}
.tunnel-node small { font-size: 10px; color: #5f7d99; white-space: normal; }
.tunnel-node--watcher { border-color: #d97362; }
.tunnel-node--blind { border-color: #2FA382; }
.tunnel-wire {
    position: relative; flex: 1 1 40px; min-width: 40px; height: 3px;
    background: repeating-linear-gradient(90deg, #2a4158 0 6px, transparent 6px 12px);
    border-radius: 2px; overflow: hidden;
}
.tunnel-wire--encrypted { background: linear-gradient(90deg, #1E8FE0, #32A5F8); opacity: .55; }
.tunnel-packet {
    position: absolute; top: -3px; left: 0; width: 9px; height: 9px; border-radius: 50%;
    animation: tunnelFlow 2.6s linear infinite;
}
.tunnel-packet--plain { background: #d97362; }
.tunnel-packet--enc { background: #2FA382; }
@keyframes tunnelFlow { from { left: -10px; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .tunnel-packet { animation: none; left: 40%; } }
.tunnel-note { margin-top: 16px; color: #c7d6e4; line-height: 1.7; font-size: 14px; }

/* ==========================================================================
   Yearly-vs-monthly calculator (/pricing)
   ========================================================================== */
.calc-section { padding: 30px 0 44px; max-width: 760px; }
.calc-section h2 { margin-bottom: 8px; }
.calc-intro { color: #c7d6e4; line-height: 1.7; margin-bottom: 18px; font-size: 14px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.calc-control label { display: block; font-size: 13px; color: #c7d6e4; margin-bottom: 8px; }
.calc-control output { color: #32A5F8; font-weight: 700; }
.calc-control input[type="range"] { width: 100%; accent-color: #32A5F8; }
.calc-hint { font-size: 11px; color: #5f7d99; margin-top: 6px; line-height: 1.5; }
.calc-table {
    width: 100%; border-collapse: collapse; background: #16232f;
    border: 1px solid #22354a; border-radius: 12px; overflow: hidden; font-size: 14px;
}
.calc-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: #5f7d99; padding: 10px 14px; border-bottom: 1px solid #22354a;
}
.calc-table td { padding: 12px 14px; color: #c7d6e4; border-bottom: 1px solid #1b2a38; }
.calc-table tr:last-child td { border-bottom: 0; }
.calc-table td.num, .calc-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.calc-row-best td { color: #eaf4fd; font-weight: 600; background: rgba(47, 163, 130, .08); }
.calc-result { margin-top: 16px; color: #eaf4fd; line-height: 1.7; font-size: 15px; }
.calc-result strong { color: #2FA382; }
@media (max-width: 620px) { .calc-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Privacy quiz + habits assessment (/privacy-quiz)
   ========================================================================== */
.quiz-section, .habits-section { padding: 8px 0 36px; max-width: 820px; }
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.quiz-head h2 { font-size: 19px; margin: 0; }
.quiz-progress { font-size: 13px; color: #5f7d99; margin: 0; }
.quiz-list { list-style: none; margin: 0; padding: 0; }
.quiz-q { background: #16232f; border: 1px solid #22354a; border-radius: 16px; padding: 22px 24px; }
.quiz-q[hidden] { display: none; }
.quiz-q-text { font-size: 17px; line-height: 1.5; margin: 0 0 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
    text-align: left; background: #0f1923; border: 1px solid #22354a; border-radius: 10px;
    color: #eaf4fd; font: inherit; font-size: 14px; padding: 12px 14px; cursor: pointer;
}
.quiz-opt:hover:not(:disabled) { border-color: #32A5F8; }
.quiz-opt:disabled { cursor: default; opacity: .75; }
.quiz-opt--right { border-color: #2FA382; background: rgba(47,163,130,.12); opacity: 1; }
.quiz-opt--wrong { border-color: #d97362; background: rgba(217,115,98,.12); opacity: 1; }
.quiz-why { margin-top: 14px; font-size: 14px; line-height: 1.65; color: #c7d6e4; }
.quiz-why p { margin: 0 0 12px; }
.quiz-verdict { color: #eaf4fd; }
.quiz-result { background: #16232f; border: 1px solid #22354a; border-radius: 16px; padding: 22px 24px; }
.quiz-score-line { font-size: 18px; color: #eaf4fd; margin: 0 0 8px; }
.quiz-score-line strong { color: #32A5F8; font-size: 24px; }
.quiz-share-note { font-size: 14px; color: #c7d6e4; margin: 0 0 14px; }
.habits-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.habit {
    background: #16232f; border: 1px solid #22354a; border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.habit-q { flex: 1 1 260px; font-size: 14px; color: #eaf4fd; line-height: 1.5; }
.habit-answers { display: flex; gap: 6px; flex: 0 0 auto; }
.habit-btn {
    background: #0f1923; border: 1px solid #22354a; color: #c7d6e4; font: inherit;
    font-size: 13px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.habit-btn:hover { border-color: #32A5F8; }
.habit-btn--on { background: #32A5F8; border-color: #32A5F8; color: #fff; font-weight: 600; }
.habit-fix { flex: 1 1 100%; margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: #C77F22; }
.habits-result { background: #16232f; border: 1px solid #22354a; border-radius: 16px; padding: 22px 24px; }
.habits-score-wrap { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.habits-score { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.habits-score-max { font-size: 14px; color: #5f7d99; }
.habits-band { margin-left: 10px; font-size: 16px; font-weight: 700; color: #32A5F8; }
#habits-root[data-band="well-covered"] .habits-band { color: #2FA382; }
#habits-root[data-band="exposed"] .habits-band { color: #C77F22; }
#habits-root[data-band="wide-open"] .habits-band { color: #d97362; }
.habits-bar { height: 10px; border-radius: 999px; background: #0f1923; overflow: hidden; margin-bottom: 12px; }
.habits-bar-fill { display: block; height: 100%; width: 0; background: #32A5F8; transition: width .4s ease; }
#habits-root[data-band="well-covered"] .habits-bar-fill { background: #2FA382; }
#habits-root[data-band="exposed"] .habits-bar-fill { background: #C77F22; }
#habits-root[data-band="wide-open"] .habits-bar-fill { background: #d97362; }
.habits-note { font-size: 12px; color: #5f7d99; line-height: 1.6; margin-bottom: 14px; }
.habits-fixes-title { font-size: 15px; margin: 0 0 8px; }
.habits-fixes-list { margin: 0 0 0 18px; color: #c7d6e4; line-height: 1.7; font-size: 14px; }
.habits-clear { color: #2FA382; font-size: 14px; margin: 0; }

/* ==========================================================================
   Site inspector + ports reference (/tools/site-inspector)
   ========================================================================== */
.insp-section { padding: 8px 0 36px; }
.insp-form { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.insp-form input {
    flex: 1 1 260px; min-width: 0; background: #0f1923; border: 1px solid #22354a;
    border-radius: 10px; color: #eaf4fd; font: inherit; font-size: 16px; padding: 12px 14px;
}
.insp-form input:focus { outline: 2px solid #32A5F8; border-color: #32A5F8; }
.insp-status { font-size: 13px; color: #c7d6e4; min-height: 20px; margin: 0 0 18px; }
.insp-results { display: flex; flex-direction: column; gap: 16px; }
.insp-card { background: #16232f; border: 1px solid #22354a; border-radius: 16px; padding: 20px 22px; }
.insp-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.insp-card-head h2 { font-size: 17px; margin: 0; }
.insp-score { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: #5f7d99; }
.insp-score--good { color: #2FA382; }
.insp-score--fair { color: #C77F22; }
.insp-score--poor { color: #d97362; }
.insp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.insp-meta { font-size: 12px; color: #5f7d99; margin: 0 0 12px; line-height: 1.6; }
.insp-fail { color: #d97362; font-size: 14px; margin: 0; }
.insp-muted { color: #5f7d99; }
.insp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.insp-row { display: flex; gap: 12px; background: #0f1923; border: 1px solid #22354a; border-radius: 10px; padding: 12px 14px; }
.insp-row--yes { border-left: 3px solid #2FA382; }
.insp-row--no { border-left: 3px solid #d97362; }
.insp-row-mark { flex: 0 0 18px; font-weight: 700; }
.insp-row--yes .insp-row-mark { color: #2FA382; }
.insp-row--no .insp-row-mark { color: #d97362; }
.insp-row-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.insp-row-name { font-size: 14px; font-weight: 600; color: #eaf4fd; display: flex; gap: 8px; align-items: baseline; }
.insp-row-weight { font-size: 11px; color: #5f7d99; font-weight: 400; }
.insp-row-value {
    font-size: 12px; color: #8fd0ff; background: #16232f; border: 1px solid #22354a;
    border-radius: 4px; padding: 3px 6px; word-break: break-all;
}
.insp-row-why { font-size: 13px; color: #c7d6e4; line-height: 1.55; }
.insp-defs { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.insp-defs > div { display: flex; gap: 12px; flex-wrap: wrap; }
.insp-defs dt { flex: 0 0 130px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5f7d99; }
.insp-defs dd { flex: 1 1 200px; margin: 0; font-size: 14px; color: #eaf4fd; word-break: break-word; }
.insp-verdict { font-weight: 700; }
.insp-verdict--good { color: #2FA382; }
.insp-verdict--warn { color: #C77F22; }
.insp-verdict--bad { color: #d97362; }
.insp-plain { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; color: #c7d6e4; line-height: 2; }
.insp-plain code { background: #0f1923; border: 1px solid #22354a; border-radius: 4px; padding: 2px 6px; font-size: 12px; }
.insp-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; border: 1px solid #22354a; }
.insp-tag--good { color: #2FA382; border-color: #2FA382; }
.insp-tag--warn { color: #C77F22; border-color: #C77F22; }
.insp-raw { margin-top: 12px; }
.insp-raw summary { font-size: 13px; color: #5f7d99; cursor: pointer; }
.insp-raw pre {
    margin-top: 8px; max-height: 260px; overflow: auto; background: #0f1923;
    border: 1px solid #22354a; border-radius: 8px; padding: 12px;
    font-size: 11px; line-height: 1.5; color: #c7d6e4; white-space: pre-wrap; word-break: break-word;
}
.ports-section { padding-bottom: 44px; }
.ports-intro, .ports-outro { color: #c7d6e4; line-height: 1.7; font-size: 14px; max-width: 820px; }
.ports-intro { margin-bottom: 16px; }
.ports-outro { margin-top: 16px; }
.ports-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ports-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: #5f7d99; padding: 8px 10px; border-bottom: 1px solid #22354a; white-space: nowrap;
}
.ports-table td { padding: 10px; border-bottom: 1px solid #1b2a38; color: #c7d6e4; vertical-align: top; }
.ports-num { font-variant-numeric: tabular-nums; white-space: nowrap; color: #eaf4fd; }
.ports-risk { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid #22354a; white-space: nowrap; }
.ports-risk--low { color: #2FA382; border-color: #2FA382; }
.ports-risk--medium { color: #C77F22; border-color: #C77F22; }
.ports-risk--high { color: #d97362; border-color: #d97362; }
.ports-note { line-height: 1.6; }
@media (max-width: 760px) { .insp-grid { grid-template-columns: 1fr; } }

/* Inspector on narrow screens: the definition lists use a fixed label column
   which, added to the card padding, exceeded a 390px viewport. Stack them and
   let long values (IPv6 addresses, header strings) wrap instead of pushing the
   page sideways. */
@media (max-width: 620px) {
    .insp-defs > div { flex-direction: column; gap: 2px; }
    .insp-defs dt { flex: 1 1 auto; }
    .insp-defs dd { flex: 1 1 auto; overflow-wrap: anywhere; }
    .insp-plain { overflow-wrap: anywhere; }
    .insp-plain code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
    .insp-row-value { overflow-wrap: anywhere; }
    .insp-card { padding: 16px; }
}

/* Horizontal scroll container for wide tables.
   This class was previously only defined in the admin layout's inline CSS, so
   every public page using it (leaderboard, site inspector) was silently
   getting no containment — a wide table pushed the whole document sideways
   instead of scrolling inside its own box. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* The IP value and its copy button sat on one non-wrapping row. With a real
   14-character address at the large display size that row measures ~394px,
   which overflows a 390px viewport — it only looked fine locally because the
   Docker gateway address is shorter. Let it wrap and scale the figure down. */
@media (max-width: 480px) {
    .ip-value-row { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
    .ip-value { font-size: clamp(20px, 7vw, 30px); overflow-wrap: anywhere; max-width: 100%; }
    .ip-details-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   On-site search (/search) + share control
   ========================================================================== */
.srch-section { padding: 8px 0 44px; max-width: 760px; }
.srch-box { margin-bottom: 18px; }
.srch-box input {
    width: 100%; background: #0f1923; border: 1px solid #22354a; border-radius: 12px;
    color: #eaf4fd; font: inherit; font-size: 17px; padding: 14px 16px;
}
.srch-box input:focus { outline: 2px solid #32A5F8; border-color: #32A5F8; }
.srch-count { font-size: 13px; color: #5f7d99; margin: 8px 0 0; }
.srch-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.srch-item[hidden] { display: none; }
.srch-item a {
    display: flex; flex-direction: column; gap: 3px; text-decoration: none;
    background: #16232f; border: 1px solid #22354a; border-radius: 12px; padding: 14px 16px;
}
.srch-item a:hover { border-color: #32A5F8; }
.srch-kind { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: #5f7d99; }
.srch-title { font-size: 16px; font-weight: 600; color: #eaf4fd; }
.srch-summary { font-size: 13px; line-height: 1.55; color: #c7d6e4; }
.srch-empty { margin-top: 16px; color: #c7d6e4; line-height: 1.7; }

.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.share-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5f7d99; }
.share-btn {
    background: #16232f; border: 1px solid #22354a; color: #c7d6e4; font: inherit;
    font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.share-btn:hover { border-color: #32A5F8; color: #eaf4fd; }
.share-note { font-size: 11px; color: #5f7d99; margin: 6px 0 0; flex: 1 1 100%; line-height: 1.5; }

/* ==========================================================================
   Speed test (/tools/speed-test)
   ========================================================================== */
.spd-section { padding: 8px 0 36px; }
.spd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.spd-tile {
    background: #16232f; border: 1px solid #22354a; border-radius: 16px;
    padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 2px;
}
.spd-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #5f7d99; }
.spd-value { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.spd-unit { font-size: 12px; color: #8fd0ff; }
.spd-sub { font-size: 11px; color: #5f7d99; margin-top: 4px; min-height: 15px; }
.spd-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.spd-status { font-size: 13px; color: #c7d6e4; margin: 0; }
.spd-history h2 { font-size: 17px; margin-bottom: 4px; }
.spd-history-note { font-size: 12px; color: #5f7d99; margin-bottom: 12px; }
.spd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spd-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: #5f7d99; padding: 8px 10px; border-bottom: 1px solid #22354a; white-space: nowrap;
}
.spd-table td { padding: 9px 10px; border-bottom: 1px solid #1b2a38; color: #c7d6e4; white-space: nowrap; }
.spd-table td.num, .spd-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.spd-clear { background: none; border: 0; color: #32A5F8; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 10px 0 0; }
.spd-explainer { max-width: 820px; padding-bottom: 44px; }
.spd-explainer h2 { margin-bottom: 12px; }
.spd-explainer p { line-height: 1.7; color: #c7d6e4; margin-bottom: 14px; }
