:root {
    --ink: #16201c;
    --muted: #65746c;
    --line: #dbe5de;
    --paper: #f7faf7;
    --panel: #ffffff;
    --green: #147a59;
    --green-2: #0d5f46;
    --gold: #c98a1f;
    --coral: #d45c45;
    --blue: #246b9b;
    --shadow: 0 18px 45px rgba(22, 32, 28, .10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

a { color: inherit; text-decoration: none; }

/* site-header, .brand, .site-nav, .nav-toggle and .site-footer
   are defined in the responsive section below */

.hero {
    min-height: 74vh;
    display: grid;
    align-items: end;
    padding: 70px clamp(18px, 5vw, 70px);
    background:
        linear-gradient(90deg, rgba(8, 28, 22, .82), rgba(8, 28, 22, .44), rgba(8, 28, 22, .14)),
        url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
}

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

.eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
    color: #f5ce72;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 82px);
    line-height: .98;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(25px, 4vw, 42px);
}

h3 { margin: 0 0 10px; }

p {
    line-height: 1.62;
    color: var(--muted);
}

.hero p {
    max-width: 680px;
    color: rgba(255,255,255,.88);
    font-size: 18px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.btn,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--green);
    font-weight: 700;
    cursor: pointer;
}

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

button.secondary-action {
    color: var(--green-2);
    background: #e7f4ee;
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.inline-form {
    display: inline-flex;
    margin: 0 6px 6px 0;
}

.vacancy-form {
    display: grid;
    grid-template-columns: minmax(74px, 100px) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.btn.secondary {
    color: var(--ink);
    background: #fff;
}

.btn.ghost {
    color: var(--green);
    background: #e7f4ee;
}

.band,
.content {
    padding: 56px clamp(18px, 5vw, 70px);
}

.band.white { background: #fff; }

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

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(22, 32, 28, .04);
    overflow: hidden;
}

.card.pad { padding: 20px; }

.stat {
    padding: 20px;
    border-left: 4px solid var(--green);
}

.stat strong {
    display: block;
    font-size: 30px;
    margin-bottom: 4px;
}

.listing-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #dfe7e2;
}

.listing-body {
    padding: 18px;
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--green-2);
    background: #e6f2ed;
    font-size: 13px;
    font-weight: 700;
}

.pill.warn {
    color: #8a5b00;
    background: #fff3d3;
}

.pill.bad {
    color: #9b2d1d;
    background: #ffe6df;
}

.filter {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea { min-height: 110px; resize: vertical; }

.page-title {
    padding: 46px clamp(18px, 5vw, 70px) 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.page-title h1 {
    color: var(--ink);
    font-size: clamp(34px, 5vw, 58px);
}

.page-title p {
    margin: 0 0 8px;
    color: var(--green);
    font-weight: 800;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 22px;
    align-items: start;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    background: #f3f7f4;
}

.chart {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 210px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.bar {
    flex: 1;
    min-width: 34px;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, var(--gold), var(--green));
    position: relative;
}

.bar span {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 12px;
}

.notice {
    padding: 14px 16px;
    border: 1px solid #b9e2cc;
    border-radius: 8px;
    color: #0d5f46;
    background: #ebf8f1;
    margin-bottom: 18px;
}

.back-btn {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(18, 63, 49, .82);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .22);
    transition: background .18s;
    cursor: pointer;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(18, 63, 49, 1);
}

.back-btn svg {
    flex-shrink: 0;
}

/* .site-footer defined in responsive section below */

.dashboard-body,
.login-body {
    min-height: 100vh;
    background: #eef5f1;
}

.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    padding: 22px;
    color: #fff;
    background: #123f31;
    overflow-y: auto;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    font-weight: 800;
    font-size: 20px;
}

