:root {
    --paper: #fbfaf5;
    --paper-warm: #f2eadb;
    --surface: #ffffff;
    --surface-soft: #f5f8f1;
    --sage-50: #eef6ee;
    --sage-100: #dfece1;
    --sage-200: #c9dccd;
    --ink: #111815;
    --ink-soft: #28342f;
    --muted: #69756f;
    --line: #dce4dd;
    --green: #176b45;
    --green-dark: #0b3f2a;
    --blue: #245f8f;
    --gold: #b9781b;
    --red: #b42318;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 10px 28px rgba(17, 24, 21, 0.06);
    --shadow-panel: 0 20px 55px rgba(17, 24, 21, 0.09);
    --shadow-modal: 0 30px 80px rgba(17, 24, 21, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink-soft);
    font-family: "Aptos", "Segoe UI", Verdana, sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% 0%, rgba(185, 120, 27, 0.12), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(23, 107, 69, 0.12), transparent 30%),
        linear-gradient(180deg, var(--paper), #f6f8f2 55%, var(--paper-warm));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(17, 24, 21, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 21, 0.028) 1px, transparent 1px);
    background-size: 42px 42px;
}

a,
button,
input,
select,
textarea {
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(185, 120, 27, 0.32);
    outline-offset: 3px;
}

.wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.brand-stripe {
    height: 5px;
    background: linear-gradient(90deg, var(--green-dark), var(--green), var(--gold), var(--blue));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(17, 24, 21, 0.08);
    background: rgba(251, 250, 245, 0.88);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: white;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
        linear-gradient(135deg, var(--green), #2d9767);
    box-shadow: 0 12px 28px rgba(23, 107, 69, 0.26);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
}

.brand-text {
    display: grid;
    gap: 0;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.18rem;
    font-weight: 900;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.nav-links a {
    position: relative;
    padding: 10px 8px;
    color: #3f4a44;
    font-weight: 800;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 6px;
    left: 8px;
    height: 2px;
    border-radius: 999px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.page {
    padding: 36px 0 62px;
}

.hero {
    position: relative;
    min-height: 460px;
    display: grid;
    align-content: end;
    isolation: isolate;
    margin-bottom: 34px;
    overflow: hidden;
    padding: 48px;
    color: white;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(115deg, rgba(7, 31, 21, 0.98), rgba(12, 56, 37, 0.82) 58%, rgba(12, 56, 37, 0.34)),
        repeating-linear-gradient(120deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 60px),
        repeating-linear-gradient(30deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 40px),
        linear-gradient(160deg, #0d3d26 0%, #183d2e 40%, #1a3550 100%);
    box-shadow: var(--shadow-panel);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.18;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.85) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,0.22) 49% 51%, transparent 52%);
    background-size: 18px 18px, 120px 120px;
}

.hero-kicker,
.eyebrow,
.section-heading span {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 800px;
    margin: 0 0 16px;
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.75rem, 7vw, 5.8rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: 0;
}

.hero p {
    max-width: 670px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

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

.button,
button,
input[type="submit"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    overflow: hidden;
    color: white;
    background: var(--green);
    box-shadow: 0 12px 25px rgba(23, 107, 69, 0.18);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(23, 107, 69, 0.23);
}

.button-primary::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 8px;
    left: 16px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0), var(--gold), rgba(255,255,255,0));
    animation: ctaUnderline 2.7s ease-in-out infinite;
}

.button.secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.panel,
.form-shell {
    border: 1px solid rgba(17, 24, 21, 0.09);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-panel);
    padding: 26px;
}

.panel:nth-child(even),
.split:nth-of-type(even) .panel {
    background: rgba(255, 252, 245, 0.92);
}

.page-title {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.02;
}

.section-heading {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
}

.section-heading h2 {
    position: relative;
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.1;
}

.section-heading h2::after {
    content: "";
    display: inline-block;
    width: 46px;
    height: 8px;
    margin-left: 12px;
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--gold);
}

.section-heading.compact h2::after {
    width: 28px;
}

h2,
h3 {
    color: var(--ink);
    letter-spacing: 0;
}

.muted,
.meta {
    color: var(--muted);
}

