/* ═══════════════════════════════════════════════════
   서구 사회적경제 지원사업 앱 — Premium UI CSS v3.0
   ═══════════════════════════════════════════════════ */

:root {
  /* ── 그린 팔레트 ── */
  --g900: #1a3d0f;
  --g800: #2d5a1b;
  --g700: #3d7a2a;
  --g600: #4e9a35;
  --g500: #5cb040;
  --g400: #7ec95f;
  --g300: #a8db90;
  --g200: #ceedb8;
  --g100: #e6f5db;
  --g50:  #f2faec;

  /* ── 강조 ── */
  --red:        #ef4444;
  --red-dark:   #dc2626;
  --red-light:  #fef2f2;
  --orange:     #f97316;
  --orange-lt:  #fff7ed;
  --yellow:     #eab308;
  --yellow-lt:  #fefce8;
  --blue:       #3b82f6;
  --blue-lt:    #eff6ff;
  --purple:     #8b5cf6;
  --purple-lt:  #f5f3ff;

  /* ── 중립/배경 ── */
  --cream:      #fafaf8;
  --warm-bg:    #f4f4f1;
  --card:       #ffffff;
  --border:     #e5ead0;
  --border-soft: #eef3e5;
  --divider:    #edf4e5;

  /* ── 텍스트 ── */
  --txt1: #111827;
  --txt2: #374151;
  --txt3: #6b7280;
  --txt4: #9ca3af;

  /* ── 공통 ── */
  --white:     #ffffff;
  --r-xs:      6px;
  --r-sm:      10px;
  --r:         16px;
  --r-lg:      22px;
  --r-xl:      28px;
  --sh-xs:     0 1px 4px rgba(0,0,0,.06);
  --sh-sm:     0 2px 10px rgba(45,90,27,.08);
  --sh:        0 4px 20px rgba(45,90,27,.12);
  --sh-lg:     0 8px 36px rgba(45,90,27,.18);
  --sh-card:   0 2px 12px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
  --header-h:  60px;
  --bottom-h:  72px;
  --font:      'Noto Sans KR', sans-serif;
  
  /* ── 카테고리 컬러 ── */
  --cat-startup-from: #7c3aed;
  --cat-startup-to:   #a855f7;
  --cat-incheon-from: #0369a1;
  --cat-incheon-to:   #38bdf8;
  --cat-sejin-from:   #2d5a1b;
  --cat-sejin-to:     #5cb040;
  --cat-biz-from:     #b45309;
  --cat-biz-to:       #f59e0b;
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  height: 100%; width: 100%;
  font-family: var(--font);
  background: var(--warm-bg);
  color: var(--txt1);
  -webkit-font-smoothing: antialiased;
}
body {
  height: 100%; width: 100%;
  overflow: hidden;
  position: relative;
}
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; background: none; font-family: var(--font); }
ul, ol { list-style: none; }
input, select { font-family: var(--font); }

/* ══════════════════════════════════════════
   스플래시 화면
══════════════════════════════════════════ */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, var(--g900) 0%, var(--g800) 45%, var(--g700) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .6s ease, transform .6s ease;
}
#splash-screen.sp-hide {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* 배경 장식 원 */
.sp-circle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.055);
}
.sp-c1 { width: 320px; height: 320px; top: -100px; right: -80px; }
.sp-c2 { width: 200px; height: 200px; bottom: 60px; left: -60px; }
.sp-c3 { width: 120px; height: 120px; top: 45%; left: 15%;
         background: rgba(255,255,255,.035); }

/* 하단 언덕 */
.sp-hill {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
}
.sp-hill svg { width: 100%; height: 100%; display: block; }

/* 컨텐츠 중앙 정렬 */
.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center;
  width: 100%; max-width: 340px;
  padding: 0 24px;
  gap: 0;
}

/* ── 서구 마을지원센터 로고 (상단) ── */
.sp-logo-top {
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity .7s ease, transform .7s ease;
  margin-bottom: 14px;
}
.sp-logo-top.sp-show {
  opacity: 1; transform: translateY(0);
}
.sp-logo-top img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)) brightness(1.15);
}

/* ── 구분선 ── */
.sp-divider {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  opacity: 0;
  transition: opacity .5s ease .3s;
  margin-bottom: 18px;
}
.sp-divider.sp-show { opacity: 1; }
.sp-divider-line {
  flex: 1; height: 1px;
  background: rgba(255,255,255,.25);
}
.sp-divider span {
  font-size: 11px; color: rgba(255,255,255,.55);
  font-weight: 500; white-space: nowrap;
  letter-spacing: .5px;
}

/* ── 녹색공방 메인 로고 ── */
.sp-logo-main {
  opacity: 0;
  transform: scale(.72);
  transition: opacity .9s cubic-bezier(.22,1,.36,1) .2s,
              transform .9s cubic-bezier(.22,1,.36,1) .2s;
  margin-bottom: 28px;
}
.sp-logo-main.sp-show {
  opacity: 1; transform: scale(1);
}
.sp-logo-main img {
  width: 230px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)) drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* ── 앱 이름 ── */
