:root {
    --ink: #172019;
    --muted: #647067;
    --paper: #f6f5ef;
    --card: #ffffff;
    --green: #1f7a45;
    --green-dark: #155d34;
    --lime: #c8ef65;
    --line: #dfe4dd;
    --danger: #b92f2f;
    --shadow: 0 24px 70px rgba(23, 32, 25, 0.13);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

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

button, input { font: inherit; }
a { color: inherit; }

.landing {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.brand-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(34px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: #173f29;
}

.brand-panel::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        radial-gradient(circle at 76% 14%, rgba(200, 239, 101, .2), transparent 24%),
        linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 48px 48px;
}

.brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(34vw, 490px);
    aspect-ratio: 1;
    right: -13%;
    bottom: -16%;
    border: clamp(50px, 7vw, 100px) solid rgba(200, 239, 101, .08);
    border-radius: 50%;
}

.logo {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
    font-size: clamp(1.6rem, 2.3vw, 2.1rem);
    font-weight: 850;
    letter-spacing: -.06em;
}

.logo span span { color: var(--lime); }
.logo-mark {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #173f29;
    background: var(--lime);
    font-size: 1.45rem;
    letter-spacing: -.08em;
    transform: rotate(-4deg);
}

.brand-copy { max-width: 720px; margin: 9vh 0; }
.eyebrow, .auth-kicker {
    margin: 0 0 14px;
    color: var(--lime);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(2.35rem, 4.35vw, 4.8rem);
    line-height: .94;
    letter-spacing: -.07em;
}

.brand-copy h1 span { color: var(--lime); }
.lead {
    max-width: 590px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.72);
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.65;
}

.year-card {
    width: fit-content;
    max-width: 590px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 19px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.year-card-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(200,239,101,.14);
}

.year-card strong, .year-card span { display: block; }
.year-card strong { font-size: .96rem; }
.year-card div span { margin-top: 4px; color: rgba(255,255,255,.58); font-size: .82rem; }

.auth-panel {
    padding: 42px clamp(24px, 5vw, 84px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(100%, 480px);
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(23, 32, 25, .06);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.auth-heading h2 { margin: 0; font-size: clamp(1.65rem, 2.5vw, 2.15rem); letter-spacing: -.045em; }
.auth-heading > p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.auth-kicker { color: var(--green); }

.form-tabs {
    margin: 28px 0 25px;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    border-radius: 13px;
    background: #f0f2ed;
}

.form-tab {
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 750;
}

.form-tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(23,32,25,.08); }
.auth-form { display: grid; gap: 18px; }
.auth-form[hidden] { display: none; }
.field { display: grid; gap: 8px; }
.field label { font-size: .87rem; font-weight: 720; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row a, .checkbox-field a { color: var(--green); font-size: .82rem; font-weight: 700; text-decoration: none; }

.field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    color: var(--ink);
    background: #fbfcfa;
    transition: border-color .18s, box-shadow .18s;
}

.field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,122,69,.1); }
.password-field { position: relative; }
.password-field input { padding-right: 75px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    color: var(--green);
    background: transparent;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 750;
}

.checkbox-field { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.checkbox-field input { margin-top: 3px; accent-color: var(--green); }
.primary-button {
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--green);
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(31,122,69,.2);
    transition: transform .18s, background .18s;
}

.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.moderation-note {
    margin: 23px 0 0;
    padding-top: 19px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
    text-align: center;
}