.dashboard-logo img {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

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

.side-nav a {
    padding: 12px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
}

.side-nav a.active,
.side-nav a:hover {
    color: #123f31;
    background: #fff;
}

.dashboard-main {
    min-height: 100vh;
    margin-left: 270px;
    padding: 28px clamp(18px, 4vw, 52px);
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-topbar p {
    margin: 0 0 5px;
    color: var(--green);
    font-weight: 800;
}

.dashboard-topbar h1 {
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
}

.dashboard-panel {
    margin-top: 20px;
}

.dashboard-form {
    max-width: 760px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.plan-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(22, 32, 28, .05);
}

.plan-card strong {
    font-size: 27px;
    color: var(--green-2);
}

.plan-card span {
    color: var(--muted);
    font-size: 14px;
}

.subscription-gate {
    padding: 28px;
    border: 1px solid #f2d693;
    border-radius: 8px;
    background: #fffaf0;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-photo-body {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(8, 28, 22, .68), rgba(8, 28, 22, .32)),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=85") center/cover fixed;
}

.auth-photo-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(22, 32, 28, .26);
    pointer-events: none;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
    gap: 24px;
    width: min(1100px, 100%);
}

.login-brand {
    display: grid;
    align-content: center;
    padding: 36px;
    border-radius: 8px;
    color: #fff;
    background: #123f31;
}

.login-brand img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.login-brand h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.login-brand p {
    color: rgba(255, 255, 255, .82);
}

.login-panel {
    display: grid;
    gap: 16px;
}

.auth-card {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(270px, .9fr) minmax(360px, 1.1fr);
    gap: 0;
    width: min(980px, 100%);
    max-height: calc(100vh - 56px);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .30);
}

.auth-brand-panel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(145deg, #0f7b46, #0a5f3d);
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: -105px;
    right: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
}

.auth-brand-panel img,
.auth-brand-panel h1,
.auth-brand-panel p,
.auth-brand-panel a {
    position: relative;
    z-index: 1;
}

.auth-brand-panel img {
    width: 112px;
    height: 112px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.auth-brand-panel h1 {
    font-size: clamp(30px, 4vw, 42px);
}

.auth-mini-link {
    width: fit-content;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.auth-form-panel {
    align-content: start;
    gap: 18px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: clamp(22px, 4vw, 46px);
    background: rgba(255, 255, 255, .96);
}

.auth-form-block {
    display: grid;
    gap: 12px;
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
}

.auth-form-block h2 {
    margin-bottom: 0;
    color: var(--green-2);
    font-size: clamp(28px, 4vw, 42px);
    text-align: center;
}

.auth-form-block > p {
    margin: 0 0 8px;
    text-align: center;
    font-size: 13px;
}

.auth-form-block form {
    display: grid;
    gap: 10px;
}

.auth-form-block input {
    border-color: transparent;
    border-radius: 999px;
    background: #c7eadc;
    text-align: center;
}

.auth-form-block .check-row input {
    border-radius: 4px;
    background: #fff;
}

.auth-form-block .password-field input {
    text-align: left;
}

.auth-form-block button[type="submit"] {
    justify-self: center;
    min-width: 150px;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 12px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.auth-row a,
.auth-switch a {
    color: var(--green-2);
    font-weight: 800;
}

.auth-switch {
    margin: 0;
    text-align: center;
    font-size: 13px;
}

.signin-choice {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    width: min(980px, 100%);
}

.signin-choice-hero {
    display: grid;
    justify-items: center;
    gap: 10px;
    color: #fff;
    text-align: center;
}

.signin-choice-hero img {
    width: 118px;
    height: 118px;
    object-fit: contain;
}

.signin-choice-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.signin-choice-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
}

.signin-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
}

.signin-choice-card {
    display: grid;
    gap: 10px;
    background: rgba(255, 255, 255, .96);
}

.auth-secondary-block {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.password-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.password-toggle {
    min-width: 68px;
    min-height: 42px;
    padding: 8px 12px;
    color: var(--green-2);
    background: #e7f4ee;
}

.check-row {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: var(--ink);
}

.check-row input {
    width: 17px;
    min-height: 17px;
}

.form-hint {
    margin: -2px 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.tenant-dashboard {
    padding-top: 28px;
}

.tenant-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.tenant-menu {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 8px;
}

.tenant-menu h2 {
    font-size: 24px;
}

.tenant-menu a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--green-2);
    background: #eef8f3;
    font-weight: 700;
}

.tenant-menu a:hover {
    color: #fff;
    background: var(--green);
}

.tenant-main {
    display: grid;
    gap: 26px;
}

.tenant-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 24px;
    align-items: center;
}

