:root {
    --g950: #103d2b;
    --g900: #145337;
    --g800: #176b45;
    --g700: #218454;
    --g600: #2c9a65;
    --ink: #172820;
    --muted: #718078;
    --line: #e3ebe6
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.65
}

body.locked {
    overflow: hidden
}

button,
input,
select {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

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

.container {
    width: min(1140px, calc(100% - 48px));
    margin: auto
}

.header {
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffffed;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line)
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #2c9a65, #145337);
    color: white;
    font: 800 23px Manrope;
    box-shadow: 0 7px 17px #21845433
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2
}

.brand-copy b {
    font: 800 17px Manrope;
    color: var(--g900);
    letter-spacing: .04em
}

.brand-copy small {
    margin-top: 4px;
    color: #7a8980;
    font-size: 10px
}

nav {
    display: flex;
    align-items: center;
    gap: 30px
}

nav>a {
    font-size: 13px;
    font-weight: 600;
    color: #53645a
}

nav>a:hover,
.text-link:hover {
    color: var(--g700)
}

.btn {
    min-height: 47px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s
}

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

.primary {
    background: var(--g800);
    color: #fff;
    box-shadow: 0 8px 18px #176b4529
}

.primary:hover {
    background: var(--g900)
}

.outline {
    min-height: 40px;
    padding: 0 16px;
    color: var(--g800);
    background: #fff;
    border-color: #c9dfd1
}

.light {
    background: #ffffffbd;
    border-color: #ffffff;
    color: var(--g900)
}

.white {
    background: #fff;
    color: var(--g900)
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: var(--g900);
    font-size: 25px
}

.hero {
    padding: 80px 0;
    background: linear-gradient(112deg, #f3faf5, #e3f1e7);
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center
}

.eyebrow {
    color: var(--g700);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em
}

.hero h1 {
    margin: 19px 0;
    color: var(--g950);
    font: 800 clamp(42px, 5.2vw, 65px)/1.12 Manrope;
    letter-spacing: -.055em
}

.hero h1 em,
h2 em {
    color: var(--g600);
    font-style: normal
}

.lead {
    max-width: 520px;
    color: #62736a;
    font-size: 15px;
    line-height: 1.9
}

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

.note {
    margin-top: 27px;
    color: #75847b;
    font-size: 11px
}

.village-art {
    height: 370px;
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(#d9eee0, #eaf5e9 65%, #cce5d1);
    box-shadow: 0 24px 55px #1f5e3a1f
}

.sun {
    position: absolute;
    right: 75px;
    top: 45px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #f6d98e;
    box-shadow: 0 0 0 15px #f6d98e2e
}

.cloud {
    position: absolute;
    width: 75px;
    height: 19px;
    border-radius: 30px;
    background: #ffffffb8
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    bottom: 4px;
    border-radius: 50%;
    background: inherit
}

.cloud:before {
    left: 13px;
    width: 29px;
    height: 29px
}

.cloud:after {
    left: 35px;
    width: 22px;
    height: 22px
}

.c1 {
    top: 75px;
    left: 60px
}

.c2 {
    top: 130px;
    right: 30px;
    transform: scale(.7)
}

.hill {
    position: absolute;
    width: 130%;
    height: 220px;
    left: -15%;
    border-radius: 50% 50% 0 0
}

.h1 {
    bottom: 40px;
    background: #a8d4b2;
    transform: rotate(-7deg)
}

.h2 {
    bottom: -75px;
    left: -22%;
    background: #64ae7b;
    transform: rotate(8deg)
}

.house {
    position: absolute;
    z-index: 3;
    bottom: 115px;
    width: 75px;
    height: 58px;
    background: #f7f1df;
    border: 3px solid white;
    border-radius: 3px
}

.house:before {
    content: '';
    position: absolute;
    left: -8px;
    top: -25px;
    width: 84px;
    height: 38px;
    background: #b76e4c;
    clip-path: polygon(50% 0, 100% 100%, 0 100%)
}

.house i {
    position: absolute;
    bottom: 0;
    left: 28px;
    width: 17px;
    height: 29px;
    background: #9b704d
}

.house.a {
    left: 23%
}

.house.b {
    right: 19%;
    bottom: 135px;
    transform: scale(.75)
}

.tree {
    position: absolute;
    z-index: 4;
    bottom: 95px;
    width: 20px;
    height: 52px;
    background: #875d3d;
    border-radius: 4px
}

.tree:before,
.tree:after {
    content: '';
    position: absolute;
    left: -13px;
    top: -35px;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: #38875a
}

.tree:after {
    left: 2px;
    top: -48px;
    width: 34px;
    height: 34px;
    background: #4d9c68
}

.t1 {
    left: 12%
}

.t2 {
    right: 9%;
    transform: scale(1.1)
}

.art-tag {
    position: absolute;
    z-index: 5;
    bottom: 22px;
    left: 23px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    background: #ffffffed;
    box-shadow: 0 8px 25px #1446281a;
    color: var(--g700);
    font-size: 23px
}

.art-tag span,
.visual-tag span {
    display: flex;
    flex-direction: column;
    line-height: 1.4
}

.art-tag b,
.visual-tag b {
    font-size: 12px;
    color: var(--g950)
}

.art-tag small,
.visual-tag small {
    font-size: 10px;
    color: #809087
}

.trust {
    padding: 24px 0;
    border-bottom: 1px solid var(--line)
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr)
}

.trust-grid>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--line)
}

