﻿* { box-sizing: border-box; }

input,
textarea,
select,
button {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #f5f7fb;
  color: #111;
}

body {
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-wrap {
  width: 100%;
  min-height: 100vh;
}

.app {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  position: relative;
  overflow: visible;
}

/* =========================
   HEADER
========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e8ebf2;
  backdrop-filter: blur(8px);
}

.topbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar-main {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #1e40af;
  white-space: nowrap;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn,
.search-link-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f3f6fb;
  color: #334155;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-menu {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 44px;
  min-height: 58px;
}

.top-menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 58px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #111827;
  line-height: 1;
  transition: color 0.2s ease;
}

.top-menu-link:hover {
  color: #1d4ed8;
}

.top-menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-menu-link:hover::after,
.top-menu-link.active::after {
  background: #1d4ed8;
  transform: scaleX(1);
}

.top-menu-link.active {
  color: #1d4ed8;
}

/* =========================
   LAYOUT
========================= */
.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 96px;
  min-height: calc(100vh - 65px);
}

.static-page {
  display: block;
}

/* =========================
   SEARCH
========================= */
.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.search-box button {
  width: 50px;
  border-radius: 14px;
  background: #1d4ed8;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.search-link-btn {
  width: 50px;
  height: 46px;
  border-radius: 14px;
  background: #1d4ed8;
  color: #fff;
  font-size: 18px;
}

/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #60a5fa);
  color: #fff;
  border-radius: 22px;
  padding: 24px 20px;
  margin-bottom: 24px;
}

.hero .badge {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.6px;
  word-break: keep-all;
}