.sp-app-name {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease .5s, transform .6s ease .5s;
  margin-bottom: 40px;
}
.sp-app-name.sp-show {
  opacity: 1; transform: translateY(0);
}
.sp-app-label {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.sp-app-title {
  font-size: 24px; font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.sp-app-title span {
  color: #a8e068;
  position: relative;
}
.sp-app-title span::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #a8e068;
  border-radius: 2px;
  opacity: .5;
}

/* ── 프로그레스 바 ── */
.sp-progress-wrap {
  width: 100%;
  opacity: 0;
  transition: opacity .5s ease .8s;
}
.sp-progress-wrap.sp-show { opacity: 1; }
.sp-progress-bar {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.18);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.sp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a8e068, #6bbf47, #a8e068);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: sp-progress 3.8s ease forwards, sp-shimmer 1.5s linear infinite;
}
@keyframes sp-progress {
  0%   { width: 0%; }
  30%  { width: 45%; }
  60%  { width: 72%; }
  85%  { width: 90%; }
  100% { width: 100%; }
}
@keyframes sp-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sp-loading-text {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  letter-spacing: .3px;
}

/* ══════════════════════════════════════════
   앱 래퍼
══════════════════════════════════════════ */
.app-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  max-width: 480px; margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 80px rgba(0,0,0,.22);
  overflow: hidden;
  z-index: 1;
}

/* ══════════════════════════════════════════
   헤더 — 글래스모피즘 스타일
══════════════════════════════════════════ */
.app-header {
  height: var(--header-h);
  background: linear-gradient(135deg, var(--g900) 0%, var(--g800) 100%);
  position: relative; z-index: 100; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center;
  height: 100%; padding: 0 16px; gap: 8px;
}
.btn-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9); font-size: 18px;
  position: relative; transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon:active { background: rgba(255,255,255,.15); }
.header-title-wrap { flex: 1; }
.header-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9); font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px; margin-bottom: 2px;
  letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.2);
}
.header-title { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.2; }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--g800);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .8; }
}

/* ══════════════════════════════════════════
   사이드 드로어
══════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.side-drawer {
  position: fixed; top: 0; left: -300px; bottom: 0;
  width: 280px; background: var(--white);
  z-index: 300; display: flex; flex-direction: column;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--sh-lg);
}
.side-drawer.open { left: 0; }

.drawer-header {
  background: linear-gradient(145deg, var(--g900), var(--g700));
  padding: 24px 16px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  position: relative; overflow: hidden;
}
.drawer-header::before {
  content: ''; position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.drawer-logo {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.3);
}
.drawer-org { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.drawer-addr { font-size: 11px; color: rgba(255,255,255,.7); }
.drawer-addr i { margin-right: 4px; }
.drawer-close { color: rgba(255,255,255,.8) !important; position: absolute; top: 12px; right: 10px; }
.drawer-menu { flex: 1; padding: 10px 0; overflow-y: auto; }
.drawer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; font-size: 15px; color: var(--txt2);
  transition: background .15s; font-weight: 500;
  border-radius: 0;
}
.drawer-item i { width: 22px; text-align: center; color: var(--g400); font-size: 16px; }
.drawer-item:hover, .drawer-item.active { background: var(--g50); color: var(--g700); }
.drawer-item.active {
  background: linear-gradient(135deg, var(--g50), #e0f5cc);
  color: var(--g800); font-weight: 700;
  border-right: 3px solid var(--g600);
}
.drawer-item.active i { color: var(--g600); }
.drawer-footer {
  padding: 16px 20px; border-top: 1px solid var(--divider);
  background: var(--g50);
}
.drawer-link {
  display: flex; align-items: center; gap: 8px;
  color: var(--g700); font-size: 14px; font-weight: 600; margin-bottom: 8px;
}
.drawer-tel { font-size: 13px; color: var(--txt3); }
.drawer-tel i { margin-right: 6px; color: var(--g500); }

/* ══════════════════════════════════════════
   메인 스크롤
══════════════════════════════════════════ */
.main-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--bottom-h) + 10px);
  background: var(--cream);
  scroll-behavior: smooth;
}

/* ══════════════════════════════════════════
   히어로 배너 — 완전 새 디자인
══════════════════════════════════════════ */
.hero-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #1a3d0f 0%, #2d5a1b 35%, #3d7a2a 70%, #4e9a35 100%);
  padding: 28px 20px 0;
  color: #fff;
  min-height: 210px;
}
/* 히어로 텍스트 — 마스코트가 아래에 있으므로 여백 최소화 */
.hero-top {
  position: relative; z-index: 2; margin-bottom: 12px;
  padding-right: 0;
}
.hero-banner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
}
.hero-banner::after {
  content: '';
  position: absolute; bottom: 50px; left: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
}
/* .hero-top — 위에서 재정의됨 */
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; margin-bottom: 12px; color: #fff;
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
}
.hero-tag i { color: #fbbf24; font-size: 10px; }
.hero-title {
  font-size: 23px; font-weight: 900; line-height: 1.35; margin-bottom: 8px;
  letter-spacing: -.5px;
}
.hero-title strong { 
  color: #bbf7d0; 
  position: relative;
}
.hero-desc { 
  font-size: 13px; 
  opacity: .85; 
  line-height: 1.65; 
  margin-bottom: 18px;
  font-weight: 400;
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--g800);
  font-size: 13px; font-weight: 800;
  padding: 11px 20px; border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  margin-bottom: 20px;
  letter-spacing: -.2px;
  transition: transform .15s, box-shadow .15s;
}
.btn-hero:active { transform: scale(.96); }
.btn-hero i { color: var(--g600); font-size: 12px; }

