/* =============================================================================
   자격증타임 (LicenseTime) - 프리미엄 웹 & 모바일 반응형 디자인 시스템 (v3.5)
   - 토스(Toss) · 뱅크샐러드(BankSalad) 스타일의 직관적이고 또렷한 모바일 친화 UI/UX
   - 고대비(High Contrast) & 완벽한 한글 가독성 (word-break: keep-all & text-wrap: balance)
   - 모바일(320px~480px) 한 화면에서 완벽한 줄바꿈과 터치 반응성 보장
   - 라이트/다크 모드 원터치 토글 지원
   ========================================================================== */

/* ── 1. 기본 색상 시스템 (Light Mode Default) ── */
:root {
  --theme-mode: "light";
  
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-line: #cbd5e1;
  --border-focus: #2563eb;
  
  /* 텍스트 가독성 최우선: 짙고 또렷한 흑연 컬러 */
  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-sub: #475569;
  --text-muted: #64748b;
  
  /* Primary Brand: 신뢰의 신뢰의 인디고 — 국가자격 시험정보 */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-active: #3730a3;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  
  /* 상태 컬러 (선명한 대비) */
  --success: #047857;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #b45309;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  
  --danger: #be123c;
  --danger-light: #fff1f2;
  --danger-border: #fecdd3;
  
  /* 타이포그래피 */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --line-height-tight: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;
  
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: -0.015em;

  /* 라디우스 & 그림자 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.08), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 24px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 36px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;

  --max-w-main: 1140px;
  --max-w-post: 1100px;
  --header-h: 64px;
}

/* ── 2. 다크 모드 (고대비 & 눈부심 방지) ── */
:root[data-theme="dark"] {
  --theme-mode: "dark";

  --bg-main: #0b0f19;
  --bg-surface: #131b2e;
  --bg-subtle: #1c273e;
  --bg-card: #141e33;

  --border-subtle: #243248;
  --border-line: #334460;
  --border-focus: #60a5fa;

  --text-main: #ffffff;
  --text-body: #e2e8f0;
  --text-sub: #94a3b8;
  --text-muted: #64748b;

  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-active: #6366f1;
  --primary-light: #1e1b4b;
  --primary-border: #3730a3;

  --success: #34d399;
  --success-light: #0d2820;
  --success-border: #134e3e;

  --warning: #fbbf24;
  --warning-light: #2d200a;
  --warning-border: #563d12;

  --danger: #fb7185;
  --danger-light: #2c1219;
  --danger-border: #562330;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.7);
}

/* 시스템 설정 다크 모드 (기본 data-theme 미설정 시) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --theme-mode: "dark";

    --bg-main: #0b0f19;
    --bg-surface: #131b2e;
    --bg-subtle: #1c273e;
    --bg-card: #141e33;

    --border-subtle: #243248;
    --border-line: #334460;
    --border-focus: #60a5fa;

    --text-main: #ffffff;
    --text-body: #e2e8f0;
    --text-sub: #94a3b8;
    --text-muted: #64748b;

    --primary: #818cf8;
    --primary-hover: #a5b4fc;
    --primary-active: #6366f1;
    --primary-light: #1e1b4b;
    --primary-border: #3730a3;

    --success: #34d399;
    --success-light: #0d2820;
    --success-border: #134e3e;

    --warning: #fbbf24;
    --warning-light: #2d200a;
    --warning-border: #563d12;

    --danger: #fb7185;
    --danger-light: #2c1219;
    --danger-border: #562330;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.7);
  }
}

/* ── 3. 자격 구분별 테마 Accent (고대비) — T=기술자격(스카이블루), S=전문자격(바이올렛) ── */
[data-cat="T"] {
  --cat-color: #0369a1;
  --cat-light: #f0f9ff;
  --cat-border: #bae6fd;
  --cat-gradient: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}
[data-cat="S"] {
  --cat-color: #5b21b6;
  --cat-light: #f5f3ff;
  --cat-border: #ddd6fe;
  --cat-gradient: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

:root[data-theme="dark"] [data-cat="T"] {
  --cat-color: #38bdf8;
  --cat-light: #0c2436;
  --cat-border: #0e3a56;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-cat="T"] {
    --cat-color: #38bdf8;
    --cat-light: #0c2436;
    --cat-border: #0e3a56;
  }
}
:root[data-theme="dark"] [data-cat="S"] {
  --cat-color: #a78bfa;
  --cat-light: #23193c;
  --cat-border: #3b2866;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-cat="S"] {
    --cat-color: #a78bfa;
    --cat-light: #23193c;
    --cat-border: #3b2866;
  }
}

