:root {
    --navy: #10233f;
    --blue: #1f6feb;
    --sky: #eef6ff;
    --gold: #d7a84f;
    --cream: #f8f5ef;
    --white: #ffffff;
    --ink: #172033;
    --muted: #667085;
    --line: #e6e9ef;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow: 0 18px 45px rgba(16, 35, 63, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--cream);
    color: var(--ink);
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 42px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.logo {
    font-size: 25px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.04em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a,
.nav span {
    text-decoration: none;
    color: var(--navy);
    font-weight: 750;
    font-size: 14px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
}

.nav a:hover {
    background: var(--sky);
}

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 90px 42px;
    background:
        linear-gradient(90deg, rgba(16,35,63,0.92), rgba(16,35,63,0.55)),
        url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1800") center/cover;
    color: white;
}

.hero-content {
    max-width: 830px;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 900;
}

.hero h1 {
    font-size: clamp(46px, 7vw, 84px);
    line-height: 0.95;
    margin: 18px 0;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 700px;
    font-size: 21px;
    line-height: 1.65;
    color: rgba(255,255,255,0.86);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 0;
    background: var(--blue);
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(31,111,235,0.2);
}

.btn:hover {
    transform: translateY(-1px);
}

.secondary-btn {
    background: white;
    color: var(--navy);
}

.danger {
    background: var(--danger);
}

.small {
    padding: 10px 15px;
    font-size: 14px;
}

.full {
    width: 100%;
}

.dashboard,
.property-page {
    padding: 56px 42px;
    max-width: 1480px;
    margin: 0 auto;
}

.dashboard > h1,
.property-main h1,
.search-overlay h1 {
    color: var(--navy);
    letter-spacing: -0.045em;
}

.dashboard > h1 {
    font-size: clamp(38px, 5vw, 62px);
    margin: 10px 0 8px;
}

.muted,
.dashboard > p {
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.card,
.auth-card,
.property-main,
.inquiry-card,
.lead-card,
.stat-card,
.map-filter-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card,
.lead-card,
.stat-card,
.property-main,
.inquiry-card,
.map-filter-card {
    padding: 28px;
}

.card h3,
.lead-card h3 {
    color: var(--navy);
}

.listing-card {
    overflow: hidden;
}

.listing-thumb,
.listing-placeholder {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
    background: var(--sky);
}

.listing-placeholder,
.mini-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.price {
    color: var(--blue);
    font-weight: 950;
    font-size: 22px;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px;
    background:
        linear-gradient(135deg, rgba(248,245,239,0.94), rgba(238,246,255,0.95)),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1800") center/cover;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 38px;
}

.wide {
    max-width: 780px;
}

.auth-card h1 {
    color: var(--navy);
    margin-top: 0;
}

input,
select,
textarea,
.auth-card input,
.stack-form input,
.stack-form select,
.inquiry-card input,
.search-bar input,
.search-bar select,
.status-form select,
.inline-payment-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    border-radius: 14px;
    font-size: 16px;
}

textarea,
.form-textarea {
    min-height: 140px;
    resize: vertical;
}

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

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin: 16px 0;
}

.success {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}

.error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.search-hero {
    padding: 74px 42px 40px;
    background: var(--navy);
    color: white;
}

.search-overlay {
    max-width: 1380px;
    margin: auto;
}

.search-overlay h1 {
    color: white;
    font-size: clamp(42px, 6vw, 70px);
    margin: 14px 0 28px;
}

.search-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 14px;
    background: white;
    padding: 18px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.search-btn {
    margin: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.stat-card {
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 34px;
    color: var(--navy);
}

.stat-card span {
    color: var(--muted);
}

.property-gallery {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 30px;
}

.property-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
}

.property-gallery a:first-child {
    grid-row: span 2;
}

.property-gallery a:first-child img {
    height: 574px;
}

.property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.property-main h1 {
    font-size: clamp(38px, 5vw, 60px);
    margin: 10px 0;
}

