/* ============================================================
   Who Called Me UK — Modern Polished Design System
   ============================================================ */

:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-muted: #f1f3f6;
    --border: #e6e8ec;
    --border-strong: #d5d9e0;

    --text: #14181f;
    --text-muted: #5b6472;
    --text-subtle: #8a94a3;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eef4ff;
    --primary-ring: rgba(37, 99, 235, 0.18);

    --safe: #16a34a;
    --safe-soft: #e9f9ef;
    --nuisance: #ea580c;
    --nuisance-soft: #fff1e6;
    --dangerous: #dc2626;
    --dangerous-soft: #fdeaea;
    --neutral: #6b7280;
    --neutral-soft: #f1f3f6;

    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-sm: 0 2px 6px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
    margin: 0 0 0.5rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }
strong { font-weight: 700; }

.content-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary); color: #fff; padding: 0.75rem 1rem;
    border-radius: 0 0 var(--radius) 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================= HEADER ============================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border-radius: 0.7rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}
.brand-accent { color: var(--primary); }
.brand-text small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-subtle);
    letter-spacing: 0.01em;
    margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.15s, background-color 0.15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-muted); }
.main-nav a.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { text-align: center; padding: 0.75rem; }
}

@media (max-width: 640px) {
    .header-container { flex-direction: row; }
}

/* ============================= HERO ============================= */
.hero-section {
    position: relative;
    padding: 4.5rem 1rem 3.5rem;
    text-align: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 320px at 50% -10%, rgba(37, 99, 235, 0.14), transparent 70%),
        radial-gradient(500px 260px at 50% 110%, rgba(79, 70, 229, 0.10), transparent 70%);
    pointer-events: none;
}

.hero-title {
    position: relative;
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.9rem;
    background: linear-gradient(120deg, #14181f, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

/* ============================= SEARCH ============================= */
.hero-search-form {
    position: relative;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    padding: 0.35rem;
}
.search-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.7rem 1.25rem;
    font-size: 1.05rem;
    outline: none;
    color: var(--text);
}
.search-input::placeholder { color: var(--text-subtle); }
.search-btn {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: 0;
    padding: 0.7rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.12s, box-shadow 0.12s;
}
.search-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4); }
.search-btn:active { transform: translateY(0); }

/* ============================= SECTIONS ============================= */
.home-section { margin: 2.5rem 0; }

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.section-title--danger { color: var(--dangerous); }

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.25rem;
}

.report-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.report-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.report-card--danger { border-left: 4px solid var(--dangerous); }

.report-number {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.report-number:hover { color: var(--primary); }

.report-snippet {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.report-snippet--danger { color: var(--dangerous); }

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-subtle);
}

/* ============================= BADGES ============================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
}
.badge-safe { background: var(--safe-soft); color: var(--safe); }
.badge-nuisance { background: var(--nuisance-soft); color: var(--nuisance); }
.badge-dangerous { background: var(--dangerous-soft); color: var(--dangerous); }
.badge-neutral { background: var(--neutral-soft); color: var(--neutral); }

/* ============================= CARDS & LAYOUT ============================= */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.p-6 { padding: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.75rem;
    align-items: start;
}
@media (max-width: 992px) { .grid-layout { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: 0; }
.info-label { color: var(--text-subtle); font-size: 0.9rem; }
.info-value { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.search-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-item {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}
.search-item:hover { border-color: var(--primary); color: var(--primary); }

/* ============================= PHONE REPORT ============================= */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #4f46e5 100%);
    color: #fff;
    padding: 2.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}
.hero-banner::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-banner h1 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #fff;
    overflow-wrap: anywhere;
}
.hero-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; position: relative; z-index: 1; }
.hero-banner .badge { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero-location { font-size: 0.95rem; font-weight: 500; opacity: 0.95; }

.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}
@media (max-width: 640px) { .hero-meta { grid-template-columns: 1fr 1fr; } }

.meta-item {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 0.6rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.meta-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}
.meta-value { font-size: 0.95rem; font-weight: 700; overflow-wrap: anywhere; }

.page-breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin: 1rem 0 1.5rem;
}
.page-breadcrumbs a { color: var(--primary); font-weight: 500; }
.page-breadcrumbs .sep { margin: 0 0.5rem; }

.success-alert {
    background: var(--safe-soft);
    color: var(--safe);
    border: 1px solid rgba(22, 163, 74, 0.25);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.error-alert {
    background: var(--dangerous-soft);
    color: var(--dangerous);
    border: 1px solid rgba(220, 38, 38, 0.25);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* --- Reports list --- */
.report-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.9rem;
    background: var(--surface);
}
.report-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem 1rem;
    margin-bottom: 0.6rem;
}
.report-user { display: flex; align-items: center; gap: 0.7rem; }
.comment-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.reporter-name { font-weight: 700; font-size: 0.95rem; }
.report-date { font-size: 0.78rem; color: var(--text-subtle); }
.report-comment { line-height: 1.6; font-size: 0.95rem; }

