:root {
    --green-900: #053d24;
    --green-800: #075331;
    --green-700: #0b7544;
    --green-500: #159653;
    --gold: #f5bf24;
    --blue: #2d8cd7;
    --rose: #e16464;
    --ink: #14201b;
    --muted: #64736d;
    --line: #dde8e2;
    --surface: #ffffff;
    --soft: #f2f8f5;
    --shadow: 0 18px 45px rgba(4, 42, 24, .12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fbf9 0%, #ffffff 46%, #f3faf6 100%);
    line-height: 1.5;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand.center {
    justify-content: center;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(145deg, var(--green-700), var(--green-900));
    border: 2px solid rgba(245, 191, 36, .7);
    border-radius: 8px;
    box-shadow: 0 12px 25px rgba(5, 61, 36, .2);
}

.brand strong {
    display: block;
    font-size: 1.05rem;
    color: var(--green-800);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.nav-link,
.admin-link,
.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    background: transparent;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.admin-link,
.nav-button:hover {
    color: var(--green-800);
    border-color: #c8ded2;
    background: #eef7f2;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(420px, 1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
    min-height: calc(100vh - 74px);
    padding: 44px 0;
}

.hero-copy h1,
.page-hero h1,
.admin-hero h1 {
    margin: 10px 0 16px;
    color: #102119;
    font-size: clamp(2.35rem, 6vw, 5.35rem);
    line-height: .98;
}

.page-hero h1,
.admin-hero h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.hero-copy p,
.page-hero p,
.admin-hero p {
    margin: 0 0 24px;
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(1.02rem, 2vw, 1.35rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--green-800);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    background: #e8f5ee;
    border: 1px solid #c9e4d5;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
}

.button.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    box-shadow: 0 12px 28px rgba(5, 61, 36, .2);
}

.button.secondary {
    color: var(--green-800);
    background: #ffffff;
    border-color: #bfd9cb;
}

.button.full {
    width: 100%;
}

.stats,
.admin-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.stats span,
.admin-stats span {
    min-width: 118px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .8);
}

.stats strong,
.admin-stats strong {
    display: block;
    color: var(--green-800);
    font-size: 1.65rem;
    line-height: 1;
}

.hero-visual {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: var(--green-900);
    box-shadow: var(--shadow);
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.slide-visual {
    border-color: rgba(5, 61, 36, .24);
}

.slide-showcase {
    position: relative;
}

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

.slide-grid.roles-grid {
    grid-template-columns: 1fr;
}

.slide-card {
    overflow: hidden;
    border: 1px solid #dfe8e4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.slide-card.wide {
    grid-column: 1 / -1;
}

.slide-card img {
    width: 100%;
    aspect-ratio: 1376 / 768;
    object-fit: cover;
}

.pdf-page {
    display: grid;
    gap: 26px;
    padding: 42px 0 70px;
}

.page-copy {
    display: grid;
    grid-template-columns: minmax(0, .76fr) minmax(440px, 1fr);
    gap: 30px;
    align-items: end;
}

.page-copy h1 {
    margin: 10px 0 12px;
    max-width: 680px;
    font-size: clamp(2.8rem, 6.4vw, 5rem);
    line-height: .98;
}

.page-copy p {
    max-width: 640px;
    margin: 0;
    color: var(--green-700);
    font-size: clamp(1.22rem, 2.4vw, 2rem);
    font-weight: 750;
}

.pdf-reference {
    overflow: hidden;
    border: 1px solid #dce8e2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(5, 61, 36, .13);
}

.pdf-reference img {
    width: 100%;
    aspect-ratio: 1376 / 768;
    object-fit: cover;
}

.replica-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, .45fr) minmax(260px, 330px) minmax(360px, .92fr);
    gap: 22px;
    align-items: center;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid #e2ece7;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(240, 248, 244, .86), rgba(255, 255, 255, .94)),
        linear-gradient(180deg, #ffffff, #eef7f2);
    box-shadow: var(--shadow);
}

.callout-column {
    display: grid;
    gap: 22px;
    align-content: center;
}

.mini-callout {
    position: relative;
    padding: 14px 16px;
    border: 1px solid #cde5d7;
    border-radius: 8px;
    color: var(--green-800);
    background: rgba(233, 247, 239, .9);
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(5, 61, 36, .1);
}

.mini-callout::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -23px;
    width: 22px;
    border-top: 2px solid rgba(11, 117, 68, .48);
}

