/*
 * 보듬 (Bodeum) — Application Styles (v4.0)
 * 따뜻한 복지 관리 앱 · 2025 모던 디자인
 */

/* ── CSS 변수 (보듬 디자인 토큰) ──────────────────────────── */
:root {
  --color-primary: #0D9488;
  --color-primary-light: #2DD4BF;
  --color-primary-dark: #0F766E;
  --color-accent: #F97316;
  --color-accent-light: #FDBA74;
  --color-bg: #FEFCE8;
  --color-surface: #ffffff;
  --color-text: #1C1917;
  --color-text-secondary: #57534E;
  --color-text-muted: #A8A29E;
  --color-border: #E7E5E4;
  --color-border-light: #F5F5F4;
  --color-success: #059669;
  --color-danger: #DC2626;
  --color-warning: #D97706;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 3px rgba(13, 148, 136, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px rgba(13, 148, 136, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 36px rgba(13, 148, 136, 0.1), 0 4px 10px rgba(0, 0, 0, 0.04);
  --font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --nav-height: 56px;
  --bottom-nav-height: 64px;
  --container-max: 720px;
}

/* ── 리셋 & 베이스 ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}

/* ── SVG 크기 제어 (글로벌) ──────────────────────────────── */
svg:not(.google-icon) {
  flex-shrink: 0;
}

/* ── Tailwind 호환 유틸리티 클래스 ────────────────────────── */
/* 크기 */
.w-2 {
  width: 0.5rem;
}

