:root {
    --ink: #17252b;
    --muted: #68777c;
    --line: #dce4e2;
    --paper: #f7f8f6;
    --soft: #edf2ef;
    --brand: #163c46;
    --accent: #14786d;
    --gold: #c99b48;
    --white: #fff;
    --danger: #b43d3d;
    --shadow: 0 16px 40px rgba(23, 37, 43, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(38px, 5.5vw, 64px); line-height: 1.03; letter-spacing: 0; }
h2 { margin-bottom: 11px; font-size: 28px; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: 0; }
p, li { color: var(--muted); line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; padding: 14px clamp(18px, 4vw, 56px); background: rgba(247, 248, 246, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand > img { width: auto; height: 40px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; color: var(--gold); background: var(--brand); }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.topbar nav a { padding: 10px 12px; color: var(--muted); font-size: 14px; }
.topbar nav a:hover { color: var(--ink); }
.topbar .nav-pill { color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 7px; }

main { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.hero { position: relative; min-height: min(590px, calc(100vh - 110px)); margin-top: 24px; padding: clamp(30px, 6vw, 68px); display: flex; align-items: center; overflow: hidden; border-radius: 8px; color: var(--white); background: url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=85") center/cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(13, 43, 52, .78); }
.hero-copy { position: relative; max-width: 800px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero p { max-width: 650px; color: #e8eeee; font-size: 18px; }
.search-bar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 24px; padding: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); border-radius: 8px; }
label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.search-bar label span { color: #e5ecee; }
input, textarea, select { width: 100%; min-height: 44px; padding: 11px 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
textarea { min-height: 116px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(20, 120, 109, .2); border-color: var(--accent); }
button, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; color: var(--white); background: var(--accent); border: 0; border-radius: 7px; font-weight: 700; }
.btn:hover, button:hover { filter: brightness(.96); }
.google-address-widget { width: 100%; }
.google-address-widget gmp-place-autocomplete { width: 100%; min-height: 44px; }
.btn.secondary { color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.full { width: 100%; }
.icon-btn { gap: 9px; }
.icon-btn > span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.whatsapp-btn { background: #128c7e; }
.whatsapp-btn > span { color: #128c7e; background: var(--white); }
.phone-btn > span::before { content: ""; width: 11px; height: 11px; border: 2px solid currentColor; border-top-color: transparent; border-left-color: transparent; border-radius: 0 0 8px 0; transform: rotate(24deg); }
.phone-btn > span { color: var(--brand); background: var(--soft); }
.hero-link { display: inline-block; margin-top: 18px; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .55); font-size: 14px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 42px 0 18px; }
.text-link { color: var(--accent); font-weight: 700; }
.lawyer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lawyer-card { display: block; overflow: hidden; color: inherit; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 8px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lawyer-card:hover { color: inherit; border-color: rgba(201, 155, 72, .55); box-shadow: var(--shadow); transform: translateY(-2px); }
.lawyer-card.is-featured { border-color: rgba(201, 155, 72, .72); box-shadow: var(--shadow); }
.lawyer-card > img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 19px; }
.card-top, .actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-top:empty { display: none; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 9px; color: #7f5a19; background: #f7ecd6; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.soft { color: #17665e; background: #e3f0ed; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.chips span { padding: 7px 9px; background: var(--soft); border-radius: 999px; font-size: 12px; }
.meta-line { min-height: 32px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.publisher-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 42px 0 54px; padding: 32px; color: var(--white); background: var(--brand); border-radius: 8px; }
.publisher-band h2 { margin-bottom: 0; max-width: 650px; }
.empty-state { padding: 34px; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: 8px; }

.narrow-page { max-width: 1020px; }
.page-intro { max-width: 800px; padding: 62px 0 30px; }
.page-intro p { max-width: 650px; font-size: 18px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 54px; }
.panel-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.price-card.is-recommended-plan { border-color: rgba(201, 155, 72, .78); background: linear-gradient(180deg, #fffaf0 0%, #fff 42%); }
.price-card > strong { margin: 8px 0; font-size: 34px; }
.price-card ul { flex: 1; padding-left: 18px; }
.price-card button[disabled] { opacity: .72; cursor: not-allowed; }
.checkout-layout { display: grid; place-items: start center; }
.checkout-card { width: min(560px, 100%); padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 32, 39, .08); }
.checkout-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.checkout-head > span { display: grid; place-items: center; width: 48px; height: 48px; color: var(--white); background: var(--accent); border-radius: 50%; }
.checkout-head h3 { margin: 0; }
.checkout-head p { margin: 3px 0 0; color: var(--muted); }
.checkout-lines { display: grid; gap: 12px; margin-bottom: 22px; }
.checkout-lines div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-lines dt { color: var(--muted); font-weight: 700; }
.checkout-lines dd { margin: 0; color: var(--ink); font-weight: 800; text-align: right; }
.checkout-lines .total { padding-top: 6px; border-bottom: 0; }
.checkout-lines .total dt, .checkout-lines .total dd { color: var(--brand); font-size: 20px; }
.payment-success { display: grid; justify-items: center; gap: 12px; max-width: 520px; margin: 50px auto; padding: 42px 28px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 32, 39, .08); }
.success-mark { display: grid; place-items: center; width: 72px; height: 72px; color: var(--white); background: #20a36a; border-radius: 50%; font-size: 30px; }
.payment-success h3 { margin: 0; font-size: 26px; }
.payment-success p { margin: 0; color: var(--muted); }

body.home-directory {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #c5a880;
    --accent-hover: #b3946c;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-elegant: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.launch-page {
    min-height: 100vh;
    margin: 0;
    color: #0d1b2a;
    background:
        linear-gradient(135deg, rgba(12, 43, 52, .94), rgba(12, 43, 52, .72)),
        url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=85") center/cover fixed;
    font-family: "Inter", system-ui, sans-serif;
}
.launch-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.launch-logo {
    color: #fff;
    text-decoration: none;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
}
.launch-logo img { display: block; max-height: 52px; width: auto; }
.launch-nav-actions { display: flex; align-items: center; gap: 12px; }
.launch-nav-actions a {
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.launch-nav-actions .launch-account {
    padding: 10px 16px;
    color: #0d1b2a;
    background: #d1a765;
    border-radius: 999px;
}
.launch-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(36px, 6vw, 86px) 0 54px;
}
.launch-hero {
    min-height: min(620px, calc(100vh - 150px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: clamp(30px, 6vw, 72px);
}
.launch-hero.maintenance {
    display: flex;
    min-height: min(520px, calc(100vh - 150px));
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 760px;
}
.launch-kicker {
    margin: 0 0 18px;
    color: #d1a765;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.launch-copy h1,
.launch-hero.maintenance h1 {
    margin: 0;
    max-width: 850px;
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: 0;
}
.launch-copy > p,
.launch-hero.maintenance > p:last-child {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 18px;
    line-height: 1.8;
}
.launch-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.launch-primary,
.launch-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.launch-primary { color: #0d1b2a; background: #d1a765; }
.launch-secondary { color: #fff; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.08); }
.launch-card {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.launch-card span {
    color: #d1a765;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.launch-card strong { display: block; margin-top: 16px; color: #fff; font-size: 28px; line-height: 1.18; }
.launch-card p { margin: 16px 0 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.launch-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.launch-benefits article {
    padding: 22px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}
.launch-benefits span { color: #d1a765; font-size: 12px; font-weight: 800; }
.launch-benefits strong { display: block; margin-top: 10px; font-size: 18px; }
.launch-benefits p { margin: 10px 0 0; color: rgba(255,255,255,.76); line-height: 1.65; }

body.home-directory .top-nav {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 5%;
    color: #ffffff;
    background-color: transparent;
}

body.home-directory .nav-logo {
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
}
body.home-directory .nav-logo img {
    width: auto;
    max-width: 190px;
    height: 44px;
    object-fit: contain;
}

body.home-directory .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

body.home-directory .home-menu-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

body.home-directory .home-search-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

body.home-directory .home-search-toggle::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 11px;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

body.home-directory .home-search-toggle::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    width: 9px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transform: rotate(45deg);
    transform-origin: left center;
}

body.home-directory .home-menu-toggle span,
body.home-directory .home-menu-toggle::before,
body.home-directory .home-menu-toggle::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: var(--transition);
}

body.home-directory .home-menu-toggle span {
    top: 19px;
}

body.home-directory .home-menu-toggle::before {
    top: 13px;
}

body.home-directory .home-menu-toggle::after {
    top: 25px;
}

body.home-directory.home-menu-open .home-menu-toggle span {
    opacity: 0;
}

body.home-directory.home-menu-open .home-menu-toggle::before {
    top: 19px;
    transform: rotate(45deg);
}

body.home-directory.home-menu-open .home-menu-toggle::after {
    top: 19px;
    transform: rotate(-45deg);
}

body.home-directory .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

body.home-directory .nav-links a:not(.btn-login):hover {
    color: var(--accent);
}

body.home-directory .btn-login {
    padding: 0.5rem 1.25rem;
    color: var(--accent);
    background-color: rgba(197, 168, 128, 0.1);
    border: 1px solid var(--accent);
    border-radius: 6px;
}

body.home-directory .btn-login:hover {
    color: var(--primary);
    background-color: var(--accent);
}

body.home-directory .hero {
    position: relative;
    z-index: 30;
    display: block;
    min-height: auto;
    margin-top: 0;
    padding: 8rem 2rem 6rem;
    color: #ffffff;
    text-align: center;
    background-color: var(--primary);
    background-image: radial-gradient(circle at 10% 20%, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 1) 90%);
    border-radius: 0;
    overflow: visible;
}

body.home-directory .hero::before {
    display: none;
}

body.home-directory .hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-body), transparent);
    pointer-events: none;
}

body.home-directory .hero-title {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

body.home-directory.directory-static-page .hero.static-hero {
    padding-bottom: 4.5rem;
}

body.home-directory .static-directory {
    margin-top: -2rem;
}

body.home-directory .hero-title span {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

body.home-directory .hero-subtitle {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 300;
}

body.home-directory .search-container {
    position: relative;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 0.5rem;
    max-width: 850px;
    margin: 0 auto;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

body.home-directory .search-group {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

body.home-directory .search-group:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

body.home-directory .search-group svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    color: var(--accent);
}

body.home-directory .search-group-content {
    width: 100%;
    text-align: left;
}

body.home-directory .location-suggest-wrap {
    position: relative;
    overflow: visible;
}

body.home-directory .location-suggestions {
    position: absolute;
    z-index: 5000;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .18);
    color: var(--primary);
    min-width: 280px;
}

body.home-directory .location-suggestions[hidden] {
    display: none;
}

body.home-directory .location-suggestions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--primary);
    background: transparent;
    border: 0;
    border-radius: 8px;
    text-align: left;
}

body.home-directory .location-suggestions button:hover {
    background: #f8fafc;
}

body.home-directory .location-suggestions strong {
    font-size: 14px;
}

body.home-directory .location-suggestions span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

body.home-directory .search-group label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.home-directory .search-group input {
    width: 100%;
    min-height: auto;
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

body.home-directory .search-group input::placeholder {
    color: #94a3b8;
}

body.home-directory .btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: #ffffff;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

body.home-directory .btn-search:hover {
    color: var(--primary);
    background-color: var(--accent);
    border-color: var(--accent);
}

body.home-directory .directory-section {
    position: relative;
    z-index: 1;
    width: calc(100% - 20px);
    max-width: none;
    margin: -2rem auto 5rem;
    padding: 0 10px;
}

body.home-directory .results-count {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

body.home-directory .results-count a {
    margin-left: 12px;
    color: var(--accent);
    font-weight: 600;
}

body.home-directory .grid-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 330px));
    gap: 1rem;
    justify-content: center;
}

body.home-directory .directory-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.home-directory .directory-loader[hidden] {
    display: none;
}

body.home-directory .lawyer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100%;
    padding: 2rem 1.5rem;
    overflow: hidden;
    color: inherit;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-elegant);
    transition: var(--transition);
}

body.home-directory .lawyer-card:hover {
    color: inherit;
    border-color: var(--accent);
    box-shadow: 0 20px 35px -10px rgba(197, 168, 128, 0.15), 0 1px 5px rgba(15, 23, 42, 0.02);
    transform: translateY(-5px);
}

body.home-directory .lawyer-avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition);
}

body.home-directory .lawyer-card:hover .lawyer-avatar-container {
    border-color: var(--accent);
}

body.home-directory .lawyer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: var(--primary);
    background-color: #f1f5f9;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
}

body.home-directory .lawyer-specialty {
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.home-directory .lawyer-name {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    transition: var(--transition);
}

body.home-directory .lawyer-card:hover .lawyer-name {
    color: var(--accent);
}

body.home-directory .lawyer-firm {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

body.home-directory .lawyer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

body.home-directory .lawyer-location {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 500;
}

body.home-directory .lawyer-location svg {
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
    color: var(--accent);
}

body.home-directory .lawyer-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
}

body.home-directory .lawyer-rating svg {
    width: 15px;
    height: 15px;
    color: #f59e0b;
    fill: #f59e0b;
}

body.home-directory .cta-join {
    padding: 5rem 2rem;
    color: white;
    text-align: center;
    background-color: var(--primary-light);
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-top: 4px solid var(--accent);
}

body.home-directory .cta-join-content {
    max-width: 800px;
    margin: 0 auto;
}

body.home-directory .cta-join h2 {
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
}

body.home-directory .cta-join h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 400;
}

body.home-directory .cta-join p {
    margin-bottom: 2.5rem;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
}

body.home-directory .btn-cta {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    color: var(--primary);
    background-color: var(--accent);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(197, 168, 128, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
}

body.home-directory .btn-cta:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 15px 25px rgba(197, 168, 128, 0.3);
    transform: translateY(-3px);
}

body.home-directory .places-strip {
    width: calc(100% - 20px);
    margin: 3rem auto 5rem;
    padding: 0 10px;
}

body.home-directory .places-inner {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 52px);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 32, 39, .96), rgba(32, 58, 67, .94)),
        radial-gradient(circle at 12% 15%, rgba(212, 175, 55, .28), transparent 32%);
    border: 1px solid rgba(212, 175, 55, .28);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .18);
}

body.home-directory .places-kicker {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.home-directory .places-inner h2 {
    margin-bottom: 24px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
}

body.home-directory .places-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.home-directory .place-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body.home-directory .place-pill:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, .18);
    border-color: rgba(212, 175, 55, .5);
    transform: translateY(-2px);
}

body.home-directory .place-pill span {
    font-size: .94rem;
    font-weight: 800;
}

body.home-directory .place-pill small {
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    font-weight: 700;
}

body.home-directory.profile-modal-open {
    overflow: hidden;
}

body.home-directory.profile-modal-open .top-nav,
body.home-directory.profile-modal-open .hero,
body.home-directory.profile-modal-open .directory-section,
body.home-directory.profile-modal-open .cta-join,
body.home-directory.profile-modal-open .places-strip {
    filter: blur(4px) saturate(.86);
    transform: scale(1.01);
    transition: filter .22s ease, transform .22s ease;
}

.profile-modal-shell[hidden] {
    display: none;
}

.profile-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 28px);
}

.profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 13, .58);
    backdrop-filter: blur(18px) saturate(.9);
    -webkit-backdrop-filter: blur(18px) saturate(.9);
}

.profile-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1500px, calc(100vw - 44px));
    height: min(92vh, 860px);
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #eef3f6;
}

.profile-modal-panel > [data-profile-modal-content] {
    width: 100%;
    height: 100%;
}

.profile-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.profile-modal-panel::-webkit-scrollbar {
    width: 12px;
}

.profile-modal-panel::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #eef3f6, #ffffff);
    border-radius: 999px;
    margin: 18px 0;
}

.profile-modal-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #0f2027);
    border: 3px solid #eef3f6;
    border-radius: 999px;
}

.profile-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    background: #d4af37;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(15, 32, 39, .22);
}

.profile-modal-close::before,
.profile-modal-close::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 12px;
    width: 20px;
    height: 2px;
    background: #0f2027;
    border-radius: 999px;
}

.profile-modal-close::before { transform: rotate(45deg); }
.profile-modal-close::after { transform: rotate(-45deg); }
.profile-modal-loading { padding: 60px; text-align: center; color: #64748b; font-weight: 800; }
.profile-modal-content { color: #031127; background: #fff; }
.modal-lawyer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 24px;
    min-height: 720px;
    padding: 24px 56px 24px 44px;
    background: #f4f7f6;
}

.modal-lawyer-main {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #dce4e8;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.03);
}

.modal-lawyer-main h2 {
    margin: 10px 0;
    color: #031127;
    font-size: clamp(28px, 3.3vw, 46px);
    line-height: 1.12;
}

.modal-breadcrumb {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.modal-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px;
}

.modal-pill-row span {
    padding: 8px 14px;
    color: #0f2027;
    background: #edf2f7;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.modal-headline {
    display: inline-block;
    margin: 0 0 18px !important;
    padding: 9px 15px;
    color: #606f7b !important;
    background: #f4f7f6;
    border-radius: 999px;
    font-weight: 700;
}

.modal-lawyer-main section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.modal-lawyer-main h3,
.modal-side-card h3 {
    margin-bottom: 10px;
    color: #031127;
    font-size: 21px;
}

.modal-lawyer-main p,
.modal-side-card p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.72;
}

