:root {
    --green: #153f2b;
    --green-2: #27633f;
    --gold: #f5c542;
    --cream: #fbf4df;
    --white: #ffffff;
    --text: #173b24;
    --muted: #5f745f;
    --shadow: 0 24px 70px rgba(16, 52, 34, .22);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 197, 66, .40), transparent 38%),
        radial-gradient(circle at bottom right, rgba(39, 99, 63, .28), transparent 35%),
        linear-gradient(135deg, #fff8e4 0%, #eff8e9 100%);
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    border-radius: 34px;
    padding: 30px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(255,255,255,.42), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(245,197,66,.22), transparent 24%);
    pointer-events: none;
}

.hero-card > * { position: relative; z-index: 2; }

.glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .42;
}

.glow-one {
    width: 160px;
    height: 160px;
    background: var(--gold);
    top: -72px;
    right: -54px;
}

.glow-two {
    width: 170px;
    height: 170px;
    background: #68a96b;
    bottom: -76px;
    left: -60px;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.logo, .logo-placeholder {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(21, 63, 43, .10);
    box-shadow: 0 12px 30px rgba(21, 63, 43, .12);
}

.logo-placeholder {
    display: grid;
    place-items: center;
    color: var(--green);
    font-weight: 900;
    letter-spacing: -.05em;
    font-size: 26px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--green-2);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 800;
}

h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--green);
}

h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 8vw, 44px);
    line-height: .98;
    letter-spacing: -.055em;
    color: var(--green);
}

.subtitle {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.link-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.link-button {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px 10px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
    color: white;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(21, 63, 43, .24);
    transition: transform .18s ease, box-shadow .18s ease;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(21, 63, 43, .28);
}

.link-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.16);
    font-size: 21px;
}

.arrow {
    color: var(--gold);
    font-weight: 900;
}

.empty-box {
    padding: 16px;
    border: 1px dashed rgba(21,63,43,.22);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255,255,255,.58);
}

footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: rgba(23, 59, 36, .64);
    font-size: 13px;
    font-weight: 700;
}

.admin-body {
    background: #f6f1df;
    color: var(--text);
    min-height: 100vh;
}

.admin-wrap {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.admin-card, .login-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 32px rgba(21, 63, 43, .10);
    border: 1px solid rgba(21, 63, 43, .08);
}

.login-card {
    width: min(420px, calc(100% - 28px));
    margin: 10vh auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 12px 0 6px;
    color: var(--green);
}

input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d7dfd1;
    background: #fffef8;
    color: var(--text);
    font: inherit;
}

textarea { min-height: 90px; resize: vertical; }

button, .admin-link {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 16px;
    background: var(--green);
    color: white;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button.secondary, .admin-link.secondary { background: #e9efe4; color: var(--green); }
button.danger { background: #b42318; }

.message {
    padding: 12px 14px;
    border-radius: 14px;
    background: #eaf6e8;
    color: #245a2d;
    font-weight: 700;
    margin-bottom: 14px;
}

.error {
    background: #fff1f0;
    color: #9f1d16;
}

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

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

th, td {
    padding: 12px 8px;
    border-bottom: 1px solid #edf0e8;
    text-align: left;
    vertical-align: top;
}

th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.mini { max-width: 70px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.current-logo { max-width: 120px; max-height: 80px; object-fit: contain; display: block; margin: 8px 0; }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; }

@media (max-width: 760px) {
    .hero-card { padding: 24px; border-radius: 28px; }
    .grid-2 { grid-template-columns: 1fr; }
    .admin-header { align-items: flex-start; flex-direction: column; }
}