.hero p {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
  word-break: keep-all;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-buttons .btn-link,
.btn-white,
.btn-soft {
  flex: 1 1 140px;
  min-width: 0;
  height: 44px;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-white {
  background: #fff;
  color: #1d4ed8;
}

.btn-soft {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* =========================
   COMMON
========================= */
.section {
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 13px;
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: #f3f6fb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.chip.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.meta-pill {
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  color: #475569;
}

.banner-mini {
  padding: 16px;
  border-radius: 18px;
  background: #eff6ff;
  color: #1e3a8a;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 16px;
}

.panel {
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  padding: 16px;
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 14px;
}

.panel-strong {
  display: block;
  margin-bottom: 8px;
}

/* =========================
   CARD LIST
========================= */
.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.course-card {
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.thumb {
  height: 180px;
  background: #f8fafc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(17,24,39,0.7);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-empty {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.3px;
  word-break: keep-all;
  min-height: calc(1.45em * 2);
  max-height: calc(1.45em * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price-row .price {
  flex: 1;
  min-width: 0;
}

.price strong {
  display: block;
  font-size: 18px;
  color: #111827;
}

.price span {
  font-size: 12px;
  color: #64748b;
  text-decoration: line-through;
}

.small-btn,
.buy-link-btn {
  min-width: 92px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================
   DETAIL
========================= */
.detail-layout {
  display: block;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.detail-cover {
  height: 210px;
  border-radius: 20px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(255,255,255,0.92);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-badge.disabled {
  background: rgba(255,255,255,0.82);
  color: #94a3b8;
  cursor: default;
}

.detail-title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  word-break: keep-all;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.info-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
}

.info-box .label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.info-box .value {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
}

.tab-btn.active {
  background: #1d4ed8;
  color: #fff;
}

.curriculum-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.curriculum-item:last-child {
  border-bottom: 0;
}

.curriculum-left {
  min-width: 0;
}

.curriculum-left strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.curriculum-left span,
.curriculum-time {
  color: #64748b;
  font-size: 12px;
}

.sticky-buy {
  position: sticky;
  bottom: 78px;
  background: #fff;
  border: 1px solid #edf1f5;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  z-index: 30;
}

.static-sticky-buy .buy-link-btn {
  min-width: 128px;
  height: 48px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
}

.sticky-buy .buy-price {
  flex: 1;
  min-width: 0;
}

.sticky-buy .buy-price strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.sticky-buy .buy-price span {
  font-size: 12px;
  color: #64748b;
}

/* =========================
   FORM
========================= */
.form-box {
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
}

.form-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #334155;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.field textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

.field-help {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.radio-group,
.check-group {
  display: grid;
  gap: 10px;
}

.option-box {
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}

.option-box.active {
  border-color: #1d4ed8;
  background: #eff6ff;
}

.option-left {
  min-width: 0;
}

.option-left strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.option-left span {
  color: #64748b;
  font-size: 12px;
}

.summary-box {
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
  line-height: 1.8;
  font-size: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.summary-row.total {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #dfe7ef;
  font-weight: 900;
  font-size: 16px;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: #1d4ed8;
  color: #fff;
}

.secondary-btn {
  background: #eef2ff;
  color: #1e40af;
}

.row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-link {
  text-align: center;
}

.field-check {
  margin-top: -2px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.inline-field-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.inline-field-group input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 46px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.inline-btn {
  min-width: 92px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: #eef2ff;
  color: #1e40af;
  font-weight: 800;
  flex-shrink: 0;
}

/* =========================
   MY COURSE / PLAYER
========================= */
.my-course {
  border: 1px solid #edf1f5;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.my-course-title {
  display: block;
  font-size: 16px;
}

.progress-wrap {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 999px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

.video-player {
  background: #0f172a;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 16px;
}

.video-screen {
  height: 220px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-size: 20px;
  text-align: center;
  padding: 20px;
}

.video-play-icon {
  font-size: 50px;
}

.video-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  flex-wrap: wrap;
}

.playlist .lesson-item {
  border: 1px solid #edf1f5;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}

.lesson-item.active {
  border-color: #1d4ed8;
  background: #eff6ff;
}

.lesson-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.lesson-sub {
  font-size: 12px;
  color: #64748b;
}

/* custom video */
.real-player-wrap {
  overflow: hidden;
}

.real-video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.custom-video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-left {
  font-size: 13px;
  color: #fff;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.speed-select {
  height: 34px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  padding: 0 10px;
}

.mini-tool-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.player-meta-line {
  margin-bottom: 6px;
  font-size: 14px;
  color: #334155;
}

.bookmark-list {
  display: grid;
  gap: 10px;
}

.bookmark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.bookmark-jump {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.bookmark-del {
  min-width: 64px;
  height: 38px;
  border-radius: 10px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
}

.bookmark-empty {
  font-size: 13px;
  color: #64748b;
}

/* =========================
   NOTICE / FAQ
========================= */
.notice-item,
.faq-item {
  border: 1px solid #edf1f5;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  margin-bottom: 10px;
}

.notice-item strong,
.faq-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.notice-item span,
.faq-item p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* =========================
   CATEGORY / SUPPORT / ADMIN
========================= */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.category-card {
  display: block;
  padding: 20px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111827;
}

.category-card span {
  font-size: 13px;
  color: #64748b;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
  width: 100%;
}

.support-card {
  height: 100%;
}

.support-faq {
  display: grid;
  gap: 10px;
  width: 100%;
}

.admin-course-list {
  display: grid;
  gap: 12px;
}

.admin-course-item .row-actions {
  max-width: 320px;
}

/* =========================
   STATIC PAGES
========================= */
.static-page-content {
  line-height: 1.9;
  font-size: 15px;
}

.content-body {
  color: #334155;
  word-break: keep-all;
}

/* =========================
   LAYER
========================= */
.layer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.layer-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.layer-header strong {
  font-size: 17px;
}

.layer-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font-size: 16px;
}

.layer-body {
  padding: 16px;
}

.layer-search-box {
  margin-bottom: 12px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.78);
}

.footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 110px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.footer-links a.point {
  color: #93c5fd;
}

.footer-info p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  word-break: keep-all;
}

.footer-copy {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px !important;
  color: rgba(255,255,255,0.6) !important;
}

.footer-info p br {
  line-height: 1.9;
}

/* =========================
   BOTTOM NAV
========================= */
.bottom-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e8ebf2;
  z-index: 250;
  box-shadow: 0 -6px 20px rgba(15,23,42,0.04);
}

.bottom-nav-inner {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: #fff;
  padding: 0;
}

.nav-btn {
  height: 70px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.nav-btn .emoji {
  font-size: 20px;
}

.nav-btn.active {
  color: #1d4ed8;
}

/* =========================
   MOBILE / SMALL
========================= */
@media (max-width: 1023px) {
  .topbar-inner {
    padding: 0 16px;
  }

  .topbar-main {
    min-height: 64px;
  }

  .brand {
    font-size: 22px;
  }

  .top-menu {
    display: none;
  }

  .bottom-nav {
    display: block;
  }

  .top-icons {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 22px;
  }

  .detail-title {
    font-size: 20px;
  }

  .thumb {
    height: 160px;
  }

  .row-actions {
    grid-template-columns: 1fr;
  }

  .inline-field-group {
    flex-direction: column;
  }

  .inline-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 21px;
  }

  .detail-title {
    font-size: 19px;
  }

  .thumb {
    height: 145px;
  }

  .static-sticky-buy .buy-link-btn {
    min-width: 110px;
  }

  .price-row,
  .sticky-buy {
    flex-direction: column;
    align-items: stretch;
  }

  .price-row .small-btn,
  .small-btn,
  .buy-link-btn {
    width: 100%;
  }
}

/* =========================
   TABLET
========================= */
@media (min-width: 768px) {
  .topbar-inner {
    padding: 0 24px;
  }

  .page {
    padding: 24px 24px 110px;
  }

  .hero {
    padding: 30px 28px;
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 15px;
  }

  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .thumb {
    height: 210px;
  }

  .info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-screen {
    height: 360px;
  }

  .form-box,
  .panel,
  .my-course,
  .notice-item,
  .faq-item {
    padding: 20px;
  }

  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    padding: 34px 24px 120px;
  }

  .footer-links {
    gap: 14px 24px;
    margin-bottom: 20px;
  }

  .footer-info p {
    font-size: 13px;
  }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1024px) {
  .topbar-inner {
    padding: 0 24px;
  }

  .topbar-main {
    min-height: 82px;
  }

  .brand {
    font-size: 30px;
  }

  .top-menu {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .page {
    padding: 32px 32px 40px;
  }

  .hero {
    padding: 38px 34px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section-title {
    font-size: 22px;
  }

  .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .thumb {
    height: 220px;
  }

  .detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 24px;
    align-items: start;
  }

  .sticky-buy {
    bottom: 10px;
  }

  .detail-side .sticky-buy,
  .detail-side .static-sticky-buy {
    position: sticky;
    top: 96px;
    bottom: auto;
    margin-top: 0;
  }

  .video-screen {
    height: 420px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-grid,
  .support-faq {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .admin-course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .footer-inner {
    padding: 40px 24px 40px;
  }

  .footer-links a {
    font-size: 15px;
  }

  .footer-info p {
    font-size: 13px;
  }
}

/* =========================
   LARGE DESKTOP
========================= */
@media (min-width: 1280px) {
  .hero h1 {
    font-size: 40px;
  }

  .card-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.thumb-preview-box {
  width: 100%;
  max-width: 320px;
  min-height: 180px;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.editor-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
}

.html-editor {
  min-height: 320px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  line-height: 1.8;
  font-size: 14px;
  outline: none;
}

.html-editor h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.html-editor p {
  margin: 0 0 12px;
}

.html-editor ul {
  margin: 0 0 12px 20px;
}

.html-editor hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0;
}

.admin-top-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-top-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.admin-top-summary-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #111827;
}

.admin-top-summary-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.admin-top-summary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-top-summary-link:hover {
  background: #1f2937;
}

@media (max-width: 767px) {
  .admin-top-summary {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .admin-top-summary-left {
    justify-content: flex-start;
  }

  .admin-top-summary-right {
    width: 100%;
  }

  .admin-top-summary-link {
    width: 100%;
  }
}

.single-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.admin-menu-toggle {
  display: inline-flex;
}

.admin-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 260;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.admin-mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.admin-mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: calc(100vw - 32px);
  height: 100vh;
  background: #fff;
  z-index: 270;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18);
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
}

.admin-mobile-menu.open {
  right: 0;
}

.admin-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-mobile-menu-header strong {
  font-size: 17px;
  font-weight: 900;
  color: #111827;
}

.admin-mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font-size: 16px;
}

.admin-mobile-menu-body {
  padding: 10px 12px 20px;
  overflow-y: auto;
}

.admin-mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.admin-mobile-menu-link + .admin-mobile-menu-link {
  margin-top: 6px;
}

.admin-mobile-menu-link.active {
  background: #eff6ff;
  color: #1d4ed8;
}

body.admin-menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .admin-menu-toggle,
  .admin-mobile-menu,
  .admin-mobile-menu-backdrop {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .admin-desktop-menu {
    display: none !important;
  }

  .admin-top-summary-right {
    display: none;
  }
}

.row-actions-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-desktop-nav {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  flex-wrap: wrap;
}

.admin-nav-item {
  position: relative;
}

.admin-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.admin-nav-main {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  background: transparent;
  white-space: nowrap;
}

.admin-nav-main:hover,
.admin-nav-main.active {
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  display: none;
  z-index: 300;
}

.admin-nav-item:hover .admin-submenu {
  display: block;
}

.admin-submenu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.admin-submenu-link:hover {
  background: #f8fafc;
  color: #1d4ed8;
}

@media (min-width: 1024px) {
  .admin-desktop-nav {
    display: flex;
  }

  .admin-desktop-menu {
    display: none !important;
  }
}

.mobile-menu-toggle {
  display: inline-flex;
}

.user-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 260;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.user-mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.user-mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: calc(100vw - 32px);
  height: 100vh;
  background: #fff;
  z-index: 270;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18);
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
}

.user-mobile-menu.open {
  right: 0;
}

.user-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.user-mobile-menu-header strong {
  font-size: 17px;
  font-weight: 900;
  color: #111827;
}

.user-mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font-size: 16px;
}

.user-mobile-menu-body {
  padding: 10px 12px 20px;
  overflow-y: auto;
}

.user-mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.user-mobile-menu-link + .user-mobile-menu-link {
  margin-top: 6px;
}

.user-mobile-menu-link:hover {
  background: #f8fafc;
  color: #1d4ed8;
}

body.user-menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle,
  .user-mobile-menu,
  .user-mobile-menu-backdrop {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .user-desktop-menu {
    display: none !important;
  }
}

.main-banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 20px;
  touch-action: pan-y;
}

.main-banner-track {
  display: flex;
  transition: transform 0.35s ease;
  width: 100%;
}

.main-banner-slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.main-banner-link {
  display: block;
}

.main-banner-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 22px;
}

.main-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: none;
  gap: 8px;
  z-index: 5;
}

.main-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}

.main-banner-dot.active {
  background: #fff;
}

@media (min-width: 1024px) {
  .main-banner-img {
    height: 320px;
  }

  .main-banner-dots {
    display: flex;
  }
}

.category-grid-rich {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.category-card-rich {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.category-card-thumb {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  overflow: hidden;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.category-card-body {
  padding: 18px 16px 20px;
}

.category-card-body strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #111827;
}

.category-card-desc {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 14px;
  min-height: 44px;
}

.category-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .category-grid-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card-thumb {
    height: 200px;
  }
}

@media (min-width: 1024px) {
  .category-grid-rich {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-card-thumb {
    height: 210px;
  }
}

.inline-field-group input {
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 46px;
  outline: none;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 767px) {
  .inline-field-group input {
    height: 46px;
    min-height: 46px;
    line-height: 46px;
  }
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.brand-img {
  display: block;
  height: 30px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-img {
    height: 36px;
  }
}

@media (min-width: 1024px) {
  .brand-img {
    height: 42px;
  }
}

.study-table-wrap {
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.study-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.study-table tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
  color: #111827;
  vertical-align: middle;
  word-break: break-word;
}

.study-table tbody tr:last-child td {
  border-bottom: 0;
}

.study-course-title {
  font-weight: 800;
  color: #0f172a;
}

.study-progress-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.study-progress-bar {
  flex: 1;
  min-width: 90px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.study-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 999px;
}

.study-progress-box strong {
  font-size: 13px;
  color: #1e40af;
  min-width: 40px;
  text-align: right;
}

@media (max-width: 900px) {
  .study-table,
  .study-table thead,
  .study-table tbody,
  .study-table th,
  .study-table td,
  .study-table tr {
    display: block;
  }

  .study-table thead {
    display: none;
  }

  .study-table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .study-table tbody tr {
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 18px;
    padding: 8px 0;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  }

  .study-table tbody td {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 14px;
  }

  .study-table tbody td:last-child {
    border-bottom: 0;
  }

  .study-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
  }
}
.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-left-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.user-inline-menu {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.user-inline-menu .top-menu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 0 0 auto;
  min-width: 96px;
  white-space: nowrap;
  padding: 0 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #111827;
  text-align: center;
  line-height: 1;
  background: transparent;
}

.user-inline-menu .top-menu-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 2px;
  background: #1d4ed8;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-inline-menu .top-menu-link:hover {
  color: #1d4ed8;
  background: transparent;
}

.user-inline-menu .top-menu-link:hover::after,
.user-inline-menu .top-menu-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.user-inline-menu .top-menu-link.active {
  color: #1d4ed8;
}

.top-icons {
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .user-inline-menu {
    display: none !important;
  }
}

.paging-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.paging-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe2ea;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.paging-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.paging-btn:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.row-actions-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.naver-login-page {
  width: 100%;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 10px;
}

.naver-login-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.naver-login-top {
  text-align: center;
  margin-bottom: 22px;
}

.naver-login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.naver-login-logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.naver-login-logo-text {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #03c75a;
}

.naver-login-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #111827;
}

.naver-login-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  word-break: keep-all;
}