.app-replica {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    padding: 12px;
    border: 4px solid #2b2f2d;
    border-radius: 34px;
    background: linear-gradient(145deg, #0b0d0c, #2d302f);
}

.phone-notch {
    position: absolute;
    left: 50%;
    top: 18px;
    z-index: 2;
    width: 92px;
    height: 24px;
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
    background: #050606;
}

.app-replica .phone-screen {
    min-height: 610px;
    padding: 30px 18px 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
}

.app-topbar strong {
    color: #1b211f;
    font-size: .95rem;
    letter-spacing: 0;
}

.bell-dot {
    width: 20px;
    height: 20px;
    border: 2px solid #6c7670;
    border-radius: 50%;
    background: radial-gradient(circle at 75% 15%, #e33636 0 3px, transparent 4px);
}

.phone-title {
    margin: 6px 0 8px;
    color: #151a17;
    font-size: 1.55rem;
    line-height: 1.08;
    font-weight: 900;
}

.app-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 0 16px;
    border-bottom: 1px solid #eef1ef;
}

.app-menu-grid span {
    display: grid;
    place-items: center;
    min-height: 58px;
    padding: 7px 5px;
    border: 1px solid #e4eee8;
    border-radius: 8px;
    color: var(--green-800);
    background: #eef8f3;
    font-size: .72rem;
    font-weight: 850;
    text-align: center;
}

.phone-blocks {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.phone-blocks article {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid #e4e9e6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 44, 29, .07);
}

.phone-blocks small,
.phone-blocks em {
    color: #7b8580;
    font-size: .78rem;
    font-style: normal;
}

.phone-blocks strong {
    color: #18201c;
    font-size: .95rem;
}

.app-bottom {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef1ef;
}

.app-bottom span {
    justify-self: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #8a938e;
}

.app-bottom span:first-child {
    border-color: var(--green-700);
    background: var(--green-700);
}

.slide-checks {
    display: grid;
    gap: 18px;
}

.slide-checks .feature-card {
    grid-template-columns: 56px 1fr;
    padding: 22px;
    border: 1px solid rgba(210, 221, 216, .9);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(21, 36, 29, .11);
}

.slide-checks .check {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(145deg, var(--green-500), var(--green-800));
    font-size: 1.25rem;
}

.slide-checks h2 {
    color: #111714;
    font-size: 1.12rem;
}

.download-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0 28px;
}

.download-visual {
    overflow: hidden;
    border-radius: 8px;
    background: var(--green-900);
    box-shadow: 0 24px 60px rgba(3, 34, 20, .22);
}

.download-visual img {
    width: 100%;
    aspect-ratio: 1376 / 768;
    object-fit: cover;
}

.download-copy {
    display: grid;
    gap: 12px;
    justify-items: center;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.download-copy h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.02;
}

.download-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.glow {
    box-shadow: 0 18px 34px rgba(21, 150, 83, .28);
}

.page-ekonomi .app-menu-grid span:nth-child(2) {
    color: #755001;
    background: #fff5d8;
}

.page-ekonomi .phone-blocks article {
    background: #fffaf0;
}

.page-belajar .app-menu-grid span {
    color: #155f9b;
    background: #eef7ff;
}

.page-sosial .app-menu-grid span {
    color: #0b7544;
    background: #ecf8f2;
}

.page-profil .phone-title,
.page-berita .phone-title {
    color: var(--green-800);
}

.section,
.page-hero,
.forms-grid,
.feature-layout,
.admin-main {
    padding: 58px 0;
}

.section.soft {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-inline: max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(135deg, #eef8f3, #ffffff);
    border-block: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pillar-card,
.feature-card,
.panel,
.role-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 28px rgba(17, 56, 37, .08);
}

.pillar-card {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 20px;
}

.pillar-card:nth-child(2) .card-code {
    border-color: rgba(245, 191, 36, .8);
    color: #745207;
    background: #fff7df;
}

.pillar-card:nth-child(3) .card-code {
    border-color: rgba(45, 140, 215, .55);
    color: #155f9b;
    background: #eef7ff;
}

.pillar-card:nth-child(4) .card-code {
    border-color: rgba(225, 100, 100, .55);
    color: #963535;
    background: #fff0f0;
}

.card-code,
.check {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #b8dac8;
    color: var(--green-800);
    background: #eff8f3;
    font-weight: 900;
}

.pillar-card strong {
    font-size: 1.25rem;
}

.pillar-card small,
.feature-card p,
.role-row p,
.muted {
    color: var(--muted);
}

.role-list {
    display: grid;
    gap: 14px;
}

.role-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.role-row strong {
    color: var(--green-800);
    font-size: 1.35rem;
}

.role-row p {
    margin: 0;
    font-size: 1.05rem;
}

.page-hero {
    max-width: 900px;
}

.page-hero.compact {
    padding-bottom: 24px;
}

.feature-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.phone-shell {
    position: sticky;
    top: 104px;
    padding: 16px;
    border-radius: 36px;
    background: #151917;
    box-shadow: var(--shadow);
}

.phone-screen {
    display: grid;
    gap: 14px;
    min-height: 560px;
    padding: 26px 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f4 100%);
}

.phone-screen strong {
    color: var(--green-800);
    font-size: 1.2rem;
}

.phone-screen span {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    font-weight: 800;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px;
}

.feature-card h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.feature-card p {
    margin: 0;
    font-size: 1.03rem;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.panel {
    padding: 22px;
}

.panel h2,
.form-panel h1 {
    margin: 0 0 16px;
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbdcd3;
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(21, 150, 83, .2);
    border-color: var(--green-700);
}

.hp {
    position: absolute;
    left: -9999px;
}

.flash {
    margin: 18px auto 0;
    padding: 12px 14px;
    border: 1px solid #b9dbc8;
    border-radius: 8px;
    color: var(--green-900);
    background: #eaf7f0;
    font-weight: 800;
}

.flash.warning {
    border-color: #f0d48a;
    color: #725000;
    background: #fff7df;
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 28px 16px;
    color: #ffffff;
    background: var(--green-900);
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 20% 20%, #e8f6ee 0%, transparent 34%), linear-gradient(135deg, #ffffff, #edf7f2);
}

.auth-card {
    width: min(420px, 100%);
    display: grid;
    gap: 20px;
}

.admin-main {
    width: min(1260px, calc(100% - 32px));
}

.admin-header .main-nav {
    justify-content: flex-end;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    padding: 32px 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 18px;
    align-items: start;
}

.admin-grid .form-panel {
    grid-column: 2;
}

.admin-module-panel {
    grid-column: 1 / -1;
}

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

.module-grid span,
.module-grid a {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbf9;
}

.module-grid strong {
    color: var(--green-800);
    font-size: 1.6rem;
    line-height: 1;
}

.module-grid small {
    color: var(--muted);
}

.admin-actions,
.crud-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.module-sidebar {
    position: sticky;
    top: 88px;
}

.module-sidebar nav {
    display: grid;
    gap: 6px;
}

.module-sidebar a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
}

.module-sidebar a.active,
.module-sidebar a:hover {
    color: var(--green-800);
    background: #eef7f2;
}

.crud-form {
    min-width: 0;
}

.crud-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.crud-field-grid label:has(textarea) {
    grid-column: 1 / -1;
}

.table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.table-heading h2 {
    margin: 0;
}

.table-heading span {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #bfd9cb;
    border-radius: 8px;
    color: var(--green-800);
    background: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
}

.mini-button.danger {
    color: #9b1c1c;
    border-color: #f1b7b7;
    background: #fff7f7;
}

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

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

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

th {
    color: var(--green-800);
    background: #f1f8f4;
}

td small {
    color: var(--muted);
}

.message-list {
    display: grid;
    gap: 12px;
}

.message-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.message-item span,
.message-item small {
    display: block;
    color: var(--muted);
}

.message-item p {
    margin: 8px 0;
}

@media (max-width: 980px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero,
    .feature-layout,
    .forms-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

    .phone-shell {
        position: static;
        width: min(360px, 100%);
        margin: 0 auto;
    }

    .admin-grid .form-panel {
        grid-column: auto;
    }

    .admin-module-panel {
        grid-column: auto;
    }

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

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

    .module-sidebar {
        position: static;
    }

    .page-copy,
    .replica-stage {
        grid-template-columns: 1fr;
    }

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

    .mini-callout::after {
        display: none;
    }

    .pdf-reference {
        order: -1;
    }
}

@media (max-width: 640px) {
    main,
    .admin-main {
        width: min(100% - 24px, 1180px);
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 2.25rem;
        line-height: 1.04;
    }

    .pillar-grid,
    .role-row {
        grid-template-columns: 1fr;
    }

    .nav-link,
    .admin-link,
    .nav-button {
        min-height: 36px;
        padding: 7px 9px;
        font-size: .92rem;
    }

    .phone-screen {
        min-height: 460px;
    }

    .admin-hero {
        display: grid;
        align-items: start;
    }

    .slide-grid,
    .callout-column {
        grid-template-columns: 1fr;
    }

    .page-copy h1 {
        font-size: 2.2rem;
    }

    .page-copy p {
        font-size: 1.08rem;
    }

    .replica-stage {
        padding: 14px;
    }

    .app-replica .phone-screen {
        min-height: 520px;
    }

    .app-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .crud-field-grid {
        grid-template-columns: 1fr;
    }
}

/* ANSOR+ public app UI */
.app-site {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(30, 159, 88, .72), transparent 32%),
        radial-gradient(circle at 78% 70%, rgba(0, 0, 0, .26), transparent 34%),
        linear-gradient(135deg, #04351f 0%, #0b8147 52%, #04351f 100%);
}

.app-site .app-viewport {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 26px;
}

.phone-device {
    position: relative;
    width: min(430px, calc(100vw - 32px));
    height: min(900px, calc(100vh - 52px));
    min-height: 720px;
    padding: 12px;
    border: 4px solid #151716;
    border-radius: 44px;
    background: linear-gradient(145deg, #050605, #333735);
    box-shadow: 0 32px 70px rgba(0, 0, 0, .42);
}

.device-notch {
    position: absolute;
    z-index: 5;
    top: 18px;
    left: 50%;
    width: 118px;
    height: 31px;
    transform: translateX(-50%);
    border-radius: 0 0 18px 18px;
    background: #050505;
}

.app-screen {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 72%, #ffffff 100%);
}

.status-bar {
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
    padding: 9px 24px 0;
    color: #111;
    font-size: .78rem;
    font-weight: 900;
}

.app-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 18px 92px;
    scrollbar-width: none;
}

.app-scroll::-webkit-scrollbar {
    display: none;
}

.app-flash {
    margin: 8px 16px 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: #075331;
    background: #e7f6ed;
    border: 1px solid #bde1cc;
    font-size: .82rem;
    font-weight: 800;
}

.app-flash.warning {
    color: #725000;
    background: #fff5d8;
    border-color: #ecd087;
}

.home-top,
.center-top,
.simple-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
}

