/* ============================================
   trip-ui.css — 트립닷컴식 공통 디자인 시스템 (P1)
   내차플랜 전면 개편 · 기존 클래스와 충돌 없는 .tw- 네임스페이스
   ============================================ */

:root {
  --tw-primary: #2F6BD8;          /* 텍스트·링크·테두리 (살짝 옅게) */
  --tw-primary-strong: #2559C0;
  --tw-primary-soft: #5B8FE6;      /* 큰 채움면(Hero·CTA·버튼)용 옅은 블루 */
  --tw-primary-soft-strong: #4A81E0;
  --tw-primary-50: #F1F6FE;
  --tw-primary-100: #DCE9FB;
  --tw-accent: #FF7A00;
  --tw-accent-50: #FFF3E8;
  --tw-ink: #0F172A;
  --tw-ink-sub: #64748B;
  --tw-ink-mute: #94A3B8;
  --tw-card: #FFFFFF;
  --tw-bg: #F4F6FA;
  --tw-line: #E5EAF1;
  --tw-line-strong: #CBD5E1;
  --tw-radius-sm: 10px;
  --tw-radius: 14px;
  --tw-radius-lg: 20px;
  --tw-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  --tw-shadow-lg: 0 10px 36px rgba(15, 23, 42, 0.12);
  --tw-success: #16A34A;
  --tw-danger: #DC2626;
}

/* ── 버튼 ───────────────────────────── */
.tw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: var(--tw-radius);
  font-size: 15px; font-weight: 700; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.tw-btn:active { transform: translateY(1px); }