.modal-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-two > div { padding: 18px; background: #f4f7f6; border-left: 4px solid #d4af37; border-radius: 12px; }
.modal-lawyer-side {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 8px 0 20px;
}

.modal-side-photo {
    position: sticky;
    top: 12px;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 14px;
}

.modal-side-photo img {
    width: 100%;
    max-height: 625px;
    object-fit: cover;
    border-radius: 14px;
}

.modal-side-photo.compact img {
    aspect-ratio: 1 / 1;
}

.modal-side-photo figcaption {
    padding: 12px 4px 2px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.modal-side-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #dce4e8;
    border-top: 5px solid #d4af37;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.03);
}
.modal-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-chip-list span { padding: 8px 11px; color: #7a5b20; background: #fff7e6; border: 1px solid #eed8a8; border-radius: 999px; font-size: 13px; font-weight: 800; }

.modal-specialty-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.modal-specialty-list article {
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.modal-specialty-list strong {
    display: block;
    margin-bottom: 6px;
    color: #0f2027;
}

.modal-contact-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-contact-lines p {
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-weight: 800;
}

.modal-map {
    height: 320px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 10px;
}

.modal-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.modal-hours div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.modal-photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.modal-photo-strip figure {
    position: relative;
    min-height: 160px;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.modal-photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-photo-strip figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 9px;
    color: #fff;
    background: linear-gradient(transparent, rgba(15,32,39,.86));
    font-size: 12px;
    font-weight: 800;
}

.public-page {
    min-height: 100vh;
    background: #f7f8f6;
    color: #17252b;
}

.simple-public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px min(5vw, 60px);
    color: #fff;
    background: #0f2027;
}

.simple-public-nav > a {
    color: #d4af37;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 800;
}

.simple-public-nav div {
    display: flex;
    gap: 18px;
}

.simple-public-nav div a {
    color: #fff;
    font-weight: 700;
}

.booking-page {
    min-height: 100vh;
    color: #17252b;
    background: #f8fafc;
}

.booking-page .simple-public-nav {
    color: #17252b;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    min-height: 62px;
    padding: 0 clamp(16px, 4vw, 34px);
}

.booking-page .simple-public-nav > a:first-child {
    color: #0f172a;
}

.booking-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0;
    color: #475569;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.booking-back-link:hover {
    color: #0f172a;
}

.booking-footer-action {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.booking-shell {
    width: min(820px, calc(100% - 32px));
    margin: 24px auto 48px;
}

.booking-card-public {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 3vw, 28px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.booking-intro {
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.booking-intro h1 {
    margin-bottom: 8px;
    color: #0f172a;
    font-family: inherit;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    letter-spacing: 0;
}

.booking-intro p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.55;
}

.booking-form {
    display: grid;
    gap: 14px;
}

.booking-form label span,
.booking-form .field-label {
    font-size: .76rem;
}

.booking-form input,
.booking-form textarea {
    min-height: 40px;
    padding: 9px 11px;
    font-size: .92rem;
}

.booking-form textarea {
    min-height: 92px;
}

.booking-form .btn {
    min-height: 42px;
    font-size: .9rem;
}

.booking-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-label {
    display: block;
    margin-bottom: 9px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.slot-grid label {
    position: relative;
    cursor: pointer;
}

.slot-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-grid span {
    display: grid;
    place-items: center;
    min-height: 44px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #dce4e2;
    border-radius: 8px;
    font-weight: 800;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.slot-grid input:checked + span {
    color: #ffffff;
    background: #14786d;
    border-color: #14786d;
}

.booking-form button[disabled],
.booking-form .btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.2);
}

.calendar-connect-card {
    display: grid;
    gap: 12px;
}

.calendar-connect-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.02);
}

.calendar-connect-strip > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.calendar-connect-strip strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: .98rem;
}

.calendar-connect-strip span {
    color: var(--text-light);
    font-size: .85rem;
}

.google-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    color: #3c4043;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(60,64,67,.18);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.google-connect-btn i,
.calendar-connect-strip .fa-google {
    color: #4285f4;
}

.google-connect-btn:hover {
    background: #f8fafd;
    border-color: #c9d7f8;
}

.google-connect-btn.is-muted {
    color: var(--text-light);
    box-shadow: none;
}

body.account-body .bookings-shell {
    display: grid;
    gap: 14px;
}

body.account-body .bookings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.02);
}

body.account-body .bookings-head .eyebrow {
    font-size: .68rem;
}

body.account-body .bookings-head h2 {
    margin: 0 0 2px;
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.15;
}

body.account-body .bookings-head p {
    margin: 0;
    color: var(--text-light);
    font-size: .8rem;
}

body.account-body .bookings-count {
    min-width: 82px;
    padding: 10px 12px;
    text-align: center;
    color: var(--primary);
    background: #fff8e1;
    border-radius: 8px;
}

body.account-body .bookings-count strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
}

body.account-body .bookings-count span {
    color: var(--text-light);
    font-size: .72rem;
}

body.account-body .bookings-list {
    display: grid;
    gap: 10px;
}

body.account-body .booking-row {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.02);
}

body.account-body .booking-row-main {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
}

body.account-body .booking-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--accent);
    background: #fff8e1;
    border-radius: 50%;
    font-size: 1rem;
}

body.account-body .booking-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

body.account-body .booking-title-row h3 {
    margin: 0;
    color: var(--primary);
    font-size: .98rem;
}

body.account-body .booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--text-light);
    font-size: .8rem;
}

body.account-body .booking-meta i {
    color: var(--accent);
}

body.account-body .booking-text {
    margin: 10px 0 0;
    color: var(--text-main);
    font-size: .84rem;
    line-height: 1.5;
}

body.account-body .booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

body.account-body .booking-actions form {
    margin: 0;
}

body.account-body .booking-actions a,
body.account-body .booking-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    color: var(--primary);
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    gap: 7px;
}

body.account-body .booking-actions a:hover,
body.account-body .booking-actions button:hover {
    color: var(--primary);
    border-color: var(--accent);
    background: #fff8e1;
}

body.account-body .booking-actions .booking-action-primary {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

body.account-body .booking-actions .booking-action-primary:hover {
    color: #fff;
    border-color: var(--primary);
    background: #0f2f3a;
}

body.account-body .booking-actions .booking-action-gold {
    color: #7b5a12;
    border-color: #e2c166;
    background: #fff8dc;
}

body.booking-confirm-open {
    overflow: hidden;
}

body.account-body .booking-confirm-modal[hidden] {
    display: none;
}

body.account-body .booking-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 18px;
}

body.account-body .booking-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 24, .62);
    backdrop-filter: blur(4px);
}

body.account-body .booking-confirm-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 28px;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 28px 70px rgba(4, 18, 24, .24);
}

body.account-body .booking-confirm-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    color: #61727a;
    background: #f4f7f6;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

body.account-body .booking-confirm-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    color: #7b5a12;
    background: #fff8dc;
    border: 1px solid #e2c166;
    border-radius: 50%;
    font-size: 1.15rem;
}

body.account-body .booking-confirm-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

body.account-body .booking-confirm-card p {
    margin: 0;
    color: #52666f;
    font-size: .94rem;
    line-height: 1.55;
}

body.account-body .booking-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

body.account-body .booking-confirm-actions button {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: .86rem;
    font-weight: 850;
    cursor: pointer;
}

