/* ─── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --color-bg: #f7f8fa;
    --color-surface: #ffffff;
    --color-border: #e2e4e9;
    --color-text: #1a1d23;
    --color-muted: #6b7280;
    --color-accent: #1473e6;
    --color-accent-hover: #0d5fc9;
    --color-green: #14a800;
    --color-danger: #dc3545;
    --color-success-bg: #d4edda;
    --color-success-text: #155724;
    --color-error-bg: #f8d7da;
    --color-error-text: #721c24;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--color-bg); color: var(--color-text); line-height: 1.6; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

/* ─── Site Nav ─────────────────────────────────────────────────────────────── */
.site-nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 56px;
}
.site-nav-brand { font-weight: 700; font-size: 1rem; color: var(--color-text); }
.site-nav-brand:hover { color: var(--color-accent); }
.site-nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link-item { font-size: .875rem; color: var(--color-muted); font-weight: 500; }
.nav-link-item:hover { color: var(--color-text); }
.btn-link-plain { background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; font-size: inherit; }

/* ─── Alerts ───────────────────────────────────────────────────────────────── */
.alert-banner { padding: 12px 24px; font-size: .875rem; font-weight: 500; text-align: center; }
.alert-success-banner { background: var(--color-success-bg); color: var(--color-success-text); }
.alert-error-banner { background: var(--color-error-bg); color: var(--color-error-text); }

/* ─── Main container ───────────────────────────────────────────────────────── */
.site-main { min-height: calc(100vh - 56px); }