.tenant-hero h1 {
    color: var(--ink);
    font-size: clamp(34px, 5vw, 60px);
}

.tenant-check-list,
.tenant-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tenant-check-list span {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--green-2);
    background: #e6f2ed;
    font-weight: 700;
}

.tenant-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
}

.tenant-section {
    scroll-margin-top: 110px;
}

.tenant-search {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    align-items: end;
}

.tenant-property-card form,
.listing-body form {
    margin: 0;
}

.tenant-mini-card {
    display: grid;
    gap: 8px;
}

.tenant-alert-form {
    display: grid;
    gap: 16px;
}

.tenant-alert p {
    margin: 6px 0;
}

.tenant-chat {
    display: grid;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
}

.chat-bubble {
    width: min(520px, 88%);
    padding: 12px 14px;
    border-radius: 8px;
    background: #f3f7f4;
}

.chat-bubble.mine {
    justify-self: end;
    color: #fff;
    background: var(--green);
}

.chat-bubble p {
    margin: 4px 0 0;
    color: inherit;
}

/* ─── OTP / Verification step ───────────────────────────────────────────── */

.otp-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0;
}

.otp-wrap input[type="text"] {
    width: 52px;
    min-height: 58px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #f3faf6;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--green-2);
    caret-color: var(--green);
    transition: border-color .16s, box-shadow .16s;
    padding: 0;
}

.otp-wrap input[type="text"]:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(20,122,89,.15);
    background: #fff;
}

.otp-wrap input[type="text"].otp-filled {
    border-color: var(--green);
    background: #e8f7ef;
}

.verify-card {
    display: grid;
    gap: 16px;
    text-align: center;
}

.verify-card .verify-icon {
    font-size: 48px;
    line-height: 1;
}

.verify-card h2 {
    margin: 0;
    color: var(--green-2);
}

.verify-card .verify-hint {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.verify-card .verify-hint strong {
    color: var(--ink);
}

.verify-timer {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.verify-timer.expired {
    color: var(--coral);
}

.resend-link {
    font-size: 13px;
    color: var(--green-2);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
}

.resend-link:disabled {
    color: var(--muted);
    text-decoration: none;
    cursor: not-allowed;
}

/* ─── Admin login background ─────────────────────────────────────────────── */

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(8,28,22,.88) 0%, rgba(14,46,34,.72) 50%, rgba(8,28,22,.88) 100%),
        url("https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
    position: relative;
}

.admin-login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(8,28,22,.18);
    pointer-events: none;
}

.admin-login-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: rgba(255,255,255,.97);
    border-radius: 16px;
    padding: clamp(28px, 5vw, 52px);
    box-shadow: 0 32px 80px rgba(0,0,0,.40);
}

.admin-login-card .logo-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    text-align: center;
}

.admin-login-card .logo-row img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    padding: 8px;
    background: #e8f5ef;
}

.admin-login-card .logo-row strong {
    font-size: 20px;
    color: var(--green-2);
    font-weight: 800;
}

.admin-login-card .logo-row span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-login-card h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--ink);
    text-align: center;
}

.admin-login-card > p {
    margin: 0 0 22px;
    font-size: 14px;
    text-align: center;
}

.admin-login-card form {
    display: grid;
    gap: 12px;
}

/* ─── Admin dashboard layout ──────────────────────────────────────────────── */

.admin-body {
    min-height: 100vh;
    background: #eef5f1;
}

/* Sidebar */
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    width: 260px;
    display: flex;
    flex-direction: column;
    background: #0e2e22;
    color: #fff;
    transition: transform .26s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}

.admin-sidebar.collapsed {
    transform: translateX(-260px);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    flex-shrink: 0;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    color: #fff;
}

.admin-sidebar-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
}

.admin-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.admin-sidebar-close:hover { background: rgba(255,255,255,.18); }

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 12px;
    flex: 1;
}

.admin-nav-section {
    margin: 10px 0 4px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 600;
    transition: background .14s, color .14s;
}