.meta {
    font-size: 0.88rem;
    line-height: 1.45;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

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

.card {
    min-width: 0;
    border: 1px solid rgba(17, 24, 21, 0.09);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-card);
    padding: 14px;
    animation: fadeInCard 460ms ease both;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
    transform: scale(1.012);
    border-color: rgba(23, 107, 69, 0.28);
    box-shadow: 0 20px 46px rgba(17, 24, 21, 0.12);
}

.card-media {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 13px;
    overflow: hidden;
    border-radius: 13px;
    background: var(--sage-50);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-media {
    background:
        linear-gradient(135deg, rgba(23, 107, 69, 0.14), rgba(185, 120, 27, 0.12)),
        repeating-linear-gradient(135deg, rgba(17, 24, 21, 0.04) 0 1px, transparent 1px 12px);
}

.wanted-media {
    background:
        linear-gradient(135deg, rgba(36, 95, 143, 0.14), rgba(23, 107, 69, 0.1)),
        repeating-linear-gradient(135deg, rgba(17, 24, 21, 0.04) 0 1px, transparent 1px 12px);
}

.community-media {
    background:
        linear-gradient(135deg, rgba(185, 120, 27, 0.16), rgba(23, 107, 69, 0.1)),
        repeating-linear-gradient(135deg, rgba(17, 24, 21, 0.04) 0 1px, transparent 1px 12px);
}

.placeholder-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: rgba(13, 63, 42, 0.78);
    background: rgba(255, 255, 255, 0.54);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
}

/* Hero with inline action button */
.hero-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hero-with-action .page-title {
    margin-bottom: 4px;
}

/* Post note trigger button */
.btn-post-note {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--green-700, #15803d);
    color: white;
    cursor: pointer;
    font-family: inherit;
    transition: background 200ms ease, transform 150ms ease;
}
.btn-post-note:hover {
    background: var(--green-800, #166534);
    transform: translateY(-1px);
}
.btn-post-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}
.btn-post-note > :last-child {
    font-size: 15px;
    font-weight: 700;
}

/* Post note modal dialog */
.note-dialog {
    width: min(100% - 2rem, 520px);
    max-height: 90dvh;
    overflow-y: auto;
    border: 1px solid rgba(17, 24, 21, 0.12);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-modal);
}
.note-dialog::backdrop {
    background: rgba(13, 63, 42, 0.35);
    backdrop-filter: blur(3px);
}
.dialog-close {
    background: none;
    border: 1px solid rgba(17, 24, 21, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: background 150ms ease;
}
.dialog-close:hover {
    background: rgba(17, 24, 21, 0.07);
}

/* Compact text-only note row (no image) */
.note-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(17, 24, 21, 0.09);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-card);
    animation: fadeInCard 460ms ease both;
    transition: background 200ms ease, border-color 200ms ease;
    grid-column: 1 / -1; /* full width inside the grid */
}
.note-row:hover {
    background: var(--sage-50);
    border-color: rgba(23, 107, 69, 0.28);
}
.note-chip {
    flex-shrink: 0;
    align-self: flex-start;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(23, 107, 69, 0.1);
    color: var(--green-800, #166534);
    white-space: nowrap;
}
.note-body {
    flex: 1;
    min-width: 0;
}
.note-body strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 2px;
}
.note-body p {
    font-size: 13px;
    color: #555;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.note-meta {
    font-size: 11px;
    color: #888;
}
.note-phone {
    flex-shrink: 0;
    align-self: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-700, #15803d);
    text-decoration: none;
    white-space: nowrap;
}

.category-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    max-width: calc(100% - 20px);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px rgba(17, 24, 21, 0.1);
    font-size: 0.75rem;
    font-weight: 900;
}

.price-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 6px 10px;
    color: white;
    background: var(--green);
    box-shadow: 0 8px 16px rgba(23, 107, 69, 0.18);
    font-weight: 900;
}

.card h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.card p {
    margin: 0.65rem 0;
}

/* Homepage 3-column boards layout */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.board-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(17, 24, 21, 0.09);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
}

.board-title {
    margin: 4px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.1;
}

.board-link {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--green);
    white-space: nowrap;
}

.board-link:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.board-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 12px;
    background: var(--line);
}

.board-items > * {
    background: white;
}

.board-items .card {
    border-radius: var(--radius-sm);
    box-shadow: none;
    border: none;
    animation: none;
}

.board-items .note-row {
    border-radius: var(--radius-sm);
    box-shadow: none;
    border: none;
    animation: none;
    grid-column: unset;
}

