:root {
    --bg: #f4efe7;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text: #1d2a23;
    --muted: #627064;
    --line: rgba(22, 35, 27, 0.08);
    --primary: #116149;
    --primary-dark: #0c4c39;
    --accent: #f0b44d;
    --danger: #c64242;
    --success: #1a8f5a;
    --warning: #bf7c0d;
    --info: #3568c8;
    --shadow: 0 24px 60px rgba(18, 38, 28, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(240, 180, 77, 0.38), transparent 28%),
        radial-gradient(circle at bottom right, rgba(17, 97, 73, 0.2), transparent 32%),
        var(--bg);
}

body {
    min-height: 100vh;
}

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

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

.public-body,
.admin-login-body,
.admin-body {
    position: relative;
}

.page-orb {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.65;
    pointer-events: none;
}

.orb-one {
    top: -120px;
    right: -60px;
    background: rgba(240, 180, 77, 0.32);
}

.orb-two {
    bottom: -140px;
    left: -90px;
    background: rgba(17, 97, 73, 0.2);
}

.site-header,
.site-footer,
.landing-grid,
.payment-layout,
.center-layout {
    position: relative;
    z-index: 2;
}

.site-header {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.brand strong,
.brand-admin strong {
    display: block;
    font-size: 1rem;
}

.brand small,
.brand-admin small {
    display: block;
    color: var(--muted);
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #1c8b67);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 12px 28px rgba(17, 97, 73, 0.22);
}

.ghost-link,
.danger-link {
    color: var(--primary);
    font-weight: 600;
}

.danger-link {
    color: var(--danger);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.landing-grid,
.payment-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
}

.hero-card,
.form-card,
.payment-card,
.payment-side,
.thankyou-card,
.login-card,
.panel,
.mini-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-card,
.form-card,
.payment-card,
.thankyou-card,
.login-card,
.panel {
    padding: 28px;
}

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(17, 97, 73, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    margin: 18px 0 16px;
}

h2 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.lead {
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.stats-grid,
.admin-stats-grid,
.thankyou-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.admin-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.thankyou-grid article {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.stat-card span,
.thankyou-grid span,
.payment-meta span,
.status-line span,
.amount-highlight span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-card strong,
.thankyou-grid strong,
.payment-meta strong,
.amount-highlight strong {
    display: block;
    font-size: 1.35rem;
}

.stat-card small,
.thankyou-grid small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.info-strip {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(17, 97, 73, 0.95), rgba(12, 76, 57, 0.95));
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.info-strip strong,
.info-strip span {
    display: block;
}

.feed-card {
    margin-top: 26px;
    padding-top: 6px;
}

.feed-header,
.panel-head,
.status-line,
.stack-item,
.stack-actions,
.filter-bar,
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pulse-dot {
    position: relative;
    padding-left: 16px;
    color: var(--primary);
    font-weight: 700;
}

.pulse-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(26, 143, 90, 0.6);
    animation: pulse 1.8s infinite;
}

.donation-feed,
.stack-list {
    display: grid;
    gap: 12px;
}

.feed-item,
.stack-item {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.stack-item-block {
    align-items: flex-start;
}

.stack-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.feed-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.feed-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(17, 97, 73, 0.12);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.form-card,
.login-card {
    align-self: start;
}

.card-head p,
.payment-card p,
.mini-card p,
.admin-header p {
    color: var(--muted);
    line-height: 1.7;
}

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

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

.choice-card,
.manual-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.choice-card input,
.manual-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-content {
    display: block;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-content strong {
    display: block;
    margin-bottom: 6px;
}

.choice-content small {
    display: block;
    color: var(--muted);
    line-height: 1.6;
}

.choice-card input:checked + .choice-content,
.manual-card input:checked + .choice-content {
    border-color: rgba(17, 97, 73, 0.5);
    box-shadow: 0 0 0 4px rgba(17, 97, 73, 0.12);
    transform: translateY(-1px);
}

.manual-options {
    display: grid;
    gap: 14px;
}

.section-label {
    font-weight: 700;
    color: var(--text);
}

.donation-form label {
    display: grid;
    gap: 8px;
}

.donation-form span {
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(17, 35, 26, 0.12);
    background: rgba(255, 255, 255, 0.82);
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(17, 97, 73, 0.5);
    box-shadow: 0 0 0 4px rgba(17, 97, 73, 0.12);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary), #198e69);
    color: white;
    box-shadow: 0 18px 30px rgba(17, 97, 73, 0.18);
}

.secondary-button {
    background: rgba(17, 97, 73, 0.08);
    color: var(--primary);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.form-note,
.empty-state {
    color: var(--muted);
    font-size: 0.95rem;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
}

.alert-danger {
    background: rgba(198, 66, 66, 0.1);
    color: #8d2626;
}

.alert-success {
    background: rgba(26, 143, 90, 0.12);
    color: #176c46;
}

.site-footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 32px;
    color: var(--muted);
}

.payment-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.qris-wrapper {
    margin: 24px 0;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--line);
}

.qris-wrapper img {
    margin: 0 auto;
    max-width: 320px;
}

.amount-highlight {
    margin: 24px 0;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(240, 180, 77, 0.14);
    border: 1px solid rgba(240, 180, 77, 0.32);
}

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

.invoice-strip > div,
.manual-account-block {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
}

.invoice-strip span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.invoice-strip strong {
    display: block;
    font-size: 1.1rem;
}

.manual-instruction-card {
    margin: 20px 0;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(17, 97, 73, 0.06);
    border: 1px solid rgba(17, 97, 73, 0.14);
}

.manual-account-block p {
    margin: 6px 0 12px;
}

.manual-account-block code {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(17, 97, 73, 0.09);
    padding: 10px 12px;
    border-radius: 12px;
}

.compact-card {
    margin-top: 24px;
}

.thankyou-note {
    margin-top: 22px;
    color: var(--muted);
    line-height: 1.8;
}

.payment-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.mini-card {
    padding: 24px;
}

.payment-side {
    display: grid;
    gap: 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.success-panel {
    border: 1px solid rgba(26, 143, 90, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    color: #0d6f43;
    background: rgba(26, 143, 90, 0.14);
}

.badge-warning {
    color: #875708;
    background: rgba(191, 124, 13, 0.16);
}

.badge-danger {
    color: #902a2a;
    background: rgba(198, 66, 66, 0.14);
}

.badge-info {
    color: #2759b7;
    background: rgba(53, 104, 200, 0.14);
}

.center-layout {
    max-width: 760px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.thankyou-card {
    width: 100%;
}

.button-row {
    margin-top: 24px;
    flex-wrap: wrap;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    padding: 28px 22px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand-admin {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

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

.admin-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 600;
}

.admin-nav a.is-active,
.admin-nav a:hover {
    background: rgba(17, 97, 73, 0.1);
    color: var(--primary);
}

.admin-profile {
    margin-top: auto;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.admin-profile small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.admin-profile a {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 700;
}

.admin-main {
    padding: 28px;
}

.admin-header {
    margin-bottom: 22px;
}

.admin-header-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-two-column {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    margin-top: 22px;
}

.panel {
    overflow: hidden;
}

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

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

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

.admin-table th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-bar {
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 18, 0.35);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 50;
}

.modal-card {
    width: min(100%, 560px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 60px rgba(18, 38, 28, 0.18);
    padding: 24px;
}

.filter-bar input {
    max-width: 320px;
}

.login-card {
    max-width: 520px;
    width: 100%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 143, 90, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(26, 143, 90, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 143, 90, 0);
    }
}

@media (max-width: 1080px) {
    .landing-grid,
    .payment-layout,
    .admin-two-column,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 720px) {
    .site-header,
    .landing-grid,
    .payment-layout,
    .admin-main,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stats-grid,
    .admin-stats-grid,
    .payment-meta,
    .thankyou-grid,
    .payment-choice-grid,
    .manual-option-grid,
    .invoice-strip {
        grid-template-columns: 1fr;
    }

    .feed-item {
        grid-template-columns: auto 1fr;
    }

    .feed-item span {
        grid-column: 2;
    }

    .info-strip,
    .filter-bar,
    .button-row,
    .admin-header-inline {
        flex-direction: column;
        align-items: stretch;
    }

    h1 {
        font-size: 2.3rem;
    }
}