.admin-nav a .nav-icon {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.admin-nav a.active,
.admin-nav a:hover {
    color: #0e2e22;
    background: #fff;
}

.admin-nav-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    flex-shrink: 0;
}

.admin-nav-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
    font-weight: 600;
}

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

/* Sidebar overlay (mobile) */
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0,0,0,.46);
}

.admin-overlay.visible { display: block; }

/* Main content area */
.admin-main {
    min-height: 100vh;
    margin-left: 260px;
    transition: margin-left .26s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}

.admin-main.full-width {
    margin-left: 0;
}

/* Top bar */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 clamp(16px, 3vw, 36px);
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(22,32,28,.06);
    flex-shrink: 0;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
}

.admin-hamburger:hover { background: #eef5f1; }

.admin-hamburger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s, opacity .22s;
}

.admin-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-hamburger.open span:nth-child(2) { opacity: 0; }
.admin-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.admin-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: #eef5f1;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--green-2);
    white-space: nowrap;
}

.admin-user-badge .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.admin-content {
    padding: 28px clamp(16px, 3vw, 40px);
    flex: 1;
}

.admin-page-heading {
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.admin-page-heading p {
    margin: 0 0 4px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-page-heading h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--ink);
}

/* Notice inside admin */
.admin-notice {
    padding: 12px 16px;
    border: 1px solid #b9e2cc;
    border-radius: 8px;
    color: #0d5f46;
    background: #ebf8f1;
    margin-bottom: 20px;
    font-size: 14px;
}

.admin-notice.error {
    border-color: #f5b7b1;
    color: #922b21;
    background: #fdedec;
}

/* Admin stat cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.admin-stat-card {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    border-left: 4px solid var(--green);
    box-shadow: 0 4px 12px rgba(22,32,28,.04);
}

.admin-stat-card strong {
    display: block;
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 4px;
}

.admin-stat-card span {
    font-size: 13px;
    color: var(--muted);
}

/* Admin login */
.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    position: relative;
    background:
        linear-gradient(135deg, rgba(8, 28, 22, .90) 0%, rgba(14, 46, 34, .75) 55%, rgba(8, 28, 22, .93) 100%),
        url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
}

.admin-login-card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: clamp(32px, 5vw, 52px);
    box-shadow: 0 32px 80px rgba(0,0,0,.45);
    position: relative;
    z-index: 1;
}

.admin-login-card .logo-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    text-align: center;
}

.admin-login-card .logo-row img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 16px;
    background: #e6f2ed;
    padding: 8px;
}
    height: 48px;
    object-fit: contain;
}

.admin-login-card .logo-row strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--green-2);
}

.admin-login-card .logo-row .logo-tagline {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.admin-login-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    color: var(--ink);
    text-align: center;
}

.admin-login-card > p {
    margin: 0 0 22px;
    font-size: 14px;
    text-align: center;
}

.admin-login-card form {
    display: grid;
    gap: 12px;
}

/* Error notice variant */
.notice.notice-error {
    border-color: #f5b7b1;
    color: #922b21;
    background: #fdedec;
}

/* OTP digit input */
.otp-input {
    letter-spacing: .35em;
    font-size: 26px !important;
    text-align: center;
    font-weight: 800;
    border-radius: 12px !important;
    background: #e6f2ed !important;
    border-color: transparent !important;
    padding: 14px !important;
}

/* Step indicator */
.reg-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.reg-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    background: #e6f2ed;
    color: var(--muted);
}

.reg-step.active {
    background: var(--green);
    color: #fff;
}

.reg-step.done {
    background: #b9e2cc;
    color: var(--green-2);
}

.reg-step-line {
    flex: 1;
    height: 2px;
    background: #e6f2ed;
    max-width: 40px;
}

.admin-section {
    margin-bottom: 36px;
}

.admin-section h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

