/* ===========================
   기본 리셋 & 변수
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --kakao-yellow: #FEE500;
  --kakao-yellow-dark: #F5D800;
  --kakao-chat-bg: #B2C7D9;
  --primary: #3A8DFF;
  --danger: #FF4B4B;
  --success: #00C851;
  --dark: #1A1A2E;
  --gray: #888;
  --border: #E5E5E5;
  --font: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

html, body {
  font-family: var(--font);
  font-size: 14px;
  color: #222;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font); }

/* ===========================
   상단 헤더
   =========================== */
.top-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 28px; }
.logo-title { font-size: 16px; font-weight: 800; color: var(--dark); }
.logo-sub { font-size: 11px; color: var(--gray); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.user-name { font-size: 13px; color: #555; font-weight: 600; }
.btn-sm {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.btn-admin { background: var(--kakao-yellow); color: #000; }
.btn-out { background: #f0f0f0; color: #555; }

/* ===========================
   메인 레이아웃
   =========================== */
.main-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px 60px; }

/* 히어로 섹션 */
.hero-section {
  text-align: center;
  padding: 40px 0 20px;
}
.hero-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
}

/* ===========================
   휴대폰 목업 섹션
   =========================== */
.phone-section {
  display: flex;
  justify-content: center;
  padding: 20px 0 30px;
}
.phone-wrap {
  position: relative;
  width: min(520px, 95vw);
}

/* 폰 프레임 (CSS로 구현) */
.phone-frame {
  width: min(520px, 95vw);
  height: min(980px, 92vh);
  background: #fff;
  border-radius: 44px;
  border: 12px solid #1a1a1a;
  box-shadow:
    0 0 0 2px #333,
    0 24px 80px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* 노치 */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

/* 카카오톡 채팅방 헤더 */
.kakao-header {
  background: #2B2B2B;
  padding: 32px 20px 12px;
  flex-shrink: 0;
}
.kakao-room-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.kakao-room-sub {
  color: #aaa;
  font-size: 12px;
  text-align: center;
  margin-top: 3px;
}

/* 채팅 영역 */
.kakao-chat {
  flex: 1;
  background: var(--kakao-chat-bg);
  overflow-y: auto;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-behavior: smooth;
}
.kakao-chat::-webkit-scrollbar { width: 3px; }
.kakao-chat::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

/* 카카오톡 하단 */
.kakao-footer {
  background: #2B2B2B;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #aaa;
  flex-shrink: 0;
}
.status-dot.connected { background: #7EE87E; }
.status-dot.error { background: #FF7E7E; }
#statusText { font-size: 10px; color: #aaa; }

/* 로딩 */
.loading-wrap {
  display: flex;
  justify-content: center;
  padding: 30px;
}
.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   날짜 구분선
   =========================== */
.date-divider {
  display: flex;
  align-items: center;
  margin: 10px 0 8px;
  gap: 6px;
}
.date-divider::before, .date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.12);
}
.date-divider-text {
  font-size: 12px;
  color: #444;
  background: rgba(255,255,255,0.65);
  padding: 3px 12px;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 600;
}

/* ===========================
   메시지 말풍선
   =========================== */
.message-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--kakao-yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.message-body { display: flex; flex-direction: column; max-width: 78%; }
.sender-name { font-size: 12px; color: #333; margin-bottom: 4px; font-weight: 700; }
.bubble-wrap { display: flex; align-items: flex-end; gap: 4px; }
.bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.msg-time {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* ===========================
   출근 문의 버튼
   =========================== */
.cta-section {
  text-align: center;
  padding: 10px 0 30px;
}
.btn-kakao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kakao-yellow);
  color: #000;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(254,229,0,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-kakao:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254,229,0,0.6);
}
.btn-kakao img { width: 22px; height: 22px; }
.cta-sub { font-size: 12px; color: var(--gray); margin-top: 8px; }

/* ===========================
   팀TOP 케어 시스템 인포 섹션
   =========================== */
.info-section {
  background: #0A0E1A;
  border-radius: 24px;
  padding: 40px 28px;
  margin-top: 10px;
  color: #fff;
}
.info-header { text-align: center; margin-bottom: 32px; }
.info-badge {
  display: inline-block;
  background: rgba(58,141,255,0.15);
  border: 1px solid rgba(58,141,255,0.4);
  color: #6AB4FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.info-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
}
.info-subtitle {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}
.info-subtitle strong { color: #6AB4FF; }

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
}
.info-card-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-card p {
  font-size: 13px;
  color: #ccc;
  line-height: 1.7;
}
.info-card p strong { color: #6AB4FF; }

.info-cta-box {
  background: linear-gradient(135deg, #1a2a4a, #0d1a35);
  border: 2px solid rgba(58,141,255,0.4);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.info-cta-icons { display: flex; gap: 10px; font-size: 28px; }
.info-cta-text { flex: 1; }
.info-cta-text strong { font-size: 13px; color: #aaa; display: block; margin-bottom: 4px; }
.info-cta-big { font-size: 28px; font-weight: 900; color: #fff; }

.info-footer {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}
.info-footer-logo { font-size: 28px; margin-bottom: 10px; }
.info-footer p { font-size: 14px; color: #aaa; line-height: 1.8; }
.info-footer p strong { color: #fff; font-size: 18px; }
.info-footer-sub { font-size: 11px; color: #555; margin-top: 8px; letter-spacing: 1px; }

/* ===========================
   로그인/회원가입 페이지
   =========================== */
.auth-page {
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-container {
  width: 100%;
  max-width: 380px;
  padding: 20px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { font-size: 52px; display: block; margin-bottom: 10px; }
.auth-title { font-size: 24px; font-weight: 900; color: var(--dark); }
.auth-subtitle {
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
  line-height: 1.6;
}
.auth-subtitle strong { color: var(--dark); }

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}
.tab-group {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 22px;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--dark); border-bottom-color: var(--kakao-yellow); }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  margin-bottom: 5px;
}
.form-group label small { font-weight: 400; color: #aaa; }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
  background: #fafafa;
}
.form-group input:focus { border-color: var(--kakao-yellow); background: #fff; }

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--kakao-yellow);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  margin-top: 4px;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--kakao-yellow-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.form-error { color: var(--danger); font-size: 12px; margin-bottom: 8px; min-height: 16px; }
.form-success { color: var(--success); font-size: 12px; margin-bottom: 8px; }
.auth-note { font-size: 11px; color: #aaa; text-align: center; margin-top: 12px; }

/* ===========================
   관리자 페이지
   =========================== */
.admin-page { background: #F5F5F5; min-height: 100vh; }
.admin-wrapper { max-width: 800px; margin: 0 auto; padding: 0 0 40px; }
.admin-header {
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 { font-size: 18px; }
.admin-header div { display: flex; gap: 8px; }
.btn-secondary {
  padding: 7px 14px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-logout {
  padding: 7px 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
}

.admin-content { padding: 20px; }
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.admin-tab {
  padding: 10px 18px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.admin-tab.active { color: var(--dark); border-bottom-color: var(--kakao-yellow); }
.admin-tab-content h2 { font-size: 16px; margin-bottom: 14px; color: #333; }

.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.user-card-info { display: flex; flex-direction: column; gap: 3px; }
.user-card-name { font-size: 15px; font-weight: 700; }
.user-card-meta { font-size: 12px; color: #888; }
.user-card-actions { display: flex; gap: 8px; }
.btn-approve { padding: 7px 14px; background: var(--success); color: #fff; border-radius: 7px; font-size: 13px; font-weight: 600; }
.btn-reject { padding: 7px 14px; background: var(--danger); color: #fff; border-radius: 7px; font-size: 13px; font-weight: 600; }
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-approved { background: #E8F5E9; color: #2E7D32; }
.status-pending  { background: #FFF8E1; color: #F57F17; }
.status-rejected { background: #FFEBEE; color: #C62828; }
.badge { display: inline-block; background: var(--danger); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }

.apikey-box { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.apikey-row { display: flex; gap: 8px; }
.apikey-row input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: monospace; }
.url-box { background: #F5F5F5; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-family: monospace; font-size: 12px; word-break: break-all; margin-bottom: 8px; color: var(--primary); }
.empty-state { text-align: center; padding: 30px; color: #aaa; font-size: 14px; }

/* ON/OFF 토글 스위치 */
.broadcast-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.broadcast-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.broadcast-label { font-size: 16px; font-weight: 700; color: #333; }
.broadcast-toggle-wrap { display: flex; align-items: center; gap: 12px; }
.broadcast-text { font-size: 15px; font-weight: 700; }
.broadcast-desc { font-size: 13px; color: #666; line-height: 1.8; background: #f9f9f9; padding: 14px; border-radius: 10px; }

.toggle-switch { position: relative; display: inline-block; width: 56px; height: 30px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 30px;
  transition: 0.3s;
}
.toggle-slider:before {
  position: absolute; content: '';
  height: 22px; width: 22px;
  left: 4px; bottom: 4px;
  background: white; border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #00C851; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(26px); }

/* 승인 대기 페이지 */
.pending-page { background: #fff; min-height: 100vh; display: flex; align-items: center; justify-content: center; }

/* ===========================
   반응형
   =========================== */
@media (max-width: 600px) {
  .hero-title { font-size: 20px; }
  .info-section { padding: 28px 18px; }
  .info-title { font-size: 22px; }
  .info-cta-big { font-size: 22px; }
  .bubble { font-size: 13px; }
}

/* ===========================
   접속자 표시 및 실시간 배너
   =========================== */
.live-visitor-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 8px 14px;
  color: #45505E;
  background: #F7F9FC;
  border: 1px solid #E5EAF1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(27, 39, 55, 0.05);
}
.live-visitor-card strong { color: #1769E0; font-size: 16px; line-height: 1; }
.visitor-pulse {
  width: 8px;
  height: 8px;
  background: #17C964;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(23, 201, 100, 0.45);
  animation: visitorPulse 1.8s infinite;
}
@keyframes visitorPulse {
  70% { box-shadow: 0 0 0 7px rgba(23, 201, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 201, 100, 0); }
}

.notice-banner-section { padding: 4px 0 8px; }
.notice-banner {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  border: 1px solid #24487B;
  background: linear-gradient(110deg, #091427 0%, #112E57 50%, #091427 100%);
  box-shadow: 0 12px 26px rgba(15, 48, 92, 0.18);
}
.notice-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9,20,39,0.9), transparent 15%, transparent 85%, rgba(9,20,39,0.9));
  z-index: 1;
}
.notice-banner-track {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  min-width: max-content;
  padding: 14px 0;
  color: #F4F8FF;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  animation: noticeMarquee 28s linear infinite;
}
.notice-banner:hover .notice-banner-track { animation-play-state: paused; }
.notice-divider { color: #70B3FF; font-size: 17px; }
@keyframes noticeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.request-banner-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 18px;
  max-width: 720px;
}
.request-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 13px 15px;
  color: #192033;
  border: 1px solid #F3C400;
  background: linear-gradient(135deg, #FFFAC7 0%, #FEE500 100%);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(254, 229, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.request-banner:hover { transform: translateY(-3px); box-shadow: 0 13px 26px rgba(254, 229, 0, 0.34); }
.request-banner-dark {
  color: #F7FAFF;
  border-color: #293E62;
  background: linear-gradient(135deg, #1B2C48 0%, #0D1728 100%);
  box-shadow: 0 8px 20px rgba(13, 23, 40, 0.18);
}
.request-banner-dark:hover { box-shadow: 0 13px 26px rgba(13, 23, 40, 0.32); }
.request-banner-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  font-size: 20px;
  background: rgba(255,255,255,0.36);
}
.request-banner-dark .request-banner-icon { background: rgba(255,255,255,0.12); }
.request-banner-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 3px; }
.request-banner-copy strong { font-size: 15px; letter-spacing: -0.6px; }
.request-banner-copy small { font-size: 10px; color: rgba(25,32,51,0.65); font-weight: 600; white-space: nowrap; }
.request-banner-dark .request-banner-copy small { color: rgba(247,250,255,0.65); }
.request-banner-action { font-size: 11px; font-weight: 800; white-space: nowrap; }
.request-banner-action b { margin-left: 2px; font-size: 18px; vertical-align: -1px; }

/* ===========================
   관리자 접속자 수 설정
   =========================== */
.visitor-admin-box {
  max-width: 480px;
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.visitor-admin-lead { margin-bottom: 18px; color: #666; font-size: 13px; line-height: 1.65; }
.visitor-admin-lead strong { color: #1769E0; }
.visitor-number-preview {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 17px;
  background: #F3F8FF;
  border: 1px solid #D8E8FF;
  border-radius: 12px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}
.visitor-number-preview strong { color: #1769E0; font-size: 32px; line-height: 1; }
.visitor-number-preview em { color: #1769E0; font-style: normal; }

@media (max-width: 600px) {
  .notice-banner-section { padding-top: 0; }
  .notice-banner-track { font-size: 12px; }
  .request-banner-section { grid-template-columns: 1fr; gap: 9px; margin-bottom: 16px; }
  .request-banner { min-height: 67px; border-radius: 15px; }
  .request-banner-copy strong { font-size: 14px; }
  .admin-tabs { overflow-x: auto; padding-bottom: 1px; }
  .admin-tab { white-space: nowrap; padding: 10px 12px; font-size: 13px; }
}

/* ===========================
   이미지 프로모션 배너
   =========================== */
.promo-banner-stack {
  width: min(720px, 100%);
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.image-promo-banner {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 19px;
  background: #0A1120;
  box-shadow: 0 14px 34px rgba(10, 24, 46, 0.16);
  isolation: isolate;
}
.image-promo-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.image-promo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: inherit;
  pointer-events: none;
}
.image-promo-request { cursor: pointer; }
.image-promo-request:hover img {
  transform: scale(1.018);
  filter: brightness(1.06) saturate(1.07);
}
.banner-light-sweep {
  position: absolute;
  z-index: 2;
  top: -20%;
  bottom: -20%;
  left: -28%;
  width: 13%;
  pointer-events: none;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  animation: bannerLightSweep 5.2s ease-in-out infinite;
}
.image-promo-request .banner-light-sweep { animation-delay: 1.5s; }
@keyframes bannerLightSweep {
  0%, 58% { left: -28%; opacity: 0; }
  62% { opacity: 0.95; }
  84%, 100% { left: 122%; opacity: 0; }
}

@media (max-width: 600px) {
  .promo-banner-stack { width: 100%; gap: 12px; margin-bottom: 20px; }
  .image-promo-banner { border-radius: 14px; }
}

/* 슬림 문의 배너와 하단 케어 시스템 이미지 */
.promo-banner-stack {
  width: min(560px, 100%);
  margin: 0 auto 16px;
}
.image-promo-banner {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(10, 24, 46, 0.12);
}
.image-promo-banner img {
  aspect-ratio: 21 / 6.8;
  object-fit: cover;
  object-position: center;
}
.image-promo-request .banner-light-sweep { animation-duration: 6.6s; }
.bottom-care-section {
  width: min(760px, 100%);
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 18px;
  background: #08111F;
  box-shadow: 0 14px 32px rgba(8, 17, 31, 0.16);
}
.bottom-care-section img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 600px) {
  .promo-banner-stack { width: min(520px, 100%); margin-bottom: 14px; }
  .image-promo-banner { border-radius: 11px; }
  .image-promo-banner img { aspect-ratio: 21 / 7.2; }
  .bottom-care-section { margin-top: 18px; border-radius: 14px; }
}

/* 최종 크기 보정: 문의 배너는 낮고 넓게, 하단 이미지는 본문 폭으로 */
.promo-banner-stack {
  width: min(640px, 100%);
  margin: 2px auto 14px;
}
.promo-banner-stack .image-promo-request {
  height: clamp(112px, 16vw, 148px);
  border-radius: 13px;
}
.promo-banner-stack .image-promo-request img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}
.bottom-care-section {
  width: min(760px, 100%);
  margin: 20px auto 0;
  border-radius: 16px;
}
.bottom-care-section + .bottom-care-section { margin-top: 16px; }
.bottom-care-section img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .promo-banner-stack { width: 100%; }
  .promo-banner-stack .image-promo-request { height: clamp(92px, 26vw, 122px); border-radius: 11px; }
  .bottom-care-section { width: 100%; border-radius: 12px; }
}

/* 퍼스트팀 문의 홍보 배너 */
.first-team-banner-wrap {
  width: min(760px, 100%);
  margin: 18px auto 0;
}
.first-team-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 25px 22px 22px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(255, 220, 118, 0.55);
  border-radius: 18px;
  background: radial-gradient(circle at 50% -40%, rgba(255, 215, 86, 0.34), transparent 55%), linear-gradient(135deg, #10192d 0%, #17294d 48%, #07101f 100%);
  box-shadow: 0 14px 30px rgba(8, 17, 31, 0.24), inset 0 1px rgba(255,255,255,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.first-team-banner:hover, .first-team-banner:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(8, 17, 31, 0.3), 0 0 0 3px rgba(255, 215, 86, 0.2);
}
.first-team-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 15%, rgba(255,255,255,.1) 48%, transparent 62%);
  transform: translateX(-100%);
  animation: firstTeamShine 6s ease-in-out infinite;
}
.first-team-badge, .first-team-banner strong, .first-team-line, .first-team-contact, .first-team-cta { position: relative; z-index: 1; }
.first-team-badge { color: #ffdf70; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.first-team-banner strong { color: #fff3b0; font-size: clamp(23px, 4vw, 34px); line-height: 1.2; text-shadow: 0 2px 12px rgba(255, 201, 61, .35); }
.first-team-line { font-size: clamp(14px, 2.4vw, 18px); font-weight: 700; }
.first-team-contact { color: #dbe8ff; font-size: clamp(13px, 2vw, 16px); }
.first-team-contact i { padding: 0 6px; color: #ffda63; font-style: normal; }
.first-team-cta { margin-top: 3px; padding: 8px 15px; color: #162038; font-size: 12px; font-weight: 800; border-radius: 999px; background: linear-gradient(135deg, #ffe37a, #ffb938); }
@keyframes firstTeamShine { 0%, 62% { transform: translateX(-100%); } 82%, 100% { transform: translateX(100%); } }
@media (max-width: 600px) {
  .first-team-banner-wrap { margin-top: 14px; }
  .first-team-banner { padding: 21px 15px 18px; border-radius: 14px; }
}

/* 퍼스트팀 배너 행 고정 보정 */
.first-team-banner > div { display: block; width: 100%; }
.first-team-title { position: relative; z-index: 1; color: #fff3b0; font-size: clamp(23px, 4vw, 34px); font-weight: 900; line-height: 1.25; text-shadow: 0 2px 12px rgba(255, 201, 61, .35); }
.first-team-line { position: relative; z-index: 1; color: #ffffff; font-size: clamp(14px, 2.4vw, 18px); font-weight: 700; line-height: 1.45; }
.first-team-contact { position: relative; z-index: 1; display: flex !important; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 8px; color: #dbe8ff; font-size: clamp(13px, 2vw, 16px); line-height: 1.4; }
.first-team-cta { align-self: center; width: auto !important; }
@media (max-width: 600px) { .first-team-contact { flex-direction: column; gap: 2px; } .first-team-contact i { display: none; } }

/* 퍼스트팀 장점 안내: 링크 없이 이미지로만 표시 */
.first-team-image-wrap { width: min(100%, 980px); margin: 18px auto 28px; padding: 0 12px; box-sizing: border-box; }
.first-team-image { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 12px 30px rgba(4, 14, 36, .18); }
@media (max-width: 600px) { .first-team-image-wrap { margin: 12px auto 20px; padding: 0 8px; } .first-team-image { border-radius: 14px; } }

/* 퍼스트팀 이미지 배너 하단 연락처 안내 */
.first-team-image-link { display: block; text-decoration: none; cursor: pointer; }
.first-team-contact-strip { margin: 10px auto 0; width: min(100%, 520px); box-sizing: border-box; padding: 10px 16px; border-radius: 999px; background: linear-gradient(135deg, #ffe0ed, #fff2f7); border: 1px solid #f08bb4; color: #9c1c58; text-align: center; font-size: clamp(16px, 3.8vw, 22px); line-height: 1.35; box-shadow: 0 5px 14px rgba(185, 54, 105, .12); }
.first-team-contact-strip strong { color: #e42574; letter-spacing: .04em; }
.first-team-contact-hint { margin: 7px auto 20px; color: #8a4964; text-align: center; font-size: clamp(12px, 3vw, 16px); line-height: 1.4; font-weight: 600; }
@media (max-width: 600px) { .first-team-image-wrap { padding: 0 7px; } .first-team-contact-strip { margin-top: 8px; padding: 9px 12px; } .first-team-contact-hint { margin-bottom: 15px; } }

.first-team-contact-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.first-team-contact-strip .contact-divider { color: #d67b9e; }
@media (max-width: 600px) { .first-team-contact-strip { gap: 2px 8px; font-size: clamp(14px, 3.6vw, 18px); } .first-team-contact-strip .contact-divider { display: none; } }

/* 2026-09-02 모바일 가독성 보정 */
.message-body {
  flex: 1;
  min-width: 0;
  max-width: none;
}
.bubble-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 5px;
}
.bubble {
  min-width: 0;
  width: 100%;
  font-size: clamp(15px, 3.8vw, 19px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.kakao-chat {
  padding-left: clamp(10px, 3vw, 18px);
  padding-right: clamp(10px, 3vw, 18px);
}
.first-team-image-wrap {
  width: min(100%, 1100px);
  padding: 0 4px;
}
.first-team-image-link {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.first-team-image {
  width: 100%;
  min-width: 0;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}
.image-zoom-hint {
  display: block;
  margin-top: 7px;
  color: #8a4964;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 16, 28, .84);
}
.image-zoom-modal.on { display: flex; }
.image-zoom-modal img {
  display: block;
  width: min(1100px, 100%);
  max-height: 92dvh;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.image-zoom-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #222;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}
@media (max-width: 600px) {
  .message-row { gap: 7px; margin-bottom: 8px; }
  .avatar { width: 36px; height: 36px; font-size: 16px; }
  .sender-name { font-size: 13px; }
  .bubble { padding: 10px 13px; font-size: 16px; line-height: 1.62; }
  .msg-time { font-size: 10px; }
  .first-team-image-wrap { width: 100%; padding: 0; }
  .first-team-image { width: 100%; border-radius: 12px; }
}

.image-zoom-button {
  display: block;
  margin: 10px auto 0;
  padding: 9px 16px;
  border: 1px solid #ed8ab4;
  border-radius: 999px;
  background: #fff3f8;
  color: #b21f63;
  font-size: 13px;
  font-weight: 800;
}
.image-zoom-button:active { transform: scale(.98); opacity: .82; }

/* 2026-09-02 2차 보정: 컴팩트 폰 목업 + 본문 전체폭 */
.phone-wrap,
.phone-frame {
  width: min(410px, 90vw);
}
.phone-frame {
  height: min(760px, 84vh);
  border-width: 8px;
  border-radius: 34px;
}
.message-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  width: 100%;
  align-items: start;
  gap: 7px;
}
.message-body {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.bubble-wrap {
  display: block;
  width: 100%;
  min-width: 0;
}
.bubble {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.msg-time {
  display: block;
  width: 100%;
  margin-top: 2px;
  text-align: right;
  font-size: 10px;
}
@media (max-width: 600px) {
  .phone-section { padding-top: 10px; padding-bottom: 18px; }
  .phone-wrap,
  .phone-frame { width: min(365px, 90vw); }
  .phone-frame {
    height: min(680px, 78vh);
    border-width: 7px;
    border-radius: 30px;
  }
  .kakao-header { padding: 27px 12px 9px; }
  .kakao-room-name { font-size: 14px; }
  .kakao-room-sub { font-size: 10px; }
  .kakao-chat { padding: 7px 8px 5px; }
  .message-row { grid-template-columns: 32px minmax(0, 1fr); gap: 6px; margin-bottom: 5px; }
  .avatar { width: 32px; height: 32px; font-size: 14px; }
  .sender-name { font-size: 11px; margin-bottom: 2px; }
  .bubble { padding: 7px 9px; font-size: 13px; line-height: 1.42; }
  .msg-time { font-size: 9px; }
  .kakao-footer { padding: 5px 9px; }
  #statusText { font-size: 9px; }
}

/* 2026-09-02 초기 스크롤 이동 장면 숨김 */
.kakao-chat.is-positioning #messageList {
  visibility: hidden;
}

/* 2026-09-02 초기 위치는 항상 즉시 고정 */
.kakao-chat {
  scroll-behavior: auto !important;
  overflow-anchor: none;
}
.kakao-chat.is-positioning #messageList {
  visibility: hidden !important;
}
