/* ==========================================================================
   부산오토 — 앱 버전 (/app/) 전용 화면. 웹과 다른 앱 전용 내비·전체화면·스플래시.
   ========================================================================== */
body[data-version="app"] {
  background: #f3f0e9;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
  overscroll-behavior-y: none;
}
body[data-version="app"] .gnb, body[data-version="app"] .util, body[data-version="app"] .pfoot,
body[data-version="app"] .tabbar { display: none !important; }

/* 스플래시 */
.splash {
  position: fixed; inset: 0; z-index: 500; background: #111418; color: #fff;
  display: grid; place-items: center; transition: opacity .45s ease, visibility .45s;
}
.splash.is-off { opacity: 0; visibility: hidden; }
.splash__in { display: grid; justify-items: center; gap: 14px; }
.splash__mark { width: 92px; height: 92px; border-radius: 24px; background: #1b1f24; display: grid; place-items: center; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.splash__mark svg { width: 58px; height: 58px; }
.splash__name { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.splash__sub { font-size: 12px; color: #8c877c; letter-spacing: .16em; }
.splash__bar { width: 120px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 10px; }
.splash__bar i { display: block; height: 100%; width: 40%; background: var(--yellow); animation: splashbar 1.1s ease-in-out infinite; }
@keyframes splashbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

/* 앱 상단 바 */
.abar {
  position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px; min-height: 56px;
  background: #111418; color: #fff;
}
.abar__back { width: 38px; height: 38px; border: 0; background: none; color: #fff; display: grid; place-items: center; border-radius: 10px; }
.abar__back:active { background: rgba(255,255,255,.12); }
.abar__title { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.abar__title b { font-size: 16px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abar__title span { font-size: 10.5px; color: #9a9488; letter-spacing: .04em; }
.abar__ico { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 10px; }
.abar__ico:active { background: rgba(255,255,255,.12); }
.abar__ico b { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; border-radius: 999px; background: var(--yellow); color: #111418; font-size: 9.5px; line-height: 15px; text-align: center; padding: 0 3px; }

/* 앱 홈 히어로 */
.ahero { background: #111418; color: #fff; padding: 6px 18px 22px; border-radius: 0 0 26px 26px; }
.ahero__hi { font-size: 12px; color: #9a9488; }
.ahero h1 { margin-top: 6px; font-size: 25px; line-height: 1.3; letter-spacing: -.04em; }
.ahero h1 em { font-style: normal; color: var(--yellow); }
.asearch { position: relative; margin-top: 16px; }
.asearch input { width: 100%; height: 50px; border-radius: 14px; border: 0; background: #fff; color: #111418; padding: 0 50px 0 16px; font-size: 14px; }
.asearch button { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; border-radius: 11px; background: var(--yellow); color: #111418; display: grid; place-items: center; }
.aquick { display: flex; gap: 6px; overflow-x: auto; margin-top: 14px; scrollbar-width: none; padding-bottom: 2px; }
.aquick::-webkit-scrollbar { display: none; }
.aquick a { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.10); color: #e6e1d5; font-size: 12px; border: 1px solid rgba(255,255,255,.14); }
.aquick a:first-child { background: var(--yellow); color: #111418; border-color: var(--yellow); font-weight: 700; }

/* 앱 섹션 */
.asec { padding: 18px 0 4px; }
.asec__head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px 10px; }
.asec__head h2 { font-size: 17px; letter-spacing: -.02em; }
.asec__head a { font-size: 11.5px; color: #7d776b; }
.asec__head p { font-size: 11.5px; color: #8b8578; margin-top: 2px; }
.arow { display: flex; gap: 10px; overflow-x: auto; padding: 0 18px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.arow::-webkit-scrollbar { display: none; }
.arow > * { flex: 0 0 250px; scroll-snap-align: start; }

/* 앱 카드 */
.car { position: relative; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 6px 16px rgba(17,20,24,.06); }
.car__link { display: block; min-width: 0; }
.car__pic { position: relative; aspect-ratio: 4/3; background: #eee8dc; overflow: hidden; }
.car__pic img { width: 100%; height: 100%; object-fit: cover; }
.car__fav { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #4b5057; z-index: 2; }
.car__fav.is-on { color: #d33b2c; }
.car__badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.car__count { position: absolute; right: 8px; bottom: 8px; background: rgba(17,20,24,.62); color: #fff; font-size: 10px; padding: 3px 7px; border-radius: 999px; }
.car__body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.car__dealer { font-size: 10px; color: #8b8578; }
.car__name { font-size: 13px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.car__meta { font-size: 10.5px; color: #6d716f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car__price { font-size: 15.5px; font-weight: 700; letter-spacing: -.03em; margin-top: 3px; }
.car__price small { font-size: 9.5px; font-weight: 500; color: #8b8578; margin-left: 2px; }
.car__tags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 3px; }
.car__tags span { font-size: 9px; background: #f1f0eb; color: #5c6167; border-radius: 4px; padding: 2px 5px; }
.car__cmp { display: none; }

.acard { position: relative; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 20px rgba(17,20,24,.07); display: flex; flex-direction: column; }
.acard__pic { position: relative; aspect-ratio: 16/10; background: #eee8dc; }
.acard__pic img { width: 100%; height: 100%; object-fit: cover; }
.acard__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; }
.acard__fav { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #4b5057; }
.acard__fav.is-on { color: #d33b2c; }
.acard__body { padding: 12px 14px 14px; display: grid; gap: 3px; }
.acard__dealer { font-size: 10.5px; color: #8b8578; }
.acard__name { font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard__meta { font-size: 11.5px; color: #6d716f; }
.acard__price { margin-top: 4px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.acard__price small { font-size: 11px; font-weight: 500; color: #8b8578; margin-left: 2px; }

/* 앱 피처 카드 */
.afeature { position: relative; margin: 0 18px; border-radius: 22px; overflow: hidden; aspect-ratio: 16/11; background: #111418; color: #fff; }
.afeature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.afeature__body { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(180deg, transparent, rgba(17,20,24,.88)); }
.afeature__tag { display: inline-block; background: var(--yellow); color: #111418; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; margin-bottom: 7px; }
.afeature b { display: block; font-size: 20px; line-height: 1.3; letter-spacing: -.03em; }
.afeature span { display: block; font-size: 12px; color: #d6d0c4; margin-top: 5px; }
.afeature__price { margin-top: 10px; font-size: 22px; font-weight: 700; }

/* 앱 카테고리 */
.acats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px 12px 10px; }
.acats a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; font-size: 11px; color: #3b424b; }
.acats i { width: 50px; height: 50px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(17,20,24,.06); }
.acats i svg { width: 24px; height: 24px; }
.acats a:active i { background: #fff5d6; }

/* 앱 하단 내비 */
.anav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(17,20,24,.97); backdrop-filter: blur(16px); color: #8c877c; border-top: 1px solid #23272d;
}
.anav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; padding-top: 4px; }
.anav svg { width: 22px; height: 22px; }
.anav a.is-on { color: #fff; }
.anav a.is-on svg { color: var(--yellow); }
.anav__reg { position: relative; }
.anav__plus { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; background: var(--yellow); color: #111418; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(255,193,7,.35); }
.anav__plus svg { width: 24px; height: 24px; color: #111418; }
.anav__reg span:last-child { color: #e6e1d5; font-weight: 700; }

/* 앱 목록 */
.alist { display: grid; gap: 12px; padding: 12px 18px; }
.arowcard { display: flex; gap: 12px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 16px rgba(17,20,24,.05); }
.arowcard__pic { width: 118px; flex: 0 0 118px; background: #eee8dc; }
.arowcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.arowcard__body { flex: 1 1 auto; min-width: 0; padding: 12px 12px 12px 0; display: grid; gap: 2px; align-content: center; }
.arowcard__body b { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arowcard__body span { font-size: 11.5px; color: #6d716f; }
.arowcard__price { font-size: 17px; font-weight: 700; letter-spacing: -.03em; margin-top: 2px; }

/* 앱 검색 */
.afilterbar { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 40; display: flex; gap: 8px; padding: 10px 18px; background: rgba(243,240,233,.96); backdrop-filter: blur(10px); }
.afilterbar button { flex: 1; height: 40px; border: 1px solid #ddd6c7; border-radius: 12px; background: #fff; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.afilterbar button.is-on { background: #111418; color: #fff; border-color: #111418; }

/* 앱 상세 */
.aprice { display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px; background: #fff; }
.aprice b { font-size: 28px; letter-spacing: -.04em; }
.aprice b small { font-size: 12px; font-weight: 500; color: #8b8578; margin-left: 4px; }
.aact {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; gap: 8px; padding: 10px 16px; background: rgba(255,255,255,.97); border-top: 1px solid #e7e0d2;
}
.aact .btn { flex: 1; min-height: 48px; border-radius: 14px; }
.aact .btn--ico { flex: 0 0 52px; display: grid; place-items: center; background: #fff; border: 1px solid #ddd6c7; border-radius: 14px; }
.aact .btn--ico.is-on { color: #d33b2c; border-color: #d33b2c; }

/* 앱 마이 */
.amyp { margin: 16px 18px; background: #111418; color: #fff; border-radius: 20px; padding: 20px; display: grid; gap: 4px; }
.amyp b { font-size: 20px; }
.amyp span { font-size: 12px; color: #b9b3a7; }
.amyp .btn { margin-top: 12px; }
.amenu { margin: 0 18px; background: #fff; border-radius: 18px; overflow: hidden; }
.amenu a { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid #f3eee4; font-size: 13.5px; }
.amenu a:last-child { border-bottom: 0; }
.amenu a small { color: #a8a193; }
.aspec { background: #fff; border-radius: 18px; margin: 0 18px; padding: 2px 16px; }
.aspec > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f3eee4; font-size: 12.5px; }
.aspec > div:last-child { border-bottom: 0; }
.aspec span { color: #8b8578; }
.aspec b { font-weight: 600; text-align: right; }
.opts span { background: #fff; border: 1px solid #ece5d8; border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #3b424b; }
.checkgrid div { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 12px; }
.checkgrid i { width: 18px; height: 18px; border-radius: 50%; background: #e7f4ec; color: #12774a; display: grid; place-items: center; font-style: normal; font-size: 10px; flex: 0 0 auto; }
.checkgrid i.no { background: #fbeee9; color: #b93a2c; }
.sellercard { background: #fff; border-radius: 18px; padding: 16px; margin: 0 18px; }
.sellercard__top { display: flex; gap: 12px; align-items: center; }
.sellercard__av { width: 42px; height: 42px; border-radius: 50%; background: #111418; color: var(--yellow); display: grid; place-items: center; font-weight: 700; }
.sellercard b { font-size: 14px; display: block; }
.sellercard span { font-size: 11px; color: #7d776b; }
.sellercard__rows { margin-top: 10px; }
.sellercard__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 12px; border-top: 1px solid #f6f1e7; }
.sellercard__rows span { color: #8b8578; }
.inqform { display: grid; gap: 10px; }
.inqform .field { display: grid; gap: 5px; }
.inqform label { font-size: 11.5px; color: #7d776b; }
.inqform input, .inqform textarea, .inqform select { border: 1px solid #e4ded1; border-radius: 10px; padding: 10px 12px; font-size: 13px; background: #fff; width: 100%; }
.inqform textarea { min-height: 88px; }
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.on { display: flex; }
.modal__bg { position: absolute; inset: 0; background: rgba(17,20,24,.55); }
.modal__box { position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 420px; padding: 20px; }
.modal__box h3 { font-size: 17px; margin-bottom: 12px; }

/* 앱 푸터 */
.afoot { margin: 24px 18px 8px; padding: 18px; background: #fff; border-radius: 18px; }
.afoot__brand { display: flex; align-items: baseline; gap: 6px; }
.afoot__brand b { font-size: 15px; }
.afoot__brand span { font-size: 10.5px; color: #8b8578; }
.afoot p { font-size: 11px; color: #7d776b; margin-top: 6px; line-height: 1.6; }
.afoot__common { display: grid; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1ece1; font-size: 11px; color: #4b5057; }
.afoot__common b { color: #111418; margin-right: 4px; }
.afoot__common a { text-decoration: underline; text-underline-offset: 2px; }
.afoot__common .made { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #111418; margin-top: 2px; }
.afoot__common .made i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.afoot__common .made em { font-style: normal; font-weight: 500; color: #8b8578; font-size: 10px; }
.afoot__ver { display: flex; gap: 6px; margin-top: 12px; font-size: 10.5px; color: #a8a193; }
.afoot__ver a.is-on { color: #111418; font-weight: 700; }
.afoot__copy { margin-top: 8px; font-size: 10px; color: #a8a193; }

@media (min-width: 640px) {
  body[data-version="app"] .abar, body[data-version="app"] .anav { max-width: 520px; left: 50%; transform: translateX(-50%); }
  body[data-version="app"] { background: #e8e4da; }
  body[data-version="app"] main, body[data-version="app"] .afoot { max-width: 520px; margin-left: auto; margin-right: auto; }
  body[data-version="app"] .aact { max-width: 520px; left: 50%; transform: translateX(-50%); }
}
