* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif; 
  background: #f8f9fa; 
  -webkit-tap-highlight-color: transparent; 
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
}

#landingPage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, #1e58d8 0%, #0d2e7a 65%, #081a44 100%);
  padding: 32px 16px; color: white; position: relative; overflow: hidden;
}
#landingPage::before {
  content: ''; position: absolute; width: 340px; height: 340px; background: radial-gradient(circle, rgba(49, 130, 246, 0.35) 0%, rgba(49, 130, 246, 0) 70%);
  top: 5%; left: 50%; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
}

.landing-card {
  width: 100%; max-width: 440px; background: #ffffff; color: #191f28; border-radius: 28px;
  padding: 32px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); max-height: 90vh; overflow-y: auto;
  position: relative; z-index: 10;
}

.landing-header { text-align: center; margin-bottom: 22px; }

.songdo-emblem-badge {
  width: 68px; height: 68px; margin: 0 auto 12px auto;
  background: linear-gradient(135deg, #185a9d 0%, #43cea2 100%);
  border-radius: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(24, 90, 157, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.9);
  position: relative;
}
.songdo-emblem-badge svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

.landing-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800; color: #1b64da;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px;
  background: #e8f3ff; padding: 4px 10px; border-radius: 12px;
}
.landing-title { font-size: 23px; font-weight: 900; color: #191f28; margin-bottom: 6px; letter-spacing: -0.6px; line-height: 1.25; }
.landing-sub { font-size: 13px; color: #4e5968; line-height: 1.5; word-break: keep-all; font-weight: 500; }

.auth-tab-group { display: flex; background: #f2f4f6; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tab-btn {
  flex: 1; padding: 11px; border: none; background: transparent; font-size: 13px; font-weight: 700;
  color: #6b7684; border-radius: 9px; cursor: pointer; transition: 0.2s;
}
.auth-tab-btn.active { background: white; color: #1b64da; box-shadow: 0 2px 8px rgba(0,0,0,0.08); font-weight: 800; }

.landing-form-group { margin-bottom: 12px; text-align: left; }
.landing-form-group label { display: block; font-size: 12px; font-weight: 700; color: #4e5968; margin-bottom: 5px; }
.landing-input { width: 100%; padding: 12px 14px; border: 1.5px solid #d1d6db; border-radius: 10px; font-size: 14px; outline: none; transition: 0.2s; }
.landing-input:focus { border-color: #3182f6; box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.15); }

.btn-main-action {
  width: 100%; background: linear-gradient(135deg, #1b64da 0%, #3182f6 100%);
  color: white; border: none; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 800;
  cursor: pointer; margin-top: 10px; box-shadow: 0 4px 14px rgba(49, 130, 246, 0.35); transition: 0.15s;
}
.btn-main-action:active { transform: scale(0.99); }
.btn-main-action:disabled { background: #b0b8c1; box-shadow: none; cursor: not-allowed; }
.btn-guest-action {
  width: 100%; background: #f2f4f6; color: #4e5968; border: none; padding: 12px;
  border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 10px; text-align: center;
}

.user-type-group { display: flex; gap: 8px; margin-bottom: 14px; }
.user-type-btn {
  flex: 1; padding: 11px; border: 2px solid #e5e8eb; background: white; border-radius: 12px;
  font-size: 12px; font-weight: 700; color: #6b7684; cursor: pointer; text-align: center; line-height: 1.35;
}
.user-type-btn.active { border-color: #3182f6; color: #1b64da; background: #f4f8ff; font-weight: 800; }

.btn-verify { padding: 0 12px; background: #3182f6; color: white; border: none; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-map-pick { padding: 0 12px; background: #e8f3ff; color: #1b64da; border: 1.5px solid #3182f6; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }

#mainApp { display: none; }

header {
  height: 56px; background: #ffffff; color: #191f28; border-bottom: 1px solid #e5e8eb;
  display: flex; justify-content: space-between; align-items: center; padding: 0 14px; position: sticky; top: 0; z-index: 1000;
}
.brand-logo-area { display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.logo-icon-badge {
  width: 34px; height: 34px; background: linear-gradient(135deg, #185a9d 0%, #43cea2 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(24,90,157,0.3);
}
.logo-icon-badge svg { width: 20px; height: 20px; }
.logo-text-group { display: flex; flex-direction: column; }
.logo-title { font-size: 15px; font-weight: 900; color: #191f28; letter-spacing: -0.5px; line-height: 1.1; }
.logo-sub { font-size: 9px; font-weight: 800; color: #1b64da; letter-spacing: 0.2px; }

.header-btns { display: flex; gap: 5px; align-items: center; }
.btn-header { background: #f2f4f6; color: #4e5968; border: none; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-header-primary { background: #3182f6; color: white; }
.btn-header-myinfo { background: #e8f3ff; color: #1b64da; }
.btn-header-academy { background: #e6fcf5; color: #0ca678; border: 1px solid #c3fae8; font-weight: 800; }
.btn-admin { background: #191f28; color: #ffeb3b; }
.btn-menu-drawer { background: #f2f4f6; color: #191f28; font-size: 16px; padding: 5px 9px; border-radius: 8px; cursor: pointer; border: none; }

.user-tag { font-size: 11px; color: #3182f6; background: #e8f3ff; padding: 4px 8px; border-radius: 6px; font-weight: 700; }

.top-promo-banner-container {
  background: linear-gradient(90deg, #191f28 0%, #333d4b 100%); color: #ffffff;
  padding: 8px 14px; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; position: sticky; top: 56px; z-index: 999; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.banner-content-box {
  display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; margin-right: 8px; cursor: pointer;
}
#bannerTextContent { transition: opacity 0.3s ease-in-out; }
.banner-ad-tag { background: #ffeb3b; color: #191f28; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 4px; margin-right: 6px; flex-shrink: 0; }
.btn-apply-ad { background: rgba(255,255,255,0.2); color: #ffffff; border: 1px solid rgba(255,255,255,0.4); padding: 3px 8px; border-radius: 6px; font-size: 11px; cursor: pointer; flex-shrink: 0; }

#expiryAlertBanner {
  display: none; background: #fff5f5; border-bottom: 1px solid #ffc9c9; color: #e03131;
  padding: 10px 14px; font-size: 12px; font-weight: 700; justify-content: space-between; align-items: center; position: sticky; top: 92px; z-index: 999;
}
.btn-pay-now { background: #e03131; color: white; border: none; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; }

.search-filter-wrapper { background: white; border-bottom: 1px solid #e5e8eb; position: sticky; top: 92px; z-index: 998; padding: 8px 14px; }
.search-input-box { position: relative; margin-bottom: 8px; }
.search-input-box input {
  width: 100%; padding: 9px 14px 9px 34px; border: 1.5px solid #d1d6db; border-radius: 20px;
  font-size: 13px; outline: none; background: #f8f9fa; transition: 0.2s;
}
.search-input-box input:focus { background: white; border-color: #3182f6; box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.15); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #8b95a1; }

.dropdown-filter-container { display: flex; gap: 6px; overflow-x: auto; }
.dropdown-filter-container::-webkit-scrollbar { display: none; }

.dropdown-select-btn {
  display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 14px;
  border: 1.5px solid #d1d6db; background: white; font-size: 11px; font-weight: 700; color: #333d4b; cursor: pointer; white-space: nowrap;
}
.dropdown-select-btn.active { border-color: #3182f6; color: #3182f6; background: #f0f7ff; }
.dropdown-arrow { font-size: 8px; color: #8b95a1; transform: translateY(1px); }

.radio-modal-backdrop {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4); z-index: 5000; align-items: center; justify-content: center; padding: 20px;
}
.radio-modal-box {
  width: 100%; max-width: 360px; background: #ffffff; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25); overflow: hidden; animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.radio-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1.5px solid #e5e8eb; }
.radio-modal-title { font-size: 16px; font-weight: 800; color: #191f28; }
.radio-modal-list { max-height: 52vh; overflow-y: auto; }
.radio-option-item {
  display: flex; justify-content: space-between; align-items: center; padding: 13px 20px;
  border-bottom: 1px solid #f2f4f6; cursor: pointer; font-size: 14px; font-weight: 600; color: #333d4b;
}
.radio-option-item.selected { color: #3182f6; font-weight: 800; background: #f4f8ff; }
.radio-circle { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1d6db; display: flex; align-items: center; justify-content: center; }
.radio-option-item.selected .radio-circle { border-color: #3182f6; }
.radio-circle-inner { width: 8px; height: 8px; border-radius: 50%; background: #3182f6; display: none; }
.radio-option-item.selected .radio-circle-inner { display: block; }

.checkbox-option-item {
  display: flex; justify-content: space-between; align-items: center; padding: 13px 20px;
  border-bottom: 1px solid #f2f4f6; cursor: pointer; font-size: 14px; font-weight: 600; color: #333d4b;
}
.checkbox-option-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: #3182f6; cursor: pointer; }

.chip-btn-group { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.chip-btn {
  padding: 6px 10px; background: #f2f4f6; border: 1.5px solid #e5e8eb; border-radius: 8px;
  font-size: 12px; font-weight: 700; color: #4e5968; cursor: pointer; user-select: none; transition: 0.15s;
}
.chip-btn.selected { background: #e8f3ff; border-color: #3182f6; color: #3182f6; font-weight: 800; }
.chip-btn-purple.selected { background: #f3f0ff; border-color: #7950f2; color: #7950f2; }

#map { width: 100vw; height: 35vh; background: #eef2f6; }

.baemin-pill-marker {
  display: inline-flex; align-items: center; gap: 5px; background: #ffffff; color: #191f28;
  padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 1.5px solid #ffffff; white-space: nowrap; cursor: pointer; transition: 0.15s; position: relative;
}
.baemin-pill-marker::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border-width: 5px 4px 0 4px; border-style: solid; border-color: #ffffff transparent transparent transparent;
}
.baemin-pill-marker:hover, .baemin-pill-marker.active { background: #191f28; color: #ffffff; transform: translateY(-3px) scale(1.06); border-color: #191f28; }

.baemin-pill-marker.power-marker {
  background: linear-gradient(135deg, #ffffff 0%, #fff9db 100%);
  border: 2px solid #f59f00;
  box-shadow: 0 6px 18px rgba(245, 159, 0, 0.45);
  z-index: 1000 !important;
}
.baemin-pill-marker.power-marker::after {
  border-color: #f59f00 transparent transparent transparent;
}
.baemin-pill-marker.power-marker:hover, .baemin-pill-marker.power-marker.active {
  background: #f59f00; color: #ffffff; border-color: #e67700; transform: translateY(-4px) scale(1.1);
}

.baemin-pill-marker.tutor-marker {
  background: linear-gradient(135deg, #ffffff 0%, #f3f0ff 100%);
  border: 1.5px solid #7950f2;
}
.baemin-pill-marker.tutor-marker::after {
  border-color: #7950f2 transparent transparent transparent;
}
.baemin-pill-marker.tutor-marker:hover, .baemin-pill-marker.tutor-marker.active {
  background: #7950f2; color: #ffffff; border-color: #5f3dc4;
}

.marker-cat-tag { font-size: 9px; padding: 2px 5px; border-radius: 10px; color: white; font-weight: 700; }
.bg-math { background: #3182f6; } .bg-eng { background: #845ef7; } .bg-kor { background: #ff922b; }
.bg-code { background: #0ca678; } .bg-sci { background: #1098ad; } .bg-art { background: #f06595; } .bg-etc { background: #495057; }
.bg-tutor-cat { background: #7950f2; }
.marker-sub-label { font-size: 11px; color: #e03131; font-weight: 800; }

.vertical-feed-container { background: #f8f9fa; padding: 12px 16px 80px 16px; height: calc(65vh - 140px); overflow-y: auto; }
.feed-header-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: #4e5968; }
.vertical-card {
  background: #ffffff; border-radius: 14px; padding: 14px; margin-bottom: 12px;
  border: 1.5px solid #e5e8eb; box-shadow: 0 2px 6px rgba(0,0,0,0.03); cursor: pointer; transition: 0.15s;
}
.vertical-card.highlighted { border-color: #3182f6; background: #f4f8ff; box-shadow: 0 4px 14px rgba(49,130,246,0.15); }
.vertical-card-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.vertical-card-title { font-size: 15px; font-weight: 800; color: #191f28; }

.travel-time-box {
  background: #f0f7ff; border: 1px solid #d0e6ff; border-radius: 8px; padding: 6px 10px;
  font-size: 12px; color: #1b64da; font-weight: 700; margin-top: 8px; display: flex; align-items: center; justify-content: space-between;
}

.badge-wrap { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.badge-standard { background: #f3f0ff; color: #7950f2; border: 1px solid #d0bfff; }
.badge-premium { background: #fff9db; color: #f59f00; border: 1px solid #ffe066; font-weight: 800; }
.badge-basic { background: #f2f4f6; color: #4e5968; }
.badge-expired { background: #868e96; color: white; }
.badge-warning { background: #fff5f5; color: #e03131; border: 1px solid #ffc9c9; font-weight: 800; }
.badge-seminar { background: #fff0f6; color: #d6336c; border: 1px solid #fcc2d7; }
.badge-upcoming { background: #e6fcf5; color: #0ca678; }
.badge-grade { background: #f2f4f6; color: #4e5968; }
.badge-bus { background: #e8f3ff; color: #3182f6; border: 1px solid #d0e6ff; }
.badge-dday { background: #fff3bf; color: #d9480f; border: 1px solid #ffe066; font-weight: 800; }
.badge-tutor { background: #f3f0ff; color: #7950f2; border: 1px solid #d0bfff; font-weight: 800; }
.badge-tutor-pro { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; font-weight: 900; }

.capacity-badge { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.capacity-available { background: #e6fcf5; color: #0ca678; border: 1px solid #b2f2bb; }
.capacity-closing { background: #fff5f5; color: #f03e3e; border: 1px solid #ffc9c9; }
.capacity-full { background: #868e96; color: #ffffff; }

.bottom-modal {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: white;
  border-radius: 24px 24px 0 0; padding: 22px; box-shadow: 0 -8px 24px rgba(0,0,0,0.15); z-index: 2000; animation: slideUp 0.25s ease-out; max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #8b95a1; }

.btn-action {
  width: 100%; background: #3182f6; color: white; border: none; padding: 13px;
  border-radius: 10px; font-size: 15px; font-weight: 700; margin-top: 10px; cursor: pointer;
}

.contact-btn-group { display: flex; gap: 8px; margin-top: 15px; }
.btn-phone { flex: 1; background: #2ac1bc; color: white; text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; }
.btn-kakao { flex: 1.3; background: #fee500; color: #191919; text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; }
.btn-blog {
  width: 100%; background: #03c75a; color: white; text-decoration: none; display: flex; align-items: center; justify-content: center;
  padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; margin-top: 8px; box-shadow: 0 2px 6px rgba(3,199,90,0.25);
}

.seminar-banner-box { background: #fff0f6; border: 1px solid #fcc2d7; border-radius: 12px; padding: 14px; margin-top: 10px; margin-bottom: 12px; }
.seminar-title { font-size: 14px; font-weight: 700; color: #d6336c; display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }

.info-section-box {
  background: #f8f9fa; border: 1px solid #e5e8eb; border-radius: 10px; padding: 12px; margin-top: 10px;
}
.info-section-title { font-size: 13px; font-weight: 800; color: #191f28; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }

.textbook-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.textbook-gallery::-webkit-scrollbar { display: none; }
.textbook-img-card {
  flex: 0 0 110px; border: 1px solid #e5e8eb; border-radius: 8px; overflow: hidden; background: #ffffff; text-align: center; cursor: pointer; position: relative;
}
.textbook-img-card img { width: 100%; height: 130px; object-fit: cover; }
.textbook-title { font-size: 11px; font-weight: 700; color: #333d4b; padding: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.file-preview-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; padding: 4px 0; }
.file-preview-item { position: relative; width: 70px; height: 90px; border-radius: 8px; overflow: hidden; border: 1px solid #d1d6db; flex-shrink: 0; }
.file-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.file-preview-del {
  position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.65); color: white; border: none;
  border-radius: 50%; width: 18px; height: 18px; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.modal-course-filter-box {
  background: #f2f4f6; border-radius: 10px; padding: 8px 10px; margin-top: 10px; margin-bottom: 8px;
}

.course-card { border: 1px solid #e5e8eb; background: #ffffff; border-radius: 10px; padding: 12px; margin-top: 10px; }
.course-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.course-title { font-size: 14px; font-weight: 700; color: #191f28; }
.course-meta { font-size: 12px; color: #4e5968; line-height: 1.6; }
.curriculum-box { display: none; background: #f9fafb; border-radius: 8px; padding: 10px; margin-top: 8px; font-size: 12px; color: #333d4b; white-space: pre-wrap; border-left: 3px solid #3182f6; }
.btn-toggle-curr { background: none; border: none; color: #3182f6; font-size: 12px; font-weight: 700; padding: 0; cursor: pointer; margin-top: 6px; }

.form-group { margin-bottom: 12px; text-align: left; }
.form-group label { display: block; font-size: 13px; color: #4e5968; margin-bottom: 4px; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid #d1d6db; border-radius: 8px; font-size: 14px; font-family: inherit;
}

.academy-manage-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px;
}
@media (max-width: 768px) {
  .academy-manage-grid { grid-template-columns: 1fr; gap: 14px; }
}
.academy-manage-column {
  background: #fdfdfe; border: 1px solid #e5e8eb; border-radius: 14px; padding: 16px;
}
.course-feed-scrollbox { max-height: 550px; overflow-y: auto; padding-right: 4px; }

#signupMapModal {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6); z-index: 9000; padding: 20px 16px; align-items: center; justify-content: center;
}
.signup-map-card { width: 100%; max-width: 480px; background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
#signupMiniMap { width: 100%; height: 380px; background: #eef2f6; }

#pickLocationBanner {
  display: none; position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: #191f28; color: white; padding: 10px 20px; border-radius: 30px; font-size: 13px; font-weight: 700; z-index: 3000; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

#adminModal {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #f8f9fa; z-index: 4000; overflow-y: auto; padding: 20px 16px;
}
.admin-container { max-width: 1040px; margin: 0 auto; background: white; border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.admin-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #191f28; padding-bottom: 12px; margin-bottom: 16px; }
.admin-filter-row { display: flex; gap: 8px; background: #f8f9fa; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.admin-filter-select { padding: 6px 10px; border: 1px solid #d1d6db; border-radius: 6px; font-size: 12px; font-weight: 700; color: #333d4b; outline: none; background: white; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid #e5e8eb; text-align: left; }
.admin-table th { background: #f2f4f6; color: #333d4b; font-weight: 700; }
.btn-edit { background: #3182f6; color: white; border: none; padding: 4px 8px; border-radius: 4px; font-size: 12px; cursor: pointer; margin-right: 4px; }
.btn-delete { background: #f04452; color: white; border: none; padding: 4px 8px; border-radius: 4px; font-size: 12px; cursor: pointer; }

.admin-pagination { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 14px; }
.page-btn {
  min-width: 32px; height: 32px; padding: 0 6px; border: 1.5px solid #e5e8eb; background: white;
  border-radius: 8px; font-size: 12px; font-weight: 700; color: #4e5968; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover { background: #f4f8ff; color: #3182f6; border-color: #3182f6; }
.page-btn.active { background: #3182f6; color: white; border-color: #3182f6; font-weight: 800; }
.page-btn:disabled { background: #f2f4f6; color: #b0b8c1; border-color: #e5e8eb; cursor: not-allowed; }

#adminCourseModal, #adminBannerManageModal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 5000; overflow-y: auto; padding: 20px 16px; }
.admin-course-box { max-width: 800px; margin: 30px auto; background: white; border-radius: 16px; padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

#inboxModal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 4500; overflow-y: auto; padding: 20px 16px; }
.inbox-box { max-width: 750px; margin: 30px auto; background: white; border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

#paymentModal, #bannerAdModal {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 8000; align-items: center; justify-content: center; padding: 20px 16px; }
.payment-card { width: 100%; max-width: 500px; background: white; border-radius: 20px; padding: 24px; box-shadow: 0 12px 32px rgba(0,0,0,0.25); max-height: 90vh; overflow-y: auto; }

/* 멤버십 혜택 비교 테이블 스타일 */
.membership-compare-box {
  background: #f8f9fa; border: 1.5px solid #e5e8eb; border-radius: 14px;
  padding: 12px; margin-bottom: 14px; overflow-x: auto;
}
.membership-compare-table {
  width: 100%; border-collapse: collapse; font-size: 11px; text-align: center;
}
.membership-compare-table th, .membership-compare-table td {
  padding: 8px 4px; border-bottom: 1px solid #e9ecef;
}
.membership-compare-table th {
  background: #edf2f7; color: #333d4b; font-weight: 800; border-radius: 4px;
}
.membership-compare-table tr:last-child td { border-bottom: none; }
.col-highlight { background: #fff9db; font-weight: 800; color: #f59f00; }
.col-tutor-highlight { background: #f3f0ff; font-weight: 800; color: #7950f2; }

/* 패키지 카드 및 앵커링 스타일 */
.package-card {
  border: 1.5px solid #e5e8eb; border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; transition: 0.15s; background: #ffffff;
}
.package-card.selected { border-color: #3182f6; background: #f4f8ff; box-shadow: 0 2px 8px rgba(49,130,246,0.15); }
.package-card.selected-prem { border-color: #f59f00; background: #fffdf0; box-shadow: 0 2px 8px rgba(245,159,0,0.2); }
.package-header { display: flex; justify-content: space-between; align-items: center; }
.strike-price { font-size: 11px; color: #8b95a1; text-decoration: line-through; margin-right: 4px; }
.discount-badge { background: #ffe3e3; color: #e03131; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.nudge-tag { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #e8f3ff; color: #1b64da; }

.drawer-backdrop {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.45); z-index: 9500; animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.drawer-panel {
  position: fixed; top: 0; right: 0; width: 84%; max-width: 380px; height: 100vh;
  background: #ffffff; z-index: 9600; box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column; animation: slideDrawer 0.25s ease-out;
}
@keyframes slideDrawer { from { transform: translateX(100%); } to { transform: translateX(0); } }

.drawer-header {
  padding: 18px; border-bottom: 1px solid #e5e8eb; display: flex; justify-content: space-between; align-items: center;
}
.drawer-user-info { padding: 18px; background: #f8f9fa; border-bottom: 1px solid #e5e8eb; }
.drawer-menu-list { flex: 1; overflow-y: auto; padding: 10px 0; }
.drawer-item {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
  font-size: 14px; font-weight: 700; color: #333d4b; cursor: pointer; border-bottom: 1px solid #f8f9fa;
  transition: 0.15s;
}
.drawer-item:hover { background: #f4f8ff; color: #3182f6; }
.drawer-item-icon { font-size: 17px; margin-right: 10px; }
.drawer-footer {
  padding: 16px 20px; border-top: 1px solid #e5e8eb; display: flex; justify-content: space-between; align-items: center; background: #ffffff;
}

#termsModal, #pwChangeModal {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6); z-index: 9900; align-items: center; justify-content: center; padding: 20px 16px;
}

.inbox-tab-btn {
  padding: 7px 12px; border-radius: 8px; border: 1.5px solid #e5e8eb; background: #ffffff;
  font-size: 12px; font-weight: 700; color: #4e5968; cursor: pointer;
}
.inbox-tab-btn.active {
  background: #3182f6; color: #ffffff; border-color: #3182f6;
}