@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg:#fffaf3;
  --bg2:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --line:rgba(17,24,39,.10);
  --card:rgba(255,255,255,.82);

  --brand:#b45309;     /* caramel */
  --brand2:#f59e0b;    /* amber */
  --cream:#fff3df;

  --radius:20px;
  --shadow: 0 16px 40px rgba(17,24,39,.10);
  --shadow2: 0 10px 24px rgba(17,24,39,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(245,158,11,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(180,83,9,.14), transparent 55%),
    linear-gradient(180deg, var(--bg), #ffffff 40%, #ffffff);
}
a{color:inherit;text-decoration:none}
.container{max-width:980px;margin:0 auto;padding:18px}

.nav{
  position:sticky;top:0;z-index:30;
  background:rgba(255,255,255,.70);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(17,24,39,.08);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px}

.brand{display:flex;align-items:center;gap:12px}
.logo{
  width:42px;height:42px;border-radius:16px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  display:grid;place-items:center;color:white;font-weight:900;
  box-shadow: 0 14px 34px rgba(245,158,11,.30);
}
.h-title{font-family:"Playfair Display",serif;font-weight:700;font-size:20px;line-height:1}
.h-sub{font-size:12px;color:rgba(107,114,128,.95);margin-top:2px}

.card{
  background:var(--card);
  border:1px solid rgba(17,24,39,.10);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.card.soft{
  background:rgba(255,255,255,.72);
  box-shadow: var(--shadow2);
}

.grid{display:grid;gap:14px}
.grid-2{grid-template-columns:1fr}
@media (min-width:860px){ .grid-2{grid-template-columns:1.1fr .9fr;} }

.btn{
  border:1px solid rgba(17,24,39,.10);
  background:rgba(255,255,255,.9);
  border-radius:14px;
  padding:11px 14px;
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(17,24,39,.08); }
.btn:active{ transform: translateY(0px); box-shadow:none; }

.btn.primary{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:white;border:none;
  box-shadow: 0 12px 26px rgba(245,158,11,.28);
}
.btn.primary:hover{ box-shadow: 0 16px 34px rgba(245,158,11,.34); }

.btn.danger{
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.25);
  color: rgb(185,28,28);
}

.input{
  width:100%;
  padding:12px 12px;
  border:1px solid rgba(17,24,39,.12);
  border-radius:14px;
  outline:none;
  background:rgba(255,255,255,.92);
  transition: box-shadow .12s ease, border-color .12s ease;
}
.input:focus{
  border-color: rgba(245,158,11,.45);
  box-shadow: 0 0 0 4px rgba(245,158,11,.16);
}

.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 11px;border-radius:999px;
  border:1px solid rgba(17,24,39,.10);
  background:rgba(255,255,255,.82);
  color:rgba(107,114,128,.95);
  font-size:12px;font-weight:800;
}

.note{color:rgba(107,114,128,.95);font-size:13px;line-height:1.55}
.small{font-size:12px;color:rgba(107,114,128,.95)}
.hr{height:1px;background:rgba(17,24,39,.08);margin:12px 0}

.alert{
  padding:12px 14px;border-radius:14px;border:1px solid rgba(17,24,39,.10);
  background:rgba(255,255,255,.88);
}
.alert.ok{border-color:rgba(34,197,94,.32);background:rgba(34,197,94,.10)}
.alert.err{border-color:rgba(239,68,68,.30);background:rgba(239,68,68,.08)}

.stamps{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:10px
}
.stamp{
  aspect-ratio:1/1;
  border-radius:18px;
  border:1px dashed rgba(180,83,9,.35);
  display:grid;place-items:center;
  background:rgba(255,255,255,.9);
  font-weight:900;
  color:rgba(180,83,9,.55);
  position:relative;
  overflow:hidden;
}
.stamp:before{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(245,158,11,.16), transparent 55%);
  transform: rotate(12deg);
}
.stamp > *{position:relative}
.stamp.filled{
  border:1px solid rgba(180,83,9,.18);
  background:linear-gradient(135deg,rgba(180,83,9,.14),rgba(245,158,11,.16));
  color:rgba(120,53,15,.95);
}
.qr-card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(17,24,39,.10);
  border-radius:18px;
  padding:12px;
}
.qr-img{
  width:280px;height:280px;
  border-radius:18px;
  border:1px solid rgba(17,24,39,.10);
  background:white;
}