.trust-grid>div:last-child {
    border: 0
}

.trust-grid b {
    font: 700 14px Manrope;
    color: var(--g900)
}

.trust-grid small {
    font-size: 11px;
    color: #8a968f
}

.section {
    padding: 90px 0
}

.soft {
    background: #f7faf8
}

.split {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: center
}

.visual {
    height: 340px;
    position: relative;
    display: grid;
    place-items: center
}

.visual-main {
    position: absolute;
    left: 20px;
    top: 25px;
    width: 285px;
    height: 270px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 19px;
    color: white;
    background: linear-gradient(145deg, #2e8c5b, #145337);
    box-shadow: 0 18px 55px #16402b1a
}

.visual-main>span {
    position: absolute;
    top: 25px;
    font-size: 60px;
    color: #d5f1dd
}

.visual-main b {
    font: 800 25px/1.25 Manrope
}

.visual-main small {
    margin-top: 12px;
    color: #c5e6d0;
    font-size: 10px
}

.visual-tag {
    position: absolute;
    right: 0;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 17px;
    border-radius: 13px;
    background: white;
    box-shadow: 0 12px 35px #16402b1a
}

.visual-tag>span:first-child {
    font-size: 22px
}

.split h2,
.section-head h2 {
    margin: 14px 0;
    color: var(--g950);
    font: 800 clamp(29px, 3.2vw, 40px)/1.25 Manrope;
    letter-spacing: -.04em
}

.split p {
    color: #728078;
    font-size: 13px;
    line-height: 1.9
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--g700);
    font-size: 12px;
    font-weight: 800
}

.section-head {
    max-width: 620px;
    margin: 0 auto 42px;
    text-align: center
}

.section-head p {
    color: #829087;
    font-size: 13px
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px
}

.cards article {
    min-height: 215px;
    padding: 24px 20px;
    background: white;
    border: 1px solid #e9efeb;
    border-radius: 14px;
    transition: .2s
}

.cards article:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 55px #16402b1a
}

.ico {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 20px
}

.green {
    background: #e8f5ed;
    color: #218454
}

.yellow {
    background: #fbf3df;
    color: #b17b19
}

.blue {
    background: #e8f3f8;
    color: #397b9b
}

.purple {
    background: #f0ebf8;
    color: #7961a6
}

.cards h3,
.steps h3 {
    margin: 18px 0 8px;
    color: var(--g950);
    font: 700 15px Manrope
}

.cards p,
.steps p {
    margin: 0;
    color: #849188;
    font-size: 11px;
    line-height: 1.8
}

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

.steps article {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff
}

.steps article>b {
    position: absolute;
    top: 17px;
    right: 20px;
    color: #d7e8dc;
    font: 800 25px Manrope
}

