:root {
  --green: #1E4D2B; --green-2: #2C6B3C; --lime: #9BD34A; --cream: #F7F4EA; --paper: #FFFDF7;
  --ink: #17241A; --muted: #5E6B60; --line: #E2DDCB; --red: #C2410C; --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: 'Heebo', system-ui, sans-serif; background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: var(--green-2); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--green); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px;
  padding: 14px 18px; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; transition: transform .08s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-lime { background: var(--lime); color: var(--green); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-black { background: #000; color: #fff; }
.btn-block { width: 100%; }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
input, select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; background: #fff; color: var(--ink); font-size: 17px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(155, 211, 74, .35); }

.muted { color: var(--muted); }
.error { color: var(--red); font-weight: 600; min-height: 1.4em; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--green); color: var(--cream);
  padding: 14px 22px; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .3s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--red); }

.dots { display: flex; flex-wrap: wrap; gap: 8px; direction: rtl; }
.dot { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #b9b39c; display: grid; place-items: center; font-size: 16px; }
.dot.on { background: var(--lime); border: 2px solid var(--lime); }
.dot.gift { border-style: solid; }

.pin-gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.pin-gate .card { width: 100%; max-width: 360px; text-align: center; }