.board-items .empty {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.64);
}

.board-post-link {
    display: block;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
    background: var(--surface-soft);
    transition: background 150ms ease, color 150ms ease;
}

.board-post-link:hover {
    background: var(--sage-100);
    color: var(--green-dark);
}

@media (max-width: 980px) {
    .boards-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- */

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.pill {
    border: 1px solid var(--sage-200);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--green-dark);
    background: var(--sage-50);
    font-size: 0.9rem;
    font-weight: 800;
}

.pill:hover {
    background: var(--sage-100);
}

form {
    display: grid;
    gap: 15px;
}

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

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

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fffefb;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 4px rgba(23, 107, 69, 0.12);
    outline: none;
}

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

.form-shell {
    position: sticky;
    top: 98px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,248,241,0.96));
}

.upload-field input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-box {
    position: relative;
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 128px;
    border: 2px dashed var(--sage-200);
    border-radius: var(--radius-md);
    color: var(--muted);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.84), rgba(238,246,238,0.66));
    text-align: center;
    overflow: hidden;
}

.upload-box::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 12px;
    left: 16px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    opacity: 0.28;
}

.upload-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    background: var(--green);
    font-size: 1.35rem;
    font-weight: 900;
}

.upload-box small {
    color: var(--muted);
}

.flash {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-weight: 800;
}

.flash-success {
    color: #166534;
    background: #e9f8ef;
}

.flash-error {
    color: var(--red);
    background: #fef3f2;
}

.empty {
    border: 1px dashed var(--sage-200);
    border-radius: var(--radius-md);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.64);
    padding: 20px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background:
        linear-gradient(135deg, #111815, #183527),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 34px);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 22px;
    padding: 30px 0;
}

.footer-brand {
    display: grid;
    gap: 4px;
}

.footer-brand strong {
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.footer-links a:hover {
    color: white;
}

.footer-made {
    color: #f1d093;
    font-weight: 800;
}

.admin-login {
    min-height: 64vh;
    display: grid;
    place-items: center;
}

.admin-login-card,
.admin-hero {
    border-radius: var(--radius-lg);
    color: white;
    background:
        linear-gradient(135deg, rgba(13, 63, 42, 0.98), rgba(36, 95, 143, 0.9)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 34px);
    box-shadow: var(--shadow-modal);
}

.admin-login-card {
    width: min(100%, 520px);
    padding: 36px;
}

.admin-login-card .eyebrow,
.admin-login-card p,
.admin-hero .muted,
.admin-hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.admin-login-card h1 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3rem);
}

.admin-login-card form {
    margin-top: 24px;
}

.admin-login-card label {
    color: white;
}

.admin-hero {
    padding: 30px;
}

.admin-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.admin-hero .button.secondary {
    color: var(--green-dark);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: white;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-card span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    color: white;
    font-size: 2.1rem;
}

.admin-table-panel {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-panel);
}

.table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
}

.table-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
}

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

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

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

th {
    color: var(--muted);
    background: #f7faf6;
    font-size: 0.78rem;
    text-transform: uppercase;
}

tbody tr:hover {
    background: #fbfdfb;
}

.table-actions form {
    display: inline;
}

.danger-button {
    color: var(--red);
    background: #fff1f0;
    box-shadow: none;
}

.danger-button:hover {
    color: white;
    background: var(--red);
    box-shadow: 0 12px 24px rgba(180, 35, 24, 0.18);
}

@keyframes ctaUnderline {
    0%, 100% {
        transform: translateX(-18%) scaleX(0.7);
        opacity: 0.55;
    }
    50% {
        transform: translateX(18%) scaleX(1);
        opacity: 1;
    }
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
    }

    .form-shell {
        position: static;
        order: -1;
    }

    .stat-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .wrap {
        width: min(100% - 22px, 1200px);
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 13px 0;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .nav-links {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-links a {
        padding: 8px 4px;
        font-size: 0.92rem;
    }

    .hero {
        min-height: 430px;
        padding: 26px;
        border-radius: var(--radius-md);
    }

    .hero h1 {
        font-size: clamp(2.35rem, 14vw, 3.35rem);
    }

    .panel,
    .form-shell {
        padding: 20px;
    }

    .field-grid,
    .admin-titlebar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .admin-login-card,
    .admin-hero {
        padding: 24px;
    }
}