.center-top {
    justify-content: center;
    position: relative;
}

.center-top a,
.center-top span,
.simple-top span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.center-top a {
    left: 0;
    color: #1b211f;
    font-size: 1.25rem;
    font-weight: 900;
}

.center-top span,
.simple-top span {
    right: 0;
}

.center-top strong,
.simple-top strong {
    color: #111714;
    font-size: .86rem;
    font-weight: 900;
}

.simple-top {
    position: relative;
    align-items: center;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green-700);
    font-weight: 900;
}

.app-logo > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(145deg, var(--green-700), var(--green-900));
    border: 1px solid rgba(245, 191, 36, .8);
}

.app-logo strong {
    color: var(--green-700);
    font-size: 1.35rem;
    letter-spacing: 0;
}

.app-logo strong span {
    color: var(--gold);
}

.top-icons {
    display: flex;
    gap: 13px;
    color: #333;
    font-weight: 900;
}

.notif-dot {
    color: #111;
}

.greeting {
    margin: 18px 0 12px;
}

.greeting p {
    margin: 0;
    color: #202420;
    font-size: 1rem;
    font-style: italic;
}

.greeting h1,
.screen-title {
    margin: 2px 0 0;
    color: #111714;
    font-size: 1.18rem;
    line-height: 1.1;
}

.program-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 96px;
    gap: 12px;
    min-height: 154px;
    overflow: hidden;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(6, 83, 47, .94), rgba(10, 112, 64, .82)),
        #0b7544;
    box-shadow: 0 18px 30px rgba(6, 75, 42, .24);
}

.program-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    width: 40px;
    height: 19px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 66% 100%, 24% 100%);
}

.program-card small {
    display: block;
    color: rgba(245, 191, 36, .86);
    font-size: .66rem;
}

