/* =========================================================
   Brand Digging Club — 단체 커피챗 시스템 디자인 시스템
   PRD N-1: 모바일 퍼스트 반응형
   브레이크포인트: ~767px 1열 / 768px~ 2열+중앙폼 / 1024px~ max-width 1140px
   ========================================================= */

:root {
  --page: #FFF7EB;
  --bg: #FFFFFF;
  --surface: #FFF7EB;
  --surface-2: #F9EDDA;
  --border: #F0E3CE;
  --border-strong: #DFCCAD;
  --text-primary: #1A1A1A;
  --text-secondary: #5C5648;
  --text-muted: #A89F8D;
  --brand: #EE2C2D;
  --brand-hover: #D42122;
  --brand-light: #FDEAEA;
  --brand-dark: #B71617;
  --accent: #3BACF1;
  --accent-dark: #1B7FC2;
  --accent-light: #E5F4FE;
  --success: #0E7A4E;
  --success-bg: #E8F6EE;
  --warning: #B45309;
  --warning-bg: #FFF4DC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--page);
  color: var(--text-primary);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ═══ 공통 컴포넌트 ═══ */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }
.badge-brand { background: var(--text-primary); color: var(--page); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-gray { background: var(--surface-2); color: var(--text-secondary); }
.badge-day { background: var(--brand); color: #fff; }
.badge-dark { background: var(--text-primary); color: var(--page); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 15px; font-weight: 600; padding: 13px 24px; border-radius: 10px; border: none; cursor: pointer; transition: all 150ms ease; min-height: 44px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--border-strong); color: var(--text-muted); cursor: not-allowed; transform: none; }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; min-height: 36px; }