.tw-btn--primary { background: var(--tw-primary-soft); color: #fff; box-shadow: 0 6px 16px rgba(91, 143, 230, .26); }
.tw-btn--primary:hover { background: var(--tw-primary-soft-strong); }
.tw-btn--accent { background: var(--tw-accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 122, 0, .28); }
.tw-btn--ghost { background: #fff; color: var(--tw-primary); border-color: var(--tw-line-strong); }
.tw-btn--ghost:hover { border-color: var(--tw-primary); background: var(--tw-primary-50); }
.tw-btn--block { width: 100%; }
.tw-btn--lg { padding: 16px 22px; font-size: 16px; }

/* ── 칩 / 필 ───────────────────────────── */
.tw-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--tw-line-strong); background: #fff; color: var(--tw-ink-sub);
  font-family: inherit; transition: all .15s ease; white-space: nowrap;
}
.tw-chip:hover { border-color: var(--tw-primary); color: var(--tw-primary); }
.tw-chip.is-active { background: var(--tw-primary); border-color: var(--tw-primary); color: #fff; }
.tw-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: var(--tw-primary-50); color: var(--tw-primary);
}
.tw-pill--accent { background: var(--tw-accent-50); color: var(--tw-accent); }
.tw-pill--hot { background: #FEE2E2; color: var(--tw-danger); }
.tw-pill--success { background: #DCFCE7; color: var(--tw-success); }

/* ── 섹션 ───────────────────────────── */
.tw-section { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.tw-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tw-section-title { font-size: 20px; font-weight: 800; color: var(--tw-ink); letter-spacing: -.02em; margin: 0; }
.tw-section-title em { color: var(--tw-primary); font-style: normal; }
.tw-section-sub { font-size: 13px; color: var(--tw-ink-sub); margin: 6px 0 0; }
.tw-section-more { font-size: 13px; font-weight: 700; color: var(--tw-primary); text-decoration: none; white-space: nowrap; cursor: pointer; background: none; border: none; }

/* ── 카드 ───────────────────────────── */
.tw-card {
  background: var(--tw-card); border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius); box-shadow: var(--tw-shadow);
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.tw-card--hover:hover { transform: translateY(-3px); box-shadow: var(--tw-shadow-lg); }
.tw-card-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* 차량/딜 카드 */
.tw-deal-card { cursor: pointer; display: flex; flex-direction: column; }
.tw-deal-card-img { position: relative; aspect-ratio: 4 / 3; background: #eef2f7 center/cover no-repeat; }
.tw-deal-card-badge { position: absolute; top: 10px; left: 10px; }
.tw-deal-card-fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.tw-deal-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.tw-deal-card-name { font-size: 15px; font-weight: 700; color: var(--tw-ink); letter-spacing: -.02em; line-height: 1.3; }
.tw-deal-card-meta { font-size: 12px; color: var(--tw-ink-sub); }
.tw-deal-card-price { margin-top: 6px; font-size: 18px; font-weight: 900; color: var(--tw-primary); letter-spacing: -.03em; }
.tw-deal-card-price small { font-size: 12px; font-weight: 600; color: var(--tw-ink-sub); }

/* ── 가로 캐러셀 ───────────────────────────── */
.tw-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
.tw-carousel::-webkit-scrollbar { height: 0; }
.tw-carousel > * { scroll-snap-align: start; flex: 0 0 auto; width: 230px; }

/* ── 탭형 Hero 검색 ───────────────────────────── */
.tw-hero {
  background: linear-gradient(160deg, #5A87DD 0%, #6E99E4 50%, #8AAFEC 100%);
  padding: 22px 16px 30px;
}
.tw-hero-inner { max-width: 1000px; margin: 0 auto; }
.tw-hero-title { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px; }
.tw-hero-sub { color: rgba(255,255,255,.85); font-size: 13px; margin: 0 0 16px; }
.tw-hero-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; }
.tw-hero-tabs::-webkit-scrollbar { height: 0; }
.tw-hero-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px 999px 0 0;
  font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
  border: none; background: rgba(255,255,255,.16); color: rgba(255,255,255,.92);
  font-family: inherit; transition: all .15s ease;
}
.tw-hero-tab.is-active { background: #fff; color: var(--tw-primary); }
.tw-search-card {
  background: #fff; border-radius: 0 var(--tw-radius-lg) var(--tw-radius-lg) var(--tw-radius-lg);
  box-shadow: var(--tw-shadow-lg); padding: 18px;
}

/* ── 스티키 조건 요약바 ───────────────────────────── */
.tw-sticky-summary {
  position: sticky; top: 64px; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--tw-line);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.tw-sticky-summary-text { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--tw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 바텀시트 (필터 등) ───────────────────────────── */
.tw-sheet-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.45); display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.tw-sheet-overlay.is-open { opacity: 1; pointer-events: auto; }
.tw-sheet { width: 100%; background: #fff; border-radius: var(--tw-radius-lg) var(--tw-radius-lg) 0 0; max-height: 86vh; overflow-y: auto; transform: translateY(100%); transition: transform .25s ease; padding: 8px 16px 24px; }
.tw-sheet-overlay.is-open .tw-sheet { transform: translateY(0); }
.tw-sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--tw-line-strong); margin: 8px auto 14px; }
.tw-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tw-sheet-title { font-size: 17px; font-weight: 800; color: var(--tw-ink); }
.tw-sheet-close { background: none; border: none; font-size: 22px; color: var(--tw-ink-sub); cursor: pointer; line-height: 1; }

@media (min-width: 720px) {
  .tw-sheet-overlay { align-items: center; justify-content: center; }
  .tw-sheet { max-width: 480px; border-radius: var(--tw-radius-lg); transform: scale(.96); }
  .tw-sheet-overlay.is-open .tw-sheet { transform: scale(1); }
  .tw-sheet-handle { display: none; }
}

/* ── 소비자 하단 탭 (트립풍, 네이티브/모바일) ───────────────────────────── */
.tw-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--tw-line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 16px rgba(15,23,42,.06);
}
.tw-tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 9px; border: none; background: none; cursor: pointer;
  font-size: 11px; font-weight: 600; color: var(--tw-ink-mute); font-family: inherit;
}
.tw-tabbar button .ico { font-size: 20px; line-height: 1; }
.tw-tabbar button.active { color: var(--tw-primary); }

/* ── 홈 Hero 검색 폼 보조 ───────────────────────────── */
.tw-field-label { font-size: 12px; font-weight: 700; color: var(--tw-ink-sub); margin: 4px 0 8px; }
.tw-chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tw-field-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tw-field-row .tw-input { flex: 1; min-width: 140px; }
.tw-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--tw-line-strong); border-radius: var(--tw-radius-sm); font-size: 14px; font-family: inherit; box-sizing: border-box; }
.tw-input:focus { outline: none; border-color: var(--tw-primary); }
.tw-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--tw-ink-sub); margin-bottom: 14px; cursor: pointer; }
.tw-consent input { margin-top: 2px; accent-color: var(--tw-primary); }