.moderation-note span { color: var(--green); font-weight: 900; }
.legal-copy { margin: 22px 0 0; color: #7b837d; font-size: .7rem; text-align: center; }

.alert {
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 11px;
    font-size: .82rem;
    line-height: 1.45;
}

.alert-error { color: #8f2525; border-color: #efcaca; background: #fff2f2; }
.alert-success { color: #185e36; border-color: #bfe2cd; background: #effaf3; }
.simple-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
    background: #173f29;
}

.simple-card {
    width: min(100%, 480px);
    padding: clamp(28px, 5vw, 46px);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.simple-card h1 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.simple-card > p:not(.auth-kicker) { color: var(--muted); line-height: 1.6; }
.simple-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; font-weight: 850; text-decoration: none; }
.simple-logo span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #173f29; background: var(--lime); }
.back-link { display: block; margin-top: 24px; color: var(--green); font-size: .85rem; font-weight: 700; text-decoration: none; }
.primary-link { margin-top: 20px; min-height: 50px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--green); font-weight: 800; text-decoration: none; }

/* Dashboard */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dashboard-page { min-height: 100vh; background: #f4f6f2; }
.dashboard-page svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-header { position: sticky; z-index: 20; top: 0; height: 74px; border-bottom: 1px solid #e1e6df; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.dashboard-header-inner { width: min(100% - 40px, 1480px); height: 100%; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(260px, 520px) 1fr; align-items: center; gap: 30px; }
.dashboard-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.35rem; font-weight: 850; letter-spacing: -.055em; }
.dashboard-logo > span:last-child span { color: var(--green); }
.dashboard-logo-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #173f29; background: var(--lime); font-size: 1.12rem; transform: rotate(-4deg); }
.dashboard-search { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #e0e5de; border-radius: 13px; color: #8a938c; background: #f7f9f6; }
.dashboard-search svg { width: 19px; }
.dashboard-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .88rem; }
.dashboard-search input::placeholder { color: #8a938c; }
.dashboard-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #e2e6e0; border-radius: 12px; color: #566159; background: #fff; }
.dashboard-profile { padding: 4px 7px 4px 4px; display: flex; align-items: center; gap: 10px; border: 1px solid #e2e6e0; border-radius: 14px; background: #fff; }
.avatar { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #173f29; background: var(--lime); font-weight: 850; }
.dashboard-profile img.avatar, .composer-card img.avatar, img.mobile-avatar { object-fit: cover; }
.profile-copy { min-width: 92px; display: grid; }
.profile-copy strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; white-space: nowrap; }
.profile-copy small { color: var(--muted); font-size: .69rem; }
.profile-chevron { width: 16px !important; color: #8a938c; }
.dashboard-shell { width: min(100% - 40px, 1480px); margin: 0 auto; display: grid; grid-template-columns: 230px minmax(420px, 1fr) 310px; gap: clamp(22px, 2.8vw, 42px); align-items: start; }
.dashboard-sidebar, .dashboard-rightbar { position: sticky; top: 98px; padding: 28px 0; }
.dashboard-nav { display: grid; gap: 7px; }
.dashboard-nav a, .dashboard-nav .disabled-nav { min-height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 13px; border-radius: 13px; color: #657068; text-decoration: none; font-size: .88rem; font-weight: 680; }
.dashboard-nav a.active { color: #fff; background: var(--green); box-shadow: 0 10px 25px rgba(31,122,69,.17); }
.dashboard-nav svg { width: 20px; }
.dashboard-nav small { margin-left: auto; padding: 3px 6px; border-radius: 6px; color: #7f8981; background: #e9ede7; font-size: .57rem; font-weight: 800; text-transform: uppercase; }
.dashboard-nav .admin-link { color: var(--green); background: #eaf4ed; }
.sidebar-topic { margin-top: 28px; padding-top: 23px; border-top: 1px solid #dde3dc; }
.sidebar-topic > p { margin: 0 0 10px; color: #8b948d; font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sidebar-topic > div { padding: 13px; display: grid; grid-template-columns: 34px 1fr; column-gap: 9px; border: 1px solid #dfe5dd; border-radius: 13px; background: #fff; }
.sidebar-topic > div span { grid-row: 1 / 3; align-self: center; font-size: 1.35rem; }
.sidebar-topic strong { font-size: .82rem; }
.sidebar-topic small { color: var(--muted); font-size: .68rem; }
.sidebar-footer { margin: 26px 13px 0; color: #98a099; font-size: .65rem; line-height: 1.65; }
.dashboard-main { min-width: 0; padding: 32px 0 80px; }
.dashboard-alert { margin: 0 0 20px; }
.dashboard-welcome { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.dashboard-eyebrow { margin: 0 0 7px; color: var(--green); font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-welcome h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -.052em; }
.dashboard-welcome > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.new-post-button { min-height: 44px; padding: 0 17px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; color: #fff; background: var(--green); font-size: .82rem; font-weight: 800; opacity: 1; }
.new-post-button svg { width: 18px; }
.composer-card { min-height: 76px; padding: 14px 16px; display: grid; grid-template-columns: 42px 1fr 40px; align-items: center; gap: 12px; border: 1px solid #e1e5df; border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(23,32,25,.045); }
.avatar-small { width: 42px; height: 42px; border-radius: 12px; }
.composer-card button { height: 43px; padding: 0 16px; border: 1px solid #e4e8e2; border-radius: 12px; color: #89928b; background: #f7f9f6; text-align: left; }
.composer-media { color: var(--green); }
.composer-media svg { width: 24px; }
.feed-toolbar { margin: 30px 0 14px; display: flex; align-items: center; justify-content: space-between; }
.feed-toolbar h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.feed-filter { padding: 3px; display: flex; gap: 2px; border-radius: 9px; background: #e9ede7; }
.feed-filter button { padding: 6px 10px; border: 0; border-radius: 7px; color: #7c857e; background: transparent; font-size: .68rem; font-weight: 750; }
.feed-filter button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 5px rgba(23,32,25,.08); }
.empty-feed { min-height: 390px; padding: 50px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e0e5de; border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 10px 35px rgba(23,32,25,.04); }
.empty-feed h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.empty-feed > p:not(.dashboard-eyebrow) { max-width: 390px; margin: 10px 0 20px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.empty-illustration { position: relative; width: 180px; height: 100px; margin-bottom: 25px; overflow: hidden; border-radius: 50px 50px 15px 15px; background: linear-gradient(#e9f5ed 0 58%, #58625a 58%); }
.road-line { position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; background: repeating-linear-gradient(90deg, var(--lime) 0 18px, transparent 18px 34px); }
.empty-sign { position: absolute; top: 16px; left: 27px; width: 35px; height: 35px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #173f29; background: var(--lime); font-weight: 900; box-shadow: 0 4px 8px rgba(23,32,25,.12); }
.empty-sign::after { content: ""; position: absolute; top: 31px; width: 3px; height: 24px; background: #fff; }
.empty-car { position: absolute; right: 28px; bottom: 12px; font-size: 2rem; }
.coming-chip { padding: 7px 11px; border-radius: 99px; color: var(--green); background: #edf7f0; font-size: .66rem; font-weight: 780; }
.dashboard-rightbar { display: grid; gap: 17px; }
.side-card { padding: 19px; border: 1px solid #e0e5de; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(23,32,25,.04); }
.side-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.side-card-heading h2 { margin: 0; font-size: .98rem; letter-spacing: -.025em; }
.trophy { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #f5f8dd; font-size: 1.1rem; }
.weekly-placeholder { margin-top: 18px; padding: 16px; display: flex; align-items: center; gap: 12px; border-radius: 13px; background: #f6f8f4; }
.weekly-placeholder > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 2px dashed #bcc5bd; border-radius: 50%; color: #96a098; font-weight: 850; }
.weekly-placeholder p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.trend-list { margin-top: 11px; display: grid; }
.trend-list > div { padding: 12px 0; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #edf0eb; }
.trend-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.trend-list > div > span { color: #a2aaa4; font-size: .68rem; font-weight: 800; }
.trend-list p, .trend-list strong, .trend-list small { display: block; margin: 0; }
.trend-list strong { font-size: .77rem; }
.trend-list small { margin-top: 3px; color: #929b94; font-size: .65rem; }
.safety-card { padding: 16px; display: flex; gap: 12px; border: 1px solid #cfe2d4; border-radius: 16px; color: #225c37; background: #ecf6ef; }
.safety-card svg { width: 23px; flex: 0 0 auto; }
.safety-card strong { font-size: .78rem; }
.safety-card p { margin: 4px 0 0; color: #587262; font-size: .68rem; line-height: 1.5; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
    .dashboard-header-inner { grid-template-columns: 220px minmax(240px, 1fr) auto; }
    .dashboard-shell { grid-template-columns: 205px minmax(420px, 1fr); }
    .dashboard-rightbar { display: none; }
}

@media (max-width: 820px) {
    .dashboard-header { height: 66px; }
    .dashboard-header-inner { width: min(100% - 28px, 760px); grid-template-columns: 1fr auto; gap: 16px; }
    .dashboard-search, .profile-copy, .profile-chevron, .icon-button { display: none; }
    .dashboard-profile { padding: 3px; border: 0; background: transparent; }
    .dashboard-shell { width: min(100% - 28px, 700px); display: block; }
    .dashboard-sidebar { display: none; }
    .dashboard-main { padding: 25px 0 100px; }
    .mobile-nav { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; height: 67px; padding: 6px 9px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 15px 45px rgba(23,32,25,.18); backdrop-filter: blur(16px); }
    .mobile-nav a, .mobile-nav > span { display: grid; place-items: center; gap: 3px; color: #8a938c; text-decoration: none; font-size: .55rem; font-weight: 750; }
    .mobile-nav .active { color: var(--green); }
    .mobile-nav svg { width: 19px; }
    .mobile-nav button { width: 45px; height: 45px; margin: -22px auto 0; display: grid; place-items: center; border: 5px solid #f4f6f2; border-radius: 15px; color: #fff; background: var(--green); opacity: 1; }
    .mobile-avatar { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: #173f29; background: var(--lime); font-size: .65rem; font-weight: 850; }
}

.post-card h3 { margin: 18px 0 0; font-size: 1.12rem; letter-spacing: -.025em; }
.post-card > video { width: 100%; max-height: 560px; display: block; object-fit: cover; border-radius: 14px; background: #101410; }
.post-location { width: fit-content; margin: -6px 0 15px; padding: 6px 9px; border-radius: 8px; color: #56715e; background: #edf6ef; font-size: .7rem; font-weight: 700; }
.post-card footer > button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 9px; color: var(--muted); background: #f1f4ef; cursor: pointer; font-size: .75rem; font-weight: 750; }
.post-inline-panel { margin-top: 12px; padding: 13px; border-radius: 12px; background: #f4f7f3; }
.post-inline-panel[hidden] { display: none; }
.post-inline-panel form { display: flex; gap: 8px; }
.post-inline-panel input, .post-inline-panel select { min-width: 0; min-height: 39px; padding: 0 10px; flex: 1; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.post-inline-panel button, .report-card button { padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: var(--green); cursor: pointer; font-weight: 750; }
.reports-section { margin-top: 28px; }
.report-card { margin-top: 10px; padding: 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border: 1px solid #ecd9d9; border-radius: 14px; background: #fff8f8; }
.report-card p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.report-card button { min-height: 38px; }
.weekly-winner { color: inherit; text-decoration: none; }
.weekly-winner p { display: grid; }
.weekly-winner small { margin-top: 3px; color: var(--green); }
.composer-field input { min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; }
.composer-field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,122,69,.1); }
.composer-field.compact { margin-top: 15px; }

/* Profile */
.profile-header-inner { grid-template-columns: 1fr auto auto; }
.back-to-feed, .profile-logout { padding: 10px 14px; border-radius: 10px; color: var(--green); text-decoration: none; font-size: .8rem; font-weight: 760; }
.profile-logout { color: #9b2929; background: #fff1f1; }
.profile-shell { width: min(100% - 40px, 1120px); margin: 0 auto; padding: 34px 0 80px; }
.profile-hero { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 14px 44px rgba(23,32,25,.06); }
.profile-cover { height: 150px; background: radial-gradient(circle at 78% 20%, rgba(200,239,101,.34), transparent 30%), linear-gradient(135deg, #173f29, #286c43); }
.profile-identity { padding: 0 30px 26px; display: flex; align-items: flex-end; gap: 18px; }
.profile-avatar-large { width: 108px; height: 108px; margin-top: -52px; flex: 0 0 auto; display: grid; place-items: center; border: 6px solid #fff; border-radius: 30px; object-fit: cover; background: var(--lime); box-shadow: 0 8px 25px rgba(23,32,25,.15); }
.profile-avatar-fallback { color: #173f29; font-size: 2.3rem; font-weight: 850; }
.profile-identity h1 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.profile-identity > div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.profile-layout { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.profile-card, .profile-summary section { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 35px rgba(23,32,25,.045); }
.profile-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.profile-section-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.profile-section-heading > span { padding: 6px 9px; border-radius: 99px; color: var(--green); background: #eaf6ee; font-size: .65rem; font-weight: 750; }
.profile-form { margin-top: 24px; }
.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-form-grid label { display: grid; gap: 7px; color: #384239; font-size: .76rem; font-weight: 750; }
.profile-form-grid input { min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fbfcfa; }
.profile-form-grid input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,122,69,.09); }
.profile-form-grid input[type="file"] { height: auto; padding: 11px; }
.profile-form-grid small { color: var(--muted); font-weight: 500; }
.profile-wide { grid-column: 1 / -1; }
.profile-form-actions { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.profile-form-actions .primary-button { padding: 0 20px; }
.remove-picture { color: var(--muted); font-size: .75rem; }
.profile-summary { display: grid; gap: 12px; }
.profile-summary dl { margin: 15px 0 0; display: grid; gap: 12px; }
.profile-summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.profile-summary dt { color: var(--muted); font-size: .73rem; }
.profile-summary dd { margin: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.profile-summary > a { padding: 14px 16px; border-radius: 13px; color: #fff; background: var(--green); text-decoration: none; text-align: center; font-size: .78rem; font-weight: 780; }
.profile-popover .profile-menu-link { margin-bottom: 7px; color: var(--green); background: #eef7f1; }

@media (max-width: 760px) {
    .profile-header-inner { grid-template-columns: 1fr auto; }
    .back-to-feed { display: none; }
    .profile-shell { width: min(100% - 28px, 700px); padding-top: 22px; }
    .profile-cover { height: 110px; }
    .profile-identity { padding: 0 20px 22px; align-items: center; }
    .profile-avatar-large { width: 88px; height: 88px; margin-top: -42px; border-radius: 24px; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-form-grid { grid-template-columns: 1fr; }
    .profile-wide { grid-column: auto; }
}

@media (max-width: 540px) {
    .dashboard-welcome { align-items: flex-start; }
    .new-post-button { width: 43px; padding: 0; justify-content: center; font-size: 0; }
    .new-post-button svg { width: 19px; }
    .composer-card { grid-template-columns: 39px 1fr; padding: 12px; }
    .avatar-small { width: 39px; height: 39px; }
    .composer-card button { padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .composer-media { display: none; }
    .empty-feed { min-height: 345px; padding: 38px 20px; }
}

@media (max-width: 900px) {
    .landing { display: block; }
    .brand-panel { min-height: auto; padding: 32px 24px 42px; }
    .brand-copy { margin: 68px 0 52px; }
    .brand-copy h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
    .auth-panel { padding: 48px 20px 28px; }
}

@media (max-width: 520px) {
    .brand-copy { margin: 56px 0 42px; }
    .year-card { align-items: flex-start; }
    .auth-card { padding: 26px 20px; border-radius: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Interactive dashboard polish */
.dashboard-actions { position: relative; }
.dashboard-nav button { width: 100%; min-height: 48px; padding: 0 13px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 13px; color: #657068; background: transparent; cursor: pointer; text-align: left; font-size: .88rem; font-weight: 680; }
.dashboard-nav button:hover, .dashboard-nav a:not(.active):hover { color: var(--green); background: #eaf4ed; }
.icon-button, .dashboard-profile, .new-post-button, .composer-card button, .feed-filter button { cursor: pointer; transition: transform .18s, color .18s, background .18s, border-color .18s; }
.icon-button:hover, .dashboard-profile:hover { border-color: #bfd8c7; background: #f2f8f4; transform: translateY(-1px); }
.dashboard-profile { font: inherit; text-align: left; }
.new-post-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.composer-card button:hover { border-color: #c8d8cc; background: #f0f6f2; }
.composer-media { padding: 0 !important; display: grid; place-items: center; color: var(--green) !important; background: transparent !important; border: 0 !important; }
.header-popover { position: absolute; z-index: 40; top: 52px; right: 0; width: 245px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 18px 50px rgba(23,32,25,.16); }
.header-popover[hidden] { display: none; }
.header-popover p { margin: 7px 0 0; color: var(--muted); font-size: .78rem; }
.profile-popover div { margin-bottom: 13px; display: grid; }
.profile-popover small { color: var(--muted); }
.profile-popover a { display: block; padding: 10px 12px; border-radius: 10px; color: #9b2929; background: #fff2f2; text-decoration: none; font-size: .8rem; font-weight: 750; }
.composer-modal { width: min(92vw, 580px); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px rgba(15,34,23,.28); }
.composer-modal::backdrop { background: rgba(11,28,18,.55); backdrop-filter: blur(5px); }
.composer-modal form { padding: 26px; }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.modal-heading h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.modal-heading > button { width: 36px; height: 36px; border: 0; border-radius: 10px; color: var(--muted); background: #f1f4ef; cursor: pointer; font-size: 1.45rem; }
.composer-field { position: relative; margin-top: 24px; display: grid; gap: 8px; font-size: .82rem; font-weight: 750; }
.composer-field textarea { min-height: 150px; resize: vertical; padding: 15px 15px 34px; border: 1px solid var(--line); border-radius: 14px; outline: 0; font: inherit; line-height: 1.55; }
.composer-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,122,69,.1); }
.composer-field small { position: absolute; right: 11px; bottom: 10px; color: #909990; font-weight: 500; }
.upload-field { margin-top: 15px; padding: 15px; display: grid; border: 1px dashed #b8c7bb; border-radius: 14px; color: var(--green); background: #f5faf6; cursor: pointer; font-size: .82rem; font-weight: 780; }
.upload-field input { margin-bottom: 9px; }
.upload-field small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.moderation-banner { margin-top: 15px; padding: 13px 14px; display: grid; gap: 3px; border-radius: 12px; color: #205e38; background: #eaf6ee; font-size: .76rem; }
.moderation-banner span { color: #5d7464; }
.modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions button { min-height: 44px; padding: 0 17px; border: 0; border-radius: 11px; cursor: pointer; font-weight: 750; }
.modal-actions > button:first-child { color: var(--muted); background: #eef1ec; }
.dashboard-toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 17px; border-radius: 13px; color: #fff; background: #173f29; box-shadow: 0 16px 40px rgba(23,32,25,.24); font-size: .82rem; }
.dashboard-toast[hidden] { display: none; }
.feed-filter a { padding: 6px 10px; border-radius: 7px; color: #7c857e; text-decoration: none; font-size: .68rem; font-weight: 750; }
.feed-filter a.active { color: var(--ink); background: #fff; box-shadow: 0 1px 5px rgba(23,32,25,.08); }
.posts-list { display: grid; gap: 16px; }
.post-card { overflow: hidden; padding: 20px; border: 1px solid #dfe5dd; border-radius: 19px; background: #fff; box-shadow: 0 8px 28px rgba(23,32,25,.045); }
.post-card header { display: flex; align-items: center; gap: 11px; }
.post-card header > div { min-width: 0; display: grid; }
.post-card header strong { font-size: .84rem; }
.post-card header small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.post-card > p { margin: 17px 0; color: #263029; font-size: .92rem; line-height: 1.65; }
.post-card > img { width: 100%; max-height: 560px; display: block; object-fit: cover; border-radius: 14px; background: #eef2ed; }
.post-card footer { margin-top: 17px; padding-top: 14px; display: flex; justify-content: space-between; border-top: 1px solid #edf0eb; }
.post-card footer button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 9px; color: var(--muted); background: #f1f4ef; cursor: pointer; font-size: .75rem; font-weight: 750; }
.post-card footer button.active { color: var(--green); background: #e8f5ec; }
.status-chip { margin-left: auto; padding: 6px 9px; border-radius: 99px; font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.status-pending { color: #876515; background: #fff5d7; }
.status-approved { color: var(--green); background: #e8f5ec; }
.status-rejected { color: #9b2929; background: #fff0f0; }
.moderation-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 9px; }
.moderation-actions button { min-height: 40px; padding: 0 15px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 780; }
.reject-button { color: #9b2929; background: #fff0f0; }
.approve-button { color: #fff; background: var(--green); }
.category-grid { display: grid; gap: 14px; }
.category-card { padding: 20px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; border: 1px solid #dfe5dd; border-radius: 18px; background: #fff; text-decoration: none; }
.category-card > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #edf6ef; font-size: 1.45rem; }
.category-card strong { font-size: .92rem; }
.category-card p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.category-card small { padding: 5px 8px; border-radius: 99px; color: var(--green); background: #e8f5ec; font-size: .62rem; font-weight: 800; }
.category-card.muted { opacity: .66; }
.empty-action { min-height: 42px; padding: 0 15px; border: 0; border-radius: 11px; color: #fff; background: var(--green); cursor: pointer; font-weight: 780; }

@media (max-width: 820px) {
    .mobile-nav > button { padding: 0; border: 0; display: grid; place-items: center; gap: 3px; color: #8a938c; background: transparent; font-size: .55rem; font-weight: 750; }
    .mobile-nav button:not([data-open-composer]) { width: auto; height: auto; margin: 0; border: 0; border-radius: 0; color: #8a938c; background: transparent; }
    .composer-modal form { padding: 21px; }
    .dashboard-toast { left: 16px; right: 16px; bottom: 94px; text-align: center; }
}