body.account-body .booking-confirm-secondary {
    color: var(--primary);
    background: #f8faf9;
    border: 1px solid var(--line);
}

body.account-body .booking-confirm-primary {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
}

.rating-select {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.rating-select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-select span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: #b08922;
    background: #fff8e1;
    border: 1px solid #ead8aa;
    border-radius: 8px;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 900;
}

.rating-select input:checked + span {
    color: #fff;
    background: #b08922;
    border-color: #b08922;
}

.contact-page,
.specialties-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

.contact-centered {
    display: grid;
    place-items: center;
    min-height: 520px;
}

.contact-intro {
    max-width: 760px;
    margin-bottom: 28px;
}

.contact-intro span {
    color: #c99b48;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-intro h1 {
    margin: 10px 0;
    color: #0f2027;
}

.contact-form-card {
    display: grid;
    gap: 16px;
    width: min(680px, 100%);
    padding: 26px;
    background: #fff;
    border: 1px solid #dce4e2;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(23,37,43,.08);
}

.contact-form-shell {
    width: min(720px, 100%);
    padding: clamp(20px, 4vw, 34px);
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(201, 155, 72, .75), rgba(15, 32, 39, .18)) border-box;
    border: 1px solid transparent;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
}

.contact-form-heading {
    margin-bottom: 22px;
    text-align: center;
}

.contact-form-heading span {
    color: #c99b48;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.contact-form-heading h2 {
    margin-top: 8px;
    color: #0f2027;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
}

.contact-form-shell .contact-form-card {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.contact-form-card label {
    display: grid;
    gap: 8px;
}

.contact-form-card label span {
    color: #203a43;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    color: #0f2027;
    background: #f8fafc;
    border: 1px solid #dce4e2;
    border-radius: 10px;
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-form-card textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    background: #ffffff;
    border-color: rgba(201, 155, 72, .85);
    box-shadow: 0 0 0 4px rgba(201, 155, 72, .12);
}

.btn-contact-submit {
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    color: #ffffff;
    background: #0f2027;
    border-color: #0f2027;
    border-radius: 10px;
}

.btn-contact-submit:hover {
    color: #0f2027;
    background: #c99b48;
    border-color: #c99b48;
}

.specialties-index {
    display: grid;
    grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: start;
}

.specialties-feature {
    position: sticky;
    top: 96px;
    padding: 26px 0 0;
}

.specialties-feature span {
    color: #c99b48;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.specialties-feature h2 {
    margin: 10px 0 14px;
    color: #0f2027;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.05;
}

.specialties-feature p {
    max-width: 340px;
    color: #61707c;
    font-size: 1rem;
    line-height: 1.7;
}

.specialty-public-list {
    display: grid;
    background: #ffffff;
    border: 1px solid #dce4e2;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(23, 37, 43, .08);
}

.specialty-public-row {
    display: grid;
    grid-template-columns: 58px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 22px 26px;
    color: #0f2027;
    text-decoration: none;
    border-bottom: 1px solid #e7eeec;
    transition: background .18s ease, transform .18s ease;
}

.specialty-public-row:last-child {
    border-bottom: 0;
}

.specialty-public-row:hover {
    color: #0f2027;
    background: linear-gradient(90deg, rgba(201, 155, 72, .12), rgba(255, 255, 255, 0));
    transform: translateX(4px);
}

.specialty-public-row > strong {
    color: rgba(15, 32, 39, .28);
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 600;
}

.specialty-public-row i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #c99b48;
    background: #fff7e6;
    border: 1px solid rgba(201, 155, 72, .22);
    border-radius: 999px;
    font-size: 20px;
}

.specialty-public-row span {
    display: grid;
    gap: 6px;
}

.specialty-public-row b {
    color: #0f2027;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 600;
}

.specialty-public-row small {
    color: #61707c;
    font-size: .95rem;
    line-height: 1.55;
}

.specialty-public-row em {
    justify-self: end;
    min-width: 92px;
    padding: 9px 12px;
    color: #14786d;
    background: #eaf8f2;
    border-radius: 999px;
    font-size: .78rem;
    font-style: normal;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.ticket-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.03);
}

.ticket-card.pending {
    border-color: #ead8aa;
}

.ticket-head,
.ticket-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-head span {
    padding: 6px 10px;
    color: #7f5a19;
    background: #f7ecd6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.ticket-card.answered .ticket-head span {
    color: #17665e;
    background: #e3f0ed;
}

