@charset "UTF-8";
/* ============================================================
   site.css — Global stylesheet for ai-detector.bg
   Covers: reset, vars, navbar, footer, homepage, blog, legal pages
   /app/ has its own app/css/app.css (separate design)
   ============================================================ */

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

/* Hide reCAPTCHA badge & JivoChat on load, reveal after delay via JS */
.grecaptcha-badge { opacity: 0; transition: opacity 0.4s ease; }
.grecaptcha-badge.show-widget { opacity: 1; }
jdiv[class] { opacity: 0 !important; transition: opacity 0.4s ease !important; }
body.widgets-ready jdiv[class] { opacity: 1 !important; }

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
    /* Brand colours */
    --dominant:     #2039b1;
    --secondary:    #2d314b;
    --accent:       #5c72e1;
    --accent-light: #7b8ff0;
    --bg-dark:      #0a0a12;

    /* Glassmorphism */
    --glass-bg:     rgba(45, 49, 75, 0.35);
    --glass-border: rgba(92, 114, 225, 0.5);
    --glass-shadow: 0 8px 32px rgba(45, 49, 75, 0.15);
    --glass-blur:   blur(20px);

    /* Text */
    --text-primary:   #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted:     #94a3b8;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;

    /* Shape */
    --radius:    8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Layout */
    --nav-height: 72px;
    --max-width:  1200px;

    /* Typography scale */
    --text-caption:  14px;
    --text-body:     18px;
    --text-heading:  32px;
    --text-display:  48px;

    /* Easing */
    --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.34, 1.3, 0.64, 1);
    --squash-bounce: cubic-bezier(0.25, 1.5, 0.5, 1);

    /* Homepage layout */
    --section-padding: 100px;
}

/* ── BASE ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Mulish', sans-serif;
    color: var(--text-primary);
    background: var(--bg-dark);
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--text-primary); }
img { max-width: 100%; height: auto; display: block; }

/* ── GRADIENT BACKGROUND ──────────────────────────────────── */
.gradient-bg {
    position: fixed; inset: 0; z-index: -10;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(59, 130, 246, 0.10) 0%, transparent 50%),
        var(--bg-dark);
    animation: gradientShift 20s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50%       { filter: hue-rotate(30deg) brightness(1.15); }
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-height);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(92, 114, 225, 0.2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
/* Homepage: navbar is transparent until scrolled */
.home-page .navbar:not(.scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}
.navbar.scrolled {
    background: rgba(15, 20, 38, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 143, 240, 0.3);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}
.navbar-inner {
    width: 100%; max-width: var(--max-width);
    padding: 0 var(--space-md);
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.4rem; font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--dominant) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: transform 0.3s var(--spring-bounce);
}
.nav-logo:hover { transform: scale(1.05); }

.nav-links { display: flex; align-items: center; gap: var(--space-xs); list-style: none; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-weight: 600; font-size: 14px;
    padding: var(--space-xs) var(--space-sm); border-radius: var(--radius);
    transition: color 0.3s ease, background 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); background: rgba(92, 114, 225, 0.12); }

.nav-cta { margin-left: var(--space-sm); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-spring {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-xs); padding: 10px var(--space-md);
    border: none; border-radius: var(--radius);
    font-family: 'Mulish', sans-serif; font-weight: 700;
    font-size: 12px; letter-spacing: 0.5px; cursor: pointer;
    text-transform: uppercase; text-decoration: none;
    transition: transform 0.5s var(--squash-bounce), box-shadow 0.3s var(--ease-out-expo);
}
.btn-spring:hover { transform: scale(1.05); }
.btn-spring:active { transform: scale(0.95); }
.btn-primary {
    background: linear-gradient(135deg, var(--dominant), var(--accent));
    color: white; box-shadow: 0 4px 20px rgba(32, 57, 177, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(32, 57, 177, 0.5); color: white; }
.btn-secondary {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--glass-border); backdrop-filter: var(--glass-blur);
}
.btn-secondary:hover { background: rgba(92, 114, 225, 0.15); box-shadow: 0 4px 20px rgba(92, 114, 225, 0.2); }
.btn-spring:disabled { opacity: 0.5; cursor: wait; transform: none !important; }
/* Ripple effect */
.btn-spring::after {
    content: ''; position: absolute; width: 0; height: 0; border-radius: 50%;
    background: rgba(255,255,255,0.2); transform: translate(-50%,-50%);
    transition: width 0.7s var(--squash-bounce), height 0.7s var(--squash-bounce), opacity 0.7s ease;
    opacity: 0; pointer-events: none;
}
.btn-spring.ripple::after {
    left: var(--ripple-x); top: var(--ripple-y);
    width: 500px; height: 500px; opacity: 0;
    transition: width 0.7s var(--squash-bounce), height 0.7s var(--squash-bounce), opacity 0.9s ease;
}
.btn-spring { position: relative; overflow: hidden; }
.btn-spring.spring-down  { transition: transform 0.1s ease; transform: scale(0.95); }
.btn-spring.spring-up    { transition: transform 0.5s cubic-bezier(0.25, 1.5, 0.5, 1); transform: scale(1.05); }
.btn-spring.spring-settle { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); transform: scale(1); }

/* ── HAMBURGER ────────────────────────────────────────────── */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: var(--space-xs);
    background: none; border: none;
}
.nav-toggle span {
    width: var(--space-md); height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: transform 0.3s var(--spring-bounce), opacity 0.3s ease;
    display: block;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE NAV OVERLAY ───────────────────────────────────── */
.nav-mobile {
    display: none; position: fixed; inset: 0;
    background: rgba(10, 10, 18, 0.97); backdrop-filter: blur(20px);
    z-index: 999; flex-direction: column;
    align-items: center; justify-content: center; gap: var(--space-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    color: var(--text-primary); text-decoration: none;
    font-family: 'Unbounded', sans-serif; font-size: 1.4rem; font-weight: 600;
}
.nav-mobile a:hover { color: var(--accent-light); }
.nav-mobile .btn-primary {
    font-family: 'Mulish', sans-serif; font-size: 14px;
    padding: 12px 24px; margin-top: 16px;
}

/* ── LAYOUT CONTAINERS ────────────────────────────────────── */
.container        { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: 860px;            margin: 0 auto; padding: 0 var(--space-md); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
    border-top: 1px solid rgba(92, 114, 225, 0.1);
    padding: 40px var(--space-md) var(--space-md);
    max-width: var(--max-width); margin: var(--space-xl) auto 0;
}
.footer-inner {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: var(--space-sm);
}
.footer-links {
    display: flex; gap: var(--space-md);
    list-style: none; flex-wrap: wrap; justify-content: center;
}
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
    text-align: center; width: 100%;
    margin-top: 30px; padding-top: 20px;
    font-size: 13px; border-top: 1px solid rgba(92, 114, 225, 0.1);
    color: var(--text-muted);
}
.footer-copy .footer-credit { margin-top: 8px; display: inline-block; }
.footer-copy a { color: var(--text-muted); border-bottom: 1px dotted var(--text-muted); }
.footer-copy a:hover { color: var(--text-primary); }

/* ── LEGAL PAGES (.page-wrap) ─────────────────────────────── */
.page-wrap {
    max-width: 860px; margin: 0 auto;
    padding: calc(var(--nav-height) + 48px) var(--space-md) 80px;
}
.page-wrap h1 {
    font-family: 'Unbounded', sans-serif; font-size: 2rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 8px;
}
.page-meta {
    color: var(--text-muted); font-size: 14px; margin-bottom: 40px;
    padding-bottom: 24px; border-bottom: 1px solid rgba(92, 114, 225, 0.15);
}
.page-wrap h2 {
    font-family: 'Unbounded', sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--text-primary); margin: 40px 0 12px;
}
.page-wrap h3 { font-size: 1rem; font-weight: 700; color: var(--text-secondary); margin: 24px 0 8px; }
.page-wrap p { margin-bottom: 14px; color: var(--text-secondary); }
.page-wrap ul, .page-wrap ol { padding-left: 24px; margin-bottom: 14px; color: var(--text-secondary); }
.page-wrap li { margin-bottom: 6px; }
.page-wrap strong { color: var(--text-primary); }
.page-wrap hr { border: none; border-top: 1px solid rgba(92, 114, 225, 0.15); margin: 32px 0; }
.page-footer-note {
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid rgba(92, 114, 225, 0.15);
    color: var(--text-muted); font-size: 14px;
}

