/* ============================================================
   HEARTLINK — PROFESSIONAL UI
   ============================================================ */
:root {
    --primary: #e91e63;
    --secondary: #ff6090;
    --accent: #9c27b0;
    --bg: #f7f8fc;
    --card: #ffffff;
    --text: #111827;
    --text-soft: #4b5563;
    --muted: #9ca3af;
    --border: #e5e7eb;
    --border-soft: #f3f4f6;
    --green: #10b981;
    --red: #ef4444;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(0,0,0,.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.10);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============ HEADER ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand-text { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -.4px; }
.brand-logo { height: 34px; width: auto; }
.nav-main { display: flex; align-items: center; gap: 6px; }
.nav-main a {
    font-weight: 500; font-size: 14px; color: var(--text-soft);
    padding: 8px 12px; border-radius: 999px; transition: .18s;
}
.nav-main a:hover { color: var(--primary); background: rgba(233,30,99,.06); }

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    padding: 11px 22px; border-radius: 999px;
    font-weight: 600; font-size: 14px;
    border: none; cursor: pointer; transition: .18s;
    white-space: nowrap;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 22px; border-radius: 999px;
    border: 1.5px solid var(--primary); color: var(--primary);
    font-weight: 600; font-size: 14px; transition: .18s;
    background: transparent; cursor: pointer;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
    padding: 8px 16px; border-radius: 999px;
    border: 1.5px solid var(--border); background: transparent;
    cursor: pointer; font-weight: 500; font-size: 14px;
    color: var(--text-soft);
}
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ============ LAYOUT ============ */
.site-main { min-height: calc(100vh - 60px); }
.container { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }
.site-footer {
    background: #fff; border-top: 1px solid var(--border);
    padding: 24px 16px; text-align: center;
    color: var(--muted); font-size: 13px;
}
body.has-bottom-nav .site-footer { margin-bottom: 0; }