.ticket-contact a {
    color: #0f2027;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 850px) {
    .profile-modal-shell {
        padding-right: 0;
        padding-left: 0;
    }

    .profile-modal-panel {
        width: 100vw;
        border-radius: 0;
    }

    body.home-directory .top-nav {
        position: absolute;
        align-items: center;
        padding: 1rem 20px;
    }

    body.home-directory .home-menu-toggle {
        display: block;
        order: 3;
        margin-left: 10px;
    }

    body.home-directory .home-search-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    body.home-directory .nav-logo {
        order: 1;
    }

    body.home-directory .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        left: 20px;
        display: grid;
        gap: 0;
        padding: 8px;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid rgba(197, 168, 128, 0.22);
        border-radius: 12px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: var(--transition);
    }

    body.home-directory.home-menu-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    body.home-directory .nav-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 12px;
        color: #ffffff;
        border-radius: 8px;
    }

    body.home-directory .nav-links a:hover {
        background: rgba(255, 255, 255, 0.07);
    }

    body.home-directory .nav-links .btn-login {
        justify-content: center;
        margin-top: 6px;
    }

    body.home-directory .search-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        max-height: 0;
        margin-top: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: max-height .28s ease, margin-top .28s ease, opacity .2s ease, transform .28s ease;
    }

    body.home-directory.home-search-open .search-container {
        max-height: 520px;
        margin-top: 1.5rem;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    body.home-directory .search-group:not(:last-child) {
        padding-bottom: 0.75rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    body.home-directory .hero-title {
        font-size: 2.2rem;
    }

    body.home-directory .directory-section {
        margin-top: -1rem;
        padding-right: 10px;
        padding-left: 10px;
    }

    .specialties-index {
        grid-template-columns: 1fr;
    }

    .specialties-feature {
        position: static;
        padding-top: 0;
        text-align: center;
    }

    .specialties-feature p {
        margin: 0 auto;
    }

    .specialty-public-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .specialty-public-row > strong {
        font-size: 1.35rem;
    }

    .specialty-public-row i {
        display: none;
    }

    .specialty-public-row em {
        grid-column: 2;
        justify-self: start;
    }

}

@media (max-width: 480px) {
    body.home-directory .cta-join h2 {
        font-size: 1.8rem;
    }

    body.home-directory .cta-join h3 {
        font-size: 1.1rem;
    }

    body.home-directory .grid-directory {
        grid-template-columns: 1fr;
    }

    .profile-modal-shell {
        padding: 0;
    }

    .profile-modal-panel {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .profile-modal-hero,
    .profile-modal-body {
        padding: 22px;
    }

    .profile-modal-hero.compact {
        display: grid;
        justify-items: center;
        text-align: center;
    }

    .modal-two {
        grid-template-columns: 1fr;
    }

    .simple-public-nav {
        align-items: flex-start;
        flex-direction: column;
    }
}

.profile-hero { position: relative; display: flex; align-items: end; min-height: 390px; margin-top: 26px; padding: clamp(28px, 5vw, 50px); overflow: hidden; color: var(--white); background: var(--brand); border-radius: 8px; }
.profile-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.profile-hero > div { position: relative; max-width: 760px; }
.profile-hero p { color: #eef4f4; font-size: 19px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; margin: 18px 0 52px; }
.profile-main, .contact-box, .control-panel, .plan-summary { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.contact-box { align-self: start; box-shadow: var(--shadow); }
.contact-box form { display: grid; gap: 10px; margin-top: 12px; }
.contact-box > .btn { margin-bottom: 9px; }
.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; }
.profile-facts div { padding: 14px; background: var(--soft); border-radius: 7px; }
.profile-facts dt { color: var(--muted); font-size: 12px; }
.profile-facts dd { margin: 6px 0 0; }
.profile-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 24px; }
.profile-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.lawyer-landing { width: 100%; }
.lawyer-hero-slider { position: relative; width: 100%; min-height: clamp(360px, 52vh, 500px); overflow: hidden; background: var(--brand); }
.lawyer-slide { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(28px, 5vw, 62px); opacity: 0; color: var(--white); background-position: center; background-size: cover; transition: opacity .7s ease; }
.lawyer-slide.active { opacity: 1; z-index: 1; }
.lawyer-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 28, 50, .78), rgba(12, 28, 50, .45)); }
.lawyer-slide-copy { position: relative; z-index: 2; display: grid; justify-items: start; gap: 16px; width: min(1120px, 100%); text-align: left; }
.lawyer-slide-copy h1 { margin: 0; max-width: 800px; color: var(--white); font-size: clamp(34px, 4.6vw, 58px); text-transform: uppercase; }
.lawyer-slide-copy h1::after { content: ""; display: block; width: 120px; height: 2px; margin-top: 16px; background: var(--gold); }
.lawyer-slide-copy p { max-width: 760px; color: #f3f6f6; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }
.verified-strip { width: min(1260px, calc(100% - 36px)); margin: 18px auto 0; }
.slider-btn { position: absolute; z-index: 3; top: 50%; width: 48px; height: 48px; min-height: 48px; padding: 0; background: rgba(22, 60, 70, .88); border-radius: 999px; transform: translateY(-50%); }
.slider-btn::before { content: ""; width: 14px; height: 14px; border-top: 4px solid var(--white); border-left: 4px solid var(--white); }
.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }
.slider-btn.prev::before { transform: rotate(-45deg); }
.slider-btn.next::before { transform: rotate(135deg); }
.why-section { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 5vw, 58px); width: min(1180px, calc(100% - 36px)); margin: 42px auto 18px; }
.why-title { display: flex; align-items: flex-start; gap: 15px; padding-top: 12px; }
.why-title::before { content: ""; width: 4px; height: 68px; background: var(--gold); }
.why-title span { color: var(--ink); font-size: clamp(25px, 3vw, 38px); font-weight: 300; line-height: 1.08; text-transform: uppercase; }
.why-card { position: relative; padding: clamp(24px, 4vw, 38px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 36px rgba(23, 37, 43, .07); }
.why-card::before { content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--accent); border-radius: 8px 0 0 8px; }
.why-card p { margin: 0; color: var(--ink); font-size: clamp(18px, 1.9vw, 23px); line-height: 1.66; }
.profile-specialties-section { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 22px; width: min(1180px, calc(100% - 36px)); margin: 0 auto 34px; padding: 20px 0 0; }
.profile-specialties-section > span { color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.profile-specialties { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-specialties span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 15px; color: #123f3b; background: linear-gradient(180deg, #fff 0%, #eaf4f1 100%); border: 1px solid #c6e1db; border-radius: 999px; box-shadow: 0 8px 18px rgba(23, 37, 43, .06); font-size: 13px; font-weight: 800; }
.site-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: min(1260px, calc(100% - 36px)); margin: 0 auto 36px; }
.site-story article { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.site-story span { display: block; margin-bottom: 10px; color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.site-story p { margin: 0; color: var(--ink); }
.landing-layout { width: min(1260px, calc(100% - 36px)); margin-inline: auto; }

.auth-page { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: clamp(30px, 8vw, 100px); min-height: calc(100vh - 150px); padding: 50px 0; }
.auth-copy { max-width: 620px; }
.auth-copy h1 { font-size: clamp(38px, 5vw, 58px); }
.auth-form { display: grid; gap: 14px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.auth-form h2 { margin-bottom: 4px; }
.google-btn { color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { margin: 0; text-align: center; font-size: 13px; }
.auth-switch a { color: var(--accent); font-weight: 700; }
.error-page { min-height: 65vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-code { color: var(--gold); font-size: 18px; font-weight: 700; }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px clamp(18px, 4vw, 56px); color: var(--muted); border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 50; top: 84px; right: 20px; max-width: min(420px, calc(100% - 40px)); padding: 13px 16px; color: var(--white); background: var(--accent); border-radius: 7px; box-shadow: var(--shadow); }
.toast.error { background: var(--danger); }

.account-body { background: #f4f7f6; }
.account-shell { min-height: 100vh; }
.account-menu-toggle, .account-overlay { display: none; }
.account-sidebar { position: fixed; z-index: 100; inset: 0 auto 0 0; width: 260px; display: flex; flex-direction: column; padding: 0; color: #fff; background: #0f2027; transition: transform .28s ease; }
.account-brand { min-height: 74px; padding: 25px; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 20px; letter-spacing: .02em; }
.account-brand > img { width: auto; max-width: 180px; height: 42px; object-fit: contain; }
.account-brand i { color: #d4af37; }
.account-user { display: grid; gap: 5px; margin: 0; padding: 18px 25px; border-bottom: 1px solid rgba(255,255,255,.06); }
.account-user span { color: #9fb0b6; font-size: 12px; }
.account-nav { display: grid; gap: 0; padding: 20px 0; }
.account-nav a, .sidebar-logout { width: 100%; justify-content: flex-start; gap: 15px; min-height: 50px; padding: 14px 25px; color: #b2bec3; background: transparent; border: 0; border-left: 4px solid transparent; border-radius: 0; font-size: 15px; font-weight: 500; text-align: left; }
.account-nav a.active, .account-nav a:hover { color: var(--white); background: rgba(255,255,255,.05); border-left-color: #d4af37; }
.account-submenu { border-radius: 6px; }
.account-submenu summary { display: flex; align-items: center; gap: 15px; min-height: 50px; padding: 14px 25px; color: #b2bec3; border-left: 4px solid transparent; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; }
.account-submenu summary::-webkit-details-marker { display: none; }
.account-submenu summary::after { content: "+"; margin-left: auto; color: #9fb0b6; }
.account-submenu[open] summary { color: var(--white); background: rgba(255, 255, 255, .05); border-left-color: #d4af37; }
.account-submenu[open] summary::after { content: "-"; }
.account-submenu a { min-height: 40px; padding: 10px 25px 10px 56px; font-size: 13px; }
.account-sidebar > form { margin-top: auto; }
.sidebar-logout { color: #ff8585; }
.account-main { width: calc(100% - 260px); margin-left: 260px; padding: 30px; }
.account-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 35px; padding: 15px 25px; background: var(--white); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,.02); }
.account-top h1 { margin: 0; color: #2c3e50; font-size: 21px; font-weight: 800; }
.user-profile-top { display: flex; align-items: center; gap: 12px; }
.user-avatar { display: grid; place-items: center; width: 40px; height: 40px; color: var(--white); background: #0f2027; border-radius: 50%; font-weight: 800; }
.user-info-text h4 { margin: 0; color: #2c3e50; font-size: 15px; }
.user-info-text span { color: #7f8c8d; font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-bottom: 35px; }
.stats-grid > div { position: relative; min-height: 118px; padding: 25px; background: var(--white); border: 0; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,.02); }
.stats-grid span { display: block; margin-bottom: 8px; color: #7f8c8d; font-size: 14px; font-weight: 600; }
.stats-grid strong { display: block; max-width: calc(100% - 62px); color: #0f2027; font-size: 27px; line-height: 1.1; }
.metric-icon { position: absolute; right: 24px; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10px; transform: translateY(-50%); font-size: 20px; font-style: normal; }
.m-blue { color: #1e88e5; background: #e3f2fd; }
.m-gold { color: #b98c15; background: #fff8d9; }
.m-green { color: #43a047; background: #e8f5e9; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quick-action { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.quick-action > span { color: var(--accent); font-size: 13px; }
.quick-action > strong { display: block; margin: 9px 0 5px; font-size: 20px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.toolbar p { margin-bottom: 0; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.status-tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 9px 12px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-weight: 700; }
.status-tabs a.active { color: var(--white); background: var(--brand); border-color: var(--brand); }
.status-tabs span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; color: var(--ink); background: var(--soft); border-radius: 999px; font-size: 12px; }
.status-tabs a.active span { color: var(--brand); background: var(--white); }
.form-stack { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-row { display: flex; flex-wrap: wrap; gap: 20px; }
.check-row label { display: flex; align-items: center; gap: 8px; }
.check-row input { width: 18px; min-height: 18px; }
.range-field { display: grid; gap: 8px; }
.range-field > span { grid-column: 1 / -1; }
.range-field input { grid-column: 1 / -1; min-height: 28px; padding: 0; background: transparent; border: 0; appearance: none; }
.range-field input::-webkit-slider-runnable-track { height: 10px; background: linear-gradient(90deg, #b43d3d 0%, #d6b46a 50%, #14786d 100%); border-radius: 999px; }
.range-field input::-moz-range-track { height: 10px; background: linear-gradient(90deg, #b43d3d 0%, #d6b46a 50%, #14786d 100%); border-radius: 999px; }
.range-field input::-moz-range-progress { height: 10px; background: linear-gradient(90deg, #b43d3d, #d6b46a, #14786d); border-radius: 999px; }
.range-field input::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -6px; appearance: none; background: var(--white); border: 3px solid var(--accent); border-radius: 50%; box-shadow: 0 3px 10px rgba(23, 37, 43, .22); }
.range-field input::-moz-range-thumb { width: 18px; height: 18px; background: var(--white); border: 3px solid var(--accent); border-radius: 50%; box-shadow: 0 3px 10px rgba(23, 37, 43, .22); }
.range-scale { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; }
.range-scale output { justify-self: center; min-width: 38px; padding: 5px 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; text-align: center; }
.range-scale small { color: var(--muted); font-size: 12px; }
.range-scale small:last-child { justify-self: end; }
.range-field strong { grid-column: 1 / -1; padding: 9px 11px; color: #17665e; background: #e3f0ed; border-radius: 7px; font-size: 13px; text-align: center; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.count-field { display: grid; gap: 7px; }
.field-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mark-button { width: auto; min-width: 82px; height: 34px; min-height: 34px; padding: 0 12px; color: var(--white); background: var(--brand); border-radius: 7px; font-size: 12px; font-weight: 800; }
.count-field textarea { min-height: 128px; }
.count-field small { justify-self: end; color: var(--muted); font-size: 12px; }
.count-field output { font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
td small, .muted-text { color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pill.active { color: #17665e; background: #e3f0ed; }
.status-pill.suspended { color: #8f3030; background: #f8e9e9; }
.status-pill.pending { color: #7f5a19; background: #f7ecd6; }
.status-pill.approved { color: #17665e; background: #e3f0ed; }
.status-pill.active { color: #17665e; background: #dff5ec; }
.status-pill.rejected { color: #8f3030; background: #f8e9e9; }
.status-pill.draft { color: var(--muted); background: var(--soft); }
.row-actions { text-align: right; }
.row-actions a, .row-actions button, .danger-link { min-height: auto; padding: 6px 8px; color: var(--accent); background: transparent; border: 0; font-size: 13px; font-weight: 600; cursor: pointer; }
.row-actions form { display: inline; }
.danger-link { color: var(--danger); }
.admin-badge { display: inline-flex; margin-left: 8px; padding: 4px 7px; color: #7f5a19; background: #f7ecd6; border-radius: 999px; font-size: 11px; font-weight: 700; }
.admin-badge.success { margin-left: 0; color: #1b6d45; background: #dff3e9; }
.admin-badge.muted { margin-left: 0; color: #697386; background: #eef1f5; }
tr.is-disabled-row { opacity: .72; }
.notice { margin-bottom: 18px; padding: 13px 16px; color: #165b53; background: #e4f1ee; border: 1px solid #c6e1db; border-radius: 7px; }
.notice.error { color: #8f3030; background: #f8e9e9; border-color: #eccaca; }
.pending-card { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 42px auto; padding: 38px 28px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.pending-card h2 { margin-bottom: 0; }
.pending-card p { margin-bottom: 8px; }
.pending-icon { position: relative; display: grid; place-items: center; width: 58px; height: 58px; background: #e3f0ed; border-radius: 999px; }
.pending-icon::before { content: ""; width: 22px; height: 22px; border: 3px solid var(--accent); border-top-color: transparent; border-radius: 999px; }
.pending-icon::after { content: ""; position: absolute; width: 3px; height: 13px; background: var(--accent); transform: translateY(-1px); }
.settings-accordion { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
.settings-accordion + .settings-accordion { margin-top: 12px; }
.settings-accordion summary { padding: 16px 18px; font-size: 18px; font-weight: 700; cursor: pointer; }
.settings-accordion > .form-grid, .settings-accordion > .form-stack, .settings-accordion > .check-row { padding: 0 18px 18px; }
.settings-accordion > .check-row { margin-bottom: 10px; }
.system-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 18px 18px; }
.system-toggle { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfb; cursor: pointer; }
.system-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.system-toggle strong { display: block; color: var(--ink); font-size: 16px; }
.system-toggle small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; }
.system-toggle.danger input { accent-color: #a93d3d; }
.panel-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; margin-bottom: 18px; align-items: start; }
.plan-summary { align-self: start; }
.plan-summary > span { color: var(--muted); font-size: 13px; }
.plan-summary > strong { display: block; margin: 7px 0 9px; font-size: 20px; }
.control-panel, .plan-summary { border: 0; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,.02); }
.panel-heading h2 { display: flex; align-items: center; gap: 10px; color: #0f2027; font-size: 20px; }
.panel-heading h2 i, .account-summary h3 i { color: #d4af37; }
.account-summary { text-align: center; }
.account-summary h3 { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; color: #0f2027; font-size: 19px; }
.account-summary img { width: 90px; height: 90px; margin: 0 auto 15px; border: 3px solid #edf2f7; border-radius: 50%; object-fit: cover; }
.account-summary h4 { margin: 0 0 5px; font-size: 18px; }
.account-summary p { margin-bottom: 16px; color: #7f8c8d; font-size: 14px; line-height: 1.45; }
.plan-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 15px; padding: 8px 20px; color: var(--white); background: linear-gradient(135deg, #0f2027, #203a43); border-radius: 20px; font-size: 13px; font-weight: 800; }
.plan-badge i { color: #d4af37; }
.account-plan-cta { display: grid; justify-items: center; gap: 7px; margin-top: 14px; padding: 20px 16px; color: #0f2027; text-decoration: none; background: linear-gradient(145deg, #fffaf0, #ffffff 52%, #edf7f4); border: 1px solid #ead8aa; border-radius: 12px; box-shadow: 0 14px 30px rgba(15, 32, 39, .08); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.account-plan-cta:hover { transform: translateY(-2px); border-color: #d4af37; box-shadow: 0 18px 38px rgba(15, 32, 39, .13); }
.account-plan-cta span { display: grid; place-items: center; width: 44px; height: 44px; color: #0f2027; background: #d4af37; border-radius: 50%; box-shadow: 0 8px 18px rgba(212, 175, 55, .3); }
.account-plan-cta strong { font-size: 18px; }
.account-plan-cta small { color: #667781; font-size: 13px; font-weight: 700; }
.mini-note { padding: 10px 11px; color: #17665e; background: #e3f0ed; border-radius: 7px; font-size: 13px; }
.inquiry { padding: 16px 0; border-top: 1px solid #edf2f7; }
.inquiry div { display: flex; justify-content: space-between; gap: 12px; }
.inquiry span, .inquiry small { color: var(--muted); font-size: 12px; }
.inquiry p { margin: 8px 0; color: var(--ink); }
dialog { width: min(450px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 8px; box-shadow: var(--shadow); }
dialog.wide-dialog { width: min(680px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(10, 26, 31, .62); }
.dialog-card { padding: 24px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; }
.inline-form input:first-child:last-of-type { grid-column: span 2; }
.photo-admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photo-admin-grid .photo-card { position: relative; padding: 10px; background: var(--soft); border: 2px solid transparent; border-radius: 7px; }
.photo-admin-grid .photo-card.selected { border-color: var(--accent); background: #e3f0ed; }
.photo-admin-grid .photo-main-choice { display: block; cursor: pointer; }
.photo-admin-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.photo-admin-grid span { display: block; color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }
.photo-admin-grid input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.photo-admin-grid textarea, .photo-preview-card textarea { min-height: 70px; margin-top: 8px; font-size: 12px; resize: vertical; }
.photo-delete-button { position: absolute; z-index: 2; top: 16px; right: 16px; width: 30px; height: 30px; min-height: 30px; padding: 0; background: rgba(159, 29, 29, .94); border: 2px solid rgba(255, 255, 255, .9); border-radius: 999px; box-shadow: 0 8px 18px rgba(23, 37, 43, .22); }
.photo-delete-button::before, .photo-delete-button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--white); border-radius: 999px; }
.photo-delete-button::before { transform: translate(-50%, -50%) rotate(45deg); }
.photo-delete-button::after { transform: translate(-50%, -50%) rotate(-45deg); }
.file-drop { position: relative; display: grid; place-items: center; gap: 8px; min-height: 150px; padding: 24px; overflow: hidden; color: var(--ink); background: linear-gradient(135deg, #f9fbfa 0%, #e6f2ef 100%); border: 1px solid #c6e1db; border-radius: 8px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.file-drop:hover { border-color: var(--accent); }
.file-drop input { position: absolute; inset: 0; width: 100%; min-height: 100%; opacity: 0; cursor: pointer; }
.file-drop strong { font-size: 15px; }
.file-drop-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--white); background: var(--accent); border-radius: 999px; font-size: 26px; line-height: 1; box-shadow: 0 8px 22px rgba(20, 120, 109, .25); }
.photo-preview-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.photo-preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.photo-preview-card { display: block; padding: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; }
.schedule-box { display: grid; gap: 12px; }
.schedule-box h2 { margin-bottom: 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.schedule-row { display: grid; grid-template-columns: 22px minmax(92px, 1fr) 112px 112px; align-items: center; gap: 10px; padding: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.schedule-row > input[type="checkbox"] { width: 18px; min-height: 18px; padding: 0; accent-color: var(--accent); }
.schedule-row > span { margin: 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.schedule-row > input[type="time"] { min-height: 40px; padding: 8px 10px; }
.schedule-row > input[type="time"]:disabled { opacity: .45; background: #f4f6f5; }
.tag-picker { display: grid; gap: 13px; }
.profile-accordion { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.profile-accordion summary { padding: 15px 16px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.profile-accordion summary::-webkit-details-marker { display: none; }
.profile-accordion summary::after { content: "+"; float: right; color: var(--accent); font-size: 20px; line-height: 1; }
.profile-accordion[open] summary { border-bottom: 1px solid var(--line); }
.profile-accordion[open] summary::after { content: "-"; }
.profile-accordion .tag-picker { padding: 14px; }
.tag-entry { display: grid; gap: 10px; padding: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.tag-entry input { background: var(--white); }
.tag-block { display: grid; gap: 7px; }
.tag-block > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.selected-tags, .available-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; padding: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.selected-tags:empty::before { content: "Sin seleccionar"; align-self: center; color: var(--muted); font-size: 13px; }
.available-tags:empty::before { content: "Sin disponibles"; align-self: center; color: var(--muted); font-size: 13px; }
.selected-tags button, .available-tags button { min-height: 32px; padding: 7px 11px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.selected-tags button:hover, .available-tags button:hover { transform: translateY(-1px); border-color: rgba(20, 120, 109, .45); }
.selected-tags button { color: #17665e; background: #e3f0ed; border-color: #c6e1db; }
.specialty-text-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.specialty-text-editor label { display: grid; gap: 8px; padding: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.specialty-text-editor textarea { min-height: 120px; background: var(--white); }
.review-layout { max-width: 980px; }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.review-head h2 { margin-top: 10px; }
.review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.review-checklist { display: flex; flex-wrap: wrap; gap: 8px; }
.review-checklist span { display: inline-flex; align-items: center; min-height: 30px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.review-checklist .ok { color: #17665e; background: #e3f0ed; }
.review-checklist .missing { color: #8f3030; background: #f8e9e9; }
.review-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.review-facts div { padding: 13px; background: var(--soft); border-radius: 7px; }
.review-facts dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.review-facts dd { margin: 6px 0 0; }
.review-map { height: 320px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.review-map iframe { width: 100%; height: 100%; border: 0; }
.review-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.review-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.review-photos figure { margin: 0; padding: 8px; background: var(--soft); border-radius: 7px; }
.review-photos figcaption { margin-top: 7px; color: var(--ink); font-size: 12px; }

/* Panel de control */
body.account-body {
    --primary: #0f2027;
    --secondary: #203a43;
    --accent: #d4af37;
    --bg-body: #f4f7f6;
    --white: #ffffff;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --border-radius: 12px;
    --sidebar-width: 260px;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}
body.account-body .sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary);
    color: var(--white);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
body.account-body .sidebar-brand {
    padding: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}
body.account-body .sidebar-brand i { color: var(--accent); }
body.account-body .sidebar-brand img { width: auto; max-width: 190px; height: 44px; object-fit: contain; }
body.account-body .sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}
body.account-body .sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #b2bec3;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}
body.account-body .sidebar-menu li a .menu-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 6px;
    color: var(--white);
    background: #e53935;
    border: 2px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(229,57,53,0.28);
}
body.account-body .sidebar-menu li a:hover,
body.account-body .sidebar-menu li.active a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent);
    padding-left: 21px;
}
body.account-body .sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
body.account-body .btn-logout {
    color: #ff7675;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    background: none;
    border: 0;
    padding: 0;
}
body.account-body .main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 30px;
    transition: all 0.3s ease;
    width: calc(100% - var(--sidebar-width));
}
body.account-body .top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
body.account-body .top-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}
body.account-body .menu-toggle {
    display: none;
    font-size: 1.4rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}
body.account-body .user-profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
body.account-body .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
body.account-body .user-info-text h4 { font-size: 0.95rem; font-weight: 600; margin: 0; }
body.account-body .user-info-text span { font-size: 0.8rem; color: var(--text-light); }
body.account-body .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}
body.account-body .metric-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.account-body .metric-data h3 { font-size: 1.8rem; margin-bottom: 5px; color: var(--primary); }
body.account-body .metric-data p { font-size: 0.9rem; color: var(--text-light); font-weight: 500; margin: 0; }
body.account-body .metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: static;
    transform: none;
}
body.account-body .m-blue { background: #e3f2fd; color: #1e88e5; }
body.account-body .m-gold { background: #fffde7; color: #fbc02d; }
body.account-body .m-green { background: #e8f5e9; color: #43a047; }
body.account-body .panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}
body.account-body .dashboard-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 430px));
    justify-content: start;
    align-content: start;
    gap: 25px;
    min-width: 0;
}
body.account-body .panel-grid-single {
    grid-template-columns: minmax(260px, 430px);
}
body.account-body .content-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
body.account-body .content-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.account-body .table-responsive { width: 100%; overflow-x: auto; }
body.account-body .modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}
body.account-body .modern-table th {
    padding: 12px;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid #edf2f7;
}
body.account-body .modern-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #edf2f7;
    color: var(--text-main);
}
body.account-body .status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
body.account-body .status-badge.confirmed { background: #e8f5e9; color: #2e7d32; }
body.account-body .status-badge.pending { background: #fff3e0; color: #ef6c00; }
body.account-body .status-badge.canceled { background: #f8e9e9; color: #9f2f2f; }
body.account-body .btn-action {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.2s;
}
body.account-body .btn-action:hover { color: var(--primary); }
body.account-body .content-card .table-responsive + .btn { margin-top: 18px; }
body.account-body .messages-shell { display: grid; gap: 22px; }
body.account-body .messages-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(15, 32, 39, 0.04);
}
body.account-body .messages-head h2 { margin: 0 0 4px; color: var(--primary); font-size: clamp(1rem, 1.5vw, 1.2rem); }
body.account-body .messages-head p { margin: 0; color: var(--text-light); font-size: 0.9rem; }
body.account-body .messages-count {
    min-width: 118px;
    padding: 18px;
    text-align: center;
    border-radius: 8px;
    background: #fff8e1;
    color: var(--primary);
}
body.account-body .messages-count strong { display: block; font-size: 2rem; line-height: 1; }
body.account-body .messages-count span { color: var(--text-light); font-size: 0.85rem; }
body.account-body .messages-list { display: grid; gap: 16px; }
body.account-body .message-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(15, 32, 39, 0.04);
}
body.account-body .message-card.is-new { border-left: 4px solid var(--accent); }
body.account-body .message-card-main { display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
body.account-body .message-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-weight: 800;
}
body.account-body .message-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
body.account-body .message-title-row h3 { margin: 0; color: var(--primary); font-size: 1.15rem; }
body.account-body .message-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--text-light); font-size: 0.9rem; }
body.account-body .message-meta i { color: var(--accent); }
body.account-body .message-text {
    margin: 16px 0 0;
    color: var(--text-main);
    line-height: 1.7;
    white-space: normal;
}
body.account-body .message-actions { display: flex; align-items: center; justify-content: flex-end; }
body.account-body .message-done { display: inline-flex; align-items: center; gap: 8px; color: #2e7d32; font-weight: 700; }
body.account-body .account-summary { text-align: center; }
body.account-body .account-summary img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #edf2f7;
}
body.account-body .account-summary h4 { font-size: 1.1rem; margin-bottom: 5px; }
body.account-body .account-summary p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; }
body.account-body .plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}
body.account-body .plan-badge i { color: var(--accent); margin-right: 5px; }
body.account-body .account-plan-cta {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 20px 16px;
    color: var(--primary);
    text-decoration: none;
    background: linear-gradient(145deg, #fffaf0, #ffffff 52%, #edf7f4);
    border: 1px solid #ead8aa;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 32, 39, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.account-body .account-plan-cta:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 18px 38px rgba(15, 32, 39, .13);
}
body.account-body .account-plan-cta span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--primary);
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(212, 175, 55, .3);
}
body.account-body .account-plan-cta strong { font-size: 18px; }
body.account-body .account-plan-cta small { color: var(--text-light); font-size: 13px; font-weight: 700; }
body.account-body .push-top-summary h3 { margin-bottom: 16px; }
body.account-body .push-top-next {
    display: grid;
    gap: 6px;
    padding: 18px;
    color: var(--primary);
    background: linear-gradient(145deg, #fffaf0, #ffffff 55%, #f3f8f7);
    border: 1px solid #ead8aa;
    border-radius: 14px;
}
body.account-body .push-top-next span,
body.account-body .push-top-facts span {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 700;
}
body.account-body .push-top-next strong {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1;
}
body.account-body .push-top-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
body.account-body .push-top-facts div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    background: #f8faf9;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}
body.account-body .push-top-facts strong {
    color: var(--primary);
    font-size: 1rem;
    overflow-wrap: anywhere;
}
body.account-body .push-top-note,
body.account-body .push-top-empty {
    margin: 14px 0 0;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.45;
}
body.account-body .profile-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    overflow: hidden;
    background: #edf2f7;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
body.account-body .profile-tabs a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 16px;
    color: var(--text-light);
    background: transparent;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    text-decoration: none;
}
body.account-body .profile-tabs a.active {
    color: var(--primary);
    background: var(--white);
    border-bottom-color: var(--accent);
}
body.account-body .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    transition: all 0.3s;
}

@media (max-width: 992px) {
    body.account-body .panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body.account-body .sidebar { left: -100%; }
    body.account-body .sidebar.active { left: 0; }
    body.account-body .sidebar-overlay.active { display: block; }
    body.account-body .main-content { margin-left: 0; width: 100%; padding: 20px; }
    body.account-body .menu-toggle { display: block; }
    body.account-body .top-header { padding: 15px; }
    body.account-body .profile-tabs { overflow-x: auto; }
    body.account-body .profile-tabs a { min-width: 150px; }
    body.account-body .messages-head,
    body.account-body .message-card {
        grid-template-columns: 1fr;
    }
    body.account-body .messages-head { align-items: flex-start; }
    body.account-body .message-card-main { grid-template-columns: 1fr; }
    body.account-body .message-actions { justify-content: flex-start; }
    body.account-body .dashboard-side { grid-template-columns: 1fr; }
    .calendar-connect-strip {
        align-items: stretch;
        flex-direction: column;
    }
    .google-connect-btn {
        width: 100%;
    }
    body.account-body .bookings-head {
        align-items: flex-start;
        flex-direction: column;
    }
    body.account-body .bookings-count {
        width: 100%;
        text-align: left;
    }
    body.account-body .booking-row-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .lawyer-grid, .pricing-grid, .panel-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-layout, .auth-page, .panel-columns { grid-template-columns: 1fr; }
    .review-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-section, .profile-specialties-section { grid-template-columns: 1fr; }
    .site-story { grid-template-columns: 1fr; }
    .lawyer-slide-copy h1::after { width: 90px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-summary { order: -1; }
}

@media (max-width: 760px) {
    .account-shell { grid-template-columns: 1fr; }
    .account-menu-toggle { position: fixed; z-index: 120; top: 20px; left: 20px; display: block; width: 42px; height: 42px; padding: 0; background-color: #0f2027; background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); background-position: center 13px, center 20px, center 27px; background-repeat: no-repeat; background-size: 20px 2px, 20px 2px, 20px 2px; border: 0; border-radius: 7px; box-shadow: var(--shadow); }
    .account-menu-toggle span { display: none; }
    .account-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    .account-sidebar { z-index: 100; width: min(290px, 86vw); transform: translateX(-100%); box-shadow: var(--shadow); }
    .account-menu-open .account-sidebar { transform: translateX(0); }
    .account-menu-open .account-overlay { opacity: 1; pointer-events: auto; display: block; }
    .account-nav { grid-template-columns: 1fr; }
    .account-main { width: 100%; margin-left: 0; padding: 20px; padding-top: 82px; }
    .account-top { padding: 15px; }
}

@media (max-width: 640px) {
    .launch-nav { width: min(100% - 24px, 1180px); padding: 18px 0; }
    .launch-logo { font-size: 24px; }
    .launch-shell { width: min(100% - 24px, 1180px); padding-top: 34px; }
    .launch-hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; }
    .launch-copy h1, .launch-hero.maintenance h1 { font-size: 39px; line-height: 1.08; }
    .launch-copy > p, .launch-hero.maintenance > p:last-child { font-size: 16px; line-height: 1.7; }
    .launch-actions { display: grid; grid-template-columns: 1fr; }
    .launch-card { padding: 22px; }
    .launch-benefits { grid-template-columns: 1fr; }
    .system-status-grid { grid-template-columns: 1fr; }
    .booking-page .simple-public-nav {
        padding: 12px 14px;
    }
    .booking-shell {
        width: min(100% - 20px, 980px);
        margin: 18px auto 34px;
    }
    .booking-form .form-grid {
        grid-template-columns: 1fr;
    }
    .slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .topbar { position: static; align-items: flex-start; flex-direction: column; gap: 10px; }
    .topbar nav { width: 100%; overflow-x: auto; }
    .topbar nav a { white-space: nowrap; }
    .hero { min-height: 520px; margin-top: 16px; padding: 26px 20px; }
    .search-bar, .pricing-grid, .panel-pricing, .form-grid, .quick-grid, .profile-facts { grid-template-columns: 1fr; }
    .lawyer-grid { grid-template-columns: 1fr; gap: 14px; }
    .lawyer-card > img { height: 210px; }
    .lawyer-card .card-body { padding: 12px; }
    .lawyer-card h3 { font-size: 17px; }
    .lawyer-card p, .lawyer-card .meta-line { font-size: 12px; }
    .lawyer-card .chips { gap: 5px; }
    .lawyer-card .chips span { font-size: 11px; }
    .profile-gallery, .inline-form, .specialty-text-editor { grid-template-columns: 1fr; }
    .schedule-grid { grid-template-columns: 1fr; }
    .schedule-row { grid-template-columns: 22px 1fr; }
    .schedule-row > input[type="time"] { grid-column: span 1; }
    .review-facts, .review-photos { grid-template-columns: 1fr; }
    .photo-admin-grid, .photo-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    h1 { font-size: 38px; }
    .section-head, .publisher-band, .toolbar, .footer { align-items: flex-start; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid > div { min-height: 100px; }
    .actions .btn { flex: 1; }
    .form-actions { justify-content: stretch; }
    .form-actions .btn, .form-actions button { flex: 1; }
    .account-nav { grid-template-columns: 1fr 1fr; }
    .lawyer-hero-slider { min-height: 420px; }
    .lawyer-slide { padding: 26px 18px; }
    .lawyer-slide-copy h1::after { width: 80px; margin-top: 12px; }
    .slider-btn { top: auto; bottom: 22px; width: 42px; height: 42px; min-height: 42px; }
    .slider-btn.prev { left: 20px; }
    .slider-btn.next { right: 20px; }
    .why-section { margin-top: 28px; }
    .why-title::before { height: 62px; }
    .why-card { padding: 22px 20px; }
    .profile-specialties-section { gap: 12px; margin-bottom: 28px; }
}
