:root {
    --forest: #0f432f;
    --forest-dark: #082f22;
    --forest-deep: #05271c;
    --cream: #f4ead2;
    --cream-light: #fffaf0;
    --gold: #c9a14c;
    --gold-light: #ecd18d;
    --ink: #17211b;
    --muted: #6a716b;
    --danger: #8b3d35;
    --shadow: 0 20px 55px rgba(4, 37, 26, .17);
    --paper-border: rgba(15, 67, 47, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); }
a { color: var(--forest); text-underline-offset: 3px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   PUBLIC INVITATION
   -------------------------------------------------------------------------- */
.invite-body {
    min-height: 100vh;
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
}

.invite-page {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--cream);
}

.party-hero {
    position: relative;
    min-height: 760px;
    width: 100%;
    padding: 58px 24px 225px;
    overflow: visible;
    isolation: isolate;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-bottom: 4px solid var(--forest-dark);
}

.party-hero::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 22%, rgba(255, 248, 229, .18) 0%, rgba(255,248,229,.08) 35%, transparent 62%);
}

.hero-copy {
    position: relative;
    z-index: 3;
    width: min(790px, 72vw);
    margin: 0 auto;
    text-align: center;
    color: var(--forest-dark);
    text-shadow: 0 1px 0 rgba(255,255,255,.65);
}

.surprise-line {
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.25rem, 1.7vw, 1.85rem);
    font-weight: 800;
    letter-spacing: .045em;
}

.hero-kicker {
    margin: 0;
    font-size: clamp(1.75rem, 2.7vw, 3rem);
    font-weight: 900;
    letter-spacing: .045em;
}

.party-hero h1 {
    margin: 0;
    color: var(--forest);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(5.3rem, 8.9vw, 9rem);
    line-height: .92;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(201,161,76,.25), 0 8px 25px rgba(4,39,27,.08);
}

.footprint {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: 0 0 auto;
}

.hero-footprint {
    display: block;
    width: 31px;
    height: 31px;
    margin: 12px auto 5px;
    color: var(--forest);
}

.hero-subtitle {
    margin: 6px auto 0;
    color: #18251e;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 600;
}

.hero-balloons {
    position: absolute;
    z-index: 4;
    top: -78px;
    right: -12px;
    width: clamp(330px, 29vw, 500px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 14px 20px rgba(4, 34, 24, .13));
}

.event-card,
.paper-card {
    background: rgba(255, 250, 240, .97);
    border: 1px solid var(--paper-border);
    border-radius: 21px;
    box-shadow: var(--shadow);
}

.event-card {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: -118px;
    width: min(620px, calc(100% - 36px));
    padding: 24px 38px 20px;
    transform: translateX(-50%);
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
    color: var(--forest-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .28em;
}

.section-label span {
    flex: 1;
    height: 1px;
    background: rgba(15,67,47,.47);
}

.event-list {
    width: min(470px, 100%);
    margin: 0 auto;
}

.event-detail {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 6px 0;
    color: var(--ink);
}

.event-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--forest);
    color: #fff6df;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
}

.event-detail strong {
    display: block;
    color: var(--ink);
    font-size: clamp(1.12rem, 1.7vw, 1.38rem);
    font-weight: 700;
    line-height: 1.2;
}

.event-detail small {
    display: block;
    margin-top: 3px;
    color: #545d56;
    font-size: .88rem;
    line-height: 1.35;
}

.event-deadline strong { font-size: 1.02rem; }

.secret-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 13px;
    border-top: 1px solid rgba(15,67,47,.28);
    color: var(--ink);
    text-align: center;
    font-size: .98rem;
    font-weight: 800;
}

.note-footprint {
    width: 23px;
    height: 23px;
    color: var(--forest);
}

.rsvp-area {
    position: relative;
    z-index: 2;
    padding: 158px 0 42px;
    background:
        radial-gradient(circle at 50% 0%, rgba(201,161,76,.11), transparent 35%),
        linear-gradient(180deg, #efe4c8 0%, #f7eed9 36%, #f4ead2 100%);
}

.rsvp-area-error { padding-top: 48px; }

.content-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
}

.rsvp-form { margin: 0; }
.paper-card { margin: 0 0 18px; }

.attendance-card {
    padding: 20px clamp(24px, 4vw, 48px) 25px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--gold);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .19em;
}

.attendance-card h2,
.details-title,
.success-card h2,
.lost-card h2 {
    color: var(--forest-dark);
}