.property-main h2 {
    color: var(--blue);
    font-size: 34px;
}

.property-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.property-stats div {
    background: var(--sky);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.property-stats strong {
    display: block;
    font-size: 27px;
    color: var(--navy);
}

.inquiry-card {
    position: sticky;
    top: 96px;
}

.lead-list {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.lead-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.status-pill,
.priority-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.status-paid,
.status-qualified,
.status-completed {
    background: #ecfdf3;
    color: #067647;
}

.status-unpaid,
.status-open,
.status-new {
    background: var(--sky);
    color: var(--blue);
}

.status-partial,
.status-contacted,
.status-in_progress {
    background: #fffaeb;
    color: #b54708;
}

.status-void,
.status-closed {
    background: #f2f4f7;
    color: #475467;
}

.status-late,
.status-lost {
    background: #fef3f2;
    color: #b42318;
}

.priority-urgent,
.priority-high {
    background: #fef3f2;
    color: #b42318;
}

.priority-normal {
    background: var(--sky);
    color: var(--blue);
}

.priority-low {
    background: #f2f4f7;
    color: #475467;
}

.lead-message {
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background: var(--sky);
    color: var(--ink);
    line-height: 1.65;
}

.rental-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.file-label {
    display: block;
    padding: 16px;
    border: 1px dashed #b9c7d8;
    background: var(--sky);
    border-radius: 16px;
    color: var(--muted);
}

.action-row,
.tenant-actions,
.status-form,
.inline-payment-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.public-card,
.public-card-link,
.map-result-card {
    color: var(--ink);
    text-decoration: none;
}

.favorite-card-wrap {
    position: relative;
}

.favorite-form {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
}

.favorite-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.favorite-btn.active {
    background: var(--danger);
    color: white;
}

.map-search-shell {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    height: calc(100vh - 78px);
}

.map-sidebar {
    overflow-y: auto;
    padding: 24px;
    background: var(--cream);
    border-right: 1px solid var(--line);
}

#estateflow-map {
    width: 100%;
    height: 100%;
    min-height: 620px;
}

.map-result-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 14px;
    margin-bottom: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(16,35,63,0.08);
}

.map-result-card img,
.mini-placeholder {
    width: 96px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--sky);
}

.map-popup img {
    width: 210px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 980px) {
    .topbar {
        padding: 16px 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .dashboard,
    .property-page {
        padding-left: 22px;
        padding-right: 22px;
    }

    .property-layout,
    .map-search-shell {
        grid-template-columns: 1fr;
        height: auto;
    }

    .property-gallery {
        grid-template-columns: 1fr;
    }

    .property-gallery a:first-child {
        grid-row: auto;
    }

    .property-gallery a:first-child img,
    .property-gallery img {
        height: 280px;
    }

    .inquiry-card {
        position: static;
    }

    #estateflow-map {
        height: 520px;
    }
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-weight: 750;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.nav-dropdown-toggle:hover {
    background: var(--sky);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    padding-top: 10px;
    right: 0;
    min-width: 220px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(16,35,63,0.18);
    padding: 10px;
    display: none;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--sky);
}


/* Account Security / MFA */
.ef-account-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.ef-account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.ef-account-header h1 {
  margin: 8px 0 10px;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ef-account-header p:not(.eyebrow) {
  max-width: 640px;
  color: #4b5563;
  font-size: 1.05rem;
}

.ef-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.ef-security-card,
.ef-security-help {
  padding: 32px;
  border-radius: 28px;
}

.ef-security-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: #f5efe3;
  font-size: 1.6rem;
}

.ef-security-card h2,
.ef-security-help h3 {
  margin: 0 0 14px;
}

.ef-security-card p,
.ef-security-help p,
.ef-security-help li {
  color: #4b5563;
  line-height: 1.65;
}

