/* Kalėdos — festive but calm: pine green, cranberry, warm gold on snow-white. Fonts vendored. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/inter-roman-300-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/inter-roman-300-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --pine: #14532d; --pine-dark: #0c3a1f; --pine-soft: #e8f1eb;
  --berry: #b4232c; --berry-dark: #8f1b22; --berry-soft: #fbeaeb;
  --gold: #f3d27a; --gold-dark: #8a6410; --gold-soft: #fdf6e3;
  --ink: #1c2420; --muted: #56605a; --line: #e3e6e1; --snow: #fbfaf7; --card: #fff;
  --radius: 16px; --shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 8px 24px rgba(16, 40, 24, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--snow);
}
body.tinted { background: linear-gradient(180deg, var(--pine-soft) 0, var(--snow) 420px); }
main { flex: 1; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 650; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--berry); }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 480px; }
.page { padding: 40px 0 64px; }
.page-landing { padding: 0 0 64px; }
.muted { color: var(--muted); }
.icon, .icon-sm { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.icon-sm { width: 16px; height: 16px; vertical-align: -3px; }

/* header / footer */
.site-header { background: var(--pine-dark); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand-mark { width: 28px; height: 28px; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav-btn { color: #fff; text-decoration: none; font: inherit; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.nav a.btn-gold { background: var(--gold); color: var(--pine-dark); }
.nav a.btn-gold:hover { color: var(--pine-dark); background: #f7dc93; }
form.inline { display: inline; margin: 0; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; padding: 11px 20px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--berry); color: #fff; }
.btn-primary:hover { background: var(--berry-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--pine-dark); }
.btn-gold:hover { background: #f7dc93; color: var(--pine-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--pine); color: var(--pine); }
.btn-danger { background: #fff; border-color: var(--berry); color: var(--berry); }
.btn-danger:hover { background: var(--berry); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .875rem; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 80% -10%, #1f6b3c 0, transparent 60%), linear-gradient(160deg, var(--pine-dark), var(--pine)); padding: 72px 0 104px; }
.hero-inner { position: relative; max-width: 760px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #e6efe9; max-width: 620px; margin: 0 auto 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.eyebrow.dark { color: var(--berry); margin-bottom: 8px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 48px; color: var(--snow); }
.snow { position: absolute; inset: 0; pointer-events: none; }
.flake { position: absolute; width: 18px; height: 18px; color: #fff; opacity: .16; }
.f0 { left: 4%; top: 18%; width: 26px; height: 26px; } .f1 { left: 12%; top: 62%; }
.f2 { left: 20%; top: 30%; width: 12px; height: 12px; } .f3 { left: 28%; top: 78%; width: 22px; height: 22px; }
.f4 { left: 36%; top: 10%; width: 14px; height: 14px; } .f5 { left: 46%; top: 88%; width: 12px; height: 12px; }
.f6 { left: 58%; top: 8%; width: 20px; height: 20px; } .f7 { left: 66%; top: 70%; width: 14px; height: 14px; }
.f8 { left: 74%; top: 24%; width: 30px; height: 30px; } .f9 { left: 82%; top: 58%; }
.f10 { left: 90%; top: 14%; width: 14px; height: 14px; } .f11 { left: 94%; top: 76%; width: 24px; height: 24px; }
.f12 { left: 8%; top: 90%; width: 12px; height: 12px; } .f13 { left: 52%; top: 40%; width: 10px; height: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .flake { animation: drift 9s ease-in-out infinite alternate; }
  .flake:nth-child(3n) { animation-duration: 12s; } .flake:nth-child(3n+1) { animation-delay: -4s; }
  @keyframes drift { from { transform: translateY(-6px) rotate(0); } to { transform: translateY(10px) rotate(40deg); } }
}

/* steps */
.steps-section { padding-top: 48px; }
.section-title { justify-content: center; font-size: 1.6rem; margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow); }
.step p { color: var(--muted); margin: 0; }
.step-num { position: absolute; top: 20px; right: 22px; font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--pine-soft); }
.step-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--berry-soft); color: var(--berry); margin-bottom: 16px; }

/* limit banner */
.limit-banner { display: flex; align-items: center; gap: 16px; background: var(--gold-soft); border: 1px solid #efdca6; border-left: 5px solid var(--gold-dark); border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; }
.limit-banner strong { display: block; font-size: 1.05rem; color: var(--ink); }
.limit-banner span { color: #4d4a3f; font-size: .95rem; }
.limit-icon { width: 36px; height: 36px; flex: none; color: var(--gold-dark); }
.narrow .limit-banner { margin-top: 20px; }

/* cards, forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; min-width: 0; }
.card.center { text-align: center; }
.card-icon { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--berry-soft); color: var(--berry); margin-bottom: 14px; }
.auth-card .card-icon, .card.center .card-icon { display: block; margin: 0 auto 14px; }
.auth-card h1 { text-align: center; font-size: 1.6rem; }
.auth-card > .muted { text-align: center; }
.form { display: grid; gap: 18px; }
.form > .btn:not(.btn-block) { justify-self: start; }
.field { display: grid; gap: 6px; }
.label { font-weight: 600; font-size: .92rem; }
.input { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #cfd5ce; border-radius: 10px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
textarea.input { resize: vertical; min-height: 96px; }
.input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(20, 83, 45, .15); }
.has-error .input { border-color: var(--berry); }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.error { font-size: .875rem; color: var(--berry-dark); margin: 0; font-weight: 500; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pine); }
.check .error { grid-column: 1 / -1; }
.switch { text-align: center; margin: 20px 0 0; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* alerts, badges */
.flashes { margin-bottom: 20px; }
.page-landing .flashes { margin-top: 20px; }
.alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; border: 1px solid; font-weight: 500; }
.alert-success { background: var(--pine-soft); border-color: #bcd6c4; color: var(--pine-dark); }
.alert-error { background: var(--berry-soft); border-color: #f0c2c5; color: var(--berry-dark); }
.alert-warning { background: var(--gold-soft); border-color: #efdca6; color: #5c430a; }
.alert-info { background: #eef3f7; border-color: #d3dee8; color: #29445c; font-weight: 400; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-pending { background: var(--gold-soft); color: #6b4e0b; border: 1px solid #efdca6; margin-bottom: 12px; }
.badge-approved { background: var(--pine-soft); color: var(--pine-dark); }
.badge-rejected { background: var(--berry-soft); color: var(--berry-dark); }
.badge-gold { background: var(--gold-soft); color: #6b4e0b; }
.yes { color: var(--pine); font-weight: 600; } .no { color: var(--berry-dark); font-weight: 600; } .warn { color: #6b4e0b; font-weight: 600; }

/* member page */
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.recipient-card { border-top: 5px solid var(--berry); }
.recipient-name { font-size: 2rem; font-weight: 700; color: var(--pine-dark); margin: 4px 0 6px; letter-spacing: -.01em; }
.note { color: var(--muted); font-size: .92rem; }
.sub { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.wish-text { white-space: pre-line; background: var(--snow); border-radius: 12px; padding: 14px 16px; overflow-wrap: anywhere; }
.links { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.links li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.links a { overflow-wrap: anywhere; }
.empty { text-align: center; padding: 20px 8px 8px; }
.empty-icon { width: 56px; height: 56px; color: var(--pine); opacity: .35; margin-bottom: 8px; }
.empty p { margin-bottom: .4em; }

/* admin */
.tabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--pine-dark); border-bottom-color: var(--berry); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--pine-dark); line-height: 1.2; }
.stat-label { font-size: .85rem; color: var(--muted); }
.pending-list { list-style: none; padding: 0; margin: 0; }
.pending-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.pending-item:first-child { border-top: 0; padding-top: 4px; }
.who { display: grid; min-width: 0; } .who .muted { font-size: .9rem; overflow-wrap: break-word; word-break: break-word; }
.actions { display: flex; gap: 8px; flex: none; }
.actions form, .cell-actions form { margin: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { white-space: nowrap; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.cell-actions { text-align: right; }
.break { overflow-wrap: break-word; word-break: break-word; }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--pine-soft); color: var(--pine-dark); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: .92rem; }
.chip-note { color: #6b4e0b; font-size: .78rem; }
.draw-status { display: flex; align-items: center; gap: 18px; border-left: 5px solid var(--pine); }
.draw-status .card-icon { margin: 0; flex: none; background: var(--pine-soft); color: var(--pine); }
.draw-status h2 { margin-bottom: 4px; } .draw-status p { margin: 0; }
.danger-zone { border-color: #f0c2c5; }
.pairs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.pairs li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 10px 14px; background: var(--snow); border-radius: 10px; font-weight: 500; }
.pairs .icon { color: var(--berry); }
.pairs li span:last-child { text-align: right; }

@media (max-width: 860px) {
  .steps, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page { padding: 24px 0 48px; }
  .page-landing { padding-top: 0; }
  .card { padding: 22px 18px; }
  .hero { padding: 48px 0 84px; }
  .header-row { min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 4px; }
  .header-row .nav { justify-content: flex-start; margin-left: -9px; }
  .header-row:has(.nav-btn) .nav { width: calc(100% + 9px); }
  .brand span { font-size: 1.1rem; }
  .nav a, .nav-btn { padding: 8px 9px; font-size: .9rem; }
  .pending-item { flex-direction: column; align-items: flex-start; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; flex: none; }
  .table td:first-child { text-align: left; } .table td:first-child::before { content: none; }
  .cell-actions { justify-content: flex-end; }
  .limit-banner { align-items: flex-start; padding: 14px 16px; }
  .limit-icon { width: 28px; height: 28px; }
}