/* =============================================================================
   기본 리셋 & 모바일 반응형 전역 설정
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  word-break: keep-all; /* 한글 단어 단위 완벽 줄바꿈 */
  overflow-wrap: break-word; /* 영문/URL 오버플로우 방지 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 60px;
  transition: background-color var(--duration-normal) var(--ease), color var(--duration-normal) var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: var(--max-w-main);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
}

/* =============================================================================
   헤더 (Header) & 테마 스위처 (모바일 최적화)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

:root[data-theme="dark"] .site-header {
  background: rgba(19, 27, 46, 0.92);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header {
    background: rgba(19, 27, 46, 0.92);
  }
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: var(--r-full);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease);
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }
  .brand {
    font-size: 1.1rem;
    gap: 6px;
  }
  .brand-badge {
    display: none !important; /* 모바일에서 공간 확보 */
  }
  .nav-link-ext {
    display: none !important; /* 모바일에서 외부 링크 숨김 */
  }
  .nav-link {
    font-size: 0.825rem;
    padding: 6px 10px;
  }
}

/* 테마 스위칭 버튼 */
.lc-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease);
}

.lc-theme-btn:hover {
  background: var(--border-line);
  transform: rotate(15deg);
}

.lc-theme-icon-light { display: none; color: #fbbf24; }
.lc-theme-icon-dark  { display: inline-flex; color: #64748b; }

:root[data-theme="dark"] .lc-theme-icon-light { display: inline-flex; }
:root[data-theme="dark"] .lc-theme-icon-dark  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lc-theme-icon-light { display: inline-flex; }
  :root:not([data-theme="light"]) .lc-theme-icon-dark  { display: none; }
}

/* =============================================================================
   메인 히어로 (Hero Section & 모바일 줄바꿈 최적화)
   ========================================================================== */
.lc-hero {
  text-align: center;
  padding: 40px 0 28px;
}

.lc-hero-h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-main);
  margin-bottom: 12px;
  word-break: keep-all !important;
  text-wrap: balance !important;
}

.lc-hero-h1 span {
  color: var(--primary);
}

.lc-hero-desc {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 620px;
  margin: 0 auto 26px;
  line-height: 1.6;
  word-break: keep-all !important;
  text-wrap: balance !important;
}

@media (max-width: 640px) {
  .lc-hero {
    padding: 24px 0 18px;
  }
  .lc-hero-h1 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .lc-hero-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }
}

/* 검색 바 */
.lc-search-form {
  position: relative;
  max-width: 600px;
  margin: 0 auto 20px;
}

.lc-search-input {
  width: 100%;
  height: 54px;
  padding: 0 100px 0 20px;
  font-size: 1rem;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all var(--duration-fast) var(--ease);
}

.lc-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-md);
}

.lc-search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  padding: 0 22px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease);
}

.lc-search-btn:hover {
  background: var(--primary-hover);
}

.lc-search-btn:active {
  transform: scale(0.97);
}

@media (max-width: 640px) {
  .lc-search-input {
    height: 48px;
    padding: 0 85px 0 16px;
    font-size: 16px; /* iOS 자동 줌 방지 */
  }
  .lc-search-btn {
    padding: 0 18px;
    font-size: 0.875rem;
  }
}

/* 카테고리 칩 필터 (모바일 3열 그리드 카드 배치) */
.lc-cat-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.lc-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--r-full);
  color: var(--text-sub);
  box-shadow: var(--shadow-xs);
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease);
}

.lc-cat-chip:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: var(--bg-subtle);
}

.lc-cat-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

@media (max-width: 640px) {
  .lc-cat-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
  }
  .lc-cat-chip {
    justify-content: center;
    padding: 8px 4px;
    font-size: 0.825rem;
    width: 100%;
  }
}

/* =============================================================================
   3초 지원금 예상 계산기 (Calculator - 모바일 최적화)
   ========================================================================== */
.lc-calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin: 32px 0 38px;
}

.lc-calc-header {
  margin-bottom: 20px;
}

.lc-calc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  word-break: keep-all;
}

.lc-calc-subtitle {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-top: 4px;
  word-break: keep-all;
}