.program-card h2 {
    margin: 16px 0 0;
    font-size: 1.35rem;
    line-height: 1;
}

.program-card p {
    margin: 4px 0 16px;
    color: rgba(255, 255, 255, .88);
    font-size: 1.04rem;
}

.program-card a,
.course-card a,
.action-card a,
.app-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 32px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--green-800);
    background: #fff;
    font-size: .76rem;
    font-weight: 900;
}

.program-card img {
    align-self: end;
    width: 94px;
    height: 130px;
    object-fit: cover;
    object-position: 28% 50%;
    border-radius: 8px;
    opacity: .9;
}

.app-section {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.app-section.no-gap {
    gap: 10px;
}

.section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.section-row h2,
.app-section h2 {
    margin: 0;
    color: #151a17;
    font-size: 1rem;
    line-height: 1.2;
}

.section-row a,
.section-row span {
    color: var(--green-700);
    font-size: .72rem;
    font-weight: 900;
}

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

.service-tile {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-height: 82px;
    color: #242a26;
}

.service-tile span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: var(--green-700);
    background: #f0f3f2;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(23, 38, 30, .06);
}

.service-tile.active span,
.service-tile:hover span {
    color: #fff;
    background: var(--green-700);
}

.service-tile small {
    font-size: .7rem;
    line-height: 1.1;
    text-align: center;
}

.secondary-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 3px;
}

.news-card,
.agenda-card,
.message-strip,
.donation-card,
.news-hero-card {
    display: grid;
    gap: 10px;
    border: 1px solid #e8ece9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(25, 40, 31, .07);
}

.news-card {
    grid-template-columns: 88px 1fr;
    padding: 10px;
    align-items: center;
}

.news-card img {
    width: 88px;
    height: 58px;
    object-fit: cover;
    object-position: 25% 54%;
    border-radius: 8px;
}

.news-card strong,
.agenda-card strong,
.message-strip strong,
.product-card strong,
.action-card strong,
.news-hero-card strong {
    display: block;
    color: #151a17;
    font-size: .83rem;
    line-height: 1.25;
}

.news-card small,
.agenda-card small,
.message-strip small,
.product-card small,
.action-card small,
.donation-card small,
.news-hero-card small {
    color: #8a938e;
    font-size: .72rem;
    font-weight: 700;
}

.mobile-tabbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    min-height: 76px;
    padding: 10px 12px 12px;
    border-top: 1px solid #e8eeeb;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 28px rgba(22, 37, 29, .06);
}

.mobile-tabbar a {
    display: grid;
    justify-items: center;
    gap: 2px;
    color: #87908b;
    font-size: .78rem;
    font-weight: 900;
}

.mobile-tabbar span {
    font-size: 1.22rem;
    line-height: 1;
}

.mobile-tabbar small {
    font-size: .67rem;
}

.mobile-tabbar a.active {
    color: var(--green-700);
}

.org-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px -18px 0;
    padding: 22px 18px 24px;
    background: #f5f6f5;
}

.org-profile h1 {
    margin: 0;
    color: #151a17;
    font-size: 1.35rem;
    line-height: 1.08;
}

.avatar {
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 36%, #f2c49a 0 18%, transparent 19%),
        radial-gradient(circle at 50% 88%, #0b7544 0 36%, transparent 37%),
        linear-gradient(#dfe8e2, #c8d8cf);
    border: 3px solid #fff;
    box-shadow: 0 12px 22px rgba(14, 35, 23, .12);
}

.avatar.small {
    width: 58px;
    height: 58px;
}

.avatar.large {
    width: 92px;
    height: 92px;
}

.org-menu {
    margin-top: -12px;
    padding: 0 3px 8px;
    border-bottom: 1px solid #eef1ef;
}

.agenda-card {
    grid-template-columns: 46px 1fr;
    align-items: center;
    padding: 12px;
}

.agenda-card > span,
.message-strip > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--green-700);
    background: #eaf6ef;
    font-weight: 900;
}

.message-strip {
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    padding: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--green-700), #2ca560);
}

.message-strip strong,
.message-strip small {
    color: #fff;
}

.message-strip > span {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.search-box {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-top: 14px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f1f2f4;
}

.search-box input {
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: .83rem;
}

.product-cats {
    margin-top: 14px;
}

.product-cats .service-tile.gold span {
    color: #ad7400;
    background: #fff2ca;
}

.product-cats .service-tile.leaf span {
    color: #238749;
    background: #eaf7e8;
}

.product-cats .service-tile.purple span {
    color: #8d46bf;
    background: #f2e7ff;
}

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

.product-card {
    display: grid;
    gap: 7px;
    min-height: 168px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(24, 41, 32, .09);
}

.product-art {
    display: grid;
    place-items: center;
    height: 92px;
    border-radius: 8px;
    font-size: 2.6rem;
}

.product-art.coffee {
    background: #ead4b7;
}

.product-art.banana {
    background: #fff3bf;
    color: #e2b322;
}

.course-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #064427, #0c7543);
}

.course-card div {
    position: relative;
    z-index: 2;
}

.course-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 52%;
    opacity: .38;
}

.course-card h1 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 1.38rem;
    line-height: 1.05;
}

.course-card p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .8);
    font-size: .72rem;
}

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

.learn-grid span {
    min-height: 48px;
    padding: 14px 12px;
    border-radius: 8px;
    color: #333b36;
    background: #fff;
    box-shadow: 0 10px 20px rgba(24, 41, 32, .08);
    font-size: .82rem;
    font-weight: 800;
}

.action-card {
    display: grid;
    gap: 6px;
    width: 74%;
    min-width: 230px;
    padding: 10px;
    border: 1px solid #e6ece8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(24, 41, 32, .09);
}

.action-card img,
.news-hero-card img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    object-position: 20% 50%;
    border-radius: 8px;
}

