@charset "utf-8";

/* ===== K★STAR 영등포 — 홀덤 스튜디오 앱 (아이보리 · 골드 라이트 테마) ===== */

:root {
  --gold: #c9a227;
  --gold-main: #c9a227;
  --gold-lt: #e8c86a;
  --gold-mid: #a5811c;
  --gold-dark: #8a6a14;
  --bg-0: #f6f1e7;
  --card-bg: #fffdf9;
  --line: #ece3d2;
  --line-soft: #f3ecde;
  --muted: #8b7f6d;
  --text: #3f372c;
  --text-soft: #6b6152;
  --danger: #c0392b;
  --ok: #2f9e6e;
  --shadow-sm: 0 6px 18px rgba(150, 120, 60, .10);
  --shadow-md: 0 14px 34px rgba(150, 120, 60, .12);
  --shadow-lg: 0 20px 45px rgba(150, 120, 60, .16);
  --app-w: 480px;      /* 모바일 기준 폭 — 태블릿/PC에서 미디어쿼리로 확장 */
  --gap: 16px;
  --topbar-h: 69px;    /* 상단바 실제 높이 (패딩 12*2 + 로고 44 + 테두리 1) */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===================================================================
   배경 (kstar배경.png)
   화면 비율이 제각각이라 한 장을 늘려 쓰면 칩이 잘리거나 늘어난다.
   → 원본에서 뷰포트별 3종을 만들어 사용한다. (모두 좌우 칩·카드 보존)
       bg-mobile  620x1195  (0.52) : 좌우 칩 유지, 가운데만 압축
       bg-tablet  896x1195  (0.75) : 원본 그대로
       bg-pc     1920x1195  (1.61) : 좌우 칩 유지, 가운데만 확장
   배경은 html::before 고정 레이어로 깐다.
   (background-attachment: fixed 는 iOS Safari 에서 튀는 문제가 있어 사용하지 않음)
   =================================================================== */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}
html { background: var(--bg-0); }
body { background: none; }

/* 배경 원본 위쪽이 따뜻한 토프색이라 본문 글자가 묻힌다.
   → 위로 갈수록 진해지는 흰 베일을 한 겹 덮어 가독성을 확보한다. */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-0);
  background-image:
    linear-gradient(180deg,
      rgba(252, 249, 243, .82) 0%,
      rgba(252, 249, 243, .62) 34%,
      rgba(252, 249, 243, .42) 60%,
      rgba(252, 249, 243, .28) 100%),
    url("../img/bg-mobile.webp");
  background-size: auto, cover;
  background-position: center, center bottom;
  background-repeat: no-repeat, no-repeat;
}

/* 태블릿 (768~1023px) — 원본 비율 그대로 */
@media (min-width: 768px) and (max-width: 1023px) {
  html::before {
    background-image:
      linear-gradient(180deg,
        rgba(252, 249, 243, .74) 0%,
        rgba(252, 249, 243, .55) 36%,
        rgba(252, 249, 243, .36) 62%,
        rgba(252, 249, 243, .24) 100%),
      url("../img/bg-tablet.webp");
  }
}

/* PC (1024px~) — 가로형 */
@media (min-width: 1024px) {
  html::before {
    background-image:
      linear-gradient(180deg,
        rgba(252, 249, 243, .70) 0%,
        rgba(252, 249, 243, .52) 38%,
        rgba(252, 249, 243, .34) 64%,
        rgba(252, 249, 243, .22) 100%),
      url("../img/bg-pc.webp");
  }
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover, a:focus { color: var(--gold); text-decoration: none; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

.app {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: calc(100vh - var(--topbar-h));
  padding-bottom: var(--nav-h, 96px);   /* 하단 고정 네비 높이만큼만 — 남는 여백 없음 */
  position: relative;
}

/* ---------- 헤더 ---------- */

/* 상단바는 .app 밖(body 직속)에 있어 화면 가로를 꽉 채운다.
   내부 .topbar-inner 만 본문과 같은 최대폭으로 맞춰 좌우 정렬을 유지한다. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: var(--app-w);
  margin: 0 auto;
  padding: 0 16px;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
/* 상단 로고는 세로배열(엠블럼 위 / K-STAR 아래, 약 1.34:1) — 높이를 키워도 폭 부담이 적다 */
.topbar .brand img { height: 44px; display: block; }

/* 태블릿·PC 상단 메뉴 (모바일에서는 숨기고 하단 네비게이션 사용) */
.top-nav { display: none; }
.top-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--muted) !important;
  white-space: nowrap; transition: .15s;
}
/* 메뉴가 많아 폭이 부족해지면 항목이 찌그러지면서 아이콘이 글자 위로 겹친다.
   → 항목·아이콘 모두 줄어들지 않게 고정하고, 넘치면 가로 스크롤로 넘긴다. */
.top-nav a { flex: 0 0 auto; }
.top-nav a i { flex: 0 0 auto; font-size: 14px; width: 15px; text-align: center; line-height: 1; }
.top-nav a:hover { color: var(--text) !important; background: rgba(201, 162, 39, .09); }
.top-nav a.on { background: rgba(201, 162, 39, .15); color: var(--gold-dark) !important; }

