* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(88, 210, 141, 0.35), transparent 28%),
        radial-gradient(circle at bottom right, rgba(33, 123, 66, 0.20), transparent 25%),
        linear-gradient(180deg, #dff7d8 0%, #eef9e8 100%);
    color: #14311a;
}

a {
    color: #146b38;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid rgba(20, 49, 26, 0.10);
    border-radius: 24px;
    background: rgba(248, 255, 246, 0.9);
    backdrop-filter: blur(12px);
}

.topbar h1,
.hero h2,
.card h2 {
    margin: 0;
}

.eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #3a8b4f;
}

.nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.content {
    margin-top: 22px;
}

.hero,
.card {
    border: 1px solid rgba(20, 49, 26, 0.10);
    border-radius: 24px;
    background: rgba(248, 255, 246, 0.94);
    box-shadow: 0 18px 60px rgba(27, 112, 63, 0.10);
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding: 28px;
    margin-bottom: 20px;
}

.card {
    padding: 24px;
    margin-bottom: 20px;
}

.narrow {
    max-width: 480px;
    margin: 48px auto 0;
}

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

.stats-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 20px;
}

.stat-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.stack {
    display: grid;
    gap: 14px;
}

label span {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

input,
select,
button {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(31, 42, 31, 0.18);
    padding: 12px 14px;
    background: #fffdf5;
}

button {
    background: linear-gradient(135deg, #2cb45d, #12753b);
    color: #fff;
    border: 0;
    cursor: pointer;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2cb45d, #12753b);
    color: #fff;
    font-weight: 700;
}

.button-link.secondary {
    background: rgba(255, 255, 255, 0.7);
    color: #146b38;
    border: 1px solid rgba(20, 49, 26, 0.10);
}

.year-form {
    display: flex;
    gap: 12px;
    align-items: end;
}

.year-form label {
    min-width: 110px;
}

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

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

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(31, 42, 31, 0.08);
    text-align: center;
}

th:first-child,
td:first-child {
    text-align: left;
    min-width: 210px;
}

.mono {
    font-family: "Courier New", monospace;
    font-size: 0.82rem;
}

td small {
    display: block;
    margin-top: 4px;
    color: #706650;
}

.badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.paid {
    background: rgba(44, 180, 93, 0.18);
    color: #0d5a2b;
}

.pending {
    background: rgba(228, 187, 52, 0.22);
    color: #7b5a00;
}

.neutral {
    background: rgba(140, 174, 139, 0.18);
    color: #426146;
}

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

.success {
    background: rgba(44, 180, 93, 0.18);
    color: #0d5a2b;
}

.error {
    background: rgba(217, 79, 79, 0.16);
    color: #8a2020;
}

.hint {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #e8f5d9;
}

.charge-box {
    text-align: left;
}

.charge-box summary {
    list-style: none;
    cursor: pointer;
}

.charge-box summary::-webkit-details-marker {
    display: none;
}

.charge-card {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #ebf8df;
}

.charge-card img {
    display: block;
    max-width: 180px;
    margin: 10px 0;
}

.charge-card textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(31, 42, 31, 0.18);
    padding: 10px;
    background: #fcfff9;
    resize: vertical;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(18, 117, 59, 0.92), rgba(66, 190, 102, 0.88)),
        linear-gradient(180deg, #1f7c42, #49bb6b);
    color: #f4fff1;
    box-shadow: 0 24px 80px rgba(12, 95, 44, 0.22);
}

.landing-hero .eyebrow {
    color: rgba(239, 255, 233, 0.85);
}

.landing-hero h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.landing-hero p {
    font-size: 1rem;
    max-width: 640px;
}

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

.field-art {
    position: relative;
    min-height: 290px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
        linear-gradient(180deg, #63d36f, #2f9b46);
    overflow: hidden;
}

.field-lines {
    position: absolute;
    inset: 18px;
    border: 3px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
}

.field-lines::before,
.field-lines::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.78);
}

.field-lines::before {
    top: 0;
    bottom: 0;
    width: 3px;
}

.field-lines::after {
    top: 50%;
    width: 110px;
    height: 3px;
}

.field-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
}

.ball {
    position: absolute;
    right: 42px;
    bottom: 34px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #ffffff, #e6f0e3 65%),
        #fff;
    box-shadow: 0 12px 24px rgba(8, 41, 16, 0.25);
}

@media (max-width: 820px) {
    .topbar,
    .hero {
        flex-direction: column;
        align-items: stretch;
    }

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

    .year-form {
        flex-direction: column;
        align-items: stretch;
    }
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
