:root {
  --primary: #F5A623;   /* 골든 앰버 */
  --secondary: #34C98E; /* 에메랄드 */
  --accent: #5B9CF6;    /* 블루 */
  --bg: #FFFDF7;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #8a8a8a;
  --line: #eee4d4;
  --danger: #e05858;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit; cursor: pointer; border: none; border-radius: 10px;
  padding: 10px 16px; font-size: 14px; font-weight: 700;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-ghost { background: #f3ede0; color: var(--text); }
.btn-block { width: 100%; padding: 14px; font-size: 16px; }
button:disabled { opacity: .5; cursor: not-allowed; }

.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line);
}
.logo { font-weight: 900; font-size: 18px; color: var(--primary); }
.nav { display: flex; gap: 14px; margin-left: auto; align-items: center; font-size: 14px; }
.nav .pill { background: #fff6e6; color: var(--primary); padding: 4px 10px; border-radius: 20px; font-weight: 700; }
.nav .link { cursor: pointer; color: var(--muted); font-weight: 600; }
.nav .link:hover { color: var(--text); }

.container { max-width: 980px; margin: 0 auto; padding: 20px 16px 60px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card .thumb { aspect-ratio: 1/1; background: #f3ede0 center/cover; }
.card .body { padding: 12px; }
.card .name { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.card .price { color: var(--primary); font-weight: 800; }
.card .stock { color: var(--muted); font-size: 12px; margin-top: 4px; }

.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.section-title { font-size: 20px; font-weight: 800; margin: 8px 0 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff;
}
label.field { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
label.field .input { margin-top: 5px; }
.err { color: var(--danger); font-size: 13px; margin: 6px 0; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.badge { display: inline-block; background: var(--secondary); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.coupon {
  border: 1.5px dashed var(--primary); border-radius: 12px; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; background: #fffaf0;
}
.coupon .label { font-weight: 800; color: var(--primary); }
.center { text-align: center; }
.spin-ticket { font-size: 40px; font-weight: 900; color: var(--primary); }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #333; color: #fff; padding: 12px 20px; border-radius: 24px; font-weight: 700; z-index: 50;
}
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; }
table.tbl th { color: var(--muted); font-weight: 700; }
.iframe-wrap { width: 100%; aspect-ratio: 9/16; max-width: 380px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.iframe-wrap iframe { width: 100%; height: 100%; border: 0; }
