:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #263c34;
  background: #fafbf8;
  font-synthesis: none;
  --green: #244c3d;
  --muted: #69756f;
  --border: #e2e7e1;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #568569; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 600; letter-spacing: -.8px; line-height: 1.3; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 25px; font-weight: 700; letter-spacing: -1px; }
.brand-mark { color: var(--green); display: inline-flex; }
.brand-mark .icon { width: 23px; height: 23px; stroke-width: 2; }
.brand-dot { color: #829776; margin-left: -6px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 17px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 500; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover:not(:disabled) { background: #183d2e; }
.button.secondary { background: transparent; border-color: #ced8cf; color: var(--green); }
.button.secondary:hover:not(:disabled) { background: #eef2eb; }
.full { width: 100%; }
.text-button { border: 0; background: transparent; padding: 8px 0; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.text-button:hover { color: var(--green); text-decoration: underline; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; border-radius: 6px; color: var(--muted); }
.icon-button:hover { background: #eff2eb; }
label { display: block; margin: 22px 0 9px; font-size: 13px; font-weight: 500; }
input { width: 100%; min-height: 46px; border: 1px solid #d4dcd4; border-radius: 6px; padding: 12px 13px; background: #fff; color: #263c34; font-size: 14px; }
input::placeholder { color: #8b948c; }
.form-error { font-size: 12px; color: #aa4038; line-height: 1.6; margin: 14px 0; }
.form-error:empty { margin: 24px 0 0; }
.login-layout { min-height: 100dvh; display: grid; place-items: center; padding: 48px 24px; }
.login-form-wrap { width: 100%; max-width: 360px; }
.login-form-wrap .brand { margin-bottom: 44px; }
.login-form-wrap h1 { font-size: 26px; margin-bottom: 28px; }
.login-field { min-height: 54px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0 16px; border-radius: 10px; background: #f0f1f0; color: #36423d; }
.login-field:focus-within { outline: 2px solid #568569; outline-offset: 2px; }
.login-field .icon { width: 20px; height: 20px; stroke-width: 1.7; }
.login-field input { min-width: 0; min-height: auto; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; font-size: 16px; }
.login-field input:focus-visible { outline: 0; }
.login-field input::placeholder { color: #858b87; }
.field-action { flex-shrink: 0; padding: 8px 0 8px 10px; border: 0; background: transparent; color: #777d79; font-size: 13px; }
.field-action:hover { color: var(--green); }
.preview-link { margin: 20px auto 0; display: flex; justify-content: center; }
.login-footer { font-size: 11px; text-align: center; color: #818b81; margin-top: 40px; line-height: 1.6; }
.workspace { min-height: 100dvh; }
.app-header { display: flex; align-items: center; gap: 40px; max-width: 1100px; padding: 18px 32px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.profile { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }
.profile > span { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.content { width: 100%; max-width: 880px; margin: 0 auto; padding: 64px 32px; }
.page-heading { margin-bottom: 32px; }
.page-heading .muted { margin-top: 10px; font-size: 13px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.tabs button { min-height: 44px; padding: 10px 0 13px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; }
.tabs button.selected { border-bottom-color: var(--green); color: var(--green); font-weight: 600; }
.coupon-grid { display: flex; flex-direction: column; }
.coupon-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px 0; border-bottom: 1px solid var(--border); }
.coupon-main { min-width: 0; }
.card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-top h2 { font-size: 16px; font-weight: 550; }
.pill { display: inline-flex; padding: 4px 7px; border-radius: 4px; background: #eff1ed; color: #6c756c; font-size: 10px; white-space: nowrap; }
.pill.green { background: #e9f0e6; color: #436740; }
.period-date { margin: 9px 0 6px; font-size: 13px; color: #657166; line-height: 1.6; }
.coupon-main small { display: block; font-size: 11px; color: #808980; line-height: 1.6; }
.coupon-action { flex-shrink: 0; }
.coupon-action .button { min-width: 154px; }
.coupon-action:empty { display: none; }
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state h2 { font-size: 18px; font-weight: 500; }
.empty-state p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 10px 0 20px; }
.empty-state > .icon { width: 28px; height: 28px; margin-bottom: 18px; color: var(--muted); }
.loading { min-height: 40vh; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); color: var(--muted); padding-bottom: 14px; margin-bottom: 32px; font-size: 11px; line-height: 1.7; }
.demo-banner .text-button { font-size: 11px; white-space: nowrap; }
.coupon-dialog { width: 500px; height: 456px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #fafbf8; color: #263c34; padding: 36px 28px 24px; text-align: center; }
.coupon-dialog::backdrop { background: #17282070; }
.coupon-dialog { height: 530px; }
.coupon-dialog.project-dialog { height: 400px; }
.bonus-amount { margin: 14px 0 20px; display: grid; gap: 4px; }
.bonus-amount span { color: var(--muted); font-size: 11px; }
.bonus-amount strong { font-size: 22px; font-weight: 600; }
.bonus-types { display: grid; gap: 16px; }
.bonus-type { display: flex; align-items: center; justify-content: space-between; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--green); text-align: left; }
.bonus-type:hover { background: #f0f3ed; }
.bonus-type strong { font-size: 17px; }
.bonus-type small { display: block; margin-top: 8px; color: var(--muted); }
.year-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.year-filter label { margin: 0; }
.year-filter select { padding: 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--green); background: transparent; font: inherit; }
.load-more { display: flex; margin: 24px auto; }
.modal-close { position: absolute; top: 6px; right: 6px; }
.coupon-dialog h2 { font-size: 22px; font-weight: 550; }
.bonus-rates { margin: 18px 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 7px; text-align: left; }
.bonus-rates h3 { margin-bottom: 6px; font-size: 10px; font-weight: 600; color: #61775b; text-transform: uppercase; letter-spacing: .7px; }
.bonus-rates div { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.bonus-rates div strong { color: #263c34; font-weight: 550; }
.scratch-wrap { height: 112px; position: relative; overflow: hidden; border: 1px solid #c6cfbd; border-radius: 7px; background: #edf1e7; }
.scratch-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }

.expired-code { height: 100%; display: grid; place-items: center; color: #68736b; font-size: 14px; font-weight: 600; letter-spacing: 2.5px; }
.scratch-hint { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 18px 0 5px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.scratch-hint .icon { display: none; }
.modal-footer { font-size: 10px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; }
.modal-footer .icon { width: 12px; height: 12px; margin-right: 4px; }
.revealed-code { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 34px 18px; text-align: center; align-items: center; }
.revealed-code strong { width: 100%; overflow-wrap: anywhere; font-family: monospace; font-size: 23px; letter-spacing: 1px; user-select: all; }
.revealed-code .copy-code { position: absolute; top: 7px; right: 7px; width: 34px; height: 34px; color: var(--green); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 7px; background: var(--green); color: #fff; font-size: 12px; line-height: 1.7; opacity: 0; pointer-events: none; z-index: 30; }
#toast.show { opacity: 1; }
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; pointer-events: none; z-index: 40; }
@media (max-width: 650px) {
  .app-header { padding: 14px 20px; gap: 20px; flex-wrap: wrap; }
  .app-header .brand { font-size: 16px; letter-spacing: -.6px; }
  .app-header .brand-mark .icon { width: 19px; height: 19px; }
  .app-header .profile { margin-left: auto; }
  .profile > span { display: none; }
  .content { padding: 36px 20px; }
  h1 { font-size: 25px; }
  .page-heading { margin-bottom: 25px; }
  .page-heading .muted { font-size: 12px; }
  .tabs { gap: 23px; }
  .tabs button { font-size: 11px; }
  .coupon-card { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 0; }
  .card-top { justify-content: space-between; gap: 8px; }
  .card-top h2 { font-size: 15px; }
  .period-date { font-size: 12px; }
  .coupon-action .button { width: 100%; justify-content: space-between; }
  .demo-banner { align-items: flex-start; flex-direction: column; gap: 2px; margin-bottom: 28px; padding-bottom: 13px; }
  .login-layout { padding: 40px 24px; }
  .login-form-wrap .brand { margin-bottom: 38px; }
  .coupon-dialog { padding: 40px 22px 22px; }
}