/* ============ AUTH ============ */
.auth-box {
    max-width: 440px; margin: 40px auto;
    background: var(--card); padding: 32px 24px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    margin-left: 16px; margin-right: 16px;
}
.auth-box h2 { text-align: center; margin-bottom: 6px; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.auth-box .subtitle { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-box input, .auth-box select {
    width: 100%; padding: 13px 16px; margin-bottom: 12px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; transition: .18s; background: #fff;
    font-family: inherit;
}
.auth-box input:focus, .auth-box select:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 3px rgba(233,30,99,.1);
}
.auth-box button[type=submit] { width: 100%; padding: 14px; font-size: 15px; margin-top: 6px; }
.center { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.center a { color: var(--primary); font-weight: 600; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #d1fae5; color: #065f46; }

/* ============ HERO ============ */
.hero { padding: 40px 16px 60px; background: linear-gradient(160deg, #fff 0%, #fff5f8 100%); }
.hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}
.hero-badge {
    display: inline-block; padding: 6px 14px;
    background: rgba(233,30,99,.08); color: var(--primary);
    border-radius: 999px; font-size: 12px; font-weight: 700;
    margin-bottom: 16px;
}
.hero-text h1 { font-size: 46px; line-height: 1.08; font-weight: 800; margin-bottom: 16px; letter-spacing: -1.5px; }
.hero-text p { font-size: 17px; color: var(--text-soft); margin-bottom: 28px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; font-weight: 800; }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-mockup { position: relative; height: 440px; }
.mockup-card {
    position: absolute; background: #fff; padding: 10px;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; gap: 6px; transition: .4s ease;
}
.mockup-card img { width: 130px; height: 160px; border-radius: 12px; object-fit: cover; }
.mockup-card span { font-weight: 600; font-size: 13px; text-align: center; }
.mc1 { top: 30px; left: 0; transform: rotate(-6deg); }
.mc2 { top: 0; right: 0; transform: rotate(5deg); }
.mc3 { bottom: 20px; left: 28%; transform: rotate(-2deg); }
.hero-mockup:hover .mc1 { transform: rotate(-8deg) translateY(-6px); }
.hero-mockup:hover .mc2 { transform: rotate(7deg) translateY(-6px); }
.hero-mockup:hover .mc3 { transform: rotate(0) translateY(-6px); }

/* ============ FEATURES ============ */
.features { padding: 60px 16px; background: #fff; }
.features h2 { text-align: center; font-size: 30px; margin-bottom: 40px; letter-spacing: -.8px; font-weight: 800; }
.features-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.feature-card {
    padding: 28px 22px; background: #fff; border-radius: var(--radius);
    border: 1px solid var(--border); text-align: center; transition: .25s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 40px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============ HOW IT WORKS ============ */
.how-it-works { padding: 60px 16px; background: var(--bg); }
.how-it-works h2 { text-align: center; font-size: 30px; margin-bottom: 40px; letter-spacing: -.8px; font-weight: 800; }
.steps { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { text-align: center; padding: 16px; }
.step-num {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(233,30,99,.3);
}
.step h3 { font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.step p { color: var(--muted); font-size: 14px; }

/* ============ CTA ============ */
.cta-section {
    padding: 60px 16px; text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}
.cta-section h2 { font-size: 32px; margin-bottom: 10px; letter-spacing: -.8px; font-weight: 800; }
.cta-section p { font-size: 16px; opacity: .95; margin-bottom: 26px; }
.cta-section .btn-primary { background: #fff; color: var(--primary); padding: 14px 34px; font-size: 15px; }
.cta-section .btn-primary:hover { background: #f3f3f3; }

/* ============ DASHBOARD ============ */
.dashboard-header { padding: 18px 16px 6px; max-width: 1200px; margin: 0 auto; }
.dashboard-header h1 { font-size: 22px; margin-bottom: 2px; font-weight: 800; letter-spacing: -.4px; }
.dashboard-header p { color: var(--muted); font-size: 13.5px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 12px 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.profile-card {
    background: var(--card); border-radius: 14px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: .22s; display: flex; flex-direction: column; position: relative;
}
.profile-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.profile-card.fade-out { opacity: 0; transform: scale(.92); }

.pic-wrap {
    position: relative; aspect-ratio: 1/1.05; overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}
.pic-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.profile-card:hover .pic-wrap img { transform: scale(1.04); }
.pic-wrap::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 45%; background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
    pointer-events: none;
}

.badge-verified {
    position: absolute; top: 8px; right: 8px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #3b82f6; color: #fff; font-weight: 800; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.25); z-index: 2;
}
.badge-ai {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 7px; border-radius: 999px;
    background: rgba(0,0,0,.6); color: #fff;
    font-size: 9px; font-weight: 800; letter-spacing: .3px;
    backdrop-filter: blur(6px); text-transform: uppercase; z-index: 2;
}

.card-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-body h3 { font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .city { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 3px; line-height: 1.2; }

.card-actions { display: flex; gap: 6px; margin-top: 8px; }
.card-actions button {
    border-radius: 999px; border: none; cursor: pointer;
    transition: .15s; display: flex; align-items: center; justify-content: center;
    font-weight: 700; line-height: 1;
}
.btn-chat {
    flex: 1; padding: 8px 10px; gap: 5px;
    background: var(--primary); color: #fff;
    font-size: 12.5px; letter-spacing: .2px;
}
.btn-chat:hover { background: var(--accent); }
.btn-chat:active { transform: scale(.96); }
.btn-chat svg { flex-shrink: 0; }

.btn-heart {
    flex: 0 0 34px; width: 34px; height: 34px;
    padding: 0; background: #fff; color: var(--primary);
    border: 1.5px solid var(--primary) !important;
}
.btn-heart:hover { background: var(--primary); color: #fff; }
.btn-heart:active { transform: scale(.92); }

/* Empty state */
.empty-state {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
    background: #fff; border-radius: var(--radius-lg); border: 2px dashed var(--border);
}
.empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-state h3 { font-size: 20px; margin-bottom: 6px; font-weight: 700; }
.empty-state p { color: var(--muted); margin-bottom: 8px; font-size: 14px; }

/* ============ MATCHES ============ */
.matches-list { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto; }
.match-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-xs); transition: .18s;
}
.match-item:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.match-item img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.match-info { flex: 1; min-width: 0; }
.match-info h3 { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-info p { font-size: 12.5px; color: var(--muted); }
.chat-arrow {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; border-radius: 50%; font-size: 16px; flex-shrink: 0;
}

/* ============ PLANS ============ */
.plans-header { text-align: center; margin-bottom: 32px; }
.plans-header h1 { font-size: 30px; margin-bottom: 6px; letter-spacing: -.8px; font-weight: 800; }
.plans-header p { color: var(--muted); font-size: 15px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.plan-card {
    background: #fff; padding: 28px 22px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 2px solid transparent;
    transition: .25s; position: relative; text-align: center;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.featured { border-color: var(--primary); }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 5px 14px;
    border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.plan-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--primary); font-weight: 800; }
.plan-card .price { font-size: 36px; font-weight: 800; margin-bottom: 18px; letter-spacing: -1px; }
.plan-card .price span { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-features { list-style: none; text-align: left; margin-bottom: 20px; }
.plan-features li { padding: 7px 0; color: var(--text-soft); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ============================================================
   CHAT PAGE
   ============================================================ */
.chat-body { background: var(--bg); overflow: hidden; }
.chat-page {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    max-width: 720px; margin: 0 auto; background: #fff;
    display: flex; flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,.06);
}
.chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid var(--border); background: #fff; flex-shrink: 0;
}
.chat-back {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: .18s; flex-shrink: 0;
}
.chat-back:hover { background: var(--border-soft); }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-title { flex: 1; min-width: 0; }
.chat-title h3 { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.2px; }
.chat-status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); font-weight: 500; }
.status-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 2px rgba(16,185,129,.2);
}

.chat-box {
    flex: 1; overflow-y: auto; padding: 16px 14px;
    display: flex; flex-direction: column; gap: 6px;
    background: linear-gradient(to bottom, #fbfbfd, #f5f6f9);
    -webkit-overflow-scrolling: touch;
}
.chat-loading,
.chat-empty {
    text-align: center; color: var(--muted);
    font-size: 13.5px; padding: 40px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1;
}
.chat-empty p { font-size: 13px; }

.msg { max-width: 78%; display: flex; flex-direction: column; animation: msgIn .25s ease-out; }
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.msg .bubble {
    padding: 10px 14px; border-radius: 18px;
    font-size: 14.5px; line-height: 1.45;
    word-wrap: break-word; max-width: 100%;
}
.msg.mine .bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.msg.theirs .bubble { background: #fff; color: var(--text); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.msg-time { font-size: 10.5px; color: var(--muted); margin-top: 3px; padding: 0 4px; font-weight: 500; }

.typing-indicator { display: none; padding: 0 14px 8px; flex-shrink: 0; }
.typing-indicator.show { display: flex; }
.typing-bubble {
    background: #fff; padding: 11px 15px; border-radius: 18px;
    border-bottom-left-radius: 5px; display: flex; gap: 4px; align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.typing-bubble span {
    width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
    animation: typing 1.4s infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: .2s; }
.typing-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .35; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.chat-form {
    display: flex; gap: 8px; padding: 10px 14px;
    padding-bottom: calc(10px + var(--safe-bottom));
    border-top: 1px solid var(--border); background: #fff; flex-shrink: 0;
    align-items: center;
}
.chat-form input[type=text] {
    flex: 1; padding: 11px 18px;
    border: 1.5px solid var(--border); border-radius: 999px;
    font-size: 15px; background: var(--bg);
    transition: .18s; min-width: 0;
}
.chat-form input[type=text]:focus {
    outline: none; border-color: var(--primary);
    background: #fff; box-shadow: 0 0 0 3px rgba(233,30,99,.08);
}
.btn-send {
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: var(--primary); color: #fff;
    cursor: pointer; transition: .18s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.btn-send:hover { background: var(--accent); }
.btn-send:active { transform: scale(.94); }
.btn-send:disabled { opacity: .5; cursor: not-allowed; }
.btn-send svg { margin-left: 2px; }

/* Match popup */
.match-popup {
    position: fixed; inset: 0; z-index: 999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
    opacity: 0; transition: .25s; padding: 20px;
}
.match-popup.show { opacity: 1; }
.match-popup-inner {
    background: #fff; padding: 36px 28px; border-radius: var(--radius-xl);
    text-align: center; max-width: 360px; width: 100%;
    transform: scale(.85); transition: .3s cubic-bezier(.34,1.56,.64,1);
}
.match-popup.show .match-popup-inner { transform: scale(1); }
.match-popup h2 { color: var(--primary); margin-bottom: 6px; font-size: 24px; font-weight: 800; }
.match-popup p { color: var(--text-soft); font-size: 14px; }

/* Premium wall */
.premium-wall {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 30px 20px 20px;
    background: linear-gradient(180deg, #fff5f8 0%, #ffffff 100%);
    border-top: 1px solid var(--border);
}
.premium-wall .lock-icon { font-size: 42px; margin-bottom: 10px; filter: drop-shadow(0 4px 12px rgba(233,30,99,.2)); }
.premium-wall h3 { font-size: 16px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 4px; }
.premium-wall p { font-size: 13px; color: var(--muted); margin-bottom: 14px; max-width: 260px; }
.premium-wall .btn-upgrade {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 10px 24px; border-radius: 999px;
    font-weight: 700; font-size: 13.5px;
    box-shadow: 0 6px 20px rgba(233,30,99,.3);
    transition: .2s; display: inline-block;
}
.premium-wall .btn-upgrade:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(233,30,99,.4); }

.chat-limit-banner {
    background: linear-gradient(135deg, #fff5f8, #ffe8f0);
    border-top: 1px solid rgba(233,30,99,.15);
    padding: 10px 16px; text-align: center;
    font-size: 12.5px; color: var(--text-soft); flex-shrink: 0;
}
.chat-limit-banner a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: rgba(255,255,255,.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-around; align-items: center;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    max-width: 720px; margin: 0 auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,.04);
}
.bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 4px; color: var(--muted); font-size: 10.5px; font-weight: 600;
    letter-spacing: .2px; transition: .18s; position: relative;
}
.bottom-nav a svg { width: 22px; height: 22px; stroke-width: 2; transition: .18s; }
.bottom-nav a:hover { color: var(--primary); }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active svg { stroke: var(--primary); transform: translateY(-1px); }
.bottom-nav a .nav-badge {
    position: absolute; top: 2px; right: calc(50% - 18px);
    background: var(--primary); color: #fff;
    font-size: 9px; font-weight: 800;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; line-height: 1;
}
body.has-bottom-nav { padding-bottom: 84px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero { padding: 30px 16px 50px; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-text h1 { font-size: 34px; letter-spacing: -1px; }
    .hero-text p { font-size: 15.5px; }
    .hero-mockup { height: 340px; }
    .mockup-card img { width: 110px; height: 135px; }
    .hero-stats { gap: 20px; }
    .hero-stats strong { font-size: 19px; }
    .hero-stats span { font-size: 11.5px; }
    .features, .how-it-works, .cta-section { padding: 48px 16px; }
    .features h2, .how-it-works h2 { font-size: 24px; margin-bottom: 30px; }
    .cta-section h2 { font-size: 26px; }
    .cta-section p { font-size: 15px; }
}
@media (max-width: 640px) {
    .container { padding: 16px 12px; }
    .dashboard-header { padding: 16px 14px 4px; }
    .dashboard-header h1 { font-size: 21px; }
    .cards-grid { padding: 10px 12px 20px; gap: 10px; }
    .auth-box { padding: 26px 20px; margin: 24px 12px; }
    .plans-header h1 { font-size: 24px; }
    .plan-card .price { font-size: 30px; }
    .plan-card { padding: 22px 18px; }
}
@media (max-width: 380px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px 10px 20px; }
    .card-body h3 { font-size: 12.5px; }
    .card-body .city { font-size: 10.5px; }
    .btn-chat { font-size: 11.5px; padding: 7px 8px; }
    .btn-heart { flex: 0 0 30px; width: 30px; height: 30px; }
}