/* ============================================================
   CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --brand:        #FD4F06;
  --brand-hover:  #d40020;
  --brand-light:  #fff0f2;
  --brand-subtle: rgba(254,0,38,.08);

  /* Neutrals */
  --body-bg:      #f4f6fb;
  --surface:      #ffffff;
  --surface-2:    #f8f9fc;
  --border:       #e8ecf4;
  --border-light: #f0f2f8;
  --text-primary: #1a1d2e;
  --text-secondary:#5a6072;
  --text-muted:   #8a94a8;

  /* Status */
  --success:  #198754;
  --warning:  #fd7e14;
  --danger:   #dc3545;
  --info:     #0dcaf0;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;

  /* Radius */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill:100px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-brand: 0 4px 20px rgba(254,0,38,.25);

  /* Layout */
  --sidebar-width:     250px;
  --topnav-height:     64px;
  --content-padding:   32px;
}

@font-face {
    font-family: 'AnotherGroteskW05';
    src: url('../fonts/another-grotesk/AnotherGroteskW05-Medium.eot');
    src: url('../fonts/another-grotesk/AnotherGroteskW05-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Medium.woff2') format('woff2'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Medium.woff') format('woff'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Medium.ttf') format('truetype'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Medium.svg#AnotherGroteskW05-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AnotherGroteskW05';
    src: url('../fonts/another-grotesk/AnotherGroteskW05-Light.eot');
    src: url('../fonts/another-grotesk/AnotherGroteskW05-Light.eot?#iefix') format('embedded-opentype'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Light.woff2') format('woff2'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Light.woff') format('woff'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Light.ttf') format('truetype'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Light.svg#AnotherGroteskW05-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AnotherGroteskW05';
    src: url('../fonts/another-grotesk/AnotherGroteskW05-Bold.eot');
    src: url('../fonts/another-grotesk/AnotherGroteskW05-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Bold.woff2') format('woff2'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Bold.woff') format('woff'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Bold.ttf') format('truetype'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Bold.svg#AnotherGroteskW05-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AnotherGroteskW05';
    src: url('../fonts/another-grotesk/AnotherGroteskW05-Regular.eot');
    src: url('../fonts/another-grotesk/AnotherGroteskW05-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Regular.woff2') format('woff2'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Regular.woff') format('woff'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Regular.ttf') format('truetype'),
        url('../fonts/another-grotesk/AnotherGroteskW05-Regular.svg#AnotherGroteskW05-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'AnotherGroteskW05',-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-weight: 500; color: var(--text-primary); line-height: 1.3; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
.text-brand { color: var(--brand) !important; }
.bg-brand  { background-color: var(--brand) !important; }
.border-brand { border-color: var(--brand) !important; }
.x-small  { font-size: .75rem; }
.fs-08    { font-size: .8rem; }
.font-monospace { font-family: 'SF Mono', 'Fira Mono', monospace; font-size: .85em; }
.cursor-pointer { cursor: pointer; }
.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

/* ============================================================
   BOOTSTRAP 5 OVERRIDES
   ============================================================ */
.btn { font-weight: 500; border-radius: var(--radius-sm); transition: all .18s ease; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; box-shadow: var(--shadow-brand); }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-ghost-nav { background: transparent; border: 1.5px solid rgba(0,0,0,.4); color: #000; }
.btn-ghost-nav:hover { background: rgba(255,255,255,.12); color: #000; border: 1.5px solid rgba(0,0,0,.2); }
.btn-xs { padding: .2rem .55rem; font-size: .78rem; border-radius: 5px; }
.btn-xs i { font-size: .82rem; }

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s;
  padding: .5rem .75rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(254,0,38,.12);
  outline: none;
}
.input-group-text { background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text-secondary); }
.form-label { font-weight: 500; font-size: .875rem; color: var(--text-secondary); margin-bottom: .35rem; }
.form-text { font-size: .8rem; color: var(--text-muted); }
.form-section-title { font-size: 1rem; font-weight: 500; color: var(--text-secondary); border-bottom: 2px solid var(--border); padding-bottom: .5rem; margin-bottom: 1.25rem; }

.badge { font-weight: 500; border-radius: var(--radius-pill); padding: .28em .65em; font-size: .75em; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-dark    { background: #1f2937; color: #f9fafb; }

.progress { border-radius: var(--radius-pill); background: var(--border-light); }
.progress-bar { border-radius: var(--radius-pill); transition: width .4s ease; }
.bg-brand { background-color: var(--brand) !important; }

.modal-content { border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { padding: 1.25rem 1.5rem; }
.alert { border-radius: var(--radius); border: none; }
.alert-info    { background: #e0f7fa; color: #0e7490; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.accordion-button { font-weight: 500; }
.accordion-button:not(.collapsed) { color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

.nav-tabs .nav-link { color: var(--text-secondary); font-weight: 500; border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: .6rem .6rem; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
.nav-tabs .nav-link:hover:not(.active) { color: var(--text-primary); background: var(--brand-subtle); }
.nav-pills .nav-link { font-weight: 500; border-radius: var(--radius-sm); color: var(--text-secondary); }
.nav-pills .nav-link.active { background: var(--brand); color: #fff; }

.table { color: var(--text-primary); }
.portal-table th { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); background: var(--surface-2); border-bottom: 2px solid var(--border); }
.portal-table td { vertical-align: middle; border-bottom: 1px solid var(--border-light); padding: .75rem 1rem; }
.portal-table tbody tr:hover { background: var(--brand-subtle); }
.pagination .page-link { border: 1.5px solid var(--border); color: var(--text-secondary); border-radius: var(--radius-sm); margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); }

.dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; }
.dropdown-item { border-radius: var(--radius-sm); padding: .45rem .85rem; font-size: .9rem; }
.dropdown-item:hover { background: var(--brand-subtle); color: var(--brand); }
.dropdown-header { font-size: .8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   PUBLIC SITE
   ============================================================ */

/* Nav */
.public-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: .85rem 0;
  transition: all .25s;
}
.public-nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.brand-logo { font-size: 1.5rem; font-weight: 500; color: var(--text-primary); }
.navbar-logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}
.public-nav .nav-link { font-weight: 500; color: var(--text-secondary); padding: .4rem .75rem; border-radius: var(--radius-sm); transition: all .15s; }
.public-nav .nav-link:hover { color: var(--brand); background: var(--brand-subtle); }
.public-nav .nav-link.active { color: var(--brand); background: var(--brand-subtle); }

/* Hero */
.hero-section { background: linear-gradient(135deg, #0f0c29 0%, #1a1040 40%, #24074a 100%); color: #fff; padding: 5rem 0; overflow: hidden; position: relative; }
.hero-badge .badge-pill { background: rgba(254,0,38,.2); color: #ff6680; border: 1px solid rgba(254,0,38,.3); border-radius: var(--radius-pill); padding: .4rem 1rem; font-size: .8rem; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; color: #fff; line-height: 1.1; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { font-size: .85rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: .4rem; }
.hero-wave { margin-top: 4rem; line-height: 0; display: none; }
.hero-visual { position: relative; }
.hero-dashboard-mockup { background: #1e1e2e; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.1); overflow: hidden; box-shadow: var(--shadow-lg); }
.mockup-topbar { background: #2a2a3e; padding: .6rem 1rem; display: flex; align-items: center; gap: .5rem; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mockup-dot.red { background: #ff5f57; } .mockup-dot.yellow { background: #febc2e; } .mockup-dot.green { background: #28c840; }
.mockup-url { font-size: .75rem; color: rgba(255,255,255,.4); margin-left: .5rem; font-family: monospace; }
.mockup-body { padding: 1rem; }
.mockup-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; margin-bottom: 1rem; }
.mockup-kpi { background: rgba(255,255,255,.05); border-radius: 6px; padding: .5rem .6rem; }
.mockup-kpi.accent { background: rgba(254,0,38,.15); border: 1px solid rgba(254,0,38,.3); }
.mockup-kpi.warn { background: rgba(253,126,20,.15); }
.kpi-label { font-size: .65rem; color: rgba(255,255,255,.5); margin-bottom: .15rem; }
.kpi-val { font-size: .9rem; font-weight: 500; color: #fff; }
.mockup-chart-bar { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin-bottom: 1rem; }
.mockup-chart-bar .bar { flex: 1; background: linear-gradient(to top, var(--brand), rgba(254,0,38,.3)); border-radius: 3px 3px 0 0; min-height: 4px; }
.mockup-tenant-list { display: flex; flex-direction: column; gap: .3rem; }
.mockup-tenant { background: rgba(255,255,255,.05); border-radius: 5px; padding: .4rem .6rem; font-size: .72rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: .5rem; }
.mockup-tenant .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mockup-tenant.active .dot { background: #28c840; }
.mockup-tenant.overdue .dot { background: var(--brand); }
.mockup-tenant .status { margin-left: auto; font-size: .65rem; }
.hero-float-card { position: absolute; background: #fff; border-radius: var(--radius); padding: .6rem 1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 500; color: var(--text-primary); animation: float 3s ease-in-out infinite; }
.hero-float-card.card-1 { bottom: 15%; left: -10%; animation-delay: .5s; }
.hero-float-card.card-2 { top: 20%; right: -8%; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* Stats strip */
.stats-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.stat-item { padding: .5rem; }
.stat-num { font-size: 1.6rem; font-weight: 500; color: var(--brand); }
.stat-lbl { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* Features */
.section-header .section-tag { background: var(--brand-subtle); color: var(--brand); border-radius: var(--radius-pill); padding: .3rem .9rem; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; display: inline-block; margin-bottom: .75rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; margin-bottom: .75rem; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.feature-card { background: var(--surface); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.75rem; transition: all .2s; }
.feature-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon-wrap { width: 52px; height: 52px; background: var(--brand-subtle); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-icon-wrap i { font-size: 1.4rem; color: var(--brand); }
.feature-title { font-size: 1rem; font-weight: 500; margin-bottom: .4rem; }
.feature-desc { color: var(--text-secondary); font-size: .875rem; margin-bottom: .75rem; }
.feature-plan-badge { font-size: .7rem; font-weight: 500; border-radius: var(--radius-pill); padding: .2rem .65rem; }
.feature-plan-badge.premium { background: #fef3c7; color: #92400e; }
.feature-plan-badge.free { background: var(--border-light); color: var(--text-muted); }

/* How it works */
.step-card { background: var(--surface); border-radius: var(--radius-lg); padding: 2rem 1.5rem; position: relative; }
.step-number { width: 40px; height: 40px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 1.1rem; margin: 0 auto 1rem; }
.step-icon i { font-size: 2rem; color: var(--brand); }
.step-title { font-size: 1rem; font-weight: 500; margin: .75rem 0 .4rem; }
.step-desc { color: var(--text-secondary); font-size: .875rem; }
.step-arrow { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--border); font-size: 1.5rem; }
.step-arrow.d-none{
    display: none !important;
}

/* Pricing */
.pricing-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; position: relative; transition: all .2s; }
.pricing-card.featured { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 500; border-radius: var(--radius-pill); padding: .25rem .9rem; white-space: nowrap; }
.plan-name { font-size: 1rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.plan-price { font-size: 2.5rem; font-weight: 500; color: var(--text-primary); line-height: 1; }
.plan-price .currency { font-size: 1.2rem; vertical-align: super; }
.plan-price .period { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.plan-desc { color: var(--text-muted); font-size: .875rem; }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.pricing-features li { padding: .4rem 0; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.pricing-features li i.bi-check-lg { color: var(--brand); font-weight: 500; }
.pricing-features li.disabled { color: var(--text-muted); }
.pricing-features li.disabled i.bi-x-lg { color: var(--border); }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.toggle-label { font-weight: 500; color: var(--text-secondary); }

/* Testimonials */
.testimonial-card { background: var(--surface); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.75rem; transition: all .2s; }
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-text { color: var(--text-secondary); font-size: .95rem; font-style: italic; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar { width: 40px; height: 40px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 1rem; flex-shrink: 0; }
.author-name { font-weight: 500; font-size: .9rem; }
.author-role { color: var(--text-muted); font-size: .8rem; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, #0f0c29, #24074a); }
.cta-card { padding: 4rem 2rem; color: #fff; }
.cta-icon i { font-size: 3rem; color: var(--brand); }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; color: #fff; margin-bottom: 1rem; }
.cta-sub { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 2rem; }

/* Footer */
.public-footer { background: #0f0c29; color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer-brand { font-size: 1.5rem; font-weight: 500; color: #fff; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; transition: all .15s; font-size: 1rem; }
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-heading { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.08); }
.footer-bottom { color: rgba(255,255,255,.4); font-size: .8rem; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
body.page-auth {
    background: linear-gradient(135deg, #0f0c29 0%, #24074a 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}
.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
}
.auth-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}
@media (min-width: 992px) {
    .auth-card {
        min-height: 100vh;
    }
}
@media (max-width: 991.98px) {
    .auth-wrapper {
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
    }
    .auth-card {
        min-height: auto;
        max-width: 460px;
        box-shadow: var(--shadow-lg);
    }
}

.auth-illustration{
    background-image: url('https://rently.ng/assets/images/rently_auth_bg.png') !important;
    background-position: right bottom !important;
    background-repeat: no-repeat !important;
    background-size: 55% !important;
    background-attachment: fixed !important;
}
.auth-logo { display:flex;  align-items:center; }
.auth-logo .logo-text { font-size: 1.8rem; font-weight: 500; color: var(--text-primary); }
.auth-logo svg, .auth-logo img { display:block; }
.auth-title { font-size: 1.6rem; font-weight: 500; }
.auth-sub { color: var(--text-secondary); }
.auth-switch a { color: var(--brand); font-weight: 500; }
.forgot-link { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.forgot-link:hover { color: var(--brand); }
.password-strength > div { height: 4px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.auth-side { flex: 1; background: linear-gradient(135deg,#1a0840,#24074a); display: flex; align-items: center; justify-content: center; padding: 3rem; }
.auth-side-content { max-width: 400px; color: #fff; }
.auth-side-brand { font-size: 1.8rem; font-weight: 500; margin-bottom: 2rem; }
.auth-side-quote { font-size: 1.2rem; line-height: 1.7; color: rgba(255,255,255,.85); font-style: italic; border-left: 3px solid var(--brand); padding-left: 1rem; margin-bottom: 2rem; }
.auth-side-author { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.avatar-circle { width: 44px; height: 44px; background: var(--brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 500; color: #fff; }
.auth-side-stats { display: flex; gap: 2rem; }
.side-stat-num { font-size: 1.4rem; font-weight: 500; color: var(--brand); }
.side-stat-lbl { font-size: .75rem; color: rgba(255,255,255,.5); }

/* ============================================================
   APPLY FORM
   ============================================================ */
.apply-wrapper { max-width: 780px; margin: 2rem auto; padding: 0 1rem; }
.apply-landlord-header .apply-logo-wrap { font-size: 1.4rem; font-weight: 500; color: var(--brand); }
.apply-title { font-size: 1.8rem; font-weight: 500; }
.apply-landlord-name { color: var(--text-secondary); }
.apply-progress .progress-steps { display: flex; justify-content: space-between; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: .35rem; opacity: .4; transition: opacity .2s; }
.progress-step.active { opacity: 1; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: .875rem; transition: all .2s; }
.progress-step.active .step-dot { background: var(--brand); color: #fff; }
.progress-step.completed .step-dot { background: var(--success); color: #fff; }
.step-label { font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.progress-step.active .step-label { color: var(--brand); }
.apply-step { display: none; }
.apply-step.active { display: block; }
.apply-step-header h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.apply-success { max-width: 500px; margin: 4rem auto; text-align: center; padding: 2rem; }
.success-animation .success-circle { width: 80px; height: 80px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; font-size: 2rem; color: var(--success); }
.apply-success-title { font-size: 1.8rem; font-weight: 500; }
.apply-ref-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1.25rem; font-weight: 500; font-family: monospace; display: inline-block; margin: .75rem 0; }

/* File drop zone */
.file-drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; cursor: pointer; transition: all .2s; background: var(--surface-2); position: relative; }
.file-drop-zone:hover, .file-drop-zone.dragover { border-color: var(--brand); background: var(--brand-subtle); }
.file-drop-zone .file-drop-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop-content i { font-size: 2rem; color: var(--text-muted); display: block; margin-bottom: .5rem; }
.file-drop-content p { margin: 0 0 .25rem; font-weight: 500; color: var(--text-secondary); font-size: .9rem; }
.file-drop-content span { color: var(--brand); text-decoration: underline; }
.file-drop-content small { color: var(--text-muted); font-size: .78rem; }

/* ============================================================
   PORTAL SHELL
   ============================================================ */
.portal-shell { display: flex; min-height: 100vh; }
.portal-sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  background: #1a1d2e;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 1020; transition: transform .25s ease;
  overflow-y: auto;
}
.portal-main { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }
.sidebar-brand { padding: 1.25rem 1.25rem .75rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-logo { font-size: 1.3rem; font-weight: 500; color: #fff; text-decoration: none; display: flex; align-items: center; gap: .35rem; }
.sidebar-logo-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
/* Fallback: if only a colour logo exists, CSS invert makes it white on the dark sidebar */
.sidebar-logo-img--invert {
    filter: brightness(0) invert(1);
}
.sidebar-close-btn { background: none; border: none; color: rgba(255,255,255,.5); font-size: 1.1rem; cursor: pointer; padding: .2rem; }
.sidebar-plan-badge { margin: .75rem 1.25rem; padding: .4rem .85rem; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 500; display: flex; align-items: center; }
.sidebar-plan-badge.premium { background: rgba(253,186,20,.15); color: #fbbf24; }
.sidebar-plan-badge.free { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); }
.upgrade-link { color: var(--brand); font-weight: 500; font-size: .7rem; margin-left: auto; }
.sidebar-nav { flex: 1; padding: .5rem 0; }
.sidebar-nav .nav-section-label { font-size: .67rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.25); padding: .9rem 1.25rem .35rem; }
.sidebar-nav .nav-link { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; color: rgba(255,255,255,.6); font-weight: 500; font-size: .875rem; border-radius: 0; transition: all .15s; margin: 1px 0; }
.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav .nav-link.active { color: #fff; background: var(--brand); border-radius: var(--radius-sm); margin: 1px .5rem; padding-left: .75rem; }
.nav-icon { font-size: 1rem; flex-shrink: 0; }
.nav-lock-icon { font-size: .7rem; color: rgba(255,255,255,.3); margin-left: auto; }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-footer-link { display: flex; align-items: center; color: rgba(255,255,255,.4); font-size: .8rem; font-weight: 500; padding: .35rem 0; transition: color .15s; }
.sidebar-footer-link:hover { color: rgba(255,255,255,.8); }
.sidebar-footer-link.sidebar-logout:hover { color: var(--brand); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1019; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sidebar-overlay.show { opacity: 1; pointer-events: all; }

/* Topnav */
.portal-topnav { height: var(--topnav-height); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--content-padding); position: sticky; top: 0; z-index: 1010; }
.topnav-hamburger { background: none; border: none; color: var(--text-secondary); font-size: 1.3rem; cursor: pointer; padding: .35rem; }
.topnav-search { position: relative; }
.topnav-search .form-control { width: 240px; font-size: .85rem; }
.search-dropdown { position: absolute; top: 110%; left: 0; width: 280px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 100; max-height: 300px; overflow-y: auto; }
.search-dropdown.show { display: block; }
.search-result-item { display: flex; align-items: center; padding: .55rem .9rem; font-size: .875rem; color: var(--text-primary); transition: background .12s; }
.search-result-item:hover { background: var(--brand-subtle); color: var(--brand); }
.topnav-icon-btn { background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; padding: .4rem; border-radius: var(--radius-sm); transition: all .15s; position: relative; }
.topnav-icon-btn:hover { background: var(--brand-subtle); color: var(--brand); }
.notif-badge { position: absolute; top: -2px; right: -2px; background: var(--brand); color: #fff; font-size: .6rem; font-weight: 500; border-radius: var(--radius-pill); padding: .1rem .35rem; min-width: 16px; text-align: center; }
.notif-dropdown { width: 320px; }
.notif-header { font-size: .8rem; font-weight: 500; color: var(--text-secondary); }
.notif-item { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border-light); transition: background .12s; cursor: pointer; }
.notif-item:hover { background: var(--brand-subtle); }
.notif-item.unread { background: var(--brand-subtle); }
.notif-icon { width: 32px; height: 32px; background: var(--border-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-title { font-size: .8rem; font-weight: 500; }
.notif-time  { font-size: .72rem; color: var(--text-muted); }
.notif-footer { font-size: .78rem; }
.topnav-profile-btn { background: none; border: none; cursor: pointer; padding: .25rem; border-radius: var(--radius); transition: background .15s; }
.topnav-profile-btn:hover { background: var(--brand-subtle); }
.profile-avatar { width: 34px; height: 34px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: .85rem; flex-shrink: 0; }
.profile-name { font-size: .82rem; font-weight: 500; color: var(--text-primary); }
.profile-plan { font-size: .7rem; color: var(--text-muted); }
.profile-dropdown { min-width: 220px; }

/* Portal content */
.portal-content { flex: 1; padding: var(--content-padding); max-width: 1400px; }
.portal-page-footer { padding: 1.5rem var(--content-padding); border-top: 1px solid var(--border); display: flex; gap: 1.5rem; align-items: center; font-size: .8rem; color: var(--text-muted); }
.portal-page-footer a { color: var(--text-muted); }
.portal-page-footer a:hover { color: var(--brand); }

/* Portal page headers */
.portal-page-title { font-size: 1.6rem; font-weight: 500; margin-bottom: .25rem; }
.portal-page-sub { color: var(--text-muted); font-size: .875rem; margin: 0; }

/* Portal card */
.portal-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.portal-card-header { padding: 1.1rem 1rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.portal-card-title { font-size: .95rem; font-weight: 500; margin: 0; display: flex; align-items: center; }
.portal-card-link { font-size: .8rem; color: var(--brand); font-weight: 500; }
.portal-card-body { padding: 1.5rem; }
.portal-tab-content { padding: 1.5rem; }
.portal-tabs.nav-tabs { border-bottom: 1px solid var(--border); padding: 0 .1rem; }

/* KPI cards */
.kpi-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.4rem; display: flex; align-items: flex-start; gap: 1rem; border: 1px solid var(--border-light); position: relative; overflow: hidden; transition: all .2s; }
.kpi-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi-card a.kpi-link { position: absolute; inset: 0; }
.kpi-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; }
.kpi-value { font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.kpi-label { font-size: .8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: .2rem; }
.kpi-sub { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.kpi-blue  .kpi-icon { background: #dbeafe; color: #1d4ed8; }
.kpi-green .kpi-icon { background: #d1fae5; color: #065f46; }
.kpi-brand .kpi-icon { background: var(--brand-subtle); color: var(--brand); }
.kpi-red   .kpi-icon { background: #fee2e2; color: #991b1b; }
.kpi-yellow.kpi-icon { background: #fef3c7; color: #92400e; }
.kpi-gray  .kpi-icon { background: var(--border-light); color: var(--text-muted); }
.kpi-mini-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 1rem; }
.kpi-mini-card.danger { border-color: #fca5a5; background: #fff5f5; }
.kpi-mini-label { font-size: .75rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.kpi-mini-value { font-size: 1.3rem; font-weight: 500; }
.kpi-mini-sub { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }
.kpi-mini { padding: .5rem; }
.kpi-mini-val { font-size: 1.1rem; font-weight: 500; }
.kpi-mini-lbl { font-size: .7rem; color: var(--text-muted); font-weight: 500; margin-top: .15rem; }

/* Activity list */
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.25rem; border-bottom: 1px solid var(--border-light); }
.activity-item:last-child { border-bottom: none; }
.activity-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: .85rem; color: #fff; flex-shrink: 0; }
.activity-avatar.warning { background: var(--warning); }
.activity-avatar.danger  { background: var(--danger); }
.activity-avatar.primary { background: #3b82f6; }
.activity-avatar.info    { background: var(--info); }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-title a { color: inherit; }
.activity-title a:hover { color: var(--brand); }
.activity-sub { font-size: .75rem; color: var(--text-muted); }
.activity-meta { text-align: right; flex-shrink: 0; }

/* Chart containers */
.chart-container { position: relative; width: 100%; }

/* Upgrade banner */
.upgrade-banner { background: linear-gradient(135deg,var(--brand),#ff6b35); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; color: #fff; }
.upgrade-icon i { font-size: 1.8rem; }
.text-white-75 { color: rgba(255,255,255,.75); }

/* Apply link widget */
.apply-link-widget { background: var(--brand-subtle); border: 1.5px solid rgba(254,0,38,.2); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.apply-link-icon i { font-size: 2rem; color: var(--brand); }
.apply-link-url, .apply-link-inline { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .3rem .65rem; font-size: .8rem; font-family: monospace; word-break: break-all; }
.copy-btn { flex-shrink: 0; }

/* Plan gate */
.plan-gate-wrapper { position: relative; }
.plan-gate-blur-overlay { filter: blur(4px); pointer-events: none; user-select: none; }
.plan-gate-cta { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 10; background: rgba(255,255,255,.95); padding: 2.5rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); min-width: 320px; }

/* ============================================================
   PROPERTIES
   ============================================================ */
.property-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; transition: all .2s; }
.property-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.property-card-img { height: 160px; overflow: hidden; position: relative; background: var(--surface-2); }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; }
.property-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#f0f2f8,#e8ecf4); }
.property-img-placeholder i { font-size: 3rem; color: var(--border); }
.property-type-badge { position: absolute; top: .6rem; right: .6rem; background: rgba(0,0,0,.7); color: #fff; font-size: .7rem; font-weight: 500; padding: .2rem .6rem; border-radius: var(--radius-pill); }
.property-card-body { padding: 1.1rem; }
.property-name a { font-size: 1rem; font-weight: 500; color: var(--text-primary); }
.property-name a:hover { color: var(--brand); }
.property-address { font-size: .8rem; margin-bottom: .75rem; display: flex; align-items: flex-start; gap: .3rem; }
.property-stats-row { display: flex; gap: 1rem; margin-bottom: .75rem; }
.property-stat { text-align: center; }
.stat-val { font-size: .95rem; font-weight: 500; display: block; }
.stat-lbl { font-size: .68rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; }
.property-card-footer { padding: .85rem 1.1rem; border-top: 1px solid var(--border-light); display: flex; gap: .5rem; flex-wrap: wrap; }
.property-view-images { display: flex; gap: .5rem; flex-wrap: wrap; }
.property-view-img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.existing-img-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.amenities-checklist .form-check { display: inline-flex; align-items: center; margin: .25rem .5rem .25rem 0; }

/* ============================================================
   TENANTS
   ============================================================ */
.tenant-avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: .85rem; flex-shrink: 0; }
.tenant-avatar-sm.blacklisted { background: #374151; }
.checklist-dots { display: flex; gap: 3px; }
.checklist-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--border-light); display: flex; align-items: center; justify-content: center; font-size: .6rem; color: var(--text-muted); }
.checklist-dot.done { background: #d1fae5; color: var(--success); }
.checklist-items .checklist-item { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; border-bottom: 1px solid var(--border-light); font-size: .875rem; }
.checklist-items .checklist-item:last-child { border-bottom: none; }
.checklist-items .checklist-item.done { color: var(--success); }
.rent-status-card { border-radius: var(--radius-lg); }
.rent-status-card.border-danger { border: 2px solid #fca5a5; background: #fff5f5; }
.rent-status-card.border-warning { border: 2px solid #fde68a; background: #fffdf0; }
.rent-amount-display { font-size: 2rem; font-weight: 500; color: var(--text-primary); }
.portal-link-display { word-break: break-all; background: var(--surface-2); padding: .5rem .75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: .78rem; }
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; }
.detail-list dt { font-size: .78rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; align-self: start; padding-top: .15rem; }
.detail-list dd { font-size: .875rem; color: var(--text-primary); margin: 0; }
.detail-list.detail-list-sm dt { font-size: .72rem; }
.detail-list.detail-list-sm dd { font-size: .82rem; }
.docs-grid { display: flex; flex-direction: column; gap: .5rem; }
.doc-item { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.doc-icon { font-size: 1.4rem; width: 36px; text-align: center; flex-shrink: 0; }
.doc-body { flex: 1; min-width: 0; }
.doc-title { font-weight: 500; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: .72rem; color: var(--text-muted); }
.notice-list .notice-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border-light); }
.notice-type-badge { font-size: .68rem; font-weight: 500; border-radius: var(--radius-sm); padding: .2rem .5rem; white-space: nowrap; flex-shrink: 0; background: var(--border-light); color: var(--text-muted); }
.notice-body { flex: 1; }
.sig-preview-img { max-height: 50px; max-width: 150px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ============================================================
   DOCUMENTS
   ============================================================ */
.doc-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.doc-card:hover { box-shadow: var(--shadow); }
.doc-card-thumb { height: 110px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.doc-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.doc-thumb-icon i { font-size: 2.5rem; }
.doc-category-badge { position: absolute; bottom: .4rem; left: .4rem; background: rgba(0,0,0,.65); color: #fff; font-size: .65rem; font-weight: 500; padding: .15rem .5rem; border-radius: var(--radius-pill); }
.doc-card-body { padding: .85rem; }
.doc-title { font-weight: 500; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-card-actions { padding: .6rem .85rem; border-top: 1px solid var(--border-light); display: flex; gap: .4rem; }

/* ============================================================
   AGREEMENTS & SIGNATURES
   ============================================================ */
.template-card { display: block; cursor: pointer; }
.template-card-body { border: 2px solid var(--border); border-radius: var(--radius); transition: all .2s; }
.template-card:hover .template-card-body,
.template-card.selected .template-card-body { border-color: var(--brand); background: var(--brand-subtle); }
.signature-pad-wrapper { border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fafafa; position: relative; }
.signature-pad-canvas { width: 100%; height: 180px; cursor: crosshair; display: block; touch-action: none; }
.signature-pad-toolbar { padding: .5rem .75rem; background: var(--surface-2); border-top: 1px solid var(--border); }
.agreement-preview-box { min-height: 120px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.agreement-content-preview { font-size: .875rem; line-height: 1.8; color: var(--text-primary); }
.agreement-content-preview h3 { font-size: .95rem; font-weight: 500; margin-top: 1.25rem; }
.agreement-steps .step-bar { height: 4px; background: var(--border); border-radius: var(--radius-pill); margin-bottom: 1rem; }
.agreement-steps .step-bar-progress { height: 100%; background: var(--brand); border-radius: var(--radius-pill); transition: width .3s; }
.agreement-steps .steps-row { display: flex; justify-content: space-between; }
.agreement-steps .step-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; opacity: .4; transition: opacity .2s; }
.agreement-steps .step-item.active { opacity: 1; }
.agr-step { display: none; }
.agr-step.active { display: block; }

/* ============================================================
   VERIFICATION & LAWYER
   ============================================================ */
.package-card .package-card-body { transition: all .2s; cursor: pointer; }
.package-card .package-card-body.selected { border-color: var(--brand) !important; background: var(--brand-subtle); }
.package-price { color: var(--brand); }
.check-result-row .check-icon { font-size: 1.25rem; }
.service-card { transition: all .2s; cursor: pointer; border: 1px solid var(--border-light) !important; border-radius: var(--radius-lg) !important; }
.service-card:hover, .service-card.selected { box-shadow: var(--shadow); }
.timeline-list .timeline-item { display: flex; gap: .75rem; padding: .6rem 0; border-left: 2px solid var(--border); padding-left: 1rem; margin-left: .5rem; position: relative; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; position: absolute; left: -6px; top: .6rem; flex-shrink: 0; }
.timeline-body { font-size: .875rem; }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-tabs .nav-link { border-radius: var(--radius-sm); font-size: .875rem; }
.profile-avatar-wrapper { position: relative; display: inline-block; margin-bottom: 1rem; }
.profile-avatar-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.profile-avatar-placeholder { width: 90px; height: 90px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 500; border: 3px solid var(--border); }
.avatar-change-btn { position: absolute; bottom: 2px; right: 2px; width: 28px; height: 28px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; cursor: pointer; border: 2px solid #fff; }
.notif-pref-card { transition: all .2s; cursor: pointer; }
.notif-pref-card.border-brand { background: var(--brand-subtle); }

/* ============================================================
   ONBOARDING
   ============================================================ */
body.page-onboarding { background: linear-gradient(135deg,#f4f6fb,#e8ecf4); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.onboarding-wrapper { width: 100%; max-width: 600px; margin: 2rem auto; padding: 0 1rem; }
.onboarding-card { background: var(--surface); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.onboarding-brand { font-size: 1.5rem; font-weight: 500; text-align: center; margin-bottom: .25rem; }
.onboarding-title { font-size: 1.6rem; font-weight: 500; text-align: center; margin-bottom: .25rem; }
.onboarding-sub { color: var(--text-secondary); text-align: center; }
.onboarding-steps { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.ob-step { display: flex; flex-direction: column; align-items: center; gap: .35rem; opacity: .4; transition: opacity .2s; }
.ob-step.active { opacity: 1; }
.ob-step-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: .9rem; transition: all .2s; }
.ob-step.active .ob-step-dot { background: var(--brand); color: #fff; }
.ob-step.completed .ob-step-dot { background: var(--success); color: #fff; }
.ob-step-label { font-size: .72rem; font-weight: 500; color: var(--text-muted); }
.ob-step-line { width: 50px; height: 2px; background: var(--border); margin-bottom: 1.5rem; }
.ob-icon-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-subtle); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto; }

/* ============================================================
   TENANT PORTAL
   ============================================================ */
body.tenant { background: #f4f6fb; }
.tenant-topnav { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.tenant-brand { font-size: 1.2rem; font-weight: 500; color: var(--text-primary); }
.tenant-name { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }
.tenant-avatar-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: .85rem; }
.tenant-shell { display: flex; min-height: calc(100vh - 60px); }
.tenant-sidebar { width: 200px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.tenant-nav-link { display: flex; align-items: center; gap: .65rem; padding: .65rem 1.25rem; color: var(--text-secondary); font-weight: 500; font-size: .875rem; border-left: 3px solid transparent; transition: all .15s; }
.tenant-nav-link:hover { color: var(--brand); background: var(--brand-subtle); }
.tenant-nav-link.active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-subtle); }
.tenant-nav-link i { font-size: .95rem; }
.tenant-content { flex: 1; padding: 2rem; max-width: 900px; }
.tenant-page-header h1 { font-size: 1.5rem; font-weight: 500; margin-bottom: .25rem; }
.tenant-rent-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.tenant-rent-card.overdue { border-color: #fca5a5; background: #fff5f5; }
.rent-label { font-size: .75rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.rent-amount { font-size: 2.2rem; font-weight: 500; }
.tenant-stat-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 1rem; }
.tenant-stat-val { font-size: 1.1rem; font-weight: 500; }
.tenant-stat-lbl { font-size: .72rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin-top: .2rem; }
.tenant-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.tenant-card-header { padding: .9rem 1.25rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.tenant-card-title { font-size: .9rem; font-weight: 500; margin: 0; }
.tenant-card-body { padding: 1.25rem; }
.landlord-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 500; flex-shrink: 0; }
.countdown-timer { display: flex; gap: .5rem; flex-wrap: wrap; }
.countdown-unit { background: var(--brand-subtle); color: var(--brand); border-radius: var(--radius-sm); padding: .35rem .65rem; font-size: 1rem; font-weight: 500; }
.countdown-unit small { font-size: .6rem; font-weight: 500; color: var(--text-muted); margin-left: .15rem; }
.unread-notice { border-left: 3px solid var(--brand) !important; }
.notice-type-indicator { width: 36px; height: 36px; border-radius: 50%; background: var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

/* OTP page */
.otp-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#f4f6fb,#e8ecf4); padding: 1rem; }
.otp-card { background: var(--surface); border-radius: var(--radius-xl); padding: 2.5rem; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.otp-brand { font-size: 1.5rem; font-weight: 500; }

/* ============================================================
   ADMIN PORTAL OVERRIDES
   ============================================================ */
body.admin-layout .portal-sidebar { background: #1e2235; }
body.admin-layout .sidebar-nav .nav-link.active { background: #dc3545; }
body.admin-layout .admin-avatar { background: #dc3545; }
body.admin-layout .portal-topnav { border-bottom-color: #e8ecf4; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 991.98px) {
  .portal-sidebar { transform: translateX(-100%); }
  .portal-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .portal-main { margin-left: 0; }
  .portal-content { padding: 1.25rem; }
  .tenant-sidebar { width: 180px; }
  .tenant-content { padding: 1.25rem; }
  :root { --content-padding: 16px; }
}
@media (max-width: 767.98px) {
  .hero-title { font-size: 1.9rem; }
  .hero-float-card { display: none; }
  .portal-page-title { font-size: 1.3rem; }
  .kpi-value { font-size: 1.3rem; }
  .tenant-sidebar { width: 56px; }
  .tenant-nav-link span { display: none; }
  .tenant-nav-link { padding: .65rem; justify-content: center; }
  .tenant-nav-link i { font-size: 1.1rem; }
  .tenant-content { padding: 1rem; }
}
@media (max-width: 575.98px) {
  /* Auth page mobile is handled in the auth-specific block above */
  .apply-wrapper { margin: 1rem auto; }
  .onboarding-card { padding: 1.5rem; }
}
@media (min-width: 992px) {
  .portal-tabs.nav-tabs.portal-tabs { flex-wrap: nowrap; overflow-x: auto; }
}

/* ── Nav notification badge ─────────────────────────────── */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: .65rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: var(--brand, #FE0026);
  border-radius: 9px;
  margin-left: auto;
  flex-shrink: 0;
  animation: badge-pop .25s ease;
}
@keyframes badge-pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
/* Make nav-link flex so badge pushes to the right */
.portal-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.portal-sidebar .nav-label { flex: 1; }

/* ============================================================
   PUBLIC PAGES — Shared page header
   ============================================================ */
.page-header-section {
  background: linear-gradient(135deg, #fafafa 0%, #fff5f5 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-header-section .breadcrumb { font-size: .8rem; margin-bottom: .75rem; }
.page-header-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: .5rem;
}
.page-header-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0;
}

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.feature-group { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.feature-group:last-of-type { border-bottom: none; }
.feature-group-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
  line-height: 1;
}
.feature-group-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0;
}
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .5rem 0;
  font-size: .94rem;
  color: var(--text-secondary);
  border-bottom: 1px solid #f3f4f6;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { flex-shrink: 0; margin-top: 3px; font-size: .9rem; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.blog-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}
.blog-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--border);
}
.blog-card-body { padding: 1.25rem; }
.blog-category {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand);
  background: #fff0f0;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  margin-bottom: .6rem;
}
.blog-title { font-size: 1rem; font-weight: 500; line-height: 1.4; margin-bottom: .5rem; }
.blog-title a { color: var(--text-primary); text-decoration: none; }
.blog-title a:hover { color: var(--brand); }
.blog-excerpt { font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem; }
.blog-meta { font-size: .78rem; color: var(--text-muted); display: flex; gap: 1rem; }
.blog-post-content { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); }
.blog-post-content h2,
.blog-post-content h3 { color: var(--text-primary); margin-top: 2rem; font-weight: 500; }
.blog-post-content p { margin-bottom: 1.25rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-lbl { font-size: .8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: box-shadow .2s;
}
.value-card:hover { box-shadow: var(--shadow-md); }
.value-icon {
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: .5rem; }
.value-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.ci-icon {
  width: 44px;
  height: 44px;
  background: #fff0f0;
  color: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item strong { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .15rem; }
.contact-info-item a { font-size: .875rem; color: var(--brand); }

/* ============================================================
   PRICING PAGE — pricing-header fix
   ============================================================ */
.pricing-header { margin-bottom: .5rem; }
.pricing-card { transition: box-shadow .2s, transform .2s; }
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.featured:hover { box-shadow: var(--shadow-brand); }

/* ============================================================
   py-6 utility
   ============================================================ */
.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.mb-6 { margin-bottom: 4rem !important; }

/* ============================================================
   INNER PAGE HERO (Features, Pricing, About, Contact, Blog)
   Matches the dark gradient of the home hero
   ============================================================ */
.inner-hero-section {
  background: linear-gradient(135deg, #0f0c29 0%, #1a1040 40%, #24074a 100%);
  color: #fff;
  padding: 4rem 0 0;
  overflow: hidden;
  position: relative;
}
.inner-hero-section .section-tag {
  background: rgba(254,0,38,.2);
  color: #ff6680;
  border: 1px solid rgba(254,0,38,.3);
  padding: 7px 12px 10px;
    border-radius: 40px;
}
.inner-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: .75rem 0 1rem;
}
.inner-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin: 0 auto 1rem;
}

/* ============================================================
   FEATURE MINI CARDS (used on feature detail sections)
   ============================================================ */
.feature-mini-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  transition: box-shadow .2s, border-color .2s;
}
.feature-mini-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.fmc-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.fmc-title {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: .2rem;
}
.fmc-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
}




/*CUSTOM PAGE STYLING*/
.page-pricing .inner-hero-section,
.page-features .inner-hero-section,
.page-about .inner-hero-section,
.page-blog .inner-hero-section,
.page-contact .inner-hero-section{
    padding-top: 100px !important;
    padding-bottom: 60px !important;
}

.page-pricing .hero-wave,
.page-features .hero-wave,
.page-about .hero-wave,
.page-blog .hero-wave,
.page-contact .hero-wave{
    display: none !important;
}

.page-pricing .justify-content-center{
    margin-bottom: 30px !important;
}

.page-pricing .section-header{
    margin-top: 50px !important;
}


/* ============================================================
   TENANT PORTAL — ACCESS LINK BANNER
   ============================================================ */
.tenant-access-banner {
  background: linear-gradient(135deg, rgba(254,0,38,.06), rgba(254,0,38,.02));
  border: 1.5px solid rgba(254,0,38,.2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}
.tenant-portal-url-display {
  font-family: var(--font-mono, monospace);
  font-size: .78rem;
  color: var(--brand);
  font-weight: 600;
  background: rgba(254,0,38,.06);
  padding: .3rem .6rem;
  border-radius: 5px;
  border: 1px solid rgba(254,0,38,.15);
}
 
 
.plan-price.annual-price .badge{
    padding: 7px 12px 10px !important;
  font-size: 13px !important;
}