/* ============================================================
   NEWUI - Number Lookup Portal
   Design: Flat Minimal | Light Mode | Mobile-First
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Custom Properties ───────────────────────────────────────── */
:root {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --border: #dde3ec;
    --border-focus: #4f7aff;
    --blue: #4f7aff;
    --blue-dim: rgba(79, 122, 255, 0.08);
    --blue-glow: rgba(79, 122, 255, 0.18);
    --blue-dark: #3a62e0;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --green-border: rgba(22, 163, 74, 0.25);
    --red: #dc2626;
    --red-bg: #fff1f2;
    --red-border: rgba(220, 38, 38, 0.2);
    --white: #ffffff;
    --ink: #0f172a;
    --ink-2: #334155;
    --ink-3: #64748b;
    --ink-4: #94a3b8;
    --ink-5: #cbd5e1;
    --font-ui: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.05);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { font-size: 16px; scroll-behavior: smooth; }

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
}

/* Subtle grid pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 122, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 122, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Top accent line */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, #818cf8 50%, #a78bfa 100%);
    z-index: 200;
}

/* ── Layout ──────────────────────────────────────────────────── */
.page-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Extra bottom padding so content never hides behind fixed footer */
    padding: 0 0 80px;
    background: var(--bg);
}

/* ── Top bar ─────────────────────────────────────────────────── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(79, 122, 255, 0.3);
}

.brand-icon svg { width: 18px; height: 18px; fill: #fff; }

.brand-name {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.topbar-pill {
    background: var(--blue-dim);
    border: 1px solid rgba(79, 122, 255, 0.2);
    border-radius: 30px;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── Main body ───────────────────────────────────────────────── */
.main-area {
    flex: 1;
    padding: 24px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Section label ───────────────────────────────────────────── */
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--ink-4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-tag::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Stats strip ─────────────────────────────────────────────── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-box {
    padding: 16px 10px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-box:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 3px;
}

.stat-lbl {
    font-size: 0.62rem;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ── Search form card ────────────────────────────────────────── */
.search-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: visible;
}

.search-card-inner { padding: 22px 18px; }

.search-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 6px;
}

.search-headline em {
    font-style: normal;
    color: var(--blue);
}

.search-sub {
    font-size: 0.82rem;
    color: var(--ink-3);
    line-height: 1.55;
    margin-bottom: 22px;
}

/* Input row */
.input-row {
    display: flex;
    align-items: stretch;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: visible;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.input-row:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
    background: var(--white);
}

.country-picker { position: relative; flex-shrink: 0; }

.country-picker select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-right: 1.5px solid var(--border);
    outline: none;
    padding: 0 30px 0 12px;
    height: 52px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    width: 98px;
}

.country-picker select option {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-mono);
}

.country-caret {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--ink-4);
    line-height: 1;
}

.country-caret svg { width: 12px; height: 12px; fill: currentColor; }

.phone-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 14px;
    height: 52px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-width: 0;
}

.phone-field::placeholder { color: var(--ink-5); font-weight: 400; }

/* Search button */
.btn-search {
    width: 100%;
    height: 52px;
    background: var(--blue);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 4px 14px rgba(79, 122, 255, 0.35);
}

.btn-search:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(79,122,255,0.45); }
.btn-search:active { transform: scale(0.98); box-shadow: none; }
.btn-search svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Error card ──────────────────────────────────────────────── */
.error-card {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.error-card .err-icon { flex-shrink: 0; width: 18px; height: 18px; fill: var(--red); margin-top: 1px; }
.error-card .err-title { font-size: 0.82rem; font-weight: 700; color: var(--red); margin-bottom: 2px; }
.error-card .err-msg { font-size: 0.78rem; color: #991b1b; line-height: 1.45; }

/* ── ─────────────────────────────────────────────────────────── */
/* ── FULLSCREEN IMAGE OVERLAY (Pure CSS :target trick) ──────── */
/* ── ─────────────────────────────────────────────────────────── */

.img-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.94);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    cursor: zoom-out;
    animation: overlay-in 0.25s ease;
}

/* Show overlay when its ID is in the URL hash (:target) */
.img-overlay:target {
    display: flex;
}

@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.img-overlay-img {
    max-width: min(90vw, 380px);
    max-height: 72vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: img-zoom-in 0.28s cubic-bezier(0.34,1.5,0.64,1);
    cursor: default;
    border: 3px solid rgba(255,255,255,0.12);
}

/* Initials placeholder fullscreen version */
.img-overlay-initials {
    width: min(72vw, 260px);
    height: min(72vw, 260px);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--blue-dim) 0%, rgba(79,122,255,0.15) 100%);
    border: 3px solid rgba(79,122,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: clamp(3rem, 16vw, 5rem);
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    animation: img-zoom-in 0.28s cubic-bezier(0.34,1.5,0.64,1);
}

@keyframes img-zoom-in {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.img-overlay-name {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    max-width: 80vw;
    line-height: 1.3;
}

.img-overlay-close {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    transition: color 0.2s, border-color 0.2s;
}

.img-overlay-close:hover {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.35);
}

.img-overlay-close svg {
    width: 13px; height: 13px; fill: currentColor;
}

/* ── ─────────────────────────────────────────────────────────── */
/* ── LOADING OVERLAY ────────────────────────────────────────── */
/* ── ─────────────────────────────────────────────────────────── */