/* 지원봇 마스코트 이미지 — 가로형 로고 */
.hero-mascot {
  position: absolute;
  top: 78px;
  right: 45px;
  z-index: 3;
  pointer-events: none;
  width: 175px;   /* 가로형이라 너비를 넓게 */
  height: 95px;   /* 높이는 비율에 맞게 */
}
.hero-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.18));
  animation: mascot-float 3.8s ease-in-out infinite;
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

/* 자연 풍경 SVG 일러스트 */
.hero-landscape {
  position: relative; z-index: 2;
  width: 100%; height: 110px;
  overflow: hidden;
  margin-bottom: -1px;
}
.hero-landscape svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════
   공지사항 배너
══════════════════════════════════════════ */
.notice-bar {
  margin: 16px 16px 0;
  background: var(--white);
  border-radius: var(--r);
  padding: 13px 15px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-card);
  border: 1px solid var(--border-soft);
  transition: transform .15s;
}
.notice-bar:active { transform: scale(.99); }
.notice-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--g100), var(--g50));
  display: flex; align-items: center; justify-content: center;
  color: var(--g700); font-size: 15px; flex-shrink: 0;
  border: 1px solid var(--g200);
}
.notice-text { flex: 1; min-width: 0; }
.notice-label { font-size: 10px; font-weight: 700; color: var(--g600); margin-bottom: 2px; letter-spacing: .3px; }
.notice-title {
  font-size: 13px; font-weight: 600; color: var(--txt1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-arrow { color: var(--txt4); font-size: 12px; }

/* ══════════════════════════════════════════
   마감 임박 강조 배너 — 새 디자인
══════════════════════════════════════════ */
.urgent-banner {
  margin: 14px 16px 0;
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #ef4444 100%);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(220,38,38,.35);
  position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.urgent-banner:active { transform: scale(.98); }
.urgent-banner::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.urgent-banner::after {
  content: '';
  position: absolute; bottom: -20px; left: 20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.urgent-left { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.urgent-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 1.5px solid rgba(255,255,255,.3);
}
.urgent-label { font-size: 11px; color: rgba(255,255,255,.85); margin-bottom: 3px; font-weight: 500; }
.urgent-title { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: -.3px; }
.urgent-dday {
  font-size: 24px; font-weight: 900; color: #fff;
  background: rgba(255,255,255,.22); padding: 6px 14px;
  border-radius: 12px; letter-spacing: -1px;
  position: relative; z-index: 1;
  border: 1.5px solid rgba(255,255,255,.3);
}

/* ══════════════════════════════════════════
   통계 카드 — 새 디자인
══════════════════════════════════════════ */
.stats-row {
  display: flex; gap: 10px; padding: 14px 16px 0;
}
.stat-card {
  flex: 1; background: var(--white);
  border-radius: var(--r); padding: 16px 10px 14px;
  text-align: center;
  box-shadow: var(--sh-card);
  border: 1px solid var(--border-soft);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute;
  top: -20px; right: -20px;
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(0,0,0,.025);
}
.stat-card.open { 
  background: linear-gradient(145deg, #f0fdf4, #dcfce7); 
  border-color: #86efac; 
}
.stat-card.urgent-s { 
  background: linear-gradient(145deg, #fff7ed, #fed7aa); 
  border-color: #fdba74; 
}
.stat-num { 
  display: block; font-size: 28px; font-weight: 900; 
  color: var(--txt1); line-height: 1; margin-bottom: 4px;
  letter-spacing: -1px;
}
.stat-card.open .stat-num   { color: #16a34a; }
.stat-card.urgent-s .stat-num { color: #ea580c; }
.stat-label { 
  font-size: 11px; color: var(--txt3); font-weight: 600; display: block;
  letter-spacing: .2px;
}

/* 통계 카드 클릭 가능 스타일 */
.stat-clickable {
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.stat-clickable:active { transform: scale(.94); }
.stat-clickable:hover { transform: translateY(-2px); box-shadow: var(--sh); }

/* 화살표 아이콘 */
.stat-arrow {
  display: block; font-size: 9px; color: var(--txt4);
  margin-top: 6px; opacity: .6;
  transition: opacity .15s, transform .15s;
}
.stat-card.open .stat-arrow    { color: #16a34a; }
.stat-card.urgent-s .stat-arrow { color: #ea580c; opacity: .7; }
.stat-clickable:hover .stat-arrow { opacity: 1; transform: translateX(2px); }

/* ══════════════════════════════════════════
   섹션 블록
══════════════════════════════════════════ */
.section-block { padding: 20px 16px 0; }
.section-title { 
  font-size: 17px; font-weight: 800; color: var(--txt1); 
  letter-spacing: -.3px;
}
.section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.btn-more {
  font-size: 12px; color: var(--g700); font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  background: var(--g100); border: 1.5px solid var(--g200);
  transition: background .15s;
}
.btn-more:active { background: var(--g200); }

/* ══════════════════════════════════════════
   카테고리 그리드 — 새 디자인
══════════════════════════════════════════ */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 14px;
}
.cat-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 4px 0 8px; transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.cat-btn:active { transform: scale(.9); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15), 0 1px 4px rgba(0,0,0,.1);
  transition: box-shadow .15s;
}
.cat-btn:hover .cat-icon { box-shadow: 0 6px 22px rgba(0,0,0,.2); }
.cat-btn span {
  font-size: 11px; font-weight: 700; color: var(--txt2);
  text-align: center; line-height: 1.4;
}

/* ══════════════════════════════════════════
   지원사업 카드 — 완전 새 디자인
══════════════════════════════════════════ */
.card-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.programs-page-list { padding: 0 16px; margin-top: 0; }

.program-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border-soft);
  box-shadow: var(--sh-card);
  overflow: hidden; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: cardIn .35s cubic-bezier(.4,0,.2,1) both;
  position: relative;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.program-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.program-card:active { transform: scale(.985); box-shadow: var(--sh); }

/* 카드 왼쪽 컬러 바 (세로) */
.card-color-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
}
.bar-창업 { background: linear-gradient(180deg, #7c3aed, #a855f7); }
.bar-인천 { background: linear-gradient(180deg, #0369a1, #38bdf8); }
.bar-진흥 { background: linear-gradient(180deg, var(--g700), var(--g400)); }
.bar-기업 { background: linear-gradient(180deg, #b45309, #f59e0b); }

.card-main {
  display: flex; align-items: flex-start;
  padding: 14px 14px 0 18px; gap: 12px;
}
.card-cat-dot {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; margin-top: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.cat-창업 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.cat-인천 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.cat-진흥 { background: linear-gradient(135deg, var(--g100), var(--g200)); color: var(--g700); }
.cat-기업 { background: linear-gradient(135deg, #fefce8, #fef08a); color: #b45309; }

.card-info { flex: 1; min-width: 0; }
.card-title {
  font-size: 14px; font-weight: 800; color: var(--txt1);
  line-height: 1.45; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: -.2px;
}
.card-org {
  font-size: 11px; color: var(--txt3); margin-bottom: 8px;
  display: flex; align-items: center; gap: 4px; font-weight: 500;
}
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ── 배지 ── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; white-space: nowrap;
  letter-spacing: .1px;
}
.badge.green  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge.orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge.red    { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge.gray   { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.badge.blue   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge.purple { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge.sky    { background: #f0fdf4; color: var(--g700); border: 1px solid var(--g200); }
.badge.teal   { background: var(--g50); color: var(--g800); border: 1px solid var(--g200); }
.badge.amber  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ── D-day 배지 ── */
.dday-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 900; padding: 3px 10px;
  border-radius: 20px; letter-spacing: -.3px;
}
.dday-badge.urgent { 
  background: linear-gradient(135deg, #dc2626, #ef4444); 
  color: #fff; 
  box-shadow: 0 2px 8px rgba(220,38,38,.4);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(220,38,38,.4); }
  50% { box-shadow: 0 2px 16px rgba(220,38,38,.7); }
}
.dday-badge.soon   { 
  background: linear-gradient(135deg, #ea580c, #f97316); 
  color: #fff; 
  box-shadow: 0 2px 8px rgba(234,88,12,.35);
}
.dday-badge.normal { background: linear-gradient(135deg, var(--g700), var(--g500)); color: #fff; }
.dday-badge.done   { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; }
.dday-badge.coming { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }

.card-body { padding: 8px 14px 10px 18px; }
.card-summary {
  font-size: 12px; color: var(--txt3); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px 12px 18px;
  border-top: 1px solid var(--divider);
  background: #fafffe;
}
.card-date { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--txt3); font-weight: 500; }
.card-date i { font-size: 10px; color: var(--g400); }
.card-amount {
  font-size: 11px; font-weight: 700; color: var(--g700);
  background: var(--g100); padding: 3px 9px;
  border-radius: 20px; border: 1px solid var(--g200);
}

/* ══════════════════════════════════════════
   검색 바 — 새 디자인
══════════════════════════════════════════ */
.search-wrap { padding: 16px 16px 0; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: var(--r);
  padding: 0 14px; 
  border: 2px solid var(--border);
  box-shadow: var(--sh-xs); 
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { 
  border-color: var(--g500); 
  box-shadow: 0 0 0 4px rgba(92,176,64,.12);
}
.search-box i { color: var(--g400); font-size: 16px; flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; outline: none;
  font-size: 14px; color: var(--txt1);
  padding: 14px 0; background: transparent; font-weight: 500;
}
.search-box input::placeholder { color: var(--txt4); font-weight: 400; }
.search-clear { color: var(--txt4); font-size: 14px; padding: 4px; }

/* ══════════════════════════════════════════
   필터 탭 — 새 디자인
══════════════════════════════════════════ */
.filter-tabs-wrap {
  padding: 12px 0 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs-wrap::-webkit-scrollbar { display: none; }
.filter-tabs { display: flex; gap: 7px; padding: 0 16px; white-space: nowrap; }

.filter-tab {
  padding: 8px 16px; border-radius: 24px;
  font-size: 13px; font-weight: 600;
  color: var(--txt3); background: var(--white);
  border: 1.5px solid var(--border);
  transition: all .18s; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.filter-tab.active {
  background: linear-gradient(135deg, var(--g800), var(--g600));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(61,122,42,.3);
  transform: translateY(-1px);
}

/* 세부 필터 */
.sub-filter-wrap {
  padding: 8px 0 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.sub-filter-wrap::-webkit-scrollbar { display: none; }
.sub-filter-row { display: flex; gap: 6px; padding: 0 16px; white-space: nowrap; }
.sub-filter {
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  color: var(--txt3); background: var(--white);
  border: 1.5px solid var(--border);
  transition: all .15s; flex-shrink: 0;
}
.sub-filter.active { 
  background: var(--txt1); color: #fff; border-color: var(--txt1);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* 상태 필터 */
.status-filter-row {
  display: flex; gap: 6px; padding: 10px 16px 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.status-filter-row::-webkit-scrollbar { display: none; }
.status-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 24px;
  font-size: 12px; font-weight: 600;
  color: var(--txt3); background: var(--white);
  border: 1.5px solid var(--border);
  white-space: nowrap; flex-shrink: 0; transition: all .15s;
}
.status-btn.active { 
  color: var(--txt1); border-color: var(--txt2); 
  font-weight: 700; background: var(--g50);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.green  { background: #22c55e; }
.dot.orange { background: #f97316; }
.dot.blue   { background: #3b82f6; }
.dot.gray   { background: #94a3b8; }

/* 결과 헤더 */
.result-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.result-count { font-size: 13px; color: var(--txt3); font-weight: 600; }
.sort-select {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 7px 12px; font-size: 12px; color: var(--txt2);
  background: var(--white); outline: none; font-weight: 500;
  box-shadow: var(--sh-xs);
}

/* 더보기 */
.load-more-wrap { padding: 14px 16px; text-align: center; }
.btn-load-more {
  width: 100%; padding: 14px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r); font-size: 14px; font-weight: 700;
  color: var(--txt2); display: flex; align-items: center;
  justify-content: center; gap: 8px;
  box-shadow: var(--sh-xs);
  transition: background .15s;
}
.btn-load-more:active { background: var(--g50); }

/* ══════════════════════════════════════════
   페이지 헤더 바
══════════════════════════════════════════ */
.page-header-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 6px; color: var(--g700);
}
.page-header-bar i { font-size: 20px; }
.page-header-bar h2 { font-size: 18px; font-weight: 800; color: var(--txt1); }
.page-desc { padding: 2px 16px 8px; font-size: 13px; color: var(--txt4); }

/* ══════════════════════════════════════════
   상세 페이지 — 완전 새 디자인
══════════════════════════════════════════ */
.btn-back {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px;
  font-size: 14px; font-weight: 700; color: var(--g700);
  -webkit-tap-highlight-color: transparent;
}
.btn-back i { font-size: 12px; }

/* 상세 히어로 */
.detail-hero-wrap {
  margin: 0 16px 14px;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.16);
}
.detail-hero-bg {
  padding: 24px 22px 20px;
  position: relative; overflow: hidden;
}
.detail-hero-landscape {
  height: 60px; overflow: hidden; margin: 0 -22px -20px;
}
.detail-hero-landscape svg { width: 100%; height: 100%; }
.detail-status-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-title {
  font-size: 20px; font-weight: 900; color: #fff;
  line-height: 1.4; margin-bottom: 10px; letter-spacing: -.5px;
}
.detail-org { font-size: 13px; color: rgba(255,255,255,.8); font-weight: 500; }
.detail-org i { margin-right: 5px; }

/* D-Day 박스 — 새 디자인 */
.detail-dday-box {
  margin: 0 16px 14px;
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border-soft); padding: 16px 18px;
  box-shadow: var(--sh-card);
}
.dday-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}
.dday-label { font-size: 12px; color: var(--txt3); font-weight: 600; }
.dday-date { font-size: 13px; font-weight: 700; color: var(--txt1); }
.dday-main { display: flex; align-items: center; justify-content: space-between; }
.dday-text { font-size: 13px; color: var(--txt3); font-weight: 500; }
.dday-big { font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.dday-big.urgent { color: var(--red); }
.dday-big.soon   { color: var(--orange); }
.dday-big.normal { color: var(--g600); }
.dday-big.done   { color: #94a3b8; }
.dday-big.coming { color: #8b5cf6; }

.progress-bar-wrap { margin: 14px 0 2px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--txt4); margin-bottom: 6px; font-weight: 500;
}
.progress-bar {
  height: 8px; border-radius: 10px;
  background: var(--g100); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, var(--g700), var(--g400));
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* 상세 섹션 — 새 디자인 */
.detail-section {
  margin: 0 16px 12px;
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border-soft); overflow: hidden;
  box-shadow: var(--sh-card);
}
.detail-section-header {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--divider);
  font-size: 13px; font-weight: 800; color: var(--txt1);
  background: var(--g50);
  letter-spacing: -.2px;
}
.detail-section-header i { color: var(--g600); width: 16px; text-align: center; }
.detail-section-body { padding: 16px; }
.detail-section-body p { font-size: 13px; color: var(--txt2); line-height: 1.75; }
.detail-section-body h4 {
  font-size: 13px; font-weight: 800; color: var(--txt1);
  margin: 14px 0 6px; letter-spacing: -.2px;
}
.detail-section-body h4:first-child { margin-top: 0; }
.detail-section-body ul { padding-left: 0; }
.detail-section-body ul li {
  font-size: 13px; color: var(--txt2); line-height: 1.7;
  padding: 3px 0 3px 18px; position: relative;
}
.detail-section-body ul li::before {
  content: "•"; position: absolute; left: 0; color: var(--g500); font-size: 18px; top: 0px; line-height: 1.7;
}
.detail-section-body ol { counter-reset: ol-cnt; }
.detail-section-body ol li {
  font-size: 13px; color: var(--txt2); line-height: 1.7;
  padding: 4px 0 4px 26px; position: relative; counter-increment: ol-cnt;
}
.detail-section-body ol li::before {
  content: counter(ol-cnt);
  position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--g700); color: #fff;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.detail-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 16px;
}
.detail-info-item {
  background: var(--warm-bg);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
}
.detail-info-item label {
  display: block; font-size: 10px; color: var(--txt4); 
  margin-bottom: 4px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase;
}
.detail-info-item span { font-size: 13px; font-weight: 700; color: var(--txt1); }

/* 액션 버튼 — 새 디자인 */
.detail-actions {
  display: flex; gap: 10px; padding: 4px 16px 28px;
}
.btn-action-main {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--g900), var(--g600));
  color: #fff; border-radius: var(--r); padding: 16px;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 18px rgba(45,90,27,.4);
  letter-spacing: -.3px;
  transition: transform .15s, box-shadow .15s;
}
.btn-action-main:active { transform: scale(.97); box-shadow: 0 2px 10px rgba(45,90,27,.3); }
.btn-action-share {
  width: 54px; height: 54px; border-radius: var(--r);
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt2); font-size: 18px;
  align-self: center;
  box-shadow: var(--sh-xs);
  transition: background .15s;
}
.btn-action-share:active { background: var(--g50); }

/* ══════════════════════════════════════════
   이용 안내
══════════════════════════════════════════ */
.guide-content { padding: 4px 16px 24px; }
.guide-block {
  background: var(--white); border-radius: var(--r);
  padding: 20px; margin-bottom: 12px;
  border: 1px solid var(--border-soft); box-shadow: var(--sh-card);
}
.guide-block h3 {
  font-size: 15px; font-weight: 800; color: var(--txt1);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
  letter-spacing: -.3px;
}
.guide-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--g800), var(--g600));
  color: #fff; font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.guide-block p { font-size: 13px; color: var(--txt2); line-height: 1.75; }
.guide-block ul { margin-top: 8px; }
.guide-block ul li {
  font-size: 13px; color: var(--txt2); line-height: 1.7;
  padding: 5px 0 5px 16px; position: relative;
}
.guide-block ul li::before { content:"•"; position:absolute; left:0; color: var(--g500); font-size: 18px; line-height: 1.7; top: 0; }

.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item > i {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--g100), var(--g50));
  color: var(--g700);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  border: 1px solid var(--g200);
}
.contact-item > div { display: flex; flex-direction: column; gap: 3px; }
.contact-item strong { font-size: 13px; color: var(--txt1); font-weight: 700; }
.contact-item span { font-size: 12px; color: var(--g700); font-weight: 500; }

/* ══════════════════════════════════════════
   센터 안내 카드
══════════════════════════════════════════ */
.info-card-center {
  background: linear-gradient(145deg, var(--g900), var(--g700));
  border-radius: var(--r-lg); padding: 26px 22px;
  text-align: center; color: #fff; margin-bottom: 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 6px 24px rgba(45,90,27,.4);
}
.info-card-center::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.info-card-center::after {
  content: ''; position: absolute; bottom: -30px; left: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.info-center-icon {
  width: 56px; height: 56px; border-radius: 18px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 24px;
  border: 1.5px solid rgba(255,255,255,.3);
  position: relative; z-index: 1;
}
.info-card-center h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; position: relative; z-index: 1; }
.info-card-center p { font-size: 12px; opacity: .8; margin-bottom: 18px; line-height: 1.6; position: relative; z-index: 1; }
.info-center-btns { display: flex; gap: 10px; position: relative; z-index: 1; }
.btn-center-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px; border-radius: var(--r);
  font-size: 13px; font-weight: 700; transition: opacity .15s;
}
.btn-center-action:active { opacity: .8; }
.btn-center-action.tel {
  background: rgba(255,255,255,.18); color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.btn-center-action.web { 
  background: #fff; color: var(--g800);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* ══════════════════════════════════════════
   빈 상태
══════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px; text-align: center;
}
.empty-state i { font-size: 48px; color: var(--g300); margin-bottom: 14px; }
.empty-state h4 { font-size: 16px; font-weight: 700; color: var(--txt2); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--txt4); }

/* ══════════════════════════════════════════
   하단 탭 바 — 새 디자인
══════════════════════════════════════════ */
.bottom-nav {
  height: var(--bottom-h);
  background: var(--white);
  display: flex; flex-shrink: 0; z-index: 100;
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--txt4); font-size: 10px; font-weight: 600;
  transition: color .2s; padding-bottom: 4px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-item i { font-size: 21px; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.nav-item span { font-size: 10px; font-weight: 600; letter-spacing: .1px; }
.nav-item.active { color: var(--g700); }
.nav-item.active i {
  transform: translateY(-3px) scale(1.1);
  color: var(--g700);
}
.nav-item.active span { color: var(--g700); font-weight: 800; }
/* 활성 인디케이터 */
.nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: linear-gradient(135deg, var(--g700), var(--g500));
  border-radius: 0 0 6px 6px;
}

/* ══════════════════════════════════════════
   알림 모달
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(3px);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── 통합 알림 바텀시트 ── */
.am-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.am-sheet {
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px;
  max-height: min(88vh, 700px);
  min-height: 200px;
  display: flex; flex-direction: column;
  animation: slideUp .32s cubic-bezier(.32,1,.4,1);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 48px rgba(0,0,0,.25);
}
.am-handle {
  width: 44px; height: 4px;
  background: #e2e8f0; border-radius: 2px;
  margin: 12px auto 0; flex-shrink: 0;
}
.am-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}
.am-header-left { display: flex; align-items: center; gap: 12px; }
.am-header-icon {
  font-size: 26px; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--g100), var(--g50));
  border-radius: 14px; border: 1.5px solid var(--g200);
  display: flex; align-items: center; justify-content: center;
}
.am-header-text .am-title { font-size: 17px; font-weight: 800; color: var(--txt1); }
.am-header-text .am-subtitle { font-size: 12px; color: var(--txt3); margin-top: 2px; }
.am-close-btn { 
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--warm-bg); color: var(--txt3);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; border: 1px solid var(--border);
}
.am-body {
  overflow-y: auto; padding: 16px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 16px;
}
.am-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--g50); border: 1.5px solid var(--g200);
  border-radius: var(--r); padding: 15px 16px;
}
.am-toggle-info { display: flex; flex-direction: column; gap: 4px; }
.am-toggle-title { font-size: 14px; font-weight: 700; color: var(--txt1); }
.am-toggle-desc { font-size: 11px; color: var(--txt3); }

.am-toggle-switch {
  position: relative; display: inline-block;
  width: 52px; height: 30px; flex-shrink: 0;
}
.am-toggle-switch input { opacity: 0; width: 0; height: 0; }
.am-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #d1d5db; border-radius: 30px;
  transition: background .25s;
}
.am-toggle-slider::before {
  content: ''; position: absolute;
  width: 24px; height: 24px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.am-toggle-switch input:checked + .am-toggle-slider { background: var(--g600); }
.am-toggle-switch input:checked + .am-toggle-slider::before { transform: translateX(22px); }

.am-section { display: flex; flex-direction: column; gap: 10px; }
.am-section-label {
  font-size: 13px; font-weight: 700; color: var(--txt1);
  display: flex; align-items: center; gap: 6px;
}
.am-section-icon { font-size: 15px; }
.am-section-hint { font-size: 11px; color: var(--txt4); font-weight: 500; margin-left: 4px; }
.am-day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.am-day-btn {
  display: block; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--r);
  padding: 12px 8px; text-align: center;
  transition: all .15s; background: var(--white);
}
.am-day-btn input { display: none; }
.am-day-btn .am-day-content { display: flex; flex-direction: column; gap: 3px; }
.am-day-num { font-size: 18px; font-weight: 900; color: var(--txt3); }
.am-day-sub { font-size: 11px; color: var(--txt4); }
.am-day-btn:has(input:checked) {
  border-color: var(--g600); background: var(--g50);
}
.am-day-btn:has(input:checked) .am-day-num { color: var(--g700); }
.am-day-btn:has(input:checked) .am-day-sub { color: var(--g600); }

.am-time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.am-time-col { display: flex; flex-direction: column; gap: 6px; }
.am-time-label { font-size: 11px; color: var(--txt4); font-weight: 600; }
.am-select {
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 10px 8px; font-size: 14px; color: var(--txt1);
  background: var(--white); outline: none; font-weight: 600;
  font-family: var(--font);
}
.am-time-preview {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: var(--g50);
  border-radius: var(--r-sm); border: 1.5px solid var(--g200);
  font-size: 13px; color: var(--g700); font-weight: 600;
}
.am-time-preview i { color: var(--g500); }
.am-save-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--g900), var(--g600));
  color: #fff; border-radius: var(--r);
  font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(45,90,27,.35);
  letter-spacing: -.2px;
  margin-top: 4px;
}

/* 알림 리스트 아이템 */
.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--g50); border-radius: var(--r);
  padding: 14px; cursor: pointer; border: 1.5px solid var(--border);
  transition: background .15s;
}
.notif-item:active { background: var(--g100); }
.notif-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.notif-icon.urgent { background: var(--red-light); color: var(--red); }
.notif-icon.soon   { background: var(--orange-lt); color: var(--orange); }
.notif-title {
  font-size: 13px; font-weight: 700; color: var(--txt1); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-desc { font-size: 11px; color: var(--txt4); font-weight: 500; }

/* ══════════════════════════════════════════
   벨 아이콘
══════════════════════════════════════════ */
#btn-bell.btn-icon {
  width: auto !important;
  height: auto !important;
  min-width: 44px; max-width: 60px;
  min-height: 40px;
  padding: 4px 6px !important;
  flex-direction: column !important; gap: 2px;
  border-radius: 12px;
  display: flex !important;
  align-items: center !important; justify-content: center !important;
  font-size: 17px !important;
}
.bell-inner {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px; font-size: 17px;
}
.bell-inner .notif-dot { top: -2px; right: -2px; width: 7px; height: 7px; }
.bell-status {
  font-size: 8px; font-weight: 700; letter-spacing: -.3px;
  border-radius: 5px; padding: 1px 5px;
  white-space: nowrap; line-height: 1.4; display: block;
}
.bell-status-on {
  background: rgba(187,247,208,.9); color: #14532d;
  border: 1px solid rgba(134,239,172,.7);
}
.bell-status-off {
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.18);
}

/* ══════════════════════════════════════════
   알림 설정 모달 박스 (구버전 호환)
══════════════════════════════════════════ */
.alarm-modal-box {
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  width: 100%; max-width: 480px;
  max-height: min(85vh, 680px);
  min-height: 200px;
  display: flex; flex-direction: column;
  animation: slideUp .3s cubic-bezier(.32,1,.4,1);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 40px rgba(0,0,0,.22);
}
.alarm-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 2px solid var(--g100);
  flex-shrink: 0; background: #ffffff;
}
.alarm-modal-title { display: flex; align-items: center; gap: 12px; }
.alarm-modal-icon {
  font-size: 28px; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--g100), var(--g50));
  border-radius: 14px; border: 1.5px solid var(--g200);
  display: flex; align-items: center; justify-content: center;
}
.alarm-modal-title h3 { font-size: 17px; font-weight: 800; color: var(--txt1); margin-bottom: 2px; }
.alarm-modal-title p { font-size: 12px; color: var(--txt3); }
.alarm-modal-body {
  overflow-y: auto; padding: 16px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 16px;
}
.alarm-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--g50); border: 1.5px solid var(--g200);
  border-radius: var(--r); padding: 14px 16px;
}
.alarm-toggle-info { display: flex; flex-direction: column; gap: 3px; }
.alarm-toggle-title { font-size: 14px; font-weight: 700; color: var(--txt1); }
.alarm-toggle-desc { font-size: 11px; color: var(--txt3); }
.toggle-switch {
  position: relative; display: inline-block;
  width: 52px; height: 30px; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.toggle-switch input[type="checkbox"] {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
}
.toggle-slider {
  position: absolute; inset: 0;
  background: #d1d5db; border-radius: 30px;
  transition: background .25s; cursor: pointer; display: block;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 24px; height: 24px; left: 3px; top: 3px;
  background: #ffffff; border-radius: 50%;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ══════════════════════════════════════════
   반응형
══════════════════════════════════════════ */
@media (min-width: 481px) {
  .app-wrapper {
    border-radius: 32px; top: 16px; bottom: 16px; height: auto;
  }
}

/* ══════════════════════════════════════════
   통계 카드 아이콘 추가 스타일
══════════════════════════════════════════ */
.stat-icon {
  font-size: 20px; margin-bottom: 4px;
  display: block; opacity: .7;
}

/* ══════════════════════════════════════════
   섹션 제목 아이콘 박스
══════════════════════════════════════════ */
.section-icon-box {
  width: 28px; height: 28px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   카드 호버 효과 향상
══════════════════════════════════════════ */
.program-card:hover .card-title {
  color: var(--g800);
}

/* ══════════════════════════════════════════
   마감임박 카드 특별 스타일
══════════════════════════════════════════ */
.program-card.urgent-card {
  border-color: #fed7aa !important;
  box-shadow: 0 4px 16px rgba(249,115,22,.15) !important;
}

/* ══════════════════════════════════════════
   상세 페이지 — 연락처 버튼
══════════════════════════════════════════ */
.detail-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g50); color: var(--g700);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-sm); padding: 8px 14px;
  font-size: 13px; font-weight: 700;
  transition: background .15s;
}
.detail-contact-btn:active { background: var(--g100); }

