/* ═══════════════════════════════════════════
   하나인커넥트 – 메인 스타일시트
   ═══════════════════════════════════════════ */

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

:root {
  --primary: #1a56db;
  --primary-dark: #1341a8;
  --primary-light: #e8effd;
  --accent: #ff6b35;
  --accent-dark: #e55a28;
  --gold: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: #f0f2f5;
  color: var(--gray-800);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── 앱 셸 ── */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.15);
}

/* ── 화면 시스템 ── */
.screen { display: none; flex-direction: column; min-height: 100vh; }
.screen.active { display: flex; }

/* ── 스크롤 영역 ── */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
  -webkit-overflow-scrolling: touch;
}
.scroll-content::-webkit-scrollbar { display: none; }

/* ══ 스플래시 / 로그인 ══════════════════════════ */
#screen-splash {
  background: linear-gradient(160deg, #0a2463 0%, #1a56db 50%, #3b82f6 100%);
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.splash-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.splash-bg-circle.c1 { width: 400px; height: 400px; top: -120px; right: -150px; }
.splash-bg-circle.c2 { width: 280px; height: 280px; bottom: -80px; left: -100px; }

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 32px;
  width: 100%;
}

.splash-logo-icon {
  width: 88px; height: 88px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.splash-logo-icon i { font-size: 40px; color: #fff; }

.splash-brand { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.splash-brand span { color: #93c5fd; }
.splash-tagline { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 6px; }

.splash-divider {
  width: 48px; height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  margin: 22px auto;
}

.splash-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
}

.btn-kakao {
  width: 100%; padding: 17px 24px;
  background: #FEE500; color: #3C1E1E;
  border: none; border-radius: var(--radius);
  font-size: 17px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(254,229,0,0.4);
  font-family: var(--font);
}
.btn-kakao:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(254,229,0,0.5); }
.btn-kakao:active { transform: translateY(0); }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.2);
}
.login-divider span { color: rgba(255,255,255,0.5); font-size: 13px; white-space: nowrap; }

.btn-naver {
  width: 100%; padding: 15px 24px;
  background: #03C75A; color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 10px; transition: all 0.2s;
  font-family: var(--font);
}
.btn-naver:hover { background: #02b350; transform: translateY(-2px); }

.btn-email-login {
  width: 100%; padding: 14px 24px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.25); border-radius: var(--radius);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
}
.btn-email-login:hover { background: rgba(255,255,255,0.18); }

.splash-footer {
  margin-top: 28px;
  font-size: 11px; color: rgba(255,255,255,0.4);
  line-height: 1.8;
}