.naver-login-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.naver-login-field {
  margin-bottom: 14px;
}

.naver-login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.naver-login-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.naver-login-field input:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10);
}

.naver-login-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 16px;
}

.naver-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
}

.naver-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.naver-login-btn {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: #1d4ed8;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.naver-login-btn:hover {
  background: #006cff;
}

.naver-login-links {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
}

.naver-login-links a {
  color: #64748b;
  font-weight: 600;
}

.naver-login-links a.point {
  color: #111827;
  font-weight: 800;
}

.naver-login-links .dot {
  display: inline-block;
  margin: 0 6px;
  color: #cbd5e1;
}

@media (max-width: 767px) {
  .naver-login-page {
    min-height: auto;
    padding: 12px 0 0;
  }

  .naver-login-wrap {
    max-width: 100%;
  }

  .naver-login-top {
    margin-bottom: 18px;
  }

  .naver-login-title {
    font-size: 24px;
  }

  .naver-login-card {
    border-radius: 18px;
    padding: 20px 16px;
    box-shadow: none;
  }

  .naver-login-links {
    font-size: 13px;
  }
}



.admin-login-body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.admin-login-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.admin-login-top {
  text-align: center;
  margin-bottom: 22px;
}

.admin-login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.admin-login-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #111827;
}

.admin-login-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  word-break: keep-all;
}

