:root {
    --ink: #282526;
    --ink-soft: #514c4e;
    --paper: #f5f1e9;
    --white: #ffffff;
    --orange: #d06425;
    --orange-dark: #a93d18;
    --gold: #f3b82c;
    --sun: #ffd94d;
    --river: #66cfe8;
    --green: #9ed62b;
    --line: #ded8cf;
    --shadow: 0 24px 60px rgba(27, 22, 21, .14);
    --radius: 22px;
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(40,37,38,.1);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; background: #fff; border-radius: 14px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; letter-spacing: -.01em; }
.brand small { color: var(--orange-dark); text-transform: uppercase; letter-spacing: .16em; font-size: .67rem; font-weight: 800; margin-top: 2px; }
.header-link { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 850; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 3px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .24;
    background-image: repeating-linear-gradient(108deg, transparent 0 52px, rgba(255,255,255,.06) 53px 54px), linear-gradient(130deg, #1d1b1c, #3d2925 60%, #1c2e33);
}
.hero::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    left: -230px;
    bottom: -370px;
    border-radius: 50%;
    border: 68px solid rgba(102,207,232,.14);
    z-index: -1;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); z-index: -1; }
.hero-glow-one { width: 540px; height: 540px; right: -170px; top: -280px; background: radial-gradient(circle, rgba(243,184,44,.45), rgba(208,100,37,.08) 68%, transparent 70%); }
.hero-glow-two { width: 330px; height: 330px; left: 39%; bottom: -260px; background: rgba(158,214,43,.09); }
.hero-grid { min-height: 680px; padding-block: 82px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 12px; color: var(--orange-dark); font-size: .76rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.light { color: var(--sun); }
.hero h1 { margin: 0; font-size: clamp(3.25rem, 7vw, 6.9rem); line-height: .89; letter-spacing: -.065em; max-width: 760px; }
.hero h1 span { color: var(--sun); }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.58; color: rgba(255,255,255,.82); max-width: 670px; margin: 30px 0 24px; }
.hero-lead em { color: var(--river); font-style: normal; font-weight: 800; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-points span { border: 1px solid rgba(255,255,255,.23); background: rgba(255,255,255,.07); border-radius: 999px; padding: 8px 13px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.donor-line { font-size: .9rem; color: rgba(255,255,255,.66); max-width: 600px; }
.donor-line strong { color: #fff; }

.live-card { color: var(--ink); background: rgba(255,255,255,.97); border-radius: 28px; padding: 32px; box-shadow: 0 30px 100px rgba(0,0,0,.36); border-top: 8px solid var(--gold); }
.live-topline { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #70696b; font-size: .78rem; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: #e5f7d2; color: #3d6813; padding: 6px 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #69a51c; box-shadow: 0 0 0 4px rgba(105,165,28,.14); }
.status-pill[data-state="scheduled"] { background: #fff3c9; color: #7e5d00; }
.status-pill[data-state="scheduled"]::before { background: var(--gold); }
.status-pill[data-state="closed"], .status-pill[data-state="paused"] { background: #eee9e7; color: #6e6667; }
.status-pill[data-state="closed"]::before, .status-pill[data-state="paused"]::before { background: #8a8283; }
.live-label { color: #756e70; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 900; margin: 30px 0 0; }
.live-amount { font-size: clamp(3rem, 6vw, 5.3rem); line-height: 1; letter-spacing: -.06em; font-weight: 900; margin: 6px 0 5px; color: var(--orange-dark); }
.bidder-code { margin: 0 0 26px; font-size: .85rem; color: #756e70; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.countdown div { text-align: center; background: #f2eee7; border-radius: 12px; padding: 12px 4px 10px; }
.countdown strong, .countdown span { display: block; }
.countdown strong { font-size: 1.55rem; line-height: 1; }
.countdown span { font-size: .58rem; text-transform: uppercase; letter-spacing: .09em; color: #736d6e; margin-top: 6px; font-weight: 800; }
.closing-time { margin: 20px 0 4px; font-size: .84rem; }
.extension-note { margin: 0 0 22px; font-size: .75rem; line-height: 1.45; color: #726b6d; }

.button { appearance: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; font-weight: 900; letter-spacing: .035em; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-primary { color: #fff; background: var(--orange-dark); box-shadow: 0 9px 24px rgba(169,61,24,.24); }
.button-primary:hover { background: #8f3011; }
.button-secondary { color: var(--ink); background: #eee8df; }
.button-sun { color: #322807; background: var(--sun); box-shadow: 0 10px 26px rgba(243,184,44,.22); }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }

.impact-band { background: #fff; border-bottom: 1px solid var(--line); }
.impact-inner { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 56px; padding-block: 56px; }
.impact-inner img { width: 220px; max-height: 200px; object-fit: contain; }
.impact-inner h2, .section-heading h2, .bid-intro h2, .rules-grid h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; }
.impact-inner p:last-child { max-width: 760px; color: var(--ink-soft); font-size: 1.03rem; }

.details-section { padding: 100px 0; }
.section-heading { max-width: 780px; margin-bottom: 42px; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detail-card { min-height: 310px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 12px 36px rgba(40,37,38,.05); }
.detail-card:nth-child(1) { border-top: 6px solid var(--orange); }
.detail-card:nth-child(2) { border-top: 6px solid var(--river); }
.detail-card:nth-child(3) { border-top: 6px solid var(--green); }
.detail-number { font-size: .73rem; color: #898183; font-weight: 900; letter-spacing: .15em; }
.detail-card h3 { font-size: 1.45rem; line-height: 1.12; margin: 70px 0 12px; letter-spacing: -.025em; }
.detail-card p { color: var(--ink-soft); margin: 0; }
.date-callout { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; margin-top: 24px; border-radius: 16px; background: var(--ink); color: #fff; padding: 24px 28px; }
.date-callout strong { color: var(--sun); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.date-callout p { margin: 0; color: rgba(255,255,255,.78); }

.bid-section { padding: 100px 0; color: #fff; background: linear-gradient(138deg, #332e2f, #201e1f); position: relative; overflow: hidden; }
.bid-section::after { content: ""; position: absolute; right: -180px; top: -180px; width: 480px; height: 480px; border-radius: 50%; border: 68px solid rgba(243,184,44,.08); }
.bid-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: start; }
.bid-intro .eyebrow { color: var(--sun); }
.bid-intro > p:not(.eyebrow):not(.small-copy) { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.auction-facts { border-top: 1px solid rgba(255,255,255,.16); margin: 34px 0 24px; }
.auction-facts div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.16); padding: 13px 0; }
.auction-facts dt { color: rgba(255,255,255,.66); }
.auction-facts dd { margin: 0; font-weight: 800; text-align: right; }
.small-copy { color: rgba(255,255,255,.6); font-size: .82rem; }
.bid-form-card { color: var(--ink); background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 18px; }
.field label, .setup-form label { display: block; font-size: .8rem; font-weight: 850; margin-bottom: 7px; }
.field input, .setup-form input { width: 100%; min-height: 49px; border: 1px solid #cfc7be; border-radius: 10px; background: #fff; padding: 10px 12px; color: var(--ink); }
.field input:focus, .setup-form input:focus { border-color: var(--orange); outline: 3px solid rgba(208,100,37,.13); }
.field small, .setup-form label span { display: block; color: #777071; font-size: .7rem; margin-top: 6px; font-weight: 500; }
.amount-field label { font-size: .9rem; }
.money-input { display: flex; align-items: center; border: 2px solid var(--orange); border-radius: 13px; overflow: hidden; background: #fffaf4; }
.money-input:focus-within { outline: 3px solid rgba(208,100,37,.14); }
.money-input span { font-size: 1.7rem; font-weight: 900; padding-left: 15px; color: var(--orange-dark); }
.money-input input { border: 0; outline: 0 !important; background: transparent; font-size: 1.7rem; font-weight: 900; min-height: 60px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; margin: 15px 0; font-size: .8rem; color: #5e585a; }
.check input { width: 18px; height: 18px; accent-color: var(--orange-dark); }
.form-privacy { text-align: center; color: #787173; font-size: .7rem; margin: 15px auto 0; max-width: 510px; }
.trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-state { display: none; border-radius: 12px; padding: 13px 15px; margin-bottom: 18px; font-size: .84rem; }
.form-state.is-visible { display: block; }
.form-state.is-success { background: #ecf8df; border: 1px solid #bddf94; color: #355c10; }
.form-state.is-error { background: #fff0eb; border: 1px solid #efb6a3; color: #7f2912; }
.form-state.is-info { background: #eaf8fb; border: 1px solid #a9dde7; color: #245e6a; }

.rules-preview { background: #fff; padding: 80px 0; }
.rules-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.rules-list { border-left: 1px solid var(--line); padding-left: 46px; }
.rules-list p { margin: 0 0 17px; color: var(--ink-soft); }
.rules-list a { font-weight: 850; }

.site-footer { background: #1c1a1b; color: rgba(255,255,255,.75); padding: 48px 0 25px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 74px; height: 74px; object-fit: contain; background: #fff; border-radius: 12px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { color: #fff; }
.footer-brand small { font-size: .74rem; max-width: 390px; margin-top: 3px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #fff; font-size: .78rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .66rem; color: rgba(255,255,255,.48); }

.legal-body { background: #f4f0e8; }
.legal-shell { width: min(calc(100% - 40px), 850px); margin: 68px auto 100px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: clamp(28px, 6vw, 70px); border-top: 8px solid var(--orange); }
.legal-shell h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
.legal-shell h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal-shell p { color: var(--ink-soft); }
.legal-intro { font-size: 1.1rem; }
.legal-back { margin-top: 40px; }

.setup-body { min-height: 100vh; background: linear-gradient(150deg, #292526, #4b3028); padding: 40px 20px; }
.setup-shell { width: min(100%, 760px); margin: 0 auto; }
.setup-logo { width: 180px; height: 180px; object-fit: contain; background: #fff; border-radius: 24px; padding: 4px; margin: 0 auto 24px; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.setup-card { background: #fff; border-radius: 24px; padding: clamp(26px, 6vw, 52px); box-shadow: var(--shadow); }
.setup-card h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.setup-card > p:not(.eyebrow) { color: var(--ink-soft); }
.setup-form fieldset { border: 1px solid var(--line); border-radius: 15px; padding: 20px; margin: 22px 0; }
.setup-form legend { padding: 0 8px; color: var(--orange-dark); font-weight: 900; }
.setup-form label { margin: 14px 0; }
.notice { background: #edf8fa; border: 1px solid #b7dfe6; color: #2f5c65; border-radius: 11px; padding: 13px 15px; margin: 18px 0; font-size: .82rem; }
.notice-error { background: #fff0eb; border-color: #efb6a3; color: #7f2912; }
.notice-warning { background: #fff5d6; border-color: #e8cb67; color: #6c5100; }
.notice ul { margin-bottom: 0; }
code { background: #eeeae4; border-radius: 5px; padding: 2px 5px; }

.admin-body { background: #f1ede5; min-height: 100vh; }
.admin-header { background: var(--ink); color: #fff; }
.admin-header .header-inner { min-height: 68px; }
.admin-header .brand { color: #fff; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; }
.admin-shell { width: min(calc(100% - 34px), 1280px); margin: 42px auto 80px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat-card span, .stat-card strong { display: block; }
.stat-card span { color: #756f70; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.stat-card strong { font-size: 2rem; margin-top: 4px; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 20px; overflow: hidden; }
.admin-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.admin-panel h2 { margin: 0; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid #e9e4dd; padding: 10px 8px; text-align: left; vertical-align: top; white-space: nowrap; }
.admin-table th { color: #6f686a; text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; }
.admin-table tr.is-disqualified { opacity: .5; background: #f6f1ef; }
.admin-table form { display: inline; }
.mini-button { border: 1px solid #cfc8c1; background: #fff; border-radius: 7px; padding: 5px 8px; cursor: pointer; font-size: .7rem; font-weight: 800; }
.mini-button.danger { color: #8b2812; border-color: #e1a391; }
.admin-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.admin-controls label { font-size: .75rem; font-weight: 800; }
.admin-controls select { display: block; margin-top: 5px; min-height: 42px; border: 1px solid #cfc7be; border-radius: 8px; padding: 7px; background: #fff; }
.login-shell { width: min(calc(100% - 34px), 470px); margin: 70px auto; }
.login-card { background: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow); border-top: 6px solid var(--orange); }
.login-card img { width: 130px; height: 130px; object-fit: contain; margin: 0 auto 18px; }
.login-card h1 { margin: 0 0 25px; text-align: center; }

@media (max-width: 900px) {
    .hero-grid, .bid-layout { grid-template-columns: 1fr; }
    .hero-grid { padding-block: 66px; gap: 46px; }
    .hero h1 { max-width: 730px; }
    .live-card { max-width: 600px; width: 100%; }
    .details-grid { grid-template-columns: 1fr; }
    .detail-card { min-height: 220px; }
    .detail-card h3 { margin-top: 35px; }
    .impact-inner { grid-template-columns: 150px 1fr; gap: 30px; }
    .rules-grid { grid-template-columns: 1fr; gap: 32px; }
    .rules-list { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
    .admin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-inner { min-height: 68px; }
    .brand-mark { width: 48px; height: 48px; }
    .brand strong { font-size: .78rem; }
    .brand small { font-size: .58rem; }
    .header-link { font-size: .69rem; }
    .hero-grid { min-height: 0; padding-block: 52px; }
    .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
    .hero-lead { margin-top: 24px; }
    .live-card { padding: 24px 20px; }
    .live-amount { font-size: 3.3rem; }
    .countdown strong { font-size: 1.25rem; }
    .impact-inner { grid-template-columns: 1fr; text-align: center; }
    .impact-inner img { width: 180px; margin: 0 auto; }
    .details-section, .bid-section { padding: 70px 0; }
    .date-callout { grid-template-columns: 1fr; gap: 6px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid, .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-brand { align-items: flex-start; }
    .site-footer nav { margin-top: 12px; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-header-actions .button { padding-inline: 10px; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