/* Cookie table (cookies.php) */
.cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.cookie-table th {
    background: rgba(45, 49, 75, 0.5); color: var(--text-primary);
    font-weight: 700; padding: 10px 12px; text-align: left;
    border: 1px solid rgba(92, 114, 225, 0.2);
}
.cookie-table td {
    padding: 9px 12px; border: 1px solid rgba(92, 114, 225, 0.15);
    color: var(--text-secondary); vertical-align: top;
}
.cookie-table tr:nth-child(even) td { background: rgba(45, 49, 75, 0.15); }

/* ── BLOG — PAGE OFFSET ───────────────────────────────────── */
.page-content { padding-top: calc(var(--nav-height) + 40px); min-height: 80vh; }

/* ── BLOG — BREADCRUMBS ───────────────────────────────────── */
.breadcrumbs { padding: 0 0 var(--space-md); font-size: 13px; color: var(--text-muted); text-align: center; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

/* ── BLOG — SECTION HEADER ────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-header--standalone { padding: 40px var(--space-md) 0; max-width: var(--max-width); margin: 0 auto var(--space-xl); }
.section-badge {
    display: inline-block; padding: 6px var(--space-sm); border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--accent-light); background: rgba(92, 114, 225, 0.12);
    border: 1px solid rgba(92, 114, 225, 0.25); margin-bottom: var(--space-sm);
}
.section-title {
    font-family: 'Unbounded', sans-serif; font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.2; margin-bottom: var(--space-sm);
    color: var(--text-primary); font-size: 32px;
}
.section-subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; font-size: 18px; }

/* ── BLOG — CATEGORY PILLS ────────────────────────────────── */
.blog-cats-wrap {
    position: relative;
    margin-bottom: var(--space-lg);
    display: flex; justify-content: center;
}
.blog-cats-wrap::after { display: none; }
.blog-cats-bar {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px;
    padding-bottom: 6px; margin-bottom: 0;
}
/* scrollbar hidden - categories now wrap */
.blog-cat-pill {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: var(--text-muted);
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(92, 114, 225, 0.2);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.blog-cat-pill:hover { color: var(--accent-light); border-color: rgba(92, 114, 225, 0.5); background: rgba(92, 114, 225, 0.1); }
.blog-cat-pill.active { color: #fff; background: linear-gradient(135deg, var(--dominant), var(--accent)); border-color: var(--accent); }

/* ── BLOG — GRID ──────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-md); }

/* ── BLOG — CARD ──────────────────────────────────────────── */
.blog-card {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform 0.5s var(--squash-bounce), box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 48px rgba(45, 49, 75, 0.3); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: var(--space-md); }
.blog-card-cat {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    color: var(--accent-light); background: rgba(92, 114, 225, 0.12);
    border: 1px solid rgba(92, 114, 225, 0.25);
    padding: 3px 10px; border-radius: 999px; margin-bottom: var(--space-xs);
}
.blog-card-title { font-family: 'Unbounded', sans-serif; font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin-bottom: var(--space-xs); }
.blog-card-title a { color: var(--text-primary); }
.blog-card-title a:hover { color: var(--accent-light); }
.blog-card-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-sm); }
.blog-card-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; }

/* ── BLOG — ARTICLE LAYOUT (sticky TOC sidebar) ───────────── */
.article-layout { padding-bottom: var(--space-xl); }
.article-layout.has-toc {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: start;
}
.toc-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    max-height: calc(100vh - var(--nav-height) - 48px);
    overflow-y: auto;
}
.toc-sidebar .blog-toc { margin-bottom: 0; }
.article-main { min-width: 0; max-width: 720px; }