.lc-calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 800px) {
  .lc-calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .lc-calc-card {
    padding: 20px 16px;
    margin: 24px 0 30px;
  }
  .lc-calc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.lc-calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lc-calc-field label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
}

.lc-calc-field input,
.lc-calc-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px; /* 모바일 iOS 자동 줌 방지 */
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-line);
  border-radius: var(--r-sm);
  outline: none;
  transition: all var(--duration-fast) var(--ease);
}

.lc-calc-field input:focus,
.lc-calc-field select:focus {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.lc-calc-submit {
  width: 100%;
  height: 50px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  transition: all var(--duration-fast) var(--ease);
}

.lc-calc-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.lc-calc-submit:active {
  transform: scale(0.99);
}

/* 계산 결과 박스 */
.lc-calc-result {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: var(--primary-light);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--r-md);
  animation: sbFadeIn 0.3s var(--ease);
}

.lc-calc-result.show {
  display: block;
}

.lc-calc-res-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lc-calc-res-amt {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 12px;
  word-break: keep-all;
}

.lc-calc-notes {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lc-calc-notes li {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  word-break: keep-all;
}

.lc-calc-notes li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.lc-calc-disclaimer {
  font-size: 0.775rem;
  color: var(--text-sub);
  margin-top: 12px;
  border-top: 1px dashed var(--primary-border);
  padding-top: 10px;
  word-break: keep-all;
}

@keyframes sbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   지원금 카드 그리드 (Card Grid) & 썸네일 커버
   ========================================================================== */
.lc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 18px;
}

.lc-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  word-break: keep-all;
}

.lc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .lc-section-head {
    margin: 28px 0 14px;
  }
  .lc-section-title {
    font-size: 1.2rem;
  }
  .lc-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 개별 지원금 카드 */
.lc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease), box-shadow var(--duration-normal) var(--ease), border-color var(--duration-normal) var(--ease);
}

.lc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-line);
}

/* 카드 비주얼 썸네일 커버 */
.lc-card-cover {
  position: relative;
  height: 120px;
  padding: 14px 18px;
  background: var(--cat-light, var(--primary-light));
  border-bottom: 1px solid var(--cat-border, var(--primary-border));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lc-card-cover-bg {
  position: absolute;
  right: -5px;
  bottom: -12px;
  width: 120px;
  height: 90px;
  opacity: 0.85;
  pointer-events: none;
  transition: transform var(--duration-normal) var(--ease);
}

.lc-card:hover .lc-card-cover-bg {
  transform: scale(1.06) rotate(-2deg);
}

.lc-illu {
  width: 100%;
  height: 100%;
}

.lc-card-cover-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.lc-card-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lc-card-cover-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cat-color, var(--primary));
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 8px;
  border-radius: var(--r-xs);
  white-space: nowrap;
}

:root[data-theme="dark"] .lc-card-cover-cat {
  background: rgba(19, 27, 46, 0.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lc-card-cover-cat {
    background: rgba(19, 27, 46, 0.9);
  }
}

.lc-card-cover-shield {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  white-space: nowrap;
}

.lc-card-cover-amount-wrap {
  display: flex;
  flex-direction: column;
}

.lc-card-cover-amount-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
}

.lc-card-cover-amount {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

:root[data-theme="dark"] .lc-card-cover-amount {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lc-card-cover-amount {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  }
}

/* 카드 본문 */
.lc-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lc-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lc-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 8px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lc-card-summary {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 16px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.lc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.825rem;
}

.lc-card-amt-label {
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.lc-card-amt-label b {
  color: var(--primary);
  font-weight: 800;
}

.lc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease);
}

.lc-card:hover .lc-card-cta {
  transform: translateX(4px);
}

/* =============================================================================
   배지 (Badges - 고대비)
   ========================================================================== */
.lc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.lc-badge-cat {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-line);
}

