/* ═══ One Matrimony — Color Palette ═══ */
:root {
    --gold: #C9A227;
    --amber: #B8911E;
    --purple: #4A1A6B;
    --magenta: #7F0E61;
    --pink: #BD3582;
    --purple-light: #6B2D9B;
    --pink-light: #D456A0;
    --gold-light: #F0E4C1;
    --white: #FFFFFF;
    --dark: #1A1025;
    --gray: #6E6478;
    --light-gray: #F8F5FB;
    --border: #E4DCF0;
    --vanilla: #FDF6E3;
    --success: #059669;
    --danger: #DC2626;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* ── Skip to content (accessibility) ── */
.skip-link {
    position: absolute; top: -100px; left: 0; background: var(--purple); color: #fff;
    padding: 12px 24px; z-index: 9999; font-weight: 600; border-radius: 0 0 8px 0;
    transition: top .2s;
}
.skip-link:focus { top: 0; }

a { color: var(--magenta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); }

/* Focus styles for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-content { padding: 40px 0; min-height: calc(100vh - 140px); }

/* ── Navbar ── */
.navbar {
    background: var(--purple);
    padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    height: 80px; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(62,21,99,.35);
}
.navbar .logo { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.navbar .logo span { color: var(--gold); }
.navbar nav { display: flex; gap: 4px; align-items: center; }
.navbar nav a {
    color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; transition: all .2s;
    display: flex; align-items: center; gap: 6px;
}
.navbar nav a:hover, .navbar nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.navbar nav a .nav-icon { font-size: 16px; }
.navbar .hamburger {
    display: none; background: none; border: none; color: #fff;
    font-size: 28px; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px;
}

/* ── Buttons — larger touch targets ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 16px;
    border: none; cursor: pointer; transition: all .2s; text-decoration: none;
    min-height: 48px; /* WCAG touch target */
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-light); color: #fff; box-shadow: 0 4px 16px rgba(62,21,99,.35); }
.btn-secondary { background: var(--magenta); color: #fff; }
.btn-secondary:hover { background: var(--pink); color: #fff; }
.btn-outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-warm { background: var(--gold); color: var(--dark); }
.btn-warm:hover { background: var(--amber); box-shadow: 0 4px 12px rgba(227,154,9,.3); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; min-height: 40px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; }

/* ── Cards — no hover lift on touch devices ── */
.card {
    background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(62,21,99,.06); border: 1px solid var(--border);
    transition: box-shadow .2s;
}
@media (hover: hover) { .card:hover { box-shadow: 0 8px 28px rgba(62,21,99,.12); } }
.card-body { padding: 24px; }
.card-img { width: 100%; height: 240px; object-fit: cover; background: var(--vanilla); }

/* ── Forms — bigger, clearer ── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 600; color: var(--dark);
    margin-bottom: 6px; font-size: 15px;
}
.form-hint { font-size: 13px; color: var(--gray); margin-top: 4px; }
.form-control {
    width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px;
    font-size: 16px; font-family: inherit; transition: border-color .2s, box-shadow .2s;
    background: #fff; min-height: 48px;
}
.form-control:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(189,53,130,.15); }
.form-control::placeholder { color: #B8AEC0; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236E6478' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Alerts ── */
.alert { padding: 14px 20px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; font-size: 15px; }
.alert-error { background: #FDE8F0; color: #9B1C4C; border: 1px solid #F8B4D0; }
.alert-success { background: #DEF7EC; color: #03543F; border: 1px solid #84E1BC; }

/* ── Profile Grid ── */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.profile-card { cursor: pointer; }
.profile-card .card-body { text-align: center; padding: 16px; }
.profile-card .name { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.profile-card .meta { font-size: 14px; color: var(--gray); margin-bottom: 10px; }
.profile-card .compat-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
    background: var(--gold-light); color: var(--purple);
}
.profile-card .card-cta {
    display: block; padding: 12px; text-align: center; background: var(--light-gray);
    color: var(--purple); font-weight: 600; font-size: 14px; border-top: 1px solid var(--border);
}
.avatar-placeholder {
    width: 100%; height: 240px; background: var(--gold-light);
    display: flex; align-items: center; justify-content: center; font-size: 64px; color: var(--purple);
}

/* ── Hero ── */
.hero {
    background: var(--gold);
    color: var(--dark); text-align: center;
    padding: 72px 20px 56px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -60%; right: -10%; width: 500px; height: 500px;
    border-radius: 50%; background: rgba(62,21,99,.06); pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -40%; left: -8%; width: 400px; height: 400px;
    border-radius: 50%; background: rgba(127,14,97,.06); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; line-height: 1.15; color: var(--purple); }
.hero p { font-size: 18px; color: var(--dark); opacity: .8; max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn-primary { background: var(--purple); color: #fff; font-size: 18px; padding: 16px 40px; }
.hero-buttons .btn-primary:hover { background: var(--purple-light); }
.hero-buttons .btn-outline { color: var(--purple); border-color: var(--purple); font-size: 18px; padding: 16px 40px; }
.hero-buttons .btn-outline:hover { background: var(--purple); color: #fff; }
.trust-bar {
    display: flex; justify-content: center; gap: 28px; margin-top: 36px;
    flex-wrap: wrap; font-size: 14px; color: var(--dark); opacity: .7;
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item i { font-size: 18px; color: var(--purple); }

/* ── Stats Counter Bar ── */
.stats-counter {
    background: var(--purple); color: #fff; padding: 36px 20px;
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.counter-item { text-align: center; }
.counter-num { font-size: 36px; font-weight: 800; color: var(--gold); }
.counter-label { font-size: 14px; opacity: .8; margin-top: 2px; }

/* ── Community Cards ── */
.community-card {
    text-align: center; padding: 32px 24px;
    border-left: 4px solid var(--gold);
}
.community-card h3 { color: var(--purple); font-size: 18px; margin-bottom: 6px; }
.community-card p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.community-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 14px;
    font-size: 24px; color: #fff;
}

/* ── Feature Row ── */
.feature-row {
    display: flex; gap: 16px; align-items: start;
    padding: 20px; border-radius: 14px; background: var(--white);
    border: 1px solid var(--border);
}
.feature-row-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--gold-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--purple); font-size: 20px;
}
.feature-row h4 { color: var(--dark); font-size: 16px; margin-bottom: 4px; }
.feature-row p { color: var(--gray); font-size: 14px; margin: 0; line-height: 1.5; }

/* ── CTA Banner ── */
.cta-banner {
    background: var(--purple); color: #fff; border-radius: 20px;
    padding: 56px 32px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -30%; right: -5%; width: 300px; height: 300px;
    border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none;
}
.cta-banner h2 { font-size: 30px; margin-bottom: 10px; position: relative; z-index: 1; }
.cta-banner p { opacity: .85; margin-bottom: 24px; position: relative; z-index: 1; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ── Breadcrumb / Back nav ── */
.back-nav {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gray); font-size: 14px; margin-bottom: 20px;
    padding: 8px 0; min-height: 44px;
}
.back-nav:hover { color: var(--purple); }
.back-nav i { font-size: 16px; }


/* ── Step Indicator ── */
.step-indicator {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 28px;
}
.step-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--border); transition: all .3s;
}
.step-dot.active { background: var(--purple); width: 32px; border-radius: 6px; }
.step-dot.done { background: var(--success); }

/* ── Dashboard Stats ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: var(--white); border-radius: 14px; padding: 20px; text-align: center;
    border: 1px solid var(--border); cursor: default;
}
.stat-card .num { font-size: 32px; font-weight: 800; color: var(--purple); }
.stat-card .label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* ── Filters ── */
.filters-bar {
    background: var(--white); padding: 20px 24px; border-radius: 14px; margin-bottom: 28px;
    display: flex; gap: 12px; flex-wrap: wrap; align-items: end;
    border: 1px solid var(--border);
}
.filters-bar .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }
.filters-bar label { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); }
.filters-bar .form-control { padding: 10px 14px; font-size: 14px; }

/* ── Messages ── */
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-item {
    display: flex; gap: 14px; padding: 16px; border-radius: 12px;
    background: var(--white); border: 1px solid var(--border); align-items: center;
    min-height: 64px;
}
.msg-item:hover { border-color: var(--pink); }
.msg-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-light); flex-shrink: 0; object-fit: cover; }
.msg-info { flex: 1; min-width: 0; }
.msg-name { font-weight: 600; font-size: 16px; }
.msg-preview { font-size: 14px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-unread { background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 10px; }

.chat-box { display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; padding: 20px; background: var(--light-gray); border-radius: 14px; margin-bottom: 16px; }
.chat-msg { max-width: 70%; padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.6; }
.chat-msg.sent { background: var(--purple); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.received { background: var(--white); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg .time { font-size: 12px; opacity: .7; margin-top: 4px; }
.chat-input { display: flex; gap: 10px; }
.chat-input input { flex: 1; }

/* ── Questionnaire ── */
.q-card { background: var(--white); border-radius: 14px; padding: 28px; margin-bottom: 20px; border: 1px solid var(--border); }
.q-card .q-num { font-size: 12px; font-weight: 700; color: var(--magenta); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.q-card h3 { font-size: 18px; color: var(--purple); margin-bottom: 8px; }
.q-card p { color: var(--gray); margin-bottom: 16px; font-size: 15px; }
.q-options label {
    display: block; padding: 14px 18px; border: 2px solid var(--border); border-radius: 12px;
    margin-bottom: 8px; cursor: pointer; transition: all .2s; font-size: 15px;
    min-height: 48px; display: flex; align-items: center;
}
.q-options label:hover { border-color: var(--pink); background: rgba(189,53,130,.05); }
.q-options input[type="radio"] { margin-right: 12px; accent-color: var(--purple); width: 18px; height: 18px; }
.q-options input[type="radio"]:checked + span { font-weight: 600; }

/* ── Footer — with help info ── */
.footer {
    background: var(--dark); color: rgba(255,255,255,.6); text-align: center;
    padding: 32px 20px; font-size: 14px;
}
.footer a { color: var(--gold); }
.footer-help { margin-top: 8px; font-size: 13px; }

/* ── Plan Grid ── */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.plan-card { text-align: center; }

/* ── Responsive ── */
@media (max-width: 768px) {
    body { font-size: 16px; } /* Increased base font size for readability */
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; padding: 0 10px; }
    .hero { padding: 48px 16px 40px; }
    .hero-buttons { flex-direction: column; gap: 12px; width: 100%; padding: 0 10px; }
    .hero-buttons .btn-primary, .hero-buttons .btn-outline { font-size: 16px; padding: 16px 24px; width: 100%; justify-content: center; }
    .trust-bar { gap: 12px; font-size: 13px; justify-content: center; opacity: 0.85; }
    .stats-counter { gap: 24px; padding: 28px 16px; }
    .counter-num { font-size: 28px; }
    .community-card { padding: 24px 18px; }
    .navbar { height: auto; min-height: 72px; padding: 8px 16px; flex-wrap: wrap; }
    .navbar .logo img { height: 48px; }
    .navbar nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: var(--purple); flex-direction: column; padding: 16px; gap: 8px;
        box-shadow: 0 8px 24px rgba(62,21,99,.35); z-index: 1000;
    }
    .navbar nav.open { display: flex; }
    .navbar nav a { padding: 14px 16px; font-size: 16px; min-height: 48px; border-radius: 12px; }
    .navbar .hamburger { display: block; }
    .lang-switcher { margin-left: 0; padding-left: 0; border-left: none; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); width: 100%; }
    .lang-dropdown { width: 100%; }
    .lang-dropdown-btn { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; }
    .lang-dropdown-menu { left: 0; right: 0; position: static; box-shadow: none; background: rgba(0,0,0,.1); border: none; margin-top: 8px; }
    .lang-dropdown-item { padding: 14px 18px; font-size: 16px; min-height: 48px; color: #fff !important; }
    .lang-dropdown-item:hover { background: rgba(255,255,255,.1); color: var(--gold) !important; }
    .filters-bar { flex-direction: column; align-items: stretch; gap: 16px; }
    .filters-bar .form-group { width: 100%; margin-bottom: 0; }
    .profile-grid { grid-template-columns: 1fr; gap: 24px; } /* Single column for readable text and tap targets */
    .profile-card .card-img, .avatar-placeholder { height: 280px; }
    .profile-card .name { font-size: 18px; }
    .profile-card .meta { font-size: 15px; }
    .plan-grid { grid-template-columns: 1fr; gap: 20px; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px 12px; }
    .stat-card .num { font-size: 24px; }
    .stat-card .label { font-size: 13px; font-weight: 500; }
    .page-content { padding: 24px 0; }
    .container { padding: 0 16px; }
    .card-body { padding: 20px; }
    .chat-msg { max-width: 90%; font-size: 15px; padding: 14px 16px; }
    .btn { padding: 14px 20px; font-size: 16px; min-height: 48px; } /* Enforce 48px touch targets */
    .btn-sm { padding: 12px 18px; font-size: 14px; min-height: 44px; }
    .form-control { padding: 14px 16px; font-size: 16px; } /* 16px prevents iOS zoom on focus */
    .q-card { padding: 20px; }
    .msg-item { padding: 16px; gap: 14px; }
    .msg-avatar { width: 56px; height: 56px; }
    .feature-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .upgrade-banner { padding: 20px 16px; flex-direction: column; text-align: center; gap: 16px; }
    .upgrade-banner .btn { width: 100%; justify-content: center; }
    
    /* Global Section Spacing */
    section { margin-bottom: 48px !important; }
    h2 { font-size: 26px !important; margin-bottom: 24px !important; text-align: center; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr; } /* Stack stats on tiny screens */
    .hero h1 { font-size: 26px; }
    .btn-sm { width: 100%; justify-content: center; margin-bottom: 8px; } /* Stack tiny action buttons */
}

/* ── Verified Badge ── */
.verified-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700; color: #fff;
    background: #0D8BD9;
    padding: 3px 10px; border-radius: 20px;
    white-space: nowrap; vertical-align: middle;
}
.verified-badge i { font-size: 11px; }
.verified-badge-lg { font-size: 14px; padding: 5px 14px; }
.verified-badge-phone { background: var(--success); }
.verified-badge-email { background: #0D8BD9; }
.verified-badge-full {
    background: var(--amber);
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(237,196,11,.35);
}

/* ── Language Switcher Dropdown ── */
.lang-switcher { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.2); }
.lang-dropdown { position: relative; }
.lang-dropdown-btn {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px;
    border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: all .2s; white-space: nowrap; min-height: 40px;
}
.lang-dropdown-btn:hover { background: rgba(255,255,255,.2); }
.lang-dropdown-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15); min-width: 180px; z-index: 200;
    overflow: hidden;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-item {
    display: block; padding: 12px 18px; font-size: 15px; font-weight: 500;
    color: var(--dark) !important; text-decoration: none; transition: background .15s;
    min-height: 44px;
}
.lang-dropdown-item:hover { background: var(--light-gray); color: var(--purple) !important; }
.lang-dropdown-item.active { color: var(--purple) !important; font-weight: 700; background: var(--light-gray); }

/* ── Telugu Fonts ── */
html[lang="te"] body { font-family: 'Mallanna', 'Segoe UI', system-ui, sans-serif; font-size: 22px; line-height: 1.8; }
html[lang="te"] .btn { font-size: 20px; }
html[lang="te"] .btn-sm { font-size: 17px; }
html[lang="te"] .form-control { font-size: 20px; }
html[lang="te"] .form-group label { font-size: 19px; }
html[lang="te"] .msg-name { font-size: 20px; }
html[lang="te"] .msg-preview { font-size: 18px; }
html[lang="te"] .stat-card .label { font-size: 18px; }
html[lang="te"] .navbar nav a { font-size: 17px; }
html[lang="te"] .profile-card .name { font-size: 20px; }
html[lang="te"] .profile-card .meta { font-size: 16px; }
html[lang="te"] .community-card p { font-size: 17px; }
html[lang="te"] .feature-row p { font-size: 17px; }
html[lang="te"] .feature-row h4 { font-size: 19px; }
html[lang="te"] .trust-item { font-size: 17px; }
html[lang="te"] .counter-label { font-size: 17px; }
html[lang="te"] .alert { font-size: 18px; }
html[lang="te"] h1, html[lang="te"] h2, html[lang="te"] h3, html[lang="te"] h4,
html[lang="te"] .hero h1, html[lang="te"] .stat-card .num, html[lang="te"] .navbar .logo {
    font-family: 'Sri Krushnadevaraya', 'Mallanna', serif;
}
html[lang="te"] .hero h1 { font-size: 38px; }
html[lang="te"] .hero p { font-size: 21px; }

/* ── Upgrade Banner ── */
.upgrade-banner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: var(--purple); color: #fff; padding: 18px 24px;
    border-radius: 14px; margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(62,21,99,.25);
    animation: bannerPulse 3s ease-in-out infinite;
}
@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(62,21,99,.25); }
    50% { box-shadow: 0 4px 24px rgba(237,196,11,.35); }
}