/* ═══ 헤더 (공용) ═══ */
.site-nav { border-bottom: 1px solid var(--border); background: var(--page); position: sticky; top: 0; z-index: 40; }
.site-nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.site-nav .brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.site-nav .brand img { height: 30px; width: auto; }
.site-nav .nav-cta { font-size: 13px; font-weight: 600; background: var(--brand); color: #fff; padding: 9px 16px; border-radius: 100px; }
.site-nav .back-link { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.site-nav .back-link:hover { color: var(--text-primary); }

/* ═══ 히어로 ═══ */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(44px, 6vw, 80px); text-align: center;
  background:
    radial-gradient(640px 340px at 50% -60px, #FFE7CB 0%, rgba(255,231,203,0) 70%),
    radial-gradient(520px 340px at 88% 18%, rgba(238,44,45,0.08), transparent 62%),
    radial-gradient(480px 320px at 8% 80%, rgba(238,44,45,0.06), transparent 62%);
}
.hero .container { position: relative; }
.float-obj { position: absolute; background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(174,120,58,0.14); padding: 13px 16px; font-size: 12px; text-align: left;
  line-height: 1.5; display: none; animation: floaty 6s ease-in-out infinite; z-index: 1; }
@media (min-width: 960px) { .float-obj { display: block; } }
.float-obj b { font-size: 13px; font-weight: 700; display: block; }
.float-obj .sub { color: var(--text-muted); font-size: 11px; }
.float-obj .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 5px; }
.fo-1 { --r: -7deg; left: 1%; top: 16%; }
.fo-2 { --r: 6deg; right: 1%; top: 13%; animation-delay: 1.3s; max-width: 200px; }
.fo-3 { --r: -4deg; right: 4%; bottom: 10%; animation-delay: 2.4s; }
.fo-4 { --r: 5deg; left: 4%; bottom: 14%; animation-delay: 0.7s; }
@keyframes floaty { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-12px); } }
/* 모바일 폭에서는 히어로 본문 텍스트와 겹치므로 데스크톱(768px~)에서만 노출 */
.star-doodle { position: absolute; z-index: 0; opacity: 0.9; animation: floaty 7s ease-in-out infinite; display: none; }
@media (min-width: 768px) { .star-doodle { display: block; } }
.sd-1 { --r: -12deg; left: 12%; top: 8%; width: 26px; }
.sd-2 { --r: 18deg; right: 14%; top: 56%; width: 18px; animation-delay: 1.8s; }
.sd-3 { --r: 8deg; left: 22%; bottom: 4%; width: 16px; animation-delay: 3s; }
@media (prefers-reduced-motion: reduce) { .float-obj, .star-doodle { animation: none; } }
.marker { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 Q 30 3 60 7 T 117 5' fill='none' stroke='%23EE2C2D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center calc(100% - 0.02em)/100% 0.22em; padding-bottom: 0.14em; }
.hero h1 { font-size: clamp(28px, 5vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin: 20px 0 16px; }
.hero .desc { font-size: clamp(14px, 1.8vw, 18px); color: var(--text-secondary); max-width: 520px; margin: 0 auto 30px; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══ 일러스트 ═══ */
.step-illus { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-illus img { max-height: 120px; max-width: 82%; width: auto; height: auto; }
@media (min-width: 768px) { .step-illus { height: 140px; } .step-illus img { max-height: 140px; } }
.join-illus { max-width: 230px; margin: 0 auto 6px; }
.join-illus img { width: 100%; height: auto; }

/* ═══ 후기 캐러셀 ═══ */
.testi-sec { padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 72px); }
.testi-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); }
.testi-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.testi-orn { width: 16px; height: 16px; flex-shrink: 0; }
.testi-title { font-size: clamp(22px, 3.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.testi-title-accent { color: var(--brand); }

.testi-carousel-wrap { overflow: hidden; min-height: 176px; -webkit-mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent); mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent); }
.testi-track { display: flex; gap: 16px; width: max-content; padding: 4px 2px 6px; animation: testi-roll 36s linear infinite; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
/* 마우스 호버 시에만 일시정지 — 터치 기기는 탭 후 :hover가 안 풀려 롤링이 멈춘 채 고정되는 문제가 있어 제외 */
@media (hover: hover) and (pointer: fine) {
  .testi-carousel-wrap:hover .testi-track { animation-play-state: paused; }
}
@keyframes testi-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testi-card { flex: 0 0 auto; width: 240px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .testi-card { width: 250px; } }
.testi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.testi-top b { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.testi-quote-mark { font-size: 30px; line-height: 0.6; color: var(--brand-light); font-weight: 800; }
.testi-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

@media (prefers-reduced-motion: reduce) { .testi-track { animation: none; overflow-x: auto; } }

/* ═══ 진행 방식 ═══ */
.how { padding: clamp(32px, 5vw, 72px) 0; }
.sec-title { font-size: clamp(20px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.sec-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.step .n { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; display: block; margin-bottom: 8px; }
.step b { font-size: 16px; font-weight: 600; display: block; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* ═══ 커피챗 카드 ═══ */
.chats { padding: clamp(32px, 5vw, 72px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.sec-head .more { font-size: 13px; font-weight: 600; color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.chat-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .chat-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.chat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04); transition: box-shadow 200ms ease, transform 200ms ease; display: flex; flex-direction: column; }
.chat-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.10); transform: translateY(-2px); }
.chat-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.chat-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.45; }
.chat-card .host { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.chat-card .host b { color: var(--text-primary); font-weight: 600; }
.chat-card .time { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.chat-card .cta { display: flex; gap: 8px; margin-top: auto; }
.chat-card .cta .btn { flex: 1; padding: 11px; font-size: 14px; }
.chat-card .cta .btn-secondary { flex: 0 0 96px; }

.empty-state { background: var(--bg); border: 1px dashed var(--border-strong); border-radius: 18px; padding: 40px 24px; text-align: center; }
.empty-state b { display: block; font-size: 16px; margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }

/* 아카이브 */
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) { .arch-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.arch-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.arch-card .t { font-size: 14px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; display: block; }
.arch-card .h { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 12px; }
.arch-card .lnk { font-size: 12px; font-weight: 600; color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.arch-card .lnk.pending { color: var(--text-muted); font-weight: 500; }

/* 가입 배너 */
.join-sec { padding: clamp(40px, 6vw, 88px) 0; }
.join-box { background: var(--bg); border: 1.5px solid var(--brand); border-radius: 22px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.join-box h2 { font-size: clamp(20px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 8px; }
.join-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; }

/* ═══ 신청 폼 ═══ */
.form-wrap { padding: clamp(20px, 4vw, 56px) 0; }
.form-card { max-width: 480px; margin: 0 auto; }
@media (min-width: 768px) { .form-card { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06); } }
.form-card h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.form-card .form-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 22px; }
.autofill { background: var(--surface-2); border-radius: 10px; padding: 11px 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; gap: 10px; }
.autofill u { cursor: pointer; }
label { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 7px; }
input, select, textarea { width: 100%; font-family: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: 10px; margin-bottom: 6px; background: var(--bg); color: var(--text-primary); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field-error { font-size: 12px; color: var(--brand); min-height: 16px; margin-bottom: 12px; display: block; }
.field { margin-bottom: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 22px; font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; }
.form-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 12px; }

.closed-card { max-width: 480px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; text-align: center; }
.closed-card b { display: block; font-size: 17px; margin-bottom: 8px; }
.closed-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

/* 완료 화면 */
.done-card { max-width: 480px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; text-align: center; }
.done-card .check-circle { width: 54px; height: 54px; border-radius: 50%; background: var(--success-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; color: var(--success); font-weight: 700; }
.done-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.done-card .desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.done-card .remind { background: var(--surface); border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; text-align: left; font-size: 13px; color: var(--text-secondary); }
.done-card .remind b { display: block; color: var(--text-primary); font-size: 13px; margin-bottom: 6px; }

/* ═══ 팝업 (반응형: 모바일 바텀시트 → PC 중앙 모달) ═══ */
.popup-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.55); display: none; align-items: flex-end; justify-content: center; z-index: 90; }
.popup-overlay.on { display: flex; }
@media (min-width: 768px) { .popup-overlay.on { align-items: center; } }
.sheet { position: relative; width: 100%; background: var(--bg); border-radius: 22px 22px 0 0; padding: 26px 24px 30px; max-width: 480px; max-height: 92vh; overflow-y: auto; }
@media (min-width: 768px) { .sheet { border-radius: 22px; padding: 36px; } .grabber { display: none; } }
.grabber { width: 40px; height: 4px; background: var(--border-strong); border-radius: 100px; margin: 0 auto 22px; }
.check-circle { width: 50px; height: 50px; border-radius: 50%; background: var(--success-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 22px; color: var(--success); font-weight: 700; }
.sheet h2 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; letter-spacing: -0.02em; text-align: center; line-height: 1.4; margin-bottom: 10px; }
.sheet .desc { font-size: 13px; color: var(--text-secondary); text-align: center; line-height: 1.7; margin-bottom: 20px; }
.benefits { background: var(--surface); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.benefits b { font-size: 13px; font-weight: 700; display: block; margin-bottom: 10px; }
.benefits p { font-size: 13px; color: var(--text-secondary); margin-bottom: 7px; }
.benefits p:last-child { margin-bottom: 0; }
.benefits .tick { color: var(--success); font-weight: 700; margin-right: 6px; }
.recheck { font-size: 13px; color: var(--text-primary); text-align: center; text-decoration: underline; margin: 14px 0 10px; font-weight: 500; cursor: pointer; background: none; border: none; width: 100%; font-family: inherit; }
.close-txt { font-size: 12px; color: var(--text-muted); text-align: center; cursor: pointer; background: none; border: none; width: 100%; font-family: inherit; padding: 6px 0; }

.recheck-form { display: none; margin-top: 10px; }
.recheck-form.on { display: block; }

/* 지속 배너 (C-2) */
.persist-banner { max-width: 480px; margin: 16px auto 0; background: var(--brand-light); border: 1px solid var(--brand); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.persist-banner span { font-size: 13px; color: var(--brand-dark); font-weight: 600; }

/* ═══ 어드민 ═══ */
.admin-wrap { padding: clamp(20px, 3vw, 40px) 0 64px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.admin-top b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.admin-tabs { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.admin-tabs button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 4px 0; }
.admin-tabs .on { color: var(--brand); font-weight: 700; }
.panel { border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 20px; background: var(--bg); }
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.panel-head b { font-size: 15px; font-weight: 700; }
.mini-btn { background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 9px; border: none; cursor: pointer; font-family: inherit; }
.mini-btn.outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-strong); }
.mini-btn:disabled { background: var(--border-strong); color: var(--text-muted); cursor: not-allowed; }
.row-btn { font-family: inherit; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text-secondary); cursor: pointer; }
.row-btn.danger { color: var(--brand); border-color: var(--brand-light); background: var(--brand-light); }
.row-btn.danger:hover { background: var(--brand); color: #fff; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 920px; font-size: 13px; border-collapse: collapse; }
th { font-weight: 500; color: var(--text-muted); text-align: left; padding: 9px 8px; font-size: 12px; white-space: nowrap; }
td { padding: 12px 8px; border-top: 1px solid var(--border); vertical-align: top; }
td.bold { font-weight: 600; line-height: 1.5; }
td.mut { color: var(--text-secondary); white-space: nowrap; }
.link { color: var(--text-primary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.null-val { color: var(--text-muted); font-style: italic; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 14px; padding: 28px; text-align: center; margin: 14px 0; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.dropzone.drag { background: var(--surface-2); border-color: var(--brand); }
.dropzone b { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.dropzone span { font-size: 12px; color: var(--text-muted); }
.info-row { background: var(--surface); border-radius: 10px; padding: 12px 15px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sheet-sync { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.sync-dot { width: 10px; height: 10px; border-radius: 50%; background: #0E7A4E; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(14,122,78,0.15); }
.notice { background: var(--surface-2); border-radius: 10px; padding: 11px 15px; font-size: 12px; color: var(--text-secondary); margin-top: 10px; font-weight: 500; }
.notice.warn { background: var(--warning-bg); color: var(--warning); }

/* CSV 업로드 미리보기 */
.preview-box { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.preview-box .summary { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; }
.preview-box .summary b { font-weight: 700; }
.preview-warn-row { font-size: 12px; color: var(--warning); padding: 3px 0; }
.preview-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* 세션 등록/수정 폼 (어드민 모달) */
.session-form { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 768px) { .session-form { grid-template-columns: 1fr 1fr; } }
.session-form .full { grid-column: 1/-1; }

/* 어드민 로그인 게이트 */
.admin-login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.admin-login-card { max-width: 360px; width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; text-align: center; }
.admin-login-card b { display: block; font-size: 17px; margin-bottom: 6px; }
.admin-login-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.admin-login-card .form-note { margin-top: 14px; }

/* 모달 (어드민 세션 수정) */
.modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.5); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 95; }
.modal-overlay.on { display: flex; }
.modal-box { background: var(--bg); border-radius: 20px; padding: 28px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--text-primary); color: var(--page); font-size: 13px; font-weight: 600; padding: 12px 20px; border-radius: 100px; opacity: 0; pointer-events: none; transition: all 200ms ease; z-index: 200; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ═══ 푸터 ═══ */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 20px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); }
.site-footer a:hover { color: var(--text-secondary); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
