/* =====================================================================
   SMERGERS CLONE - design system
   Structure: tokens -> base -> header/nav -> footer -> home -> cards ->
   listing/search -> profile detail -> auth -> dashboard -> utilities
   ===================================================================== */

:root {
    --navy: #10365c;
    --navy-dark: #0a2743;
    --navy-light: #1d4f86;
    --accent: #f0a500;
    --green: #1e9e6a;
    --green-dark: #177a52;
    --red: #d64545;
    --text: #212b36;
    --text-muted: #637381;
    --border: #e3e8ee;
    --bg: #f4f6f8;
    --bg-white: #ffffff;
    --bg-soft: #eef2f6;
    --shadow: 0 1px 3px rgba(16, 54, 92, .08);
    --shadow-md: 0 4px 14px rgba(16, 54, 92, .12);
    --radius: 6px;
    --radius-lg: 10px;
    --container: 1170px;
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.55;
}
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.inline-form { display: inline; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: all .15s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }

.topbar { background: var(--navy-dark); color: #cfdcea; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar a { color: #cfdcea; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-toggle a { margin-right: 14px; font-weight: 600; }
.topbar-add { color: var(--accent) !important; font-weight: 700; }
.topbar-login { color: #fff !important; font-weight: 700; }
.topbar-user { color: #9fb8d4; }
.logout-btn { background: none; border: none; color: #cfdcea; padding: 0; font-size: 13px; }
.logout-btn:hover { color: #fff; text-decoration: underline; }

.masthead { background: #fff; }
.masthead-inner { display: flex; align-items: center; gap: 22px; min-height: 50px; position: relative; padding: 5px 0; }
.masthead-inner > .logo { flex: 0 0 auto; }
.masthead-inner > .searchbox { flex: 1 1 auto; max-width: 420px; margin-left: 18px; }
.masthead-inner > .profile-section { flex: 0 0 auto; margin-left: auto; }
.masthead-nav { border-top: 1px solid var(--border); background: #fff; }
.masthead-nav .mainnav ul { gap: 0; }
.masthead-nav .mainnav a { padding: 10px 10px; font-size: 13px; }

/* profile / auth cluster (right of the search, original header row 1) */
.profile-section { display: flex; align-items: center; gap: 14px; }
.currency-select {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 600; color: #41556b;
    border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 10px;
}
.currency-select:hover { background: var(--bg-soft); text-decoration: none; }
.profile-section .topbar-link { font-size: 13px; font-weight: 600; color: #41556b; }
.profile-section .topbar-link:hover { color: var(--navy); }
.profile-section .topbar-add { color: #b9831f; font-weight: 700; }
.profile-section .topbar-login {
    color: #fff; background: var(--navy); border-radius: var(--radius);
    padding: 6px 16px; font-weight: 700;
}
.profile-section .topbar-login:hover { background: var(--navy-dark); text-decoration: none; }
.profile-section .topbar-user { font-size: 12.5px; color: #637381; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-section .logout-btn { background: none; border: none; padding: 0; font-size: 13px; color: #41556b; font-weight: 600; }
.profile-section .logout-btn:hover { color: var(--red); text-decoration: underline; }

/* floating help button (original #feedback, left edge) */
.help-float {
    position: fixed; left: 0; top: 45%; z-index: 90;
    background: var(--accent); color: #3a3a3a;
    border: none; border-radius: 0 6px 6px 0;
    padding: 14px 8px;
    writing-mode: vertical-rl; text-orientation: mixed;
    font-size: 12px; font-weight: 700; letter-spacing: .5px;
    box-shadow: var(--shadow-md);
}
.help-float:hover { background: #ffb920; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); }

.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: .5px; }
.logo-img { height: 42px; width: auto; display: block; }
.logo:hover { text-decoration: none; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; background: var(--navy); color: #fff;
    border-radius: 6px; font-size: 18px; font-weight: 800;
}
.logo-text { color: var(--navy); }

.searchbox { display: flex; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.searchbox input { flex: 1 1 auto; min-width: 0; border: none; padding: 9px 14px; outline: none; }
.searchbox input { flex: 1; border: none; padding: 9px 12px; outline: none; }
.searchbox button { background: var(--navy); border: none; color: #fff; padding: 0 14px; display: flex; align-items: center; }

.mainnav ul { list-style: none; display: flex; gap: 2px; white-space: nowrap; }
.mainnav a { display: block; padding: 10px 11px; color: #41556b; font-size: 13.5px; font-weight: 600; }
.mainnav a:hover { background: var(--bg-soft); }
.mainnav a:hover { color: var(--navy); text-decoration: none; }
.has-sub { position: relative; }
/* NOTE: .mainnav ul (specificity 0,1,1) would override plain .submenu (0,1,0),
   so submenu rules are doubled up with .mainnav .submenu to win. */
.mainnav .submenu {
    display: none; position: absolute; top: 100%; left: 0; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md);
    min-width: 220px; padding: 6px 0; z-index: 60;
    flex-direction: column; gap: 0; white-space: normal;
}
.mainnav .has-sub:hover .submenu,
.mainnav .has-sub:focus-within .submenu { display: flex; }
.mainnav .submenu a { font-weight: 500; font-size: 13px; padding: 8px 14px; }
.mainnav .submenu a:hover { background: var(--bg-soft); }
/* mobile / nav-open: dropdowns become stacked lists */
body.nav-open .mainnav .submenu {
    display: flex; position: static; box-shadow: none; border: none;
    padding: 0 0 4px 16px; min-width: 0;
}

.need-help { background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; font-size: 13px; color: var(--navy); font-weight: 600; white-space: nowrap; }
.hero-head .need-help { color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Landing hero (mirrors smergers landing-page-wrapper) ---------- */
.landing-hero {
    position: relative;
    background: url("../img/hero-bg.svg") center center / cover no-repeat, var(--navy-dark);
    color: #fff;
    padding: 64px 0 56px;
    min-height: 460px;
    display: flex;
    align-items: center;
}
.landing-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,39,67,.72) 0%, rgba(16,54,92,.45) 55%, rgba(16,54,92,.25) 100%);
    pointer-events: none;
}
.landing-inner { position: relative; z-index: 2; }
.landing-hero .brand { color: var(--accent); }
.big-message {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
    max-width: 820px;
    margin-bottom: 44px;
    color: #fff;
}
.member-icons {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}
.member-icons li { text-align: center; width: 108px; }
.member-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.08);
    transition: all .15s ease;
}
.member-icon img { width: 30px; height: 30px; }
.member-icons a { text-decoration: none; }
.member-icons a:hover .member-icon, .member-icons a:focus .member-icon {
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}
.member-icons a:hover .member-icon img,
.member-icons a:focus .member-icon img {
    filter: brightness(0) saturate(100%) invert(15%) sep-webkit(21%) saturate(2043%) hue-rotate(178deg) brightness(95%) contrast(92%);
}
.member-label {
    font-size: 12.5px;
    color: #e8eef5;
    font-weight: 600;
    line-height: 1.3;
}
.member-icons .growth-arrow { width: 52px; padding-top: 14px; }
.member-icons .growth-arrow span { font-size: 26px; color: #9fb8d4; display: block; margin-bottom: 2px; }

/* ---------- Get Started (brand colors from smergers) ---------- */
.create-profiles { padding: 40px 0 44px; background: #fff; border-bottom: 1px solid var(--border); }
.create-profiles-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 28px;
}
.create-profiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.create-profiles .profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 24px 18px;
}
.create-profiles .info { font-size: 19px; font-weight: 600; color: var(--text); line-height: 1.4; }
.btn-profile {
    display: inline-block;
    border-radius: var(--radius);
    padding: 11px 22px;
    font-weight: 600;
    font-size: 14.5px;
    color: #fff;
    min-width: 220px;
    transition: filter .15s ease;
}
.btn-profile:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }
.btn-blue { background: #36a6d5; }
.btn-gold { background: #ecb038; }
.btn-green { background: #1e9e6a; }

/* ---------- Why SMERGERS ---------- */
.what-section { padding: 44px 0; background: #fff; }
.section-h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.section-heading {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    max-width: 900px;
    margin: 0 auto 30px;
}
.section-heading strong { color: var(--navy); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item {
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    background: #fff;
}
.why-item img { width: 44px; height: 44px; margin-bottom: 12px; }
.why-item h4 { color: var(--navy); margin-bottom: 8px; font-size: 17px; }
.why-item p { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }

/* ---------- Stats band ---------- */
.stats-band { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 16px; text-align: center; }
.stat strong { display: block; font-size: 24px; color: var(--navy); }
.stat span { color: var(--text-muted); font-size: 13px; }

/* ---------- Why ---------- */
.why { padding: 44px 0; background: #fff; }
.why h2 { text-align: center; font-size: 26px; margin-bottom: 26px; color: var(--navy); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-item { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.why-item h4 { color: var(--navy); margin-bottom: 8px; font-size: 16px; }
.why-item p { color: var(--text-muted); font-size: 14px; }

/* ---------- Home sections ---------- */
.home-section { padding: 44px 0; }
.home-section.alt { background: #fff; }
.home-section h2 { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.home-section p { color: var(--text-muted); margin-bottom: 20px; max-width: 760px; }
.home-section .btn-outline { margin-top: 18px; }

.listing-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.empty-card {
    grid-column: 1 / -1; border: 1px dashed var(--border); background: var(--bg-soft);
    color: var(--text-muted); padding: 34px; border-radius: var(--radius-lg); text-align: center;
}

.valuation-promo { background: var(--navy); color: #fff; padding: 44px 0; text-align: center; }
.valuation-promo h2 { font-size: 26px; margin-bottom: 10px; }
.valuation-promo p { color: #c9d9ea; margin-bottom: 18px; }
.valuation-promo .btn-primary { background: #fff; color: var(--navy); }
.valuation-promo .btn-primary:hover { background: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c9db; margin-top: 0; }
.footer-cta { padding: 26px 0; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-cta h2 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-logos span { color: #8fa8c2; font-weight: 700; font-size: 14px; }

.footer-categories { padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-categories h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-tab { background: none; border: 1px solid rgba(255,255,255,.2); color: #b9c9db; border-radius: 20px; padding: 5px 14px; font-size: 13px; }
.cat-tab.active, .cat-tab:hover { background: #fff; color: var(--navy); }
.cat-panel { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cat-panel a { color: #8fa8c2; font-size: 13.5px; }

.footer-main { padding: 30px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col h4.mt { margin-top: 16px; }
.footer-col a { display: block; color: #8fa8c2; font-size: 13px; margin-bottom: 7px; }
.footer-col a:hover { color: #fff; }

.footer-brand { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-brand-logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; }
.footer-brand-text { max-width: 900px; font-size: 13px; margin-bottom: 14px; }
.footer-payments { display: flex; gap: 10px; }
.pay-chip { border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 3px 10px; font-size: 11px; color: #c9d9ea; }

.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; font-size: 12.5px; }
.footer-legal .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-legal a { color: #8fa8c2; }

/* ---------- Breadcrumb / static pages ---------- */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb .sep { margin: 0 6px; }

.static-page { padding: 36px 0 60px; }
.static-page-inner { max-width: 860px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; }
.static-page-inner h1 { color: var(--navy); font-size: 28px; margin-bottom: 18px; }
.static-body h3 { color: var(--navy); margin: 18px 0 8px; }
.static-body p, .static-body li { margin-bottom: 10px; }
.static-body ul, .static-body ol { padding-left: 22px; }
.lead { font-size: 16px; color: var(--text-muted); margin-bottom: 18px; }

.faq-cat { color: var(--navy); margin: 22px 0 10px; border-bottom: 2px solid var(--bg-soft); padding-bottom: 6px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; background: var(--bg); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq-item p { margin-top: 10px; color: var(--text); }

.list-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px; background: #fff; }
.list-card h2 { font-size: 18px; color: var(--navy); }

.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.press-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.press-logo { font-weight: 800; color: var(--navy); margin-bottom: 8px; }

.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin-top: 22px; }
.contact-form label, .dash-form label, .auth-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea, .dash-form input, .dash-form textarea, .auth-form input {
    border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; font-weight: 400;
}
.contact-form input:focus, .dash-form input:focus, .auth-form input:focus { outline: 2px solid rgba(16,54,92,.25); border-color: var(--navy); }

.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 14px; }
.alert-success { background: #e6f6ef; color: var(--green-dark); border: 1px solid #b8e6d2; }

/* ---------- Auth ---------- */
.auth-section { padding: 48px 0; }
.auth-inner { display: grid; grid-template-columns: 1fr 420px; gap: 36px; align-items: start; }
.auth-brand h2 { font-size: 22px; color: var(--navy); margin: 20px 0; line-height: 1.4; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 18px; border-bottom: 2px solid var(--bg-soft); }
.auth-tab { background: none; border: none; padding: 8px 4px; font-weight: 700; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.auth-pane { display: flex; flex-direction: column; gap: 10px; }
.auth-pane.hidden { display: none; }
.btn-social {
    display: flex; align-items: center; gap: 10px; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 9px 14px; color: var(--text); font-weight: 600; font-size: 14px;
}
.btn-social:hover { background: var(--bg-soft); text-decoration: none; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.social-icon.g { background: #ea4335; }
.social-icon.f { background: #1877f2; }
.social-icon.in { background: #0a66c2; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 12px; margin: 6px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-alt { font-size: 13px; text-align: center; }
.auth-side h4 { color: var(--navy); margin-bottom: 12px; }
.member-logos { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 10px; }
.member-logos span { color: var(--text-muted); font-size: 13px; font-weight: 600; }

/* ---------- Dashboard ---------- */
.dashboard-body { background: var(--bg); }
.dash-header { background: #fff; border-bottom: 1px solid var(--border); }
.dash-header-inner { display: flex; align-items: center; gap: 26px; min-height: 56px; }
.dash-nav { display: flex; gap: 4px; flex: 1; }
.dash-nav a { padding: 7px 12px; border-radius: var(--radius); color: var(--text); font-size: 13.5px; font-weight: 600; }
.dash-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.dash-nav a.active { background: var(--navy); color: #fff; }

.dash-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; padding: 26px 16px 60px; align-items: start; }
.dash-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 26px; }
.dash-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.dash-panel.wide { padding: 22px; }
.dash-panel h4 { color: var(--navy); font-size: 14px; margin-bottom: 8px; }
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dash-panel-head a { font-size: 12.5px; font-weight: 600; }
.dash-profile { text-align: center; }
.dash-avatar {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
    background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800;
}
.dash-profile h3 { font-size: 16px; }
.dash-profile p { font-size: 13px; margin-bottom: 3px; }
.dash-profile .btn { margin-top: 10px; }
.dash-socials { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.verify-chip { font-size: 11px; border: 1px solid var(--border); border-radius: 12px; padding: 2px 8px; color: var(--text-muted); }

.dash-h1 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.dash-welcome { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px; }
.dash-welcome h1 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.dash-welcome p { color: var(--text-muted); margin-bottom: 16px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-two-col h3 { color: var(--navy); margin-bottom: 8px; }
.empty-state { text-align: center; padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.empty-state h3 { color: var(--navy); margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); margin-bottom: 14px; }

.dash-settings { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.dash-settings-nav { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dash-settings-nav a { padding: 12px 16px; color: var(--text); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--border); }
.dash-settings-nav a:last-child { border-bottom: none; }
.dash-settings-nav a.active { background: var(--navy); color: #fff; }
.dash-settings-nav a:hover:not(.active) { background: var(--bg-soft); text-decoration: none; }
.dash-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.dash-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-form label.check { flex-direction: row; align-items: center; gap: 8px; }

/* =====================================================================
   Search listings & filters
   ===================================================================== */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 22px 16px 60px;
    max-width: var(--container);
    margin: 0 auto;
    align-items: start;
}

.filters {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: sticky;
    top: 150px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}
.filter-form { padding: 14px; }
.filter-heading {
    font-size: 16px;
    color: var(--navy);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-soft);
    margin-bottom: 10px;
}
.filter-group { border-bottom: 1px solid var(--border); padding: 10px 0; }
.filter-group h4 { font-size: 12px; color: var(--navy); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .4px; }
.filter-group label { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 5px; cursor: pointer; color: var(--text); }
.filter-group select, .filter-group input[type="number"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 9px;
    margin-bottom: 7px;
    background: #fff;
    font-size: 13px;
}
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filter-scroll { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.results { min-width: 0; }
.results-head { margin-bottom: 12px; }
.results-head h1 { font-size: 30px; color: #212b36; font-weight: 700; margin-bottom: 6px; }
.results-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; color: #637381; font-size: 13px; margin-bottom: 16px; }
.sort-select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 10px;
    background: #fff;
    font-size: 13px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.listing-card {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 4px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow .15s ease;
}
.listing-card:hover { box-shadow: 0 2px 10px rgba(16, 54, 92, .12); }
.listing-title { font-size: 15px; line-height: 1.35; font-weight: 700; }
.listing-title a { color: #10365c; }
.listing-title a:hover { text-decoration: underline; }
.listing-eyebrow { font-size: 12px; color: #637381; font-weight: 600; }
.listing-summary { font-size: 13px; color: #212b36; line-height: 1.45; }
.listing-stats { display: flex; gap: 14px; font-size: 12px; color: #637381; }

.verify-row { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.verify-badge {
    font-size: 11px; color: #3e7c59;
    display: inline-flex; align-items: center; gap: 3px;
}
.verify-badge img { width: 10px; height: 10px; }

.listing-body { display: flex; gap: 10px; align-items: flex-start; }
.listing-description {
    flex: 1 1 auto; min-width: 0;
    font-size: 12.5px; color: #454f5b; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-thumb {
    flex: 0 0 108px; width: 108px; height: 76px;
    object-fit: cover; border-radius: 3px; border: 1px solid var(--border);
}
.listing-thumb.placeholder { object-fit: contain; background: #f4f7fa; }

.listing-rating-location { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.listing-rating-location .rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #212b36; }
.listing-rating-location .rating img { width: 13px; height: 13px; }
.listing-location { color: #637381; }

.listing-metrics {
    display: grid; grid-template-columns: 1fr 1fr;
    background: #f4f7fa; border-radius: 3px; overflow: hidden;
}
.metric-cell { padding: 8px 10px; }
.metric-cell:first-child { border-right: 1px solid #e6ecf2; }
.metric-label { font-size: 11px; color: #637381; margin-bottom: 2px; }
.metric-value { font-size: 13px; font-weight: 700; color: #212b36; }

.listing-footer {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #eef2f6;
}
.transaction-label { display: block; font-size: 11px; color: #637381; }
.asking-price { display: block; font-size: 14px; font-weight: 800; color: #10365c; }

.btn-yellow {
    background: #f5d244; color: #3a3a3a; font-weight: 700;
    border: 1px solid #e5c53a; border-radius: 3px; padding: 8px 14px; font-size: 13px;
    white-space: nowrap;
}
.btn-yellow:hover { background: #f0cb2e; }

.promo-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    grid-column: 1 / -1;
}
.promo-card h3 { font-size: 18px; }
.promo-card p { color: #d5e2f0; font-size: 13.5px; }
.promo-card .btn-primary { background: #fff; color: var(--navy); align-self: flex-start; }
.promo-card .btn-primary:hover { background: var(--accent); }

.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.page-link { font-weight: 600; font-size: 14px; }
.page-current { color: var(--text-muted); font-size: 13.5px; }

.seo-text { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-top: 24px; }
.seo-text h2 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.seo-text h3 { font-size: 16px; color: var(--navy); margin: 16px 0 8px; }
.seo-text p { color: var(--text-muted); font-size: 14px; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.link-row a { font-size: 13.5px; }

.listing-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.empty-card {
    grid-column: 1 / -1; border: 1px dashed var(--border); background: var(--bg-soft);
    color: var(--text-muted); padding: 34px; border-radius: var(--radius-lg); text-align: center;
}

/* =====================================================================
   Detail pages
   ===================================================================== */
.detail-page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 22px 16px 60px;
}
.detail-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.detail-header {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
}
.detail-header h1 { font-size: 24px; color: var(--navy); line-height: 1.3; margin-bottom: 8px; font-weight: 700; }
.detail-summary { color: #454f5b; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.premium-badge {
    display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy);
    background: #fdf3dd; border: 1px solid #f0d9a0; border-radius: 14px; padding: 3px 12px;
}

.detail-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.detail-photo img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.detail-photo-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(10,39,67,.85));
    color: #fff; font-size: 13px; padding: 24px 16px 10px;
}

.detail-keyfacts-row {
    display: grid;
    grid-template-columns: 315px 1fr;
    gap: 16px;
    align-items: start;
}

.detail-facts {
    width: 100%; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); border-collapse: collapse; overflow: hidden;
}
.detail-facts th, .detail-facts td { padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: left; }
.detail-facts th { color: #637381; font-weight: 600; width: 140px; }
.detail-facts tr:last-child th, .detail-facts tr:last-child td { border-bottom: none; }
.status-active { color: var(--green-dark); font-weight: 700; }

.detail-side-facts { display: flex; flex-direction: column; gap: 16px; }

.detail-rating {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 16px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.detail-rating .label { color: #637381; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.rating-big { font-size: 26px; color: var(--navy); font-weight: 800; }
.rating-big span { font-size: 14px; color: var(--text-muted); }
.compare-link { font-size: 13px; font-weight: 600; }

.detail-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
}
.detail-card h3 {
    font-size: 13px; color: var(--navy); text-transform: uppercase; letter-spacing: .6px;
    margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--bg-soft);
}
.detail-card h4 { font-size: 17px; color: var(--navy); margin: 10px 0 6px; }
.detail-card p { font-size: 14px; margin-bottom: 8px; }
.detail-card .mt { margin-top: 18px; }
.asking-line { font-size: 14.5px; }
.asking-line strong { color: var(--navy); }
.reason-line, .assets-line, .seeking-line, .confidential-line { font-size: 13.5px; color: #454f5b; }
.seeking-line { color: var(--green-dark); font-weight: 600; }

.doc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-list a { font-size: 13.5px; font-weight: 600; }
.doc-locked { color: #637381; font-size: 13.5px; }
.lock-dot { font-size: 12px; }

.overview-body p { font-size: 15px; line-height: 1.65; margin-bottom: 6px; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: 12px; color: var(--navy); background: var(--bg-soft);
    border-radius: 12px; padding: 3px 10px;
}
.tag:hover { background: var(--navy); color: #fff; text-decoration: none; }

.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn {
    border: 1px solid var(--border); background: #fff; border-radius: var(--radius);
    padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--navy);
}
.action-btn:hover { background: var(--navy); color: #fff; text-decoration: none; }

.related h3 { font-size: 19px; color: var(--navy); margin-bottom: 14px; }

.detail-contact h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.contact-card p { font-size: 13.5px; color: #637381; margin-bottom: 12px; }
.contact-card .small { font-size: 12px; margin-top: 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form select, .contact-form textarea {
    border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; font-weight: 400;
}
.contact-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.share-card .share-row { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1400px) {
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
    .search-layout { grid-template-columns: 1fr; }
    .filters { position: static; max-height: none; }
    .results-grid { grid-template-columns: 1fr; }
    .listing-strip { grid-template-columns: 1fr; }
    .detail-keyfacts-row { grid-template-columns: 1fr; }
    .masthead-inner > .searchbox { max-width: none; }
}
@media (max-width: 720px) {
    .results-grid { grid-template-columns: 1fr; }
    .listing-strip { grid-template-columns: 1fr; }
    .detail-facts th { width: 120px; }
    .contact-grid { grid-template-columns: 1fr; }
    .member-icons li { width: 86px; }
    .create-profiles-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .big-message { font-size: 28px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-cards { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .mainnav { display: none; }
    .hamburger { display: flex; }
    body.nav-open .mainnav {
        display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        border-top: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 90;
    }
    body.nav-open .mainnav ul { flex-direction: column; }
    .auth-inner { grid-template-columns: 1fr; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
    .dash-settings { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .hero-cards { grid-template-columns: repeat(2, 1fr); }
    .hero-ctas { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .searchbox { display: none; }
}

/* =====================================================================
   Phase 2: proposals, inbox, plans, bookmarks
   ===================================================================== */
.credits-chip {
    font-size: 12.5px; color: var(--navy); background: var(--bg-soft);
    border: 1px solid var(--border); border-radius: 16px; padding: 4px 12px;
}
.back-link { display: inline-block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.mt { margin-top: 22px; }

.dash-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.dash-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-muted); padding: 8px 10px; border-bottom: 2px solid var(--border);
}
.dash-table td { padding: 10px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.dash-table tr:last-child td { border-bottom: none; }

.status {
    display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 12px;
    padding: 2px 10px; text-transform: uppercase; letter-spacing: .3px;
}
.status-pending { background: #fdf3dd; color: #8a6100; }
.status-accepted { background: #e6f6ef; color: var(--green-dark); }
.status-declined, .status-withdrawn { background: #fbeaea; color: #a33; }

.proposal-thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.proposal-msg {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px 16px; max-width: 80%;
}
.proposal-msg.own { align-self: flex-end; background: #eef4fb; border-color: #cfdeef; }
.proposal-msg-head {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: 12px; margin-bottom: 6px; color: var(--text-muted);
}
.proposal-msg p { font-size: 14px; white-space: pre-line; }

.mini-card {
    padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.mini-card a { font-weight: 600; }

.plan-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px; margin: 18px 0;
}
.plan-card {
    position: relative; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px; display: flex;
    flex-direction: column; gap: 12px;
}
.plan-card.recommended { border-color: var(--navy); box-shadow: var(--shadow-md); }
.plan-card.inline { max-width: 360px; }
.plan-flag {
    position: absolute; top: -12px; right: 16px; background: var(--navy); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 12px; padding: 3px 10px;
}
.plan-card h3 { font-size: 18px; color: var(--navy); }
.plan-price { font-size: 26px; font-weight: 800; color: var(--text); }
.plan-benefits { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.plan-benefits li { font-size: 13.5px; padding-left: 20px; position: relative; color: var(--text); }
.plan-benefits li::before {
    content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.plan-card .btn { margin-top: auto; }

.bookmark-form { display: inline; }
.alert-info { background: #e8f1fb; color: var(--navy); border: 1px solid #c4daf2; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field small { font-size: 12px; }
.form-field .field-error { color: var(--red); font-size: 12px; }
.form-field.has-error select, .form-field.has-error input, .form-field.has-error textarea {
    border-color: var(--red);
}
.dash-form select, .dash-form textarea, .dash-form input {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 9px 12px; font-weight: 400; background: #fff;
}
.alert-error { background: #fbeaea; color: #a33; border: 1px solid #f0c6c6; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; }
.activity-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.rec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .rec-grid { grid-template-columns: 1fr; } }

/* Dashboard avatar image + empty-state illustrations */
.dash-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.empty-illustration { display: block; width: 140px; margin: 0 auto 10px; opacity: .9; }

.messages-wrap { padding: 12px 16px 0; }
.messages-wrap .alert { margin-bottom: 8px; }