.ef-status {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 18px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.ef-status.enabled {
  background: #ecfdf3;
  color: #027a48;
}

.ef-status.disabled {
  background: #fff7ed;
  color: #b45309;
}

.ef-security-card form {
  margin-top: 24px;
}

.ef-security-help ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.btn.secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn.danger {
  background: #b42318;
  color: #fff;
}

@media (max-width: 820px) {
  .ef-account-header {
    display: block;
  }

  .ef-account-header .btn {
    margin-top: 20px;
  }

  .ef-security-grid {
    grid-template-columns: 1fr;
  }
}

/* MFA Verification Page */
.ef-auth-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 72px 20px 96px;
}

.ef-auth-card {
  padding: 36px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.ef-auth-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.ef-auth-card p:not(.eyebrow) {
  color: #4b5563;
  line-height: 1.6;
}

.ef-auth-form {
  margin-top: 26px;
}

.ef-auth-form label {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-weight: 800;
}

.ef-auth-form input {
  width: 100%;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-align: center;
}

.ef-auth-form input:focus {
  outline: none;
  border-color: #1f6feb;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.ef-auth-form .btn {
  width: 100%;
  justify-content: center;
}

.ef-resend-form {
  margin-top: 18px;
  text-align: center;
}

.link-button {
  border: 0;
  background: transparent;
  color: #1f6feb;
  font-weight: 800;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .ef-auth-card {
    padding: 28px 22px;
  }
}

/* AI Property Search */
.ai-search-hero {
    padding: 72px 20px 44px;
    background:
        radial-gradient(circle at top left, rgba(194, 157, 91, 0.18), transparent 34%),
        linear-gradient(135deg, #f8f5ef 0%, #ffffff 62%, #eef3f8 100%);
}

.ai-search-shell {
    max-width: 1060px;
    margin: 0 auto;
    text-align: center;
}

.ai-search-shell h1 {
    margin: 10px auto 14px;
    max-width: 760px;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: #0e2238;
}

.ai-search-shell p {
    max-width: 690px;
    margin: 0 auto 28px;
    color: #5c6675;
    font-size: 1.08rem;
}

.ai-search-form {
    display: flex;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
    padding: 10px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(14, 34, 56, 0.08);
    border-radius: 999px;
    box-shadow: 0 22px 60px rgba(14, 34, 56, 0.13);
    backdrop-filter: blur(18px);
}

.ai-search-form input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 16px 18px;
    font-size: 1rem;
    color: #0e2238;
}

.ai-search-form button {
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    background: #0e2238;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.ai-search-examples {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ai-search-examples a,
.ai-filter-pills span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(14, 34, 56, 0.1);
    color: #0e2238;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.ai-results-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px 80px;
}

.ai-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
}

.ai-results-header h2 {
    margin: 6px 0 0;
    color: #0e2238;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}

.ai-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.property-card {
    overflow: hidden;
}

.property-image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef1f4;
}

.property-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.property-card:hover img {
    transform: scale(1.045);
}

.property-card-body {
    padding: 18px;
}