.admin-login-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 26px 22px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.admin-login-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.admin-login-card-head strong {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.3px;
}

.admin-login-card-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.admin-login-field {
  margin-bottom: 14px;
}

.admin-login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.admin-login-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-field input:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10);
}

.admin-login-btn {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-login-btn:hover {
  background: #1f2937;
}

.admin-login-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  text-align: center;
}

.admin-login-link {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

.admin-login-link:hover {
  color: #1d4ed8;
}

@media (max-width: 767px) {
  .admin-login-page {
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .admin-login-wrap {
    max-width: 100%;
  }

  .admin-login-title {
    font-size: 26px;
  }

  .admin-login-card {
    border-radius: 20px;
    padding: 22px 16px 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .admin-login-card-head {
    margin-bottom: 16px;
  }
}

.auth-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-top: 10px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-form-box {
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .auth-page {
    max-width: 560px;
    padding-top: 24px;
  }

  .auth-form-box {
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  }

  .auth-header {
    margin-bottom: 18px;
  }
}

@media (min-width: 1024px) {
  .auth-page {
    max-width: 580px;
    padding-top: 36px;
  }
}

.mypage-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 8px;
}

@media (min-width: 768px) {
  .mypage-wrap {
    padding-top: 20px;
  }
}

@media (min-width: 1024px) {
  .mypage-wrap {
    max-width: 980px;
    padding-top: 28px;
  }
}

.payment-loading-page {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 0 8px;
}

.payment-loading-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.payment-loading-top {
  text-align: center;
  margin-bottom: 22px;
}

.payment-loading-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 5px solid #dbeafe;
  border-top-color: #2563eb;
  animation: paymentSpin 0.9s linear infinite;
}

@keyframes paymentSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.payment-loading-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.payment-loading-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.7px;
  color: #111827;
}

