/* ===== Variables ===== */
:root {
  --primary:      #0d0d0d;
  --accent:       #8c1a2b;
  --accent-hover: #6e1522;
  --bg:           #f4f2ed;
  --card:         #ffffff;
  --text:         #111111;
  --text2:        #7b7770;
  --border:       #dedad3;
  --nav-h:        56px;
  --header-h:     52px;
  --radius:       2px;
  --shadow:       0 1px 8px rgba(0,0,0,0.05);
  --shadow-lg:    0 4px 24px rgba(0,0,0,0.09);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Poppins', -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--primary);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.header-inner {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }

/* ===== Header User Area ===== */
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-user-name {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-login-btn {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 5px 12px;
  background: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-login-btn:active { border-color: var(--accent); color: var(--accent); }
.header-logout-btn {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  background: none;
  padding: 4px 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s;
}
.header-logout-btn:active { color: var(--accent); }

/* ===== Page Wrap ===== */
.page-wrap {
  padding-top: var(--header-h);
  padding-bottom: var(--nav-h);
  min-height: 100vh;
}
.page { display: none; }
.page.active { display: block; }

/* ===== Page Top ===== */
.page-top {
  padding: 22px 20px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--primary);
  min-height: calc(100vh - var(--header-h) - var(--nav-h));
  display: flex;
  align-items: flex-end;
  padding: 0 28px 64px;
  overflow: hidden;
}
.hero-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.hero-line-top { top: 40px; }
.hero-line-bottom { bottom: 40px; }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-kicker {
  font-size: 0.55rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 22px;
  font-weight: 400;
}
.hero-title {
  font-size: clamp(4.2rem, 22vw, 6.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 0.86;
  margin-bottom: 22px;
  letter-spacing: -3px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  margin-bottom: 52px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 280px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
  transition: color 0.2s;
}
.btn-hero::after {
  content: '→';
  font-size: 0.9rem;
  letter-spacing: 0;
  transition: transform 0.22s;
}
.btn-hero:active { color: rgba(255,255,255,0.85); }
.btn-hero:active::after { transform: translateX(4px); }

/* ===== About Section ===== */
.about-section {
  background: #fff;
  padding: 52px 28px 52px;
  border-bottom: 1px solid var(--border);
}
.about-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
}
.about-year {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1;
}
.about-label {
  font-size: 0.56rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.about-heading {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 16px;
}
.about-text {
  font-size: 0.86rem;
  line-height: 2;
  color: #555;
  font-weight: 400;
  max-width: 380px;
}
.about-divider {
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin-top: 28px;
}

/* ===== Home Quick Actions ===== */
.home-actions {
  background: var(--bg);
  padding: 0 28px 8px;
}
.home-action-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: none;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.home-action-link:first-child { border-top: 1px solid var(--border); }
.home-action-link:active { opacity: 0.5; }
.hal-num {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  flex-shrink: 0;
  width: 18px;
}
.hal-body { flex: 1; text-align: left; }
.hal-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 2px;
}
.hal-sub { font-size: 0.72rem; color: var(--text2); }
.hal-arrow {
  font-size: 0.9rem;
  color: var(--text2);
  flex-shrink: 0;
}

/* ===== Day Filter ===== */
.day-filter-wrap {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.day-filter-wrap::-webkit-scrollbar { display: none; }
.day-filter {
  display: flex;
  padding: 11px 20px;
  gap: 8px;
  width: max-content;
}
.day-btn {
  padding: 5px 13px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text2);
  background: transparent;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.day-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ===== Course List (editorial line items) ===== */
.courses-list {
  padding: 0;
  background: var(--card);
}
.course-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.course-row:hover { background: var(--bg); }
.course-row:last-child { border-bottom: none; }

.cr-date {
  flex-shrink: 0;
  width: 44px;
  margin-right: 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 16px;
}
.cr-dn {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.cr-month {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text2);
  margin-top: 3px;
}
.cr-wday {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-top: 2px;
  font-weight: 700;
}
.cr-body {
  flex: 1;
  min-width: 0;
}
.cr-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-meta {
  font-size: 0.7rem;
  color: var(--text2);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-end {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: 10px;
}
.cr-book-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cr-spots {
  font-size: 0.65rem;
  color: var(--text2);
  white-space: nowrap;
}
.cr-spots.cr-full { color: var(--accent); }
.cr-btn {
  background: var(--text);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
  transition: background 0.15s;
  text-transform: uppercase;
}
.cr-btn:active { background: var(--accent); }
.cr-btn:disabled {
  background: var(--border);
  color: var(--text2);
  cursor: default;
}

/* ===== Level Badges ===== */
.level-badge {
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.level-beginner      { background: #eef6ee; color: #2d6a30; }
.level-intermediate  { background: #fdf4e8; color: #874800; }
.level-advanced      { background: #fbeaea; color: #7d1b1b; }
.level-all           { background: #eaf0fb; color: #1a4080; }
.level-kids          { background: #f4eefb; color: #581a7d; }

/* Meta tag (detail modal) */
.meta-tag {
  font-size: 0.7rem;
  color: var(--text2);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: var(--radius);
}

/* ===== Booking Cards (Mine page) ===== */
.booking-card {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}
.booking-card:first-child { border-top: 1px solid var(--border); }
.booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}
.booking-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.booking-day {
  font-size: 0.72rem;
  color: var(--text2);
  margin-top: 3px;
}
.status-badge {
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.status-confirmed { background: #eef6ee; color: #2d6a30; }
.status-cancelled { background: #fbeaea; color: #7d1b1b; }
.status-pending   { background: #fdf4e8; color: #874800; }
.booking-meta {
  font-size: 0.74rem;
  color: var(--text2);
  margin-bottom: 13px;
  line-height: 1.9;
}
.btn-cancel {
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.15s;
}
.btn-cancel:active { border-color: var(--accent); color: var(--accent); }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text2);
}
.empty-icon { font-size: 1.8rem; margin-bottom: 14px; opacity: 0.3; }
.empty-text { font-size: 0.88rem; margin-bottom: 5px; color: var(--text2); font-weight: 500; }
.empty-hint { font-size: 0.76rem; color: #aaa8a3; margin-bottom: 20px; }

/* ===== Buttons ===== */
.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.15s;
}
.btn-outline:active { border-color: var(--text); color: var(--text); }

.btn-primary {
  display: block;
  background: var(--text);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
  transition: background 0.18s;
}
.btn-primary:active { background: var(--accent); }
.btn-primary:disabled { background: #ccc; cursor: default; }
.full-width { width: 100%; }

.btn-add {
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--text);
  color: #fff;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-add:active { background: var(--accent); }

.btn-logout {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text2);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  margin-top: 10px;
  transition: all 0.15s;
}
.btn-logout:active { border-color: var(--accent); color: var(--accent); }

.error-msg {
  color: var(--accent);
  font-size: 0.76rem;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

/* ===== Admin ===== */
#admin-content { padding: 0; }

.admin-login-prompt {
  padding: 52px 28px;
  text-align: center;
  margin: 20px;
  border: 1px solid var(--border);
  background: var(--card);
}
.admin-login-prompt .al-icon { font-size: 2rem; margin-bottom: 14px; opacity: 0.3; }
.admin-login-prompt h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.1px;
  margin-bottom: 8px;
}
.admin-login-prompt p {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Admin / Mine Tabs */
.admin-tabs,
.mine-tabs {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.admin-tabs::-webkit-scrollbar,
.mine-tabs::-webkit-scrollbar { display: none; }

.admin-tab,
.mine-tab {
  padding: 13px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}
.admin-tab.active,
.mine-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Admin / Mine Body */
.admin-body { padding: 16px 16px 8px; }
.mine-body  { padding: 0; }
.mine-form-pad { padding: 20px 20px 14px; }

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.admin-card-title {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text2);
}
.admin-stats { display: flex; gap: 0; }
.admin-stat {
  flex: 1;
  padding: 18px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.admin-stat:last-child { border-right: none; }
.admin-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1;
}
.admin-stat-lbl {
  font-size: 0.6rem;
  color: var(--text2);
  margin-top: 5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.admin-booking-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.admin-booking-item:last-child { border-bottom: none; }
.admin-booking-info { flex: 1; min-width: 0; }
.admin-booking-name {
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.admin-booking-detail {
  font-size: 0.7rem;
  color: var(--text2);
  margin-top: 3px;
  line-height: 1.5;
}
.admin-item-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.admin-toggle {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  color: var(--text2);
  white-space: nowrap;
  transition: all 0.15s;
}
.admin-toggle:active { opacity: 0.6; }
.admin-toggle-danger {
  color: var(--accent);
  border-color: rgba(140,26,43,0.22);
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text2);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--text); }
.nav-icon { width: 19px; height: 19px; }

/* ===== Modals ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--card);
  border-radius: 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
  position: relative;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 2px solid var(--accent);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 28px; height: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text2);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s;
}
.modal-close:active { background: var(--border); }

/* ===== Modal Body ===== */
.modal-body { padding: 28px 20px 24px; }
.modal-icon {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 10px;
  opacity: 0.35;
}
.modal-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

/* Detail modal */
.detail-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 20px 20px 0;
}
.detail-dur {
  font-size: 0.65rem;
  color: var(--text2);
  letter-spacing: 0.5px;
}
.detail-header {
  padding: 10px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: var(--text);
  line-height: 1.2;
}
.detail-teacher {
  font-size: 0.8rem;
  color: var(--text2);
}
.detail-meta {
  padding: 0 20px;
  margin-bottom: 0;
}
.detail-meta-row {
  display: flex;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.detail-meta-row:last-child { border-bottom: none; }
.detail-meta-label {
  font-size: 0.65rem;
  color: var(--text2);
  width: 52px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.detail-meta-val {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
}
.detail-desc {
  padding: 18px 20px 4px;
  border-top: 1px solid var(--border);
}
.detail-desc h4 {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 8px;
}
.detail-desc p {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 14px;
}
.detail-footer { padding: 14px 20px 24px; }

/* ===== Video ===== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 0;
  background: #000;
}
.video-container iframe,
.video-container video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  background: #0a0a0a;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.vp-icon { font-size: 1.1rem; opacity: 0.15; }
.vp-text { font-size: 0.68rem; color: rgba(255,255,255,0.2); letter-spacing: 1.5px; text-transform: uppercase; }

/* ===== Form ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--text); background: #fff; }
select.form-input { appearance: none; -webkit-appearance: none; }
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.7; }

/* ===== Success State ===== */
.success-state { text-align: center; padding: 36px 24px 28px; }
.success-icon { font-size: 2.2rem; margin-bottom: 12px; }
.success-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.1px;
  margin-bottom: 8px;
}
.success-sub {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.9;
}
.success-card-note {
  font-size: 0.74rem;
  color: #2d6a30;
  background: #eef6ee;
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 22px;
  display: inline-block;
  letter-spacing: 0.2px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 300;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Booking Session Info ===== */
.booking-session-info {
  background: var(--bg);
  padding: 11px 14px;
  margin-bottom: 14px;
  border-left: 2px solid var(--accent);
}
.bsi-date {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 3px;
}
.bsi-detail { font-size: 0.76rem; color: var(--text2); }

/* ===== Booking Modal Status ===== */
.booking-user-info {
  background: var(--bg);
  padding: 9px 13px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.5;
  border-left: 2px solid var(--border);
}
.booking-user-info strong { color: var(--text); }
.bk-card-ok {
  background: #eef6ee;
  padding: 9px 13px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: #2d6a30;
  line-height: 1.5;
  border-left: 2px solid #5a9e5d;
}
.bk-warn {
  background: #fdf4e8;
  padding: 9px 13px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: #874800;
  line-height: 1.5;
  border-left: 2px solid #e89a30;
}

/* ===== Mine Page ===== */
.mine-card-item {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mine-card-icon { font-size: 1.2rem; line-height: 1; flex-shrink: 0; opacity: 0.35; }
.mine-card-info { flex: 1; min-width: 0; }
.mine-card-type {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text);
  margin-bottom: 3px;
}
.mine-card-detail { font-size: 0.73rem; color: var(--text2); }

/* Account */
.account-card {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 20px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.account-info { flex: 1; min-width: 0; }
.account-name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.1px;
  color: var(--text);
  margin-bottom: 3px;
}
.account-phone { font-size: 0.76rem; color: var(--text2); }

/* ===== Admin User Lookup ===== */
.user-found {
  font-size: 0.73rem;
  color: #2d6a30;
  margin-top: 5px;
  font-weight: 500;
  display: block;
}
.user-not-found {
  font-size: 0.73rem;
  color: var(--accent);
  margin-top: 5px;
  font-weight: 400;
  display: block;
}

/* ===== Login Hint ===== */
.login-hint {
  font-size: 0.74rem;
  color: var(--text2);
  text-align: center;
  margin-top: -12px;
  margin-bottom: 18px;
  line-height: 1.7;
}

/* ===== Mine Login Prompt ===== */
.mine-login-prompt {
  padding: 56px 28px;
  text-align: center;
  margin: 20px;
  border: 1px solid var(--border);
  background: var(--card);
}
.mine-login-prompt .ml-icon { font-size: 2rem; margin-bottom: 14px; opacity: 0.25; }
.mine-login-prompt h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}
.mine-login-prompt p {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ===== Course Date Badge ===== */
.course-date-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ===== Day Checkboxes (admin form) ===== */
.day-check-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.day-check-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.day-check-label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(140,26,43,0.04);
  color: var(--accent);
}
.day-check-label input { width: 13px; height: 13px; accent-color: var(--accent); }

/* ===== Video Upload (admin form) ===== */
.video-upload-hint {
  font-size: 0.7rem;
  color: #aaa8a3;
  line-height: 1.6;
  margin-bottom: 8px;
}
.video-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text2);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 8px;
}
.video-file-info strong { color: var(--text); }
.video-clear-btn {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(140,26,43,0.3);
  border-radius: var(--radius);
  padding: 2px 8px;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}
.video-file-label { display: block; cursor: pointer; }
.video-file-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text2);
  background: var(--bg);
  letter-spacing: 0.3px;
  transition: border-color 0.15s, color 0.15s;
}
.video-file-label:hover .video-file-btn {
  border-color: var(--text);
  color: var(--text);
}

/* ===== Responsive (Tablet / Desktop) ===== */
@media (min-width: 480px) {
  .page-wrap  { max-width: 480px; margin: 0 auto; }
  .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .header     { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .modal-backdrop { align-items: center; }
  .modal {
    max-height: 88vh;
    max-width: 440px;
    margin: 0 auto;
    border-top: 2px solid var(--accent);
  }
  .toast { bottom: calc(var(--nav-h) + 24px); }
  .hero { min-height: 520px; }
}