.property-price {
    color: #b58b42;
    font-size: 1.22rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.property-card h3 {
    margin: 0 0 8px;
    line-height: 1.2;
}

.property-card h3 a {
    color: #0e2238;
    text-decoration: none;
}

.property-location {
    color: #667085;
    margin: 0 0 14px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f5f2ec;
    color: #364152;
    font-size: .84rem;
    font-weight: 700;
}

.empty-state {
    padding: 36px;
    text-align: center;
}

@media (max-width: 900px) {
    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-results-header {
        display: block;
    }

    .ai-filter-pills {
        justify-content: flex-start;
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    .ai-search-form {
        border-radius: 28px;
        flex-direction: column;
    }

    .ai-search-form button {
        width: 100%;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   EstateFlow Mortgage Calculator
========================================================= */

.ef-mortgage-card {
    margin: 32px 0;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(201, 161, 77, 0.14), transparent 32%),
        #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.ef-mortgage-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.ef-mortgage-header h2 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 2vw, 2rem);
    letter-spacing: -0.035em;
}

.ef-mortgage-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(201, 161, 77, 0.14);
    color: #8a651d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ef-mortgage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
}

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

.ef-mortgage-fields label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 800;
}

.ef-mortgage-fields input,
.ef-mortgage-fields select {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    padding: 13px 14px;
    background: #fbfaf7;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ef-mortgage-fields input:focus,
.ef-mortgage-fields select:focus {
    border-color: rgba(201, 161, 77, 0.7);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(201, 161, 77, 0.14);
}

.ef-mortgage-results {
    border-radius: 24px;
    padding: 22px;
    background: #0f172a;
    color: #ffffff;
}

.ef-payment-primary {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ef-payment-primary span,
.ef-payment-breakdown span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    font-weight: 700;
}

.ef-payment-primary strong {
    display: block;
    margin-top: 8px;
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.055em;
}

.ef-payment-breakdown {
    display: grid;
    gap: 12px;
}

.ef-payment-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ef-payment-breakdown strong {
    color: #f6d88a;
    font-size: 0.95rem;
}

.ef-mortgage-note {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .ef-mortgage-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ef-mortgage-card {
        padding: 22px;
        border-radius: 22px;
    }

    .ef-mortgage-header {
        flex-direction: column;
    }

    .ef-mortgage-fields {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   Tour Request Scheduling
================================================== */

.tour-request-card {
    max-width: 1120px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.tour-request-header {
    max-width: 680px;
    margin-bottom: 1.5rem;
}

.tour-request-header h2 {
    margin: 0.25rem 0;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    color: #0f172a;
}

.tour-request-header p {
    color: #64748b;
}

.tour-request-form {
    display: grid;
    gap: 1rem;
}

.tour-request-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
    color: #0f172a;
}

.tour-request-form input,
.tour-request-form textarea,
.inline-status-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    background: #fff;
    font: inherit;
}

.tour-request-form input:focus,
.tour-request-form textarea:focus,
.inline-status-form select:focus {
    outline: none;
    border-color: #b08d57;
    box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.12);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.tour-request-button {
    width: fit-content;
    min-width: 180px;
}

.success-panel {
    max-width: 780px;
    margin: 4rem auto;
    padding: 3rem;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
    text-align: center;
}

.success-panel h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.5rem 0 1rem;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.responsive-table {
    overflow-x: auto;
}

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    vertical-align: top;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pending {
    background: #fff7ed;
    color: #9a3412;
}

.status-confirmed {
    background: #ecfdf5;
    color: #047857;
}

.status-completed {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.inline-status-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-small {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
}

@media (min-width: 760px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tour-request-card,
    .success-panel {
        margin: 1.25rem;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .tour-request-button {
        width: 100%;
    }

    .inline-status-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   EstateFlow Admin Dashboard
========================================================= */

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #f8f5ef;
}

.admin-sidebar {
    background: #071b33;
    color: #fff;
    padding: 28px 22px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.admin-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #d4af37, #f5df8d);
    color: #071b33;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.admin-brand strong {
    display: block;
    font-size: 18px;
}

.admin-brand span {
    display: block;
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    color: rgba(255,255,255,.74);
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 14px;
    transition: .2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,.11);
    color: #fff;
}

.admin-main {
    padding: 34px;
}

.admin-hero {
    background: linear-gradient(135deg, #ffffff, #fbf6e8);
    border: 1px solid rgba(7,27,51,.08);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 20px 60px rgba(7,27,51,.08);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
}

.admin-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(32px, 4vw, 52px);
    color: #071b33;
    letter-spacing: -1.5px;
}

.admin-hero p {
    max-width: 720px;
    color: #5c6470;
    font-size: 17px;
    line-height: 1.6;
}

.eyebrow {
    color: #a37c18;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}

.admin-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid rgba(7,27,51,.08);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(7,27,51,.06);
}

.admin-stat-card span {
    display: block;
    color: #687385;
    font-size: 14px;
    margin-bottom: 10px;
}

.admin-stat-card strong {
    display: block;
    color: #071b33;
    font-size: 34px;
    letter-spacing: -1px;
}

.admin-panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.admin-panel {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(7,27,51,.08);
    box-shadow: 0 14px 40px rgba(7,27,51,.06);
    overflow: hidden;
}

.admin-panel-header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(7,27,51,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-panel-header h2 {
    margin: 0;
    font-size: 20px;
    color: #071b33;
}

.admin-panel-header a {
    color: #a37c18;
    text-decoration: none;
    font-weight: 700;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(7,27,51,.06);
    font-size: 14px;
}

.admin-table th {
    color: #687385;
    font-weight: 700;
}

.admin-table td {
    color: #17253a;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f5ecd2;
    color: #85620f;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.admin-empty {
    padding: 24px;
    color: #687385;
}

@media (max-width: 1000px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stats-grid,
    .admin-panels-grid {
        grid-template-columns: 1fr;
    }

    .admin-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .admin-main {
        padding: 20px;
    }

    .admin-hero {
        padding: 24px;
        border-radius: 22px;
    }

    .admin-stats-grid {
        gap: 14px;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   CLEAN ADMIN LAYOUT
========================================================= */

.admin-body {
    margin: 0;
    background: #f6f3ee;
    font-family: Arial, sans-serif;
}

/* hide ALL old dashboard/public navs */
.admin-body header,
.admin-body nav:not(.admin-menu),
.admin-body .dashboard-nav,
.admin-body .top-nav,
.admin-body .main-nav {
    display: none !important;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: linear-gradient(180deg, #071b33 0%, #0c2647 100%);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.admin-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d4af37, #f3d77a);
    color: #071b33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.admin-logo strong {
    display: block;
    font-size: 20px;
}

.admin-logo span {
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-menu a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255,255,255,.12);
    color: white;
}

.admin-sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-sidebar-bottom a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.admin-sidebar-bottom a:hover {
    background: rgba(255,255,255,.1);
}

.admin-content {
    padding: 34px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1;
    letter-spacing: -2px;
    color: #071b33;
}

.admin-topbar p {
    margin-top: 12px;
    color: #687385;
}

.admin-user {
    background: white;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(7,27,51,.08);
}

.admin-user span {
    display: block;
    font-weight: 800;
    color: #071b33;
}

.admin-user small {
    color: #687385;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.admin-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(7,27,51,.06);
}

.admin-card span {
    display: block;
    color: #687385;
    margin-bottom: 12px;
}

.admin-card strong {
    font-size: 42px;
    color: #071b33;
}

@media (max-width: 1000px) {

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding: 18px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-topbar h1 {
        font-size: 42px;
    }
}


/* Admin Users */
.admin-filter-panel {
    margin-bottom: 24px;
    padding: 22px;
}

.admin-filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-filter-form input,
.admin-filter-form select,
.admin-inline-form select {
    min-height: 44px;
    border: 1px solid rgba(7,27,51,.12);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: #071b33;
}

.admin-filter-form input {
    min-width: 280px;
    flex: 1;
}

.admin-panel {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(7,27,51,.06);
    overflow: hidden;
}

.admin-panel-header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(7,27,51,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel-header h2 {
    margin: 0;
    color: #071b33;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(7,27,51,.06);
}

.admin-table th {
    color: #687385;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-table td small {
    display: block;
    color: #687385;
    margin-top: 4px;
}

.admin-pill.active {
    background: #e8f7ee;
    color: #19713a;
}

.admin-pill.inactive {
    background: #fbe8e8;
    color: #a62c2c;
}


/* =========================================================
   ADMIN SIDEBAR VISIBILITY FIX
========================================================= */

.admin-body .admin-sidebar,
.admin-body .admin-sidebar *,
.admin-body .admin-menu,
.admin-body .admin-menu a,
.admin-body .admin-sidebar-bottom,
.admin-body .admin-sidebar-bottom a {
    display: initial;
    visibility: visible;
    opacity: 1;
}

.admin-body .admin-sidebar {
    display: flex !important;
}

.admin-body .admin-menu,
.admin-body .admin-sidebar-bottom {
    display: flex !important;
    flex-direction: column;
}

.admin-body .admin-menu a,
.admin-body .admin-sidebar-bottom a {
    display: block !important;
}


.admin-settings-form {
    padding: 24px;
    display: grid;
    gap: 18px;
    max-width: 720px;
}

.admin-settings-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
    color: #071b33;
}

.admin-settings-form input,
.admin-settings-form select {
    min-height: 46px;
    border: 1px solid rgba(7,27,51,.14);
    border-radius: 14px;
    padding: 0 14px;
    font: inherit;
}

.admin-checkbox-row {
    display: grid;
    gap: 12px;
}

.admin-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-checkbox-row input {
    min-height: auto;
}

.admin-alert {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 800;
}

.admin-alert.success {
    background: #e8f7ee;
    color: #19713a;
}

.admin-alert.error {
    background: #fbe8e8;
    color: #a62c2c;
}


/* =========================================================
   ADMIN SETTINGS PAGE FIX
========================================================= */

.admin-settings-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
}

.admin-settings-form label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    font-weight: 700;
    color: #071b33;
    font-size: 15px;
}

.admin-settings-form label span {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.admin-settings-form input[type="text"],
.admin-settings-form input[type="email"],
.admin-settings-form select {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(7,27,51,.12);
    border-radius: 16px;
    background: #fff;
    padding: 0 18px;
    font-size: 16px;
    color: #071b33;
    box-sizing: border-box;
}

.admin-settings-form select {
    cursor: pointer;
}

.admin-checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

.admin-checkbox-row label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.admin-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.admin-settings-form .btn-primary {
    align-self: flex-start;
    min-width: 180px;
    min-height: 50px;
    border: none;
    border-radius: 14px;
    background: #071b33;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    padding: 0 24px;
}

.admin-settings-form .btn-primary:hover {
    opacity: .92;
}


.admin-danger-button {
    align-self: flex-start;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: #a62c2c;
    color: #fff;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
}

.admin-danger-button:hover {
    opacity: .9;
}


/* =========================================================
   LISTING PHOTO THUMBNAILS
========================================================= */

.listing-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.listing-photo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f5f8;
    border: 1px solid rgba(7,27,51,.08);
    aspect-ratio: 1 / 1;
}

.listing-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-photo-actions {
    position: absolute;
    inset: auto 10px 10px 10px;
    display: flex;
    justify-content: center;
}

.listing-photo-delete {
    background: rgba(166,44,44,.92);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    transition: .2s ease;
}

.listing-photo-delete:hover {
    opacity: .9;
}


/* =========================================================
   LISTING PHOTO GALLERY
========================================================= */

.listing-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.listing-photo-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #f3f5f8;
    border: 1px solid rgba(7,27,51,.08);
}

.listing-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-photo-overlay {
    position: absolute;
    inset: auto 10px 10px 10px;
    display: flex;
    gap: 8px;
}

.listing-photo-btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    background: rgba(7,27,51,.88);
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.listing-photo-btn.danger {
    background: rgba(166,44,44,.92);
}


/* =========================================================
   FORCE SMALL LISTING EDIT IMAGES
========================================================= */

.listing-edit-page img,
.edit-listing img,
form[action="/listings/update"] img,
img[src*="listing"],
img[src*="uploads"] {
    max-width: 180px !important;
    width: 180px !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    display: inline-block !important;
    margin: 8px !important;
}


/* Owner Financial Dashboard */
.ef-owner-financial-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 18px 64px;
}

.ef-owner-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(135deg, #071d33, #123c5f);
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 22px 60px rgba(7, 29, 51, 0.22);
    margin-bottom: 24px;
}

.ef-owner-hero h1 {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
}

.ef-owner-hero p {
    max-width: 720px;
    color: rgba(255,255,255,0.82);
}

.ef-owner-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ef-eyebrow {
    margin: 0;
    color: #b9934b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    font-weight: 800;
}

.ef-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.ef-btn-primary {
    background: #c7a35a;
    color: #071d33;
}

.ef-btn-light {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.ef-financial-kpis {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.ef-kpi-card {
    background: #fff;
    border: 1px solid rgba(7, 29, 51, 0.08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 34px rgba(7, 29, 51, 0.07);
}

.ef-kpi-card span,
.ef-kpi-card small {
    display: block;
    color: #6b7280;
    font-weight: 700;
}

.ef-kpi-card strong {
    display: block;
    margin: 8px 0;
    color: #071d33;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.ef-kpi-warning {
    border-color: rgba(185, 147, 75, 0.35);
}

.ef-kpi-net {
    background: #071d33;
}

.ef-kpi-net strong,
.ef-kpi-net span,
.ef-kpi-net small {
    color: #fff;
}

.ef-dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
}

.ef-dashboard-card {
    background: #fff;
    border: 1px solid rgba(7, 29, 51, 0.08);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(7, 29, 51, 0.07);
}

.ef-wide-card {
    grid-column: span 2;
}

.ef-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.ef-card-header h2 {
    margin: 4px 0 0;
    color: #071d33;
    letter-spacing: -0.03em;
}

.ef-responsive-table {
    overflow-x: auto;
}

.ef-responsive-table table {
    width: 100%;
    border-collapse: collapse;
}

.ef-responsive-table th {
    text-align: left;
    font-size: 0.78rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px;
    border-bottom: 1px solid rgba(7, 29, 51, 0.08);
}

.ef-responsive-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(7, 29, 51, 0.06);
    color: #1f2937;
}

.ef-responsive-table td small {
    display: block;
    color: #6b7280;
    margin-top: 3px;
}

.ef-cashflow-list,
.ef-mini-list {
    display: grid;
    gap: 14px;
}

.ef-cashflow-row {
    border: 1px solid rgba(7, 29, 51, 0.08);
    border-radius: 18px;
    padding: 14px;
}

.ef-cashflow-label,
.ef-cashflow-values {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 0.88rem;
}

.ef-cashflow-label strong {
    color: #071d33;
}

.ef-cashflow-bars {
    margin: 10px 0;
    display: grid;
    gap: 6px;
}

.ef-bar {
    height: 8px;
    border-radius: 999px;
}

.ef-income {
    background: #123c5f;
}

.ef-expense {
    background: #c7a35a;
}

.ef-mini-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(7, 29, 51, 0.08);
    border-radius: 18px;
}

.ef-mini-item small,
.ef-mini-money span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.86rem;
}

.ef-mini-money {
    text-align: right;
    white-space: nowrap;
}

.ef-status-pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: #eef2f7;
    color: #334155;
}

.ef-status-paid {
    background: rgba(18, 60, 95, 0.12);
    color: #123c5f;
}

.ef-status-open,
.ef-status-unpaid,
.ef-status-pending {
    background: rgba(199, 163, 90, 0.16);
    color: #8a641d;
}

@media (max-width: 1100px) {
    .ef-financial-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .ef-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .ef-wide-card {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .ef-owner-hero {
        flex-direction: column;
        padding: 26px;
    }

    .ef-financial-kpis {
        grid-template-columns: 1fr;
    }

    .ef-mini-item,
    .ef-cashflow-label,
    .ef-cashflow-values {
        flex-direction: column;
    }

    .ef-mini-money {
        text-align: left;
    }
}
