/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:       #f97316;
  --orange-dark:  #ea580c;
  --orange-light: #fff7ed;
  --orange-mid:   #ffedd5;
  --amber:        #f59e0b;
  --green:        #16a34a;
  --green-bg:     #dcfce7;
  --red:          #dc2626;
  --sat:          #2563eb;
  --sun:          #dc2626;
  --bg:           #fffbf5;
  --surface:      #ffffff;
  --border:       #fed7aa;
  --border-soft:  #fde8d0;
  --text:         #1c1917;
  --text-muted:   #78716c;
  --nav:          #1c1917;
  --radius:       10px;
  --shadow:       0 2px 8px rgba(249,115,22,.10), 0 1px 3px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 24px rgba(249,115,22,.14), 0 2px 8px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ── */
.navbar {
  background: var(--nav);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 900px; margin: 0 auto;
  padding: 0 20px; height: 54px;
  display: flex; align-items: center; gap: 16px;
}
.nav-brand { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.nav-brand:hover { text-decoration: none; color: #fed7aa; }
.nav-links  { display: flex; gap: 4px; margin-left: auto; }
.nav-link   { color: #a8a29e; padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.nav-link:hover { color: #fff; background: #292524; text-decoration: none; }
.nav-link.active { color: #fff; background: var(--orange); }
.nav-link-ghost { border: 1px solid #44403c; }
.nav-link-ghost:hover { border-color: #57534e; }

/* ── Flash ── */
.flash-container { max-width: 900px; margin: 12px auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; border-left: 4px solid; }
.flash-success { background: #f0fdf4; border-color: var(--green);  color: #166534; }
.flash-error   { background: #fef2f2; border-color: var(--red);    color: #991b1b; }
.flash-warning { background: #fefce8; border-color: var(--amber);  color: #92400e; }
.flash-info    { background: var(--orange-light); border-color: var(--orange); color: #9a3412; }

/* ── Main ── */
.main-content { max-width: 900px; margin: 0 auto; padding: 32px 20px; width: 100%; flex: 1; }

/* ── Footer ── */
.footer { text-align: center; padding: 20px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border-soft); margin-top: auto; }

/* ══════════════════════════════
   LANDING PAGE
══════════════════════════════ */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-radius: 16px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.hero-emoji  { font-size: 52px; margin-bottom: 12px; }
.hero-title  { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.hero-sub    { color: var(--text-muted); margin-top: 8px; font-size: 15px; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title  { font-size: 18px; font-weight: 700; }

.event-grid { display: flex; flex-direction: column; gap: 12px; }
.event-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--text);
}
.event-card:hover { border-color: var(--orange); box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.event-card-emoji  { font-size: 36px; flex-shrink: 0; }
.event-card-body   { flex: 1; }
.event-card-title  { font-size: 18px; font-weight: 700; }
.event-card-meta   { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.event-card-stats  { display: flex; gap: 12px; margin-top: 8px; }
.event-stat        { font-size: 13px; background: var(--orange-light); color: var(--orange-dark); border-radius: 20px; padding: 3px 10px; font-weight: 600; }
.event-card-arrow  { font-size: 20px; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ══════════════════════════════
   EVENT PAGE
══════════════════════════════ */
.event-hero {
  text-align: center;
  padding: 40px 20px 32px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 60%, #fef3c7 100%);
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  position: relative;
}
.back-link { position: absolute; top: 16px; left: 20px; font-size: 14px; color: var(--text-muted); }
.back-link:hover { color: var(--orange-dark); text-decoration: none; }
.event-hero-emoji { font-size: 48px; margin-bottom: 10px; }
.event-hero-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }

.vote-section { background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: 14px; padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow); }
.vote-section-header { margin-bottom: 20px; }
.vote-section-title  { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.vote-section-desc   { font-size: 14px; color: var(--text-muted); }

/* Place Cards */
.place-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.place-card {
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  background: var(--surface);
}
.place-card:hover { border-color: var(--orange); }
.place-selected   { border-color: var(--orange) !important; background: var(--orange-light); }
.place-card:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.place-form--locked .place-radio { opacity: 0.35; pointer-events: none; }
.place-form--locked .place-card  { opacity: 0.6; }
.place-form--locked .place-label { cursor: not-allowed; pointer-events: none; }
#place-submit-btn.btn--dimmed    { opacity: 0.55; }

.place-label {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; cursor: pointer;
}
.place-radio { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--orange); }
.place-info  { flex: 1; }
.place-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place-name  { font-size: 16px; font-weight: 700; }
.place-desc  { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.place-link  { font-size: 13px; color: var(--orange-dark); margin-top: 6px; display: inline-block; }
.place-vote-count { flex-shrink: 0; }
.vote-pill {
  display: inline-block;
  background: var(--orange-mid);
  color: var(--orange-dark);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 14px; font-weight: 700;
}

/* Comments */
.comments-area {
  border-top: 1px solid var(--border-soft);
  padding: 12px 18px;
  background: #fafaf8;
}
.comment-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.comment-item { font-size: 13px; display: flex; align-items: center; gap: 2px; }
.comment-delete-btn {
  margin-left: 6px; padding: 1px 5px; border: none; border-radius: 4px;
  background: none; color: var(--text-muted); cursor: pointer; font-size: 12px; flex-shrink: 0;
}
.comment-delete-btn:hover { color: var(--red); background: #fee2e2; }
.comment-name { font-weight: 700; color: var(--orange-dark); }
.comment-sep  { color: var(--text-muted); margin: 0 4px; }
.comment-text { color: var(--text); }

.comment-form { display: flex; gap: 8px; flex-wrap: wrap; }
.comment-name-input,
.comment-text-input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s;
}
.comment-text-input { flex: 1; min-width: 120px; }
.comment-text-input:focus { outline: none; border-color: var(--orange); }
.comment-save-btn {
  padding: 7px 14px; border: none; border-radius: 6px; cursor: pointer;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.comment-save-btn:hover { background: var(--orange-dark); }
.comment-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.place-submit-area { text-align: center; margin-top: 8px; }
.vote-done-msg { font-size: 14px; color: var(--green); margin-bottom: 10px; font-weight: 600; }

/* Suggest Box */
.suggest-box { margin-top: 20px; border: 2px dashed var(--border); border-radius: var(--radius); padding: 18px; background: var(--orange-light); }
.suggest-toggle-btn {
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--orange-dark);
  font-family: inherit; padding: 0;
}
.suggest-toggle-btn:hover { text-decoration: underline; }
.suggest-form-inner { margin-top: 14px; }
.suggest-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.suggest-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ══════════════════════════════
   DATE CALENDAR
══════════════════════════════ */
.name-input-card {
  background: var(--orange-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.name-input-card--prominent {
  background: #fff7ed;
  border: 2.5px solid var(--orange);
  box-shadow: 0 0 0 4px rgba(249,115,22,.10);
  padding: 20px 24px;
}
.name-input-inner {
  display: flex; align-items: center; gap: 14px; width: 100%;
}
.name-input-icon { font-size: 28px; flex-shrink: 0; }
.name-input-fields { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.name-input-label { font-weight: 700; font-size: 15px; color: var(--orange-dark); }
.name-input { max-width: 260px; font-size: 16px; font-weight: 600; }
.name-status { font-size: 13px; color: var(--text-muted); width: 100%; margin-top: 4px; }
.name-status.active { color: var(--green); font-weight: 700; }
.name-status.error  { color: var(--red); font-weight: 700; }
.name-input-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; width: 100%; }
.date-vote-hint  { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.suggest-delete-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--red);
  background: #fee2e2; border: 1px solid #fca5a5; border-radius: 6px;
  padding: 2px 8px; cursor: pointer; margin-left: 4px;
}
.suggest-delete-btn:hover { background: #fecaca; }
.date-save-area {
  display: flex; align-items: center; gap: 14px;
  margin: 16px 0; padding: 14px 20px;
  background: #f0fdf4; border: 2px solid #86efac;
  border-radius: var(--radius);
}
.date-save-hint { font-size: 13px; color: var(--green); font-weight: 600; }

.calendar-legend { display: flex; gap: 20px; margin-bottom: 14px; font-size: 13px; color: var(--text-muted); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot  { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.dot-option { background: var(--orange-light); border: 2px solid var(--orange); }
.dot-voted  { background: var(--green-bg);    border: 2px solid var(--green); }

/* 1개월 = 전체 너비, 2개월 = 나란히 */
.cal-grid   { display: grid; gap: 28px; }
.cal-grid-1 { grid-template-columns: 1fr; }
.cal-grid-2 { grid-template-columns: 1fr 1fr; }

.cal-month { }
.cal-month-header { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--text); text-align: center; }

.cal-table {
  border-collapse: separate;
  border-spacing: 4px;
  width: 100%;
  table-layout: fixed;   /* 7칸 균등 배분 */
}
.cal-table th {
  text-align: center;
  padding: 10px 2px;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
}
.th-sat { color: var(--sat); }
.th-sun { color: var(--sun); }

/* 1개월: 큰 칸 */
.cal-grid-1 .cal-cell { height: 96px; }
.cal-grid-1 .cal-day  { font-size: 17px; }
.cal-grid-1 .cal-count { font-size: 12px; }

/* 2개월: 중간 칸 */
.cal-grid-2 .cal-cell { height: 72px; }
.cal-grid-2 .cal-day  { font-size: 14px; }
.cal-grid-2 .cal-count { font-size: 10px; }
.cal-grid-2 .cal-table th { font-size: 11px; padding: 8px 2px; }

.cal-cell { text-align: center; vertical-align: middle; border-radius: 8px; }
.cal-empty   { background: transparent; }
.cal-inactive { background: #f5f5f4; }

.cal-option {
  background: var(--orange-light);
  border: 2px solid var(--orange);
  cursor: not-allowed; opacity: .55;
  transition: background .15s, border-color .15s, transform .12s, opacity .15s;
}
.cal-option:not(.disabled) { cursor: pointer; opacity: 1; }
.cal-option:not(.disabled):hover { background: var(--orange-mid); border-color: var(--orange-dark); transform: scale(1.06); position: relative; z-index: 1; }
.cal-option.voted { background: var(--green-bg); border-color: var(--green); }
.cal-option.voted .cal-day { color: var(--green); }
.cal-option.voted .cal-count { color: var(--green); }
.cal-option.voted:not(.disabled):hover { background: #bbf7d0; border-color: #15803d; }

.col-sat .cal-day { color: var(--sat); }
.col-sun .cal-day { color: var(--sun); }

.cal-day     { font-size: 15px; font-weight: 700; }
.cal-day-dim { color: #d6d3d1; font-weight: 400; font-size: 14px; }
.cal-count   { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.2; }

/* ══════════════════════════════
   날짜 투표 현황 섹션
══════════════════════════════ */
.status-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px dashed var(--border);
}
.status-header   { margin-bottom: 18px; }
.status-title    { font-size: 18px; font-weight: 800; margin-bottom: 12px; }

.status-participants {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: 8px; padding: 10px 14px;
}
.participants-label { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-right: 2px; white-space: nowrap; }
.participant-tag    { background: #dcfce7; color: #166534; border-radius: 14px; padding: 3px 10px; font-size: 13px; font-weight: 600; }

/* 현황 달력 칸 */
.cal-status-option {
  background: #f0fdf4;
  border: 2px solid #86efac;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.cal-status-option:hover { background: #dcfce7; transform: scale(1.05); position: relative; z-index: 1; }
.status-count { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 2px; }

/* 당선 유력 */
.cal-winner {
  background: linear-gradient(135deg, #fef9c3, #fde68a) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: pulse-gold 1.2s ease-in-out infinite alternate;
}
.cal-winner .cal-day { color: #92400e !important; }
@keyframes pulse-gold {
  from { box-shadow: 0 0 0 2px rgba(245,158,11,.25); }
  to   { box-shadow: 0 0 0 6px rgba(245,158,11,.0); }
}
.winner-label {
  font-size: 9px; font-weight: 900; color: #92400e;
  margin-top: 3px; letter-spacing: -.2px; line-height: 1.2;
}

/* 클릭 팝업 */
.cal-popup {
  position: fixed;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 14px 16px;
  z-index: 9999;
  min-width: 160px;
  max-width: 260px;
}
.popup-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; gap: 8px;
}
.popup-date  { font-size: 14px; font-weight: 800; color: var(--text); }
.popup-close {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--text-muted); padding: 0; line-height: 1;
  flex-shrink: 0;
}
.popup-close:hover { color: var(--text); }
.popup-names { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; min-height: 24px; }
.popup-group { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.popup-group + .popup-group { margin-top: 6px; }
.popup-group-label { font-size: 11px; font-weight: 700; color: var(--text-muted); min-width: 36px; }
.popup-name    { background: #dcfce7; color: #166534; border-radius: 10px; padding: 3px 9px; font-size: 12px; font-weight: 600; }
.popup-name-no { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 3px 9px; font-size: 12px; font-weight: 600; }
.popup-empty   { font-size: 13px; color: var(--text-muted); }
.popup-footer {
  font-size: 12px; color: var(--text-muted); text-align: right;
  padding-top: 8px; border-top: 1px solid var(--border-soft);
}
.popup-footer.all-ok { color: var(--green); font-weight: 700; text-align: center; }

/* ══════════════════════════════
   BADGES
══════════════════════════════ */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.badge-suggest { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.badge-admin   { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.name-tag { display: inline-block; background: #dcfce7; color: #166534; border: 1px solid #86efac; border-radius: 10px; padding: 2px 8px; font-size: 12px; margin: 2px; }

/* ══════════════════════════════
   FORMS & BUTTONS (shared)
══════════════════════════════ */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 700; }
.required { color: var(--red); }
.form-hint        { font-size: 13px; color: var(--text-muted); }
.form-check-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.form-check-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

.form-input {
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.form-textarea { min-height: 84px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { background: #f5f5f4; text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }

.btn-vote { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-vote:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }

.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; }

.btn-sm  { padding: 5px 10px; font-size: 13px; }
.btn-lg  { padding: 12px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ══════════════════════════════
   ADMIN PAGES
══════════════════════════════ */
.admin-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.admin-page-title { font-size: 22px; font-weight: 800; margin-top: 4px; }
.admin-page-desc  { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.admin-narrow { max-width: 520px; }

.admin-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.admin-card-title { font-size: 17px; font-weight: 700; }

/* Admin event list */
.admin-event-list { display: flex; flex-direction: column; gap: 10px; }
.admin-event-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.admin-event-info  { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.admin-event-emoji { font-size: 28px; flex-shrink: 0; }
.admin-event-title { font-size: 16px; font-weight: 700; }
.admin-event-meta  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.admin-event-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }

/* Share link */
.share-link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-link-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.share-link-url { font-size: 13px; background: #f5f5f4; padding: 6px 10px; border-radius: 5px; flex: 1; word-break: break-all; }

/* Admin table */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); border-bottom: 2px solid var(--border-soft); white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.admin-table tbody tr:hover { background: var(--orange-light); }
.row-top  { background: #fef9c3 !important; }
.row-sat  { background: #eff6ff; }
.row-sun  { background: #fff1f2; }
.tc          { text-align: center; }
.action-col  { white-space: nowrap; }
.text-muted  { color: var(--text-muted); }
.text-sat    { color: var(--sat); font-weight: 700; }
.text-sun    { color: var(--sun); font-weight: 700; }

.info-box {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; font-size: 14px;
}
.info-text { font-size: 14px; color: var(--text-muted); }
.warning-box {
  background: #fefce8; border: 1px solid #fde047;
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; font-size: 14px;
}
.danger-zone { border-color: #fca5a5 !important; background: #fff5f5; }

/* Admin login */
.admin-login-wrap  { display: flex; justify-content: center; padding: 40px 16px; }
.admin-login-card  { background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: 14px; padding: 36px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.admin-login-icon  { text-align: center; font-size: 40px; margin-bottom: 12px; }
.admin-login-title { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 24px; }

/* Empty states */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-emoji { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.empty-desc  { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.empty-state-sm { padding: 20px; text-align: center; color: var(--text-muted); font-size: 14px; }
.empty-msg   { color: var(--text-muted); font-size: 14px; padding: 12px 0; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .main-content { padding: 16px 12px; }
  .form-row { grid-template-columns: 1fr; }
  .event-hero { padding: 32px 16px 24px; }
  .vote-section { padding: 20px 14px; }
  .cal-grid-2 { grid-template-columns: 1fr; } /* 모바일: 2달도 세로로 */
  .cal-grid-1 .cal-cell,
  .cal-grid-2 .cal-cell { height: 60px; }
  .cal-grid-1 .cal-day,
  .cal-grid-2 .cal-day  { font-size: 13px; }
  .cal-grid-1 .cal-count,
  .cal-grid-2 .cal-count { font-size: 10px; }
  .admin-event-row { flex-direction: column; align-items: flex-start; }
  .place-label { padding: 14px; }
  .name-input-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .name-input-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .name-input { max-width: 100%; width: 100%; }
}