.loading-overlay {
    display: none;          /* shown via inline JS on submit */
    position: fixed;
    inset: 0;
    background: rgba(240, 244, 248, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 500;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-overlay.visible {
    display: flex;
    animation: overlay-in 0.2s ease;
}

/* Spinner ring */
.ld-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.ld-ring::before,
.ld-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

/* Outer track */
.ld-ring::before {
    inset: 0;
    border: 4px solid var(--border);
}

/* Spinning arc */
.ld-ring::after {
    inset: 0;
    border: 4px solid transparent;
    border-top-color: var(--blue);
    animation: ld-spin 0.75s linear infinite;
}

@keyframes ld-spin {
    to { transform: rotate(360deg); }
}

/* Inner bouncing dots */
.ld-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ld-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    animation: ld-bounce 1.2s ease-in-out infinite;
}

.ld-dots span:nth-child(1) { animation-delay: 0s; }
.ld-dots span:nth-child(2) { animation-delay: 0.2s; }
.ld-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ld-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1.1); opacity: 1;   }
}

.ld-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ld-sublabel {
    font-size: 0.78rem;
    color: var(--ink-4);
    text-align: center;
    margin-top: -12px;
}

/* ── Progress bar at top ─────────────────────────────────────── */
.ld-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--blue);
    width: 0%;
    z-index: 501;
    animation: ld-progress 3s cubic-bezier(0.1, 0.4, 0.8, 1) forwards;
}

@keyframes ld-progress {
    0%   { width: 0%; }
    60%  { width: 75%; }
    90%  { width: 88%; }
    100% { width: 92%; } /* stops just before 100 — PHP will finish the rest */
}

/* ── Results Layout ──────────────────────────────────────────── */
.result-hero {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.result-hero::before {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, #818cf8 100%);
}

/* Profile section */
.result-profile {
    padding: 22px 18px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--blue-dim) 0%, transparent 60%);
}

/* Clickable avatar link wrapper */
.avatar-link {
    display: block;
    flex-shrink: 0;
    cursor: zoom-in;
    text-decoration: none;
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.avatar-link:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(79, 122, 255, 0.25);
}

.avatar-link:active {
    transform: scale(0.97);
}

/* Zoom hint badge on avatar */
.avatar-link::after {
    content: '⤢';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(79,122,255,0.85);
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.avatar-link:hover::after { opacity: 1; }

.result-avatar {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    background: var(--blue-dim);
    border: 2px solid rgba(79, 122, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.result-avatar img { width: 100%; height: 100%; object-fit: cover; }

.result-name-block { flex: 1; min-width: 0; }

.result-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    word-break: break-word;
    margin-bottom: 7px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: 30px;
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.result-badge .dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Data rows */
.result-data { padding: 0; }

.data-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
}

.data-item:last-child { border-bottom: none; }

.data-icon {
    width: 34px;
    height: 34px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.data-icon svg { width: 14px; height: 14px; fill: var(--ink-3); }

.data-content { flex: 1; min-width: 0; }

.data-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--ink-4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.data-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
    line-height: 1.3;
}

.data-value.mono {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--blue);
}

/* Timestamp strip */
.query-stamp {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-4);
}

.query-stamp svg { width: 12px; height: 12px; fill: var(--ink-4); flex-shrink: 0; }

/* Action buttons */
.result-actions {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    background: #25d366;
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover { filter: brightness(1.06); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.btn-whatsapp:active { transform: scale(0.98); box-shadow: none; }
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }

.btn-new-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink-3);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-new-search:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
.btn-new-search svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Not Found ───────────────────────────────────────────────── */
.not-found-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.not-found-icon {
    width: 56px;
    height: 56px;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.not-found-icon svg { width: 26px; height: 26px; fill: var(--red); }
.not-found-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.not-found-sub { font-size: 0.82rem; color: var(--ink-3); line-height: 1.55; margin-bottom: 22px; }

/* ── Footer — Professional fixed bar ─────────────────────────── */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    z-index: 90;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -1px 0 var(--border), 0 -8px 24px rgba(15,23,42,0.05);
    padding: 0 18px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left: Brand mark */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.footer-brand-icon {
    width: 22px;
    height: 22px;
    background: var(--blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-brand-icon svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

.footer-brand-name {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Vertical divider */
.footer-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    flex-shrink: 0;
}

/* Right: Developer + contact */
.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-dev-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0px;
}

.footer-dev-label {
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--ink-4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.footer-dev-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: 0.2px;
}

/* WhatsApp contact icon-button */
.footer-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0fdf4;
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.footer-wa:hover {
    background: #dcfce7;
    border-color: rgba(22, 163, 74, 0.4);
}

.footer-wa svg {
    width: 16px;
    height: 16px;
    fill: #16a34a;
}


/* ── Cache status badge ──────────────────────────────────────── */
.cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.cache-badge.fresh {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green);
}

.cache-badge.expired {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    color: var(--red);
}

.cache-badge.refreshing {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #b45309;
}

.cache-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 375px) {
    .search-headline { font-size: 1.3rem; }
    .country-picker select { width: 84px; font-size: 0.76rem; padding: 0 26px 0 10px; }
    .phone-field { font-size: 0.9rem; padding: 0 10px; }
    .footer-wa { padding: 6px 10px; font-size: 0.68rem; }
}

@media (min-width: 430px) {
    .page-shell {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    /* On wider screens, footer is constrained with page-shell */
    .site-footer {
        left: 50%;
        transform: translateX(-50%);
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}

/* ── Utility ─────────────────────────────────────────────────── */
input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button { -webkit-appearance: none; }
select:focus, input:focus { outline: none; }