.action-card a {
    color: #fff;
    background: var(--green-700);
}

.donation-card {
    padding: 12px;
}

.donation-card > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.donation-card > span {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #dce5df;
}

.donation-card i {
    display: block;
    height: 100%;
    background: var(--green-700);
}

.donation-card .progress-0 { width: 0; }
.donation-card .progress-5 { width: 5%; }
.donation-card .progress-10 { width: 10%; }
.donation-card .progress-15 { width: 15%; }
.donation-card .progress-20 { width: 20%; }
.donation-card .progress-25 { width: 25%; }
.donation-card .progress-30 { width: 30%; }
.donation-card .progress-35 { width: 35%; }
.donation-card .progress-40 { width: 40%; }
.donation-card .progress-45 { width: 45%; }
.donation-card .progress-50 { width: 50%; }
.donation-card .progress-55 { width: 55%; }
.donation-card .progress-60 { width: 60%; }
.donation-card .progress-65 { width: 65%; }
.donation-card .progress-70 { width: 70%; }
.donation-card .progress-75 { width: 75%; }
.donation-card .progress-80 { width: 80%; }
.donation-card .progress-85 { width: 85%; }
.donation-card .progress-90 { width: 90%; }
.donation-card .progress-95 { width: 95%; }
.donation-card .progress-100 { width: 100%; }

.profile-hero {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 18px -18px 0;
    padding: 34px 18px 18px;
    background: linear-gradient(180deg, #e9f3ed, #f8faf9 82%);
}

.profile-hero > strong {
    color: var(--green-900);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(280px, 100%);
    margin-top: 2px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(24, 41, 32, .1);
}

.profile-stats span {
    display: grid;
    justify-items: center;
    border-right: 1px solid #e5ebe7;
}

.profile-stats span:last-child {
    border-right: 0;
}

.profile-stats b {
    color: var(--green-800);
    font-size: 1.25rem;
}

.profile-stats small {
    color: #68746d;
    font-size: .68rem;
}

.news-hero-card {
    overflow: hidden;
}

.news-hero-card div {
    display: grid;
    gap: 3px;
    padding: 10px 12px 13px;
}

.join-hero {
    display: grid;
    gap: 10px;
    margin: 14px -6px 18px;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    background: var(--green-900);
}

.join-hero img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 8px;
}

.join-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 1.48rem;
    line-height: 1.05;
}

.join-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
}

.app-form {
    display: grid;
    gap: 12px;
}

.app-form label {
    gap: 6px;
    color: #151a17;
    font-size: .82rem;
}

.app-form input,
.app-form select {
    min-height: 44px;
    border: 1px solid #e1e9e5;
    background: #fff;
}

.app-submit {
    width: 100%;
    min-height: 46px;
    color: #fff;
    background: var(--green-700);
    font-size: .9rem;
}

@media (min-width: 900px) {
    .phone-device {
        transform: rotate(-1deg);
    }
}

@media (max-width: 560px) {
    .app-site {
        background: #fff;
    }

    .app-site .app-viewport {
        padding: 0;
    }

    .phone-device {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
        transform: none;
    }

    .device-notch {
        top: 8px;
    }

    .app-screen {
        border-radius: 0;
    }

    .app-scroll {
        padding: 10px 16px 92px;
    }
}

/* Modern admin template */
.modern-admin {
    min-height: 100vh;
    background:
        radial-gradient(circle at 96% 4%, rgba(21, 150, 83, .18), transparent 22%),
        radial-gradient(circle at 3% 42%, rgba(11, 117, 68, .13), transparent 17%),
        #edf3f0;
}

.modern-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.modern-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #dde7e1;
    box-shadow: 8px 0 30px rgba(23, 44, 31, .05);
}

.modern-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 16px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-700), #235fda);
    font-weight: 900;
}

.modern-brand span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--green-800);
    background: #ffffff;
}

.modern-nav {
    display: grid;
    gap: 4px;
    padding: 18px 12px 24px;
}

.modern-nav small {
    margin: 15px 8px 6px;
    color: #8a9690;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.modern-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #65716b;
    font-size: .9rem;
    font-weight: 800;
}

.modern-nav a span {
    display: grid;
    place-items: center;
    width: 24px;
    color: var(--green-700);
    font-weight: 900;
}

.modern-nav a.active,
.modern-nav a:hover {
    color: var(--green-800);
    background: #edf8f2;
}

.modern-main {
    min-width: 0;
    padding: 0 24px 34px;
}

.modern-topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 360px) auto;
    gap: 18px;
    align-items: center;
    min-height: 74px;
    margin: 0 -24px 24px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid #dde7e1;
    backdrop-filter: blur(12px);
}

.modern-topbar h1 {
    margin: 0;
    color: #17241e;
    font-size: 1.25rem;
}

.modern-topbar p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .84rem;
}

.modern-search {
    display: grid;
    grid-template-columns: 1fr 38px;
    align-items: center;
    min-height: 40px;
    border: 1px solid #dbe6e0;
    border-radius: 8px;
    background: #f8fbf9;
}

.modern-search input {
    min-height: 38px;
    border: 0;
    background: transparent;
}

.modern-search span {
    display: grid;
    place-items: center;
    height: 100%;
    color: #ffffff;
    background: var(--green-700);
    border-radius: 0 8px 8px 0;
    font-weight: 900;
}

.modern-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.modern-actions > a,
.modern-actions button,
.admin-avatar {
    display: inline-grid;
    place-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #dbe6e0;
    border-radius: 8px;
    color: var(--green-800);
    background: #ffffff;
    font: inherit;
    font-size: .86rem;
    font-weight: 900;
    cursor: pointer;
}

.admin-avatar {
    width: 38px;
    padding: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
}

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

