:root {
    --brand-primary: #1f6f5f;
    --brand-accent: #d4a84f;
    --brand-dark: #102a25;
    --surface: #ffffff;
    --surface-soft: #f5f7f6;
    --surface-muted: #edf1ef;
    --text: #17221f;
    --text-muted: #66736f;
    --border: #dfe6e3;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --success: #10704a;
    --success-soft: #eaf8f1;
    --warning: #9a6700;
    --shadow-sm: 0 1px 2px rgba(16, 42, 37, .06);
    --shadow-md: 0 14px 35px rgba(16, 42, 37, .10);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --sidebar-width: 275px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--surface-soft); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
code { padding: 3px 7px; border-radius: 6px; color: #31554c; background: #edf4f1; font-size: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; font-size: 14px; line-height: 1; transition: .2s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-primary) 25%, transparent); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--brand-primary); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-primary) 24%, transparent); }
.button-primary:hover { background: color-mix(in srgb, var(--brand-primary) 88%, #000); }
.button-secondary { color: var(--brand-primary); background: #fff; border-color: color-mix(in srgb, var(--brand-primary) 25%, var(--border)); }
.button-secondary:hover { background: color-mix(in srgb, var(--brand-primary) 6%, #fff); }
.button-ghost { color: #53625e; background: transparent; border-color: var(--border); }
.button-ghost:hover { background: var(--surface-muted); }
.button-danger-ghost { color: var(--danger); background: transparent; border-color: #f3c6c1; }
.button-danger-ghost:hover { background: var(--danger-soft); }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.button-large { min-height: 50px; padding: 14px 22px; font-size: 15px; }
.button-block { width: 100%; }
.text-link, .text-button { color: var(--brand-primary); font-weight: 750; font-size: 13px; }
.text-button { padding: 0; border: 0; background: transparent; }
.muted-text { color: var(--text-muted); font-size: 13px; }

.alert { display: flex; gap: 11px; align-items: flex-start; padding: 13px 16px; margin: 0 0 18px; border: 1px solid; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-sm); }
.alert > span { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 50%; font-weight: 900; }
.alert-success { color: #0c5d3c; background: var(--success-soft); border-color: #b8e5ce; }
.alert-success > span { color: #fff; background: var(--success); }
.alert-error { color: #8f1f16; background: var(--danger-soft); border-color: #f0c0bb; }
.alert-error > span { color: #fff; background: var(--danger); }
.compact-alert { margin-top: 14px; }

/* Authentication and installer */
.auth-body { display: grid; min-height: 100vh; place-items: center; padding: 34px 18px; overflow-x: hidden; background: #eef3f1; }
.auth-background { position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 38%), radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--brand-accent) 20%, transparent), transparent 35%), linear-gradient(135deg, #f8fbfa 0%, #e8f0ed 100%); }
.auth-background::before, .auth-background::after { content: ""; position: absolute; border: 1px solid rgba(31,111,95,.08); border-radius: 50%; }
.auth-background::before { width: 460px; height: 460px; left: -160px; bottom: -190px; }
.auth-background::after { width: 620px; height: 620px; right: -260px; top: -250px; }
.auth-shell { width: min(100%, 1120px); }
.auth-card, .installer-card { border: 1px solid rgba(216, 227, 223, .95); border-radius: var(--radius-lg); background: rgba(255,255,255,.96); box-shadow: 0 25px 65px rgba(16, 42, 37, .14); }
.login-card { width: min(100%, 470px); margin: auto; padding: 38px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 52px; height: 52px; object-fit: contain; }
.auth-brand strong { display: block; font-size: 17px; }
.auth-brand span { display: block; color: var(--text-muted); font-size: 12px; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 65%, #082c25)); font-weight: 900; box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-primary) 22%, transparent); }
.brand-mark-large { width: 52px; height: 52px; border-radius: 15px; font-size: 21px; }
.auth-heading { margin: 34px 0 25px; }
.eyebrow { display: inline-block; margin-bottom: 9px; color: var(--brand-primary); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.auth-heading h1, .installer-intro h1 { margin: 0; font-size: clamp(29px, 4vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.auth-heading p, .installer-intro p { margin: 10px 0 0; color: var(--text-muted); }
.auth-security-note { display: flex; gap: 8px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.auth-security-note span { color: var(--success); }

.installer-card { overflow: hidden; }
.installer-header { display: flex; align-items: center; justify-content: space-between; padding: 25px 30px; border-bottom: 1px solid var(--border); background: #fbfcfc; }
.installer-step { padding: 8px 12px; border: 1px solid #d9e7e2; border-radius: 999px; color: var(--brand-primary); background: #f3f8f6; font-size: 12px; font-weight: 800; }
.installer-intro { padding: 42px 42px 24px; }
.installer-intro p { max-width: 760px; }
.requirements-panel { margin: 12px 42px 30px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #f9fbfa; }
.requirements-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.requirement-item { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.requirement-item.failed { border-color: #efc3be; background: #fff7f6; }
.requirement-icon { display: grid; width: 27px; height: 27px; place-items: center; flex: 0 0 27px; border-radius: 50%; color: #fff; background: var(--success); font-weight: 900; }
.requirement-item.failed .requirement-icon { background: var(--danger); }
.requirement-item strong, .requirement-item span { display: block; }
.requirement-item strong { font-size: 13px; }
.requirement-item div > span { color: var(--text-muted); font-size: 12px; }
.installer-form { border-top: 1px solid var(--border); }
.form-section { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 34px 42px; border-bottom: 1px solid var(--border); }
.form-section-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: var(--brand-primary); font-weight: 900; }
.form-section-content { min-width: 0; }
.installer-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 42px; background: #f8faf9; }
.installer-submit strong, .installer-submit span { display: block; }
.installer-submit span { color: var(--text-muted); font-size: 12px; }
.installer-blocked { margin: 0 42px 42px; padding: 22px; border: 1px solid #edbdb8; border-radius: 12px; color: #8f1f16; background: #fff5f3; }
.installer-blocked p { margin-bottom: 0; }

/* Forms */
.form-stack { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }
.form-group { min-width: 0; }
.form-group label { display: block; margin-bottom: 7px; color: #273a35; font-size: 13px; font-weight: 750; }
.form-group input, .form-group select, .form-group textarea, .filter-bar input, .filter-bar select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ced9d5; border-radius: 9px; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 12%, transparent); outline: none; }
.field-help { margin-top: 5px; color: var(--text-muted); font-size: 11px; }
.field-error { margin-top: 5px; color: var(--danger); font-size: 12px; font-weight: 650; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle { position: absolute; top: 50%; right: 7px; padding: 5px 8px; border: 0; border-radius: 6px; color: var(--brand-primary); background: #edf5f2; font-size: 11px; font-weight: 800; transform: translateY(-50%); }
.form-layout { display: grid; gap: 18px; }
.form-panel { padding: 26px; }
.form-submit-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); }
.form-submit-bar .muted-text { margin-right: auto; }
.color-field { display: grid; grid-template-columns: 48px 1fr; gap: 9px; }
.color-field input[type=color] { height: 44px; padding: 4px; }

/* Admin shell */
.admin-body { overflow-x: hidden; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; width: var(--sidebar-width); flex-direction: column; color: #dce8e4; background: linear-gradient(180deg, #102f29 0%, #0b211d 100%); box-shadow: 12px 0 35px rgba(7, 28, 23, .11); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 19px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { color: #fff; font-size: 16px; }
.sidebar-brand span { color: #93aaa3; font-size: 11px; }
.brand-logo-image { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; }
.sidebar-nav { flex: 1; padding: 18px 13px; overflow-y: auto; }
.nav-section-label { margin: 24px 11px 8px; color: #6e8b82; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; margin-bottom: 4px; padding: 10px 12px; border-radius: 10px; color: #aac0b9; font-size: 13px; font-weight: 650; transition: .18s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 80%, #fff 10%), color-mix(in srgb, var(--brand-primary) 65%, transparent)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-icon { display: grid; width: 23px; place-items: center; font-size: 18px; }
.sidebar-footer { padding: 17px 22px 21px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer small { display: block; margin-top: 8px; color: #718c84; font-size: 10px; }
.phase-badge { display: inline-block; padding: 6px 9px; border: 1px solid rgba(212,168,79,.26); border-radius: 7px; color: #e5c982; background: rgba(212,168,79,.08); font-size: 10px; font-weight: 800; }
.main-panel { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 15px 28px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.topbar p { margin: 1px 0 0; color: var(--text-muted); font-size: 11px; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user-text strong, .topbar-user-text span { display: block; }
.topbar-user-text strong { font-size: 13px; }
.topbar-user-text span { color: var(--text-muted); font-size: 10px; }
.avatar { display: grid; width: 39px; height: 39px; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand-primary), #13463c); font-size: 12px; font-weight: 850; }
.avatar-small { width: 34px; height: 34px; font-size: 10px; }
.avatar-large { width: 72px; height: 72px; font-size: 21px; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: #fff; }
.mobile-menu-button { display: none; }
.content-area { width: min(100%, 1500px); margin: 0 auto; padding: 26px 28px 55px; }
.sidebar-overlay { display: none; }

/* Common panels and tables */
.panel, .roadmap-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-header, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.panel-header h2, .section-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.panel-header p, .section-heading p { margin: 3px 0 0; color: var(--text-muted); font-size: 11px; }
.section-heading.compact { margin-bottom: 0; }
.page-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.page-description { margin: 0; color: var(--text-muted); font-size: 13px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px; border-bottom: 1px solid var(--border); color: #76827e; background: #f9fbfa; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid #edf1ef; color: #34433f; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfc; }
.person-cell { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.person-cell strong, .person-cell span { display: block; }
.person-cell strong { color: var(--text); font-size: 12px; }
.person-cell span { color: var(--text-muted); font-size: 10px; }
.actions-column { text-align: right; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-active { color: #0b6441; background: #e6f7ee; }
.status-inactive { color: #596661; background: #edf1ef; }
.status-suspended { color: #9c261d; background: #ffebe8; }
.empty-cell { padding: 40px; text-align: center; }
.empty-state { display: grid; place-items: center; padding: 48px 20px; text-align: center; }
.empty-state.compact { padding: 25px; }
.empty-state strong { font-size: 14px; }
.empty-state span { margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.filter-bar { display: flex; align-items: center; gap: 9px; padding: 15px; border-bottom: 1px solid var(--border); }
.filter-search { flex: 1; min-width: 220px; }
.filter-bar select { width: auto; min-width: 150px; }
.result-count { margin-left: auto; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.pagination { display: flex; gap: 5px; justify-content: flex-end; padding: 16px; border-top: 1px solid var(--border); }
.pagination a { display: grid; min-width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 750; }
.pagination a.current { color: #fff; border-color: var(--brand-primary); background: var(--brand-primary); }

/* Dashboard */
.welcome-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 30px; overflow: hidden; border-radius: var(--radius-lg); color: #eaf4f1; background: linear-gradient(125deg, #103c33, var(--brand-primary)); box-shadow: 0 18px 36px rgba(16,60,51,.16); }
.welcome-banner::after { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -135px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.welcome-banner > div { position: relative; z-index: 1; }
.welcome-banner .eyebrow { color: #e6c875; }
.welcome-banner h2 { max-width: 670px; margin: 0; color: #fff; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.035em; line-height: 1.13; }
.welcome-banner p { max-width: 760px; margin: 10px 0 0; color: #b7d0c9; font-size: 13px; }
.welcome-badge { display: grid; min-width: 165px; place-items: center; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.08); text-align: center; }
.welcome-badge > span { display: grid; width: 37px; height: 37px; place-items: center; margin-bottom: 7px; border-radius: 50%; color: #143d34; background: #e6c875; font-weight: 900; }
.welcome-badge strong { color: #fff; font-size: 12px; }
.welcome-badge small { color: #9ebbb3; font-size: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { display: flex; align-items: center; gap: 13px; padding: 19px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.stat-icon { display: grid; width: 43px; height: 43px; place-items: center; flex: 0 0 43px; border-radius: 12px; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, #fff); font-size: 20px; font-weight: 900; }
.stat-card span, .stat-card strong, .stat-card small { display: block; }
.stat-card span { color: var(--text-muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { margin: 1px 0; font-size: 24px; letter-spacing: -.04em; }
.stat-card small { color: #87928e; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 18px; margin-bottom: 20px; }
.dashboard-grid .panel { min-width: 0; padding: 20px; }
.dashboard-grid .table-wrap { margin: 0 -20px -20px; width: calc(100% + 40px); }
.activity-list { display: grid; gap: 0; }
.activity-item { position: relative; display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1ef; }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 8px; border-radius: 50%; background: var(--brand-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 15%, transparent); }
.activity-item strong, .activity-item span { display: block; }
.activity-item strong { font-size: 11px; line-height: 1.35; }
.activity-item span { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.roadmap-panel { padding: 20px; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.roadmap-item { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: #fafbfb; }
.roadmap-item > span { display: grid; width: 30px; height: 30px; place-items: center; flex: 0 0 30px; border-radius: 9px; color: var(--text-muted); background: #e8edeb; font-weight: 850; }
.roadmap-item strong, .roadmap-item small { display: block; }
.roadmap-item strong { font-size: 11px; }
.roadmap-item small { color: var(--text-muted); font-size: 8px; }
.roadmap-item b { position: absolute; top: 7px; right: 7px; color: #80908b; font-size: 8px; text-transform: uppercase; }
.roadmap-item.complete { border-color: #b9dfce; background: #f0faf5; }
.roadmap-item.complete > span { color: #fff; background: var(--success); }
.roadmap-item.complete b { color: var(--success); }

/* Users, roles, settings, profile */
.role-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.role-choice { cursor: pointer; }
.role-choice input { position: absolute; opacity: 0; pointer-events: none; }
.role-choice-box { display: block; height: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 11px; background: #fff; transition: .18s; }
.role-choice-box strong, .role-choice-box small, .role-choice-box b { display: block; }
.role-choice-box strong { font-size: 13px; }
.role-choice-box small { min-height: 36px; margin: 4px 0 8px; color: var(--text-muted); font-size: 10px; }
.role-choice-box b { color: var(--brand-primary); font-family: monospace; font-size: 9px; }
.role-choice input:checked + .role-choice-box { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 6%, #fff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 13%, transparent); }
.role-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.role-card { display: flex; min-height: 250px; flex-direction: column; padding: 21px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.role-card.protected { border-color: #c8dfd7; background: linear-gradient(145deg, #fff, #f3faf7); }
.role-card-header { display: flex; align-items: center; gap: 11px; }
.role-card-header .status-badge { margin-left: auto; }
.role-symbol { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 42px; border-radius: 12px; color: #fff; background: var(--brand-primary); font-weight: 900; }
.role-symbol.large { width: 58px; height: 58px; border-radius: 16px; font-size: 20px; }
.role-card h2 { margin: 0 0 2px; font-size: 15px; }
.role-card > p { margin: 17px 0; color: var(--text-muted); font-size: 11px; }
.role-metrics { display: flex; gap: 9px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.role-metrics span { flex: 1; color: var(--text-muted); font-size: 10px; }
.role-metrics strong { display: block; color: var(--text); font-size: 16px; }
.role-card-footer { display: flex; min-height: 53px; align-items: flex-end; margin-top: auto; padding-top: 15px; }
.role-editor-heading { display: flex; align-items: center; gap: 15px; }
.role-editor-heading h2 { margin: 0; }
.role-editor-heading p { margin: 3px 0 7px; color: var(--text-muted); font-size: 11px; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 15px; }
.permission-group { padding: 20px; }
.permission-list { display: grid; gap: 8px; }
.permission-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.permission-item:hover { background: #fafcfc; }
.permission-item input { margin-top: 3px; accent-color: var(--brand-primary); }
.permission-item strong, .permission-item small, .permission-item code { display: block; }
.permission-item strong { font-size: 11px; }
.permission-item small { margin: 2px 0 6px; color: var(--text-muted); font-size: 9px; }
.branding-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
.logo-upload-card { display: flex; align-items: center; flex-direction: column; padding: 18px; border: 1px dashed #bdccc7; border-radius: 12px; background: #fafcfc; text-align: center; }
.logo-preview { display: grid; width: 110px; height: 90px; margin-bottom: 14px; place-items: center; }
.logo-preview img { max-width: 100%; max-height: 80px; object-fit: contain; }
.logo-upload-card small { margin-top: 9px; color: var(--text-muted); font-size: 9px; }
.branding-fields { align-content: start; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-heading { display: flex; align-items: center; gap: 16px; }
.profile-heading h2 { margin: 0; }
.profile-heading p { margin: 2px 0 7px; color: var(--text-muted); font-size: 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; }
.top-divider { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.security-card { display: grid; gap: 6px; margin-top: 24px; padding: 15px; border-radius: 10px; color: #3e554f; background: #f0f6f4; }
.security-card strong { font-size: 12px; }
.security-card span { font-size: 10px; }

/* Audit */
.audit-list { display: grid; }
.audit-item { display: flex; gap: 13px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.audit-item:last-child { border-bottom: 0; }
.audit-icon { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 34px; border-radius: 10px; color: var(--brand-primary); background: #edf5f2; font-weight: 900; }
.audit-main { min-width: 0; flex: 1; }
.audit-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.audit-title strong { font-size: 12px; }
.audit-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 5px; color: var(--text-muted); font-size: 9px; }
.audit-main details { margin-top: 10px; }
.audit-main summary { color: var(--brand-primary); cursor: pointer; font-size: 10px; font-weight: 750; }
.audit-main pre { max-height: 220px; overflow: auto; padding: 12px; border-radius: 8px; color: #dce9e5; background: #132923; font-size: 10px; white-space: pre-wrap; }

/* Public page */
.public-body { min-height: 100vh; color: #ecf6f3; background: radial-gradient(circle at 83% 15%, rgba(212,168,79,.18), transparent 27%), radial-gradient(circle at 10% 80%, rgba(31,111,95,.34), transparent 35%), #0c2822; }
.public-header { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 36px)); margin: auto; padding: 24px 0; }
.public-brand { display: flex; align-items: center; gap: 11px; }
.public-brand img { width: 45px; height: 45px; object-fit: contain; border-radius: 10px; background: #fff; }
.public-brand strong, .public-brand small { display: block; }
.public-brand strong { color: #fff; }
.public-brand small { color: #8faaa2; font-size: 10px; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); gap: 65px; align-items: center; width: min(1180px, calc(100% - 36px)); min-height: calc(100vh - 150px); margin: auto; padding: 45px 0 80px; }
.public-hero .eyebrow { color: #e2c36f; }
.public-hero h1 { max-width: 700px; margin: 0; color: #fff; font-size: clamp(42px, 6vw, 72px); line-height: .99; letter-spacing: -.06em; }
.public-hero p { max-width: 650px; margin: 22px 0 0; color: #aec6bf; font-size: 16px; line-height: 1.7; }
.public-actions { display: flex; align-items: center; gap: 17px; margin-top: 30px; }
.launch-note { color: #91afa7; font-size: 11px; }
.public-preview-card { padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 23px; background: rgba(255,255,255,.075); box-shadow: 0 35px 70px rgba(0,0,0,.22); backdrop-filter: blur(12px); transform: rotate(1.5deg); }
.preview-top { display: flex; gap: 6px; padding: 4px 3px 15px; }
.preview-top span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.24); }
.preview-search { padding: 16px; border-radius: 11px; color: #89a69e; background: rgba(0,0,0,.2); font-size: 12px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.preview-grid > div { min-height: 120px; padding: 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.06); }
.preview-grid strong, .preview-grid span { display: block; }
.preview-grid strong { margin-top: 35px; color: #f5f9f8; font-size: 12px; }
.preview-grid span { color: #86a098; font-size: 9px; }
.public-footer { padding: 20px; color: #68877e; font-size: 10px; text-align: center; }

/* Errors */
.error-card { max-width: 500px; margin: auto; padding: 45px; text-align: center; }
.error-code { color: var(--brand-primary); font-size: 70px; font-weight: 900; letter-spacing: -.07em; }
.error-card h1 { margin: 0; }
.error-card p { margin: 10px 0 25px; color: var(--text-muted); }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-hero { gap: 35px; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-102%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-panel { width: 100%; margin-left: 0; }
    .mobile-menu-button { display: grid; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(5, 20, 16, .45); }
    .sidebar-overlay.show { display: block; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .permission-groups { grid-template-columns: 1fr; }
    .public-hero { grid-template-columns: 1fr; padding-top: 70px; }
    .public-preview-card { max-width: 600px; transform: none; }
}

@media (max-width: 700px) {
    .auth-body { padding: 16px 10px; }
    .login-card { padding: 25px; }
    .installer-header, .installer-intro, .form-section, .installer-submit { padding-left: 22px; padding-right: 22px; }
    .requirements-panel { margin-left: 22px; margin-right: 22px; }
    .requirements-grid, .form-grid.two-columns, .profile-grid, .role-list-grid, .branding-layout { grid-template-columns: 1fr; }
    .form-section { grid-template-columns: 1fr; }
    .installer-submit { align-items: stretch; flex-direction: column; }
    .topbar { min-height: 72px; padding: 12px 15px; }
    .topbar-user-text { display: none; }
    .topbar-user .avatar { display: none; }
    .content-area { padding: 18px 13px 45px; }
    .welcome-banner { align-items: flex-start; flex-direction: column; padding: 23px; }
    .welcome-badge { min-width: 145px; }
    .stats-grid, .roadmap-grid, .role-choice-grid { grid-template-columns: 1fr; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-search, .filter-bar select { width: 100%; min-width: 0; }
    .result-count { margin-left: 0; }
    .page-actions { align-items: flex-start; flex-direction: column; }
    .page-actions .button { width: 100%; }
    .form-submit-bar { bottom: 8px; }
    .branding-layout { gap: 18px; }
    .logo-upload-card { max-width: none; }
    .public-header { padding-top: 18px; }
    .public-header .button { min-height: 38px; padding: 8px 11px; font-size: 11px; }
    .public-hero { min-height: auto; padding: 60px 0; }
    .public-hero h1 { font-size: clamp(40px, 13vw, 62px); }
    .public-actions { align-items: flex-start; flex-direction: column; }
    .preview-grid { grid-template-columns: 1fr; }
    .preview-grid > div { min-height: 90px; }
    .preview-grid strong { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Phase 2 — directory administration */
.welcome-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.directory-admin-filters { align-items:flex-end; }
.directory-admin-filters select { min-width:140px; }
.category-admin-cell, .business-admin-cell { display:flex; align-items:center; gap:11px; min-width:210px; }
.category-admin-cell > span, .business-admin-logo { display:grid; width:42px; height:42px; place-items:center; flex:0 0 42px; overflow:hidden; border-radius:11px; color:#fff; background:var(--brand-primary); font-weight:900; }
.category-admin-cell strong, .category-admin-cell small, .business-admin-cell strong, .business-admin-cell span { display:block; }
.category-admin-cell small, .business-admin-cell span { max-width:240px; overflow:hidden; color:var(--text-muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.business-admin-logo img { width:100%; height:100%; object-fit:cover; background:#fff; }
.mini-badges { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:4px; }
.mini-badges b { padding:3px 7px; border-radius:999px; color:var(--brand-primary); background:#eaf5f1; font-size:8px; text-transform:uppercase; letter-spacing:.05em; }
.status-draft { color:#5f6a66; background:#eef1f0; }
.status-pending { color:#8a5b00; background:#fff4d6; }
.status-published, .status-active, .status-verified { color:#0c6642; background:#e8f7ef; }
.status-suspended, .status-inactive { color:#8d2219; background:#ffefed; }
.status-archived { color:#57536d; background:#efedf7; }
.category-checkbox-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:18px; }
.category-checkbox-grid label { display:flex; align-items:flex-start; gap:8px; padding:10px; border:1px solid var(--border); border-radius:9px; background:#fff; font-size:11px; cursor:pointer; }
.category-checkbox-grid input { margin-top:2px; accent-color:var(--brand-primary); }
.media-upload-grid { display:grid; grid-template-columns:260px minmax(0,1fr); gap:18px; }
.media-upload-box { display:flex; min-height:180px; align-items:center; justify-content:center; flex-direction:column; gap:10px; overflow:hidden; padding:18px; border:1px dashed #bbc9c4; border-radius:13px; background:#f8fbfa; cursor:pointer; text-align:center; }
.media-upload-box img { max-width:160px; max-height:90px; object-fit:contain; border-radius:8px; }
.media-upload-box.cover-upload img { width:100%; max-width:none; max-height:120px; object-fit:cover; }
.media-upload-box input { max-width:100%; font-size:11px; }
.media-upload-box span { color:var(--brand-primary); font-size:11px; font-weight:800; }
.toggle-card { display:flex; align-items:flex-start; gap:12px; padding:15px; border:1px solid var(--border); border-radius:11px; background:#fbfcfc; cursor:pointer; }
.toggle-card input { margin-top:3px; accent-color:var(--brand-primary); }
.toggle-card strong, .toggle-card small { display:block; }
.toggle-card small { color:var(--text-muted); }
.info-note { padding:15px; border-radius:10px; color:#49605a; background:#eff6f3; font-size:12px; }
.business-manage-hero { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:20px; align-items:center; margin-bottom:16px; padding:24px; border:1px solid var(--border); border-radius:var(--radius); background:linear-gradient(135deg,#fff,#f2f8f6); box-shadow:var(--shadow-sm); }
.business-manage-logo { display:grid; width:82px; height:82px; place-items:center; overflow:hidden; border:1px solid var(--border); border-radius:18px; color:#fff; background:var(--brand-primary); font-size:24px; font-weight:900; }
.business-manage-logo img { width:100%; height:100%; object-fit:contain; background:#fff; }
.business-manage-title h2 { margin:7px 0 4px; font-size:24px; }
.business-manage-title > p { margin:0; color:var(--text-muted); font-size:12px; }
.business-manage-meta { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:10px; color:#52625e; font-size:10px; }
.business-manage-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.manage-tabs { position:sticky; top:82px; z-index:8; display:flex; gap:6px; overflow:auto; margin-bottom:18px; padding:9px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.95); box-shadow:var(--shadow-sm); backdrop-filter:blur(10px); }
.manage-tabs a { padding:8px 12px; border-radius:8px; color:#51625d; font-size:11px; font-weight:800; white-space:nowrap; }
.manage-tabs a:hover { color:var(--brand-primary); background:#edf5f2; }
.manage-section { scroll-margin-top:145px; margin-bottom:22px; }
.manage-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:10px; }
.manage-section-heading h2, .manage-section-heading p { margin:0; }
.manage-section-heading h2 { font-size:18px; }
.manage-section-heading p, .manage-section-heading > span { color:var(--text-muted); font-size:10px; }
.manage-two-column { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr); gap:16px; }
.compact-panel { padding:20px; }
.compact-panel h3 { margin:0 0 3px; font-size:15px; }
.manage-item-list { display:grid; gap:9px; }
.manage-item { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.manage-item > div:nth-child(2) { min-width:0; flex:1; }
.manage-item strong, .manage-item span, .manage-item small { display:block; }
.manage-item span { overflow:hidden; color:var(--text-muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.manage-item small { margin-top:3px; color:#49635b; font-size:9px; }
.manage-thumb { display:grid; width:48px; height:48px; place-items:center; flex:0 0 48px; overflow:hidden; border-radius:10px; color:var(--brand-primary); background:#edf5f2; font-weight:900; }
.manage-thumb img { width:100%; height:100%; object-fit:cover; }
.hours-editor { display:grid; gap:8px; }
.hours-editor-row { display:grid; grid-template-columns:95px 85px 100px 115px 20px 115px minmax(120px,1fr); gap:8px; align-items:center; padding:9px; border-bottom:1px solid var(--border); font-size:10px; }
.hours-editor-row:last-child { border-bottom:0; }
.hours-editor-row input[type="time"], .hours-editor-row input[type="text"], .hours-editor-row input:not([type]) { width:100%; min-height:35px; padding:6px 8px; border:1px solid #ced9d5; border-radius:7px; }
.hours-editor-row input[type="checkbox"] { accent-color:var(--brand-primary); }
.inline-submit { display:flex; justify-content:flex-end; margin-top:15px; }
.hours-view-list > div, .metric-list > div { display:flex; justify-content:space-between; gap:15px; padding:10px 0; border-bottom:1px solid var(--border); font-size:11px; }
.admin-gallery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.admin-gallery-grid figure { overflow:hidden; margin:0; border:1px solid var(--border); border-radius:10px; background:#fff; }
.admin-gallery-grid img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.admin-gallery-grid figcaption { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px; font-size:9px; }
.gallery-upload-form { display:grid; grid-template-columns:1.1fr 1fr 1fr 90px auto; gap:10px; align-items:end; margin-top:18px; padding-top:18px; border-top:1px solid var(--border); }
.check-inline { display:flex; align-items:center; gap:7px; margin-top:27px; font-size:11px; }
.check-inline input { accent-color:var(--brand-primary); }
.danger-zone { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px; border-color:#efc7c3; background:#fff8f7; }
.danger-zone h2, .danger-zone p { margin:0; }
.danger-zone h2 { color:var(--danger); font-size:15px; }
.danger-zone p { margin-top:4px; color:#82645f; font-size:10px; }
.small-dashboard-grid { margin-top:18px; }
.metric-list { padding:0 20px 15px; }
.quick-link-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0 20px 20px; }
.quick-link-grid a { padding:14px; border:1px solid var(--border); border-radius:10px; background:#fbfcfc; }
.quick-link-grid strong, .quick-link-grid span { display:block; }
.quick-link-grid span { color:var(--text-muted); font-size:9px; }

/* Phase 2 — public directory */
.directory-body { min-height:100vh; color:#17221f; background:#fff; }
.directory-header { position:sticky; top:0; z-index:30; border-bottom:1px solid #e2e9e6; background:rgba(255,255,255,.96); backdrop-filter:blur(14px); }
.directory-header-inner, .directory-container, .directory-section, .directory-cta, .directory-footer { width:min(1180px,calc(100% - 36px)); margin-right:auto; margin-left:auto; }
.directory-header-inner { display:flex; align-items:center; justify-content:space-between; min-height:72px; }
.directory-brand { display:flex; align-items:center; gap:10px; }
.directory-brand img { width:42px; height:42px; object-fit:contain; }
.directory-brand strong, .directory-brand small { display:block; }
.directory-brand strong { font-size:15px; }
.directory-brand small { color:var(--text-muted); font-size:9px; }
.directory-nav { display:flex; align-items:center; gap:22px; }
.directory-nav > a:not(.button) { color:#43534f; font-size:12px; font-weight:700; }
.directory-hero { position:relative; overflow:hidden; color:#fff; background:radial-gradient(circle at 82% 20%,rgba(212,168,79,.23),transparent 30%),radial-gradient(circle at 12% 90%,rgba(56,151,127,.32),transparent 33%),#0d3028; }
.directory-hero::after { content:""; position:absolute; width:500px; height:500px; right:-230px; bottom:-310px; border:1px solid rgba(255,255,255,.12); border-radius:50%; }
.directory-hero-inner { position:relative; z-index:1; width:min(1180px,calc(100% - 36px)); margin:auto; padding:105px 0 90px; }
.directory-hero h1 { max-width:800px; margin:0; font-size:clamp(45px,6vw,76px); line-height:.98; letter-spacing:-.06em; }
.directory-hero > div > p { max-width:720px; margin:22px 0 0; color:#b8cdc7; font-size:17px; line-height:1.7; }
.hero-search { display:grid; grid-template-columns:minmax(240px,1.25fr) minmax(190px,.8fr) minmax(170px,.65fr) auto; gap:8px; margin-top:35px; padding:8px; border-radius:16px; background:#fff; box-shadow:0 24px 50px rgba(0,0,0,.22); }
.hero-search-field { padding:6px 12px; border-right:1px solid #e3e8e6; }
.hero-search-field label { display:block; color:#63716d; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.hero-search-field input, .hero-search-field select { width:100%; min-height:32px; padding:2px 0; border:0; color:#17221f; background:#fff; outline:0; }
.hero-stats { display:flex; flex-wrap:wrap; gap:22px; margin-top:22px; color:#9cb7af; font-size:10px; }
.hero-stats strong { color:#fff; font-size:14px; }
.directory-section { padding-top:78px; padding-bottom:78px; }
.directory-section-soft { width:100%; max-width:none; padding-right:max(18px,calc((100% - 1180px)/2)); padding-left:max(18px,calc((100% - 1180px)/2)); background:#f5f8f7; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:27px; }
.section-heading h2, .section-heading p { margin:0; }
.section-heading h2 { font-size:31px; letter-spacing:-.035em; }
.section-heading p { margin-top:4px; color:var(--text-muted); }
.section-heading.compact { align-items:flex-start; margin-bottom:18px; }
.category-card-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.category-directory-card { min-height:205px; padding:22px; border:1px solid #e0e8e5; border-radius:15px; background:#fff; box-shadow:var(--shadow-sm); transition:.2s; }
.category-directory-card:hover { border-color:color-mix(in srgb,var(--brand-primary) 35%,var(--border)); box-shadow:var(--shadow-md); transform:translateY(-3px); }
.category-symbol { display:grid; width:42px; height:42px; place-items:center; margin-bottom:23px; border-radius:12px; color:var(--brand-primary); background:#eaf4f1; font-weight:900; }
.category-directory-card strong, .category-directory-card p, .category-directory-card small { display:block; }
.category-directory-card p { min-height:44px; margin:7px 0 16px; color:var(--text-muted); font-size:11px; }
.category-directory-card small { color:var(--brand-primary); font-size:9px; font-weight:800; }
.public-business-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.public-business-card { overflow:hidden; border:1px solid #dee7e3; border-radius:16px; background:#fff; box-shadow:var(--shadow-sm); }
.business-card-cover { display:block; height:150px; background:linear-gradient(135deg,#dcebe6,#aacbc1); background-position:center; background-size:cover; }
.business-card-body { position:relative; padding:47px 20px 21px; }
.business-card-logo, .list-card-logo { display:grid; place-items:center; overflow:hidden; color:#fff; background:var(--brand-primary); font-weight:900; }
.business-card-logo { position:absolute; top:-35px; left:20px; width:70px; height:70px; border:4px solid #fff; border-radius:16px; }
.business-card-logo img, .list-card-logo img, .profile-logo-large img { width:100%; height:100%; object-fit:contain; background:#fff; }
.business-card-badges { display:flex; flex-wrap:wrap; gap:5px; min-height:20px; }
.business-card-badges span { padding:3px 7px; border-radius:999px; color:var(--brand-primary); background:#e9f5f1; font-size:8px; font-weight:850; text-transform:uppercase; }
.business-card-badges.inverse span { color:#fff; background:rgba(255,255,255,.16); }
.business-card-body h3 { margin:8px 0 7px; font-size:17px; }
.business-card-body > p { min-height:52px; margin:0 0 15px; color:var(--text-muted); font-size:11px; }
.business-card-meta { display:flex; flex-wrap:wrap; gap:6px 12px; margin-bottom:15px; color:#53635f; font-size:9px; }
.city-link-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.city-link-grid a { padding:17px; border:1px solid var(--border); border-radius:11px; background:#fbfcfc; }
.city-link-grid strong, .city-link-grid span { display:block; }
.city-link-grid span { margin-top:3px; color:var(--text-muted); font-size:9px; }
.directory-cta { display:flex; align-items:center; justify-content:space-between; gap:30px; margin-bottom:80px; padding:38px; border-radius:20px; color:#fff; background:#102f28; }
.directory-cta h2 { max-width:760px; margin:0; font-size:28px; }
.directory-results-hero { padding:55px 0 35px; background:#f1f6f4; border-bottom:1px solid #dfe8e4; }
.directory-results-hero h1 { margin:10px 0 5px; font-size:38px; letter-spacing:-.04em; }
.directory-results-hero p { margin:0; color:var(--text-muted); }
.public-breadcrumb { display:flex; flex-wrap:wrap; gap:7px; color:#667772; font-size:9px; }
.public-breadcrumb.light { color:#bfd1cb; }
.directory-filter-form { display:grid; grid-template-columns:1.25fr .9fr .8fr .9fr auto; gap:8px; margin-top:24px; }
.directory-filter-form input, .directory-filter-form select { width:100%; min-height:44px; padding:10px 12px; border:1px solid #cedad6; border-radius:9px; background:#fff; }
.results-section { padding-top:35px; }
.results-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.public-business-list { display:grid; gap:13px; }
.public-business-list-card { display:grid; grid-template-columns:240px minmax(0,1fr); overflow:hidden; border:1px solid #dfe7e4; border-radius:15px; background:#fff; box-shadow:var(--shadow-sm); }
.list-card-media { position:relative; min-height:210px; background:linear-gradient(135deg,#dcebe6,#a7c9bf); background-position:center; background-size:cover; }
.list-card-logo { position:absolute; right:15px; bottom:15px; width:62px; height:62px; border:3px solid #fff; border-radius:14px; }
.list-card-content { padding:22px; }
.list-card-content h2 { margin:6px 0 7px; font-size:21px; }
.list-card-content > p { max-width:750px; margin:10px 0 18px; color:var(--text-muted); font-size:12px; }
.list-card-actions { display:flex; gap:8px; }
.public-empty-state { grid-column:1/-1; padding:45px; border:1px dashed #bdccc7; border-radius:15px; background:#f8fbfa; text-align:center; }
.public-empty-state strong { display:block; font-size:18px; }
.public-empty-state p { color:var(--text-muted); }
.public-pagination { margin-top:25px; }
.business-profile-cover { min-height:390px; color:#fff; background:linear-gradient(120deg,#0e342b,#255f50); background-position:center; background-size:cover; }
.business-cover-content { padding-top:48px; padding-bottom:52px; }
.business-profile-heading { display:flex; align-items:center; gap:22px; margin-top:70px; }
.profile-logo-large { display:grid; width:112px; height:112px; place-items:center; flex:0 0 112px; overflow:hidden; border:5px solid rgba(255,255,255,.9); border-radius:22px; color:#fff; background:var(--brand-primary); font-size:30px; font-weight:900; box-shadow:0 18px 35px rgba(0,0,0,.25); }
.business-profile-heading h1 { margin:8px 0 6px; font-size:44px; line-height:1; letter-spacing:-.045em; }
.business-profile-heading p { max-width:700px; margin:0; color:#d0dfda; }
.cover-meta { display:flex; flex-wrap:wrap; gap:8px 17px; margin-top:13px; color:#bfd1cb; font-size:10px; }
.business-profile-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr); gap:22px; align-items:start; padding-top:35px; }
.business-main-column { display:grid; gap:18px; }
.business-sidebar { position:sticky; top:95px; display:grid; gap:15px; }
.public-content-card, .contact-business-card { padding:25px; border:1px solid #dfe7e4; border-radius:15px; background:#fff; box-shadow:var(--shadow-sm); }
.public-content-card h2, .contact-business-card h2 { margin:0 0 17px; font-size:20px; }
.rich-copy { color:#4f605b; font-size:13px; line-height:1.8; }
.tag-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.tag-list a, .tag-list span { padding:6px 10px; border-radius:999px; color:#31574d; background:#edf5f2; font-size:9px; font-weight:750; }
.service-public-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.service-public-card { overflow:hidden; border:1px solid var(--border); border-radius:12px; }
.service-public-card img { width:100%; height:130px; object-fit:cover; }
.service-public-card > div { padding:15px; }
.service-public-card h3, .service-public-card p { margin:0; }
.service-public-card p { min-height:42px; margin:6px 0 12px; color:var(--text-muted); font-size:10px; }
.service-public-card strong { color:var(--brand-primary); font-size:11px; }
.public-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.public-gallery-grid figure { overflow:hidden; margin:0; border-radius:10px; background:#f0f3f2; }
.public-gallery-grid img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.public-gallery-grid figcaption { padding:7px; color:var(--text-muted); font-size:9px; }
.branch-public-list { display:grid; gap:9px; }
.branch-public-list > div { padding:13px; border:1px solid var(--border); border-radius:10px; }
.branch-public-list strong, .branch-public-list span, .branch-public-list a { display:block; }
.branch-public-list span { margin:3px 0; color:var(--text-muted); font-size:10px; }
.branch-public-list a { color:var(--brand-primary); font-size:10px; font-weight:700; }
.contact-business-card { display:grid; gap:9px; }
.contact-business-card dl { margin:10px 0 0; }
.contact-business-card dl > div { padding:10px 0; border-top:1px solid var(--border); }
.contact-business-card dt { color:var(--text-muted); font-size:8px; font-weight:800; text-transform:uppercase; }
.contact-business-card dd { margin:3px 0 0; font-size:11px; overflow-wrap:anywhere; }
.public-hours-row { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); font-size:9px; }
.public-hours-row:last-child { border-bottom:0; }
.directory-footer { display:grid; grid-template-columns:1fr auto; gap:20px; align-items:center; padding-top:35px; padding-bottom:35px; border-top:1px solid #dfe7e4; color:#5c6e69; }
.directory-footer p { margin:3px 0 0; font-size:10px; }
.directory-footer > div:nth-child(2) { display:flex; gap:18px; font-size:11px; }
.directory-footer small { grid-column:1/-1; font-size:9px; }

@media (max-width:1100px) {
    .category-checkbox-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .hero-search { grid-template-columns:1fr 1fr; }
    .hero-search-field { border-right:0; }
    .category-card-grid, .city-link-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .public-business-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .directory-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .directory-filter-form .button { grid-column:1/-1; }
    .hours-editor-row { grid-template-columns:80px 75px 85px 1fr 16px 1fr; }
    .hours-editor-row input:last-child { grid-column:2/-1; }
    .gallery-upload-form { grid-template-columns:1fr 1fr; }
    .gallery-upload-form .button { grid-column:1/-1; }
}
@media (max-width:900px) {
    .business-manage-hero { grid-template-columns:auto 1fr; }
    .business-manage-actions { grid-column:1/-1; justify-content:flex-start; }
    .manage-two-column, .business-profile-layout { grid-template-columns:1fr; }
    .business-sidebar { position:static; }
    .admin-gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .directory-nav > a:not(.button) { display:none; }
    .category-card-grid, .city-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .public-business-list-card { grid-template-columns:190px 1fr; }
}
@media (max-width:700px) {
    .category-checkbox-grid, .media-upload-grid, .hero-search, .category-card-grid, .public-business-grid, .city-link-grid, .directory-filter-form, .service-public-grid { grid-template-columns:1fr; }
    .business-manage-hero { grid-template-columns:1fr; }
    .business-manage-logo { width:66px; height:66px; }
    .business-manage-actions .button { width:100%; }
    .manage-tabs { top:72px; }
    .hours-editor-row { grid-template-columns:1fr 1fr; }
    .hours-editor-row strong { grid-column:1/-1; }
    .hours-editor-row > span { display:none; }
    .hours-editor-row input:last-child { grid-column:1/-1; }
    .admin-gallery-grid, .public-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gallery-upload-form { grid-template-columns:1fr; }
    .danger-zone, .directory-cta, .section-heading { align-items:flex-start; flex-direction:column; }
    .directory-header-inner { min-height:64px; }
    .directory-nav .button { min-height:35px; padding:7px 10px; font-size:10px; }
    .directory-hero-inner { padding:70px 0 55px; }
    .directory-hero h1 { font-size:46px; }
    .directory-hero > div > p { font-size:14px; }
    .hero-search { padding:10px; }
    .hero-search .button { width:100%; }
    .directory-section { padding-top:55px; padding-bottom:55px; }
    .public-business-list-card { grid-template-columns:1fr; }
    .list-card-media { min-height:150px; }
    .business-profile-heading { align-items:flex-start; flex-direction:column; margin-top:45px; }
    .business-profile-heading h1 { font-size:35px; }
    .profile-logo-large { width:90px; height:90px; flex-basis:90px; }
    .directory-footer { grid-template-columns:1fr; }
    .directory-footer small { grid-column:auto; }
}
.manage-item-actions { display:flex; flex:0 0 auto; align-items:center; gap:6px; }
.manage-item-actions form { margin:0; }
@media (max-width:700px) {
    .manage-item { align-items:flex-start; flex-wrap:wrap; }
    .manage-item-actions { width:100%; padding-left:60px; }
}
.social-public-links { display:flex; flex-wrap:wrap; gap:7px; padding-top:8px; border-top:1px solid var(--border); }
.social-public-links a { padding:7px 9px; border-radius:8px; color:var(--brand-primary); background:#edf5f2; font-size:9px; font-weight:800; }

/* ========================================================================== 
   Brandholm Local — Phase 3 Experience System
   ========================================================================== */
:root {
    --p3-ink: #121525;
    --p3-muted: #687086;
    --p3-line: rgba(25, 29, 50, .11);
    --p3-soft: #f5f6fb;
    --p3-white: #fff;
    --p3-violet: #5b4df7;
    --p3-violet-dark: #3529c9;
    --p3-green: #12b981;
    --p3-radius-lg: 32px;
    --p3-radius-md: 22px;
    --p3-shadow: 0 24px 70px rgba(29, 31, 53, .12);
}
html { scroll-behavior: smooth; }
.public-site { margin: 0; color: var(--p3-ink); background: #fff; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-x: hidden; }
.public-site *, .public-site *::before, .public-site *::after { box-sizing: border-box; }
.public-site a { color: inherit; text-decoration: none; }
.public-site button, .public-site input, .public-site select, .public-site textarea { font: inherit; }
.site-noise { position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E"); }
.p3-container, .site-header-inner, .site-footer-inner, .site-footer-bottom, .lp-container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 120; background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(20, 22, 40, .07); transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 12px 35px rgba(20, 24, 45, .08); background: rgba(255,255,255,.95); }
.site-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.site-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 14px; }
.site-brand-mark { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, #6254ff, #3e34cb); color: #fff; font-weight: 900; font-size: 20px; box-shadow: 0 12px 28px rgba(82, 70, 226, .28); position: relative; }
.site-brand-mark span { position: absolute; right: -3px; top: -5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #13bd82; border: 3px solid #fff; font-size: 11px; }
.site-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand-copy strong { font-size: 17px; letter-spacing: -.025em; }
.site-brand-copy small { margin-top: 5px; color: #7c8295; font-size: 11px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a { font-size: 14px; font-weight: 700; color: #41465a; transition: color .2s ease, transform .2s ease; }
.site-nav > a:hover { color: var(--p3-violet); transform: translateY(-1px); }
.site-nav .site-nav-cta { padding: 12px 18px; border: 1px solid var(--p3-line); border-radius: 999px; background: #fff; box-shadow: 0 8px 20px rgba(32, 36, 66, .06); color: #20233a; }
.site-nav-cta span { margin-left: 7px; color: var(--p3-violet); }
.site-menu-button { display: none; width: 44px; height: 44px; border: 0; background: #f1f2f8; border-radius: 13px; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.site-menu-button span { width: 19px; height: 2px; background: #23263b; border-radius: 5px; }
.p3-kicker { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; font-size: 11px; letter-spacing: .17em; font-weight: 850; color: rgba(255,255,255,.7); }
.p3-kicker > span { width: 24px; height: 1px; background: currentColor; }
.p3-kicker.dark { color: #6e5ff3; }
.p3-kicker.light { color: rgba(255,255,255,.68); }
.p3-hero { position: relative; padding: 88px 0 0; background: radial-gradient(circle at 8% 22%, rgba(101, 85, 255, .28), transparent 28%), radial-gradient(circle at 86% 30%, rgba(18, 185, 129, .16), transparent 27%), linear-gradient(135deg, #16182b 0%, #222543 52%, #15172a 100%); color: #fff; min-height: 720px; overflow: hidden; }
.p3-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.p3-hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .65; }
.p3-hero-orb.orb-one { width: 480px; height: 480px; right: -260px; top: -100px; border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 0 0 80px rgba(255,255,255,.018), inset 0 0 0 160px rgba(255,255,255,.018); }
.p3-hero-orb.orb-two { width: 300px; height: 300px; left: -210px; bottom: 40px; background: rgba(91,77,247,.18); filter: blur(80px); }
.p3-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.p3-hero-copy h1 { margin: 24px 0 20px; max-width: 700px; font-size: clamp(50px, 6vw, 86px); line-height: .96; letter-spacing: -.065em; font-weight: 820; }
.p3-hero-copy h1 em { color: #a59cff; font-style: normal; font-weight: 450; }
.p3-hero-copy > p { max-width: 650px; margin: 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.75; }
.p3-search-shell { margin-top: 36px; padding: 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.96); display: grid; grid-template-columns: 1.2fr 1px .82fr auto; align-items: center; box-shadow: 0 28px 55px rgba(6, 8, 24, .27); color: var(--p3-ink); }
.p3-search-input, .p3-search-select { min-width: 0; display: grid; grid-template-columns: 25px 1fr; column-gap: 8px; align-items: center; padding: 8px 12px; }
.p3-search-input > span, .p3-search-select > span { grid-row: 1 / 3; font-size: 20px; color: var(--p3-violet); }
.p3-search-input label, .p3-search-select label { font-size: 10px; color: #8a8fa0; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.p3-search-input input, .p3-search-select select { min-width: 0; width: 100%; border: 0; outline: 0; padding: 3px 0 0; color: #1a1d31; background: transparent; font-size: 14px; font-weight: 700; }
.p3-search-select select { appearance: none; }
.p3-search-divider { width: 1px; height: 40px; background: #e5e6ed; }
.p3-search-shell button { height: 58px; padding: 0 22px; border: 0; border-radius: 15px; background: linear-gradient(135deg, #6254ff, #4a3fd4); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 14px 28px rgba(78, 64, 218, .3); }
.p3-search-shell button span { margin-left: 9px; }
.p3-trending { margin-top: 17px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,.55); }
.p3-trending strong { color: rgba(255,255,255,.8); }
.p3-trending a { border-bottom: 1px solid rgba(255,255,255,.24); padding-bottom: 2px; }
.p3-proof-row { margin-top: 30px; display: flex; align-items: center; gap: 13px; }
.p3-proof-avatars { display: flex; }
.p3-proof-avatars span { margin-left: -7px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 3px solid #20233d; color: #3f36c8; font-size: 10px; font-weight: 900; }
.p3-proof-avatars span:first-child { margin-left: 0; }
.p3-proof-row > div:last-child { display: flex; flex-direction: column; }
.p3-proof-row strong { font-size: 12px; }
.p3-proof-row small { margin-top: 3px; color: rgba(255,255,255,.52); font-size: 11px; }
.p3-hero-visual { min-height: 510px; position: relative; display: grid; place-items: center; }
.p3-visual-card { position: relative; width: min(400px, 86%); padding: 13px; border-radius: 31px; background: rgba(255,255,255,.95); box-shadow: 0 44px 90px rgba(4, 7, 24, .38); transform: rotate(2deg); }
.p3-visual-photo { height: 330px; border-radius: 23px; background: linear-gradient(145deg, rgba(91,77,247,.35), rgba(18,185,129,.25)), radial-gradient(circle at 60% 20%, #7d74eb, #303451 55%, #1b1e34); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.p3-visual-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,27,.55), transparent 55%); }
.p3-visual-badge { position: absolute; z-index: 2; top: 17px; left: 17px; padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: #292d46; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.p3-visual-business { padding: 14px 7px 3px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; color: #1f2237; }
.p3-visual-logo { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #e6e7ed; border-radius: 15px; background: #fff; font-weight: 900; color: var(--p3-violet); overflow: hidden; }
.p3-visual-logo img { width: 100%; height: 100%; object-fit: contain; }
.p3-visual-business div { display: flex; flex-direction: column; }
.p3-visual-business strong { font-size: 14px; }
.p3-visual-business small { margin-top: 4px; color: #858a9a; font-size: 11px; }
.p3-visual-business i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; background: #f0efff; color: #5548e9; border-radius: 50%; }
.p3-floating-card { position: absolute; z-index: 4; padding: 13px 17px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.96); color: #20233b; border-radius: 16px; box-shadow: 0 20px 45px rgba(7,9,26,.25); }
.p3-floating-card > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: #eeecff; color: #5548e9; font-size: 17px; }
.p3-floating-card div { display: flex; flex-direction: column; }
.p3-floating-card strong { font-size: 11px; }
.p3-floating-card small { margin-top: 3px; color: #888d9d; font-size: 9px; }
.p3-float-rating { left: -20px; top: 96px; transform: rotate(-4deg); }
.p3-float-rating > span { background: #fff3d7; color: #f59e0b; }
.p3-float-search { right: -6px; bottom: 88px; transform: rotate(4deg); }
.p3-visual-dots { position: absolute; width: 105px; height: 105px; left: 12px; bottom: 27px; background-image: radial-gradient(rgba(255,255,255,.34) 1.5px, transparent 1.5px); background-size: 12px 12px; }
.p3-stats-strip { position: relative; z-index: 3; margin-top: 66px; min-height: 112px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; border-top: 1px solid rgba(255,255,255,.09); }
.p3-stats-strip div { padding: 0 24px; border-right: 1px solid rgba(255,255,255,.09); display: flex; flex-direction: column; }
.p3-stats-strip div:first-child { padding-left: 0; }
.p3-stats-strip div:last-child { border: 0; }
.p3-stats-strip strong { font-size: 25px; letter-spacing: -.04em; }
.p3-stats-strip span { margin-top: 4px; color: rgba(255,255,255,.48); font-size: 11px; }
.p3-section { padding: 112px 0; }
.p3-section-heading { margin-bottom: 44px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.p3-section-heading h2 { margin: 15px 0 0; max-width: 750px; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.05em; }
.p3-section-heading > p { max-width: 330px; color: var(--p3-muted); line-height: 1.7; }
.p3-arrow-link, .p3-primary-link { color: #4f43d9; font-weight: 800; font-size: 13px; white-space: nowrap; }
.p3-arrow-link span, .p3-primary-link span { margin-left: 7px; }
.p3-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p3-category-card { min-height: 270px; padding: 24px; border: 1px solid #e7e8ef; border-radius: 24px; background: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.p3-category-card::before { content: ""; position: absolute; width: 150px; height: 150px; right: -95px; top: -95px; border-radius: 50%; background: #efedff; transition: transform .3s ease; }
.p3-category-card:hover { transform: translateY(-7px); border-color: rgba(91,77,247,.3); box-shadow: 0 24px 48px rgba(33, 35, 62, .1); }
.p3-category-card:hover::before { transform: scale(1.35); }
.p3-category-number { color: #a0a5b3; font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.p3-category-icon { margin: 24px 0 25px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: #f0efff; color: #5448e5; font-weight: 900; font-size: 18px; position: relative; z-index: 1; }
.p3-category-card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.03em; }
.p3-category-card p { margin: 0; color: var(--p3-muted); line-height: 1.55; font-size: 12px; }
.p3-category-card footer { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; color: #858b9c; font-size: 10px; border-top: 1px solid #eff0f4; }
.p3-category-card footer i { width: 31px; height: 31px; display: grid; place-items: center; background: #171a2e; color: #fff; border-radius: 50%; font-style: normal; }
.p3-featured-section { background: #f6f7fb; position: relative; overflow: hidden; }
.p3-featured-section::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -250px; top: -200px; background: rgba(91,77,247,.07); }
.p3-business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p3-business-card { border-radius: 25px; overflow: hidden; background: #fff; border: 1px solid #e8e9ef; transition: transform .28s ease, box-shadow .28s ease; }
.p3-business-card:hover { transform: translateY(-7px); box-shadow: var(--p3-shadow); }
.p3-business-media { height: 230px; background: linear-gradient(145deg, #4c4b77, #292c46); background-size: cover; background-position: center; position: relative; display: block; overflow: hidden; }
.p3-card-shine { position: absolute; inset: 0; background: linear-gradient(125deg, transparent 35%, rgba(255,255,255,.16), transparent 65%); transform: translateX(-120%); transition: transform .7s ease; }
.p3-business-card:hover .p3-card-shine { transform: translateX(120%); }
.p3-business-media b { position: absolute; left: 15px; top: 15px; padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.91); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.p3-business-media i { position: absolute; right: 15px; top: 15px; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: rgba(21,24,42,.74); color: #fff; font-style: normal; backdrop-filter: blur(10px); }
.p3-business-body { padding: 20px; }
.p3-business-identity { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
.p3-business-identity > span { width: 48px; height: 48px; border: 1px solid #e7e8ed; border-radius: 14px; display: grid; place-items: center; color: var(--p3-violet); font-weight: 900; overflow: hidden; }
.p3-business-identity img { width: 100%; height: 100%; object-fit: contain; }
.p3-business-identity h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.p3-business-identity small { display: block; margin-top: 4px; color: #858b9b; font-size: 10px; }
.p3-business-identity mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e9fbf5; color: #0ba774; font-size: 11px; }
.p3-business-body > p { min-height: 57px; margin: 17px 0; color: #687084; font-size: 12px; line-height: 1.65; }
.p3-business-body footer { padding-top: 15px; border-top: 1px solid #eff0f4; display: flex; justify-content: space-between; gap: 15px; color: #858b9b; font-size: 10px; }
.p3-business-body footer a { color: #4f43d9; font-weight: 800; }
.p3-city-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.p3-city-intro { position: sticky; top: 115px; }
.p3-city-intro h2 { margin: 17px 0; font-size: 48px; letter-spacing: -.055em; line-height: 1.06; }
.p3-city-intro p { margin: 0 0 25px; color: var(--p3-muted); line-height: 1.75; }
.p3-city-grid { border-top: 1px solid #dfe1e9; }
.p3-city-grid a { min-height: 86px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 15px; border-bottom: 1px solid #e2e4eb; transition: padding .2s ease, color .2s ease; }
.p3-city-grid a:hover { padding-left: 12px; color: #5146e5; }
.p3-city-grid > a > span { color: #a3a8b5; font-size: 10px; letter-spacing: .12em; }
.p3-city-grid div { display: flex; flex-direction: column; }
.p3-city-grid strong { font-size: 18px; }
.p3-city-grid small { margin-top: 5px; color: #8b90a0; font-size: 10px; }
.p3-city-grid i { width: 36px; height: 36px; display: grid; place-items: center; background: #f1f0ff; color: #5146e5; border-radius: 50%; font-style: normal; }
.p3-experience-section { padding: 120px 0; color: #fff; background: linear-gradient(135deg, #15172b, #272b4b); position: relative; overflow: hidden; }
.p3-experience-section::after { content: ""; position: absolute; width: 650px; height: 650px; right: -380px; top: -350px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: inset 0 0 0 90px rgba(255,255,255,.015), inset 0 0 0 180px rgba(255,255,255,.015); }
.p3-experience-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.p3-experience-art { min-height: 520px; position: relative; display: grid; place-items: center; }
.p3-phone-mock { width: 280px; min-height: 500px; padding: 18px; border: 6px solid rgba(255,255,255,.16); border-radius: 42px; background: #f8f8fc; color: #1a1d31; box-shadow: 0 40px 90px rgba(3,4,17,.4); transform: rotate(-5deg); position: relative; z-index: 2; }
.p3-phone-top { width: 80px; height: 17px; margin: -5px auto 23px; border-radius: 20px; background: #202238; }
.p3-phone-search { padding: 14px; border-radius: 14px; background: #ececf5; color: #888d9e; font-size: 10px; }
.p3-phone-card { margin-top: 15px; padding: 13px; border-radius: 17px; background: #fff; border: 1px solid #e8e8ef; display: flex; gap: 11px; align-items: center; }
.p3-phone-card > span { width: 47px; height: 47px; border-radius: 13px; background: linear-gradient(145deg,#7569f1,#3d4263); }
.p3-phone-card:nth-child(4) > span { background: linear-gradient(145deg,#18bd83,#3d6661); }
.p3-phone-card div { display: flex; flex-direction: column; }
.p3-phone-card b { font-size: 10px; }
.p3-phone-card small { margin-top: 5px; color: #969aa8; font-size: 8px; }
.p3-phone-action { margin-top: 22px; padding: 15px; border-radius: 14px; background: #594cf0; color: #fff; text-align: center; font-size: 10px; font-weight: 850; }
.p3-experience-ring { position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: inset 0 0 0 70px rgba(91,77,247,.07), inset 0 0 0 140px rgba(91,77,247,.05); }
.p3-experience-copy h2 { margin: 18px 0 22px; font-size: clamp(40px, 4vw, 60px); line-height: 1.04; letter-spacing: -.055em; }
.p3-experience-copy > p { color: rgba(255,255,255,.58); line-height: 1.8; }
.p3-feature-list { margin-top: 34px; }
.p3-feature-list > div { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 42px 1fr; gap: 15px; }
.p3-feature-list > div > span { color: #9990ff; font-size: 10px; letter-spacing: .12em; }
.p3-feature-list p { margin: 0; display: flex; flex-direction: column; }
.p3-feature-list strong { font-size: 14px; }
.p3-feature-list small { margin-top: 6px; color: rgba(255,255,255,.46); line-height: 1.55; }
.p3-business-cta { padding: 105px 0; color: #fff; background: linear-gradient(125deg, #5749eb, #6b5cf0 50%, #4b3ed0); position: relative; overflow: hidden; }
.p3-business-cta-orb { position: absolute; right: 6%; top: -220px; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: inset 0 0 0 80px rgba(255,255,255,.03), inset 0 0 0 160px rgba(255,255,255,.03); }
.p3-business-cta .p3-container { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.p3-business-cta h2 { margin: 18px 0 12px; max-width: 720px; font-size: 50px; line-height: 1.06; letter-spacing: -.055em; }
.p3-business-cta p { margin: 0; color: rgba(255,255,255,.7); }
.p3-business-cta .p3-container > a { padding: 18px 24px; border-radius: 999px; background: #fff; color: #3930af; font-weight: 850; font-size: 13px; white-space: nowrap; box-shadow: 0 20px 40px rgba(27,22,103,.25); }
.p3-empty { grid-column: 1 / -1; padding: 55px; border: 1px dashed #d7d9e3; border-radius: 24px; text-align: center; background: rgba(255,255,255,.5); }
.p3-empty strong { display: block; font-size: 19px; }
.p3-empty p { color: var(--p3-muted); }

/* Public directory */
.p3-results-hero { position: relative; padding: 72px 0 58px; color: #fff; background: linear-gradient(135deg,#181a30,#292d4d); overflow: hidden; }
.p3-results-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; opacity: .3; }
.p3-results-orb { position: absolute; width: 440px; height: 440px; right: -180px; top: -220px; border-radius: 50%; background: rgba(91,77,247,.35); filter: blur(70px); }
.p3-results-hero .p3-container { position: relative; z-index: 2; }
.p3-breadcrumb { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.46); font-size: 11px; }
.p3-breadcrumb a:hover { color: #fff; }
.p3-results-title { margin-top: 32px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.p3-results-title h1 { margin: 16px 0 12px; max-width: 760px; font-size: clamp(42px,5vw,68px); line-height: 1; letter-spacing: -.06em; }
.p3-results-title p { margin: 0; color: rgba(255,255,255,.6); }
.p3-result-count { min-width: 150px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; }
.p3-result-count strong { font-size: 35px; letter-spacing: -.05em; }
.p3-result-count span { margin-top: 5px; color: rgba(255,255,255,.52); font-size: 11px; }
.p3-directory-search { margin-top: 38px; padding: 9px; border-radius: 20px; background: #fff; display: grid; grid-template-columns: 1.1fr .9fr .78fr .78fr auto; gap: 4px; color: var(--p3-ink); box-shadow: 0 25px 55px rgba(4,6,22,.28); }
.p3-directory-search > div { position: relative; padding: 7px 12px 7px 36px; border-right: 1px solid #ececf2; }
.p3-directory-search label { display: block; color: #9a9dab; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 850; }
.p3-directory-search div > span { position: absolute; left: 12px; bottom: 12px; color: #665af0; }
.p3-directory-search input, .p3-directory-search select { width: 100%; padding: 3px 0 0; border: 0; outline: 0; background: transparent; font-size: 12px; font-weight: 700; color: #24283d; appearance: none; }
.p3-directory-search button { padding: 0 22px; border: 0; border-radius: 14px; background: #584bec; color: #fff; font-weight: 850; cursor: pointer; }
.p3-directory-search button span { margin-left: 6px; }
.p3-results-section { padding: 56px 0 95px; background: #f6f7fb; min-height: 600px; }
.p3-results-toolbar { margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.p3-results-toolbar > div:first-child { display: flex; flex-direction: column; }
.p3-results-toolbar strong { font-size: 15px; }
.p3-results-toolbar span { margin-top: 5px; color: #8c91a1; font-size: 10px; }
.p3-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.p3-toolbar-actions > a { margin-right: 12px; color: #594ce9; font-size: 11px; font-weight: 800; }
.p3-toolbar-actions button { width: 37px; height: 37px; border: 1px solid #dedfe7; background: #fff; border-radius: 10px; color: #888d9d; cursor: pointer; }
.p3-toolbar-actions button.active { background: #24273d; color: #fff; border-color: #24273d; }
.p3-result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.p3-result-grid.list-view { grid-template-columns: 1fr; }
.p3-result-card { border: 1px solid #e5e6ed; border-radius: 24px; overflow: hidden; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.p3-result-card:hover { transform: translateY(-5px); box-shadow: 0 25px 55px rgba(30,33,57,.11); }
.p3-result-media { height: 210px; display: block; position: relative; background: linear-gradient(145deg,#535675,#2c304d); background-position: center; background-size: cover; }
.p3-result-gradient { position: absolute; inset: 0; background: linear-gradient(to top,rgba(15,18,35,.55),transparent 62%); }
.p3-result-logo { position: absolute; left: 16px; bottom: -26px; width: 58px; height: 58px; border: 4px solid #fff; border-radius: 17px; background: #fff; color: #5548e9; display: grid; place-items: center; font-weight: 900; box-shadow: 0 10px 25px rgba(25,28,48,.18); overflow: hidden; }
.p3-result-logo img { width: 100%; height: 100%; object-fit: contain; }
.p3-result-badges { position: absolute; top: 13px; left: 13px; display: flex; gap: 6px; }
.p3-result-badges b { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #25283d; text-transform: uppercase; letter-spacing: .07em; font-size: 8px; }
.p3-result-badges b.verified { background: rgba(232,252,245,.94); color: #069d6b; }
.p3-result-body { padding: 36px 18px 18px; }
.p3-result-top { display: flex; justify-content: space-between; color: #867df0; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.p3-result-top small { color: #a0a4b1; }
.p3-result-body h2 { margin: 12px 0 10px; font-size: 18px; letter-spacing: -.035em; }
.p3-result-body > p { margin: 0; min-height: 58px; color: #73798b; line-height: 1.6; font-size: 11px; }
.p3-result-location { margin: 16px 0; color: #747a8c; font-size: 10px; }
.p3-result-location span { color: #5c50e8; margin-right: 5px; }
.p3-result-body footer { padding-top: 14px; border-top: 1px solid #eff0f4; display: flex; justify-content: space-between; align-items: center; }
.p3-view-profile { color: #4e42d4; font-size: 11px; font-weight: 850; }
.p3-quick-call { padding: 8px 12px; background: #f0efff; color: #5044da; border-radius: 9px; font-size: 9px; font-weight: 850; }
.p3-result-grid.list-view .p3-result-card { display: grid; grid-template-columns: 280px 1fr; }
.p3-result-grid.list-view .p3-result-media { height: 100%; min-height: 240px; }
.p3-result-grid.list-view .p3-result-body > p { min-height: 0; }
.p3-no-results { grid-column: 1/-1; padding: 90px 30px; text-align: center; border: 1px dashed #d6d8e1; border-radius: 24px; background: #fff; }
.p3-no-results > span { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; background: #f0efff; color: #5549e7; font-size: 27px; }
.p3-no-results h2 { margin: 0; font-size: 27px; }
.p3-no-results p { color: #838899; }
.p3-no-results a { color: #5043d6; font-weight: 850; }
.p3-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.p3-pagination a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #dedfe7; background: #fff; border-radius: 11px; color: #74798b; font-size: 11px; font-weight: 800; }
.p3-pagination a.current { border-color: #5649e7; background: #5649e7; color: #fff; }
.p3-mini-cta { padding: 28px 0; background: #20233a; color: #fff; }
.p3-mini-cta .p3-container { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.p3-mini-cta div div { display: flex; flex-direction: column; }
.p3-mini-cta strong { font-size: 14px; }
.p3-mini-cta span { margin-top: 5px; color: rgba(255,255,255,.5); font-size: 10px; }
.p3-mini-cta a { color: #a79fff; font-weight: 850; font-size: 11px; }

/* Footer */
.site-footer { position: relative; padding: 80px 0 24px; background: #111322; color: #fff; overflow: hidden; }
.site-footer-glow { position: absolute; width: 500px; height: 500px; left: -240px; bottom: -330px; border-radius: 50%; background: rgba(91,77,247,.25); filter: blur(70px); }
.site-footer-inner { position: relative; display: grid; grid-template-columns: 1.4fr .65fr .65fr .8fr; gap: 65px; }
.footer-brand .site-brand-mark span { border-color: #111322; }
.site-footer-brand > p { max-width: 330px; margin: 22px 0 0; color: rgba(255,255,255,.47); line-height: 1.7; font-size: 12px; }
.site-footer-links { display: flex; flex-direction: column; gap: 13px; }
.site-footer-links strong { margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.site-footer-links a { color: rgba(255,255,255,.7); font-size: 11px; }
.site-footer-links a:hover { color: #fff; }
.site-footer-note { padding: 20px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.035); }
.site-footer-note span { color: #a69eff; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.site-footer-note p { margin: 12px 0 0; color: rgba(255,255,255,.5); font-size: 11px; line-height: 1.6; }
.site-footer-bottom { position: relative; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; color: rgba(255,255,255,.35); font-size: 9px; }

/* Admin Phase 3 */
.landing-editor-header { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-editor-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.landing-editor-actions form { margin: 0; }
.landing-admin-grid { padding: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.landing-admin-card { border: 1px solid #e4e6ec; border-radius: 20px; overflow: hidden; background: #fff; }
.landing-admin-card-top { min-height: 125px; padding: 14px; position: relative; display: flex; justify-content: space-between; align-items: flex-start; overflow: hidden; }
.landing-admin-card-top::before, .template-choice-art::before { content: ""; position: absolute; inset: 0; opacity: .9; }
.template-preview-corporate::before { background: linear-gradient(135deg,#252845,#6254ff); }
.template-preview-local::before { background: linear-gradient(135deg,#0f766e,#34d399); }
.template-preview-restaurant::before { background: linear-gradient(135deg,#69152e,#e99052); }
.template-preview-luxury::before { background: linear-gradient(135deg,#09090b,#3f3629); }
.template-preview-medical::before { background: linear-gradient(135deg,#0e4776,#58c5b4); }
.template-preview-leadgen::before { background: linear-gradient(135deg,#4c1d95,#f97316); }
.landing-card-logo { position: relative; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #fff; color: #5246df; font-weight: 900; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.landing-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.landing-admin-card-top .status-badge { position: relative; z-index: 2; }
.landing-admin-card-body { padding: 17px; }
.landing-admin-card-body h3 { margin: 0; font-size: 15px; }
.landing-admin-card-body p { margin: 5px 0 0; color: #8a8f9f; font-size: 10px; }
.landing-admin-card-body dl { margin: 16px 0; padding: 12px 0; border-top: 1px solid #eceef2; border-bottom: 1px solid #eceef2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.landing-admin-card-body dl div { display: flex; flex-direction: column; }
.landing-admin-card-body dt { color: #a0a4b0; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.landing-admin-card-body dd { margin: 4px 0 0; font-size: 10px; font-weight: 800; }
.landing-admin-actions { display: flex; gap: 8px; }
.template-choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.template-choice { position: relative; padding: 10px; border: 2px solid #e8e9ee; border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.template-choice:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,31,52,.08); }
.template-choice.selected, .template-choice:has(input:checked) { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary), transparent 85%); }
.template-choice > input { position: absolute; opacity: 0; }
.template-choice-art { height: 115px; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr 1fr; gap: 5px; padding: 17px; border-radius: 13px; overflow: hidden; position: relative; }
.template-choice-art i { position: relative; z-index: 2; display: block; border-radius: 6px; background: rgba(255,255,255,.9); }
.template-choice-art i:first-child { grid-row: 1/3; opacity: .24; }
.template-choice-art i:nth-child(2) { height: 10px; align-self: end; }
.template-choice-art i:nth-child(3) { height: 6px; align-self: start; opacity: .65; }
.template-choice-art i:nth-child(4) { display: none; }
.template-choice-copy { padding: 13px 4px 7px; display: flex; flex-direction: column; }
.template-choice-copy strong { font-size: 13px; }
.template-choice-copy small { margin-top: 4px; color: #777d8e; font-size: 9px; line-height: 1.45; }
.template-choice-copy em { margin-top: 8px; color: #9a9eaa; font-style: normal; font-size: 9px; line-height: 1.45; }
.template-choice > a { display: inline-block; margin: 2px 4px 4px; color: var(--brand-primary); font-size: 9px; font-weight: 850; }
.landing-color-grid .color-input { display: grid; grid-template-columns: 45px 1fr; gap: 8px; }
.landing-color-grid input[type=color] { min-height: 42px; padding: 3px; }
.landing-hero-upload { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.builder-hint { color: #999eac; font-size: 10px; }
.section-builder-list { display: flex; flex-direction: column; gap: 9px; }
.section-builder-item { padding: 11px; display: grid; grid-template-columns: 28px 42px 1fr; align-items: center; gap: 8px; border: 1px solid #e5e7ed; border-radius: 14px; background: #fff; }
.section-builder-item.dragging { opacity: .45; border-style: dashed; }
.section-drag-handle { cursor: grab; color: #9da1af; font-size: 20px; user-select: none; }
.section-toggle input { display: none; }
.section-toggle span { width: 36px; height: 20px; display: block; border-radius: 999px; background: #dfe2e8; position: relative; transition: background .2s ease; }
.section-toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: transform .2s ease; }
.section-toggle input:checked + span { background: var(--brand-primary); }
.section-toggle input:checked + span::after { transform: translateX(16px); }
.section-builder-copy > strong { display: block; margin-bottom: 8px; font-size: 11px; }
.section-builder-fields { display: grid; grid-template-columns: .65fr 1fr; gap: 8px; }
.section-builder-fields input { min-height: 37px; font-size: 10px; }
.content-library-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.content-library-column { padding: 15px; border: 1px solid #e6e8ed; border-radius: 16px; background: #fafbfc; }
.content-library-column > h3 { margin: 0 0 13px; font-size: 13px; }
.mini-create-form { display: flex; flex-direction: column; gap: 8px; }
.mini-create-form input, .mini-create-form textarea, .mini-create-form select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #dfe1e7; border-radius: 9px; background: #fff; font-size: 10px; }
.mini-row { display: grid; grid-template-columns: .45fr 1fr; gap: 7px; }
.content-record-list { margin-top: 15px; display: flex; flex-direction: column; gap: 8px; }
.content-record-list article { padding: 11px; border: 1px solid #e5e7ec; border-radius: 11px; background: #fff; display: flex; justify-content: space-between; gap: 10px; }
.content-record-list article > div { min-width: 0; }
.content-record-list img { width: 28px; height: 28px; float: left; margin: 0 8px 5px 0; object-fit: cover; border-radius: 8px; }
.content-record-list strong { display: block; font-size: 10px; }
.content-record-list small { display: block; margin-top: 3px; color: #8b90a0; font-size: 8px; }
.content-record-list p { margin: 6px 0 0; color: #747a8b; font-size: 9px; line-height: 1.45; }
.link-danger { padding: 0; border: 0; background: transparent; color: #c44; font-size: 8px; cursor: pointer; }
.muted-copy { color: #999eab; font-size: 9px; }

/* Landing page foundation */
.landing-preview-bar { position: sticky; top: 82px; z-index: 115; min-height: 42px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; background: #fff4cf; color: #604b00; border-bottom: 1px solid #f0d878; font-size: 11px; }
.landing-preview-bar a { font-weight: 850; text-decoration: underline; }
.business-landing { --lp-primary: #4f46e5; --lp-accent: #10b981; --lp-surface: #f7f8fc; color: #171927; background: #fff; }
.business-landing h1, .business-landing h2, .business-landing h3, .business-landing p { overflow-wrap: anywhere; }
.business-landing.landing-font-editorial h1, .business-landing.landing-font-editorial h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.business-landing.landing-font-classic { font-family: Arial, Helvetica, sans-serif; }
.lp-trust-ribbon, .lp-medical-ribbon { padding: 11px 0; background: var(--lp-primary); color: #fff; font-size: 10px; }
.lp-trust-ribbon .lp-container { display: flex; justify-content: center; gap: 50px; }
.lp-medical-ribbon .lp-container { display: flex; justify-content: space-between; }
.lp-medical-ribbon a { font-weight: 850; }
.lp-hero { min-height: 690px; color: #fff; background: #171a2e; position: relative; overflow: hidden; }
.lp-hero-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg,rgba(13,15,30,.95) 0%,rgba(13,15,30,.72) 52%,rgba(13,15,30,.42) 100%), var(--lp-hero-image); background-size: cover; background-position: center; }
.lp-hero-pattern { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 60px 60px; }
.lp-hero-inner { min-height: 690px; position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .58fr; gap: 85px; align-items: center; }
.lp-breadcrumb { margin-bottom: 35px; display: flex; flex-wrap: wrap; gap: 9px; color: rgba(255,255,255,.42); font-size: 9px; }
.lp-breadcrumb a:hover { color: #fff; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 850; }
.lp-eyebrow span { width: 25px; height: 1px; background: var(--lp-accent); }
.lp-hero-copy h1 { margin: 20px 0 18px; max-width: 760px; font-size: clamp(50px,6vw,82px); line-height: .98; letter-spacing: -.065em; }
.lp-hero-copy > p { max-width: 650px; margin: 0; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.75; }
.lp-hero-actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-button { min-height: 50px; padding: 0 19px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 850; }
.lp-button-primary { background: var(--lp-primary); color: #fff; box-shadow: 0 16px 30px color-mix(in srgb,var(--lp-primary),transparent 65%); }
.lp-button-primary span { margin-left: 10px; }
.lp-button-secondary { border: 1px solid rgba(255,255,255,.23); background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(10px); }
.lp-hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255,255,255,.54); font-size: 9px; }
.lp-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero-meta b { color: var(--lp-accent); }
.lp-hero-card { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.1); backdrop-filter: blur(18px); box-shadow: 0 30px 65px rgba(0,0,0,.2); }
.lp-card-logo { width: 66px; height: 66px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 18px; background: #fff; color: var(--lp-primary); font-size: 20px; font-weight: 900; overflow: hidden; }
.lp-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.lp-card-heading { display: flex; flex-direction: column; }
.lp-card-heading span { color: rgba(255,255,255,.45); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.lp-card-heading strong { margin-top: 5px; font-size: 16px; }
.lp-card-contact { margin-top: 20px; display: flex; flex-direction: column; }
.lp-card-contact a { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.13); display: grid; grid-template-columns: 1fr auto; }
.lp-card-contact a > span { grid-column: 1; color: rgba(255,255,255,.42); font-size: 8px; }
.lp-card-contact a strong { grid-column: 1; margin-top: 4px; font-size: 10px; }
.lp-card-contact a i { grid-column: 2; grid-row: 1/3; align-self: center; font-style: normal; color: var(--lp-accent); }
.lp-hero-card > small { display: block; margin-top: 15px; color: rgba(255,255,255,.37); font-size: 8px; line-height: 1.5; }
.lp-hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); color: rgba(255,255,255,.36); text-transform: uppercase; letter-spacing: .13em; font-size: 8px; }
.lp-hero-scroll span { display: inline-block; width: 30px; height: 1px; margin-right: 7px; background: rgba(255,255,255,.35); vertical-align: middle; }
.lp-quick-proof { border-bottom: 1px solid #e8e9ef; background: #fff; }
.lp-quick-proof .lp-container { min-height: 110px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.lp-quick-proof div div { padding: 0 25px; border-right: 1px solid #e8e9ef; display: flex; flex-direction: column; }
.lp-quick-proof div div:first-child { padding-left: 0; }
.lp-quick-proof div div:last-child { border: 0; }
.lp-quick-proof strong { font-size: 22px; color: var(--lp-primary); }
.lp-quick-proof span { margin-top: 4px; color: #858b9b; font-size: 9px; }
.lp-section { padding: 105px 0; }
.lp-section-heading { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.lp-section-heading.wide { margin-bottom: 42px; grid-template-columns: 40px minmax(0,1fr) auto; }
.lp-section-heading.centered { max-width: 760px; margin: 0 auto 42px; text-align: center; display: block; }
.lp-section-heading.light { color: #fff; }
.lp-section-number { color: var(--lp-primary); font-size: 9px; letter-spacing: .13em; font-weight: 850; }
.lp-section-heading small { color: var(--lp-primary); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; font-weight: 850; }
.lp-section-heading h2 { margin: 11px 0 10px; font-size: clamp(34px,4vw,53px); line-height: 1.08; letter-spacing: -.05em; }
.lp-section-heading p { max-width: 630px; margin: 0; color: #777e90; line-height: 1.7; font-size: 12px; }
.lp-section-heading.light p { color: rgba(255,255,255,.58); }
.lp-section-heading.wide > a { align-self: end; color: var(--lp-primary); font-size: 10px; font-weight: 850; }
.lp-about { background: #fff; }
.lp-about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.lp-rich-copy { color: #555d70; font-size: 14px; line-height: 1.9; }
.lp-about-tags { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-about-tags a { padding: 9px 12px; border: 1px solid #e1e3e9; border-radius: 999px; color: #5f6678; font-size: 9px; }
.lp-services { background: var(--lp-surface); }
.lp-service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.lp-service-card { min-height: 285px; padding: 22px; border: 1px solid rgba(30,33,55,.09); border-radius: 22px; background: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.lp-service-card:hover { transform: translateY(-5px); box-shadow: 0 22px 45px rgba(25,28,49,.1); }
.lp-service-image { height: 140px; margin: -22px -22px 20px; background-size: cover; background-position: center; }
.lp-service-index { color: var(--lp-primary); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.lp-service-card h3 { margin: 17px 0 10px; font-size: 18px; letter-spacing: -.03em; }
.lp-service-card p { margin: 0; color: #747b8c; line-height: 1.65; font-size: 11px; }
.lp-service-card footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #eceef2; display: flex; justify-content: space-between; align-items: center; }
.lp-service-card footer strong { font-size: 10px; }
.lp-service-card footer a { color: var(--lp-primary); font-size: 9px; font-weight: 850; }
.lp-why { color: #fff; background: #171a2e; }
.lp-why .lp-section-heading h2 { color: #fff; }
.lp-why .lp-section-heading p { color: rgba(255,255,255,.5); }
.lp-why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.lp-why-grid article { min-height: 240px; padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 21px; background: rgba(255,255,255,.035); }
.lp-why-grid article > span { color: var(--lp-accent); font-size: 9px; letter-spacing: .12em; }
.lp-why-grid h3 { margin: 38px 0 12px; font-size: 18px; }
.lp-why-grid p { margin: 0; color: rgba(255,255,255,.5); line-height: 1.65; font-size: 11px; }
.lp-gallery { background: #fff; }
.lp-gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 210px; gap: 12px; }
.lp-gallery-item { margin: 0; border-radius: 18px; overflow: hidden; position: relative; grid-column: span 4; }
.lp-gallery-item.item-1 { grid-column: span 7; grid-row: span 2; }
.lp-gallery-item.item-2 { grid-column: span 5; }
.lp-gallery-item.item-3 { grid-column: span 5; }
.lp-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lp-gallery-item:hover img { transform: scale(1.04); }
.lp-gallery-item figcaption { position: absolute; inset: auto 0 0; padding: 30px 15px 14px; color: #fff; background: linear-gradient(transparent,rgba(10,12,24,.75)); font-size: 9px; }
.lp-gallery-item figcaption span { margin-right: 8px; color: var(--lp-accent); }
.lp-testimonials { background: var(--lp-surface); }
.lp-testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.lp-testimonial-grid blockquote { margin: 0; min-height: 250px; padding: 26px; border: 1px solid rgba(28,31,52,.09); border-radius: 21px; background: #fff; display: flex; flex-direction: column; }
.lp-stars { color: #f5aa22; letter-spacing: .1em; font-size: 11px; }
.lp-testimonial-grid blockquote > p { margin: 24px 0; color: #4f5669; line-height: 1.75; font-size: 12px; }
.lp-testimonial-grid footer { margin-top: auto; display: flex; align-items: center; gap: 11px; }
.lp-testimonial-grid footer > span, .lp-testimonial-grid footer > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--lp-primary); color: #fff; font-size: 10px; font-weight: 850; }
.lp-testimonial-grid footer div { display: flex; flex-direction: column; }
.lp-testimonial-grid footer strong { font-size: 10px; }
.lp-testimonial-grid footer small { margin-top: 4px; color: #9296a5; font-size: 8px; }
.lp-team { background: #fff; }
.lp-team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.lp-team-grid article { padding: 13px 13px 20px; border: 1px solid #e5e7ed; border-radius: 20px; }
.lp-team-photo { height: 235px; border-radius: 14px; overflow: hidden; background: linear-gradient(145deg,var(--lp-primary),#24273e); display: grid; place-items: center; color: #fff; font-size: 32px; font-weight: 850; }
.lp-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-team-grid h3 { margin: 17px 2px 4px; font-size: 15px; }
.lp-team-grid article > strong { margin: 0 2px; color: var(--lp-primary); font-size: 9px; }
.lp-team-grid p { margin: 10px 2px 0; color: #7d8393; line-height: 1.55; font-size: 9px; }
.lp-areas { background: var(--lp-surface); }
.lp-areas-grid, .lp-hours-grid, .lp-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.lp-area-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.lp-area-list > span { min-height: 75px; padding: 17px; border: 1px solid rgba(30,33,55,.09); border-radius: 15px; background: #fff; display: flex; flex-direction: column; justify-content: center; font-size: 11px; font-weight: 800; }
.lp-area-list small { margin-top: 5px; color: #969aa7; font-size: 8px; font-weight: 500; }
.lp-hours { background: #fff; }
.lp-hours-card { padding: 24px; border: 1px solid #e3e5eb; border-radius: 20px; background: #fff; box-shadow: 0 22px 50px rgba(29,32,54,.07); }
.lp-hours-card > div { padding: 13px 0; border-bottom: 1px solid #eceef2; display: flex; justify-content: space-between; gap: 20px; }
.lp-hours-card > div:last-child { border: 0; }
.lp-hours-card span { color: #747a8c; font-size: 10px; }
.lp-hours-card strong { font-size: 10px; }
.lp-faq { background: var(--lp-surface); }
.lp-faq-list details { border-bottom: 1px solid #dfe1e7; }
.lp-faq-list summary { min-height: 70px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; list-style: none; cursor: pointer; font-size: 12px; font-weight: 800; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary > span { color: var(--lp-primary); font-size: 8px; letter-spacing: .1em; }
.lp-faq-list summary i { font-style: normal; color: var(--lp-primary); font-size: 18px; transition: transform .2s ease; }
.lp-faq-list details[open] summary i { transform: rotate(45deg); }
.lp-faq-list details > p { margin: -4px 0 23px 36px; color: #6f7688; line-height: 1.7; font-size: 11px; }
.lp-contact { position: relative; color: #fff; background: #171a2e; overflow: hidden; }
.lp-contact-orb { position: absolute; width: 500px; height: 500px; right: -200px; top: -270px; border-radius: 50%; background: color-mix(in srgb,var(--lp-primary),transparent 55%); filter: blur(60px); }
.lp-contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.lp-contact .lp-section-number, .lp-contact .lp-section-heading small { color: var(--lp-accent); }
.lp-contact-card { padding: 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.lp-contact-name { display: flex; align-items: center; gap: 13px; }
.lp-contact-name > div { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #fff; color: var(--lp-primary); font-weight: 900; overflow: hidden; }
.lp-contact-name img { width: 100%; height: 100%; object-fit: contain; }
.lp-contact-name > span { display: flex; flex-direction: column; }
.lp-contact-name strong { font-size: 14px; }
.lp-contact-name small { margin-top: 4px; color: rgba(255,255,255,.45); font-size: 9px; }
.lp-contact-actions { margin-top: 22px; }
.lp-contact-actions a { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 1fr auto; }
.lp-contact-actions a > span { grid-column: 1; color: rgba(255,255,255,.42); font-size: 8px; }
.lp-contact-actions a strong { grid-column: 1; margin-top: 4px; font-size: 10px; }
.lp-contact-actions a i { grid-column: 2; grid-row: 1/3; align-self: center; color: var(--lp-accent); font-style: normal; }
.lp-contact-address { margin-top: 18px; padding: 14px; display: flex; gap: 9px; border-radius: 13px; background: rgba(255,255,255,.055); color: rgba(255,255,255,.55); font-size: 9px; }
.lp-contact-address p { margin: 0; line-height: 1.5; }
.lp-social-links { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.lp-social-links a { padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.65); font-size: 8px; }
.lp-content-empty { grid-column: 1/-1; padding: 34px; border: 1px dashed #cfd2dc; border-radius: 18px; color: #888e9e; text-align: center; font-size: 10px; }
.lp-mobile-actions { display: none; }

/* Template personalities */
.landing-template-local-service .lp-hero-backdrop { background-image: linear-gradient(90deg,rgba(4,32,29,.95),rgba(4,39,35,.73) 56%,rgba(4,39,35,.35)),var(--lp-hero-image); }
.landing-template-local-service .lp-hero-card { background: #fff; color: #17211f; border: 0; }
.landing-template-local-service .lp-card-heading span, .landing-template-local-service .lp-card-contact a > span, .landing-template-local-service .lp-hero-card > small { color: #8b938f; }
.landing-template-local-service .lp-card-contact a { border-color: #e6eae8; }
.landing-template-local-service .lp-card-contact a i { color: var(--lp-primary); }
.landing-template-local-service .lp-service-card { border-top: 4px solid var(--lp-accent); }
.landing-template-local-service .lp-why { background: var(--lp-primary); }
.landing-template-restaurant .lp-hero { min-height: 770px; }
.landing-template-restaurant .lp-hero-backdrop { background-image: linear-gradient(to top,rgba(32,8,15,.92),rgba(32,8,15,.15) 72%),var(--lp-hero-image); }
.landing-template-restaurant .lp-hero-inner { min-height: 770px; grid-template-columns: 1fr .42fr; align-items: end; padding-bottom: 90px; }
.landing-template-restaurant .lp-hero-copy h1 { font-family: Georgia,"Times New Roman",serif; font-weight: 500; font-size: clamp(58px,7vw,96px); }
.landing-template-restaurant .lp-hero-card { border: 0; border-left: 1px solid rgba(255,255,255,.3); border-radius: 0; background: transparent; box-shadow: none; }
.lp-restaurant-label { color: var(--lp-accent); text-transform: uppercase; letter-spacing: .15em; font-size: 9px; }
.lp-restaurant-monogram { margin: 28px 0 18px; font-family: Georgia,serif; font-size: 55px; }
.landing-template-restaurant .lp-hero-card h2 { margin: 0; font-family: Georgia,serif; font-weight: 500; }
.landing-template-restaurant .lp-hero-card p { color: rgba(255,255,255,.5); font-size: 10px; }
.landing-template-restaurant .lp-hero-card a { display: inline-block; margin-top: 22px; color: var(--lp-accent); font-size: 10px; font-weight: 800; }
.landing-template-restaurant .lp-section-heading h2 { font-family: Georgia,"Times New Roman",serif; font-weight: 500; }
.landing-template-restaurant .lp-service-card { border-radius: 0; border-width: 0 0 1px; }
.landing-template-restaurant .lp-gallery-item { border-radius: 2px; }
.landing-template-restaurant .lp-why { background: #44101f; }
.landing-template-luxury { background: #0e0e10; color: #f3efe7; }
.landing-template-luxury .lp-hero { min-height: 780px; background: #080809; }
.landing-template-luxury .lp-hero-backdrop { background-image: linear-gradient(90deg,rgba(5,5,6,.94),rgba(5,5,6,.44)),var(--lp-hero-image); filter: saturate(.65); }
.landing-template-luxury .lp-hero-inner { min-height: 780px; }
.landing-template-luxury .lp-hero-copy h1, .landing-template-luxury .lp-section-heading h2 { font-family: Georgia,"Times New Roman",serif; font-weight: 400; }
.landing-template-luxury .lp-hero-card { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 0; border: 0; border-top: 1px solid rgba(201,163,93,.65); background: transparent; box-shadow: none; }
.lp-luxury-number { color: var(--lp-accent); font-size: 11px; letter-spacing: .2em; }
.lp-luxury-line { width: 100%; height: 1px; margin: auto 0 20px; background: rgba(255,255,255,.16); }
.landing-template-luxury .lp-hero-card p { margin: 0; color: rgba(255,255,255,.42); text-transform: uppercase; letter-spacing: .14em; font-size: 8px; }
.landing-template-luxury .lp-hero-card strong { margin-top: 7px; font-family: Georgia,serif; font-size: 18px; font-weight: 400; }
.landing-template-luxury .lp-section { background: #101012; color: #f2eee5; border-top: 1px solid rgba(255,255,255,.07); }
.landing-template-luxury .lp-section:nth-of-type(even) { background: #151517; }
.landing-template-luxury .lp-section-heading p, .landing-template-luxury .lp-rich-copy, .landing-template-luxury .lp-service-card p, .landing-template-luxury .lp-team-grid p, .landing-template-luxury .lp-faq-list details > p { color: rgba(255,255,255,.48); }
.landing-template-luxury .lp-about-tags a, .landing-template-luxury .lp-service-card, .landing-template-luxury .lp-testimonial-grid blockquote, .landing-template-luxury .lp-team-grid article, .landing-template-luxury .lp-area-list > span, .landing-template-luxury .lp-hours-card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); color: #f2eee5; }
.landing-template-luxury .lp-service-card footer, .landing-template-luxury .lp-hours-card > div, .landing-template-luxury .lp-faq-list details { border-color: rgba(255,255,255,.09); }
.landing-template-luxury .lp-hours-card span, .landing-template-luxury .lp-faq-list summary { color: rgba(255,255,255,.68); }
.landing-template-luxury .lp-why { background: #080809; }
.landing-template-luxury .lp-contact { background: #080809; }
.landing-template-medical .lp-hero { color: #17334c; background: #edf8f7; }
.landing-template-medical .lp-hero-backdrop { background-image: linear-gradient(90deg,rgba(239,249,248,.98),rgba(239,249,248,.88) 55%,rgba(239,249,248,.24)),var(--lp-hero-image); }
.landing-template-medical .lp-hero-pattern { opacity: .15; }
.landing-template-medical .lp-breadcrumb, .landing-template-medical .lp-eyebrow, .landing-template-medical .lp-hero-copy > p, .landing-template-medical .lp-hero-meta { color: rgba(20,51,76,.56); }
.landing-template-medical .lp-button-secondary { border-color: rgba(15,76,129,.18); background: rgba(255,255,255,.65); color: #19476e; }
.landing-template-medical .lp-hero-card { background: rgba(255,255,255,.9); border-color: rgba(15,76,129,.12); color: #17334c; }
.landing-template-medical .lp-card-heading span, .landing-template-medical .lp-card-contact a > span, .landing-template-medical .lp-hero-card > small { color: #8596a4; }
.landing-template-medical .lp-card-contact a { border-color: #e2e9ed; }
.landing-template-medical .lp-why { background: #0f4c81; }
.landing-template-medical .lp-service-card { border-radius: 14px; }
.landing-template-lead-generation .lp-hero-backdrop { background-image: radial-gradient(circle at 70% 30%,rgba(249,115,22,.35),transparent 30%),linear-gradient(110deg,rgba(49,20,95,.98),rgba(76,29,149,.82) 60%,rgba(49,20,95,.55)),var(--lp-hero-image); }
.landing-template-lead-generation .lp-hero-copy h1 { font-size: clamp(56px,6.5vw,90px); }
.landing-template-lead-generation .lp-hero-card { background: #fff; color: #211a31; border: 0; }
.landing-template-lead-generation .lp-card-heading span, .landing-template-lead-generation .lp-card-contact a > span, .landing-template-lead-generation .lp-hero-card > small { color: #958ca3; }
.landing-template-lead-generation .lp-card-contact a { border-color: #ece8ef; }
.landing-template-lead-generation .lp-card-contact a i { color: var(--lp-primary); }
.landing-template-lead-generation .lp-why { background: var(--lp-primary); }
.landing-template-lead-generation .lp-button-primary { background: var(--lp-accent); }

/* Default profile modernized */
.modern-profile-hero { min-height: 490px; padding: 80px 0 60px; color: #fff; background: linear-gradient(90deg,rgba(17,20,37,.95),rgba(17,20,37,.45)),var(--profile-cover); background-size: cover; background-position: center; }
.modern-profile-grid { min-height: 350px; display: grid; grid-template-columns: 1fr .42fr; gap: 70px; align-items: end; }
.modern-profile-identity { display: flex; align-items: center; gap: 20px; }
.modern-profile-logo { width: 88px; height: 88px; border: 5px solid rgba(255,255,255,.2); border-radius: 24px; background: #fff; color: #5548e9; display: grid; place-items: center; font-size: 24px; font-weight: 900; overflow: hidden; }
.modern-profile-logo img { width: 100%; height: 100%; object-fit: contain; }
.modern-profile-identity h1 { margin: 10px 0 8px; font-size: clamp(42px,5vw,70px); letter-spacing: -.06em; line-height: 1; }
.modern-profile-identity p { max-width: 650px; margin: 0; color: rgba(255,255,255,.62); }
.modern-profile-action-card { padding: 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.09); backdrop-filter: blur(14px); }
.modern-profile-action-card a { margin-top: 8px; width: 100%; min-height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 850; }
.modern-profile-action-card a:first-child { margin-top: 0; background: #5b4df7; color: #fff; }
.modern-profile-action-card a:not(:first-child) { background: rgba(255,255,255,.11); color: #fff; }
.modern-profile-content { padding: 80px 0; background: #f6f7fb; }
.modern-profile-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; }
.modern-profile-card { padding: 28px; border: 1px solid #e5e6ed; border-radius: 22px; background: #fff; }
.modern-profile-card + .modern-profile-card { margin-top: 18px; }
.modern-profile-card h2 { margin: 0 0 18px; font-size: 25px; letter-spacing: -.04em; }

/* Responsive */
@media (max-width: 1080px) {
    .p3-category-grid { grid-template-columns: repeat(3,1fr); }
    .p3-business-grid, .p3-result-grid { grid-template-columns: repeat(2,1fr); }
    .p3-hero-grid { gap: 35px; }
    .p3-float-rating { left: 0; }
    .p3-float-search { right: 0; }
    .p3-directory-search { grid-template-columns: repeat(2,1fr); }
    .p3-directory-search button { min-height: 55px; }
    .site-footer-inner { grid-template-columns: 1.2fr .7fr .7fr; }
    .site-footer-note { display: none; }
    .landing-admin-grid, .template-choice-grid, .content-library-grid { grid-template-columns: repeat(2,1fr); }
    .lp-service-grid, .lp-testimonial-grid { grid-template-columns: repeat(2,1fr); }
    .lp-team-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
    .p3-container, .site-header-inner, .site-footer-inner, .site-footer-bottom, .lp-container { width: min(100% - 30px,1180px); }
    .site-header-inner { min-height: 72px; }
    .site-menu-button { display: flex; }
    .site-nav { position: absolute; left: 15px; right: 15px; top: 76px; padding: 17px; border: 1px solid #e3e4eb; border-radius: 18px; background: #fff; box-shadow: 0 22px 50px rgba(24,27,48,.15); display: none; flex-direction: column; align-items: stretch; gap: 6px; }
    .site-nav.open { display: flex; }
    .site-nav > a { padding: 11px; }
    .site-brand-copy small { display: none; }
    .p3-hero { padding-top: 65px; }
    .p3-hero-grid, .p3-experience-grid, .p3-city-layout, .lp-hero-inner, .lp-about-grid, .lp-areas-grid, .lp-hours-grid, .lp-faq-grid, .lp-contact-grid, .modern-profile-layout, .modern-profile-grid { grid-template-columns: 1fr; }
    .p3-hero-visual { min-height: 450px; }
    .p3-search-shell { grid-template-columns: 1fr; }
    .p3-search-divider { display: none; }
    .p3-search-input, .p3-search-select { border-bottom: 1px solid #e8e9ef; }
    .p3-search-shell button { width: 100%; }
    .p3-stats-strip { grid-template-columns: repeat(2,1fr); }
    .p3-stats-strip div { min-height: 75px; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.09); }
    .p3-category-grid { grid-template-columns: repeat(2,1fr); }
    .p3-section-heading { align-items: start; flex-direction: column; }
    .p3-city-intro { position: static; }
    .p3-experience-grid { gap: 45px; }
    .p3-business-cta .p3-container { align-items: flex-start; flex-direction: column; }
    .p3-directory-search { grid-template-columns: 1fr 1fr; }
    .p3-results-title { align-items: start; flex-direction: column; }
    .site-footer-inner { grid-template-columns: 1.2fr 1fr; }
    .landing-editor-header { align-items: flex-start; flex-direction: column; }
    .landing-admin-grid, .template-choice-grid { grid-template-columns: repeat(2,1fr); }
    .content-library-grid { grid-template-columns: 1fr; }
    .landing-hero-upload { grid-template-columns: 1fr; }
    .lp-hero-inner { padding: 75px 0; gap: 35px; }
    .lp-hero-copy h1 { font-size: 57px; }
    .lp-hero-card { max-width: 520px; }
    .lp-quick-proof .lp-container { grid-template-columns: repeat(2,1fr); }
    .lp-quick-proof div div { min-height: 80px; justify-content: center; border-bottom: 1px solid #e8e9ef; }
    .lp-section { padding: 75px 0; }
    .lp-about-grid, .lp-areas-grid, .lp-hours-grid, .lp-faq-grid, .lp-contact-grid { gap: 38px; }
    .lp-team-grid { grid-template-columns: repeat(2,1fr); }
    .landing-template-restaurant .lp-hero-inner { grid-template-columns: 1fr; align-items: end; }
    .landing-template-restaurant .lp-hero-card { max-width: 100%; }
}
@media (max-width: 580px) {
    .p3-hero-copy h1 { font-size: 48px; }
    .p3-hero-copy > p { font-size: 15px; }
    .p3-hero-visual { min-height: 395px; }
    .p3-visual-card { width: 92%; }
    .p3-visual-photo { height: 260px; }
    .p3-floating-card { transform: scale(.86); }
    .p3-float-rating { left: -12px; top: 62px; }
    .p3-float-search { right: -16px; bottom: 65px; }
    .p3-stats-strip { margin-top: 30px; }
    .p3-section { padding: 78px 0; }
    .p3-section-heading h2, .p3-city-intro h2, .p3-business-cta h2 { font-size: 36px; }
    .p3-category-grid, .p3-business-grid, .p3-result-grid { grid-template-columns: 1fr; }
    .p3-category-card { min-height: 245px; }
    .p3-city-layout { gap: 45px; }
    .p3-phone-mock { transform: rotate(-2deg) scale(.88); }
    .p3-experience-art { min-height: 460px; }
    .p3-directory-search { grid-template-columns: 1fr; }
    .p3-directory-search > div { border-right: 0; border-bottom: 1px solid #ececf2; }
    .p3-results-toolbar { align-items: flex-start; flex-direction: column; }
    .p3-toolbar-actions button { display: none; }
    .p3-mini-cta .p3-container { align-items: flex-start; flex-direction: column; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
    .site-footer-brand { grid-column: 1/-1; }
    .site-footer-bottom { gap: 15px; flex-direction: column; }
    .landing-admin-grid, .template-choice-grid { grid-template-columns: 1fr; }
    .section-builder-item { grid-template-columns: 22px 37px 1fr; }
    .section-builder-fields { grid-template-columns: 1fr; }
    .lp-trust-ribbon .lp-container { justify-content: flex-start; overflow-x: auto; gap: 24px; white-space: nowrap; }
    .lp-medical-ribbon .lp-container { gap: 15px; flex-direction: column; }
    .lp-hero { min-height: 670px; }
    .lp-hero-inner { min-height: 670px; }
    .lp-breadcrumb { display: none; }
    .lp-hero-copy h1 { font-size: 46px; }
    .lp-hero-copy > p { font-size: 14px; }
    .lp-hero-actions { flex-direction: column; }
    .lp-button { width: 100%; }
    .lp-hero-meta { gap: 10px; flex-direction: column; }
    .lp-hero-card { padding: 20px; }
    .lp-quick-proof .lp-container { width: 100%; }
    .lp-quick-proof div div { padding: 15px; }
    .lp-section-heading, .lp-section-heading.wide { grid-template-columns: 1fr; }
    .lp-section-heading.wide > a { display: none; }
    .lp-section-heading h2 { font-size: 36px; }
    .lp-service-grid, .lp-why-grid, .lp-testimonial-grid, .lp-team-grid, .lp-area-list { grid-template-columns: 1fr; }
    .lp-gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .lp-gallery-item, .lp-gallery-item.item-1, .lp-gallery-item.item-2, .lp-gallery-item.item-3 { flex: 0 0 86%; height: 310px; grid-column: auto; grid-row: auto; scroll-snap-align: start; }
    .lp-mobile-actions { position: fixed; z-index: 130; left: 10px; right: 10px; bottom: 10px; padding: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; border-radius: 15px; background: rgba(255,255,255,.95); box-shadow: 0 18px 40px rgba(20,23,42,.25); backdrop-filter: blur(15px); }
    .lp-mobile-actions a { min-height: 43px; border-radius: 10px; display: grid; place-items: center; background: #f0efff; color: var(--lp-primary); font-size: 10px; font-weight: 850; }
    .lp-mobile-actions a:last-child { background: var(--lp-primary); color: #fff; }
    .landing-template-restaurant .lp-hero, .landing-template-luxury .lp-hero { min-height: 720px; }
    .landing-template-restaurant .lp-hero-inner, .landing-template-luxury .lp-hero-inner { min-height: 720px; }
    .landing-preview-bar { top: 72px; padding: 8px 12px; gap: 12px; font-size: 9px; }
}