.lc-badge-urgent {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.lc-badge-soon {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.lc-badge-open {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.lc-badge-closed, .lc-badge-neutral {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.lc-badge-verified {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* =============================================================================
   애드센스 정책 100% 준수 & 하이브리드 프로모션 배너 (모바일 최적화)
   ========================================================================== */
.lc-ad-container {
  width: 100%;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lc-ad-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-align: center;
  text-transform: uppercase;
}

.lc-ad-slot, .ad-slot {
  position: relative;
  width: 100%;
  min-height: 260px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 애드센스 스마트 하이브리드 프로모션 배너 */
.lc-ad-promo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border-radius: var(--r-md);
  z-index: 1;
  transition: opacity var(--duration-normal) var(--ease);
}

.lc-ad-slot ins.adsbygoogle {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* 실제 애드센스 광고가 채워지면 프로모션 배너 숨김 */
.lc-ad-slot:has(iframe) .lc-ad-promo,
.lc-ad-slot.ad-filled .lc-ad-promo,
.lc-ad-slot ins.adsbygoogle[data-ad-status="filled"] ~ .lc-ad-promo {
  display: none !important;
}

.lc-ad-promo-icon {
  font-size: 2.4rem;
  margin-right: 18px;
  flex-shrink: 0;
}

.lc-ad-promo-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  text-align: left;
}

.lc-ad-promo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: var(--r-full);
  align-self: flex-start;
  margin-bottom: 2px;
  white-space: nowrap;
}

.lc-ad-promo-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  word-break: keep-all;
}

.lc-ad-promo-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
  word-break: keep-all;
}

.lc-ad-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  margin-left: 16px;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all var(--duration-fast) var(--ease);
}

.lc-ad-promo-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .lc-ad-promo {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
    gap: 10px;
  }
  .lc-ad-promo-icon {
    margin-right: 0;
    font-size: 2rem;
  }
  .lc-ad-promo-body {
    text-align: center;
    align-items: center;
  }
  .lc-ad-promo-badge {
    align-self: center;
  }
  .lc-ad-promo-title {
    font-size: 1rem;
  }
  .lc-ad-promo-desc {
    font-size: 0.825rem;
  }
  .lc-ad-promo-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================================
   상세 포스트 페이지 (Post Detail Layout & 모바일 줄바꿈 최적화)
   ========================================================================== */
.lc-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .lc-post-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
  }
}

/* 히어로 밴드 */
.lc-hero-band {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.lc-hero-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .lc-hero-band {
    padding: 20px 16px;
    margin-bottom: 18px;
  }
  .lc-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.lc-hero-crumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.825rem;
  color: var(--text-sub);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.lc-hero-crumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.lc-hero-crumb .sep {
  color: var(--text-muted);
}

.lc-hero-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lc-hero-title {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-main);
  margin-bottom: 18px;
  word-break: keep-all;
}

.lc-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .lc-hero-actions {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
    width: 100%;
  }
}

.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  font-size: 0.925rem;
  font-weight: 800;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease);
  border: none;
}

@media (max-width: 640px) {
  .lc-btn {
    height: 44px;
    padding: 0 10px;
    font-size: 0.85rem;
  }
}

.lc-btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.lc-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.lc-btn-primary:active {
  transform: scale(0.98);
}

.lc-btn-outline {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-line);
  color: var(--text-main);
}

.lc-btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-sub);
}

/* 히어로 우측 스탯 & 일러스트 카드 */
.lc-hero-stat-card {
  position: relative;
  background: var(--cat-light, var(--primary-light));
  border: 1px solid var(--cat-border, var(--primary-border));
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lc-hero-stat-art {
  width: 90px;
  height: 60px;
  margin-bottom: 6px;
}

.lc-hero-stat-sub {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--cat-color, var(--primary));
  margin-bottom: 4px;
  word-break: keep-all;
}

.lc-hero-stat-amt {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
  word-break: keep-all;
}

.lc-hero-stat-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  word-break: keep-all;
}

/* 4대 팩트 스트립 */
.lc-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .lc-facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
  }
}

.lc-fact-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

@media (max-width: 480px) {
  .lc-fact-item {
    padding: 10px;
    gap: 8px;
  }
}

.lc-fact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lc-fact-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.lc-fact-label {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-sub);
  white-space: nowrap;
}

.lc-fact-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-fact-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3초 핵심 요약 박스 */
.lc-answer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .lc-answer-box {
    padding: 16px;
    margin-bottom: 18px;
  }
}

.lc-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.lc-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  word-break: keep-all;
}

.lc-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: var(--r-xs);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease);
}

.lc-btn-copy:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.lc-answer-body {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-body);
  word-break: keep-all;
}

.lc-answer-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: keep-all;
}

/* 주의사항 경고 박스 */
.warning-box {
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .warning-box {
    padding: 14px 16px;
    margin-bottom: 18px;
  }
}

.warning-title {
  display: block;
  font-size: 0.925rem;
  font-weight: 800;
  color: var(--warning);
  margin-bottom: 8px;
  word-break: keep-all;
}