.modern-kpi {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 18px;
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(26, 52, 35, .14);
}

.modern-kpi span,
.modern-kpi small {
    display: block;
    color: rgba(255, 255, 255, .88);
    font-weight: 850;
}

.modern-kpi strong {
    display: block;
    margin: 5px 0 14px;
    color: #ffffff;
    font-size: 1.85rem;
    line-height: 1;
}

.modern-kpi b {
    position: absolute;
    right: 18px;
    top: 22px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--green-700);
    background: #ffffff;
    font-size: 1.1rem;
}

.kpi-green { background: linear-gradient(135deg, #0f6d3f, #12b36b); }
.kpi-bluegreen { background: linear-gradient(135deg, #116b62, #23b7a2); }
.kpi-gold { background: linear-gradient(135deg, #b88a13, #f0b428); }
.kpi-emerald { background: linear-gradient(135deg, #07452a, #0f8c52); }

.modern-content-grid {
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 18px;
    align-items: start;
}

.modern-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(28, 50, 36, .08);
}

.modern-card.full-span {
    grid-column: 1 / -1;
}

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

.modern-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.modern-card-head h2 {
    margin: 0;
    color: #17241e;
    font-size: 1.02rem;
}

.modern-card-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .85rem;
}

.modern-card-head a {
    color: var(--green-700);
    font-size: .84rem;
    font-weight: 900;
}

.modern-admin .module-grid a,
.modern-admin .module-grid span {
    background: linear-gradient(180deg, #fbfdfc, #f3faf6);
    transition: transform .16s ease, border-color .16s ease;
}

.modern-admin .module-grid a:hover {
    transform: translateY(-2px);
    border-color: #9fd3b6;
}

.modern-admin table {
    min-width: 650px;
}

.modern-admin th {
    color: #5f6b65;
    background: #f6faf8;
    font-size: .75rem;
    text-transform: uppercase;
}

.modern-module-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.modern-module-head h2 {
    margin: 10px 0 0;
    color: #17241e;
    font-size: 1.9rem;
    line-height: 1;
}

.modern-module-layout {
    display: grid;
    gap: 18px;
}

.modern-admin .crud-field-grid {
    margin-top: 8px;
}

.modern-admin .crud-actions {
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .modern-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .modern-kpis,
    .modern-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modern-card.full-span {
        grid-column: 1 / -1;
    }

    .modern-topbar {
        grid-template-columns: 1fr;
    }

    .modern-actions {
        justify-content: flex-start;
    }
}

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

    .modern-sidebar {
        position: static;
        height: auto;
    }

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

    .modern-nav small {
        grid-column: 1 / -1;
    }

    .modern-main {
        padding: 0 14px 28px;
    }

    .modern-topbar {
        margin: 0 -14px 18px;
        padding: 14px;
    }

    .modern-kpis,
    .modern-content-grid {
        grid-template-columns: 1fr;
    }

    .modern-module-head {
        display: grid;
        align-items: start;
    }
}

/* Public desktop website */
.desktop-site {
    display: none;
}

@media (min-width: 761px) {
    .app-site {
        overflow: auto;
        background: #f4f8f6;
    }

    .app-site .app-viewport {
        display: block;
        min-height: 100vh;
        padding: 0;
    }

    .app-site .phone-device {
        display: none;
    }

    .desktop-site {
        display: block;
        min-height: 100vh;
        color: #17241e;
        background:
            linear-gradient(180deg, #f3faf6 0, #ffffff 420px),
            #ffffff;
    }

    .desktop-container {
        width: min(1180px, calc(100% - 56px));
        margin: 0 auto;
    }

    .desktop-header {
        position: sticky;
        top: 0;
        z-index: 20;
        border-bottom: 1px solid rgba(11, 117, 68, .12);
        background: rgba(255, 255, 255, .92);
        backdrop-filter: blur(16px);
    }

    .desktop-nav {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 24px;
        min-height: 76px;
    }

    .desktop-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--green-800);
        font-size: 1.18rem;
        font-weight: 950;
    }

    .desktop-brand span {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        color: #ffffff;
        background: linear-gradient(135deg, var(--green-700), var(--green-900));
        box-shadow: 0 12px 22px rgba(7, 83, 49, .2);
    }

    .desktop-nav nav {
        display: flex;
        justify-content: center;
        gap: 4px;
        min-width: 0;
    }

    .desktop-nav nav a,
    .desktop-admin-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 8px;
        color: #52615a;
        font-size: .84rem;
        font-weight: 850;
        white-space: nowrap;
    }

    .desktop-nav nav a.active,
    .desktop-nav nav a:hover {
        color: var(--green-800);
        background: #e8f5ee;
    }

    .desktop-admin-link {
        color: #ffffff;
        background: var(--green-700);
        box-shadow: 0 10px 18px rgba(11, 117, 68, .18);
    }

    .desktop-flash {
        margin: 18px 0 0;
        padding: 13px 16px;
        border: 1px solid #bde1cc;
        border-radius: 8px;
        color: #075331;
        background: #e7f6ed;
        font-weight: 850;
    }

    .desktop-flash.warning {
        color: #725000;
        background: #fff5d8;
        border-color: #ecd087;
    }

    .desktop-hero {
        padding: 64px 0 44px;
    }

    .desktop-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
        gap: 48px;
        align-items: center;
    }

    .desktop-hero-copy span,
    .desktop-section-head span,
    .desktop-page-hero span,
    .desktop-product-card > span {
        display: inline-flex;
        width: max-content;
        color: var(--green-700);
        font-size: .78rem;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0;
    }

    .desktop-hero-copy h1,
    .desktop-page-hero h1 {
        margin: 12px 0 16px;
        max-width: 780px;
        color: #0f1f17;
        font-size: clamp(2.45rem, 5vw, 4.9rem);
        line-height: .98;
        letter-spacing: 0;
    }

    .desktop-hero-copy p,
    .desktop-page-hero p {
        max-width: 650px;
        margin: 0;
        color: #53625b;
        font-size: 1.08rem;
        line-height: 1.7;
    }

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

    .desktop-primary,
    .desktop-secondary,
    .desktop-form button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 18px;
        border: 0;
        border-radius: 8px;
        font-weight: 950;
    }

    .desktop-primary,
    .desktop-form button {
        color: #ffffff;
        background: var(--green-700);
        box-shadow: 0 16px 28px rgba(11, 117, 68, .2);
    }

    .desktop-secondary {
        color: var(--green-800);
        background: #ffffff;
        border: 1px solid #cfe2d8;
    }

    .desktop-hero-media {
        overflow: hidden;
        border-radius: 8px;
        background: var(--green-900);
        box-shadow: 0 28px 64px rgba(7, 83, 49, .22);
    }

    .desktop-hero-media img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: 50% 42%;
        opacity: .92;
    }

    .desktop-section {
        padding: 34px 0;
    }

    .desktop-soft {
        background: #f3f8f5;
    }

    .desktop-stat-grid,
    .desktop-feature-grid,
    .desktop-product-grid,
    .desktop-course-grid,
    .desktop-news-grid {
        display: grid;
        gap: 18px;
    }

    .desktop-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .desktop-stat-card,
    .desktop-feature-card,
    .desktop-card,
    .desktop-product-card,
    .desktop-course-card,
    .desktop-news-card,
    .desktop-profile-card,
    .desktop-form {
        border: 1px solid #dbe8e1;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 16px 34px rgba(28, 50, 36, .08);
    }

    .desktop-stat-card {
        padding: 22px;
    }

    .desktop-stat-card strong {
        display: block;
        color: var(--green-800);
        font-size: 2rem;
        line-height: 1;
    }

    .desktop-stat-card span {
        display: block;
        margin-top: 9px;
        color: #53625b;
        font-weight: 850;
    }

    .desktop-section-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 18px;
    }

    .desktop-section-head.compact {
        margin-bottom: 12px;
    }

    .desktop-section-head h2 {
        margin: 6px 0 0;
        color: #132119;
        font-size: 2rem;
        line-height: 1.08;
    }

    .desktop-section-head a {
        color: var(--green-700);
        font-weight: 950;
    }

    .desktop-feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .desktop-feature-card {
        display: grid;
        gap: 10px;
        min-height: 188px;
        padding: 20px;
        color: #17241e;
        transition: transform .16s ease, border-color .16s ease;
    }

    .desktop-feature-card:hover {
        transform: translateY(-3px);
        border-color: #9fd3b6;
    }

    .desktop-feature-card b {
        color: var(--green-700);
        font-size: .86rem;
    }

    .desktop-feature-card strong,
    .desktop-product-card strong,
    .desktop-course-card strong,
    .desktop-news-card strong,
    .desktop-card-list strong,
    .desktop-list strong,
    .desktop-product-mini strong {
        display: block;
        color: #14231a;
        font-size: 1.08rem;
        line-height: 1.25;
    }

    .desktop-feature-card small,
    .desktop-card-list small,
    .desktop-product-mini small,
    .desktop-course-card small,
    .desktop-course-card span,
    .desktop-news-card small {
        color: #68766f;
        line-height: 1.55;
    }

    .desktop-two-col,
    .desktop-table-grid,
    .desktop-profile-grid,
    .desktop-form-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .desktop-card,
    .desktop-product-card,
    .desktop-course-card,
    .desktop-news-card,
    .desktop-profile-card,
    .desktop-form {
        padding: 22px;
    }

    .desktop-card h2 {
        margin: 0 0 14px;
        color: #14231a;
        font-size: 1.25rem;
    }

    .desktop-list,
    .desktop-card-list,
    .desktop-product-mini,
    .desktop-donation-list {
        display: grid;
        gap: 12px;
    }

    .desktop-list article,
    .desktop-card-list article,
    .desktop-product-mini article {
        padding: 14px;
        border: 1px solid #e1ece6;
        border-radius: 8px;
        background: #fbfdfc;
    }

    .desktop-list small {
        display: block;
        margin-bottom: 5px;
        color: var(--green-700);
        font-weight: 850;
    }

    .desktop-list p,
    .desktop-product-card p,
    .desktop-course-card p,
    .desktop-news-card p,
    .desktop-donation-list p {
        margin: 8px 0 0;
        color: #53625b;
        line-height: 1.62;
    }

    .desktop-page-hero {
        padding: 58px 0 34px;
        border-bottom: 1px solid #dbe8e1;
        background:
            linear-gradient(135deg, rgba(232, 245, 238, .95), rgba(255, 255, 255, .92)),
            #ffffff;
    }

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

    .desktop-table th,
    .desktop-table td {
        padding: 13px 12px;
        border-bottom: 1px solid #e1ece6;
        text-align: left;
        font-size: .9rem;
    }

    .desktop-table th {
        color: var(--green-800);
        background: #edf7f2;
    }

    .desktop-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .desktop-chip-row span {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 0 14px;
        border: 1px solid #cfe2d8;
        border-radius: 999px;
        color: var(--green-800);
        background: #ffffff;
        font-size: .86rem;
        font-weight: 900;
    }

    .desktop-product-grid,
    .desktop-course-grid,
    .desktop-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .desktop-product-card {
        display: grid;
        gap: 10px;
        min-height: 228px;
    }

    .desktop-product-card div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: end;
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid #e1ece6;
    }

    .desktop-product-card b {
        color: var(--green-800);
        font-size: 1.05rem;
    }

    .desktop-product-card small {
        color: #68766f;
        text-align: right;
    }

    .desktop-course-card,
    .desktop-news-card {
        display: grid;
        gap: 10px;
        min-height: 210px;
    }

    .desktop-course-card span {
        margin-top: auto;
        color: var(--green-800);
        font-weight: 900;
    }

    .desktop-donation-list article {
        padding: 14px;
        border: 1px solid #e1ece6;
        border-radius: 8px;
        background: #fbfdfc;
    }

    .desktop-donation-list article div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .desktop-donation-list article span {
        display: block;
        height: 9px;
        overflow: hidden;
        margin-top: 11px;
        border-radius: 99px;
        background: #dce5df;
    }

    .desktop-donation-list i {
        display: block;
        height: 100%;
        background: var(--green-700);
    }

    .desktop-profile-grid {
        grid-template-columns: .75fr 1.25fr;
    }

    .desktop-profile-card {
        display: grid;
        justify-items: center;
        gap: 16px;
        text-align: center;
    }

    .desktop-avatar {
        width: 116px;
        height: 116px;
        border-radius: 50%;
        background:
            radial-gradient(circle at 50% 36%, #f2c49a 0 18%, transparent 19%),
            radial-gradient(circle at 50% 88%, #0b7544 0 36%, transparent 37%),
            linear-gradient(#dfe8e2, #c8d8cf);
        border: 5px solid #ffffff;
        box-shadow: 0 16px 30px rgba(14, 35, 23, .12);
    }

    .desktop-profile-card > strong {
        color: var(--green-900);
        font-size: 1.2rem;
    }

    .desktop-profile-card > div {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        border-top: 1px solid #e1ece6;
        padding-top: 14px;
    }

    .desktop-profile-card span {
        display: grid;
        gap: 4px;
    }

    .desktop-profile-card b {
        color: var(--green-800);
        font-size: 1.42rem;
    }

    .desktop-profile-card small {
        color: #68766f;
    }

    .desktop-form-layout {
        grid-template-columns: 1.1fr .9fr;
    }

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

    .desktop-form label {
        display: grid;
        gap: 7px;
        color: #27362f;
        font-size: .88rem;
        font-weight: 850;
    }

    .desktop-form input,
    .desktop-form select,
    .desktop-form textarea {
        width: 100%;
        min-height: 46px;
        padding: 0 13px;
        border: 1px solid #d5e4dc;
        border-radius: 8px;
        color: #17241e;
        background: #ffffff;
        font: inherit;
        font-weight: 650;
    }

    .desktop-form textarea {
        min-height: 148px;
        padding-top: 12px;
        resize: vertical;
    }

    .desktop-donation-list .progress-0,
    .desktop-site .progress-0 { width: 0; }
    .desktop-donation-list .progress-5,
    .desktop-site .progress-5 { width: 5%; }
    .desktop-donation-list .progress-10,
    .desktop-site .progress-10 { width: 10%; }
    .desktop-donation-list .progress-15,
    .desktop-site .progress-15 { width: 15%; }
    .desktop-donation-list .progress-20,
    .desktop-site .progress-20 { width: 20%; }
    .desktop-donation-list .progress-25,
    .desktop-site .progress-25 { width: 25%; }
    .desktop-donation-list .progress-30,
    .desktop-site .progress-30 { width: 30%; }
    .desktop-donation-list .progress-35,
    .desktop-site .progress-35 { width: 35%; }
    .desktop-donation-list .progress-40,
    .desktop-site .progress-40 { width: 40%; }
    .desktop-donation-list .progress-45,
    .desktop-site .progress-45 { width: 45%; }
    .desktop-donation-list .progress-50,
    .desktop-site .progress-50 { width: 50%; }
    .desktop-donation-list .progress-55,
    .desktop-site .progress-55 { width: 55%; }
    .desktop-donation-list .progress-60,
    .desktop-site .progress-60 { width: 60%; }
    .desktop-donation-list .progress-65,
    .desktop-site .progress-65 { width: 65%; }
    .desktop-donation-list .progress-70,
    .desktop-site .progress-70 { width: 70%; }
    .desktop-donation-list .progress-75,
    .desktop-site .progress-75 { width: 75%; }
    .desktop-donation-list .progress-80,
    .desktop-site .progress-80 { width: 80%; }
    .desktop-donation-list .progress-85,
    .desktop-site .progress-85 { width: 85%; }
    .desktop-donation-list .progress-90,
    .desktop-site .progress-90 { width: 90%; }
    .desktop-donation-list .progress-95,
    .desktop-site .progress-95 { width: 95%; }
    .desktop-donation-list .progress-100,
    .desktop-site .progress-100 { width: 100%; }
}

@media (min-width: 761px) and (max-width: 1050px) {
    .desktop-nav {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .desktop-hero-grid,
    .desktop-two-col,
    .desktop-table-grid,
    .desktop-profile-grid,
    .desktop-form-layout {
        grid-template-columns: 1fr;
    }

    .desktop-stat-grid,
    .desktop-feature-grid,
    .desktop-product-grid,
    .desktop-course-grid,
    .desktop-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .desktop-site {
        display: none;
    }

    .app-site {
        background: #ffffff;
    }

    .app-site .app-viewport {
        padding: 0;
    }

    .phone-device {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
        transform: none;
    }

    .device-notch {
        top: 8px;
    }

    .app-screen {
        border-radius: 0;
    }

    .app-scroll {
        padding: 10px 16px 92px;
    }
}

.brand-mark-image{display:block;width:44px;height:44px;object-fit:contain;border-radius:12px;box-shadow:0 12px 25px rgba(5,61,36,.12);background:#fff}
.modern-brand-logo{display:block;width:34px;height:34px;object-fit:contain;border-radius:10px;background:#fff}
.modern-admin .modern-brand{gap:12px}