.site-foot { display: none; }
.topbar .top-links { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.topbar .top-links a { color: var(--muted); }
.topbar .top-links a:hover { color: var(--gold-dark); }
.topbar .top-links .chip {
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, .08);
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 공통 ---------- */

.page { padding: 16px; }
.page-title {
  font-size: 20px; font-weight: 800; color: var(--gold-dark);
  letter-spacing: .5px; margin: 6px 0 18px;
}
.section-title {
  font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase; margin: 26px 0 10px;
}
.muted { color: var(--muted); }
.gold { color: var(--gold-dark); }
.center { text-align: center; }
.empty { padding: 40px 10px; text-align: center; color: #9c9080; font-size: 14px; }
.empty i { display: block; font-size: 28px; margin-bottom: 12px; color: #c6b9a2; }

.flash {
  margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 600; line-height: 1.5;
}
.flash.ok { background: #e9f7f0; border: 1px solid #a8ddc6; color: #1f7d55; }
.flash.err { background: #fdecec; border: 1px solid #f0b9b9; color: #b33b3b; }

/* ---------- 지갑 카드 ---------- */

.wallet-wrap { padding: 18px 16px 0; }
.wallet-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #fffdf9 0%, #f7efdf 100%);
  border: 1px solid rgba(201, 162, 39, .38);
  border-radius: 24px; padding: 24px 22px 26px;
  box-shadow: var(--shadow-lg);
}
.wallet-card::before {
  content: ""; position: absolute; inset: -10%;
  background-image: radial-gradient(circle at 2px 2px, rgba(165, 129, 28, .10) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent);
  mask-image: linear-gradient(to bottom right, #000, transparent);
  pointer-events: none;
}
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.brand-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #2f2611; font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.brand-name {
  color: var(--gold-dark); font-weight: 700; letter-spacing: .5px; font-size: 14px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.head-icons {
  display: flex; gap: 14px; flex: 0 0 auto; color: #b3a68f; font-size: 15px;
  position: relative; z-index: 2;
}
.head-icons a {
  color: #b3a68f;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; line-height: 1;
}
.head-icons a i { font-size: 15px; line-height: 1; }
.logo-circle { flex: 0 0 auto; }
.head-icons a:hover { color: var(--gold); }

.card-body { position: relative; z-index: 1; }
.label-row {
  font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: 1.5px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.amount-row {
  font-size: 34px; font-weight: 800; color: var(--text);
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;
}
.amount-row .unit { font-size: 15px; color: var(--gold-dark); font-weight: 700; }
.amount-row .sym { color: var(--gold-dark); font-size: 16px; font-weight: 800; letter-spacing: 1px; }

/* 종류별 참가권 — 합산하지 않고 종류마다 한 줄씩 보여준다 */
.amount-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.amount-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 9px; border-bottom: 1px dashed rgba(165, 129, 28, .22);
}
.amount-line:last-child { border-bottom: 0; padding-bottom: 0; }
.amount-name {
  font-size: 13px; font-weight: 700; color: var(--gold-dark); letter-spacing: .3px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.amount-name .off { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.amount-qty { font-size: 26px; font-weight: 800; color: var(--text); white-space: nowrap; }
.amount-qty.zero { color: var(--muted); }
.amount-qty .unit { font-size: 13px; color: var(--gold-dark); font-weight: 700; margin-left: 3px; }
.status-row { font-size: 13px; display: flex; align-items: center; gap: 10px; }
.status-text { color: var(--gold-dark); font-weight: 500; letter-spacing: .3px; }
.card-foot-line {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; opacity: .8;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.wallet-actions { display: flex; gap: 10px; margin-top: 14px; }
.wallet-actions .btn { flex: 1; }

/* 퀵메뉴 (모바일 전용) — 3칸 × 2줄 */
.quick-menu {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px;
}
.quick-menu a {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 6px; border-radius: 14px;
  /* 어두운 먹빛 바탕 + 얇은 금테 — 아이보리 화면 위에서 무게감 있게 보인다 */
  background: linear-gradient(160deg, #4a4133 0%, #322b21 55%, #241f18 100%);
  border: 1px solid rgba(201, 162, 39, .45);
  box-shadow: 0 6px 16px rgba(60, 48, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .10);
  color: var(--gold-lt) !important; text-decoration: none;
}
/* 위쪽에서 비스듬히 떨어지는 옅은 광택 */
.quick-menu a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 38%, transparent 62%);
}
.quick-menu a:active { filter: brightness(1.12); }
.quick-menu i { font-size: 19px; color: #fff; line-height: 1; position: relative; z-index: 1; }
.quick-menu a > span { position: relative; z-index: 1; }

/* 윗줄(스케줄·참가권·커뮤니티) 은 이전처럼 흰 카드 + 골드 아이콘 */
.quick-menu a:nth-child(-n + 3) {
  background: var(--card-bg); border-color: var(--line);
  color: var(--text-soft) !important;
}
.quick-menu a:nth-child(-n + 3):active { filter: none; background: rgba(201, 162, 39, .10); }
.quick-menu a:nth-child(-n + 3) i { color: var(--gold); }
.quick-menu span { font-size: 12px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; }

/* ---------- 커뮤니티 게시판 ---------- */

.post-cmt { color: var(--gold-dark); font-weight: 800; font-size: 12px; margin-left: 4px; }

.post-head { padding: 16px 16px 12px; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.post-title { font-size: 19px; font-weight: 800; line-height: 1.45; margin: 0 0 10px; word-break: break-word; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12px; color: var(--muted);
}
.post-meta i { margin-right: 4px; }
.post-content {
  padding: 18px 16px; font-size: 14px; line-height: 1.85; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.post-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.comment-body {
  font-size: 13px; line-height: 1.7; color: var(--text);
  white-space: pre-wrap; word-break: break-word; margin: 3px 0 4px;
}

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 6px 0 4px; }
.pager-btn {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0, 0, 0, .1); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--text-soft); text-decoration: none;
}
.pager-btn:hover { border-color: rgba(201, 162, 39, .5); color: var(--gold-dark); }
.pager-btn.on { border-color: rgba(201, 162, 39, .6); background: rgba(201, 162, 39, .14); color: var(--gold-dark); }

/* ---------- 리스트 박스 ---------- */

.panel {
  margin: 20px 16px; padding: 4px 16px 16px;
  background: var(--card-bg);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.panel-head .title { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.panel-head .more { font-size: 12px; color: var(--gold-dark); font-weight: 600; }

.row-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.row-item:last-child { border-bottom: 0; }
.row-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-icon {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: linear-gradient(135deg, #f8f1e2, #efe3cd);
  border: 1px solid rgba(201, 162, 39, .35); color: var(--gold-dark);
}
.row-icon.minus { border-color: rgba(192, 57, 43, .3); color: #c0392b; background: #fdf0ee; }
.row-info { display: flex; flex-direction: column; min-width: 0; }
.row-name {
  color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: -.3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.row-right { text-align: right; flex: 0 0 auto; padding-left: 10px; }
.row-value { font-size: 16px; font-weight: 800; }
.row-value.plus { color: var(--gold-dark); }
.row-value.minus { color: #c0392b; }
.row-amount { font-size: 11px; color: #9c9080; margin-top: 2px; }

/* ---------- 배너 ---------- */

.banner-list { display: flex; flex-direction: column; gap: 18px; padding: 14px 0 4px; }
.banner {
  display: block; position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card-bg);
  box-shadow: var(--shadow-sm); transition: .25s;
}
.banner:hover { transform: translateY(-3px); border-color: rgba(201, 162, 39, .5); box-shadow: var(--shadow-md); }
.banner-img { width: 100%; aspect-ratio: 16 / 9; background: #f4ecdd; overflow: hidden; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-img.placeholder {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  background:
    radial-gradient(circle at 30% 20%, rgba(201, 162, 39, .16), transparent 60%),
    linear-gradient(135deg, #f9f3e7, #efe4d0);
  color: rgba(165, 129, 28, .6);
}
.banner-img.placeholder .ph-star { font-size: 30px; }
.banner-img.placeholder .ph-txt { font-size: 11px; letter-spacing: 3px; font-weight: 800; }
.banner-body { padding: 14px 16px 16px; border-top: 1px solid var(--line-soft); }
.banner-title { color: var(--gold-dark); font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.banner-sub { color: var(--muted); font-size: 13px; line-height: 1.45; }
.banner-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold)); color: #2f2611;
  padding: 4px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 800; box-shadow: 0 4px 10px rgba(150, 120, 60, .3);
}
.ad-note { font-size: 11px; color: #b3a68f; text-align: right; padding: 4px 2px 0; }

/* ---------- 버튼 / 폼 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 800; cursor: pointer; transition: .2s; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(180deg, #f0d98c 0%, var(--gold-lt) 38%, var(--gold) 100%);
  border-color: var(--gold-mid); color: #2f2611 !important;
  box-shadow: 0 6px 16px rgba(180, 145, 45, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-gold:hover { color: #2f2611 !important; filter: brightness(1.04); }
.btn-ghost {
  background: var(--card-bg); border-color: var(--line); color: var(--text-soft) !important;
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: rgba(201, 162, 39, .55); color: var(--gold-dark) !important; }
.btn-danger { background: #fdecec; border-color: #f0b9b9; color: #b33b3b !important; box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-soft); letter-spacing: .5px; }
.field .req { color: var(--gold); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: #fdfbf6; border: 1px solid var(--line);
  color: var(--text); font-size: 15px; outline: none; transition: .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(201, 162, 39, .7); background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .12);
}
.input::placeholder { color: #b6ab99; }
.select option { background: #fff; color: var(--text); }
.textarea { min-height: 90px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); }
.hint.ok { color: var(--ok); }
.hint.err { color: #b33b3b; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

.alert {
  padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  background: #fdecec; border: 1px solid #f0b9b9; color: #b33b3b;
}
.alert.ok { background: #e9f7f0; border-color: #a8ddc6; color: #1f7d55; }

/* ---------- 동의 (회원가입) ---------- */

.agree-all {
  display: flex; align-items: center; gap: 12px; padding: 16px 14px; cursor: pointer;
  background: linear-gradient(145deg, #fffdf9, #f7efdf);
  border: 1px solid rgba(201, 162, 39, .4); border-radius: 14px; margin-bottom: 12px;
}
.agree-all .t { font-size: 15px; font-weight: 800; color: var(--text); }
.agree-item { border-bottom: 1px solid var(--line-soft); padding: 14px 2px; }
.agree-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.agree-head .t { font-size: 14px; font-weight: 600; color: var(--text-soft); flex: 1; }
.agree-head .tag { font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.agree-head .tag.req { color: var(--gold-dark); }
.agree-head .tag.opt { color: #a99d8a; }
.agree-body {
  margin-top: 10px; max-height: 130px; overflow-y: auto;
  background: #fdfbf6; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.7; color: var(--text-soft);
  white-space: pre-line;
}
.agree-body::-webkit-scrollbar { width: 4px; }
.agree-body::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, .45); border-radius: 10px; }

/* 약관 전문 보기 팝업 */
.policy-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(30, 24, 12, .55);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.policy-modal[hidden] { display: none; }
.policy-sheet {
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--card-bg, #fff); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
}
.policy-sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
  font-size: 15px; font-weight: 800; color: var(--text);
}
.policy-close {
  background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; padding: 4px 6px;
}
.policy-sheet-body {
  padding: 16px 18px; overflow-y: auto; flex: 1;
  font-size: 13px; line-height: 1.8; color: var(--text-soft); white-space: pre-line;
}
.policy-sheet-foot { display: flex; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid var(--line-soft); }
.policy-sheet-foot .btn { flex: 1; }

@media (min-width: 768px) {
  .policy-modal { align-items: center; padding: 20px; }
  .policy-sheet { border-radius: 18px; border-bottom: 1px solid var(--line); max-height: 80vh; }
}

.chk { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: 0 0 22px;
  border: 2px solid #d8cdb8; border-radius: 50%; position: relative; cursor: pointer; transition: .15s;
  background: #fff; }
.chk:checked { border-color: var(--gold); background: var(--gold); }
.chk:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ---------- QR ---------- */

.qr-card {
  max-width: 340px; margin: 0 auto; background: var(--card-bg); border-radius: 24px; padding: 16px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(201, 162, 39, .3);
}
.qr-plate {
  background: #fff; border-radius: 18px; padding: 14px; aspect-ratio: 1/1;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.qr-plate img { width: 100%; height: auto; display: block; }
.qr-info { padding: 14px 8px 6px; display: flex; flex-direction: column; gap: 14px; }
.info-row { display: flex; align-items: center; gap: 14px; }
.icon-gold { color: var(--gold); font-size: 17px; width: 22px; text-align: center; }
.icon-white { color: var(--text-soft); font-size: 17px; width: 22px; text-align: center; }
.info-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.info-value { color: var(--text); font-size: 13px; font-weight: 700; margin-top: 2px; word-break: break-all; }
.qr-timer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.qr-timer b { color: var(--gold-dark); }

/* ---------- 캘린더 ---------- */

.calendar {
  max-width: 100%; margin: 4px 0 0; background: var(--card-bg);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 14px; }
.cal-head h2 {
  margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  background: linear-gradient(to right, var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cal-nav {
  background: transparent; border: 0; color: var(--gold); font-size: 1.5rem; font-weight: 900;
  padding: 0 14px; cursor: pointer; line-height: 1;
}
.cal-nav:hover { color: var(--gold-dark); }
.weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 0;
  background: #f8f2e6; color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
/* minmax(0,1fr) — aspect-ratio 가 트랙 최소폭을 밀어올려 그리드가 넘치는 것을 막는다 */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 10px; gap: 4px; }
.day {
  aspect-ratio: 1/1; min-width: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-soft); font-size: .9rem; border-radius: 10px; position: relative;
}
.day.empty { visibility: hidden; }
.day.today {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold)); color: #2f2611; font-weight: 800;
  box-shadow: 0 4px 12px rgba(180, 145, 45, .3);
}
.day.has-event { color: var(--gold-dark); font-weight: 700; }
.event-dot {
  position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}
.day.today .event-dot { background: #2f2611; }

.event-item {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.event-date {
  flex: 0 0 52px; text-align: center; border-radius: 10px; padding: 6px 0;
  background: rgba(201, 162, 39, .1); border: 1px solid rgba(201, 162, 39, .28);
}
.event-date .d { font-size: 18px; font-weight: 800; color: var(--gold-dark); line-height: 1; }
.event-date .m { font-size: 10px; color: var(--muted); margin-top: 3px; }
.event-body .t { font-size: 15px; font-weight: 700; color: var(--text); }
.event-body .c { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* 날짜 클릭 — 선택된 날 강조 / 선택한 날짜의 일정 카드 */
a.day { text-decoration: none; cursor: pointer; }
a.day:hover { background: rgba(201, 162, 39, .12); }
.day.picked {
  border: 2px solid var(--gold); color: var(--gold-dark); font-weight: 800;
  background: rgba(201, 162, 39, .16);
}
.day.today.picked { border-color: #2f2611; }

/* ---------- 이벤트 (광고 배너형) ---------- */

/* 목록 밑바탕 회색 박스 — 탭이 붙는 왼쪽 위만 각지게 */
.ev-panel {
  background: #f2f1ee; border: 1px solid #e6e3dc; border-radius: 0 4px 4px 4px;
  padding: 16px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
}

/* 탭 : 회색 박스 위에 사각으로 붙는다 (버튼 밖 여백은 배경 없음) */
.ev-tabs { display: flex; gap: 4px; margin: 0; }
.ev-tab {
  position: relative; bottom: -1px; z-index: 1;
  padding: 10px 18px; font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--muted); background: #e7e4dd;
  border: 1px solid #e6e3dc; border-bottom: none; border-radius: 4px 4px 0 0;
}
.ev-tab:hover { color: var(--text); }
.ev-tab.on { background: #f2f1ee; color: var(--gold-dark); }
.ev-tab .seg-c { font-size: 11px; font-weight: 800; opacity: .75; margin-left: 3px; }

/* 관리자 목록용 탭 박스 */
.seg-box {
  display: inline-flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
  background: #f2f1ee; border: 1px solid #e6e3dc; border-radius: 999px; padding: 6px;
}

.ev-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ev-banner {
  display: block; text-decoration: none; background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ev-banner:hover {
  transform: translateY(-2px); border-color: rgba(201, 162, 39, .5);
  box-shadow: 0 10px 22px rgba(150, 120, 60, .16);
}
.ev-banner.ended { opacity: .72; }
.ev-banner.ended:hover { opacity: 1; }
.ev-banner-img { position: relative; aspect-ratio: 4 / 1; background: #f2ece0; overflow: hidden; }
.ev-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-banner-none {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 44px; opacity: .45;
}
.ev-state {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .3px; padding: 4px 10px; border-radius: 999px;
  color: #2f2611; background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.ev-state.past { background: #b7ada0; color: #fff; }
.ev-state.upcoming { background: #7fa8c9; color: #fff; }
.ev-banner-body { padding: 14px 16px 16px; }
.ev-banner-title { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.4; }
.ev-banner-sum {
  font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-banner-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; font-size: 12px; color: var(--gold-dark); font-weight: 600;
}
.ev-banner-meta i { margin-right: 4px; }
.ev-more { color: var(--gold-dark); font-weight: 800; }

.ev-detail { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.ev-detail-img img { width: 100%; height: auto; display: block; }
.ev-detail-body { padding: 18px 18px 22px; }
.ev-detail-title { font-size: 20px; font-weight: 800; line-height: 1.4; margin: 0 0 8px; }
.ev-detail-sum { font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.ev-detail-meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted);
}
.ev-detail-meta i { margin-right: 4px; }
.ev-detail-content {
  margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- 크리에이터 채널 ---------- */

.creator-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px; align-items: start;
}
.creator-card {
  display: block; text-decoration: none; background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.creator-card:hover {
  border-color: rgba(201, 162, 39, .5);
  box-shadow: 0 8px 20px rgba(150, 120, 60, .16);
}
.creator-thumb { position: relative; aspect-ratio: 16 / 9; background: #f2ece0; overflow: hidden; }
.creator-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator-thumb-none {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #d3452f; font-size: 40px; opacity: .5;
}
.creator-kind {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; letter-spacing: .3px;
}
.creator-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; opacity: 0; transition: opacity .15s ease;
  background: rgba(0, 0, 0, .28);
}
.creator-card:hover .creator-play { opacity: 1; }
/* 유튜브 플레이어 — 처음엔 썸네일, 누르면 그 자리에 iframe 삽입 */
.yt {
  position: relative; display: block; aspect-ratio: 16 / 9; width: 100%;
  background: #17140f; overflow: hidden; cursor: pointer; border: 0; padding: 0;
}
.yt .yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt .yt-none {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #d3452f; font-size: 40px; opacity: .55;
}
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt .yt-link { position: absolute; inset: 0; display: block; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 40px; border-radius: 10px; border: 0; cursor: pointer;
  background: rgba(211, 69, 47, .92); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .15s ease, background .15s ease;
}
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); background: #d3452f; }
.yt.playing { cursor: default; }
.yt.playing .yt-play { display: none; }

/* 메인 홍보 영역 */
.promo-list { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 4px 16px 16px; }
.promo-item { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: #fff; }
.promo-body { padding: 11px 14px 13px; }
.promo-name { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.4; }
.promo-desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

.creator-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 12px; font-weight: 700; color: var(--gold-dark); text-decoration: none;
}
.creator-link:hover { text-decoration: underline; }

.creator-body { padding: 12px 14px 14px; }
.creator-name { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.4; }
.creator-desc {
  font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 관리자 접이식 목록 (일정·크리에이터) — 클릭하면 펼쳐지는 수정 폼 */
.fold-row {
  border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 10px; background: #fff;
  overflow: hidden;
}
.fold-row:last-child { margin-bottom: 0; }
.fold-row[open] { border-color: rgba(201, 162, 39, .5); box-shadow: 0 3px 12px rgba(0, 0, 0, .05); }
.fold-sum {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  list-style: none; user-select: none;
}
.fold-sum::-webkit-details-marker { display: none; }
.fold-sum:hover { background: rgba(201, 162, 39, .06); }
.fold-tag {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--gold-dark);
  background: rgba(201, 162, 39, .12); border: 1px solid rgba(201, 162, 39, .28);
  border-radius: 8px; padding: 5px 8px; white-space: nowrap;
}
/* 사용 내역 : 행마다 참가권 종류를 구분하는 작은 태그 */
.tk-tag {
  display: inline-block; vertical-align: 1px; margin-right: 6px;
  font-size: 11px; font-weight: 800; line-height: 1;
  padding: 4px 7px; border-radius: 6px;
  color: var(--gold-dark); background: rgba(201, 162, 39, .14);
  border: 1px solid rgba(201, 162, 39, .28);
}

/* 관리자 목록 카드 : 제목 + 우측 필터 버튼 한 줄 */
.list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.list-head .seg-box { margin-bottom: 0; }

/* 관리자 이벤트 목록 — 상태별 태그 색 */
.fold-tag.st-live { color: #1f7d55; background: #e2f4ec; border-color: #bfe4d4; }
.fold-tag.st-upcoming { color: #3b6f96; background: #e8f1f8; border-color: #c7dcea; }
.fold-tag.st-past { color: var(--muted); background: #f0eee9; border-color: #e2ded5; }
.fold-row.is-hidden { background: #fafaf8; }
.fold-row.is-hidden .fold-thumb, .fold-row.is-hidden .fold-title { opacity: .7; }

.fold-title {
  flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fold-desc {
  display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fold-thumb {
  flex: 0 0 auto; width: 46px; height: 34px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line-soft);
}
.fold-thumb-none {
  display: flex; align-items: center; justify-content: center;
  color: #cfc4ad; font-size: 13px; background: rgba(0, 0, 0, .02);
}
.fold-caret { flex: 0 0 auto; color: #b3a68f; font-size: 12px; transition: transform .15s ease; }
.fold-row[open] .fold-caret { transform: rotate(180deg); }
.fold-body { padding: 4px 14px 14px; border-top: 1px solid var(--line-soft); }

.event-card {
  border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
  background: #fff; margin-bottom: 14px; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, .05));
}
.event-img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.event-card-body { padding: 14px 16px 16px; }
.event-card-date { font-size: 12px; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
.event-card-body .t { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.4; }
.event-card-body .c { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; white-space: pre-wrap; }

/* ---------- 하단 네비 ---------- */

.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-w); z-index: 60;
  background: rgba(255, 253, 249, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(150, 120, 60, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
/* 메뉴가 늘어나도 잘리지 않도록 좁은 화면에서는 가로 스크롤 */
.nav-items { display: flex; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav-items::-webkit-scrollbar { display: none; }
.nav-item {
  flex: 1 0 auto; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 2px 9px; color: #a99d8a !important; font-size: 10px; font-weight: 700; letter-spacing: .3px;
  white-space: nowrap;
}
.nav-item i { font-size: 17px; }
.nav-item.active { color: var(--gold-dark) !important; }
.mini-copy { text-align: center; font-size: 10px; color: #9c9080; padding: 0 0 8px; }

/* 로그인 전(비회원) 모바일에서는 하단 메뉴바를 아예 표시하지 않는다.
   메뉴는 상단바의 로그인 / 회원가입 링크로 대신한다.
   태블릿·PC(≥768px)는 원래부터 하단 네비가 없으므로 영향 없음. */
@media (max-width: 767px) {
  .bottom-nav.guest { display: none; }
  .app.guest { padding-bottom: 0; }
  /* 하단 네비 안에 있던 저작권 문구가 사라지므로 PC 전용 푸터를 대신 보여준다 */
  .bottom-nav.guest ~ .site-foot {
    display: block; text-align: center; font-size: 11px; color: #9c9080;
    padding: 24px 0 16px; letter-spacing: .3px;
  }
}

/* ---------- 랜딩 ---------- */

.hero { padding: 46px 22px 26px; text-align: center; }
.hero img.logo { width: 70%; max-width: 270px; filter: drop-shadow(0 6px 18px rgba(170, 130, 40, .22)); }
.hero .tagline { margin-top: 18px; color: var(--text-soft); font-size: 14px; line-height: 1.7; letter-spacing: .5px; }
.hero .cta { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 8px 16px 0; }
.feature {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 14px; box-shadow: var(--shadow-sm);
}
.feature i { color: var(--gold); font-size: 18px; }
.feature .t { font-size: 14px; font-weight: 800; color: var(--gold-dark); margin-top: 8px; }
.feature .d { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; word-break: keep-all; }

/* ---------- 매장 확인 (verify) ---------- */

.verify-wrap { max-width: 460px; margin: 0 auto; padding: 22px 16px 60px; }
.verify-card {
  background: var(--card-bg);
  border: 1px solid rgba(201, 162, 39, .35); border-radius: 22px; padding: 24px 20px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.verify-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: #e9f7f0; border: 1px solid #a8ddc6;
  color: #1f7d55; font-size: 12px; font-weight: 800; letter-spacing: .5px;
}
.verify-badge.bad { background: #fdecec; border-color: #f0b9b9; color: #b33b3b; }
.verify-nick { font-size: 26px; font-weight: 800; color: var(--text); margin: 16px 0 4px; }
.verify-uid { font-size: 13px; color: var(--gold-dark); letter-spacing: .5px; }
.verify-tickets {
  margin: 22px 0 6px; padding: 20px; border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, .14), transparent 70%), #fdf9f0;
  border: 1px solid rgba(201, 162, 39, .3);
}
.verify-tickets .lb { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); font-weight: 800; }
.verify-tickets .vl { font-size: 44px; font-weight: 900; color: var(--gold-dark); line-height: 1.2; }
.verify-tickets .vl small { font-size: 16px; color: var(--muted); font-weight: 700; margin-left: 4px; }
.verify-meta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; text-align: left; }
.verify-meta .r { display: flex; justify-content: space-between; font-size: 13px; }
.verify-meta .r .k { color: var(--muted); }
.verify-meta .r .v { color: var(--text); font-weight: 600; }

/* ---------- 관리자 ---------- */

.admin { max-width: 1100px; margin: 0 auto; padding-bottom: 60px; }
.admin-bar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; background: rgba(255, 253, 249, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.admin-bar .brand { display: flex; align-items: center; gap: 8px; }
.admin-bar .brand img { height: 40px; }
.admin-bar .brand span { font-size: 12px; font-weight: 800; color: var(--gold-dark); letter-spacing: 1px; }
.admin-tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.admin-tabs a {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted) !important;
}
.admin-tabs a:hover { color: var(--text) !important; background: rgba(201, 162, 39, .09); }
.admin-tabs a.on { background: rgba(201, 162, 39, .15); color: var(--gold-dark) !important; }

/* ===================================================================
   관리자 로그인 — 아이보리 / 골드 라이트 테마 (시안 반영)
   =================================================================== */

body.admin-login-page {
  --al-gold: #c9a227;
  --al-gold-lt: #e8c86a;
  --al-gold-dk: #a5811c;
  --al-ink: #3f372c;
  --al-muted: #8b7f6d;
  --al-line: #ece3d2;
  --al-card: #fffdf9;
  color: var(--al-ink);
}

.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.admin-login-inner { width: 100%; max-width: 540px; }

/* --- 로고 / 뱃지 --- */
.admin-login-head { text-align: center; }
/* 로고 자체에 CLUB YEONGDEUNGPO 가 포함되어 있어 별도 서브타이틀은 두지 않는다 */
.admin-login-logo {
  display: block; margin: 0 auto;
  width: 72%; max-width: 300px;
  filter: drop-shadow(0 6px 18px rgba(170, 130, 40, .22));
}
.admin-login-tag {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
  padding: 11px 26px; border-radius: 999px;
  background: var(--al-card); border: 1.5px solid rgba(201, 162, 39, .45);
  box-shadow: 0 6px 18px rgba(160, 128, 50, .13);
  color: var(--al-gold-dk); font-size: 14px; font-weight: 900; letter-spacing: 2.5px;
}
.admin-login-tag i { color: var(--al-gold); }

/* --- 로그인 카드 --- */
.admin-login-card {
  margin-top: 24px; padding: 30px 28px;
  background: var(--al-card);
  border: 1.5px solid rgba(201, 162, 39, .35); border-radius: 22px;
  box-shadow: 0 18px 45px rgba(150, 120, 60, .14);
}
.admin-login-card .field label { font-size: 15px; font-weight: 700; color: var(--al-ink); letter-spacing: 0; }
.admin-login-card .form { gap: 20px; }

/* 아이콘이 붙은 입력창 */
.admin-login-card .input-icon { position: relative; display: block; }
.admin-login-card .input-icon > i {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--al-gold); font-size: 17px; pointer-events: none;
}
.admin-login-card .input {
  padding: 16px 16px 16px 52px; border-radius: 14px;
  background: #fdfbf6; border: 1.5px solid var(--al-line);
  color: var(--al-ink); font-size: 16px; font-weight: 500;
}
.admin-login-card .input::placeholder { color: #b6ab99; font-weight: 400; }
.admin-login-card .input:focus {
  background: #fff; border-color: rgba(201, 162, 39, .7);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, .12);
}
.admin-login-card .input[type="password"] { padding-right: 52px; letter-spacing: 2px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--al-gold); font-size: 17px; border-radius: 10px; transition: .15s;
}
.pw-toggle:hover { background: rgba(201, 162, 39, .1); }

.admin-login-card .btn-gold {
  margin-top: 4px; padding: 17px 18px; border-radius: 14px; font-size: 18px;
  background: linear-gradient(180deg, #f0d98c 0%, var(--al-gold-lt) 38%, var(--al-gold) 100%);
  border: 1.5px solid var(--al-gold-dk);
  color: #2f2611 !important;
  box-shadow: 0 8px 20px rgba(180, 145, 45, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.admin-login-card .btn-gold:hover { filter: brightness(1.04); }

.admin-login-card .alert { margin-bottom: 20px; }

/* --- 특징 3종 --- */
.admin-login-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 22px; padding: 26px 12px;
  background: var(--al-card); border: 1.5px solid var(--al-line); border-radius: 22px;
  box-shadow: 0 14px 34px rgba(150, 120, 60, .1);
}
.admin-login-features .feat { text-align: center; padding: 0 8px; }
.admin-login-features .feat + .feat { border-left: 1px solid var(--al-line); }
.admin-login-features .ic {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #f8f1e2, #efe3cd);
  color: #6b5c42; font-size: 21px;
}
.admin-login-features b {
  display: block; font-size: 14px; font-weight: 800; color: var(--al-gold-dk); margin-bottom: 8px;
  word-break: keep-all;
}
.admin-login-features p {
  margin: 0; font-size: 12px; line-height: 1.65; letter-spacing: -.2px; color: var(--al-muted);
  word-break: keep-all;
}

/* --- 하단 안내 --- */
.admin-login-note {
  margin-top: 26px; text-align: center; font-size: 13px; line-height: 1.9;
  color: var(--al-muted); word-break: keep-all;
}
.admin-login-note .lock {
  display: block; margin-bottom: 10px; font-size: 17px; color: var(--al-gold);
}
.admin-login-note a { color: var(--al-gold-dk); font-weight: 800; }
.admin-login-note a:hover { color: var(--al-gold); }

@media (max-width: 420px) {
  .admin-login-wrap { padding: 28px 12px; }
  .admin-login-card { padding: 24px 20px; }
  .admin-login-tag { font-size: 12px; padding: 9px 18px; letter-spacing: 1.8px; }
  .admin-login-features { padding: 20px 6px; }
  .admin-login-features .feat { padding: 0 4px; }
  .admin-login-features .ic { width: 44px; height: 44px; font-size: 17px; margin-bottom: 10px; }
  .admin-login-features b { font-size: 12px; margin-bottom: 6px; }
  .admin-login-features p { font-size: 10.5px; line-height: 1.55; }
  .admin-login-note { font-size: 12px; }
}

/* ---------- 관리자 : 통계 / 카드 / 테이블 ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
  background: linear-gradient(145deg, #fffdf9, #f8f1e3);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow-sm);
}
.stat .k { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.stat .v { font-size: 30px; font-weight: 900; color: var(--gold-dark); margin-top: 8px; line-height: 1.1; }
.stat .v small { font-size: 14px; color: var(--muted); font-weight: 700; margin-left: 3px; }

.card {
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
.card > h3 {
  margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase;
}

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.tbl th, table.tbl td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.tbl th { font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
table.tbl td { color: var(--text-soft); }
table.tbl tr:hover td { background: rgba(201, 162, 39, .05); }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
}
.badge.gold { background: rgba(201, 162, 39, .16); color: var(--gold-dark); }
.badge.gray { background: #f0eade; color: var(--muted); }
.badge.green { background: #e2f4ec; color: #1f7d55; }
.badge.red { background: #fbe6e6; color: #b33b3b; }

.plus-val { color: var(--gold-dark); font-weight: 800; }
.minus-val { color: #c0392b; font-weight: 800; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { flex: 1; min-width: 130px; }

.seg { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.seg a {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--card-bg); border: 1px solid var(--line); color: var(--muted) !important;
}
.seg .seg-c { font-size: 11px; font-weight: 800; opacity: .75; margin-left: 3px; }
.seg a.on { border-color: rgba(201, 162, 39, .55); background: rgba(201, 162, 39, .14); color: var(--gold-dark) !important; }


/* ---------- 메인 광고 팝업 (600×800 · 세로 3:4) ---------- */

.popup-layer {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; padding: 20px;
  background: rgba(30, 25, 15, .62);
  overflow-y: auto;
}
.popup-layer[hidden] { display: none; }
body.popup-open { overflow: hidden; }

.popup {
  width: min(360px, 100%);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
  animation: popup-in .18s ease-out;
}
.popup[hidden] { display: none; }
@keyframes popup-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 600×800 = 3:4 — 박스 비율을 이미지와 같게 두어 잘림도 여백도 없다 */
.popup-img { aspect-ratio: 3 / 4; background: #f2ece0; }
.popup-img a { display: block; width: 100%; height: 100%; }
.popup-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.popup-btns { display: flex; border-top: 1px solid var(--line); }
.popup-btn {
  flex: 1 1 0; min-width: 0; padding: 14px 8px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--muted);
  background: #f7f4ee;
}
.popup-btn:hover { background: #f0ebe1; color: var(--text); }
.popup-btn + .popup-btn { border-left: 1px solid var(--line); }
.popup-btn-close { color: var(--text); background: #fff; }
.popup-btn-close:hover { background: #faf7f1; }

@media (max-width: 400px) {
  .popup-layer { padding: 14px; }
  .popup { width: min(320px, 100%); }
}


/* ---------- 메인 고정 광고 배너 (1200×300 · 가로 4:1) ----------
   로그인한 회원에게만 노출 / 모바일: 본문 맨 위 · 태블릿·PC(≥768px): 본문 맨 아래.
   높이는 폭 ÷ 4 로 정해지므로 이미지가 잘리지도, 여백이 남지도 않는다.
   스크롤을 따라다니지는 않는다. */
.home-ad {
  display: flex; flex-direction: column; gap: 0; background: #fff;
}

/* 모바일 기본 : 상단 배너만 보이고 하단 배너는 감춘다 */
.home-ad-top { margin: 0 0 4px; }
.home-ad-bottom { display: none; }

.home-ad-img { display: block; width: 100%; aspect-ratio: 4 / 1; background: #f2ece0; }
.home-ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================
   반응형 — 모바일(기본) / 태블릿(≥768px) / PC(≥1024px)
   ========================================================= */

/* ---------- 소형 모바일 (~400px) ---------- */
@media (max-width: 400px) {
  .form-row { flex-direction: column; }
  .amount-row { font-size: 28px; }
  .amount-qty { font-size: 22px; }
  .page, .panel { padding-left: 14px; padding-right: 14px; }
  .panel { margin-left: 12px; margin-right: 12px; }
  .nav-item { font-size: 9px; }
  .nav-item i { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .admin { padding-left: 2px; padding-right: 2px; }
  .admin-bar { gap: 10px; padding: 10px 14px; }
  /* flex:1 이면 width:100% 가 무시되어 줄바꿈이 안 되므로 basis 를 100% 로 고정 */
  .admin-tabs { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .admin-tabs::-webkit-scrollbar { height: 3px; }
  .admin-tabs::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, .4); border-radius: 10px; }
  .admin-tabs a { flex: 0 0 auto; }
  .stat .v { font-size: 26px; }
}

/* ---------- 태블릿 이상 (≥768px) ---------- */
@media (min-width: 768px) {
  :root { --app-w: 780px; --gap: 22px; --topbar-h: 79px; }

  body { font-size: 15.5px; }

  .app { padding-bottom: 0; }

  /* 하단 네비게이션 → 상단 메뉴로 전환 */
  .bottom-nav { display: none; }
  .top-nav {
    display: flex; gap: 2px; flex: 1; justify-content: center;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .site-foot {
    display: block; text-align: center; font-size: 11px; color: #9c9080;
    padding: 24px 0 16px; letter-spacing: .3px;
  }

  .topbar { padding: 14px 0; }
  .topbar-inner { padding: 0 22px; }
  .topbar .brand img { height: 50px; }
  .top-links { gap: 16px; }

  .content { padding: 6px 22px 0; }
  .content > .page { padding-left: 0; padding-right: 0; }
  .content > .panel { margin-left: 0; margin-right: 0; }
  .content > .wallet-wrap { padding-left: 0; padding-right: 0; }

  /* 로그인 / 가입 / 설정 등 단일 폼 화면은 가운데 정렬 */
  .content:not(.split):not(.wide) { max-width: 640px; margin: 0 auto; }

  .wallet-card { max-width: 560px; margin: 0 auto; }
  .wallet-actions { max-width: 560px; margin: 14px auto 0; }

  .page-title { font-size: 22px; }
  .amount-row { font-size: 38px; }
  .amount-qty { font-size: 30px; }
  .amount-name { font-size: 14px; }

  .quick-menu { display: none; }   /* 퀵메뉴는 모바일 전용 — PC 는 상단 메뉴바 사용 */

  .feature-grid { grid-template-columns: repeat(4, 1fr); padding: 8px 0 0; }

  .promo-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  /* 이벤트: 1줄에 1개 (이미지 가로로 길게 + 아래 텍스트) */
  .ev-panel { padding: 20px; }
  .ev-list { grid-template-columns: 1fr; gap: 18px; }
  .ev-banner { display: block; }
  .ev-banner-body { padding: 16px 20px 18px; }
  .ev-banner-title { font-size: 18px; }
  .ev-banner-sum { font-size: 14px; }
  .ev-banner-meta { font-size: 13px; }

  /* 광고 배너 : 태블릿·PC 는 본문(2단 영역) 바깥 맨 아래로 내린다.
     본문 그리드 밖이라 왼쪽 지갑 카드의 sticky 범위가 여기까지 내려오지 않는다. */
  .home-ad-top { display: none; }
  .home-ad-bottom { display: flex; width: auto; margin: 16px 22px 4px; background: none; }

  .banner-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 20px; align-items: start;
  }
  .ad-note { grid-column: 1 / -1; }

  /* 일정 : 캘린더 + 목록 2단 */
  .sched-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 26px; align-items: start; }
  .sched-layout .section-title { margin-top: 0; }
  .sched-layout > .calendar { min-width: 0; }
  .calendar { max-width: 460px; }
  .cal-head h2 { font-size: 1.5rem; }
  .day { font-size: 1rem; }

  /* 매장 확인 화면 */
  .verify-wrap { max-width: 560px; padding-top: 30px; }

  .admin { padding-left: 26px !important; padding-right: 26px !important; }
}

/* ---------- PC (≥1024px) ---------- */
@media (min-width: 1024px) {
  :root { --app-w: 1160px; --gap: 26px; --topbar-h: 81px; }

  .topbar { padding: 15px 0; }
  .topbar-inner { padding: 0 28px; }
  .content { padding: 14px 28px 0; }

  /* 지갑 카드 + 목록 2단 레이아웃 (메인/마이페이지/참가권/사용내역) */
  .content.split {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    column-gap: var(--gap);
    /* 행 간격은 0 — 지갑 카드가 99행을 차지하는 구조라 row-gap 을 주면
       내용이 없는 빈 행 사이사이에도 간격이 생겨 페이지가 쓸데없이 길어진다.
       세로 간격은 오른쪽 항목의 margin-bottom 으로 준다. */
    row-gap: 0;
    align-items: start;
  }
  .content.split > * { margin: 0 !important; }
  /* 지갑 카드는 전체 행을 차지해 오른쪽 목록이 위에서부터 이어지도록 한다.
     sticky 범위가 이 행들까지라, 아래 광고 배너 자리에 닿으면 저절로 멈춘다. */
  .content.split > .wallet-wrap {
    grid-column: 1; grid-row: 1 / span 99; align-self: start;
    padding: 0; position: sticky; top: calc(var(--topbar-h) + 14px);
    /* 오른쪽 마지막 패널의 아래 여백과 같은 값 — sticky 가 그만큼 일찍 멈춰
       카드 아래 끝선이 마지막 패널(K★STAR NEWS) 아래 끝선과 정확히 맞는다. */
    margin-bottom: var(--gap) !important;
  }
  .content.split > .panel,
  .content.split > .page { grid-column: 2; margin-bottom: var(--gap) !important; }
  .content.split .wallet-card,
  .content.split .wallet-actions { max-width: none; }

  .content.wide { max-width: 1060px; margin: 0 auto; }
  /* 로그인 전 화면 : 박스 폭을 아래 광고 배너와 똑같이 맞춘다 (본문 최대폭 제한 해제) */
  .content.landing { max-width: none; margin: 0; }

  .home-ad-bottom { margin: 16px 28px 4px; }   /* 본문 좌우 여백과 맞춤 → 왼쪽+오른쪽 박스 전체 폭 */

  .hero { padding-top: 56px; }
  .hero img.logo { max-width: 320px; }
  .hero .tagline { font-size: 15px; }
  .hero .cta { flex-direction: row; justify-content: center; }
  .hero .cta .btn { min-width: 220px; }

  .panel { padding-left: 22px; padding-right: 22px; }
  .row-name { font-size: 15.5px; }

  /* 매장 확인 : 회원 카드 + 처리 패널 2단 */
  .verify-wrap { max-width: 1000px; display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .verify-wrap > .center, .verify-wrap > .flash { grid-column: 1 / -1; }
  .verify-wrap > .verify-card { grid-column: 1; }
  .verify-wrap > .verify-side { grid-column: 2; display: flex; flex-direction: column; gap: var(--gap); }
  .verify-wrap > .verify-side > .card { margin-top: 0; }
  /* QR 오류 화면은 카드 하나뿐이라 단일 컬럼으로 */
  .verify-wrap.single { display: block; max-width: 520px; }

  .admin { max-width: 1280px; }
}

/* ---------- 와이드 PC (≥1280px) ---------- */
@media (min-width: 1280px) {
  .content.split { grid-template-columns: 380px minmax(0, 1fr); }
}

/* ---------- 대형 PC (≥1440px) ---------- */
@media (min-width: 1440px) {
  :root { --app-w: 1280px; }
  .content.split { grid-template-columns: 400px minmax(0, 1fr); }
  .admin { max-width: 1440px; }
}

/* ---------- 가로 모드 낮은 화면 ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding-top: 22px; }
  .qr-plate { max-width: 260px; margin: 0 auto; }
}

/* ── 관리자 회원 상세 팝업 ─────────────────────────────── */
.row-open { cursor: pointer; }
.row-open:hover > td { background: rgba(201, 162, 39, .07); }
.row-open:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tbl td.nowrap { white-space: nowrap; }
.tbl td.nowrap .btn + .btn,
.tbl td.nowrap .btn + a { margin-left: 6px; }

.adm-modal { position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: flex-end; justify-content: center; }
.adm-modal[hidden] { display: none; }
.adm-dim { position: absolute; inset: 0; background: rgba(30, 24, 12, .55); }
.adm-sheet {
  position: relative; width: 100%; max-width: 720px; max-height: 90vh;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .28);
}
.adm-sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
}
.adm-sheet-head b { font-size: 16px; color: var(--text); }
.adm-sheet-head .muted { word-break: break-all; }
.adm-close { background: none; border: 0; font-size: 18px; color: var(--muted);
  cursor: pointer; padding: 2px 6px; line-height: 1; }
.adm-close:hover { color: var(--text); }
.adm-sheet-body { padding: 4px 18px 20px; overflow-y: auto; flex: 1; }
.adm-sheet-body .table-wrap { overflow-x: auto; }
.adm-sheet-body .tbl { min-width: auto; }

.adm-sec {
  margin: 20px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .6px;
  color: var(--gold-dark); text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--line-soft);
}
.adm-sec .muted { font-weight: 600; letter-spacing: 0; text-transform: none; }
.adm-kv th { width: 92px; white-space: nowrap; }
.adm-badges { display: flex; flex-wrap: wrap; gap: 6px; }

@media (min-width: 768px) {
  .adm-modal { align-items: center; padding: 20px; }
  .adm-sheet { border-radius: 18px; border-bottom: 1px solid var(--line); max-height: 86vh; }
}

/* ── 로그인 차단 안내 팝업 (중지·삭제 계정) ─────────────── */
.notice-modal { position: fixed; inset: 0; z-index: 400; display: flex;
  align-items: center; justify-content: center; padding: 22px; }
.notice-dim { position: absolute; inset: 0; background: rgba(30, 24, 12, .6); }
.notice-box {
  position: relative; width: 100%; max-width: 360px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 22px 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}
.notice-icon { font-size: 34px; color: #d08a3c; margin-bottom: 12px; }
.notice-box h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; color: var(--text); }
.notice-msg {
  margin: 0 0 20px; font-size: 14px; line-height: 1.8; color: var(--text-soft);
  white-space: pre-line;
}
.row-deleted > td { opacity: .62; background: rgba(179, 59, 59, .05); }
.row-deleted:hover > td { background: rgba(179, 59, 59, .1); }