/* ══ 모달 ══════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 1000;
  align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-sheet {
  background: #fff; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 430px;
  padding: 28px 24px 40px;
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-handle {
  width: 44px; height: 4px;
  background: var(--gray-200); border-radius: 2px;
  margin: 0 auto 20px;
}
.modal-title { font-size: 22px; font-weight: 900; color: var(--gray-900); margin-bottom: 6px; }
.modal-subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 22px; line-height: 1.6; }

.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 5px; }
.form-input {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--gray-800);
  font-family: var(--font); outline: none;
  transition: border-color 0.2s; background: #fff;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-input::placeholder { color: var(--gray-400); }

.btn-primary {
  width: 100%; padding: 17px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 17px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
  box-shadow: 0 4px 16px rgba(26,86,219,0.35);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-skip {
  width: 100%; padding: 12px; border: none;
  background: transparent; color: var(--gray-400);
  font-size: 14px; cursor: pointer; margin-top: 8px;
  font-family: var(--font);
}

/* ══ 탑 헤더 ══════════════════════════════════ */
.top-header {
  background: #fff; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-brand { display: flex; align-items: center; gap: 10px; }
.header-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.header-logo i { font-size: 18px; color: #fff; }
.header-title { font-size: 19px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.3px; }
.header-title span { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 16px; transition: all 0.2s;
}
.header-btn:hover { background: var(--primary-light); color: var(--primary); }
.notif-badge { position: relative; }
.notif-badge::after {
  content: '3'; position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ══ 바텀 네비 ════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #fff; border-top: 1px solid var(--gray-100);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0; cursor: pointer; transition: all 0.2s;
  background: none; border: none; font-family: var(--font);
}
.nav-item i { font-size: 20px; color: var(--gray-400); transition: all 0.2s; }
.nav-item span { font-size: 10px; color: var(--gray-400); font-weight: 500; transition: all 0.2s; }
.nav-item.active i { color: var(--primary); transform: translateY(-1px); }
.nav-item.active span { color: var(--primary); font-weight: 700; }

.nav-fab { position: relative; }
.nav-fab-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,107,53,0.45);
  transform: translateY(-16px);
  transition: all 0.2s;
}
.nav-fab-btn i { font-size: 22px; color: #fff; }
.nav-fab-btn:hover { transform: translateY(-20px) scale(1.08); }

/* ══ 홈 대시보드 ══════════════════════════════ */
.home-hero {
  background: linear-gradient(135deg, #0a2463 0%, #1a56db 60%, #3b82f6 100%);
  padding: 24px 20px 32px;
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -100px; right: -80px;
}
.home-hero::after {
  content: ''; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -60px; left: -40px;
}

.hero-greeting { position: relative; z-index: 1; }
.hero-greeting-text { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.hero-username { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.hero-username span { color: #93c5fd; }
.tier-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 8px;
}
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.hero-stat-card {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm); padding: 14px;
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.hero-stat-value { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stat-value span { font-size: 13px; font-weight: 400; }

/* ══ 메인 액션 버튼 ══════════════════════════ */
.main-actions { padding: 0 20px 8px; margin-top: -20px; position: relative; z-index: 2; }

.action-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: var(--radius);
  padding: 18px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: all 0.25s; border: 2px solid transparent;
}
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.action-card.featured { border-color: var(--primary); background: linear-gradient(135deg, #fff, var(--primary-light)); }

.action-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.action-icon.blue { background: linear-gradient(135deg, var(--primary), #3b82f6); }
.action-icon.orange { background: linear-gradient(135deg, var(--accent), #f97316); }
.action-icon.green { background: linear-gradient(135deg, var(--success), #059669); }
.action-icon i { font-size: 24px; color: #fff; }

.action-text { flex: 1; }
.action-title { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-bottom: 3px; }
.action-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.action-arrow { color: var(--gray-300); font-size: 14px; }
.action-badge {
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px;
}

/* ══ 세미나 카드 ══════════════════════════════ */
.seminar-card {
  background: linear-gradient(135deg, #0a2463, #1a56db);
  border-radius: var(--radius); padding: 18px;
  color: #fff; margin-bottom: 12px; cursor: pointer;
  transition: transform 0.2s; position: relative; overflow: hidden;
}
.seminar-card::before {
  content: ''; position: absolute;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  right: -40px; top: -40px;
}
.seminar-card:hover { transform: translateY(-2px); }
.seminar-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
  position: relative;
}
.seminar-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; position: relative; }
.seminar-meta {
  display: flex; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.75);
  position: relative;
}
.seminar-meta i { margin-right: 4px; }
.seminar-seats {
  background: rgba(255,255,255,0.15); border-radius: 8px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
}

/* ══ 우수사례 ══════════════════════════════════ */
.best-case-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px;
}
.best-case-header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
}
.best-case-header i, .best-case-header span { color: #fff; }
.best-case-header span { font-size: 14px; font-weight: 700; }
.best-case-body { padding: 16px; }
.best-case-quote {
  font-size: 14px; line-height: 1.7; color: var(--gray-700);
  border-left: 3px solid var(--gold); padding-left: 12px; margin-bottom: 12px;
}
.best-case-meta { display: flex; align-items: center; justify-content: space-between; }
.best-case-user { display: flex; align-items: center; gap: 8px; }
.best-case-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.best-case-name { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.best-case-role { font-size: 11px; color: var(--gray-400); }
.best-case-stat-val { font-size: 20px; font-weight: 800; color: var(--primary); text-align: right; }
.best-case-stat-label { font-size: 11px; color: var(--gray-400); text-align: right; }

/* ══ 섹션 ══════════════════════════════════════ */
.section { padding: 18px 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 17px; font-weight: 800; color: var(--gray-900); }
.section-more { font-size: 13px; color: var(--primary); font-weight: 600; cursor: pointer; }

.divider { height: 8px; background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }

.compliance-note {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac; border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 0 20px 12px;
  display: flex; gap: 10px; align-items: flex-start;
}
.compliance-note i { color: var(--success); margin-top: 1px; flex-shrink: 0; }
.compliance-note p { font-size: 13px; color: #15803d; line-height: 1.6; }

/* ══ 홍보물 제작 ══════════════════════════════ */
.step-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 18px 20px;
  background: #fff; border-bottom: 1px solid var(--gray-100);
}
.step-item { display: flex; align-items: center; gap: 6px; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  border: 2px solid var(--gray-200); color: var(--gray-400);
  background: #fff; transition: all 0.3s;
}
.step-dot.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-dot.done { background: var(--success); border-color: var(--success); color: #fff; }
.step-label { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.step-label.active { color: var(--primary); font-weight: 700; }
.step-line { width: 32px; height: 2px; background: var(--gray-200); margin: 0 4px; transition: background 0.3s; }
.step-line.done { background: var(--success); }

.step-content { display: none; flex: 1; flex-direction: column; }
.step-content.active { display: flex; }

/* 사진 업로드 */
.upload-area {
  border: 2.5px dashed var(--gray-200); border-radius: var(--radius);
  padding: 36px 20px; text-align: center;
  cursor: pointer; transition: all 0.2s; background: var(--gray-50);
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area.has-image { border-style: solid; border-color: var(--success); background: #fff; }
.upload-icon { font-size: 44px; color: var(--gray-300); margin-bottom: 12px; }
.upload-title { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.upload-desc { font-size: 14px; color: var(--gray-400); line-height: 1.6; }
.upload-preview {
  width: 100%; max-height: 240px; object-fit: cover;
  border-radius: var(--radius-sm); margin-top: 14px; display: none;
}
.upload-preview.show { display: block; }
.upload-change {
  font-size: 14px; color: var(--primary); font-weight: 600;
  margin-top: 10px; cursor: pointer; display: none; text-align: center;
}
.upload-change.show { display: block; }

.tip-box {
  margin-top: 18px; background: var(--gray-50);
  border-radius: var(--radius-sm); padding: 14px;
}
.tip-title { font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.tip-body { font-size: 12px; color: var(--gray-500); line-height: 2.0; }

/* 템플릿 그리드 */
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.template-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all 0.25s;
  border: 2.5px solid var(--gray-100); box-shadow: var(--shadow);
}
.template-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.template-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.template-thumb {
  height: 120px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; line-height: 1.5;
  padding: 12px; text-align: center; position: relative; overflow: hidden;
}
.template-icon { font-size: 28px; margin-bottom: 6px; }
.template-safe-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--success); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 6px; display: flex; align-items: center; gap: 3px;
}
.template-info { padding: 10px 12px 12px; }
.template-name { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
.template-type { font-size: 11px; color: var(--gray-400); }

/* 미리보기 */
.preview-canvas {
  width: 100%; background: var(--gray-50);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); margin: 16px 0; min-height: 300px;
}
.preview-canvas-inner {
  padding: 24px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.preview-user-photo {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: block; margin: 0 auto 16px;
}
.preview-content-text {
  background: rgba(255,255,255,0.95);
  border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 버튼 공통 */
.btn-full {
  display: block;
  width: calc(100% - 40px); margin: 8px 20px;
  padding: 16px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s; font-family: var(--font);
  text-align: center;
}
.btn-full-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 16px rgba(26,86,219,0.35);
}
.btn-full-primary:hover { transform: translateY(-2px); }
.btn-full-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }

/* ══ 공유 화면 ══════════════════════════════════ */
.share-hero {
  background: linear-gradient(135deg, #FEE500, #FFD600);
  padding: 32px 24px; text-align: center;
}
.share-hero-icon { font-size: 60px; margin-bottom: 12px; }
.share-hero-title { font-size: 22px; font-weight: 800; color: #3C1E1E; margin-bottom: 6px; }
.share-hero-desc { font-size: 14px; color: rgba(60,30,30,0.7); line-height: 1.7; }

.share-preview-card {
  margin: 16px 20px;
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.share-preview-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.share-preview-body { padding: 16px; }
.share-preview-title { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.share-preview-desc { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 10px; }
.share-preview-link { font-size: 12px; color: var(--primary); font-weight: 600; }

.landing-info-box {
  margin: 0 20px 16px;
  background: var(--primary-light); border: 1.5px solid #bfdbfe;
  border-radius: var(--radius); padding: 16px;
}
.landing-info-title {
  font-size: 14px; font-weight: 700; color: var(--primary-dark);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.landing-info-item {
  font-size: 13px; color: var(--primary-dark); line-height: 1.8;
  display: flex; align-items: flex-start; gap: 6px; margin-top: 4px;
}
.landing-info-item i { color: var(--primary); margin-top: 2px; }

.btn-kakao-share {
  width: calc(100% - 40px); margin: 0 20px 12px;
  padding: 19px; background: #FEE500; color: #3C1E1E;
  border: none; border-radius: var(--radius);
  font-size: 18px; font-weight: 900; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 6px 24px rgba(254,229,0,0.5);
  transition: all 0.2s; font-family: var(--font);
}
.btn-kakao-share:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(254,229,0,0.6); }

.share-other-btns {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 0 20px 18px;
}
.btn-share-other {
  padding: 13px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all 0.2s; font-family: var(--font);
}
.btn-share-other:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.perf-box {
  margin: 0 20px 20px; background: var(--gray-50);
  border-radius: var(--radius); padding: 18px;
}
.perf-title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 14px; }
.perf-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; }
.perf-item {
  background: #fff; border-radius: 10px;
  padding: 12px; box-shadow: var(--shadow);
}
.perf-val { font-size: 22px; font-weight: 800; color: var(--primary); }
.perf-label { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* ══ 사업설명회 ════════════════════════════════ */
.invite-filter { display: flex; gap: 8px; padding: 14px 20px; overflow-x: auto; }
.invite-filter::-webkit-scrollbar { display: none; }
.filter-chip {
  white-space: nowrap; padding: 8px 16px;
  border: 1.5px solid var(--gray-200); border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--gray-500);
  background: #fff; cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.invite-card {
  margin: 0 20px 12px; background: #fff;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  cursor: pointer; transition: all 0.25s;
}
.invite-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.invite-card-header { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); position: relative; }
.invite-card-type {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; margin-bottom: 8px;
}
.type-offline { background: #fef3c7; color: #92400e; }
.type-online { background: #dbeafe; color: #1e40af; }
.type-youtube { background: #fee2e2; color: #991b1b; }
.invite-card-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.invite-card-urgent {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px;
}
.invite-card-body { padding: 12px 16px; }
.invite-meta-row { display: flex; gap: 16px; margin-bottom: 8px; }
.invite-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-600); }
.invite-meta-item i { color: var(--primary); font-size: 13px; }
.invite-progress-bar {
  background: var(--gray-100); border-radius: 4px;
  height: 6px; margin-bottom: 5px; overflow: hidden;
}
.invite-progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), #3b82f6);
  transition: width 0.8s;
}
.invite-progress-text {
  font-size: 12px; color: var(--gray-400);
  display: flex; justify-content: space-between;
}
.invite-card-footer {
  padding: 10px 14px; background: var(--gray-50);
  display: flex; gap: 8px;
}
.btn-invite-send {
  flex: 1; padding: 11px;
  background: #FEE500; color: #3C1E1E;
  border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s; font-family: var(--font);
}
.btn-invite-send:hover { background: #fdd835; }
.btn-invite-detail {
  padding: 11px 14px; background: #fff;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--gray-600);
  cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.btn-invite-detail:hover { border-color: var(--primary); color: var(--primary); }

.rsvp-info-box {
  margin: 14px 20px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac; border-radius: var(--radius); padding: 18px;
}

/* ══ CRM ════════════════════════════════════════ */
.crm-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 18px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.crm-stat-card {
  background: #fff; border-radius: var(--radius-sm);
  padding: 14px 10px; text-align: center; box-shadow: var(--shadow);
}
.crm-stat-val { font-size: 24px; font-weight: 800; color: var(--primary); }
.crm-stat-lbl { font-size: 11px; color: var(--gray-400); margin-top: 2px; font-weight: 500; }

.crm-search-row { padding: 14px 20px; display: flex; gap: 10px; }
.crm-search {
  flex: 1; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font); outline: none; transition: border-color 0.2s;
}
.crm-search:focus { border-color: var(--primary); }
.btn-crm-add {
  padding: 11px 16px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 5px; font-family: var(--font);
}

.crm-tabs { display: flex; gap: 0; padding: 0 20px 10px; overflow-x: auto; }
.crm-tabs::-webkit-scrollbar { display: none; }
.crm-tab {
  white-space: nowrap; padding: 7px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border-bottom: 2.5px solid transparent; color: var(--gray-400);
  transition: all 0.2s; background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: var(--font);
}
.crm-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.lead-card {
  margin: 0 20px 10px; background: #fff;
  border-radius: var(--radius-sm); padding: 13px 14px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: flex-start; gap: 12px;
}
.lead-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.lead-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.lead-info { flex: 1; min-width: 0; }
.lead-name { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.lead-meta { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.lead-source { font-size: 11px; color: var(--gray-500); margin-top: 3px; display: flex; align-items: center; gap: 4px; }

.status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 8px; white-space: nowrap;
}
.status-info { background: #dbeafe; color: #1e40af; }
.status-seminar { background: #fef3c7; color: #92400e; }
.status-purchase { background: #d1fae5; color: #065f46; }
.status-prospect { background: #ede9fe; color: #5b21b6; }

.lead-action-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.btn-lead-action {
  padding: 5px 11px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--gray-600); background: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: all 0.2s; font-family: var(--font);
}
.btn-lead-action:hover { border-color: var(--primary); color: var(--primary); }
.btn-lead-action.kakao { border-color: #FEE500; color: #3C1E1E; background: #fffde7; }

.auto-send-box {
  margin: 14px 20px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border-radius: var(--radius); padding: 18px;
  border: 1.5px solid #c4b5fd;
}

/* ══ 요금제 ════════════════════════════════════ */
.pricing-hero {
  background: linear-gradient(135deg, #0a2463, #1a56db);
  padding: 32px 24px; text-align: center; color: #fff;
}
.active-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; color: rgba(255,255,255,0.9); margin-bottom: 14px;
}
.pricing-hero-title { font-size: 24px; font-weight: 900; margin-bottom: 8px; line-height: 1.4; }
.pricing-hero-desc { font-size: 14px; color: rgba(255,255,255,0.7); }

.pricing-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 2px solid var(--gray-100); position: relative;
}
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 8px 40px rgba(26,86,219,0.2); }
.popular-badge {
  position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 0 14px 0 12px;
}
.pricing-card-header { padding: 22px; border-bottom: 1px solid var(--gray-100); }
.pricing-tier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; margin-bottom: 10px;
}
.tier-free { background: var(--gray-100); color: var(--gray-600); }
.tier-basic { background: #dbeafe; color: #1e40af; }
.tier-premium { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.pricing-name { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.pricing-price { font-size: 30px; font-weight: 900; color: var(--primary); }
.pricing-price span { font-size: 14px; font-weight: 400; color: var(--gray-400); }
.pricing-desc { font-size: 13px; color: var(--gray-500); margin-top: 6px; line-height: 1.6; }
.pricing-features { padding: 18px 22px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px; font-size: 14px; color: var(--gray-700);
}
.feature-item i { color: var(--success); margin-top: 2px; font-size: 14px; flex-shrink: 0; }
.feature-item.locked i { color: var(--gray-300); }
.feature-item.locked { color: var(--gray-400); }
.btn-pricing {
  width: 100%; padding: 15px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
}
.btn-pricing-free { background: var(--gray-100); color: var(--gray-600); }
.btn-pricing-basic {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff; box-shadow: 0 4px 16px rgba(26,86,219,0.3);
}
.btn-pricing-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.btn-pricing:hover { transform: translateY(-2px); }
.safety-pledge {
  background: var(--gray-50); border-radius: var(--radius);
  padding: 18px; border: 1.5px solid var(--gray-200);
}

/* ══ 알림 ════════════════════════════════════ */
.notif-item {
  padding: 14px 20px; border-bottom: 1px solid var(--gray-50);
  display: flex; gap: 12px; cursor: pointer; transition: background 0.15s;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--primary-light); }
.notif-icon-wrap {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 17px;
}
.notif-icon-blue { background: #dbeafe; color: var(--primary); }
.notif-icon-green { background: #d1fae5; color: var(--success); }
.notif-icon-orange { background: #fee2e2; color: var(--accent); }
.notif-icon-gold { background: #fef3c7; color: var(--gold); }
.notif-text-body { flex: 1; }
.notif-msg { font-size: 14px; color: var(--gray-800); line-height: 1.6; font-weight: 500; }
.notif-time { font-size: 12px; color: var(--gray-400); margin-top: 3px; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 6px;
}

/* ══ 토스트 ══════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gray-900); color: #fff;
  padding: 12px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  opacity: 0; transition: all 0.3s; z-index: 9999;
  max-width: 90%;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.warning { background: var(--gold); color: #3C1E1E; }

/* ══════════════════════════════════════════════
   화면 7 · 우리 라인 커뮤니티
   ══════════════════════════════════════════════ */
.line-banner{background:linear-gradient(135deg,#4c1d95,#7c3aed);color:#fff;padding:16px;margin:0 0 0 0}
.line-banner-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.line-group-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,0.18);padding:4px 10px;border-radius:20px;font-size:12px;font-weight:700}
.line-member-count{font-size:12px;color:rgba(255,255,255,0.8)}
.line-goal{font-size:13px;line-height:1.6;margin-bottom:10px}
.line-temp-bar{display:flex;align-items:center;gap:8px}
.line-temp-label{font-size:11px;font-weight:700;flex-shrink:0}
.line-temp-track{flex:1;background:rgba(255,255,255,0.25);border-radius:10px;height:7px}
.line-temp-fill{background:linear-gradient(90deg,#fbbf24,#ef4444);height:7px;border-radius:10px;transition:width 0.8s ease}
.line-temp-val{font-size:12px;font-weight:900;flex-shrink:0}

.line-tabs{display:flex;border-bottom:2px solid var(--gray-100);background:#fff}
.line-tab{flex:1;padding:12px 8px;border:none;background:none;font-size:13px;font-weight:600;color:var(--gray-400);cursor:pointer;font-family:var(--font);position:relative;transition:color 0.15s}
.line-tab.active{color:#7c3aed}
.line-tab.active::after{content:'';position:absolute;bottom:-2px;left:0;right:0;height:2px;background:#7c3aed;border-radius:2px 2px 0 0}

.line-tab-content{padding:12px}
.line-feed{display:flex;flex-direction:column;gap:12px}
.line-loading{text-align:center;padding:40px;color:var(--gray-400)}

.feed-card{background:#fff;border-radius:var(--radius-sm);padding:14px;box-shadow:var(--shadow)}
.feed-card.pinned{border:2px solid #7c3aed;background:#faf5ff}
.feed-card-header{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.feed-avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#fff;flex-shrink:0}
.feed-avatar.leader{background:linear-gradient(135deg,#7c3aed,#a855f7)}
.feed-avatar.member{background:linear-gradient(135deg,#1a56db,#3b82f6)}
.feed-name{font-size:14px;font-weight:700;color:var(--gray-800)}
.feed-meta{font-size:11px;color:var(--gray-400)}
.feed-role-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:10px;font-size:10px;font-weight:700;background:#ede9fe;color:#7c3aed;margin-left:5px}
.feed-pin-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:10px;font-size:10px;font-weight:700;background:#ede9fe;color:#7c3aed;float:right}
.feed-content{font-size:14px;line-height:1.7;color:var(--gray-700);margin-bottom:12px;white-space:pre-line}
.feed-reactions{display:flex;gap:6px;align-items:center}
.reaction-btn{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:20px;border:1.5px solid var(--gray-200);background:#fff;font-size:12px;font-weight:600;cursor:pointer;font-family:var(--font);color:var(--gray-600);transition:all 0.15s}
.reaction-btn:hover,.reaction-btn.active{border-color:#7c3aed;background:#faf5ff;color:#7c3aed}
.reaction-btn.clap.active{border-color:#f59e0b;background:#fef3c7;color:#92400e}
.reaction-btn.heart.active{border-color:#ef4444;background:#fee2e2;color:#dc2626}
.reaction-btn.fire.active{border-color:#ef4444;background:#fff7ed;color:#ea580c}

/* 자료실 */
.knowhow-list{display:flex;flex-direction:column;gap:10px}
.knowhow-card{display:flex;align-items:center;gap:12px;background:#fff;border-radius:var(--radius-sm);padding:14px;box-shadow:var(--shadow)}
.knowhow-icon{width:42px;height:42px;border-radius:12px;background:#ede9fe;color:#7c3aed;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.knowhow-body{flex:1;min-width:0}
.knowhow-title{font-size:13px;font-weight:700;color:var(--gray-800);margin-bottom:2px}
.knowhow-desc{font-size:11px;color:var(--gray-500);margin-bottom:2px}
.knowhow-meta{font-size:10px;color:var(--gray-400)}
.knowhow-dl{width:36px;height:36px;border-radius:10px;border:1.5px solid #ede9fe;background:#faf5ff;color:#7c3aed;display:flex;align-items:center;justify-content:center;font-size:14px;cursor:pointer;flex-shrink:0}

/* 상담 */
.consult-info{display:flex;align-items:center;gap:12px;background:#fff;padding:14px;border-radius:var(--radius-sm);margin-bottom:10px;box-shadow:var(--shadow)}
.consult-avatar{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#a855f7);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;flex-shrink:0}
.consult-name{font-size:15px;font-weight:700;color:var(--gray-800)}
.consult-status{font-size:11px;color:var(--success);display:flex;align-items:center;gap:4px}
.online-dot{width:7px;height:7px;background:var(--success);border-radius:50%;display:inline-block}
.consult-call{margin-left:auto;width:40px;height:40px;border-radius:50%;background:var(--success);border:none;color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.consult-notice{font-size:11px;color:var(--gray-400);text-align:center;padding:6px;background:var(--gray-50);border-radius:8px;margin-bottom:10px}
.consult-chat{background:#f9fafb;border-radius:var(--radius-sm);padding:12px;display:flex;flex-direction:column;gap:10px;min-height:160px;margin-bottom:10px}
.chat-bubble{max-width:82%;padding:10px 14px;border-radius:18px;font-size:13px;line-height:1.6}
.chat-bubble.other{background:#fff;border:1px solid var(--gray-200);align-self:flex-start;border-radius:4px 18px 18px 18px}
.chat-bubble.mine{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;align-self:flex-end;border-radius:18px 18px 4px 18px}
.consult-input-row{display:flex;gap:8px}
.consult-input{flex:1;padding:12px 14px;border:1.5px solid var(--gray-200);border-radius:12px;font-size:14px;font-family:var(--font);color:var(--gray-800);outline:none}
.consult-input:focus{border-color:#7c3aed}
.consult-send{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#a855f7);border:none;color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* 글쓰기 textarea */
.form-textarea{width:100%;padding:12px 14px;border:1.5px solid var(--gray-200);border-radius:12px;font-size:14px;font-family:var(--font);color:var(--gray-800);resize:none;height:120px;outline:none;margin-bottom:12px}
.form-textarea:focus{border-color:#7c3aed}

/* ══════════════════════════════════════════════
   화면 8 · 라인 리더 대시보드
   ══════════════════════════════════════════════ */
.leader-section{background:#fff;border-radius:var(--radius-sm);padding:16px;margin-bottom:12px;box-shadow:var(--shadow)}
.leader-section-title{font-size:14px;font-weight:700;color:var(--gray-800);margin-bottom:14px;display:flex;align-items:center;gap:6px}
.leader-badge-chip{background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:700}
.pending-badge{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:#ef4444;color:#fff;border-radius:50%;font-size:11px;font-weight:700;margin-left:4px}

/* 온도계 카드 */
.temp-gauge-card{display:flex;align-items:center;gap:16px}
.temp-gauge-wrap{flex-shrink:0}
.temp-stats{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.temp-stat-item{background:var(--gray-50);border-radius:8px;padding:8px 10px}
.temp-stat-label{font-size:10px;color:var(--gray-500);font-weight:600;margin-bottom:2px}
.temp-stat-val{font-size:15px;font-weight:800}
.temp-stat-val.ok{color:var(--success)}
.temp-stat-val.warn{color:var(--gold)}
.temp-stat-val.danger{color:var(--danger)}

/* 랭킹 */
.member-ranking{display:flex;flex-direction:column;gap:8px}
.rank-item{display:flex;align-items:center;gap:10px;background:var(--gray-50);border-radius:10px;padding:10px 12px}
.rank-item.low{background:#fff5f5;border:1px solid #fee2e2}
.rank-badge{width:28px;text-align:center;font-size:18px;flex-shrink:0}
.rank-avatar{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#fff;flex-shrink:0}
.rank-info{flex:1;min-width:0}
.rank-name{font-size:13px;font-weight:700;color:var(--gray-800);margin-bottom:4px;display:flex;align-items:center;gap:5px}
.rank-score-bar{background:var(--gray-200);border-radius:4px;height:5px}
.rank-bar-fill{height:5px;border-radius:4px;background:linear-gradient(90deg,#1a56db,#3b82f6);transition:width 0.8s ease}
.rank-score{font-size:13px;font-weight:700;color:var(--gray-700);flex-shrink:0}
.rank-score.danger-text{color:var(--danger)}
.low-tag{font-size:10px;background:#fee2e2;color:#dc2626;padding:1px 6px;border-radius:6px;font-weight:600}
.rank-call-btn{width:32px;height:32px;border-radius:8px;background:#fff;border:1.5px solid var(--success);color:var(--success);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px;flex-shrink:0}

/* 가입 승인 */
.approval-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.approval-item{display:flex;align-items:center;gap:10px;background:var(--gray-50);border-radius:10px;padding:10px 12px}
.approval-avatar{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#1a56db,#3b82f6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;flex-shrink:0}
.approval-info{flex:1}
.approval-name{font-size:13px;font-weight:700;color:var(--gray-800)}
.approval-meta{font-size:11px;color:var(--gray-400)}
.approval-btns{display:flex;gap:6px;flex-shrink:0}
.btn-approve{width:32px;height:32px;border-radius:8px;background:var(--success);border:none;color:#fff;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}
.btn-reject{width:32px;height:32px;border-radius:8px;background:#fee2e2;border:none;color:var(--danger);cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}

/* 게시판 관리 */
.board-manage-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.board-manage-item{background:var(--gray-50);border-radius:10px;padding:10px 12px;display:flex;align-items:center;gap:10px}
.bm-content{flex:1;font-size:12px;color:var(--gray-700);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm-actions{display:flex;gap:6px;flex-shrink:0}
.bm-btn{padding:5px 10px;border-radius:7px;border:none;cursor:pointer;font-size:11px;font-weight:700;font-family:var(--font);display:flex;align-items:center;gap:4px}
.bm-btn.pin{background:#ede9fe;color:#7c3aed}
.bm-btn.blind{background:#fee2e2;color:var(--danger);width:28px;justify-content:center}
.btn-push-all{width:100%;padding:13px;background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;border:none;border-radius:12px;font-size:14px;font-weight:700;cursor:pointer;font-family:var(--font);display:flex;align-items:center;justify-content:center;gap:8px}
.header-back{width:36px;height:36px;border-radius:50%;border:none;background:var(--gray-100);color:var(--gray-700);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;margin-right:4px}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HANAin 로고 스타일
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.splash-logo-wrap {
  background: #1a56db;
  border-radius: 20px;
  padding: 14px 28px;
  display: inline-block;
  box-shadow: 0 8px 32px rgba(26,86,219,0.4);
  margin-bottom: 8px;
}
.splash-logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
.splash-brand-sub {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 2px;
  opacity: 0.9;
}
/* 헤더 로고 */
.header-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  background: #1a56db;
  border-radius: 6px;
  padding: 4px 8px;
}
.header-title-sub {
  font-size: 15px;
  font-weight: 800;
  color: #1a56db;
  margin-left: 4px;
  letter-spacing: 1px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   공지사항 스타일
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.notice-skeleton {
  height: 80px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
  margin: 0 20px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.notice-banner-item {
  margin: 0 20px 10px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.notice-banner-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }
.notice-banner-item.pinned { border-color: #fbbf24; background: #fffbeb; }
.notice-banner-item.unread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #1a56db;
  border-radius: 4px 0 0 4px;
}
.notice-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.notice-type-chip.promotion { background: #fef3c7; color: #92400e; }
.notice-type-chip.event { background: #dbeafe; color: #1e40af; }
.notice-type-chip.notice { background: #f3f4f6; color: #374151; }
.notice-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.4;
}
.notice-banner-preview {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notice-banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.notice-banner-meta {
  font-size: 11px;
  color: #9ca3af;
}
.notice-likes {
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* 공지 필터 탭 */
.notice-filter-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px 10px;
  overflow-x: auto;
}
.notice-filter-tabs::-webkit-scrollbar { display: none; }
.notice-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.notice-tab.active {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
}
/* 공지 상세 카드 (전체 화면) */
.notice-full-card {
  margin: 0 20px 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.notice-full-card.pinned { border-color: #fbbf24; }
.notice-full-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.notice-author-avatar {
  width: 36px; height: 36px;
  background: #1a56db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.notice-full-body { padding: 14px 16px; }
.notice-full-title { font-size: 15px; font-weight: 800; color: #111827; margin-bottom: 8px; line-height: 1.4; }
.notice-full-content { font-size: 13px; color: #374151; line-height: 1.8; }
.notice-full-footer {
  padding: 10px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notice-like-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid #fca5a5;
  border-radius: 20px;
  background: #fff7f7;
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.notice-like-btn:hover { background: #fee2e2; }
.notice-like-btn.liked { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   요금제/결제선생 스타일
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pricing-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
}
.pricing-card.active-plan {
  border-color: #1a56db;
  box-shadow: 0 4px 20px rgba(26,86,219,0.15);
}
.pricing-card-top { margin-bottom: 16px; }
.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.pricing-badge.free { background: #f3f4f6; color: #6b7280; }
.pricing-badge.basic { background: #dbeafe; color: #1d4ed8; }
.pricing-badge.premium { background: linear-gradient(90deg,#7c3aed,#db2777); color: #fff; }
.pricing-name { font-size: 20px; font-weight: 900; color: #111827; margin-bottom: 4px; }
.pricing-price { font-size: 26px; font-weight: 900; color: #1a56db; }
.pricing-price span { font-size: 14px; color: #6b7280; font-weight: 500; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; }
.pricing-features li i { width: 16px; text-align: center; }
.pricing-features li .fa-check { color: #22c55e; }
.pricing-features li.disabled { color: #9ca3af; }
.pricing-features li.disabled .fa-times { color: #d1d5db; }
.btn-plan-current {
  width: 100%; padding: 11px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
}
.btn-plan-active {
  width: 100%; padding: 11px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a56db, #1e40af);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
}
/* 결제선생 스텝 */
.payss-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #374151;
}
.payss-step-num {
  width: 26px; height: 26px;
  background: #1a56db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   직급 진행률 바
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  background: #6b7280;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.rank-progress-wrap {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 4px;
}
.rank-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}
.rank-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 5px;
}
.rank-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.rank-progress-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.rank-chip-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════
   커뮤니티 탭 (팀/라인) 스타일
   ══════════════════════════════════════════════════════ */
.community-top-tabs {
  display: flex;
  gap: 0;
  background: #f3f4f6;
  border-bottom: 2px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}
.comm-top-tab {
  flex: 1;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.comm-top-tab.active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
  background: #fff;
}
.comm-tab-content { width: 100%; }

/* ── 팀 카드 ── */
.team-section-header {
  padding: 16px 16px 8px;
}
.team-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}
.team-card-list {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1.5px solid #f3f4f6;
}
.team-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.team-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.team-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}
.team-card-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.team-card-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}
.team-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.team-member-count {
  font-size: 12px;
  color: #7c3aed;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-join-team {
  padding: 8px 16px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-join-team.joined {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}
.btn-leave-team {
  padding: 8px 16px;
  background: #fee2e2;
  color: #ef4444;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-create-team {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.team-search-bar {
  padding: 12px 16px;
  position: relative;
}
.team-search-bar input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
}
.team-search-bar .fa-search {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
.team-badge-free { background: #f3f4f6; color: #6b7280; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }

/* ── 결제 UI ── */
.payment-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9500;
  align-items: flex-end;
  justify-content: center;
}
.payment-modal-overlay.show { display: flex; }
.payment-modal-sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}
.payment-plan-card {
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-plan-card.selected {
  border-color: #7c3aed;
  background: #faf5ff;
}
.payment-plan-name { font-size: 16px; font-weight: 800; color: #111827; }
.payment-plan-price { font-size: 22px; font-weight: 900; color: #7c3aed; }
.payment-plan-price span { font-size: 14px; font-weight: 500; color: #9ca3af; }
.payment-method-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.payment-method-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.payment-method-btn.selected { border-color: #7c3aed; background: #faf5ff; color: #7c3aed; }