/* ══════════════════════════════════════════
   페이지 전환 애니메이션
══════════════════════════════════════════ */
.page {
  animation: pageIn .3s ease both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════
   AI 탭 / 맞춤형 분석 관련 (기존 앱에서 추가)
══════════════════════════════════════════ */
.ai-form-section {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border-soft); overflow: hidden;
  box-shadow: var(--sh-card); margin: 0 16px 12px;
}
.ai-form-header {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--divider);
  font-size: 13px; font-weight: 800; color: var(--txt1);
  background: var(--g50);
}
.ai-form-header i { color: var(--g600); }
.ai-form-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--txt3); margin-bottom: 6px; letter-spacing: .3px;
  text-transform: uppercase;
}
.ai-field select, .ai-field input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 14px; color: var(--txt1);
  background: var(--white); outline: none; font-weight: 500;
  transition: border-color .2s;
}
.ai-field select:focus, .ai-field input:focus { border-color: var(--g500); }
.ai-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip {
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  color: var(--txt3); background: var(--white);
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all .15s;
}
.ai-chip.selected {
  background: var(--g700); color: #fff; border-color: var(--g700);
  box-shadow: 0 2px 10px rgba(61,122,42,.3);
}

/* ══════════════════════════════════════════
   업데이트 페이지 헤더 그라디언트 공통
══════════════════════════════════════════ */
.page-hero {
  padding: 24px 16px 0; overflow: hidden; position: relative;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h2 {
  font-size: 22px; font-weight: 900; color: #fff;
  margin-bottom: 5px; letter-spacing: -.5px;
}
.page-hero p {
  font-size: 13px; color: rgba(255,255,255,.8);
  margin-bottom: 18px; line-height: 1.6;
}
.page-hero-wave {
  width: 100%; height: 52px; display: block; margin-bottom: -1px;
}