.h-2 {
  height: 0.5rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-7 {
  width: 1.75rem;
}

.h-7 {
  height: 1.75rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-9 {
  width: 2.25rem;
}

.h-9 {
  height: 2.25rem;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-11 {
  width: 2.75rem;
}

.h-11 {
  height: 2.75rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-28 {
  width: 7rem;
}

.h-28 {
  height: 7rem;
}

.w-36 {
  width: 9rem;
}

.h-36 {
  height: 9rem;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0;
}

.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* FLex & Grid */
.inline-flex {
  display: inline-flex;
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-baseline {
  align-items: baseline;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2\.5 {
  gap: 0.625rem;
}

.gap-3\.5 {
  gap: 0.875rem;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* 간격 */
.mb-0\.5 {
  margin-bottom: 0.125rem;
}

.mb-1\.5 {
  margin-bottom: 0.375rem;
}

.mb-2\.5 {
  margin-bottom: 0.625rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1\.5 {
  margin-top: 0.375rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.pt-4 {
  padding-top: 1rem;
}

.space-y-2>*+* {
  margin-top: 0.5rem;
}

.space-y-2\.5>*+* {
  margin-top: 0.625rem;
}

.space-y-1>*+* {
  margin-top: 0.25rem;
}

/* 타이포그래피 */
.text-\[10px\] {
  font-size: 0.625rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.leading-relaxed {
  line-height: 1.625;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 색상 — 텍스트 */
.text-white {
  color: #ffffff;
}

.text-slate-300 {
  color: #cbd5e1;
}

.text-slate-400 {
  color: #94a3b8;
}

.text-slate-500 {
  color: #64748b;
}

.text-slate-600 {
  color: #475569;
}

.text-slate-700 {
  color: #334155;
}

.text-slate-800 {
  color: #1e293b;
}

.text-blue-100 {
  color: #dbeafe;
}

.text-blue-200 {
  color: #bfdbfe;
}

.text-indigo-400 {
  color: #818cf8;
}

.text-indigo-600 {
  color: #4f46e5;
}

.text-indigo-700 {
  color: #4338ca;
}

.text-emerald-600 {
  color: #059669;
}

.text-emerald-700 {
  color: #047857;
}

.text-sky-600 {
  color: #0284c7;
}

.text-violet-600 {
  color: #7c3aed;
}

.text-amber-200 {
  color: #fde68a;
}

.text-amber-600 {
  color: #d97706;
}

.text-amber-700 {
  color: #b45309;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.text-red-700 {
  color: #b91c1c;
}

.text-rose-600 {
  color: #e11d48;
}

.text-rose-700 {
  color: #be123c;
}

/* 색상 — 배경 */
.bg-white {
  background: white;
}

.bg-slate-50 {
  background: #f8fafc;
}

.bg-slate-100 {
  background: #f1f5f9;
}

.bg-blue-100 {
  background: #dbeafe;
}

.bg-indigo-50 {
  background: #eef2ff;
}

.bg-indigo-100 {
  background: #e0e7ff;
}

.bg-indigo-600 {
  background: #4f46e5;
}

.bg-indigo-700 {
  background: #4338ca;
}

.bg-emerald-50 {
  background: #ecfdf5;
}

.bg-emerald-100 {
  background: #d1fae5;
}

.bg-emerald-200 {
  background: #a7f3d0;
}

.bg-amber-100 {
  background: #fef3c7;
}

.bg-amber-200 {
  background: #fde68a;
}

.bg-violet-100 {
  background: #ede9fe;
}

.bg-sky-100 {
  background: #e0f2fe;
}

.bg-red-50 {
  background: #fef2f2;
}

.bg-red-100 {
  background: #fee2e2;
}

.bg-rose-50 {
  background: #fff1f2;
}

.bg-rose-100 {
  background: #ffe4e6;
}

.bg-white\/5 {
  background: rgba(255, 255, 255, 0.05);
}

.bg-white\/3 {
  background: rgba(255, 255, 255, 0.03);
}

.bg-white\/10 {
  background: rgba(255, 255, 255, 0.1);
}

.bg-white\/15 {
  background: rgba(255, 255, 255, 0.15);
}

.bg-white\/20 {
  background: rgba(255, 255, 255, 0.2);
}

.bg-amber-400\/15 {
  background: rgba(251, 191, 36, 0.15);
}

.bg-amber-400 {
  background: #fbbf24;
}

.bg-indigo-50\/50 {
  background: rgba(238, 242, 255, 0.5);
}

/* 그라디언트 */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops, #000, #fff));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops, #000, #fff));
}

.from-blue-600 {
  --tw-gradient-from: #2563eb;
  --tw-gradient-stops: #2563eb, var(--tw-gradient-to, transparent);
}

.via-indigo-600 {
  --tw-gradient-stops: var(--tw-gradient-from), #4f46e5, var(--tw-gradient-to, transparent);
}

.to-indigo-700 {
  --tw-gradient-to: #4338ca;
}

.from-indigo-600 {
  --tw-gradient-from: #4f46e5;
  --tw-gradient-stops: #4f46e5, var(--tw-gradient-to, transparent);
}

.to-blue-600 {
  --tw-gradient-to: #2563eb;
}

.from-blue-900 {
  --tw-gradient-from: #1e3a8a;
  --tw-gradient-stops: #1e3a8a, var(--tw-gradient-to, transparent);
}

.via-indigo-900 {
  --tw-gradient-stops: var(--tw-gradient-from), #312e81, var(--tw-gradient-to, transparent);
}

.to-indigo-800 {
  --tw-gradient-to: #3730a3;
}

.from-violet-300 {
  --tw-gradient-from: #c4b5fd;
  --tw-gradient-stops: #c4b5fd, var(--tw-gradient-to, transparent);
}

.to-violet-400 {
  --tw-gradient-to: #a78bfa;
}

.from-sky-300 {
  --tw-gradient-from: #7dd3fc;
  --tw-gradient-stops: #7dd3fc, var(--tw-gradient-to, transparent);
}

.to-sky-400 {
  --tw-gradient-to: #38bdf8;
}

.from-indigo-50 {
  --tw-gradient-from: #eef2ff;
  --tw-gradient-stops: #eef2ff, var(--tw-gradient-to, transparent);
}

.to-blue-50 {
  --tw-gradient-to: #eff6ff;
}

.from-slate-50 {
  --tw-gradient-from: #f8fafc;
  --tw-gradient-stops: #f8fafc, var(--tw-gradient-to, transparent);
}

.to-slate-100\/50 {
  --tw-gradient-to: rgba(241, 245, 249, 0.5);
}

.from-emerald-50 {
  --tw-gradient-from: #ecfdf5;
  --tw-gradient-stops: #ecfdf5, var(--tw-gradient-to, transparent);
}

.to-emerald-100\/50 {
  --tw-gradient-to: rgba(209, 250, 229, 0.5);
}

.from-rose-50 {
  --tw-gradient-from: #fff1f2;
  --tw-gradient-stops: #fff1f2, var(--tw-gradient-to, transparent);
}

.to-rose-100\/50 {
  --tw-gradient-to: rgba(255, 228, 230, 0.5);
}

.from-emerald-400 {
  --tw-gradient-from: #34d399;
  --tw-gradient-stops: #34d399, var(--tw-gradient-to, transparent);
}

.to-emerald-500 {
  --tw-gradient-to: #10b981;
}

.from-amber-400 {
  --tw-gradient-from: #fbbf24;
  --tw-gradient-stops: #fbbf24, var(--tw-gradient-to, transparent);
}

.to-amber-500 {
  --tw-gradient-to: #f59e0b;
}

.from-red-400 {
  --tw-gradient-from: #f87171;
  --tw-gradient-stops: #f87171, var(--tw-gradient-to, transparent);
}

.to-red-500 {
  --tw-gradient-to: #ef4444;
}

/* 테두리 */
.border {
  border: 1px solid var(--color-border);
}

.border-t {
  border-top: 1px solid var(--color-border);
}

.border-b {
  border-bottom: 1px solid var(--color-border-light);
}

.border-r-2 {
  border-right: 2px solid;
}

.border-slate-50 {
  border-color: #f8fafc;
}

.border-slate-100 {
  border-color: #f1f5f9;
}

.border-slate-200 {
  border-color: #e2e8f0;
}

.border-indigo-100 {
  border-color: #e0e7ff;
}

.border-indigo-100\/50 {
  border-color: rgba(224, 231, 255, 0.5);
}

.border-dashed {
  border-style: dashed;
}

.border-slate-400 {
  border-color: #94a3b8;
}

.last\:border-0:last-child {
  border: none;
}

/* 라운드 */
.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* 그림자 */
.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.shadow-xl {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* 위치 & overflow */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.fixed {
  position: fixed;
}

.overflow-hidden {
  overflow: hidden;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.-translate-y-0\.5 {
  transform: translateY(-0.125rem);
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.translate-y-1\/2 {
  transform: translateY(50%);
}

.translate-x-1\/2 {
  transform: translateX(50%);
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.right-1\/4 {
  right: 25%;
}

.top-1\/2 {
  top: 50%;
}

/* 효과 */
.opacity-90 {
  opacity: 0.9;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.drop-shadow-sm {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Transition */
.transition {
  transition: all 0.2s ease;
}

.transition-all {
  transition: all 0.2s ease;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-1000 {
  transition-duration: 1s;
}

.ease-out {
  transition-timing-function: ease-out;
}

/* Hover */
.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.hover\:opacity-90:hover {
  opacity: 0.9;
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:-translate-y-0\.5:hover {
  transform: translateY(-0.125rem);
}

.hover\:bg-slate-100:hover {
  background: #f1f5f9;
}

.hover\:bg-red-50:hover {
  background: #fef2f2;
}

.hover\:bg-red-100:hover {
  background: #fee2e2;
}

.hover\:bg-emerald-200:hover {
  background: #a7f3d0;
}

.hover\:bg-amber-200:hover {
  background: #fde68a;
}

.hover\:bg-indigo-200:hover {
  background: #c7d2fe;
}

.hover\:bg-indigo-700:hover {
  background: #4338ca;
}

.hover\:text-indigo-600:hover {
  color: #4f46e5;
}

.hover\:text-red-700:hover {
  color: #b91c1c;
}

/* Focus */
.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.3);
}

.focus\:ring-indigo-200:focus {
  box-shadow: 0 0 0 3px rgba(199, 210, 254, 0.6);
}

.focus\:ring-indigo-500:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.focus\:border-indigo-400:focus {
  border-color: #818cf8;
}

.outline-none {
  outline: none;
}

/* cursor */
.cursor-pointer {
  cursor: pointer;
}

/* status badge (보호자/혜택에서 사용) */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* 스태거 애니메이션 */
.stagger-1 {
  animation-delay: 0.05s;
}

.stagger-2 {
  animation-delay: 0.1s;
}

.stagger-3 {
  animation-delay: 0.15s;
}

.stagger-4 {
  animation-delay: 0.2s;
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s ease-out both;
}

.card-interactive {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── 상단 네비게이션 ─────────────────────────────────────── */
.top-nav {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 60%, #14B8A6 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(30, 58, 138, 0.3);
}

.top-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.top-nav-logo {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.top-nav-logo svg {
  color: white;
}

.top-nav-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.top-nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-nav-username {
  font-size: 0.875rem;
  color: rgba(191, 219, 254, 0.9);
  font-weight: 500;
}

.top-nav-logout {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  transition: background 0.15s ease;
  font-weight: 500;
  text-decoration: none;
}

.top-nav-logout:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* ── Flash 메시지 ────────────────────────────────────────── */
.flash-container {
  max-width: var(--container-max);
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
}

.flash {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  animation: fadeInUp 0.3s ease-out;
  box-shadow: var(--shadow-sm);
}

.flash svg {
  flex-shrink: 0;
}

.flash-notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.flash-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ── 메인 콘텐츠 ─────────────────────────────────────────── */
.main-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 6rem;
  min-height: calc(100vh - var(--nav-height));
}

/* ── 하단 네비게이션 ─────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--bottom-nav-height);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.5rem 1rem;
  min-width: 4rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
}

.bottom-nav-item:hover {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.bottom-nav-item span {
  font-size: 0.6875rem;
  font-weight: 700;
}

.bottom-nav-item.active {
  color: var(--color-primary);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
}

/* ── 범용 카드 ───────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

/* ── 섹션 제목 ───────────────────────────────────────────── */
.section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title svg {
  color: var(--color-primary);
}

/* ── 버튼 ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0D9488, #0F766E);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-border-light);
}

.btn-danger {
  background: #fef2f2;
  color: var(--color-danger);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

/* ── 폼 필드 ─────────────────────────────────────────────── */
.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.375rem;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field input[type="number"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: var(--font-family);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  background: #f8fafc;
  color: var(--color-text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
  background: white;
}

/* ── 뱃지 ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  gap: 0.25rem;
}

.badge-primary {
  background: #eef2ff;
  color: var(--color-primary);
}

.badge-success {
  background: #ecfdf5;
  color: #065f46;
}

.badge-warning {
  background: #fffbeb;
  color: #92400e;
}

.badge-danger {
  background: #fef2f2;
  color: #991b1b;
}

/* ── 유틸리티 ────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-primary {
  color: var(--color-primary);
}

.text-success {
  color: var(--color-success);
}

.text-danger {
  color: var(--color-danger);
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.p-0 {
  padding: 0;
}

.p-3 {
  padding: 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 0.75rem;
}

.gap-3 {
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rounded-full {
  border-radius: 999px;
}

.hidden {
  display: none;
}

/* ── 게이지 바 ───────────────────────────────────────────── */
.gauge-container {
  background: #e2e8f0;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.gauge-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(90deg, #10b981, #3b82f6);
}

.gauge-bar.warning {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* ── Devise 폼 스타일 (로그인/회원가입) ───────────────── */
.devise-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.devise-hero {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 60%, #14B8A6 100%);
  padding: 3rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.devise-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.devise-hero-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  backdrop-filter: blur(8px);
}

.devise-hero-icon svg {
  color: white;
}

.devise-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.devise-hero p {
  font-size: 0.875rem;
  color: rgba(191, 219, 254, 0.9);
}

.devise-form {
  flex: 1;
  max-width: 28rem;
  width: 100%;
  margin: -2rem auto 0;
  padding: 0 1rem 2rem;
  position: relative;
  z-index: 10;
}

.devise-form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.devise-form h2 {
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.devise-form .actions input[type="submit"],
.devise-form .actions button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #0D9488, #0F766E);
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  font-family: var(--font-family);
}

.devise-form .actions input:hover,
.devise-form .actions button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.devise-form a {
  color: var(--color-primary);
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 500;
}

.devise-form a:hover {
  text-decoration: underline;
}

.devise-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
}

.devise-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* ── Google 로그인 버튼 ──────────────────────────────────── */
.devise-separator {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  gap: 0.75rem;
}

.devise-separator::before,
.devise-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.devise-separator span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.google-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-family);
}

.google-login-btn:hover {
  background: var(--color-bg);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.google-icon {
  flex-shrink: 0;
}

/* ── Devise 에러 메시지 ──────────────────────────────────── */
.devise-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.devise-error-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 0.375rem;
}

.devise-error-list {
  font-size: 0.8125rem;
  color: #dc2626;
  list-style: disc;
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

/* ── 빈 상태 (Empty State) ──────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ── 체크박스 ────────────────────────────────────────────── */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  accent-color: var(--color-primary);
}

.checkbox-row label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
  font-weight: 400;
}

/* ── 리스트 아이템 ───────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  margin-bottom: 0.5rem;
  transition: all 0.15s ease;
}

.list-item:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.list-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.list-item-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 애니메이션 ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* ── 그라디언트 텍스트 ───────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 접근성: 포커스 링 ──────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── 커스텀 스크롤바 ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ── 반응형 ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .main-content {
    padding: 1rem 0.75rem 5rem;
  }

  .card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  :root {
    --container-max: 720px;
  }

  body {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-max: 800px;
  }
}

/* ── 아이콘 박스 ─────────────────────────────────────────── */
.icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-white {
  background: rgba(255, 255, 255, 0.2);
}

.icon-box-green {
  background: #ecfdf5;
}

.icon-box-blue {
  background: #e0f2fe;
}

.icon-box-purple {
  background: #ede9fe;
}

.icon-box-indigo {
  background: #eef2ff;
}

/* ── D-Day 카드 ──────────────────────────────────────────── */
.dday-card {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 60%, #14B8A6 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.dday-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  border-radius: 50%;
}

.dday-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.dday-header-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.dday-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(191, 219, 254, 0.9);
}

.dday-count {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.dday-detail {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.dday-month {
  font-size: 1.125rem;
  font-weight: 700;
}

.dday-date {
  font-size: 0.8125rem;
  color: rgba(191, 219, 254, 0.8);
  margin-top: 0.25rem;
}

.dday-detail-right {
  text-align: right;
}

.dday-amount {
  font-size: 1.375rem;
  font-weight: 900;
}

.dday-amount-label {
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.8);
  margin-top: 0.25rem;
}

.dday-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #fde68a;
  position: relative;
  z-index: 1;
}

.dday-notice-dot {
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ── 저축 가능액 박스 ────────────────────────────────────── */
.savings-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.savings-amount {
  font-size: 1.125rem;
  font-weight: 900;
  color: #059669;
}

/* ── 정부매칭 통장 추천 ──────────────────────────────────── */
.recommend-box {
  border: 1px solid #e0e7ff;
  background: rgba(238, 242, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.recommend-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}

.recommend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(224, 231, 255, 0.5);
  font-size: 0.875rem;
}

.recommend-item:last-child {
  border-bottom: none;
}

/* ── 수입/지출 요약 박스 ─────────────────────────────────── */
.summary-box {
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.summary-income {
  background: linear-gradient(135deg, #ecfdf5, rgba(167, 243, 208, 0.3));
}

.summary-expense {
  background: linear-gradient(135deg, #fff1f2, rgba(254, 202, 202, 0.3));
}

.summary-label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.summary-income .summary-label {
  color: #059669;
}

.summary-expense .summary-label {
  color: #e11d48;
}

.summary-value {
  font-size: 1.125rem;
  font-weight: 900;
}

.summary-value.income {
  color: #047857;
}

.summary-value.expense {
  color: #e11d48;
}

/* ── 이벤트 리스트 ───────────────────────────────────────── */
.event-list {
  display: flex;
  flex-direction: column;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.event-item:last-child {
  border-bottom: none;
}

.event-date-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.event-date-box.income {
  background: #ecfdf5;
  color: #047857;
}

.event-date-box.expense {
  background: #fff1f2;
  color: #e11d48;
}

.event-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.event-dday {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.event-amount {
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.event-amount.income {
  color: #059669;
}

.event-amount.expense {
  color: #e11d48;
}

/* ── 혜택 리스트 ─────────────────────────────────────────── */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.benefit-item:hover {
  background: var(--color-border-light);
}

.benefit-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.benefit-link {
  width: 36px;
  height: 36px;
  background: #eef2ff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: background 0.15s ease;
  text-decoration: none;
}

.benefit-link:hover {
  background: #e0e7ff;
  text-decoration: none;
}

/* ── 면책 배너 ───────────────────────────────────────────── */
.disclaimer-banner {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
}

/* ── 이벤트 액션 버튼 ─────────────────────────────────────── */
.event-actions {
  display: flex;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.event-action-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  text-decoration: none;
}

.event-action-btn:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  text-decoration: none;
}

.event-action-btn.danger:hover {
  color: var(--color-danger);
  background: #fef2f2;
}

/* button_to는 form 안에 button을 만드므로 form 자체 스타일 제거 */
.event-actions form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* ── 유형 선택 라디오 버튼 (현금흐름 폼) ──────────────── */
.event-type-option {
  position: relative;
  cursor: pointer;
}

.event-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.event-type-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  background: white;
}

.event-type-option input[type="radio"]:checked+.event-type-label.income {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.event-type-option input[type="radio"]:checked+.event-type-label.expense {
  border-color: #e11d48;
  background: #fff1f2;
  color: #be123c;
}

/* ── 호버 툴팁 ───────────────────────────────────────────── */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.tooltip-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  padding: 1rem;
  z-index: 200;
  animation: fadeInUp 0.15s ease-out;
}

.tooltip-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: white;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

.tooltip-wrapper:hover .tooltip-popup {
  display: block;
}

.tooltip-popup-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.tooltip-popup-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 0.5rem 0;
}

.tooltip-popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  color: var(--color-text-secondary);
}

.tooltip-popup-row span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tooltip-popup-row.highlight {
  font-weight: 700;
  color: var(--color-text);
}

.tooltip-popup-row.highlight span:last-child {
  font-weight: 800;
}

.tooltip-popup-row.danger {
  color: #dc2626;
}

.tooltip-popup-row.danger span:last-child {
  font-weight: 800;
}

.tooltip-popup-row.safe {
  color: #059669;
}

.tooltip-popup-row.safe span:last-child {
  font-weight: 800;
}

/* ── 정보 배너 ───────────────────────────────────────────── */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.info-banner strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ── 안내 노트 (작은 설명) ──────────────────────────────── */
.info-note {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
}

.info-note strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ── 보호자 대리 조회 배너 ────────────────────────────────── */
.care-view-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #92400e;
  flex-wrap: wrap;
}

/* ── 게이지 마커 ──────────────────────────────────────────── */
.gauge-marker {
  position: absolute;
  top: 0;
  height: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-marker-line {
  width: 2px;
  height: 28px;
  border-right: 2px dashed #94a3b8;
}

.gauge-marker-label-top {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: #94a3b8;
  white-space: nowrap;
  font-weight: 500;
}

.gauge-marker-label-bottom {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: #ef4444;
  white-space: nowrap;
  font-weight: 700;
}

/* 내 소득인정액 마커 */
.gauge-my-income {
  position: absolute;
  bottom: -22px;
  transform: translateX(-50%);
}

.gauge-my-income-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── 혜택 카테고리 탭 ─────────────────────────────────────── */
.benefit-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.category-tab {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
}

.category-tab:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.category-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ── 혜택 카테고리 헤더 ───────────────────────────────────── */
.benefit-category-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

.benefit-category-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  background: color-mix(in srgb, var(--cat-color, #6366f1) 12%, transparent);
}

.benefit-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── 혜택 카드 ────────────────────────────────────────────── */
.benefit-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.benefit-card-left {
  flex: 1;
  min-width: 0;
}

.benefit-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.benefit-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.125rem;
}

.benefit-card-amount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.benefit-card-summary {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.benefit-card-target {
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
}

.benefit-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.125rem;
}

.benefit-period-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0F766E;
  background: #CCFBF1;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid #99F6E4;
  flex-shrink: 0;
}

/* ── 마감 뱃지 ────────────────────────────────────────────── */
.benefit-deadline-badge {
  font-size: 0.625rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  border: 1px solid #fecaca;
  white-space: nowrap;
}

/* ── 다크모드 ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1C1917;
    --color-surface: #292524;
    --color-text: #E7E5E4;
    --color-text-secondary: #A8A29E;
    --color-text-muted: #78716C;
    --color-border: #44403C;
    --color-border-light: #292524;
  }
}