:root {
  --primary: #e8360a;
  --primary-dark: #c62d08;
  --primary-light: #fff2ef;
  --accent: #ff6b35;
  --blue: #1a56db;
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --text: #191919;
  --text-muted: #767676;
  --text-light: #aaa;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --success: #00b34d;
  --danger: #e8360a;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.13);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TOP BAR ── */
.top-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  height: 40px; display: flex; align-items: center;
}
.top-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.top-bar-links { display: flex; gap: 18px; }
.top-bar-links a { font-size: 12px; color: var(--text-muted); }
.top-bar-links a:hover { color: var(--primary); }

/* ── HEADER ── */
header {
  background: #fff; border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.logo-text { font-size: 17px; font-weight: 900; color: var(--text); letter-spacing: -.3px; }
.logo-text span { color: var(--primary); }

/* GNB */
.gnb { display: flex; height: 64px; flex: 1; }
.gnb-item {
  position: relative; display: flex; align-items: center;
  padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--text);
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.gnb-item:hover, .gnb-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.gnb-item .badge-new {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 20px;
  margin-left: 4px; vertical-align: middle;
}

/* Header right */
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: all .15s; font-family: inherit; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-md { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1447c0; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 500;
}
.mobile-nav.open { display: block; }
.mobile-nav-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.mobile-nav-drawer {
  position: absolute; top: 0; left: 0; bottom: 0; width: 280px;
  background: #fff; overflow-y: auto;
  transform: translateX(-100%); transition: transform .25s;
}
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-header { padding: 20px 18px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.mobile-nav-header .logo-text { font-size: 16px; }
.mobile-nav-close { background: none; border: none; font-size: 22px; color: var(--text-muted); }
.mobile-nav-links { padding: 10px 0; }
.mobile-nav-links a { display: flex; align-items: center; gap: 10px; padding: 13px 18px; font-size: 15px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border-light); }
.mobile-nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-nav-user { padding: 16px 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

/* ── HERO SEARCH ── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  padding: 40px 20px 48px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,54,10,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1280px; margin: 0 auto; }
.hero-title { color: #fff; font-size: 28px; font-weight: 900; margin-bottom: 6px; letter-spacing: -.5px; }
.hero-title span { color: var(--accent); }
.hero-sub { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 28px; }

/* Search panel */
.search-panel {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-tabs { display: flex; border-bottom: 1px solid var(--border); }
.search-tab {
  flex: 1; padding: 14px 10px; text-align: center; font-size: 14px; font-weight: 700;
  color: var(--text-muted); background: #f8f8f8; border: none;
  border-bottom: 3px solid transparent; transition: all .15s; cursor: pointer;
}
.search-tab.active { background: #fff; color: var(--primary); border-bottom-color: var(--primary); }
.search-body { padding: 20px; }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-select {
  flex: 1; height: 44px; padding: 0 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; color: var(--text);
  background: #fff; outline: none; cursor: pointer; transition: border-color .15s;
  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 d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.search-select:focus { border-color: var(--primary); }
.search-keyword { display: flex; gap: 10px; margin-top: 12px; }
.search-input {
  flex: 1; height: 44px; padding: 0 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; outline: none; transition: border-color .15s;
  font-family: inherit;
}
.search-input:focus { border-color: var(--primary); }
.search-btn-main { height: 44px; padding: 0 24px; white-space: nowrap; border-radius: var(--radius); flex-shrink: 0; }

/* Stats strip */
.stats-strip {
  background: rgba(255,255,255,.08); border-radius: var(--radius);
  margin-top: 20px; padding: 14px 20px;
  display: flex; gap: 0; justify-content: space-around; flex-wrap: wrap;
}
.stat-strip-item { text-align: center; flex: 1; min-width: 80px; }
.stat-strip-item .num { font-size: 20px; font-weight: 900; color: #fff; }
.stat-strip-item .lbl { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── SECTION ── */
.section { padding: 44px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 20px; font-weight: 900; letter-spacing: -.3px; }
.section-title span { color: var(--primary); }
.section-more { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
.section-more:hover { color: var(--primary); }

/* ── CAT TABS ── */
.cat-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 22px; }
.cat-tab {
  padding: 10px 20px; border: none; background: none;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.cat-tab:hover { color: var(--primary); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── FILTER BAR ── */
.filter-bar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 20px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.filter-select {
  height: 36px; padding: 0 28px 0 10px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 13px; color: var(--text); background: #fff;
  outline: none; cursor: pointer; transition: border-color .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.filter-select:focus { border-color: var(--primary); }
.filter-input {
  height: 36px; padding: 0 10px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 13px; outline: none; transition: border-color .15s;
  font-family: inherit; width: 140px;
}
.filter-input:focus { border-color: var(--primary); }
.filter-divider { width: 1px; height: 20px; background: var(--border); }
.filter-reset-btn {
  height: 36px; padding: 0 12px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: #fff; white-space: nowrap;
}
.filter-reset-btn:hover { color: var(--primary); border-color: var(--primary); }

/* Sort bar */
.sort-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sort-bar .count { font-size: 13px; color: var(--text-muted); }
.sort-bar .count strong { color: var(--primary); font-weight: 700; }
.sort-select {
  height: 34px; padding: 0 28px 0 10px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 13px; background: #fff; outline: none;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}

/* ── CAR GRID ── */
.car-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.car-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  border: 1px solid var(--border-light);
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car-img-wrap { position: relative; height: 170px; background: #f0f0f0; overflow: hidden; }
.car-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.car-card:hover .car-img-wrap img { transform: scale(1.04); }
.car-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #ddd; }
.car-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge {
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px;
  line-height: 1.3;
}
.badge-sale { background: var(--primary); color: #fff; }
.badge-sold { background: #999; color: #fff; }
.badge-domestic { background: #1a56db; color: #fff; }
.badge-import { background: #7c3aed; color: #fff; }
.badge-etc { background: #64748b; color: #fff; }
.car-img-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
}
.car-body { padding: 14px 14px 16px; }
.car-name { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-spec { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.car-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.car-price { font-size: 20px; font-weight: 900; color: var(--text); letter-spacing: -.3px; }
.car-price-unit { font-size: 13px; color: var(--text-muted); }
.car-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.car-tag { font-size: 11px; color: var(--text-muted); background: var(--bg); padding: 3px 8px; border-radius: 4px; }

/* ── FORM PAGES ── */
.form-page { min-height: calc(100vh - 104px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.form-wrap { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 460px; }
.form-wrap h2 { font-size: 22px; font-weight: 900; margin-bottom: 6px; text-align: center; }
.form-wrap .form-desc { color: var(--text-muted); font-size: 13px; text-align: center; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-group .input {
  width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; outline: none;
  transition: border-color .15s; font-family: inherit; color: var(--text);
}
.form-group .input:focus { border-color: var(--primary); }
.form-group textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.form-group select.input { appearance: none; cursor: pointer; 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 d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { height: 50px; font-size: 16px; border-radius: var(--radius); margin-top: 8px; }
.form-footer { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.form-footer a { color: var(--primary); font-weight: 700; }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-divider span { font-size: 12px; color: var(--text-light); white-space: nowrap; }

/* ── POST PAGE ── */
.post-page { max-width: 800px; margin: 0 auto; padding: 32px 20px 60px; }
.post-page h1 { font-size: 22px; font-weight: 900; margin-bottom: 28px; }
.post-section { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; margin-bottom: 16px; }
.post-section-title { font-size: 15px; font-weight: 800; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); color: var(--text); display: flex; align-items: center; gap: 8px; }
.post-section-title::before { content: ''; display: block; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }

/* Cat radio */
.cat-radio-group { display: flex; gap: 10px; }
.cat-radio-label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 10px; border-radius: var(--radius); border: 2px solid var(--border);
  cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text-muted);
  transition: all .15s; text-align: center;
}
.cat-radio-label input { display: none; }
.cat-radio-label:hover { border-color: var(--primary); color: var(--primary); }
.cat-radio-label.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Image upload */
.img-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.img-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.img-upload-area .upload-icon { font-size: 32px; margin-bottom: 8px; }
.img-upload-area p { font-size: 13px; color: var(--text-muted); }
.img-upload-area input { display: none; }
.img-preview-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.img-preview-item { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); position: relative; }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* Video URL */
.video-url-wrap { position: relative; }
.video-url-wrap .icon-prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.video-url-wrap .input { padding-left: 38px; }

/* ── DETAIL PAGE ── */
.detail-page { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--primary); }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.detail-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.detail-card-body { padding: 24px; }
.detail-card-title { font-size: 14px; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; }
.detail-card-title::before { content: ''; display: block; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }

/* Slider */
.slider-wrap { position: relative; height: 360px; background: #111; overflow: hidden; }
.slider-wrap img { width: 100%; height: 100%; object-fit: cover; }
.slider-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; color: #555; }
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 18px;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.slider-nav:hover { background: rgba(0,0,0,.7); }
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }
.slider-counter { position: absolute; bottom: 12px; right: 14px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.slider-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: background .15s; }
.slider-dot.active { background: #fff; width: 16px; border-radius: 3px; }

/* Spec grid */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-item { padding: 13px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.spec-item:nth-last-child(-n+2) { border-bottom: none; }
.spec-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.spec-value { font-size: 14px; font-weight: 700; color: var(--text); }

/* Seller card */
.seller-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 76px; }
.seller-card-title { font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.price-big { font-size: 30px; font-weight: 900; color: var(--text); letter-spacing: -.5px; margin-bottom: 4px; }
.price-big span { font-size: 16px; color: var(--text-muted); font-weight: 600; }
.car-title-big { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.car-sub-big { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.status-sale { background: #e6f7ee; color: #00875a; }
.status-sold { background: #f0f0f0; color: #999; }
.seller-info-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.seller-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; flex-shrink: 0; }
.seller-name { font-weight: 700; font-size: 14px; }
.seller-date { font-size: 11px; color: var(--text-muted); }
.action-btns { display: flex; flex-direction: column; gap: 8px; }
.action-btns .btn { height: 46px; font-size: 14px; border-radius: var(--radius); }
.owner-actions { display: none; flex-direction: column; gap: 8px; }

/* ── CHAT PAGE ── */
.chat-page { max-width: 800px; margin: 0 auto; padding: 28px 20px 60px; }
.chat-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 580px; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: #fafafa; }
.chat-header-icon { width: 42px; height: 42px; background: #f0f0f0; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chat-header h3 { font-size: 15px; font-weight: 800; }
.chat-header p { font-size: 12px; color: var(--text-muted); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #f8f9fa; }
.msg-wrap { display: flex; gap: 8px; max-width: 75%; }
.msg-wrap.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-wrap.other { align-self: flex-start; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.msg-wrap.other .msg-bubble { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-wrap.mine .msg-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-time { font-size: 10px; color: var(--text-muted); align-self: flex-end; white-space: nowrap; }
.msg-name { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; font-weight: 600; }
.chat-input-wrap { padding: 14px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: #fff; }
.chat-input-wrap input { flex: 1; height: 42px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 21px; font-size: 14px; outline: none; transition: border-color .15s; font-family: inherit; }
.chat-input-wrap input:focus { border-color: var(--primary); }
.chat-input-wrap button { height: 42px; padding: 0 18px; border-radius: 21px; font-size: 13px; }

/* ── RESERVATION ── */
.reserve-page { max-width: 640px; margin: 0 auto; padding: 32px 20px 60px; }
.reserve-page h1 { font-size: 22px; font-weight: 900; margin-bottom: 28px; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.time-btn {
  padding: 10px 4px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: #fff; font-size: 13px; font-weight: 700;
  color: var(--text-muted); cursor: pointer; transition: all .15s; text-align: center;
}
.time-btn:hover { border-color: var(--primary); color: var(--primary); }
.time-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.time-btn:disabled { opacity: .4; cursor: not-allowed; }
.car-summary-card { background: #fff; border-radius: var(--radius); border: 1.5px solid var(--border); padding: 14px 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.car-summary-thumb { width: 68px; height: 68px; border-radius: var(--radius); background: #f0f0f0; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.car-summary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.success-box { background: #e6f7ee; border: 1.5px solid #86efac; border-radius: var(--radius-lg); padding: 36px; text-align: center; display: none; }
.success-box .icon { font-size: 3rem; margin-bottom: 12px; }
.success-box h3 { font-size: 18px; font-weight: 900; color: #00875a; margin-bottom: 8px; }
.success-box p { font-size: 13px; color: #15803d; margin-bottom: 20px; line-height: 1.7; }

/* ── MY RESERVATIONS ── */
.resv-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 12px; display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border-light); }
.resv-thumb { width: 80px; height: 72px; border-radius: var(--radius); object-fit: cover; background: #f0f0f0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.resv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #e6f7ee; color: #00875a; }
.badge-rejected  { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #f0f0f0; color: #767676; }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: calc(100vh - 104px); }
.admin-sidebar { width: 220px; flex-shrink: 0; background: #1a1a2e; padding: 24px 0; }
.admin-sidebar h2 { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #555; padding: 0 18px; margin-bottom: 10px; }
.admin-menu-item { display: flex; align-items: center; gap: 9px; padding: 11px 18px; font-size: 14px; font-weight: 600; color: #aaa; background: none; border: none; width: 100%; text-align: left; cursor: pointer; transition: all .15s; }
.admin-menu-item:hover { background: #252540; color: #fff; }
.admin-menu-item.active { background: var(--primary); color: #fff; }
.admin-main { flex: 1; padding: 32px 28px; overflow-y: auto; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.stat-mini { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 18px; }
.stat-mini .num { font-size: 28px; font-weight: 900; }
.stat-mini .lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.stat-mini.pending .num { color: #f59e0b; }
.stat-mini.approved .num { color: var(--success); }
.stat-mini.rejected .num { color: var(--danger); }
.stat-mini.cars .num { color: var(--blue); }
.admin-table { width: 100%; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border-collapse: collapse; overflow: hidden; }
.admin-table th { background: #fafafa; padding: 12px 16px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 13px 16px; font-size: 13px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

/* ── ABOUT PAGE ── */
.about-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 72px 20px; text-align: center; }
.about-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.about-hero h1 span { color: var(--accent); }
.about-hero p { font-size: 16px; opacity: .8; max-width: 540px; margin: 0 auto; line-height: 1.8; }
.about-section { padding: 60px 0; }
.about-section.alt { background: #fff; }
.about-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.about-title { font-size: 26px; font-weight: 900; text-align: center; margin-bottom: 8px; }
.about-sub { font-size: 15px; color: var(--text-muted); text-align: center; margin-bottom: 44px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.kpi-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 16px; text-align: center; }
.kpi-icon { font-size: 32px; margin-bottom: 12px; }
.kpi-num { font-size: 28px; font-weight: 900; color: var(--primary); }
.kpi-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value-card { background: var(--bg); border-radius: var(--radius-lg); padding: 28px 22px; border-left: 4px solid var(--primary); }
.value-card .icon { font-size: 28px; margin-bottom: 12px; }
.value-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.75; }
.history-wrap { max-width: 700px; margin: 0 auto; }
.history-item { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.history-item:last-child { border-bottom: none; }
.history-year { font-size: 16px; font-weight: 900; color: var(--primary); min-width: 52px; }
.history-content h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.history-content p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.contact-table-wrap { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; max-width: 720px; margin: 0 auto 28px; }
.contact-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.contact-table tr { border-bottom: 1px solid var(--border-light); }
.contact-table tr:last-child { border-bottom: none; }
.contact-table th { padding: 13px 16px; font-weight: 700; color: var(--text-muted); width: 110px; text-align: left; white-space: nowrap; }
.contact-table td { padding: 13px 16px; }
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.contact-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; text-align: center; }
.contact-card .icon { font-size: 28px; margin-bottom: 10px; }
.contact-card h4 { font-size: 12px; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.contact-card p { font-size: 14px; font-weight: 700; }

/* ── TEAM PAGE ── */
.team-hero { background: linear-gradient(135deg, #1a1a2e 0%, #3b0764 100%); color: #fff; padding: 60px 20px; text-align: center; }
.team-hero h1 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.team-hero p { font-size: 14px; opacity: .8; max-width: 480px; margin: 0 auto; line-height: 1.8; }
.dept-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.dept-btn { padding: 8px 18px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-muted); transition: all .15s; }
.dept-btn:hover, .dept-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 20px; }
.member-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member-photo { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; }
.member-dept-badge { position: absolute; bottom: 10px; right: 10px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; color: #fff; }
.member-body { padding: 16px 18px 20px; }
.member-name { font-size: 16px; font-weight: 900; margin-bottom: 3px; }
.member-role { font-size: 12px; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.member-bio { font-size: 12px; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.member-skills { display: flex; gap: 5px; flex-wrap: wrap; }
.skill-tag { font-size: 11px; background: var(--bg); color: var(--text-muted); padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.ceo-card { background: linear-gradient(135deg, #fff8f5, #f0f9ff); border: 1.5px solid #fddbc7; border-radius: var(--radius-lg); padding: 36px; display: flex; gap: 32px; align-items: center; margin-bottom: 48px; }
.ceo-avatar { font-size: 72px; flex-shrink: 0; }
.ceo-info h2 { font-size: 22px; font-weight: 900; margin-bottom: 3px; }
.ceo-info .ceo-role { color: var(--primary); font-weight: 700; margin-bottom: 14px; font-size: 14px; }
.ceo-info p { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.ceo-quote { margin-top: 16px; border-left: 3px solid var(--primary); padding-left: 14px; font-style: italic; font-size: 14px; color: var(--text); }

/* ── FOOTER ── */
footer { background: #1a1a2e; color: #8892a4; padding: 36px 20px 24px; margin-top: 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-logo .logo-text { color: #fff; font-size: 18px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: #8892a4; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2d3748; padding-top: 20px; font-size: 12px; line-height: 1.8; }
.footer-bottom p { margin-bottom: 3px; }
.footer-bottom a { color: #8892a4; }
.footer-bottom a:hover { color: #fff; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1a1a2e; color: #fff; padding: 12px 24px; border-radius: 24px; font-size: 14px; font-weight: 600; z-index: 9999; opacity: 0; transition: opacity .3s; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 52px; margin-bottom: 14px; }
.empty-state p { font-size: 15px; }

/* ── STEP LABEL ── */
.step-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: 5px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .car-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .gnb, .top-bar { display: none; }
  .hamburger { display: flex; }
  .header-right .btn:not(.btn-primary) { display: none; }
  .car-grid { grid-template-columns: repeat(2,1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .seller-card { position: static; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .ceo-card { flex-direction: column; text-align: center; padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .search-row { flex-wrap: wrap; }
  .filter-bar { gap: 8px; }
}
@media (max-width: 600px) {
  .car-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .car-img-wrap { height: 130px; }
  .car-body { padding: 10px 10px 12px; }
  .car-name { font-size: 13px; }
  .car-price { font-size: 17px; }
  .hero-title { font-size: 20px; }
  .search-panel .search-row { flex-direction: column; }
  .search-select { width: 100%; }
  .time-grid { grid-template-columns: repeat(3,1fr); }
  .cat-radio-group { flex-direction: column; }
  .form-wrap { padding: 28px 20px; }
  .about-hero h1 { font-size: 22px; }
  .team-hero h1 { font-size: 20px; }
  .footer-top { flex-direction: column; }
}