/* ── Feature Items ── */
.feature-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px; background: var(--light-gray);
    font-size: 14px; color: var(--dark);
}
.feature-item i { width: 20px; text-align: center; font-size: 16px; }
.feature-on { color: var(--success); }
.feature-off { color: var(--border); }
.feature-tag {
    font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
    background: var(--magenta); color: #fff; margin-left: auto;
}
.feature-tag.gold-tag { background: var(--gold); color: var(--dark); }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Selection color ── */
::selection { background: var(--pink-light); color: #fff; }

/* ── Filter Panel ── */
.filter-panel {
    background: var(--white); border-radius: 16px; border: 1px solid var(--border);
    margin-bottom: 24px; overflow: hidden;
}
.filter-section {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.filter-section h4 {
    font-size: 14px; color: var(--purple); margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.filter-section h4 i { color: var(--magenta); font-size: 15px; }
.filter-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.filter-grid .form-group { margin-bottom: 0; }
.filter-grid .form-control { padding: 10px 12px; font-size: 14px; }
.filter-grid label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); }

@media (max-width: 768px) {
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .filter-section { padding: 16px; }
}
@media (max-width: 400px) {
    .filter-grid { grid-template-columns: 1fr; }
}

/* ── Verified Badge Tooltip ── */
.verified-wrap { position: relative; display: inline-flex; align-items: center; }
.verified-wrap .tooltip {
    display: none; position: absolute; bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%); background: var(--dark); color: #fff;
    font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 8px;
    white-space: nowrap; z-index: 100; pointer-events: none;
}
.verified-wrap .tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--dark);
}
.verified-wrap:hover .tooltip { display: block; }

/* ── Unread Message Highlight ── */
.msg-item-unread {
    background: var(--vanilla) !important;
    border-color: var(--gold) !important;
    border-left: 4px solid var(--gold) !important;
}
.msg-item-unread .msg-name { color: var(--purple); font-weight: 700; }
.msg-item-unread .msg-preview { color: var(--dark); font-weight: 500; }