.payment-loading-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  word-break: keep-all;
}

.payment-loading-info {
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}

.payment-loading-step {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.payment-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #64748b;
}

.payment-step-item strong {
  font-size: 14px;
  font-weight: 800;
}

.payment-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.payment-step-item.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.payment-step-item.active .payment-step-dot {
  background: #2563eb;
}

.row-actions-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .payment-loading-page {
    max-width: 100%;
    padding-top: 6px;
  }

  .payment-loading-card {
    border-radius: 20px;
    padding: 22px 16px 18px;
    box-shadow: none;
  }

  .payment-loading-title {
    font-size: 23px;
  }

  .payment-loading-spinner {
    width: 56px;
    height: 56px;
  }
}

.layer-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.layer-popup-box {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.layer-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.layer-popup-header strong {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.layer-popup-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font-size: 16px;
}

.layer-popup-body {
  padding: 18px;
}

.layer-popup-image {
  display: block;
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
}

.layer-popup-content {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  word-break: keep-all;
}

.layer-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid #eef2f7;
}

@media (max-width: 767px) {
  .layer-popup-box {
    max-width: 100%;
    border-radius: 18px;
  }

  .layer-popup-header,
  .layer-popup-body,
  .layer-popup-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .layer-popup-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.popup-close-btn {
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}

.layer-popup-footer .popup-close-btn {
  width: auto !important;
  min-width: 72px;
  max-width: 120px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .layer-popup-footer .popup-close-btn {
    width: auto !important;
    align-self: flex-end;
  }
}

.order-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  flex-wrap: wrap;
}