.steps article>span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #e8f5ed;
    color: var(--g700);
    font-size: 22px
}

.cta {
    padding: 65px 0;
    background: linear-gradient(110deg, #145337, #218454);
    color: white
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.cta .eyebrow {
    color: #bce3c9
}

.cta h2 {
    margin: 12px 0 8px;
    font: 800 33px/1.25 Manrope
}

.cta p {
    margin: 0;
    color: #c4e0cd;
    font-size: 12px
}

footer {
    padding: 38px 0 17px;
    background: #102f23;
    color: white
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 25px;
    padding-bottom: 28px
}

.footer-brand .brand-copy b {
    color: white
}

.footer-brand .brand-copy small {
    color: #a8bdb0
}

.footer-main>p {
    max-width: 310px;
    color: #a8bdb0;
    font-size: 10px
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 16px
}

.footer-links a,
.footer-links button {
    padding: 0;
    border: 0;
    background: none;
    color: #c3d4c9;
    font-size: 10px
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #ffffff20;
    color: #829b8c;
    font-size: 9px
}

.backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    background: #081c12aa;
    backdrop-filter: blur(5px)
}

.backdrop.open {
    display: flex
}

.modal {
    position: relative;
    width: min(590px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 30px 32px 22px;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 25px 80px #0004
}

.close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f2;
    color: #64746a;
    font-size: 23px
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 30px
}

.modal-title h2 {
    margin: 3px 0 0;
    color: var(--g950);
    font: 800 20px Manrope
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 24px 0 17px;
    padding: 4px;
    border-radius: 10px;
    background: #f1f6f2
}

.tab {
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #75837a;
    font-size: 12px;
    font-weight: 700
}

.tab.active {
    background: white;
    color: var(--g900);
    box-shadow: 0 2px 8px #19462a14
}

.mode {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #c1cbc4;
    font-size: 12px
}

.mode-link {
    padding: 0;
    border: 0;
    background: none;
    color: #8a978f;
    font-size: 12px;
    font-weight: 700
}

.mode-link.active {
    color: var(--g800)
}

.form {
    display: flex;
    flex-direction: column;
    gap: 13px
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #53635a;
    font-size: 11px;
    font-weight: 700
}

.form input,
.form select {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    outline: none;
    border: 1px solid #dfe8e2;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 400
}

.form input:focus,
.form select:focus {
    border-color: #65ae80;
    box-shadow: 0 0 0 3px #2c9a651a
}

.form select:disabled {
    background: #f5f7f5;
    color: #9ba69f
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px
}

.wide {
    grid-column: span 2
}

.hint {
    margin: -2px 0 0;
    color: #89968e;
    font-size: 10px;
    line-height: 1.6
}

.full {
    width: 100%;
    margin-top: 4px
}

.btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none
}

.notice {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #f0e2bd;
    border-radius: 9px;
    background: #fffaf0
}

.notice b {
    color: #8d681f;
    font-size: 11px
}

.notice span {
    color: #8e8063;
    font-size: 10px
}

.message {
    display: none;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.6
}

.message:not(:empty) {
    display: block
}

.message.error {
    color: #9b3030;
    background: #fff0f0
}

.message.success {
    color: #17633c;
    background: #eaf7ee
}

.message.info {
    color: #536b5c;
    background: #f1f7f3
}

.footnote {
    margin: 14px 0 0;
    color: #a0aaa3;
    text-align: center;
    font-size: 9px
}

.hidden {
    display: none !important
}

@media(max-width:900px) {
    nav {
        gap: 17px
    }

    .hero-grid {
        gap: 22px
    }

    .village-art {
        height: 330px
    }

    .split {
        gap: 42px
    }

    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-main {
        grid-template-columns: 1fr 1fr
    }

    .footer-links {
        grid-column: 1/-1;
        justify-content: flex-start
    }
}

