/* results.jauc.co.kr — 프리미엄 프롭테크/핀테크 통합 디자인 시스템 */
:root {
  --bg-main: #f8fafc;
  --surface: #ffffff;
  --surface-sub: #f1f5f9;
  --surface-hover: #f8fafc;
  
  --primary-navy: #090d16;
  --primary-slate: #1e293b;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --hero-gradient: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #1e3a8a 100%);
  
  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --rose: #e11d48;
  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;
  
  --amber: #d97706;
  --amber-bg: #fffbeb;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 1px 3px 0 rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 18px 20px 80px; }
a { color: var(--brand-blue); text-decoration: none; }

/* ── 1. 프리미엄 글래스 헤더 ── */
header.top {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
header.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.brand-titles { display: flex; flex-direction: column; }
.brand-name { font-size: 16.5px; font-weight: 800; color: var(--primary-navy); letter-spacing: -0.4px; }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--brand-blue); letter-spacing: -0.2px; }
.main-link {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary-slate);
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.main-link:hover { background: var(--brand-blue); transform: translateY(-1px); }

/* ── 2. 브레드크럼 ── */
.crumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crumb a { color: var(--text-muted); font-weight: 500; }
.crumb a:hover { color: var(--brand-blue); }
.crumb b { color: var(--text-main); font-weight: 700; }

/* ── 2-1. 상단 원클릭 물건유형 전환 탭바 ── */
.property-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.property-tabs::-webkit-scrollbar {
  height: 4px;
}
.property-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.tab-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.tab-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.tab-item.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ── 3. 프리미엄 히어로 섹션 (메인/허브 공용) ── */
.hero {
  background: var(--hero-gradient);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px -5px rgba(9, 13, 22, 0.3);
  position: relative;
  overflow: visible;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 100%;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  color: #ffffff;
}
.hero p {
  font-size: 14.5px;
  color: #93c5fd;
  margin-bottom: 24px;
  max-width: 800px;
}
.hero .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero .stats div {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero .stats b {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.hero .stats span, .hero .stats div {
  font-size: 13px;
  color: #cbd5e1;
}

/* ── 3-1. 실시간 통합 검색바 (Hero Search Bar) ── */
.search-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-top: 24px;
  z-index: 200;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.1);
  padding: 4px 8px 4px 18px;
  transition: all 0.2s;
}
.search-input-wrap:focus-within {
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(59, 130, 246, 0.5);
  border-color: var(--brand-blue);
}
.search-icon {
  font-size: 18px;
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}
.search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}
.search-input::placeholder {
  color: var(--text-light);
  font-weight: 500;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.2);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}