.order-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.order-status-chip.paid {
  background: #ecfdf3;
  color: #047857;
}

.order-status-chip.unpaid {
  background: #fff7ed;
  color: #c2410c;
}

.order-pay-ok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.order-pay-ok-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.24);
}

.order-pay-ok-btn:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .order-action-bar {
    align-items: stretch;
  }

  .order-pay-ok-btn {
    width: 100%;
    min-width: 0;
  }
}

.naver-login-page{
  min-height: calc(100vh - 140px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 0 40px;
}

.naver-login-wrap{
  width:100%;
  max-width:420px;
  margin:0 auto;
}

.naver-login-top{
  margin-bottom:18px;
  text-align:center;
}

.naver-login-title{
  margin:0 0 10px;
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.6px;
  color:#111827;
}

.naver-login-desc{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#64748b;
}

.naver-login-card,
.social-login-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:22px 18px;
  box-shadow:0 10px 28px rgba(15, 23, 42, 0.06);
}

.social-login-card{
  margin-top:14px;
}

.naver-login-field{
  margin-bottom:14px;
}

.naver-login-field label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:700;
  color:#334155;
}

.naver-login-field input{
  width:100%;
  height:52px;
  border:1px solid #dbe2ea;
  border-radius:14px;
  padding:0 14px;
  font-size:15px;
  outline:none;
  background:#fff;
}

.naver-login-field input:focus{
  border-color:#1d4ed8;
  box-shadow:0 0 0 4px rgba(29,78,216,0.08);
}

.naver-login-util{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  margin:2px 0 16px;
}

.naver-check-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-size:13px;
  color:#475569;
}

.naver-check-label input[type="checkbox"]{
  width:16px;
  height:16px;
}

.naver-login-btn{
  width:100%;
  height:54px;
  border:0;
  border-radius:14px;
  background:#333;
  color:#fff;
  font-size:16px;
  font-weight:800;
  letter-spacing:-0.3px;
  cursor:pointer;
}

.naver-login-links{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
  font-size:13px;
  color:#64748b;
}

.naver-login-links a{
  color:#64748b;
  text-decoration:none;
}

.naver-login-links a.point{
  color:#277ff8;
  font-weight:700;
}

.naver-login-links .dot{
  color:#cbd5e1;
}

.social-login-title{
  margin-bottom:14px;
  font-size:14px;
  font-weight:800;
  color:#111827;
  text-align:center;
}

.social-login-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:52px;
  border-radius:14px;
  font-size:15px;
  font-weight:800;
  text-decoration:none;
  margin-top:10px;
}

.social-login-btn:first-of-type{
  margin-top:0;
}

.kakao-login-btn{
  background:#FEE500;
  color:#191919;
}

.naver-social-btn{
  background:#03C75A;
  color:#fff;
}

.google-login-btn{
  background:#006cff;
  color:#fff;
  border:1px solid #dbe2ea;
}

@media (max-width:480px){
  .naver-login-page{
    padding:16px 0 30px;
  }

  .naver-login-card,
  .social-login-card{
    border-radius:20px;
    padding:18px 16px;
  }

  .naver-login-title{
    font-size:25px;
  }
}