@media(max-width:680px) {
    .container {
        width: min(100% - 34px, 520px)
    }

    .header {
        height: 70px
    }

    .menu-toggle {
        display: block
    }

    nav {
        position: absolute;
        top: 69px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 22px 20px;
        background: white;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 20px #143c2814
    }

    nav.show {
        display: flex
    }

    nav>a {
        padding: 10px 0
    }

    .hero {
        padding: 52px 0 46px
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 57px)
    }

    .lead {
        font-size: 13px
    }

    .village-art {
        height: 280px;
        margin-top: 10px
    }

    .trust {
        padding: 18px 0
    }

    .trust-grid b {
        font-size: 11px
    }

    .trust-grid small {
        font-size: 9px;
        text-align: center
    }

    .section {
        padding: 65px 0
    }

    .split {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .visual {
        height: 310px
    }

    .visual-main {
        left: 3%
    }

    .visual-tag {
        right: 0
    }

    .split h2,
    .section-head h2 {
        font-size: 30px
    }

    .section-head {
        margin-bottom: 28px
    }

    .cards {
        gap: 11px
    }

    .cards article {
        min-height: 200px;
        padding: 18px 14px
    }

    .cards h3 {
        font-size: 13px
    }

    .cards p {
        font-size: 10px
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .steps article {
        padding: 22px
    }

    .cta {
        padding: 45px 0
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .cta h2 {
        font-size: 29px
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .footer-main>p {
        margin: 0
    }

    .footer-links {
        flex-wrap: wrap
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px
    }

    .modal {
        padding: 24px 18px 19px
    }

    .modal-title h2 {
        font-size: 17px
    }
}

@media(max-width:390px) {
    .form-grid {
        grid-template-columns: 1fr
    }

    .wide {
        grid-column: auto
    }

    .cards {
        grid-template-columns: 1fr
    }

    .cards article {
        min-height: auto
    }

    .actions {
        flex-wrap: wrap
    }
}

/* Google OAuth button */
.google-btn {
    background: #fff;
    color: #26352c;
    border: 1px solid #dfe8e2;
    box-shadow: 0 2px 8px #00000008;
}

.google-btn:hover {
    background: #f8faf8;
    border-color: #b9cbbf;
}

.google-mark {
    font-size: 20px;
    font-weight: 800;
    color: #4285f4;
    font-family: Arial, sans-serif;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 17px 0;
    color: #9aa59e;
    font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3ebe6;
}

/* =========================================
   ROLE-BASED DASHBOARD VIEW
========================================= */
body.dashboard-active {
    background: #f5f8f6;
}

body.dashboard-active > .header,
body.dashboard-active > main,
body.dashboard-active > footer {
    display: none !important;
}

.dashboard-view {
    min-height: 100vh;
    background:
        radial-gradient(circle at 90% 8%, #e4f3e9 0, transparent 28rem),
        #f5f8f6;
}

.dashboard-header {
    min-height: 76px;
    padding: 12px max(24px, calc((100% - 1140px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #ffffffed;
    border-bottom: 1px solid var(--line);
}

.dashboard-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    color: #64746a;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-main {
    width: min(100% - 48px, 1000px);
    margin: 0 auto;
    padding: 42px 0 60px;
}

.dashboard-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a978f;
    font-size: 11px;
    font-weight: 600;
}

.dashboard-breadcrumb span:last-child {
    color: var(--g800);
}

.dashboard-welcome {
    margin: 24px 0 28px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #dcebe1;
    border-radius: 20px;
    background: linear-gradient(115deg, #ffffff, #edf7f0);
    box-shadow: 0 16px 45px #17472c0a;
}

.dashboard-welcome h1 {
    margin: 10px 0 8px;
    color: var(--g950);
    font: 800 clamp(25px, 4vw, 36px)/1.2 Manrope;
    letter-spacing: -.04em;
}

.dashboard-welcome p {
    margin: 0;
    color: #728078;
    font-size: 13px;
}

.dashboard-role-mark {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #e1f2e7;
    color: var(--g700);
    font-size: 38px;
}

.dashboard-content-card {
    min-height: 210px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    border: 1px solid #e4ece7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px #17472c08;
}

.dashboard-status-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eaf5ed;
    color: var(--g700);
    font-size: 23px;
}

.dashboard-status-label {
    color: var(--g700);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
}

.dashboard-content-copy h2 {
    margin: 8px 0;
    color: var(--g950);
    font: 800 21px/1.35 Manrope;
}

.dashboard-content-copy p {
    max-width: 650px;
    margin: 0;
    color: #78867e;
    font-size: 13px;
    line-height: 1.8;
}

.dashboard-footer-note {
    margin: 18px 2px 0;
    color: #97a29b;
    font-size: 10px;
}

@media(max-width: 600px) {
    .dashboard-header {
        padding: 12px 17px;
    }

    .dashboard-account {
        gap: 9px;
        font-size: 10px;
    }

    .dashboard-account .btn {
        min-height: 38px;
        padding: 0 11px;
        font-size: 11px;
    }

    .dashboard-main {
        width: min(100% - 34px, 520px);
        padding-top: 28px;
    }

    .dashboard-welcome {
        padding: 25px 22px;
    }

    .dashboard-role-mark {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 16px;
        font-size: 28px;
    }

    .dashboard-content-card {
        padding: 23px 19px;
        gap: 14px;
    }

    .dashboard-content-copy h2 {
        font-size: 18px;
    }
}

@media(max-width: 390px) {
    .dashboard-header .brand-copy small {
        display: none;
    }

    .dashboard-account {
        flex-direction: column;
        align-items: flex-end;
    }
}


/* =========================================
   GRAMSATHI RESIDENT DASHBOARD & PROFILE
========================================= */
.resident-profile-gate, .resident-dashboard { margin-top: 28px; }
.resident-profile-gate { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px #17472c08; }
.resident-section-heading { margin: 24px 0 18px; }
.resident-section-heading h2 { margin: 7px 0; color: var(--g950); font: 800 25px/1.3 Manrope; }
.resident-section-heading p { margin: 0; color: #78867e; font-size: 12px; line-height: 1.8; }
.resident-profile-form { margin-top: 20px; }
.resident-profile-form input[type=file] { padding: 10px; min-height: 46px; }
.verification-banner { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:18px 20px; border:1px solid #f0dfb8; border-radius:14px; background:#fffaf0; }
.verification-banner.verified { border-color:#c9e7d2; background:#f0faf3; }
.verification-banner strong { color:#795b1b; font:800 14px Manrope; }
.verification-banner.verified strong { color:#17633c; }
.verification-banner p { margin:4px 0 0; color:#81745b; font-size:11px; }
.verification-banner.verified p { color:#5d8069; }
.verification-pill { flex:0 0 auto; padding:6px 11px; border-radius:30px; background:#f4e7c9; color:#795b1b; font-size:10px; font-weight:800; text-transform:capitalize; }
.verified .verification-pill { background:#d9f0e0; color:#17633c; }
.resident-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:16px 0 30px; }
.resident-summary-card { padding:18px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.resident-summary-card span { display:block; color:#829087; font-size:9px; font-weight:800; letter-spacing:.12em; }
.resident-summary-card strong { display:block; margin-top:7px; color:var(--g950); font:700 15px Manrope; }
.resident-feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.resident-feature { position:relative; min-height:145px; padding:19px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; text-align:left; border:1px solid #e5ede8; border-radius:14px; background:#fff; cursor:pointer; transition:.2s; }
.resident-feature:hover { border-color:#9bc9aa; transform:translateY(-2px); box-shadow:0 10px 25px #17472c0c; }
.resident-feature>span { font-size:23px; }
.resident-feature strong { color:var(--g950); font:700 13px Manrope; }
.resident-feature small { color:#849188; font-size:10px; line-height:1.6; }
.feature-lock { position:absolute; top:13px; right:13px; font-style:normal; font-size:13px; }
.resident-detail { margin-top:20px; padding:24px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.resident-detail h2 { margin:18px 0 6px; color:var(--g950); font:800 22px Manrope; }
.resident-detail>p { color:#78867e; font-size:12px; }
.resident-empty-state, .resident-profile-read { margin-top:16px; padding:18px; border-radius:12px; background:#f6faf7; color:#6d7e73; font-size:12px; line-height:1.8; }
.resident-profile-read p { margin:5px 0; }
.resident-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.resident-action { min-height:90px; border:1px solid #dce9e0; border-radius:12px; background:#f7fbf8; color:var(--g900); font:700 13px Manrope; cursor:pointer; }
.resident-access-notice { position:fixed; z-index:500; left:50%; bottom:24px; transform:translateX(-50%); width:min(460px,calc(100% - 30px)); padding:18px; border:1px solid #f0dfb8; border-radius:14px; background:#fff; box-shadow:0 15px 45px #102f2340; }
.resident-access-notice strong { color:#795b1b; font:800 14px Manrope; }
.resident-access-notice p { color:#6f796f; font-size:12px; }
.resident-access-notice .btn { min-height:35px; }
@media(max-width:800px) { .resident-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .resident-profile-gate { padding:20px 16px; } .resident-summary-grid,.resident-action-grid { grid-template-columns:1fr; } .resident-feature-grid { grid-template-columns:1fr 1fr; gap:10px; } .resident-feature { min-height:135px; padding:14px; } .resident-feature strong { font-size:12px; } .resident-feature small { font-size:9px; } .verification-banner { align-items:flex-start; flex-direction:column; } }
@media(max-width:390px) { .resident-feature-grid { grid-template-columns:1fr; } }

/* =========================================
   OFFICIAL ROLE DASHBOARDS
========================================= */
.official-dashboard{display:grid;gap:22px;margin-top:24px}
.official-scope-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px 28px;border:1px solid var(--line,#e5e7eb);border-radius:20px;background:linear-gradient(135deg,#f4faf6,#fff)}
.official-scope-card h2{margin:8px 0 6px;font-family:Manrope,sans-serif;font-size:clamp(20px,3vw,27px)}
.official-scope-card p{margin:0;color:var(--muted,#64748b);line-height:1.6}
.official-scope-icon{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:16px;background:#e2f2e8;color:#176b45;font-size:30px}
.official-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px}
.official-metric{display:grid;gap:9px;padding:20px;border:1px solid var(--line,#e5e7eb);border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.official-metric span{color:#526174;font-size:13px;font-weight:700}
.official-metric strong{color:#173b2b;font-family:Manrope,sans-serif;font-size:30px;line-height:1.1}
.official-metric small{color:#778397;font-size:11px;line-height:1.45}
.official-workspace-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
.official-work-card{padding:22px;border:1px solid var(--line,#e5e7eb);border-radius:18px;background:#fff}
.official-work-card h3{margin:8px 0 14px;font-family:Manrope,sans-serif;font-size:18px}
.official-work-card ul{margin:0;padding-left:20px;color:#536174;line-height:1.9}
.official-work-card p{color:#64748b;line-height:1.7}
.official-area-list{display:grid;gap:9px;margin-top:12px}
.official-area-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;background:#f7faf8;font-size:13px}
.official-area-list span{color:#718096}
.official-area-list strong{text-align:right;color:#253b30}
.official-dashboard-note{margin:0;color:#778397;font-size:12px;line-height:1.6}
@media(max-width:680px){.official-scope-card{padding:20px}.official-workspace-grid{grid-template-columns:1fr}.official-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.official-metric{padding:16px}.official-metric strong{font-size:26px}}


/* =========================================
   VPI PUBLIC FEATURE SECTIONS + MEDIA
========================================= */
.feature-section { background: #f7faf8; }
.cm-section { background: #fff; }
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}
.feature-grid.reverse { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.feature-photo-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #e8f1eb;
    min-height: 280px;
    box-shadow: 0 18px 48px rgba(16, 61, 43, .10);
}
.feature-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
}
.photo-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(16, 40, 28, .78);
    font-size: 12px;
}
.feature-copy h2 { margin: 10px 0 14px; color: var(--g950); font: 800 clamp(30px, 4vw, 46px)/1.12 Manrope, sans-serif; }
.feature-copy p { color: var(--muted); line-height: 1.8; }
.feature-copy .cm-role { color: var(--g800); font-weight: 700; }
.muted-copy { font-size: 13px; }
.text-link { color: var(--g700); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.aim-section { background: #f7faf8; }
.aim-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.aim-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}
.aim-card > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #eaf4ee; color: var(--g700); font-size: 22px; }
.aim-card h3 { margin: 18px 0 8px; color: var(--ink); }
.aim-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.media-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.gallery-item { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8f1eb; }
.gallery-item figcaption { padding: 12px 14px; color: var(--ink); font-weight: 700; font-size: 14px; }
.gallery-empty { grid-column: 1 / -1; padding: 30px; border: 1px dashed #bfd2c5; border-radius: 16px; text-align: center; color: var(--muted); background: #f8fbf9; }

/* =========================================
   SEPARATE TEAM VIEW
========================================= */
.team-page { min-height: 100vh; background: #f7faf8; }
.team-page-top { background: #fff; border-bottom: 1px solid var(--line); }
.team-page-nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.team-page-main { padding: 64px 0 84px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin: 34px auto 0; }
.team-card { padding: 28px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 34px rgba(16,61,43,.06); }
.team-photo, .team-photo-placeholder { display: block; width: 150px; height: 150px; margin: 0 auto 20px; border-radius: 50%; object-fit: cover; }
.team-photo-placeholder { display: grid; place-items: center; color: var(--g700); background: #e6f1e9; border: 1px dashed #a9c9b4; font: 800 34px Manrope, sans-serif; }
.team-card h2 { margin: 0 0 7px; color: var(--g950); font: 800 20px Manrope, sans-serif; }
.team-card p { margin: 0; color: var(--muted); }
.team-credit { margin: 34px 0 0; text-align: center; color: var(--muted); }

/* =========================================
   ADMIN MEDIA MANAGER
========================================= */
.site-media-manager { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #f8fbf9; }
.media-manager-heading h2 { margin: 7px 0; color: var(--g950); }
.media-manager-heading p { color: var(--muted); }
.media-admin-form { margin-top: 20px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.media-admin-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.media-admin-form label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.media-admin-form input:not([type=checkbox]), .media-admin-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff; }
.media-admin-form .wide { grid-column: 1 / -1; }
.media-admin-form .media-active-toggle { flex-direction: row; align-items: center; }
.media-admin-form button { margin-top: 14px; }
.media-admin-message { min-height: 20px; margin: 10px 0 0; font-size: 13px; }
.media-admin-message.error { color: #b42318; }
.media-admin-message.success { color: var(--g700); }
.media-admin-list-wrap { margin-top: 26px; }
.site-media-admin-list { display: grid; gap: 10px; }
.site-media-admin-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.site-media-admin-item > img { width: 76px; height: 64px; border-radius: 8px; object-fit: cover; background: #e8f1eb; }
.site-media-admin-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.site-media-admin-copy strong { color: var(--ink); overflow-wrap: anywhere; }
.site-media-admin-copy span { color: var(--muted); font-size: 12px; }
.site-media-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.site-media-admin-actions .btn { padding: 8px 10px; font-size: 12px; }

@media (max-width: 760px) {
    .feature-grid, .feature-grid.reverse { grid-template-columns: 1fr; }
    .feature-grid.reverse .feature-copy { order: 2; }
    .feature-grid.reverse .feature-photo-wrap { order: 1; }
    .aim-grid { grid-template-columns: 1fr; }
    .media-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-grid { grid-template-columns: 1fr; max-width: 460px; }
    .team-page-nav { min-height: 70px; }
    .team-page-main { padding: 42px 0 60px; }
}
@media (max-width: 520px) {
    .media-gallery { grid-template-columns: 1fr; }
    .media-admin-form .form-grid { grid-template-columns: 1fr; }
    .media-admin-form .wide { grid-column: auto; }
    .site-media-admin-item { align-items: flex-start; flex-wrap: wrap; }
    .site-media-admin-copy { min-width: calc(100% - 100px); }
    .site-media-admin-actions { width: 100%; }
}

.village-art {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
    border-radius: 18px;
}

.village-photo {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    display: block;
}

.art-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}



/* =========================================
   RESIDENT MANAGEMENT SYSTEM
   Shared Official Dashboard
========================================= */

.resident-management {
    width: 100%;
    margin: 28px 0;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e5eee8;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(20, 60, 40, 0.04);
}

.resident-management-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.resident-management-heading h2 {
    margin: 7px 0;
    color: #174b35;
    font-size: 25px;
}

.resident-management-heading p {
    margin: 0;
    color: #718078;
    font-size: 14px;
    line-height: 1.6;
}

.resident-management-filters {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
    margin-bottom: 20px;
}

.resident-management-filters input,
.resident-management-filters select {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #dce8df;
    border-radius: 10px;
    background: #fbfdfb;
    color: #24382d;
    font: inherit;
    outline: none;
}

.resident-management-filters input:focus,
.resident-management-filters select:focus {
    border-color: #238653;
    box-shadow: 0 0 0 3px rgba(35, 134, 83, 0.10);
}

.resident-management-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 22px;
}

.resident-management-summary article {
    padding: 17px;
    background: #f6faf7;
    border: 1px solid #e5eee7;
    border-radius: 12px;
}

.resident-management-summary article span {
    display: block;
    color: #718078;
    font-size: 12px;
    margin-bottom: 9px;
}

.resident-management-summary article strong {
    color: #174b35;
    font-size: 25px;
}

.resident-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e6eee8;
    border-radius: 12px;
}

.resident-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    text-align: left;
}

.resident-table th {
    padding: 14px;
    background: #f4f8f5;
    color: #41604c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.resident-table td {
    padding: 15px 14px;
    border-top: 1px solid #edf1ed;
    color: #405348;
    font-size: 13px;
    vertical-align: middle;
}

.resident-table tbody tr:hover {
    background: #f9fcfa;
}

.resident-management-message {
    min-height: 20px;
    margin: 10px 0;
    color: #247346;
    font-size: 13px;
}

.resident-management-message.error {
    color: #b42318;
}

.resident-management-message.success {
    color: #247346;
}

.resident-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}

.resident-status.unverified {
    background: #fff5dc;
    color: #936400;
}

.resident-status.verified {
    background: #e4f6e9;
    color: #247346;
}

.resident-status.rejected {
    background: #fde9e7;
    color: #b42318;
}

.resident-table-action {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.resident-table-action button {
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 12px;
}

/* Resident details modal */

.resident-details-modal {
    width: min(650px, calc(100% - 30px));
    max-height: 88vh;
    overflow-y: auto;
}

.resident-details-modal h2 {
    color: #174b35;
    margin: 12px 0 20px;
}

.resident-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.resident-detail-item {
    padding: 13px;
    background: #f6faf7;
    border-radius: 9px;
    border: 1px solid #e5eee7;
    overflow-wrap: anywhere;
}

.resident-detail-item span {
    display: block;
    color: #78877d;
    font-size: 11px;
    margin-bottom: 6px;
}

.resident-detail-item strong {
    color: #254c35;
    font-size: 13px;
}

.resident-document-preview {
    margin-top: 22px;
    padding: 15px;
    background: #f7faf8;
    border: 1px solid #e4ece6;
    border-radius: 12px;
}

.resident-document-preview h3 {
    margin: 0 0 12px;
    color: #174b35;
    font-size: 16px;
}

.resident-document-preview iframe {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 8px;
    background: white;
}

.resident-document-preview img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    margin: auto;
    border-radius: 8px;
    object-fit: contain;
}

.resident-review-controls {
    margin-top: 20px;
}

.resident-review-controls textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dce8df;
    border-radius: 9px;
    resize: vertical;
    font: inherit;
}

.resident-review-controls > div {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 13px;
}

/* Responsive layout */

@media (max-width: 700px) {
    .resident-management {
        padding: 17px;
    }

    .resident-management-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .resident-management-filters {
        grid-template-columns: 1fr;
    }

    .resident-management-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resident-details-grid {
        grid-template-columns: 1fr;
    }

    .resident-review-controls > div {
        flex-direction: column;
    }

    .resident-review-controls button {
        width: 100%;
    }
}


.resident-review-history {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.resident-history-item {
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.resident-history-item strong {
    display: block;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.resident-history-item p {
    margin: 6px 0;
}

.resident-history-item small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}