.warning-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.warning-list li {
  position: relative;
  padding-left: 14px;
  word-break: keep-all;
  line-height: 1.6;
}

.warning-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--warning);
  font-weight: 800;
}

/* 본문 카드 스타일 */
.lc-content-card, .content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .lc-content-card, .content-card {
    padding: 20px 16px;
    margin-bottom: 18px;
  }
}

.lc-card-title-head, .card-title-head {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  word-break: keep-all;
}

.post-body p {
  font-size: 0.975rem;
  line-height: var(--line-height-relaxed);
  color: var(--text-body);
  margin-bottom: 16px;
  word-break: keep-all;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body strong {
  font-weight: 800;
  color: var(--text-main);
}

.post-body ul, .post-body ol {
  margin: 14px 0 18px;
  padding-left: 20px;
}

.post-body li {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 6px;
  word-break: keep-all;
}

.post-body blockquote {
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.925rem;
  color: var(--text-body);
  word-break: keep-all;
}

/* 표(Table) 스타일 & 모바일 가로 스크롤 보장 */
.lc-table-wrap, .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-line);
  -webkit-overflow-scrolling: touch;
}

.lc-table-wrap table, .table-wrap table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.lc-table-wrap th, .table-wrap th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--border-line);
  white-space: nowrap;
}

.lc-table-wrap td, .table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  word-break: keep-all;
}

.lc-table-wrap tr:last-child td, .table-wrap tr:last-child td {
  border-bottom: none;
}

.lc-table-wrap tr:hover td, .table-wrap tr:hover td {
  background: var(--primary-light);
}

/* 1-Click 공식 신청 CTA */
.apply-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--r-md);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  margin: 32px 0;
  text-align: center;
  word-break: keep-all;
  transition: all var(--duration-fast) var(--ease);
}

.apply-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
}

.apply-cta:active {
  transform: scale(0.99);
}

@media (max-width: 640px) {
  .apply-cta {
    height: 50px;
    font-size: 0.95rem;
    padding: 0 12px;
    margin: 24px 0;
  }
}

/* FAQ 아코디언 */
.lc-faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.lc-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease);
}

.lc-faq-item[open] {
  border-color: var(--primary);
}

.lc-faq-summary {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  gap: 10px;
  word-break: keep-all;
}

.lc-faq-summary::-webkit-details-marker {
  display: none;
}

.lc-faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.lc-faq-question {
  flex-grow: 1;
  word-break: keep-all;
}

.lc-faq-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease);
}

.lc-faq-item[open] .lc-faq-arrow {
  transform: rotate(90deg);
}

.lc-faq-answer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-main);
  padding: 18px 20px 20px 54px;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-body);
  word-break: keep-all;
}

@media (max-width: 640px) {
  .lc-faq-summary {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  .lc-faq-answer {
    padding: 14px 16px;
  }
}

/* =============================================================================
   우측 사이드바 (Sidebar)
   ========================================================================== */
.lc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lc-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.lc-sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  word-break: keep-all;
}

.lc-sidebar-dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 10px;
  column-gap: 8px;
  font-size: 0.875rem;
}

.lc-sidebar-dl dt {
  color: var(--text-sub);
  font-weight: 700;
  white-space: nowrap;
}

.lc-sidebar-dl dd {
  color: var(--text-main);
  font-weight: 800;
  word-break: keep-all;
}

/* =============================================================================
   푸터 (Footer & 모바일 줄바꿈 최적화)
   ========================================================================== */
.lc-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.lc-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lc-footer-links a {
  color: var(--text-sub);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease);
}

.lc-footer-links a:hover {
  color: var(--primary);
}

.lc-footer-disclaimer {
  font-size: 0.775rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 12px;
  line-height: 1.65;
  word-break: keep-all;
}

.lc-footer-family {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.825rem;
  color: var(--text-sub);
  flex-wrap: wrap;
}

.lc-footer-family a {
  font-weight: 700;
  white-space: nowrap;
}

.lc-footer-family a:hover {
  color: var(--primary);
}

/* =============================================================================
   공유 모달 (Share Modal)
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.show {
  display: flex;
}

.modal .box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: sbFadeIn 0.2s var(--ease);
}

.modal h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  word-break: keep-all;
}

.modal .btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal .btns button {
  flex: 1;
  height: 46px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.modal .btns button:first-child {
  background: var(--primary);
  color: #ffffff;
}

.modal .btns button:last-child {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-line);
}