.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: background 0.15s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover, .search-item.active {
  background: #eff6ff;
}
.search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-navy);
}
.search-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.search-item-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-blue);
  background: #e0f2fe;
  padding: 3px 9px;
  border-radius: 12px;
}
.search-no-result {
  padding: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ── 4. 시도 선택 그리드 (16개 카드 바둑판) ── */
.grid-sido {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sido-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.sido-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  background: #ffffff;
}
.sido-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
}
.sido-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── 5. 시도 허브 시군구 그리드 (2열 바둑판) ── */
.grid-sigungu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.sigungu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.sigungu-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}
.sigungu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sigungu-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
}
.sigungu-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── 6. 상세 페이지 타이틀 & 라이브 펄스 ── */
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.title-row h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.6px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--emerald);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* ── 7. 마켓 브리핑 카드 ── */
.insight-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}
.insight-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.insight-body {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── 8. 시장 온도계 게이지 ── */
.gauge-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}
.gauge-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.gauge-title { font-size: 14.5px; font-weight: 700; color: var(--primary-navy); }
.gauge-state {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-blue);
  background: #eff6ff;
  padding: 3px 12px;
  border-radius: 20px;
}
.gauge-track {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  gap: 3px;
  margin-bottom: 8px;
}
.gauge-segment { flex: 1; }
.seg-cold { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.seg-normal { background: linear-gradient(90deg, #10b981, #059669); }
.seg-hot { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ── 9. KPI 타일 그리드 (4개 가로 정렬) ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.metric-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.metric-value { font-size: 26px; font-weight: 800; color: var(--primary-navy); letter-spacing: -0.5px; }
.metric-value small { font-size: 15px; font-weight: 700; margin-left: 2px; }
.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
}
.badge-up { color: var(--rose); }
.badge-down { color: var(--emerald); }
.badge-flat { color: var(--text-muted); }

/* ── 10. 피드 섹션 공통 ── */
.feed-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ── 11. 매각사례 피드 & 진행물건 (2열 바둑판 그리드) ── */
.cases-grid, .cases-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.case-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.case-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.case-top-row, .case-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.case-tag-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.case-pill, .case-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.pill-won, .badge-sold { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-active { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.case-id, .case-case-no { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.case-date { font-size: 12px; color: var(--text-light); }
.case-address {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 14px;
  line-height: 1.45;
}
.price-box, .case-price-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: var(--surface-sub);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-top: auto;
}
.price-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-appraised, .case-appraisal { font-size: 11.5px; color: var(--text-muted); }
.price-appraised b, .case-appraisal b { font-size: 13.5px; color: var(--text-body); font-weight: 700; display: block; margin-top: 1px; }
.price-sold {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.4px;
}
.price-rate-chip, .case-final { text-align: right; }
.rate-percent, .case-final-price { font-size: 18px; font-weight: 800; color: var(--brand-blue); letter-spacing: -0.4px; }
.rate-desc, .case-final-rate { font-size: 11px; font-weight: 700; color: var(--brand-blue); display: block; margin-top: 2px; }
.case-btn {
  background: var(--primary-slate);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.case-btn:hover { background: var(--brand-blue); }

/* ── 12. 알림 신청 배너 (모던 다크 카드) ── */
.cta-banner {
  background: var(--hero-gradient);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-banner h2 { font-size: 21px; font-weight: 800; color: #ffffff; }
.cta-banner p { font-size: 13.5px; color: #93c5fd; }
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-input-group {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 520px;
}
.cta-input-group input, .cta-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}
.cta-input-group input:focus, .cta-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.cta-input-group button, .cta-btn {
  background: #f59e0b;
  color: #090d16;
  font-size: 14.5px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.cta-input-group button:hover, .cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.cta-consent, .cta-privacy {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ── 12-1. 현재 입찰 가능한 물건 카드 리스트 ── */
.lots-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.active-lot-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}
.active-lot-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.lot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.badge-new {
  font-size: 11px;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 7px;
  border-radius: 4px;
}
.badge-fail {
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 2px 7px;
  border-radius: 4px;
}
.lot-addr {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
}
.lot-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.min-p {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--brand-blue);
}
.app-p {
  font-size: 12.5px;
  color: var(--text-muted);
}
.lot-action {
  flex-shrink: 0;
}
.btn-analysis {
  background: var(--primary-navy);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.btn-analysis:hover {
  background: var(--brand-blue);
  transform: translateY(-1px);
}

/* ── 13. 차트 박스 ── */
.chart-box { position: relative; height: 280px; width: 100%; margin-top: 14px; }

/* ── 14. FAQ 아코디언 ── */
.faq-box details {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 16px 18px;
  transition: all 0.2s;
}
.faq-box details[open] {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}
.faq-box summary {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary::after { content: "↓"; font-size: 14px; color: var(--text-light); transition: transform 0.2s; }
.faq-box details[open] summary::after { transform: rotate(180deg); color: var(--brand-blue); }
.faq-box details p { font-size: 14px; color: var(--text-body); margin-top: 12px; line-height: 1.7; }

/* ── 15. 사일로 칩 (Pills) ── */
.pills-group { margin-bottom: 16px; }
.pills-group h3 { font-size: 13.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-slate);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 15px;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.pills a:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

/* ── 15-1. 경매 투자 & 세금 간이 계산기 ── */
.calc-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  margin-top: 18px;
}
.calc-inputs {
  background: var(--surface-sub);
  padding: 20px 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-slate);
}
.calc-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 12px;
}
.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-input-wrap input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 42px 10px 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-navy);
  outline: none;
}
.calc-input-wrap input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.calc-input-wrap input[readonly] {
  background: #f8fafc;
  color: var(--text-muted);
}
.calc-unit {
  position: absolute;
  right: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
  margin-top: 10px;
  accent-color: var(--brand-blue);
  cursor: pointer;
}
.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 4px;
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.calc-res-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.res-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.res-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.4px;
  margin: 6px 0 2px;
}
.res-blue { color: var(--brand-blue); }
.res-emerald { color: var(--emerald); }
.res-rose { color: var(--rose); }
.res-sub {
  font-size: 11px;
  color: var(--text-light);
}
.calc-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.calc-footer span {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.5;
}
.calc-cta-btn {
  background: var(--brand-gradient);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
  white-space: nowrap;
}
.calc-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── 16. 모바일 플로팅 바 (★ 데스크탑에서는 무조건 숨김!) ── */
.sticky-bar {
  display: none !important; /* 데스크탑에서는 숨김 */
}

/* ── 17. 푸터 ── */
footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-light);
  padding: 40px 16px 40px;
  line-height: 1.9;
}
footer a { color: var(--text-muted); font-weight: 600; }

/* ── 18. 반응형 미디어 쿼리 (모바일/태블릿) ── */
@media (max-width: 1024px) {
  .grid-sido { grid-template-columns: repeat(3, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .wrap { padding: 12px 14px 90px; }
  .hero { padding: 24px 20px; border-radius: var(--radius-md); }
  .hero h1 { font-size: 22px; }
  .hero .stats { grid-template-columns: 1fr; gap: 10px; }
  .hero .stats b { font-size: 22px; }
  
  .grid-sido { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-sigungu { grid-template-columns: 1fr; }
  .cases-grid, .cases-feed { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
  .calc-footer { flex-direction: column; align-items: flex-start; }
  .calc-cta-btn { width: 100%; text-align: center; }
  
  .cta-banner { padding: 24px 20px; }
  .cta-input-group { flex-direction: column; max-width: 100%; }
  .cta-input-group button { width: 100%; }
  
  .active-lot-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lot-action { width: 100%; }
  .btn-analysis { width: 100%; justify-content: center; }
  
  /* 모바일에서만 하단 플로팅 바 노출 */
  .sticky-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  }
  .sticky-info { display: flex; flex-direction: column; }
  .sticky-title { font-size: 13px; font-weight: 700; }
  .sticky-sub { font-size: 11px; opacity: 0.7; }
  .sticky-btn {
    background: #f59e0b;
    color: #090d16;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
  }
}