.no-data-msg { color: var(--text-subtle); text-align: center; padding: 2rem 0; }

/* ============================= FORMS ============================= */
.report-form { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.9rem; }

.form-control, .form-textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.captcha-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.captcha-image {
    display: block;
    width: 120px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    flex-shrink: 0;
}
.captcha-input { flex: 1 1 140px; max-width: 180px; }

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: 0;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.38); }

.radio-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (min-width: 768px) { .radio-group { grid-template-columns: repeat(4, 1fr); } }
.radio-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group label {
    display: block;
    padding: 0.7rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    background: #fff;
    transition: all 0.15s;
}
.radio-group label:hover { border-color: var(--border-strong); }
.radio-group label.lbl-unknown { background: var(--neutral-soft); color: var(--text); border-color: var(--border); }
.radio-group label.lbl-scam { background: var(--dangerous); color: #fff; border-color: var(--dangerous); }
.radio-group label.lbl-spam { background: var(--nuisance); color: #fff; border-color: var(--nuisance); }
.radio-group label.lbl-safe { background: var(--safe); color: #fff; border-color: var(--safe); }
.radio-group input:checked + label {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
    font-weight: 700;
}
.radio-group input:focus-visible + label {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.cta-crystal {
    display: block;
    text-align: center;
    padding: 0.9rem;
    border-radius: var(--radius);
    font-weight: 700;
    margin-top: 1rem;
    color: var(--primary);
    background-image: linear-gradient(120deg, #eef4ff 0%, #d9e6ff 40%, #b7ceff 72%, #eef4ff 100%);
    background-size: 260% 260%;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
    animation: cta-crystal-flow 18s ease-in-out infinite;
    will-change: background-position, box-shadow;
}

/* Very slow light-blue -> deeper-blue "breathing" loop. */
@keyframes cta-crystal-flow {
    0%   { background-position: 0% 50%;   box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1); }
    50%  { background-position: 100% 50%; box-shadow: 0 12px 30px -12px rgba(37, 99, 235, 0.6); }
    100% { background-position: 0% 50%;   box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1); }
}

.cta-crystal:hover {
    color: #fff;
    background-image: linear-gradient(120deg, #2563eb 0%, #1d4ed8 100%);
    animation-play-state: paused;
    box-shadow: 0 14px 32px -12px rgba(37, 99, 235, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .cta-crystal { animation: none; }
}

.similar-list { list-style: none; padding: 0; margin: 0; }
.similar-list li { margin-bottom: 0.5rem; }
.similar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.15s, background-color 0.15s;
}
.similar-item:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }

/* ============================= GENERIC PAGE CONTENT ============================= */
.legacy-page { padding: 2rem 0 1rem; }
.page-hero { margin-bottom: 1.5rem; }
.page-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #14181f, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legacy-page-content { max-width: 860px; }
.legacy-page-content--wide { max-width: 1080px; }
.lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.75rem; }

.legacy-page-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.legacy-page-content h3 { font-size: 1.1rem; margin-top: 1.25rem; }

.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.code-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.code-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.code-card strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.code-card span { font-size: 0.9rem; color: var(--text-muted); }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.1rem;
    margin: 1.5rem 0;
}
.guide-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    color: var(--text);
    box-shadow: var(--shadow-xs);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
a.guide-card:hover { color: var(--text); border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.guide-card .badge { margin-bottom: 0.65rem; }
.guide-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.guide-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.1rem;
    margin: 1.5rem 0;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
}
.content-card h3 { margin-bottom: 0.5rem; }
.content-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

.steps {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}
.steps li { margin-bottom: 0.6rem; }

.tip {
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
}

.muted-note { color: var(--text-subtle); font-size: 0.9rem; }

/* ============================= FOOTER ============================= */
.footer {
    background: #0f1420;
    color: #cbd2de;
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 0 1.25rem;
}
@media (max-width: 768px) { .footer-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-container { grid-template-columns: 1fr; } }

.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 1.1rem;
    font-weight: 700;
}
.footer-col h3 { font-size: 1.1rem; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: #8b95a7; }
.footer-col p { font-size: 0.9rem; color: #a7b0bf; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #cbd2de; font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem 1.25rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b95a7;
    font-size: 0.85rem;
}

/* ============================= HOME INTRO / FAQ ============================= */
.home-section--intro {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-xs);
}
.home-section--intro > p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Area code boxes (home page) */
.code-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 1rem 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.code-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text);
}
.code-box strong { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.code-box span { font-size: 0.82rem; color: var(--text-muted); }

/* ============================= 404 PAGE ============================= */
.notfound-section {
    max-width: 720px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1.25rem;
}
.notfound-code {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #cbd5e1, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}
.notfound-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.notfound-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 2rem;
}
.notfound-search {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.notfound-search h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.notfound-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto 2rem;
}
@media (max-width: 480px) { .notfound-links { grid-template-columns: 1fr; } }
.notfound-links a {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.notfound-links a:hover { border-color: var(--primary); box-shadow: var(--shadow-md); color: var(--primary); }
.notfound-help { color: var(--text-subtle); font-size: 0.9rem; }

/* ============================= SINGLE POST (GUIDES) ============================= */
.single-post { padding: 2rem 0 1rem; }
.post-meta {
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}
.article-body {
    max-width: 860px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xs);
    line-height: 1.7;
    color: var(--text);
}
.article-body h2 { font-size: 1.5rem; margin: 1.75rem 0 0.75rem; color: var(--text); }
.article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.article-body h4 { font-size: 1rem; }
.article-body p { margin-bottom: 1rem; color: #374151; }
.article-body ul, .article-body ol { margin-bottom: 1rem; padding-left: 1.25rem; color: #374151; }
.article-body li { margin-bottom: 0.4rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.article-body table th, .article-body table td { padding: 0.6rem 0.75rem; border: 1px solid var(--border); text-align: left; }
.article-body table th { background: var(--surface-muted); font-weight: 700; }
.article-body a { text-decoration: underline; }

.single-post-footer {
    max-width: 860px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.back-link {
    font-weight: 600;
    color: var(--primary);
}
.back-link:hover { color: var(--primary-hover); }

/* ============================= MOBILE FIXES ============================= */
/* Keep media, embeds and wide content from forcing horizontal scroll. */
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
.article-body table, .legacy-page-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
pre { overflow-x: auto; }
.report-card, .guide-card, .faq-item, .content-card, .card, .code-card, .code-box { min-width: 0; }

@media (max-width: 640px) {
    .content-container { padding: 0 1rem; }

    /* Home — hero + search */
    .hero-section { padding: 3rem 1rem 2.5rem; }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: 2rem; }
    .hero-search-form {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .search-input { text-align: center; padding: 0.7rem 0.9rem; }
    .search-btn { width: 100%; padding: 0.8rem 1rem; }
    .section-title { font-size: 1.35rem; }

    /* Phone page */
    .hero-banner { padding: 1.4rem; margin: 1.25rem 0; }
    .hero-banner h1 { font-size: 1.7rem; }
    .hero-meta { gap: 0.5rem; margin-top: 1.1rem; }
    .meta-item { padding: 0.55rem 0.7rem; }
    .p-6 { padding: 1.15rem; }
    .report-item { padding: 1rem; }
    .report-header { flex-direction: column; }
    .report-date { align-self: flex-start; }
    .captcha-image { width: 108px; height: 36px; }
    .captcha-input { max-width: none; }
    .btn-submit { padding: 0.85rem 1rem; }

    /* Content */
    .article-body { padding: 1.25rem; }
    .page-title { font-size: 1.75rem; }
    .notfound-code { font-size: 4.5rem; }
}

@media (max-width: 400px) {
    .brand-text small { display: none; }
    .hero-banner h1 { font-size: 1.5rem; }
}

/* ============================= COOKIE CONSENT BANNER ============================= */
.footer-bottom a { color: #9fb4ff; }
.footer-bottom a:hover { color: #fff; }

.pl-consent {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 400;
    display: none;
    padding: 1rem;
}
.pl-consent.is-visible { display: block; }
.pl-consent__inner {
    max-width: 1180px;
    margin: 0 auto;
    background: #0f1420;
    color: #e5e9f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.pl-consent__text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #cbd2de; flex: 1 1 420px; }
.pl-consent__text a { color: #7aa7ff; text-decoration: underline; }
.pl-consent__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; flex-shrink: 0; }
.pl-consent__btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #e5e9f0;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.pl-consent__btn:hover { background: rgba(255, 255, 255, 0.1); }
.pl-consent__btn--accept { background: var(--primary); border-color: var(--primary); color: #fff; }
.pl-consent__btn--accept:hover { background: var(--primary-hover); }

@media (max-width: 560px) {
    .pl-consent { padding: 0.5rem; }
    .pl-consent__inner { padding: 1rem; }
    .pl-consent__actions { width: 100%; }
    .pl-consent__btn { flex: 1 1 auto; }
}