/* Mobile collapsible TOC */
.toc-mobile { display: none; margin-bottom: var(--space-md); }
.toc-mobile summary {
    cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700;
    color: var(--accent-light); letter-spacing: 0.5px; text-transform: uppercase;
    padding: 12px var(--space-md);
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: '▾'; font-size: 16px; }
.toc-mobile[open] summary::after { content: '▴'; }
.toc-mobile[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
.toc-mobile .blog-toc { border-top-left-radius: 0; border-top-right-radius: 0; margin-bottom: 0; }

/* ── BLOG — ARTICLE HEADER ────────────────────────────────── */
.article-header { padding: 0 0 var(--space-sm); }
.article-header h1 {
    font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 800;
    line-height: 1.35; margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 60%, var(--dominant) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.article-meta {
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; font-size: 14px; color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.article-meta .cat-badge {
    background: rgba(92, 114, 225, 0.12); color: var(--accent-light);
    border: 1px solid rgba(92, 114, 225, 0.25);
    padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 12px;
}
.article-meta .tag-badge {
    background: rgba(45, 49, 75, 0.5); color: var(--text-muted);
    border: 1px solid rgba(92, 114, 225, 0.15);
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.article-hero {
    width: 100%; max-height: 480px; object-fit: cover;
    border-radius: var(--radius-lg); margin-bottom: var(--space-lg);
    border: 1px solid var(--glass-border);
}

/* ── BLOG — ARTICLE CONTENT ───────────────────────────────── */
.article-content { font-size: 17px; line-height: 1.8; color: var(--text-secondary); }
.article-content h2 {
    font-family: 'Unbounded', sans-serif; font-size: 24px; font-weight: 700;
    margin: 40px 0 var(--space-sm); padding-top: var(--space-sm);
    border-top: 1px solid rgba(92, 114, 225, 0.15); color: var(--text-primary);
}
.article-content h3 {
    font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 700;
    margin: 28px 0 12px; color: var(--text-primary);
}
.article-content p { margin-bottom: var(--space-sm); }
.article-content ul, .article-content ol { margin: var(--space-sm) 0; padding-left: var(--space-md); }
.article-content li { margin-bottom: var(--space-xs); }
.article-content blockquote {
    border-left: 4px solid var(--accent); padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0; background: rgba(92, 114, 225, 0.08);
    border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-secondary);
}
.article-content img { border-radius: var(--radius-lg); margin: var(--space-sm) 0; border: 1px solid var(--glass-border); }
.article-content a { color: var(--accent-light); font-weight: 600; }
.article-content a:hover { color: var(--text-primary); text-decoration: underline; }
.article-content table { width: 100%; border-collapse: collapse; margin: var(--space-sm) 0; }
.article-content th, .article-content td { border: 1px solid rgba(92, 114, 225, 0.2); padding: 10px 14px; text-align: left; }
.article-content th { background: rgba(45, 49, 75, 0.5); font-weight: 700; color: var(--text-primary); }
.article-content td { color: var(--text-secondary); }
.article-content strong { color: var(--text-primary); }

/* ── BLOG — TOC BOX ───────────────────────────────────────── */
.blog-toc {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg); padding: var(--space-md);
    margin-bottom: var(--space-lg);
}
.blog-toc .toc-title {
    font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 700;
    margin-bottom: var(--space-sm); color: var(--accent-light);
    text-transform: uppercase; letter-spacing: 1px;
}
.blog-toc ol { padding-left: 20px; }
.blog-toc li { margin-bottom: 4px; font-size: 13px; }
.blog-toc a { font-size: 13px; color: var(--text-secondary); font-weight: 500; line-height: 1.4; }
.blog-toc a:hover { color: var(--accent-light); }

/* ── BLOG — PAGINATION ────────────────────────────────────── */
.blog-pagination { padding: var(--space-xl) 0; text-align: center; }
.blog-pagination ul { list-style: none; display: inline-flex; gap: 4px; }
.blog-pagination a,
.blog-pagination .current {
    display: inline-block; padding: 8px 14px;
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    font-size: 14px; font-weight: 600; color: var(--text-secondary);
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
}
.blog-pagination a:hover { background: rgba(92, 114, 225, 0.15); color: var(--text-primary); }
.blog-pagination .current {
    background: linear-gradient(135deg, var(--dominant), var(--accent));
    color: #fff; border-color: var(--accent);
}

/* ── BLOG — RELATED ARTICLES ──────────────────────────────── */
.related-section {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(92, 114, 225, 0.15);
    margin-top: var(--space-xl);
}
.related-section h3 {
    font-family: 'Unbounded', sans-serif; font-size: 20px;
    font-weight: 700; margin-bottom: var(--space-md);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .article-layout.has-toc { grid-template-columns: 1fr; }
    .toc-sidebar { display: none; }
    .toc-mobile { display: block; }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 26px; }
    .article-content { font-size: 16px; }
    .section-title { font-size: 24px; }

    /* Legal */
    .page-wrap h1 { font-size: 1.5rem; }
    .cookie-table { font-size: 13px; }

    /* Footer */
    .footer-links { gap: var(--space-sm); }
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — Animated background elements
   ══════════════════════════════════════════════════════════ */
.mesh-grid {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(92,114,225,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92,114,225,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: meshMove 40s linear infinite;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
    z-index: -9;
}
@keyframes meshMove { 0% { transform: translate(0,0); } 100% { transform: translate(80px,80px); } }

.dna-container {
    position: fixed; top: 15%; right: 8%;
    width: 100px; height: 400px;
    animation: rotateDNA 20s linear infinite;
    perspective: 1000px; z-index: -8; opacity: 0.3;
}
@keyframes rotateDNA { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.dna-strand { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; }
.dna-step {
    position: absolute; width: 20px; height: 5px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    border-radius: 10px; box-shadow: 0 0 10px rgba(92,114,225,0.5);
}

.data-stream { position: fixed; left: 10%; top: 0; height: 100vh; width: 2px; overflow: hidden; z-index: -7; }
#data-stream2 { left: 25%; }
#data-stream3 { left: 80%; }
.data-bit {
    position: absolute; width: 100%; height: 30px;
    background: linear-gradient(to bottom, rgba(92,114,225,0), rgba(92,114,225,1));
    animation: dataFlow 3s linear infinite;
}
@keyframes dataFlow { 0% { transform: translateY(-30px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(100vh); opacity: 0; } }

.binary-rain { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -6; opacity: 0.12; font-family: monospace; }
.binary-column { position: absolute; top: -20px; font-size: 15px; color: var(--accent); animation: binaryDrop linear infinite; }
@keyframes binaryDrop { 0% { transform: translateY(-100px); } 100% { transform: translateY(100vh); } }

.scanner-line {
    position: fixed; width: 100%; height: 2px;
    background: linear-gradient(to right, rgba(92,114,225,0), rgba(92,114,225,0.6), rgba(92,114,225,0));
    animation: scanLine 5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(92,114,225,0.6); z-index: -5;
}
@keyframes scanLine { 0%, 100% { top: 0; } 50% { top: 100%; } }

.diagnostic-circle {
    position: fixed; border: 2px solid var(--accent); border-radius: 50%;
    opacity: 0; animation: diagnosticPulse 4s ease-out infinite; z-index: -4;
    top: 30%; left: 20%;
}
.diagnostic-circle-2 { top: 70%; left: 70%; animation-delay: 2s; }
@keyframes diagnosticPulse {
    0%   { width: 50px;  height: 50px;  opacity: 0.6; transform: translate(-50%,-50%); }
    100% { width: 250px; height: 250px; opacity: 0;   transform: translate(-50%,-50%); }
}

.code-flicker { position: fixed; font-family: monospace; font-size: 14px; color: rgba(92,114,225,0.5); user-select: none; z-index: -3; }
.float-element {
    position: fixed; opacity: 0.15; pointer-events: none;
    animation: floatSlow 25s infinite ease-in-out;
    font-size: 2rem; color: rgba(92,114,225,0.4); z-index: -2;
}
@keyframes floatSlow {
    0%, 100% { transform: translate(0,0) rotate(0deg); opacity: 0.08; }
    50%       { transform: translate(50px,-50px) rotate(180deg); opacity: 0.2; }
}

.orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.25; animation: orbFloat 20s infinite ease-in-out; pointer-events: none; z-index: -1; }
.orb-1 { width: 400px; height: 400px; background: linear-gradient(45deg, var(--dominant), #8b5cf6); top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: linear-gradient(135deg, var(--accent), #8b5cf6); bottom: -250px; right: -250px; animation-delay: -10s; }
.orb-3 { width: 300px; height: 300px; background: linear-gradient(225deg, #8b5cf6, var(--dominant)); top: 50%; left: 50%; animation-delay: -5s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%       { transform: translate(30px,-30px) scale(1.1); }
    66%       { transform: translate(-30px,30px) scale(0.9); }
}

#particleCanvas { position: fixed; inset: 0; z-index: -3; pointer-events: none; }

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--radius);
}

/* ── HOMEPAGE — SECTION LAYOUT ────────────────────────────── */
.section { position: relative; padding: var(--section-padding) var(--space-md); max-width: var(--max-width); margin: 0 auto; }

/* ── HOMEPAGE — HERO ──────────────────────────────────────── */
#hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding-top: calc(var(--nav-height) + 40px);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-xs);
    padding: var(--space-xs) 20px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--accent-light);
    background: rgba(92,114,225,0.1); border: 1px solid rgba(92,114,225,0.25);
    margin-bottom: var(--space-lg); animation: fadeInUp 0.8s var(--ease-out-expo) both;
}
.hero-badge .pulse-dot {
    width: var(--space-xs); height: var(--space-xs); border-radius: 50%;
    background: #10b981; animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
.hero-title {
    font-family: 'Unbounded', sans-serif; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15;
    margin-bottom: var(--space-md); animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
    font-size: var(--text-display);
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 40%, var(--dominant) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.3) saturate(1.3); } }
.hero-typing { color: var(--accent-light); border-right: 2px solid var(--accent-light); animation: blink 0.8s step-end infinite; display: inline; }
@keyframes blink { 50% { border-color: transparent; } }
.hero-subtitle { color: var(--text-secondary); max-width: 640px; line-height: 1.7; margin: 0 auto 40px; animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both; }
.hero-scanner { width: 100%; max-width: 700px; animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both; }
.scanner-disclaimer {
    display: block;
    max-width: 700px;
    margin: 16px auto 28px;
    padding: 16px 20px;
    background: rgba(45,49,75,0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(92,114,225,0.25);
    border-top: 3px solid var(--accent-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
    text-align: left;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.35s both;
}
.scanner-disclaimer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    margin-bottom: 10px;
}
.scanner-disclaimer-header > i {
    color: var(--accent-light);
    font-size: 20px;
    flex-shrink: 0;
}
.scanner-disclaimer-header > strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.scanner-disclaimer > p {
    margin: 0 0 8px 0;
    padding-left: 2px;
    color: var(--text-secondary);
}
.scanner-disclaimer > p:last-child {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .scanner-disclaimer {
        padding: 14px 16px;
        font-size: 12.5px;
    }
    .scanner-disclaimer-header {
        padding-left: 0;
        gap: 8px;
        margin-bottom: 8px;
    }
    .scanner-disclaimer-header > i {
        font-size: 17px;
    }
    .scanner-disclaimer > p {
        padding-left: 0;
    }
}
.scroll-down-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px auto 18px;
    color: var(--accent-light);
    user-select: none;
    pointer-events: none;
}
.scroll-down-hint .chev {
    font-size: 22px;
    line-height: 1;
    animation: scrollChevBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(92,114,225,0.35));
}
.scroll-down-hint .chev:nth-child(1) { animation-delay: 0s; }
.scroll-down-hint .chev:nth-child(2) { animation-delay: 0.15s; }
.scroll-down-hint .chev:nth-child(3) { animation-delay: 0.30s; }
@keyframes scrollChevBounce {
    0%, 100% { transform: translateY(-4px); opacity: 0.35; }
    50%     { transform: translateY(6px);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-down-hint .chev { animation: none; opacity: 0.85; transform: none; }
}
@media (max-width: 640px) {
    .scroll-down-hint { gap: 6px; margin: 18px auto 14px; }
    .scroll-down-hint .chev { font-size: 18px; }
}
.hero-input-wrap {
    display: flex; gap: 12px; padding: var(--space-xs); border-radius: var(--radius-lg);
    background: rgba(45,49,75,0.35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(92,114,225,0.5); box-shadow: 0 8px 32px rgba(45,49,75,0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hero-input-wrap:focus-within { border-color: var(--accent-light); box-shadow: 0 8px 40px rgba(92,114,225,0.25); }
.hero-input-wrap input { flex: 1; padding: 14px 20px; background: transparent; border: none; color: var(--text-primary); font-family: 'Mulish', sans-serif; font-size: 16px; outline: none; }
.hero-input-wrap input::placeholder { color: var(--text-muted); }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); margin-top: var(--space-lg); animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both; }
.hero-stat { text-align: center; }
.hero-stat-value { font-family: 'Unbounded', sans-serif; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; color: var(--text-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-stat-label { color: var(--text-muted); margin-top: 4px; font-size: var(--text-caption); }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(92,114,225,0.3); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ── HOMEPAGE — SCANNER / RESULTS ────────────────────────── */
.status-box { display: none; margin-top: 1.5rem; }
.status-header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #cbd5e1; }
.progress-bar-bg { background: rgba(255,255,255,0.08); height: 6px; border-radius: 3px; overflow: hidden; margin: 10px 0; position: relative; }
.progress-bar-fill { background: linear-gradient(90deg, var(--dominant), var(--accent)); height: 100%; width: 0%; transition: width 0.18s ease-out; box-shadow: 0 0 10px var(--accent); border-radius: 3px; }
.log-container { max-height: 200px; overflow-y: auto; background: rgba(0,0,0,0.35); border: 1px solid rgba(92,114,225,0.15); border-radius: var(--radius); padding: 12px; font-family: monospace; font-size: 12px; color: var(--text-muted); text-align: left; margin-top: 15px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.stall-notice { margin-top: 8px; font-size: 12px; color: var(--text-muted); font-style: italic; letter-spacing: 0.2px; text-align: center; opacity: 0; animation: stallNoticeFade 0.4s ease-out forwards; }
.stall-notice[hidden] { display: none !important; }
@keyframes stallNoticeFade { from { opacity: 0; } to { opacity: 0.85; } }
.log-line { margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.02); padding-bottom: 2px; animation: fadeInLog 0.3s ease-out forwards; min-height: 16px; }
.log-line.waiting { border-bottom: none; color: var(--accent-light); opacity: 0.9; }
.log-dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.log-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-light); opacity: 0.25; animation: logDotPulse 0.9s ease-in-out infinite; }
.log-dots i:nth-child(2) { animation-delay: 0.14s; } .log-dots i:nth-child(3) { animation-delay: 0.28s; }
.log-line.skeleton { border-bottom: none; border-radius: 6px; color: transparent; background: linear-gradient(90deg, rgba(92,114,225,0.08) 0%, rgba(92,114,225,0.24) 50%, rgba(92,114,225,0.08) 100%); background-size: 200% 100%; animation: shimmerSkeleton 1.3s linear infinite; min-height: 14px; }
@keyframes shimmerSkeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeInLog { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
@keyframes logDotPulse { 0%, 80%, 100% { opacity: 0.25; transform: scale(1); } 40% { opacity: 1; transform: scale(1.35); } }
.scanner-results-wrap { width: 100%; max-width: 1000px; margin: 0 auto; }
.url-table { width: 100%; margin-top: 1.5rem; border-collapse: separate; border-spacing: 0 6px; font-size: 13px; text-align: left; display: none; }
.url-table th { color: var(--text-muted); font-weight: 600; padding: var(--space-xs) 12px; border-bottom: 1px solid rgba(92,114,225,0.15); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.url-table th.tc, .url-table td.tc { text-align: center; }
.url-table td.url-cell { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-table td { padding: 12px; background: rgba(45,49,75,0.75); transition: background 0.3s ease; }
.url-table tr:hover td { background: rgba(45,49,75,0.9); }
.url-table tr td:first-child { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); color: #e2e8f0; }
.url-table tr td:last-child { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.result-url-link { color: #c8d5ff; text-decoration: none; font-weight: 600; transition: color 0.2s ease, text-shadow 0.2s ease; }
.result-url-link:hover { color: #e7edff; text-shadow: 0 0 12px rgba(199,213,255,0.45); }
.result-url-link.muted { color: var(--text-muted); font-weight: 500; }
.btn-fix-row { border: 1px solid rgba(16,185,129,0.5); background: rgba(16,185,129,0.16); color: #b9ffd8; border-radius: var(--radius); padding: 6px 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer; transition: transform 0.3s var(--spring-bounce), background 0.3s ease; }
.btn-fix-row:hover { transform: scale(1.05); background: rgba(16,185,129,0.25); }
.btn-fix-row:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.badge { padding: 5px 14px; border-radius: var(--radius); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; min-width: 102px; display: inline-block; text-align: center; font-size: 11px; line-height: 1.1; }
.badge.HIGH    { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge.TREATED { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge.POSSIBLE{ background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge.CLEAN   { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge.SKIP    { background: rgba(148,163,184,0.15);color: var(--text-muted); border: 1px solid rgba(148,163,184,0.3); font-size: 10px; }
.result-box { display: none; margin-top: 1rem; margin-bottom: 2rem; padding-top: 2.2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(92,114,225,0.15); text-align: center; }
.result-loading { display: none; max-width: 680px; margin: 0 auto; gap: 12px; flex-direction: column; align-items: center; }
.result-box.loading .result-loading { display: flex; }
.result-box.loading .score-circle, .result-box.loading .domain-name, .result-box.loading .score-label, .result-box.loading .score-desc, .result-box.loading .scanner-disclaimer { display: none !important; }
.section-skeleton { width: 100%; border-radius: 10px; background: linear-gradient(90deg, rgba(92,114,225,0.10) 0%, rgba(92,114,225,0.28) 50%, rgba(92,114,225,0.10) 100%); background-size: 220% 100%; animation: shimmerSkeleton 1.2s linear infinite; }
.section-skeleton.circle { width: 130px; height: 130px; border-radius: 999px; }
.section-skeleton.line-lg { height: 18px; max-width: 320px; }
.section-skeleton.line-md { height: 14px; max-width: 460px; }
.url-table .skeleton-cell { height: 14px; width: 100%; border-radius: var(--radius); background: linear-gradient(90deg, rgba(92,114,225,0.10) 0%, rgba(92,114,225,0.28) 50%, rgba(92,114,225,0.10) 100%); background-size: 220% 100%; animation: shimmerSkeleton 1.2s linear infinite; }
.score-circle { width: 140px; height: 140px; border-radius: 50%; border: 6px solid rgba(92,114,225,0.2); background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; font-family: 'Unbounded', sans-serif; font-size: clamp(1.8rem,5.2vw,2.6rem); font-weight: 800; line-height: 1; white-space: nowrap; gap: 0.06em; padding: 0 0.08em; overflow: hidden; margin: 0 auto 1rem; box-shadow: 0 0 40px rgba(0,0,0,0.5); text-shadow: 0 0 10px currentColor; font-variant-numeric: tabular-nums; transition: all 0.5s var(--spring-bounce); }
.score-circle span { font-size: 0.36em; align-self: center; line-height: 1; margin: 0; transform: translateY(0.02em); flex: 0 0 auto; }
.score-circle.is-three-digits { font-size: clamp(1.45rem,4.1vw,1.95rem); letter-spacing: -0.03em; gap: 0.03em; padding: 0 0.12em; }
.score-circle.is-three-digits span { font-size: 0.32em; margin: 0; transform: translateY(0.01em); }
.domain-name { font-family: 'Unbounded', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.score-label { font-family: 'Unbounded', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.score-desc { color: #e2e8f0; line-height: 1.6; max-width: 700px; margin: 0 auto 2rem; }
.global-action-row { width: 100%; max-width: 1000px; margin: 14px auto 0; display: none; justify-content: center; gap: 12px; }
.btn-bookmark { display: none; width: auto; min-width: 200px; background: linear-gradient(135deg,#2039b1,#5c72e1); border: none; color: #fff; cursor: pointer; transition: opacity 0.2s; }
.btn-bookmark:hover { opacity: 0.85; }
.btn-bookmark.bookmarked { background: linear-gradient(135deg,#10b981,#059669); }
.btn-new-scan { width: auto; min-width: 240px; }
.scan-meta-end { width: 100%; max-width: 1000px; margin: 10px auto 0; text-align: center; color: var(--text-secondary); line-height: 1.45; display: none; }


/* ── REPORT CTA BOX ─────────────────────────────────────── */
.report-cta-box {
    display: none; width: 100%; max-width: 1000px; margin: 16px auto 0;
}
.report-cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 20px 28px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(92,114,225,0.12), rgba(92,114,225,0.04));
    border: 1px solid rgba(92,114,225,0.25);
    backdrop-filter: blur(10px);
}
.report-cta-text {
    display: flex; align-items: center; gap: 16px; flex: 1;
}
.report-cta-icon {
    font-size: 1.6rem; color: var(--accent-light); flex-shrink: 0;
}
.report-cta-text strong {
    display: block; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 2px;
}
.report-cta-text span {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4;
}
.report-cta-btn {
    flex-shrink: 0; padding: 12px 24px; font-size: 0.9rem; white-space: nowrap;
}
@media (max-width: 640px) {
    .report-cta-inner { flex-direction: column; text-align: center; padding: 18px 20px; }
    .report-cta-text { flex-direction: column; gap: 8px; }
    .report-cta-btn { width: 100%; }
}

/* ── HOMEPAGE — FEATURE CARDS ────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.feature-card {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg); padding: var(--space-lg);
    opacity: 0; transform: translateY(var(--space-xl)) scale(0.95);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--squash-bounce), box-shadow 0.3s ease;
}
.feature-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.feature-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 var(--space-sm) var(--space-xl) rgba(45,49,75,0.3); }
.feature-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; background: rgba(92,114,225,0.15); border: 1px solid rgba(92,114,225,0.25); color: var(--accent-light); }
.feature-card h3 { font-family: 'Unbounded', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: var(--space-xs); color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); line-height: 1.6; }

/* ── HOMEPAGE — HOW IT WORKS ─────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 44px; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); }
.step-card { text-align: center; position: relative; opacity: 0; transform: translateY(var(--space-xl)) scale(0.95); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--squash-bounce); }
.step-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.step-number { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Unbounded', sans-serif; font-size: 2rem; font-weight: 800; margin: 0 auto var(--space-md); background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: 2px solid var(--glass-border); box-shadow: var(--glass-shadow); color: var(--accent-light); position: relative; z-index: 2; transition: transform 0.4s var(--spring-bounce); }
.step-card:hover .step-number { transform: scale(1.1); }
.step-card h3 { font-family: 'Unbounded', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: var(--space-xs); }
.step-card p { color: var(--text-secondary); line-height: 1.6; }

/* ── HOMEPAGE — TECHNOLOGY ───────────────────────────────── */
.tech-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.tech-card { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--glass-shadow); }
.tech-card h3 { font-family: 'Unbounded', sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-md); display: flex; align-items: center; gap: 10px; }
.tech-card h3 i { color: var(--accent-light); }
.tech-card.video-card { padding: 0; overflow: hidden; background: #000; }
.tech-card.video-card .video-responsive { border-radius: var(--radius-lg); box-shadow: none; }
.tech-card p { color: var(--text-secondary); margin-bottom: var(--space-sm); line-height: 1.7; }
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.tech-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.badge-link { display: inline-flex; align-items: center; gap: 6px; background: rgba(92,114,225,0.15); border: 1px solid rgba(92,114,225,0.3); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--accent-light); transition: all 0.3s var(--ease-out-expo); }
.badge-link:hover { background: rgba(92,114,225,0.25); transform: translateY(-2px); color: #fff; box-shadow: 0 4px 12px rgba(92,114,225,0.2); }
.tech-image { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--glass-shadow); transition: transform 0.3s ease; margin-bottom: var(--space-md); }

/* ── Inline info tooltip for term explanations ─────────────────────── */
.info-term {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    cursor: help;
    border-bottom: 1px dotted rgba(92,114,225,0.55);
    color: var(--text-primary);
    outline: none;
}
.info-term:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
    border-radius: 2px;
}
.info-term-icon {
    margin-left: 4px;
    color: var(--accent-light);
    font-size: 0.78em;
    transform: translateY(-1px);
}
.info-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 320px;
    max-width: calc(100vw - 40px);
    padding: 12px 14px;
    background: rgba(20, 22, 38, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(92,114,225,0.35);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: normal;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.info-tooltip strong {
    color: var(--accent-light);
    font-weight: 700;
}
.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(20, 22, 38, 0.97);
}
.info-term:hover .info-tooltip,
.info-term:focus .info-tooltip,
.info-term:focus-within .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
@media (max-width: 640px) {
    .info-tooltip {
        width: 260px;
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* ── HOMEPAGE — PRICING ──────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); align-items: start; }
.pricing-card {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg); text-align: center;
    opacity: 0; transform: translateY(var(--space-xl)) scale(0.95);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--squash-bounce), box-shadow 0.3s ease; position: relative;
}
.pricing-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.pricing-card.popular { border-color: var(--accent-light); box-shadow: 0 var(--space-xs) var(--space-lg) rgba(92,114,225,0.3); transform: translateY(0) scale(1.03); z-index: 2; }
.pricing-card.popular.visible { transform: translateY(0) scale(1.03); }
.pricing-card.popular::before { content: 'Най-желан'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--dominant), var(--accent)); color: white; padding: 6px var(--space-md); border-radius: 999px; font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(32,57,177,0.4); }
.pricing-original { display: inline-flex; align-items: center; position: relative; color: #9ca3af; font-size: 0.92rem; font-weight: 700; padding: 0 2px; white-space: nowrap; line-height: 1.1; }
.pricing-original::after { content: ''; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; border-radius: 999px; background: linear-gradient(90deg, rgba(239,68,68,0.2), rgba(239,68,68,0.9), rgba(239,68,68,0.2)); }
.pricing-discount-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 4px 10px rgba(239,68,68,0.28); white-space: nowrap; }
.pricing-meta-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; margin: 0 0 6px; }
.pricing-note { margin-top: 2px; font-size: 0.8rem; font-weight: 700; color: #fbbf24; }
.pricing-name { font-family: 'Unbounded', sans-serif; font-size: 1.2rem; font-weight: 600; }
.pricing-card > p { margin: 0 0 6px; color: var(--text-muted); font-size: 14px; }
.pricing-card.popular > p { margin-top: 2px; margin-bottom: 16px; }
.pricing-price { font-family: 'Unbounded', sans-serif; font-size: 2.5rem; font-weight: 800; margin: 8px 0 4px; color: var(--text-primary); }
.pricing-price .currency { font-size: 1.2rem; vertical-align: super; margin-right: 4px; }
.pricing-price .period { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; margin: var(--space-md) 0; text-align: left; }
.pricing-features li { padding: var(--space-xs) 0; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; font-size: 16px; }
.pricing-features li i { color: #10b981; font-size: 14px; width: 20px; text-align: center; }
.pricing-footer-text { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 32px; opacity: 0.8; }
.pricing-promo-note { margin-top: 8px; font-size: 12px; }
.pricing-card .btn-spring { width: 100%; margin-top: var(--space-xs); padding-top: 14px; padding-bottom: 14px; font-size: 13px; }

/* ── HOMEPAGE — TESTIMONIALS ─────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.testimonial-card {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg); padding: var(--space-lg);
    opacity: 0; transform: translateY(var(--space-xl)) scale(0.95);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--squash-bounce), box-shadow 0.3s ease;
}
.testimonial-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.testimonial-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 var(--space-sm) var(--space-xl) rgba(45,49,75,0.3); }
.testimonial-stars { color: #fbbf24; font-size: 14px; margin-bottom: var(--space-sm); letter-spacing: 2px; }
.testimonial-text { color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--dominant), var(--accent)); display: flex; align-items: center; justify-content: center; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 1rem; color: white; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }
.testimonial-role a { color: var(--accent); text-decoration: none; }
.testimonial-role a:hover { text-decoration: underline; }

/* ── HOMEPAGE — STATS BAR ────────────────────────────────── */
.stats-bar { display: flex; justify-content: center; gap: var(--space-xl); flex-wrap: wrap; padding: 60px var(--space-md); max-width: var(--max-width); margin: 0 auto; }
.stat-item { text-align: center; }
.stat-value { font-family: 'Unbounded', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.stat-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: var(--text-caption); }

/* ── HOMEPAGE — TRUST SECTION ────────────────────────────── */
.trust-section { padding: 40px var(--space-md); text-align: center; }
.trust-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: var(--space-md); font-size: var(--text-caption); }
.trust-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 860px; margin: 0 auto; padding: 0 var(--space-md);
}
.trust-card {
    text-align: center; padding: 28px 16px;
    border-radius: var(--radius-lg);
    cursor: default; user-select: none;
}
.trust-card i { font-size: 1.4rem; color: var(--accent-light); margin-bottom: 12px; display: block; }
.trust-card-title { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.trust-card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 640px) {
    .trust-section { padding: 28px var(--space-sm); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 8px; }
    .trust-card { padding: 14px 8px; }
    .trust-card i { font-size: 1.15rem; margin-bottom: 8px; }
    .trust-card-title { font-size: 0.78rem; }
    .trust-card-desc { display: none; }
}

/* ── HOMEPAGE — CTA SECTION ──────────────────────────────── */
.cta-section { text-align: center; padding: var(--section-padding) var(--space-md); max-width: var(--max-width); margin: 0 auto; }
.cta-box { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: 0 16px 64px rgba(32,57,177,0.2); border-radius: var(--radius-xl); padding: 64px 40px; }
.cta-box h2 { font-family: 'Unbounded', sans-serif; font-weight: 700; margin-bottom: var(--space-sm); font-size: var(--text-heading); }
.cta-box p { color: var(--text-secondary); margin: 0 auto var(--space-lg); line-height: 1.7; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; }
.cta-buttons .btn-spring { font-size: 1.05rem; padding-top: 16px; padding-bottom: 16px; }

/* ── HOMEPAGE — SCROLL REVEAL ────────────────────────────── */
.reveal { opacity: 0; transform: translateY(var(--space-xl)) scale(0.95); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--squash-bounce); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.feature-card:nth-child(1) { transition-delay: 0.05s; } .feature-card:nth-child(2) { transition-delay: 0.1s; } .feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s;  } .feature-card:nth-child(5) { transition-delay: 0.25s; } .feature-card:nth-child(6) { transition-delay: 0.3s; }
.step-card:nth-child(1) { transition-delay: 0.05s; } .step-card:nth-child(2) { transition-delay: 0.15s; } .step-card:nth-child(3) { transition-delay: 0.25s; }
.pricing-card:nth-child(1) { transition-delay: 0.05s; } .pricing-card:nth-child(2) { transition-delay: 0.1s; } .pricing-card:nth-child(3) { transition-delay: 0.15s; }
.testimonial-card:nth-child(1) { transition-delay: 0.05s; } .testimonial-card:nth-child(2) { transition-delay: 0.1s; } .testimonial-card:nth-child(3) { transition-delay: 0.15s; }

/* ── HOMEPAGE RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
    .steps-grid::before { display: none; }
    .tech-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px; --text-display: 30px; --text-heading: 24px; }
    .features-grid, .steps-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .hero-input-wrap { flex-direction: column; }
    .hero-input-wrap .btn-spring { width: 100%; padding-top: 14px; padding-bottom: 14px; font-size: 13px; }
    .hero-stats { gap: 20px; }
    .hero-stat-value { font-size: 1.2rem; }
    .stats-bar { gap: var(--space-lg); }
    .pricing-meta-row { gap: 6px; }
    .pricing-discount-badge { font-size: 0.62rem; padding: 3px 8px; }
    .pricing-original { font-size: 0.8rem; }
    .url-table { display: block; width: 100%; margin-top: 1rem; border-spacing: 0; font-size: 12px; }
    .url-table thead { display: none; }
    .url-table tbody { display: block; width: 100%; }
    .url-table tr { display: block; margin-bottom: 10px; padding: 8px; border-radius: var(--radius); border: 1px solid rgba(92,114,225,0.2); background: rgba(45,49,75,0.45); }
    .url-table td { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 8px; background: transparent; border: 0; white-space: normal; text-align: right !important; }
    .url-table td::before { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; margin-right: 10px; text-align: left; white-space: nowrap; }
    .url-table td:nth-child(1)::before { content: 'URL'; }
    .url-table td:nth-child(2)::before { content: '%'; }
    .url-table td:nth-child(3)::before { content: 'Риск'; }
    .url-table td:nth-child(4)::before { content: 'Действие'; }
    .url-table tr td:first-child { max-width: none !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; align-items: flex-start; }
    .url-table tr td:first-child a { display: inline-block; word-break: break-word; overflow-wrap: anywhere; text-align: left; }
    .url-table .badge, .url-table .btn-fix-row { width: 100%; max-width: 220px; margin-left: auto; }
    /* SKIP badge text like "НЯМА ДОСТАТЪЧНО ТЕКСТОВО СЪДЪРЖАНИЕ" is long - let it wrap on mobile instead of overflowing the card. */
    .url-table .badge.SKIP { white-space: normal; padding: 4px 8px; line-height: 1.3; letter-spacing: 0.2px; min-width: 0; }
    .url-table tr:hover td { background: transparent; }
    .score-circle { width: 110px; height: 110px; font-size: 2.2rem; border-width: 4px; }
    .score-circle.is-three-digits { font-size: 1.85rem; }
    .score-label { font-size: 1.2rem; }
    .score-desc { font-size: 0.85rem; }
    .btn-new-scan, .btn-bookmark { width: 100%; min-width: 0; }
    .global-action-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .log-container { max-height: 100px; font-size: 11px; }
    .cta-box { padding: 40px var(--space-md); }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    /* Hide heavy animations on mobile */
    .dna-container, .data-stream, .orb, .binary-rain, .diagnostic-circle, .code-flicker, #particleCanvas { display: none; }
    .mesh-grid, .gradient-bg { animation: none; }
}

@media (max-width: 380px) {
    .score-circle { width: 90px; height: 90px; font-size: 1.8rem; }
    .score-circle.is-three-digits { font-size: 1.45rem; }
    .score-label { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: var(--space-sm); }
    .hero-stat-divider { display: none; }
}

/* ── COOKIE CONSENT ──────────────────────────────────────── */

/* Overlay */
.cc-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.cc-overlay[hidden] { display: none; }

/* Modal */
.cc-modal {
    background: #1a1a2e;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    animation: ccSlideIn 0.3s ease-out;
    overflow: hidden;
}
@keyframes ccSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cc-header h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}
.cc-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 1.1rem;
    cursor: pointer; padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.cc-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Tabs nav */
.cc-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    overflow: hidden;
}
.cc-tab-link {
    padding: 9px 12px;
    font-family: 'Mulish', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.cc-tab-link:hover { color: var(--text-secondary); }
.cc-tab-link.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}
.cc-tab-external {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.78rem;
}
.cc-tab-external:hover { color: var(--accent-light); }
.cc-tab-external i { font-size: 0.7em; }
.cc-tab-links { margin-top: 10px; }
.cc-cookies-list h5.mt { margin-top: 8px; }
.cc-analytics-note { margin-top: 8px; font-size: 0.8rem; color: var(--text-muted); }

/* Tabs body */
.cc-tabs-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    min-height: 180px;
}
.cc-tab { display: none; }
.cc-tab.active { display: block; }

.cc-tab-content p {
    font-family: 'Mulish', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}
.cc-tab-content a {
    color: var(--accent-light);
    text-decoration: underline;
}
.cc-tab-content a:hover { color: #fff; }

/* Tab head with toggle */
.cc-tab-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cc-tab-head h4 {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    margin: 0 0 4px;
}
.cc-tab-badge {
    display: inline-block;
    font-family: 'Mulish', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cc-badge-on {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}
.cc-badge-off {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Toggle switch */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch-slider {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.25s;
}
.cc-switch-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}
.cc-switch input:checked + .cc-switch-slider {
    background: var(--accent);
}
.cc-switch input:checked + .cc-switch-slider::before {
    transform: translateX(22px);
}
.cc-switch input:disabled + .cc-switch-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cookies list */
.cc-cookies-list {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
}
.cc-cookies-list h5 {
    font-family: 'Mulish', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.cc-cookies-list ul {
    list-style: none;
    padding: 0; margin: 0;
}
.cc-cookies-list li {
    font-family: 'Mulish', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 3px 0;
}
.cc-cookies-list li strong {
    color: #fff;
    font-weight: 600;
}

/* Footer buttons */
.cc-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.cc-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Mulish', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:active { transform: translateY(0); }

.cc-btn-accept {
    background: linear-gradient(135deg, var(--dominant), var(--accent));
    color: #fff;
    box-shadow: 0 4px 20px rgba(32, 57, 177, 0.4);
}
.cc-btn-accept:hover { box-shadow: 0 6px 28px rgba(32, 57, 177, 0.6); }

.cc-btn-save {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cc-btn-save:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.cc-btn-reject {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-btn-reject:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* Floating cookie button */
.cc-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--accent-light);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cc-fab[hidden] { display: none; }
.cc-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

/* Mobile */
@media (max-width: 600px) {
    .cc-modal { max-height: 92vh; border-radius: 12px; }
    .cc-header { padding: 16px 18px 12px; }
    .cc-header h2 { font-size: 1rem; }
    .cc-tabs-nav { gap: 0; }
    .cc-tab-link { padding: 8px 12px; font-size: 0.76rem; }
    .cc-tab-external { display: none; }
    .cc-tabs-body { padding: 16px 18px; }
    .cc-footer { padding: 12px 18px 16px; flex-direction: column; }
    .cc-btn { font-size: 0.85rem; padding: 11px 16px; }
    .cc-fab { bottom: 14px; left: 14px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ── FAQ ACCORDION ──────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(92, 114, 225, 0.15); }
.faq-question {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; font-family: 'Mulish', sans-serif; font-size: 1.05rem; font-weight: 600;
    color: var(--text-primary); text-align: left; gap: 16px;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-light); }
.faq-question .faq-icon {
    flex-shrink: 0; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(92, 114, 225, 0.15);
    font-size: 14px; color: var(--accent-light);
    transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-question .faq-icon {
    transform: rotate(45deg); background: var(--accent);
    color: #fff;
}
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.45s ease, padding 0.35s;
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-answer {
    max-height: 2000px; padding-bottom: 20px;
}
@media (max-width: 768px) {
    .faq-item.open .faq-answer { max-height: 4000px; }
}

/* ── ARTICLE SHARE BUTTONS ───────────────────────────────── */
.article-share {
    margin-top: 32px; padding-top: 20px;
    border-top: 1px solid rgba(92,114,225,0.15);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.share-label { font-weight: 600; color: #64748b; font-size: 14px; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    font-size: 16px; color: #fff; text-decoration: none;
    transition: transform 0.2s, opacity 0.2s; border: none; cursor: pointer;
}
.share-btn:hover { transform: scale(1.12); opacity: 0.9; }
.share-fb { background: #1877f2; }
.share-messenger { background: linear-gradient(135deg, #0695ff, #a334fa, #ff6968); }
.share-tw { background: #2d3748; }
.share-threads { background: #000; }
.share-li { background: #0a66c2; }
.share-viber { background: #7360f2; }
.share-wa { background: #25d366; }
.share-tg { background: #2aabee; }
.share-copy { background: var(--accent); }

/* ── CONTACT SECTION (2-col: FAQ + Form) ─────────────────── */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    text-align: left;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-form { position: relative; text-align: left; }
.contact-faq-title { font-size: 1.1rem; margin-bottom: 16px; color: var(--text-primary); }
.hp-field { position: absolute; left: -9999px; }
.contact-consent { margin-top: 8px; }
.contact-consent-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.contact-consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; cursor: pointer; accent-color: var(--accent-light); width: 16px; height: 16px; }
.contact-consent-label a { color: var(--accent-light); text-decoration: underline; }
.contact-consent-label a:hover { text-decoration: none; }
.cf-required { color: var(--danger, #e53e3e); font-weight: 700; }
.contact-msg { display: none; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.contact-submit { width: 100%; padding: 14px 24px; }
.contact-field { margin-bottom: 14px; }
.contact-field label {
    display: block; margin-bottom: 4px; font-size: 0.85rem;
    color: var(--text-secondary); font-weight: 600;
}
.contact-field input,
.contact-field textarea {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    color: var(--text-primary); font-family: 'Mulish', sans-serif; font-size: 0.9rem;
    backdrop-filter: var(--glass-blur); transition: border-color 0.2s;
}
.contact-field input:focus,
.contact-field textarea:focus {
    outline: none; border-color: var(--accent-light);
}
.contact-field textarea { resize: vertical; min-height: 100px; }
.contact-select {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.06);
    color: var(--text-primary); font-family: 'Mulish', sans-serif; font-size: 0.9rem;
    backdrop-filter: var(--glass-blur); transition: border-color 0.2s;
    cursor: pointer; appearance: auto;
}
.contact-select:focus { outline: none; border-color: var(--accent-light); }
.contact-select option { background: #1e2235; color: #e2e8f0; }

/* Contact icons row */
.contact-icons-row {
    display: flex; justify-content: center; gap: 32px; margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
.contact-icon-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent-light); font-size: 0.92rem; font-weight: 600;
    transition: color 0.2s;
}
.contact-icon-link:hover { color: var(--text-primary); }
.contact-icon-link i { font-size: 1rem; }

/* Contact FAQ mini accordion */
.cfaq-item { border-bottom: 1px solid rgba(92,114,225,0.12); }
.cfaq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; background: none; border: none; cursor: pointer;
    color: var(--text-primary); font-family: 'Mulish', sans-serif; font-size: 0.92rem;
    font-weight: 600; text-align: left; gap: 12px;
}
.cfaq-q:hover { color: var(--accent-light); }
.cfaq-icon {
    flex-shrink: 0; width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(92,114,225,0.15);
    font-size: 11px; font-style: normal; color: var(--accent-light);
    transition: transform 0.3s, background 0.3s;
}
.cfaq-item.open .cfaq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.cfaq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s;
    color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65;
}
.cfaq-item.open .cfaq-a { max-height: 300px; padding-bottom: 14px; }

/* ── BLOG EMPTY STATE ────────────────────────────────────── */
.blog-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.blog-empty-title { font-size: 18px; font-weight: 600; }
.blog-empty-text { margin-top: 8px; }
.blog-search-results-info { color: var(--text-muted); margin-bottom: 24px; }

/* ── BLOG SEARCH ─────────────────────────────────────────── */
.blog-search-form { max-width: 480px; margin: 0 auto 20px; }
.blog-search-wrap {
    display: flex; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}
.blog-search-input {
    flex: 1; padding: 12px 16px; border: none; background: transparent;
    color: var(--text-primary); font-family: 'Mulish', sans-serif; font-size: 0.95rem;
    outline: none;
}
.blog-search-input::placeholder { color: var(--text-muted); }
.blog-search-btn {
    padding: 12px 18px; border: none; background: var(--dominant);
    color: #fff; cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
.blog-search-btn:hover { background: var(--accent); }

/* ── BLOG ARTICLE FAQ SCHEMA ────────────────────────────── */
.schema-faq-code {
    margin: 32px 0; padding: 0;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}
.schema-faq-code .faq-question {
    border-bottom: 1px solid rgba(92,114,225,0.12);
}
.schema-faq-code .faq-question:last-child { border-bottom: none; }
.schema-faq-code .faq-q {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 18px 24px; margin: 0;
    background: none; border: none; cursor: pointer;
    color: var(--text-primary); font-family: 'Mulish', sans-serif;
    font-size: 1rem; font-weight: 700; text-align: left;
    transition: color 0.2s;
}
.schema-faq-code .faq-q::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 0.7rem; color: var(--accent); flex-shrink: 0; margin-left: 16px;
    transition: transform 0.3s;
}
.schema-faq-code .faq-question.open .faq-q::after { transform: rotate(180deg); }
.schema-faq-code .faq-q:hover { color: var(--accent-light); }
.schema-faq-code .faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s;
    color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7;
    padding: 0 24px;
}
.schema-faq-code .faq-question.open .faq-a {
    max-height: 600px; padding: 0 24px 18px;
}