.attendance-card h2 {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.guest-greeting {
    margin: 7px 0 17px;
    color: #424a43;
    font-size: 1rem;
}

.answer-fieldset { margin: 0; }
.answer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.answer-button {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 14px 22px;
    border: 2px solid var(--forest);
    border-radius: 13px;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.05rem, 1.65vw, 1.28rem);
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.answer-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(6,45,31,.11); }
.answer-button:focus-within { outline: 4px solid rgba(201,161,76,.46); outline-offset: 3px; }
.answer-button.selected { outline: 4px solid rgba(201,161,76,.55); outline-offset: 3px; }

.yes-answer {
    background: linear-gradient(180deg, #174c36, #0a3525);
    color: #fff8e8;
}

.no-answer {
    background: #fffaf0;
    color: var(--forest-dark);
}

.button-footprint {
    width: 34px;
    height: 34px;
}
.yes-answer .button-footprint { color: var(--gold-light); }
.no-answer .button-footprint { color: var(--forest); }

.details-card {
    padding: 18px clamp(24px, 5vw, 58px) 30px;
}

.details-title {
    margin: 0 0 14px;
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.form-row-custom {
    display: grid;
    grid-template-columns: minmax(190px, 27%) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 7px 0;
}

.big-label {
    padding-top: 12px;
    color: var(--forest-dark);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.big-label span {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 400;
}

.form-control,
.form-select {
    min-height: 54px;
    border: 1.5px solid rgba(15,67,47,.27);
    border-radius: 8px;
    background: rgba(255,255,255,.97);
    color: #222822;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
}

textarea.form-control { resize: vertical; }
.form-control::placeholder { color: #8b908b; opacity: 1; }
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .25rem rgba(201,161,76,.18);
}
.form-text { margin-top: 4px; color: #697069; font-size: .8rem; }

.btn-dino {
    width: 100%;
    min-height: 66px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(180deg, #174c36, #0a3525);
    color: #fff8e8;
    box-shadow: 0 9px 24px rgba(6,45,31,.16);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.btn-dino:hover,
.btn-dino:focus { background: var(--forest-deep); color: #fff8e8; }
.submit-footprint { width: 32px; height: 32px; color: var(--gold-light); }

.success-card,
.lost-card {
    padding: 34px clamp(24px, 5vw, 50px);
    text-align: center;
}
.success-card { border: 2px solid rgba(201,161,76,.72); }
.success-footprint,
.lost-footprint { width: 48px; height: 48px; color: var(--gold); margin-bottom: 5px; }
.success-card h2,
.lost-card h2 { margin: 0 0 8px; font-size: clamp(2rem, 3.5vw, 2.7rem); }
.secret-reminder {
    max-width: 610px;
    margin: 17px auto 0;
    padding: 11px 15px;
    border-radius: 9px;
    background: #f0dfaf;
    color: var(--forest-deep);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .92rem;
    font-weight: 900;
}

.footer-jungle {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 52px 20px 120px;
    background-image: url('../img/footer.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.phone-callout {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 28px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    color: var(--forest-dark);
    text-align: left;
}

.phone-callout::before,
.phone-callout::after {
    content: '';
    width: 150px;
    height: 1px;
    background: rgba(15,67,47,.55);
}

.phone-icon-img {
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
    flex: 0 0 62px;
    object-fit: contain;
}

.phone-callout h3 {
    margin: 0;
    color: var(--forest-dark);
    font-size: 1.23rem;
    font-weight: 800;
}
.phone-callout p { margin: 2px 0 0; font-size: .98rem; }
.phone-callout a { font-weight: 800; }

.invite-footer {
    position: relative;
    z-index: 3;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid rgba(201,161,76,.65);
    background: var(--forest-deep);
    color: var(--gold-light);
}

.footer-line {
    width: min(1000px, calc(100% - 30px));
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
}
.footer-line i { font-style: normal; }
.footer-footprint { width: 20px; height: 20px; color: var(--gold-light); }

.invite-missing .party-hero {
    min-height: 610px;
    padding-bottom: 95px;
}

@media (max-width: 1100px) {
    .hero-balloons { right: -80px; width: 400px; }
    .hero-copy { width: min(760px, 78vw); }
}

@media (max-width: 820px) {
    .party-hero {
        min-height: 690px;
        padding: 48px 16px 220px;
        background-position: center center;
    }
    .hero-copy { width: 91%; }
    .hero-balloons { top: -72px; right: -105px; width: 330px; opacity: .97; }
    .party-hero h1 { font-size: clamp(4.4rem, 16vw, 7rem); }
    .event-card { bottom: -126px; padding: 23px 24px 20px; }
    .rsvp-area { padding-top: 165px; }
    .answer-grid { grid-template-columns: 1fr; }
    .answer-button { min-height: 72px; }
    .form-row-custom { grid-template-columns: 1fr; gap: 6px; padding: 8px 0; }
    .big-label { padding-top: 0; font-size: 1.08rem; }
    .form-control, .form-select { min-height: 58px; font-size: 1.04rem; }
    .phone-callout::before, .phone-callout::after { width: 55px; }
}

@media (max-width: 560px) {
    .invite-body { font-size: 17px; }
    .party-hero {
        min-height: 655px;
        padding-top: 38px;
        background-position: 50% center;
    }
    .hero-balloons { top: -48px; right: -104px; width: 260px; }
    .hero-copy { width: 96%; }
    .surprise-line { font-size: 1.06rem; letter-spacing: .025em; }
    .hero-kicker { font-size: clamp(1.5rem, 7vw, 2rem); }
    .party-hero h1 { font-size: clamp(4rem, 20vw, 5.8rem); }
    .hero-subtitle { max-width: 340px; font-size: 1.2rem; }
    .event-card { width: calc(100% - 24px); bottom: -135px; padding: 20px 17px 18px; border-radius: 16px; }
    .section-label { gap: 9px; letter-spacing: .18em; }
    .event-detail { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; }
    .event-icon { width: 39px; height: 39px; }
    .event-detail strong { font-size: 1.08rem; }
    .event-detail small { font-size: .78rem; }
    .secret-note { font-size: .9rem; }
    .rsvp-area { padding-top: 172px; }
    .content-shell { width: calc(100% - 22px); }
    .paper-card { border-radius: 16px; }
    .attendance-card { padding: 21px 16px 22px; }
    .attendance-card h2 { font-size: 2.12rem; }
    .guest-greeting { font-size: .96rem; }
    .answer-button { min-height: 70px; padding: 13px 14px; font-size: 1rem; gap: 10px; }
    .button-footprint { width: 28px; height: 28px; }
    .details-card { padding: 19px 16px 25px; }
    .details-title { font-size: 1.7rem; }
    .btn-dino { min-height: 70px; font-size: 1.2rem; }
    .footer-jungle { min-height: 250px; padding: 42px 15px 90px; background-position: 58% center; }
    .phone-callout { flex-direction: column; gap: 7px; text-align: center; }
    .phone-callout::before, .phone-callout::after { display: none; }
    .phone-icon-img { width: 58px !important; height: 58px !important; max-width: 58px !important; flex-basis: 58px; }
    .footer-line { min-height: 72px; flex-wrap: wrap; gap: 6px 10px; padding: 12px 0; letter-spacing: .09em; font-size: .66rem; }
    .footer-line i { display: none; }
    .footer-footprint { display: none; }
    .invite-missing .party-hero { min-height: 520px; }
    .rsvp-area-error { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   ADMIN - preserved from the working system
   -------------------------------------------------------------------------- */
.admin-body {
    background: #f4f1e9;
    color: #20241f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.admin-navbar { background: var(--forest-deep); }
.admin-navbar .navbar-brand { font-weight: 900; color: white; }
.admin-navbar .nav-link { color: rgba(255,255,255,.76); }
.admin-navbar .nav-link:hover, .admin-navbar .nav-link.active { color: var(--gold-light); }
.admin-card {
    background: white;
    border: 1px solid #e7e1d4;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(12,43,32,.06);
}
.metric-card { min-height: 128px; }
.metric-value { font-size: 2.45rem; line-height: 1; font-weight: 900; color: var(--forest); }
.metric-label { color: #687069; font-weight: 700; margin-top: 8px; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .82rem;
    font-weight: 800;
}
.status-yes { color: #185534; background: #e2f3e8; }
.status-no { color: #7b332c; background: #f7e4e1; }
.status-pending { color: #775c18; background: #f7efcf; }
.open-pill { color: #244a7a; background: #e7f0fb; }
.unopened-pill { color: #626a65; background: #edf0ed; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); display: inline-block; margin-right: 8px; }
.table > :not(caption) > * > * { padding: .9rem .75rem; vertical-align: middle; }
.copy-field { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
.danger-zone { border: 1px solid #e4aaa4; background: #fff8f7; }