/* ─── Landing Page ─────────────────────────────────────────────────────────── */
.landing-page { min-height: calc(100vh - 56px); display: flex; flex-direction: column; }
.landing-hero {
    text-align: center; padding: 80px 24px 48px;
    background: linear-gradient(135deg, #0f1923 0%, #1a2a3f 100%);
    color: white;
}
.landing-name { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -1px; }
.landing-tagline { font-size: 1.1rem; color: rgba(255,255,255,.65); margin: 0; }

.landing-split {
    display: grid; grid-template-columns: 1fr 1fr;
    flex: 1; min-height: 360px;
}
@media (max-width: 700px) { .landing-split { grid-template-columns: 1fr; } }

.landing-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 56px 40px; text-align: center; text-decoration: none;
    transition: background .2s;
}
.landing-card-architect { background: var(--color-surface); color: var(--color-text); border-right: 1px solid var(--color-border); }
.landing-card-architect:hover { background: #f0f4ff; color: var(--color-text); }
.landing-card-photo { background: #111827; color: #e5e7eb; }
.landing-card-photo:hover { background: #1a2434; color: #e5e7eb; }
.landing-card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.landing-card-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 12px; }
.landing-card-brief { font-size: .95rem; line-height: 1.7; max-width: 320px; opacity: .8; margin: 0 0 24px; }
.landing-card-cta { font-size: .9rem; font-weight: 600; color: var(--color-accent); }
.landing-card-photo .landing-card-cta { color: #93c5fd; }

/* ─── Architect Profile Page (Upwork-styled) ───────────────────────────── */
.profile-page {
    max-width: 1100px; margin: 0 auto; padding: 24px 16px 80px;
    font-family: var(--font-family-base), "neue-montreal-fallback", Arial, sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #001e00;
}
.profile-page * { letter-spacing: -0.01em; }

.profile-card {
    background: var(--color-surface);
    border: 1px solid #d5e0d5;
    border-radius: 14px;
    overflow: hidden;
}
.profile-card-section { padding: 24px 28px; border-bottom: 1px solid #e4ebe4; }
.profile-card-section:last-child { border-bottom: none; }

/* ─── Header ──────────────────────────────────────────────────────────── */
.profile-header-top {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 20px; align-items: start;
}
@media (max-width: 768px) {
    .profile-header-top { grid-template-columns: 1fr; }
}
.profile-avatar-wrap { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.profile-avatar, .profile-avatar-placeholder {
    width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block;
}
.profile-avatar { border: 1px solid #e4ebe4; }
.profile-avatar-placeholder {
    background: linear-gradient(135deg, #14a800, #0f7156);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: white;
}
.profile-presence {
    position: absolute; right: 4px; bottom: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #14a800; border: 2px solid #fff;
}

.profile-identity { padding-top: 4px; min-width: 0; }
.profile-name {
    font-size: 1.75rem; font-weight: 700; margin: 0 0 6px;
    color: #001e00; line-height: 1.2;
}
.profile-location-row {
    display: inline-flex; align-items: center; gap: 6px;
    color: #5e6d55; font-size: .9rem;
}
.profile-location-row .icon-sm { width: 16px; height: 16px; color: #001e00; }

.profile-contact-col { min-width: 220px; max-width: 280px; text-align: right; }
.profile-contact-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.contact-line {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .85rem; color: #001e00; text-decoration: none;
}
.contact-line:hover { color: #14a800; text-decoration: underline; }
.contact-icon { width: 18px; text-align: center; color: #5e6d55; }
.contact-socials { display: flex; align-items: center; gap: 8px; }
.social-link { font-size: .85rem; font-weight: 600; color: #14a800; }
.social-sep { color: #c4cec0; }

/* ─── Badges row ──────────────────────────────────────────────────────── */
.profile-badges-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
    margin-top: 20px;
}

/* Job Success badge */
.badge-jss { display: inline-flex; align-items: center; gap: 8px; color: #001e00; }
.badge-jss-circle {
    position: relative; display: inline-block;
    width: 40px; height: 40px; color: #001e00;
}
.jss-circle-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jss-circle-bg { fill: none; stroke: #e4ebe4; stroke-width: 2; }
.jss-circle-fg { fill: none; stroke: #14a800; stroke-width: 2; stroke-linecap: round; }
.jss-inner-icon {
    position: absolute; top: 50%; left: 50%;
    width: 18px; height: 18px;
    transform: translate(-50%, -50%);
    color: #001e00;
}
.badge-jss-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.badge-jss-score { font-size: .95rem; font-weight: 700; color: #001e00; }
.badge-jss-label { font-size: .78rem; color: #5e6d55; }

/* Expert-Vetted */
.badge-vetted {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .85rem; font-weight: 600; color: #001e00;
}
.badge-vetted-icon { width: 24px; height: 24px; flex-shrink: 0; }

/* Upwork top rated */
.badge-top-rated {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .85rem; font-weight: 600; color: #001e00;
}
.badge-top-rated-icon {
    position: relative; display: inline-block;
    width: 28px; height: 28px; color: #001e00;
}
.badge-top-rated-icon .jss-circle-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.badge-top-rated-icon .jss-inner-icon {
    position: absolute; top: 50%; left: 50%;
    width: 14px; height: 14px;
    transform: translate(-50%, -50%);
}

/* ─── Body: 2-col sidebar + main ─────────────────────────────────────── */
.profile-body {
    display: grid; grid-template-columns: minmax(220px, 1fr) 2fr;
    padding: 0;
    border-bottom: 1px solid #e4ebe4;
}
@media (max-width: 900px) { .profile-body { grid-template-columns: 1fr; } }

.profile-sidebar {
    padding: 28px 28px; border-right: 1px solid #e4ebe4;
    display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 900px) { .profile-sidebar { border-right: none; border-bottom: 1px solid #e4ebe4; } }

.sidebar-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.sidebar-stat { display: flex; flex-direction: column; gap: 2px; min-width: 60px; }
.sidebar-stat-value { font-size: 1.05rem; font-weight: 700; color: #001e00; line-height: 1.2; }
.sidebar-stat-label { font-size: .75rem; color: #5e6d55; line-height: 1.3; }

.sidebar-block { display: flex; flex-direction: column; gap: 4px; }
.sidebar-title { font-size: 1rem; font-weight: 600; color: #001e00; margin: 0 0 8px; }
.sidebar-body { font-size: .9rem; color: #001e00; margin: 0; line-height: 1.5; }
.sidebar-note { font-size: .85rem; color: #5e6d55; margin: 0; line-height: 1.5; }
.sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sidebar-list li { font-size: .9rem; color: #001e00; }
.sidebar-list strong { font-weight: 600; }
.muted { color: #5e6d55; }
.sidebar-list a { color: #001e00; text-decoration: underline; }
.sidebar-list a:hover { color: #14a800; }
.sidebar-pill-new {
    display: inline-block; font-size: .65rem; font-weight: 700;
    background: #fff7d6; color: #876d00; border: 1px solid #efd96b;
    padding: 1px 6px; border-radius: 10px; margin-left: 6px; vertical-align: middle;
    text-transform: uppercase; letter-spacing: .04em;
}

.platform-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.platform-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    color: #001e00; text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s;
}
.platform-link:hover {
    background: #fafbfa; border-color: #e4ebe4; color: #001e00; text-decoration: none;
}
.platform-icon {
    width: 28px; height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.platform-icon svg { width: 100%; height: 100%; display: block; }
.platform-name { font-size: .92rem; font-weight: 600; color: #001e00; }

.verified-tag {
    display: inline-flex; align-items: center; gap: 4px;
    color: #001e00; font-size: .9rem;
}
.verified-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: #14a800; color: #fff;
    font-size: .65rem; font-weight: 700;
}

/* Main column */
.profile-main { padding: 28px 28px; }
.profile-main-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 16px;
}
.profile-tagline {
    font-size: 1.15rem; font-weight: 700; margin: 0; color: #001e00;
    line-height: 1.4; flex: 1;
}
.profile-rate {
    font-size: 1.05rem; font-weight: 700; color: #001e00;
    white-space: nowrap; flex-shrink: 0;
}

.overview-body p { margin: 0 0 12px; color: #001e00; line-height: 1.6; font-size: .92rem; white-space: pre-line; }
.overview-list { margin: 0 0 16px 0; padding-left: 22px; }
.overview-list li { margin-bottom: 4px; color: #001e00; line-height: 1.6; font-size: .92rem; }
.overview-list-2col { columns: 2; column-gap: 24px; }
@media (max-width: 600px) { .overview-list-2col { columns: 1; } }

/* ─── Consult card ──────────────────────────────────────────────────── */
.consult-card {
    display: flex; align-items: center; gap: 16px;
    margin: 24px 0;
    padding: 20px;
    background: #fafbfa;
    border: 1px solid #e4ebe4;
    border-radius: 12px;
}
.consult-card-body { flex: 1; min-width: 0; }
.consult-card-eyebrow { font-size: .8rem; color: #5e6d55; margin: 0 0 4px; font-weight: 600; }
.consult-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; color: #001e00; }
.consult-card-meta { font-size: .8rem; color: #5e6d55; margin: 0 0 10px; }
.consult-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-soft {
    background: #f1f4f1; color: #001e00; border: 1px solid #d5e0d5;
    padding: 3px 10px; border-radius: 20px; font-size: .78rem;
}
.btn-consult-green {
    flex-shrink: 0;
    background: #14a800; color: #fff;
    padding: 10px 18px; border-radius: 999px;
    font-weight: 600; font-size: .88rem;
    border: 1px solid #14a800;
    text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.btn-consult-green:hover { background: #108a00; border-color: #108a00; color: #fff; }

/* ─── Sub-sections inside main ──────────────────────────────────────── */
.profile-subsection { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e4ebe4; }
.section-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 16px; color: #001e00; }
.subsection-title { font-size: 1rem; font-weight: 600; color: #001e00; margin: 16px 0 12px; }

.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
    background: #f1f4f1; color: #001e00;
    border: 1px solid #d5e0d5;
    padding: 6px 14px; border-radius: 20px; font-size: .85rem; font-weight: 400;
}

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.portfolio-card { border: 1px solid #e4ebe4; border-radius: 8px; overflow: hidden; background: var(--color-surface); }
.portfolio-card-body { padding: 14px 16px; }
.portfolio-card-title { font-size: .95rem; font-weight: 700; margin: 0 0 6px; color: #001e00; }
.portfolio-card-desc { font-size: .85rem; color: #5e6d55; margin: 0; line-height: 1.5; }

/* ─── Work history ────────────────────────────────────────────────── */
.work-history-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 4px; flex-wrap: wrap; gap: 12px;
}
.work-history-count { font-size: .85rem; color: #5e6d55; font-weight: 500; }

.soft-skills-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.soft-skill-chip {
    background: #f1f4f1; color: #001e00; border: 1px solid #d5e0d5;
    padding: 5px 12px; border-radius: 20px; font-size: .82rem;
}

.work-history-list { display: flex; flex-direction: column; }
.work-item { padding: 18px 0; border-bottom: 1px solid #e4ebe4; }
.work-item:last-child { border-bottom: none; }
.work-item-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 6px;
}
.work-item-title { font-size: 1rem; font-weight: 600; margin: 0; color: #001e00; line-height: 1.4; }
.work-item-rating { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rating-stars { color: #f5b400; font-size: .95rem; letter-spacing: 1px; line-height: 1; }
.rating-score { font-size: .85rem; font-weight: 700; color: #001e00; }

.work-item-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    font-size: .82rem; color: #5e6d55; margin-bottom: 10px;
}
.work-meta-sep { color: #c4cec0; }
.work-earnings { color: #14a800; font-weight: 700; }

.work-feedback {
    margin: 8px 0 12px; padding: 0;
    font-size: .9rem; color: #001e00; line-height: 1.55; font-style: italic;
    border: none; background: none;
}
.work-no-feedback { font-size: .82rem; color: #5e6d55; margin: 8px 0 10px; font-style: italic; }
.work-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ─── Pagination ──────────────────────────────────────────────────── */
.work-pagination {
    display: flex; align-items: center; gap: 6px; justify-content: flex-end;
    margin-top: 24px; flex-wrap: wrap;
}
.page-btn {
    min-width: 32px; height: 32px; padding: 0 10px;
    background: #fff; border: 1px solid #e4ebe4;
    border-radius: 999px; font-size: .85rem; font-weight: 500; color: #001e00;
    cursor: pointer; font-family: inherit;
}
.page-btn:disabled { color: #c4cec0; cursor: not-allowed; }
.page-btn.is-active { background: #001e00; color: #fff; border-color: #001e00; }
.page-info { font-size: .8rem; color: #5e6d55; margin-left: 12px; }

/* ─── Earlier employment ──────────────────────────────────────────── */
.employment-list { display: flex; flex-direction: column; gap: 16px; }
.employment-item { padding: 16px 0; border-bottom: 1px solid #e4ebe4; }
.employment-item:last-child { border-bottom: none; }
.employment-meta { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; gap: 16px; }
.employment-role { font-size: .95rem; font-weight: 600; margin: 0 0 2px; color: #001e00; }
.employment-company { font-size: .85rem; color: #5e6d55; margin: 0; }
.employment-period { font-size: .8rem; color: #5e6d55; white-space: nowrap; flex-shrink: 0; }
.employment-desc { font-size: .88rem; color: #001e00; margin: 6px 0 0; line-height: 1.55; }
.employment-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.skill-chip-sm {
    background: #f1f4f1; color: #001e00;
    border: 1px solid #d5e0d5;
    padding: 3px 10px; border-radius: 20px; font-size: .78rem;
}

/* ─── Work History (Upwork section) ───────────────────────────────────── */
.work-history-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; flex-wrap: wrap; gap: 12px; }
.work-history-count { font-size: .85rem; color: var(--color-muted); font-weight: 500; }
.subsection-title { font-size: .95rem; font-weight: 700; color: var(--color-text); margin: 18px 0 12px; }
.soft-skills-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.soft-skill-chip {
    background: #ecfdf5; color: #064e3b; border: 1px solid #b7ebc8;
    padding: 5px 12px; border-radius: 20px; font-size: .82rem; font-weight: 500;
}

.work-history-list { display: flex; flex-direction: column; gap: 16px; }
.work-item {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 20px 22px;
}
.work-item-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 6px;
}
.work-item-title { font-size: 1rem; font-weight: 700; margin: 0; color: var(--color-text); line-height: 1.4; }
.work-item-rating { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rating-stars { color: #f5b400; font-size: .95rem; letter-spacing: 1px; line-height: 1; }
.rating-score { font-size: .85rem; font-weight: 700; color: var(--color-text); }

.work-item-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    font-size: .82rem; color: var(--color-muted); margin-bottom: 10px;
}
.work-meta-sep { color: var(--color-border); }
.work-earnings { color: var(--color-green); font-weight: 700; }

.work-feedback {
    margin: 8px 0 12px; padding: 10px 14px;
    border-left: 3px solid var(--color-accent);
    background: #f8fafe; border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .9rem; color: var(--color-text); line-height: 1.55; font-style: italic;
}
.work-no-feedback { font-size: .8rem; color: var(--color-muted); margin: 8px 0 10px; font-style: italic; }
.work-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ─── Pagination (work history) ───────────────────────────────────────── */
.work-pagination { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
    min-width: 36px; height: 36px; padding: 0 10px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); font-size: .9rem; font-weight: 600; color: var(--color-text);
    cursor: pointer; font-family: inherit;
}
.page-btn:disabled { color: #c0c4cc; cursor: not-allowed; }
.page-btn.is-active { background: var(--color-accent); color: white; border-color: var(--color-accent); }
.page-info { font-size: .8rem; color: var(--color-muted); margin-left: 12px; }

/* ─── Auth Pages ───────────────────────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.auth-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.auth-subtitle { font-size: .875rem; color: var(--color-muted); margin: 0 0 24px; }

/* ─── Forms ────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--color-text); }
.form-input {
    padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius);
    font-size: .95rem; font-family: inherit; color: var(--color-text); background: var(--color-surface);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.form-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(20,115,230,.12); }
.form-input-sm { max-width: 120px; }
.form-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); font-family: inherit; font-size: .95rem; color: var(--color-text); resize: vertical; }
.form-textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(20,115,230,.12); }
.form-error { font-size: .8rem; color: var(--color-danger); }
.form-error-summary { background: var(--color-error-bg); color: var(--color-error-text); padding: 12px; border-radius: var(--radius); margin-bottom: 20px; font-size: .875rem; }
.form-hint { font-size: .8rem; color: var(--color-muted); }
.form-check-group { margin-bottom: 20px; }
.form-check-label { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.form-check-input { width: 16px; height: 16px; cursor: pointer; }

.btn-primary-full {
    width: 100%; padding: 12px; background: var(--color-accent); color: white;
    border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: background .2s;
}
.btn-primary-full:hover { background: var(--color-accent-hover); }

/* ─── Admin Pages ──────────────────────────────────────────────────────────── */
.admin-page { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-breadcrumb { font-size: .8rem; color: var(--color-muted); margin-bottom: 12px; }
.admin-breadcrumb a { color: var(--color-muted); }
.admin-breadcrumb a:hover { color: var(--color-text); }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.admin-page-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 24px; }
.admin-page-header .admin-page-title { margin: 0; }
.admin-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 16px; }

.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.admin-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 24px 20px; background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); text-decoration: none; color: var(--color-text);
    transition: box-shadow .2s, border-color .2s;
}
.admin-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); color: var(--color-text); }
.admin-card-icon { font-size: 1.5rem; }
.admin-card h3 { font-size: .95rem; font-weight: 700; margin: 0; }
.admin-card p { font-size: .8rem; color: var(--color-muted); margin: 0; }

.admin-preview-links { display: flex; align-items: center; gap: 12px; font-size: .875rem; flex-wrap: wrap; }
.admin-preview-label { color: var(--color-muted); font-weight: 600; }
.admin-preview-link { color: var(--color-accent); }

.admin-form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; }
.form-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--color-border); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.form-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.form-section-desc { font-size: .875rem; color: var(--color-muted); margin: 0 0 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.align-end { justify-content: flex-end; align-items: flex-end; }

.btn-admin-primary {
    padding: 10px 24px; background: var(--color-accent); color: white;
    border: none; border-radius: var(--radius); font-size: .9rem; font-weight: 600;
    cursor: pointer; font-family: inherit; text-decoration: none; transition: background .2s; display: inline-block;
}
.btn-admin-primary:hover { background: var(--color-accent-hover); color: white; }
.btn-admin-secondary {
    padding: 10px 24px; background: var(--color-surface); color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: var(--radius); font-size: .9rem; font-weight: 600;
    cursor: pointer; font-family: inherit; text-decoration: none; transition: border-color .2s; display: inline-block;
}
.btn-admin-secondary:hover { border-color: var(--color-text); color: var(--color-text); }

/* Radio options */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
    border: 2px solid var(--color-border); border-radius: var(--radius); cursor: pointer;
    transition: border-color .15s;
}
.radio-option:hover { border-color: var(--color-accent); }
.radio-option-selected { border-color: var(--color-accent); background: #f0f6ff; }
.radio-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.radio-option-content { display: flex; flex-direction: column; gap: 2px; }
.radio-option-content strong { font-size: .9rem; }
.radio-option-content span { font-size: .8rem; color: var(--color-muted); }

/* Tables */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--color-border); font-weight: 700; color: var(--color-muted); }
.admin-table td { padding: 12px 12px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.table-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-table-action {
    padding: 4px 10px; background: #f0f4ff; color: var(--color-accent);
    border: 1px solid #c7d7f5; border-radius: var(--radius); font-size: .8rem; font-weight: 600;
    cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn-table-action:hover { background: #e0ecff; color: var(--color-accent); }
.btn-table-danger {
    padding: 4px 10px; background: #fff0f0; color: var(--color-danger);
    border: 1px solid #f5c7c7; border-radius: var(--radius); font-size: .8rem; font-weight: 600;
    cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn-table-danger:hover { background: #ffe0e0; }

.empty-state { padding: 48px; text-align: center; color: var(--color-muted); border: 2px dashed var(--color-border); border-radius: var(--radius); }

/* Admin photo upload */
.admin-upload-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.upload-form { display: block; }
.upload-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.upload-row .form-group { flex: 1; min-width: 160px; margin-bottom: 0; }

/* Admin photos grid */
.admin-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.admin-photo-card { border: 2px solid var(--color-border); border-radius: var(--radius); overflow: hidden; position: relative; background: var(--color-surface); }
.admin-photo-cover { border-color: var(--color-green); }
.admin-photo-thumb { width: 100%; height: 140px; object-fit: cover; display: block; }
.photo-cover-badge { position: absolute; top: 8px; right: 8px; background: var(--color-green); color: white; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.admin-photo-meta { padding: 8px; }
.photo-meta-title { font-size: .8rem; font-weight: 600; margin: 0 0 6px; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-photo-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Admin architect profile preview */
.admin-profile-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 2px solid var(--color-border); }

/* Employment / Portfolio editors */
.employment-editor-item, .portfolio-editor-item {
    padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 12px;
}

/* ─── Utility ──────────────────────────────────────────────────────────────── */
.d-inline { display: inline; }
.flex-grow-1 { flex: 1; }
.text-muted { color: var(--color-muted); }