/* ─── Sticky header & footer ─────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px clamp(14px, 4vw, 58px);
    background: #123f31;
    border-bottom: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 4px 18px rgba(20,35,29,.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: clamp(15px, 3.5vw, 20px);
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: auto;
    height: clamp(42px, 8vw, 72px);
    max-width: 180px;
    object-fit: contain;
}

/* Desktop nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.82);
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 700;
    white-space: nowrap;
}

.site-nav a.active,
.site-nav a:hover {
    color: #123f31;
    background: #fff;
}

.nav-signout {
    color: #ffccc0 !important;
}

.nav-signout:hover {
    color: #123f31 !important;
    background: #ffccc0 !important;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .22s, opacity .22s;
}

.nav-toggle-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-open span:nth-child(2) { opacity: 0; }
.nav-toggle-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sticky footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px clamp(14px, 5vw, 70px);
    color: #dcebe4;
    background: #14231d;
}

.site-footer p,
.site-footer span {
    display: block;
    margin: 6px 0 0;
    color: #abc1b6;
    font-size: clamp(12px, 2.5vw, 14px);
}

/* ─── General responsive ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .admin-sidebar {
        transform: translateX(-260px);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0 !important;
    }
}

@media (max-width: 820px) {
    /* Header: show hamburger, hide desktop nav */
    .nav-toggle {
        display: flex;
    }

    /* Dropdown menu */
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 49;
        flex-direction: column;
        gap: 0;
        background: #0d3324;
        border-top: 1px solid rgba(255,255,255,.10);
        padding: 8px 12px 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,.28);
    }

    .site-nav.nav-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 14px;
        border-radius: 8px;
        font-size: 15px;
        width: 100%;
    }

    /* Position header relatively so dropdown positions correctly */
    .site-header {
        position: sticky;
        top: 0;
        flex-wrap: nowrap;
    }

    /* Body text fluid */
    h1 { font-size: clamp(28px, 8vw, 60px); }
    h2 { font-size: clamp(20px, 5.5vw, 36px); }
    h3 { font-size: clamp(16px, 4vw, 22px); }
    p  { font-size: clamp(13px, 3.5vw, 16px); }

    .hero {
        min-height: 60vh;
        padding: 40px clamp(14px, 5vw, 40px);
        align-items: center;
    }

    .hero p { font-size: clamp(14px, 3.8vw, 18px); }

    .band,
    .content {
        padding: 32px clamp(14px, 4vw, 36px);
    }

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

    .split,
    .signin-choice-grid,
    .tenant-layout,
    .tenant-hero,
    .tenant-search {
        grid-template-columns: 1fr;
    }

    .tenant-menu {
        position: static;
    }

    .tenant-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-sidebar {
        position: static;
        width: auto;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .auth-card {
        max-height: none;
        overflow: visible;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .auth-brand-panel {
        min-height: 200px;
        padding: 28px 20px !important;
    }

    .auth-brand-panel img {
        width: 72px;
        height: 72px;
    }

    .auth-brand-panel h1 {
        font-size: clamp(22px, 6vw, 34px);
    }

    .auth-form-panel {
        max-height: none;
        overflow: visible;
        padding: 24px 18px;
    }

    .site-footer {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .stat strong { font-size: clamp(22px, 6vw, 30px); }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .page-title {
        padding: 28px 14px 18px;
    }

    .page-title h1 {
        font-size: clamp(24px, 6vw, 42px);
    }

    .back-btn {
        top: 12px;
        left: 12px;
        padding: 7px 12px;
        font-size: 13px;
    }
}

/* Extra small phones (≤480px) */
@media (max-width: 480px) {
    .filter {
        grid-template-columns: 1fr;
    }

    .tenant-stat-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        border-radius: 0;
        width: 100%;
        min-height: 100vh;
    }

    .login-body {
        padding: 0;
        align-items: flex-start;
    }

    .auth-photo-body {
        background-attachment: scroll;
    }

    .admin-login-card {
        border-radius: 12px;
        padding: 28px 20px;
    }

    .signin-choice {
        padding: 14px;
    }

    input,
    select,
    textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .btn,
    button,
    input[type="submit"] {
        min-height: 48px; /* larger tap targets */
        font-size: 15px;
    }

    .pill {
        font-size: 12px;
        padding: 5px 8px;
    }

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

    .admin-topbar-title {
        font-size: 14px;
    }

    .admin-user-badge span:not(.avatar) {
        display: none; /* show only avatar on tiny screens */
    }
}