/* ── 통계 행 ───────────────────────────── */
.tw-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tw-stat { background: var(--tw-card); border: 1px solid var(--tw-line); border-radius: var(--tw-radius); padding: 18px 12px; text-align: center; box-shadow: var(--tw-shadow); }
.tw-stat-num { font-size: 22px; font-weight: 900; color: var(--tw-primary); letter-spacing: -.03em; }
.tw-stat-label { font-size: 12px; color: var(--tw-ink-sub); margin-top: 4px; }

/* ── CTA 밴드 ───────────────────────────── */
.tw-cta-band { background: linear-gradient(135deg, #5A87DD, #6E99E4); border-radius: var(--tw-radius-lg); padding: 28px 22px; text-align: center; color: #fff; }
.tw-cta-band h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.tw-cta-band p { font-size: 13px; opacity: .9; margin: 0 0 16px; }
.tw-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tw-cta-band .tw-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.tw-cta-band .tw-btn--ghost:hover { background: rgba(255,255,255,.24); }

/* ============================================
   P3 — 중고/신차 목록·필터 트립풍 정련 (기존 클래스 오버라이드)
   ============================================ */
.page-layout { gap: 24px; }
.filter-panel {
  border: 1px solid var(--tw-line) !important;
  border-radius: var(--tw-radius) !important;
  box-shadow: var(--tw-shadow);
}
@media (min-width: 901px) {
  .filter-sidebar { position: sticky; top: 80px; align-self: flex-start; }
}
.filter-chip {
  border-radius: 999px; border-width: 1.5px;
  transition: all .15s ease;
}
.filter-chip.active {
  background: var(--tw-primary) !important;
  border-color: var(--tw-primary) !important;
  color: #fff !important;
}
.price-quick-btn.active {
  background: var(--tw-primary) !important;
  border-color: var(--tw-primary) !important;
  color: #fff !important;
}
.car-card {
  border-radius: var(--tw-radius) !important;
  border: 1px solid var(--tw-line) !important;
  box-shadow: var(--tw-shadow);
}
.car-card:hover { box-shadow: var(--tw-shadow-lg) !important; }
.content-header {
  position: sticky; top: 64px; z-index: 40;
  background: var(--tw-bg); padding: 10px 0;
  margin-bottom: 14px;
}
.sort-select { border-radius: var(--tw-radius-sm); border-width: 1.5px; }
.sort-select:focus { border-color: var(--tw-primary); }
.filter-toggle-btn { border-radius: var(--tw-radius-sm); border-width: 1.5px; font-weight: 700; }
.product-grid { gap: 16px; }

/* 모바일: 필터 사이드바를 하단 시트처럼 */
@media (max-width: 900px) {
  .filter-sidebar.mobile-show {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 2000;
    max-height: 84vh; overflow-y: auto; background: #fff;
    border-radius: var(--tw-radius-lg) var(--tw-radius-lg) 0 0;
    box-shadow: 0 -8px 32px rgba(15,23,42,.18);
    padding: 8px 14px 24px; animation: tw-sheet-up .25s ease;
  }
  .filter-sidebar.mobile-show .filter-panel { box-shadow: none; border: none !important; }
}
@keyframes tw-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ============================================
   P5 — 헤더·하단탭 트립풍 정비 (기존 클래스 오버라이드)
   ============================================ */
#header { box-shadow: 0 1px 0 var(--tw-line), 0 1px 12px rgba(15,23,42,.04); }
.logo { color: var(--tw-primary); }
.logo-icon { background: var(--tw-primary-soft); }
.nav-link { font-weight: 600; color: var(--tw-ink-sub); }
.nav-link:hover { background: var(--tw-primary-50); color: var(--tw-primary); }
.nav-link.active { background: var(--tw-primary-50) !important; color: var(--tw-primary) !important; }
.header-search input { border-radius: 999px; border-width: 1.5px; border-color: var(--tw-line-strong); background: var(--tw-bg); }
.header-search input:focus { border-color: var(--tw-primary); background: #fff; }
.btn-login { border-radius: 999px; border-color: var(--tw-primary); color: var(--tw-primary); font-weight: 700; }
.btn-login:hover { background: var(--tw-primary); }

/* 네이티브 소비자 하단탭 — 트립 토큰 적용 */
.scar-public-tabbar { border-top: 1px solid var(--tw-line); box-shadow: 0 -2px 16px rgba(15,23,42,.06); }
.scar-public-tabbar button { color: var(--tw-ink-mute); font-weight: 600; }
.scar-public-tabbar button.active { color: var(--tw-primary); }

/* ============================================
   P7 — 입점사·관리자 대시보드 트립풍 정비 (카드/KPI/섹션 표면만, 브랜드 컬러 유지)
   ============================================ */
/* 공통 카드 표면: 둥근 모서리 + 부드러운 그림자 + 옅은 테두리 */
.adm-stat-card,
.adm-quick-card,
.dash-hub-card {
  border-radius: var(--tw-radius) !important;
  border: 1px solid var(--tw-line) !important;
  box-shadow: var(--tw-shadow);
  transition: box-shadow .15s ease, transform .1s ease, border-color .15s ease;
}
.adm-stat-card:hover,
.adm-quick-card:hover,
.dash-hub-card:hover {
  box-shadow: var(--tw-shadow-lg);
  transform: translateY(-2px);
}
/* 경고 KPI는 위험색 유지 */
.adm-stat-card.adm-stat-warn { border-color: #fca5a5 !important; }

/* KPI 수치 — 자간/크기 트립풍 정돈 */
.adm-stat-val { letter-spacing: -.03em; }
.adm-stat-label { color: var(--tw-ink-sub); font-weight: 600; }

/* 섹션 제목 트립풍 자간 */
.adm-h2, .dash-menu-hub-title { letter-spacing: -.03em; }
.dash-menu-hub-desc, .adm-section-head .adm-muted { color: var(--tw-ink-sub); }

/* 허브 카드 아이콘 여백·라운드 */
.dash-hub-card { padding: 20px 16px 18px; }
.dash-menu-hub-grid { gap: 16px; }

/* 필터/상태 칩 라운드 통일 */
.adm-filter-btn { border-radius: 999px; }
.adm-badge-status { border-radius: 999px; }

/* 입점사 카드 표면 (dealer.css와 공존) */
.stat-card, .quote-card, .today-counter-card {
  border-radius: var(--tw-radius) !important;
  box-shadow: var(--tw-shadow);
  transition: box-shadow .15s ease, transform .1s ease;
}
.quote-card:hover { box-shadow: var(--tw-shadow-lg); transform: translateY(-2px); }
.dealer-h2, .dealer-h3 { letter-spacing: -.03em; }

/* P6 — 상담·메시지 FAQ details 마커 제거 */
.tw-support-faq:last-child { border-bottom: none !important; }
.tw-support-faq summary::-webkit-details-marker { display: none; }
.tw-support-faq summary::marker { content: ''; }

/* ── 유틸 ───────────────────────────── */
.tw-skeleton { background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%); background-size: 400% 100%; animation: tw-shimmer 1.4s ease infinite; border-radius: var(--tw-radius-sm); }
@keyframes tw-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.tw-empty { text-align: center; padding: 48px 20px; color: var(--tw-ink-mute); }
.tw-empty-ico { font-size: 40px; margin-bottom: 12px; }

/* ============================================
   STYLE 01 다크 네이비 홈 (고객 시안 교체) — .mc-*
   ============================================ */
.mc-hero {
  position: relative; overflow: hidden;
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(11, 22, 38, .52) 0%, rgba(11, 22, 38, .12) 38%, rgba(11, 22, 38, 0) 52%, rgba(11, 22, 38, .08) 72%, rgba(11, 22, 38, .28) 100%),
    image-set(url('/static/home-hero.webp') type('image/webp'), url('/static/home-hero.png') type('image/png')) 68% center / cover no-repeat,
    #0b1626;
  display: flex; align-items: center;
  padding: 50px 20px 56px;
}
.mc-hero-plate-wrap {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
}
.mc-hero-license {
  position: absolute;
  left: 47%;
  bottom: 30%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  border: 2.5px solid #0f172a;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .95);
  transform: translateX(-50%) perspective(520px) rotateY(-11deg) rotateX(6deg);
  transform-origin: center center;
}
.mc-hero-license-brand {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  min-width: 0;
}
.mc-hero-license-logo {
  height: 22px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.mc-hero-license-word {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}
.mc-hero-inner {
  position: relative; z-index: 4; width: 100%;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 396px; gap: 44px; align-items: center;
}
.mc-hero-feats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.mc-feat { text-align: left; min-width: 84px; }
.mc-feat-ic { display: block; color: #cfe0fb; margin-bottom: 11px; }
.mc-feat-ic svg { width: 33px; height: 33px; display: block; }
.mc-feat-t { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.mc-feat-d { font-size: 12px; color: #9fb4d6; margin-top: 3px; }
.mc-hero-eyebrow { color: #9bc0ff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.mc-hero-title { color: #fff; font-size: 42px; font-weight: 900; line-height: 1.22; letter-spacing: -.03em; margin: 0 0 14px; }
.mc-hero-title span { color: #5B9BFF; }
.mc-hero-kinds { color: #d3def2; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.mc-hero-sub { color: #9fb0cc; font-size: 15px; margin: 0 0 30px; }

.mc-hero-form { position: relative; z-index: 6; width: 100%; }
.mc-form-card { background: rgba(16, 27, 50, .80); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .10); border-radius: 16px; padding: 28px 26px; box-shadow: 0 34px 80px rgba(0, 0, 0, .52); }
.mc-form-title { font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 5px; text-align: center; }
.mc-form-sub { font-size: 12.5px; color: #9fb4d6; margin: 0 0 18px; text-align: center; }
.mc-input { width: 100%; padding: 13px 14px; border: 1.5px solid rgba(255, 255, 255, .15); border-radius: 10px; font-size: 14px; font-family: inherit; box-sizing: border-box; margin-bottom: 11px; background: rgba(255, 255, 255, .06); color: #fff; }
.mc-input::placeholder { color: #8ea3c4; }
.mc-input:focus { outline: none; border-color: #5b9bff; background: rgba(255, 255, 255, .10); }
.mc-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238ea3c4' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; cursor: pointer; }
.mc-select option { color: #0f172a; }
.mc-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #9fb4d6; margin: 5px 0 15px; cursor: pointer; }
.mc-consent input { margin-top: 2px; accent-color: var(--tw-primary); }
.mc-btn-primary { width: 100%; padding: 15px; border: none; border-radius: 10px; background: var(--tw-primary); color: #fff; font-weight: 800; font-size: 15px; font-family: inherit; cursor: pointer; transition: background .15s ease; }
.mc-btn-primary:hover { background: var(--tw-primary-strong, #1d4ed8); }
.mc-btn-primary:disabled { opacity: .65; cursor: default; }
.mc-btn-ghost { width: 100%; padding: 11px; margin-top: 9px; border: 1.5px solid rgba(255, 255, 255, .16); border-radius: 10px; background: transparent; color: #cdd9ec; font-weight: 700; font-size: 13px; font-family: inherit; cursor: pointer; }
.mc-btn-ghost:hover { border-color: #5b9bff; color: #fff; }
.mc-form-link { display: block; text-align: center; margin-top: 13px; font-size: 12px; font-weight: 700; color: #9fb4d6; text-decoration: none; }
.mc-form-link:hover { color: #fff; }

/* 통계·제휴사 바 */
.mc-stats { background: #fff; border-bottom: 1px solid var(--tw-line); }
.mc-stats-inner { max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mc-stats-nums { display: flex; gap: 30px; flex-wrap: wrap; }
.mc-stat { display: flex; flex-direction: column; }
.mc-stat-num { font-size: 22px; font-weight: 900; color: var(--tw-primary); letter-spacing: -.02em; }
.mc-stat-num small { font-size: 13px; font-weight: 800; margin-left: 1px; }
.mc-stat-label { font-size: 12px; color: var(--tw-ink-sub); }
.mc-partners { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mc-partner { font-size: 13px; font-weight: 700; color: #94a3b8; }
.mc-partner-more { font-size: 12px; font-weight: 700; color: var(--tw-primary); text-decoration: none; border: 1px solid var(--tw-line); border-radius: 999px; padding: 6px 12px; }

/* 섹션 공통 */
.mc-section { max-width: 1180px; margin: 0 auto; padding: 42px 20px; }
.mc-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.mc-sec-title { font-size: 22px; font-weight: 900; color: #0f172a; letter-spacing: -.02em; margin: 0; }
.mc-sec-sub { font-size: 13px; color: var(--tw-ink-sub); margin: 6px 0 0; }
.mc-more { font-size: 13px; font-weight: 700; color: #64748b; text-decoration: none; white-space: nowrap; }
.mc-more:hover { color: var(--tw-primary); }

/* 인기 차종 카드 */
.mc-cars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mc-car-card { display: block; background: #fff; border: 1px solid var(--tw-line); border-radius: var(--tw-radius); overflow: hidden; text-decoration: none; box-shadow: var(--tw-shadow); transition: box-shadow .15s ease, transform .1s ease; }
.mc-car-card:hover { box-shadow: var(--tw-shadow-lg); transform: translateY(-3px); }
.mc-car-img { height: 118px; background: #eef2f7 center/cover no-repeat; position: relative; }
.mc-car-badge { position: absolute; top: 8px; left: 8px; background: var(--tw-primary); color: #fff; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 8px; }
.mc-car-badge.is-best { background: #0f172a; }
.mc-car-body { padding: 14px; }
.mc-car-name { font-size: 15px; font-weight: 800; color: #0f172a; }
.mc-car-price-label { font-size: 11px; color: #94a3b8; margin-top: 10px; }
.mc-car-price { font-size: 18px; font-weight: 900; color: var(--tw-primary); letter-spacing: -.02em; }
.mc-car-cta { display: block; margin-top: 12px; text-align: center; border: 1px solid var(--tw-line); border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 700; color: #475569; }
.mc-car-card:hover .mc-car-cta { border-color: var(--tw-primary); color: var(--tw-primary); }

/* 특별한 이유 */
.mc-reasons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mc-reason { background: #fff; border: 1px solid var(--tw-line); border-radius: var(--tw-radius); padding: 20px 12px; text-align: center; box-shadow: var(--tw-shadow); }
.mc-reason-ico { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: var(--tw-primary-50); color: var(--tw-primary); align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.mc-reason-t { font-size: 14px; font-weight: 800; color: #0f172a; }
.mc-reason-d { font-size: 12px; color: var(--tw-ink-sub); line-height: 1.5; margin: 6px 0 0; }

/* 출고 후기 */
.mc-reviews { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mc-review-img { height: 150px; border-radius: var(--tw-radius); background: linear-gradient(135deg, #1f2c44, #2a3a5c) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 38px; }
.mc-review-cap { padding: 10px 2px 0; }
.mc-review-model { font-size: 13px; font-weight: 800; color: #0f172a; }
.mc-review-who { font-size: 12px; color: var(--tw-ink-sub); margin-top: 2px; }

/* 하단 CTA 밴드 */
.mc-cta { background: linear-gradient(135deg, #0d1830, #1b3157); padding: 40px 20px; text-align: center; color: #fff; }
.mc-cta h3 { font-size: 22px; font-weight: 900; margin: 0 0 8px; }
.mc-cta p { font-size: 14px; color: #b9c6dd; margin: 0 0 20px; }
.mc-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mc-cta-btn { padding: 13px 26px; border-radius: 10px; font-size: 14px; font-weight: 800; border: none; cursor: pointer; font-family: inherit; text-decoration: none; }
.mc-cta-btn--primary { background: var(--tw-primary-soft); color: #fff; }
.mc-cta-btn--primary:hover { background: var(--tw-primary); }
.mc-cta-btn--kakao { background: #FEE500; color: #3c1e1e; }

/* 플로팅 무료견적 */
.mc-floating { position: fixed; right: 18px; bottom: 86px; z-index: 1400; width: 64px; height: 64px; border-radius: 50%; border: none; background: var(--tw-primary); color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, .42); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 800; font-family: inherit; cursor: pointer; }
.mc-floating i { font-size: 18px; }
.mc-floating:hover { background: var(--tw-primary-strong); }
/* 네이티브: 하단탭·대화 FAB과 겹치지 않도록 위로 */
html.scar-native-app.scar-public-shell .mc-floating {
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  z-index: 205;
  width: 56px;
  height: 56px;
  font-size: 10px;
}

@media (max-width: 920px) {
  .mc-hero { padding: 28px 16px 32px; }
  .mc-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .mc-hero-title { font-size: 28px; }
  /* 모바일: 번호판 오버레이가 견적 폼을 가리지 않도록 숨김 */
  .mc-hero-plate-wrap { display: none !important; }
  .mc-hero-form {
    position: relative;
    z-index: 8;
    margin-top: 4px;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 16px;
    padding: 4px;
  }
  .mc-hero { min-height: 0; background:
    linear-gradient(180deg, rgba(11,22,38,.78) 0%, rgba(11,22,38,.45) 38%, rgba(11,22,38,.22) 100%),
    image-set(url('/static/home-hero.webp') type('image/webp'), url('/static/home-hero.png') type('image/png')) 72% 42% / cover no-repeat, #0b1626; }
  .mc-hero-feats { gap: 18px 22px; }
  .mc-cars { grid-template-columns: repeat(2, 1fr); }
  .mc-reasons { grid-template-columns: repeat(3, 1fr); }
  .mc-reviews { grid-template-columns: repeat(2, 1fr); }
  .mc-stats-inner { justify-content: flex-start; gap: 16px; }
  .mc-stats-nums { gap: 18px; }
}
@media (max-width: 520px) {
  .mc-hero { padding: 20px 12px 24px; }
  .mc-hero-title { font-size: 24px; line-height: 1.25; }
  .mc-hero-form { margin-top: 8px; }
  .mc-reasons { grid-template-columns: repeat(2, 1fr); }
  .mc-cars, .mc-reviews { grid-template-columns: repeat(2, 1fr); }
  .mc-sec-title { font-size: 19px; }
  /* 5.2인치(~360px) 기본: 하단 탭·FAB 여백 */
  body.scar-native-app.scar-public-shell #app,
  html.scar-native-app.scar-public-shell #app {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================
   상용화 폴리시 — 스크롤 리빌 · 카운트업 · 히어로 소셜프루프 · 카드 줌
   ============================================ */
/* 스크롤 진입 시 페이드업 */
.mc-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.mc-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mc-reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* 히어로 eyebrow 라이브 도트 */
.mc-hero-eyebrow { display: inline-flex; align-items: center; }
.mc-hero-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #5B9BFF; margin-right: 8px;
  animation: mc-pulse 2.2s infinite;
}
@keyframes mc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(91,155,255,.55); }
  70% { box-shadow: 0 0 0 9px rgba(91,155,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,155,255,0); }
}

/* 히어로 소셜프루프 행 */
.mc-hero-proof { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.mc-hero-proof-item { display: inline-flex; align-items: center; gap: 7px; color: #c4d3ec; font-size: 13.5px; font-weight: 600; }
.mc-hero-proof-item b { color: #fff; font-weight: 900; letter-spacing: -.01em; }
.mc-hero-proof .mc-stars { color: #FFC23D; letter-spacing: 1px; font-size: 13px; }
.mc-hero-proof-sep { width: 1px; height: 16px; background: rgba(255,255,255,.16); }
@media (max-width: 520px) { .mc-hero-proof-sep { display: none; } .mc-hero-proof { gap: 10px 16px; } }

/* 인기차종 카드 이미지 줌 */
.mc-car-card .mc-car-img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mc-car-card:hover .mc-car-img { transform: scale(1.06); }

/* 후기 카드 이미지 줌 + 라운드 유지 */
.mc-review { overflow: hidden; border-radius: var(--tw-radius); }
.mc-review .mc-review-img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mc-review:hover .mc-review-img { transform: scale(1.05); }

/* 카운트업 수치 — 폭 흔들림 방지(탭ular) */
.mc-count { font-variant-numeric: tabular-nums; }

/* ============================================
   상용화 폴리시 P2 — 헤더 · 하단탭 · 목록 · 대시보드 표면
   ============================================ */

/* 헤더: 스크롤 시 글래스 블러 + 정돈된 그림자 */
#header { transition: box-shadow .2s ease, background .2s ease, backdrop-filter .2s ease; }
#header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--tw-line), 0 6px 22px rgba(15, 23, 42, .08);
}
.nav-link { transition: color .15s ease, background .15s ease; }

/* 관심(하트) 버튼 — 글래스 + 부드러운 그림자 */
.car-favorite-btn {
  background: rgba(255, 255, 255, .92) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.car-favorite-btn:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, .22); }

/* 하단탭(웹 .tw-tabbar / 네이티브 .scar-public-tabbar) — 액티브 인디케이터 + 아이콘 모션 */
.tw-tabbar button, .scar-public-tabbar button { position: relative; transition: color .15s ease; }
.tw-tabbar button .ico, .scar-public-tabbar button .ico { display: inline-block; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.tw-tabbar button.active .ico, .scar-public-tabbar button.active .ico { transform: translateY(-1px) scale(1.14); }
.tw-tabbar button.active::before, .scar-public-tabbar button.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--tw-primary);
}

/* 대시보드 KPI 카드 — 상단 액센트(호버) */
.adm-stat-card, .stat-card { position: relative; }
.adm-stat-card::before, .stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--tw-primary-soft), var(--tw-primary));
  border-radius: var(--tw-radius) var(--tw-radius) 0 0;
  opacity: 0; transition: opacity .18s ease;
}
.adm-stat-card:hover::before, .stat-card:hover::before { opacity: 1; }
/* 경고 KPI는 액센트 미적용(위험색 유지) */
.adm-stat-card.adm-stat-warn::before { display: none; }

/* 허브 카드 — 호버 시 화살표 어포던스 */
.dash-hub-card { position: relative; }
.dash-hub-card::after {
  content: '›'; position: absolute; right: 15px; top: 13px;
  font-size: 22px; line-height: 1; color: var(--tw-ink-mute);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.dash-hub-card:hover::after { opacity: 1; transform: translateX(0); }

/* ============================================
   상용화 폴리시 P3 — 차량 상세 반응형 · sticky CTA · 접수 폼/모달
   ============================================ */
/* 상세: 데스크톱 좌(콘텐츠)+우(sticky 견적) → 모바일 세로 스택 */
.detail-quote-card { transition: box-shadow .2s ease; }
@media (min-width: 901px) {
  .detail-quote-card { box-shadow: var(--tw-shadow-lg) !important; }
}
@media (max-width: 900px) {
  .detail-layout { flex-direction: column !important; gap: 16px !important; padding-bottom: 78px; }
  .detail-aside { width: 100% !important; position: static !important; top: auto !important; }
}

/* 접수 폼/모달 — 백드롭 블러 + 포커스 링 + 그라데이션 제출 버튼 */
.modal-overlay { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal { box-shadow: var(--tw-shadow-lg); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--tw-primary) !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 216, .14);
}
.btn-quote {
  background: var(--tw-primary-soft) !important;
  box-shadow: 0 6px 16px rgba(91, 143, 230, .26);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn-quote:hover { background: var(--tw-primary-soft-strong) !important; transform: translateY(-1px); }

/* ============================================
   상용화 폴리시 P4 — 마이페이지 반응형 · 대시보드 테이블 정련
   ============================================ */
/* 마이페이지: 데스크톱 사이드바+본문 → 모바일 세로 스택 */
@media (max-width: 760px) {
  .mypage-layout { grid-template-columns: 1fr !important; }
}
/* 마이페이지 요약 타일 호버 */
.mp-stat { transition: transform .12s ease, box-shadow .15s ease; }
.mp-stat:hover { transform: translateY(-2px); box-shadow: var(--tw-shadow); }

/* 대시보드 테이블 — 제브라 + 부드러운 행 hover (라이트/다크 공용, hover는 !important로 우선) */
.adm-table tbody tr td, .d-car-table tbody tr td { transition: background .12s ease; }
.adm-table tbody tr:nth-of-type(even) td { background: rgba(148, 163, 184, .07); }
.adm-table tbody tr:hover td { background: rgba(148, 163, 184, .16) !important; }
.d-car-table tbody tr:nth-of-type(even) td { background: #fafbfc; }
.d-car-table tbody tr:hover td { background: #f3f4f6 !important; }
