/* =====================================================================
   NAMOGURU — MAIN STYLESHEET v2
   Dark, elegant astrology aesthetic. Theme via [data-theme] on <html>.
   Category accent colors (love=pink, general=gold, tantrik=violet)
   are applied via a class on <body>: .accent-love / .accent-general / .accent-tantrik
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --radius: 16px;
    --shadow: 0 12px 32px rgba(0,0,0,0.35);
}

[data-theme="dark"] {
    --bg: #120A19;
    --bg-alt: #1B1027;
    --bg-deep: #0C0710;
    --text: #F5EFFC;
    --text-muted: #B3A3C7;
    --primary: #8B4FD9;
    --primary-dark: #6B2FB8;
    --accent: #D4AF37;
    --accent-soft: #E8C158;
    --pink: #E85D8C;
    --card-bg: #1E1430;
    --card-bg-alt: #251A38;
    --border: #34273F;
    --success: #3FBF83;
}

[data-theme="light"] {
    --bg: #FBF7F2;
    --bg-alt: #FFFFFF;
    --bg-deep: #F1E9F9;
    --text: #251A33;
    --text-muted: #6B5F7A;
    --primary: #6B21A8;
    --primary-dark: #4C1580;
    --accent: #B8860B;
    --accent-soft: #D4AF37;
    --pink: #C23566;
    --card-bg: #FFFFFF;
    --card-bg-alt: #F7F2FB;
    --border: #E9E1F0;
    --success: #1E8E5A;
}

/* Per-category accent override, used on landing pages */
body.accent-love { --accent: var(--pink); }
body.accent-general { --accent: #D4AF37; }
body.accent-tantrik { --accent: #A05CE0; }

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: var(--accent); color: #201731; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body {
    font-family: var(--font-body);
    background: var(--bg);
    background-image:
        radial-gradient(1.5px 1.5px at 8% 12%, rgba(212,175,55,0.35) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 22% 38%, rgba(139,79,217,0.30) 50%, transparent 51%),
        radial-gradient(1px 1px at 35% 8%, rgba(212,175,55,0.25) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 52% 24%, rgba(139,79,217,0.25) 50%, transparent 51%),
        radial-gradient(1px 1px at 68% 6%, rgba(212,175,55,0.3) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 78% 32%, rgba(139,79,217,0.2) 50%, transparent 51%),
        radial-gradient(1px 1px at 91% 14%, rgba(212,175,55,0.3) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 15% 62%, rgba(139,79,217,0.2) 50%, transparent 51%),
        radial-gradient(1px 1px at 46% 78%, rgba(212,175,55,0.22) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 85% 68%, rgba(139,79,217,0.22) 50%, transparent 51%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}
[data-theme="light"] body { background-image: none; }

a { color: var(--accent); text-decoration: none; position: relative; }
a.underline-fx { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: left bottom; transition: background-size 0.25s ease; }
a.underline-fx:hover { background-size: 100% 1.5px; }

/* ---------- ORNAMENTAL SECTION DIVIDER ---------- */
.ornament-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 34px; max-width: 320px; }
.ornament-divider::before, .ornament-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border)); }
.ornament-divider::after { background: linear-gradient(90deg, var(--border), transparent); }
.ornament-divider span { color: var(--accent); font-size: 15px; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text); line-height: 1.25; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- HEADER ---------- */
.site-header {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; flex-wrap: wrap; gap: 10px; }
.logo { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--text); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px;
}
.icon-btn:hover { border-color: var(--accent); }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #201731 !important;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-size: 15px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,175,55,0.3); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text) !important;
}
.btn-outline:hover { border-color: var(--accent); }
.btn-primary { background: var(--primary); color: #fff !important; }

/* ---------- HERO (2-column: text left, form card right) ---------- */
.hero {
    padding: 70px 0 50px;
    background: radial-gradient(circle at 15% 20%, rgba(139,79,217,0.16), transparent 55%),
                radial-gradient(circle at 85% 60%, rgba(212,175,55,0.10), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 40px; margin-bottom: 16px; }
.hero h1 .highlight { color: var(--accent); display: block; }
.hero p.sub { color: var(--text-muted); font-size: 17px; max-width: 480px; margin-bottom: 22px; }
.hero-bullets { list-style: none; margin-bottom: 26px; }
.hero-bullets li { padding: 6px 0; color: var(--text); font-size: 15px; }
.hero-bullets li:before { content: "♥ "; color: var(--accent); margin-right: 6px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.privacy-note { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* ---------- SIDEBAR CONSULTATION FORM CARD ---------- */
.consult-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.consult-card::before {
    content: "✦"; position: absolute; top: 14px; right: 18px; color: var(--accent);
    opacity: 0.5; font-size: 18px;
}
.consult-card::after {
    content: ""; position: absolute; bottom: -40px; right: -40px; width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(212,175,55,0.12), transparent 70%); pointer-events: none;
}
.consult-card h3 { font-size: 20px; margin-bottom: 4px; }
.consult-card .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.consult-toggle { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--border); }
.consult-toggle button {
    flex: 1; padding: 10px; border: none; background: transparent; border-radius: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.consult-toggle button.active { background: var(--accent); color: #201731; }
.consult-badge {
    display: inline-block; background: var(--bg); border: 1px solid var(--accent); color: var(--accent);
    font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 10px; margin-bottom: 18px; width: 100%; text-align: center; box-sizing: border-box;
}
.price-note { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

/* ---------- DOB / PALM-READING TOGGLE ---------- */
.birth-toggle { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin: 6px 0 12px; border: 1px solid var(--border); }
.birth-toggle button {
    flex: 1; padding: 9px 6px; border: none; background: transparent; border-radius: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--text-muted); cursor: pointer;
}
.birth-toggle button.active { background: var(--accent); color: #201731; }
.birth-fields-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.form-group input[type="file"] {
    padding: 10px; background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; font-size: 13px; color: var(--text-muted);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- PAYMENT QR & PROOF UPLOAD ---------- */
.payment-proof-section { border: 1px dashed var(--accent); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: var(--bg); }
.qr-box { text-align: center; margin-bottom: 10px; }
.qr-box img {
    display: inline-block; width: 150px; height: 150px; object-fit: contain;
    border-radius: 8px; border: 1px solid var(--border); background: #fff; padding: 8px;
}
.consult-card .lock-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 14px; }

/* ---------- TRUST ICON ROW ---------- */
.trust-row { padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-deep); }
.trust-row .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; text-align: center; }
.trust-item { flex: 1; min-width: 130px; }
.trust-item .ic {
    width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 10px;
    background: conic-gradient(from 200deg, var(--accent), var(--primary), var(--accent));
    padding: 2px; display: flex; align-items: center; justify-content: center;
}
.trust-item .ic::before {
    content: attr(data-ic); width: 100%; height: 100%; border-radius: 50%;
    background: var(--bg-deep); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.trust-item p { font-size: 13px; color: var(--text-muted); }

/* ---------- SECTIONS ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title .eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.section-title .eyebrow::before { content: "✦ "; }
.section-title .eyebrow::after { content: " ✦"; }
.section-title h2 { font-size: 32px; margin-top: 8px; }
.section-title p { color: var(--text-muted); margin-top: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(0,0,0,0.25); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14px; }
.card .learn-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
.card-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px; color: #fff;
}

/* ---------- ABOUT / STATS ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card-bg-alt); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.play-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #201731; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.4); transition: transform 0.2s ease; }
.about-media:hover .play-btn { transform: scale(1.08); }
.about-eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.about-grid h2 { font-size: 30px; margin: 8px 0 14px; }
.about-grid p.desc { color: var(--text-muted); margin-bottom: 18px; }
.about-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.about-checks span { font-size: 14px; }
.about-checks span:before { content: "✓ "; color: var(--success); font-weight: 700; }
.stat-mini-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.stat-mini { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; position: relative; }
.stat-mini .num { font-size: 24px; font-weight: 700; color: var(--accent); font-family: var(--font-heading); }
.stat-mini .num::after { content: ""; display: block; width: 22px; height: 2px; background: var(--accent); margin: 6px auto 0; opacity: 0.6; }
.stat-mini .label { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---------- TESTIMONIAL CAROUSEL ---------- */
.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.4s ease; }
.testimonial-slide { min-width: 100%; padding: 0 6px; }
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: left; max-width: 640px; margin: 0 auto; }
.stars { color: var(--accent); margin-bottom: 12px; font-size: 15px; }
.testimonial-card .quote { font-size: 16px; color: var(--text); }
.testimonial-card .who { margin-top: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; }
.carousel-dots button.active { background: var(--accent); width: 22px; border-radius: 5px; }

/* ---------- BOTTOM CTA BANNER ---------- */
.cta-banner { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); border-radius: var(--radius); padding: 34px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin: 0 20px 60px; max-width: 1140px; margin-left: auto; margin-right: auto; }
.cta-banner h3 { color: #fff; font-size: 22px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 4px; }
.cta-banner .actions { display: flex; gap: 12px; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff !important; }
.guarantee-badge {
    width: 88px; height: 88px; border-radius: 50%; border: 3px solid #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(0,0,0,0.15);
}
.guarantee-badge .gb-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.guarantee-badge .gb-num { font-weight: 800; font-size: 18px; color: #fff; font-family: var(--font-heading); }
.guarantee-badge .gb-label { font-size: 9px; letter-spacing: 0.5px; color: rgba(255,255,255,0.8); text-transform: uppercase; margin-top: 2px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 14px; color: var(--accent); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-grid a, .footer-grid p { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* ---------- FORMS (auth pages) ---------- */
.form-page { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 20px; }
.form-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.form-card h2 { text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-footer { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #3A1520; color: #FF8FA3; }
.alert-success { background: #143A28; color: #6EE7B7; }

.lead-form { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* ---------- MY APPOINTMENTS (customer status history) ---------- */
.appointment-list { display: flex; flex-direction: column; gap: 18px; }
.appointment-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.appointment-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.appointment-top h3 { font-size: 17px; }
.appointment-date { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.appointment-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.appointment-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }

.appointment-progress { display: flex; align-items: center; gap: 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.progress-step:not(:last-child)::after {
    content: ""; position: absolute; top: 7px; left: 55%; width: 90%; height: 2px; background: var(--border); z-index: 0;
}
.progress-step .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--border); border: 2px solid var(--border); z-index: 1; margin-bottom: 6px; }
.progress-step .step-label { font-size: 11px; color: var(--text-muted); text-align: center; }
.progress-done .dot { background: var(--success); border-color: var(--success); }
.progress-done:not(:last-child)::after { background: var(--success); }
.progress-done .step-label { color: var(--success); font-weight: 600; }
.progress-lost .dot { background: #D92D20; border-color: #D92D20; }
.progress-lost .step-label { color: #D92D20; }

.badge.status-new { background: #E8E1FA; color: #6B21A8; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.status-contacted { background: #FFF3D6; color: #92660A; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.status-consulted { background: #D6EEFF; color: #0A6392; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.status-converted { background: #D6F7E4; color: #067647; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.status-lost { background: #FDE8E8; color: #B42318; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* ---------- CHAT WIDGET ---------- */
#chat-toggle {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    background: var(--accent); color: #201731; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 26px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.35); border: none;
}
#chat-box {
    position: fixed; bottom: 96px; right: 24px; width: 340px; max-width: 90vw; height: 460px;
    background: var(--card-bg); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: none; flex-direction: column; overflow: hidden; z-index: 999; border: 1px solid var(--border);
}
#chat-box.open { display: flex; }
.chat-header { background: var(--primary); color: #fff; padding: 14px 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.chat-messages { flex: 1; padding: 14px; overflow-y: auto; font-size: 14px; }
.chat-msg { margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; max-width: 80%; }
.chat-msg.user { background: var(--accent); color: #201731; margin-left: auto; border-bottom-right-radius: 2px; }
.chat-msg.bot, .chat-msg.agent { background: var(--bg); color: var(--text); border-bottom-left-radius: 2px; white-space: pre-line; }
.chat-msg.agent { border-left: 3px solid var(--accent); }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.chat-quick-btn {
    background: var(--bg); border: 1px solid var(--accent); color: var(--accent);
    font-size: 12px; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-family: var(--font-body);
}
.chat-quick-btn:hover { background: var(--accent); color: #201731; }
.chat-input-area { display: flex; align-items: center; border-top: 1px solid var(--border); }
.chat-attach-btn { cursor: pointer; padding: 0 6px 0 12px; font-size: 17px; display: flex; align-items: center; color: var(--text-muted); }
.chat-attach-btn:hover { color: var(--accent); }
.chat-msg-image { padding: 6px; background: transparent; }
.chat-msg-image img {
    display: block; width: 140px; height: 140px; object-fit: contain;
    border-radius: 10px; border: 1px solid var(--border); background: #fff; padding: 6px;
}
.chat-input-area input { flex: 1; border: none; padding: 12px; background: transparent; color: var(--text); font-family: var(--font-body); }
.chat-input-area input:focus { outline: none; }
.chat-input-area button { background: var(--accent); color: #201731; border: none; padding: 0 18px; cursor: pointer; font-weight: 700; }

/* ---------- POPUP ---------- */
#site-popup-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000;
    display: none; align-items: center; justify-content: center;
}
#site-popup-overlay.open { display: flex; }
.site-popup { background: var(--card-bg); border-radius: 16px; max-width: 420px; width: 90%; padding: 32px; text-align: center; position: relative; border: 1px solid var(--border); }
.site-popup img { max-width: 100%; border-radius: 10px; margin-bottom: 16px; }
.popup-cta-btn { display: inline-block; margin-top: 18px; }

/* ---------- ABOUT US VIDEO MODAL ---------- */
.video-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.video-modal-overlay.open { display: flex; }
.video-modal-box { position: relative; width: 100%; max-width: 780px; }
.video-modal-close {
    position: absolute; top: -40px; right: 0; background: none; border: none;
    color: #fff; font-size: 32px; cursor: pointer; line-height: 1;
}
.popup-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }

@media (max-width: 900px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .stat-mini-grid { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size: 30px; }
    .nav-links { display: none; }
    .trust-row .container { justify-content: flex-start; }
    .cta-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
    .cta-banner .actions { justify-content: center; width: 100%; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero { padding: 50px 0 36px; }
    .hero h1 { font-size: 25px; }
    .hero p.sub { font-size: 15px; }
    .consult-card { padding: 22px 18px; }
    .section { padding: 46px 0; }
    .section-title h2 { font-size: 24px; }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .icon-strip { gap: 20px 14px; }
    .icon-strip-item { width: 84px; }
    .icon-circle { width: 54px; height: 54px; font-size: 22px; }
    .about-checks { grid-template-columns: 1fr; }
    .header-actions { gap: 6px; }
    .header-actions .btn { padding: 9px 12px; font-size: 13px; }
    .my-appointments-label-full { display: none; }
    .icon-btn { width: 34px; height: 34px; font-size: 14px; }
    #chat-box { width: 92vw; right: 4vw; height: 68vh; bottom: 88px; }
    #chat-toggle { width: 54px; height: 54px; font-size: 22px; bottom: 18px; right: 18px; }
    .testimonial-card { padding: 22px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .cta-banner h3 { font-size: 19px; }
}
