a {
  text-decoration: none;
  /* 밑줄 삭제 */
  color: inherit;
  /* 부모 요소의 글자색을 그대로 따름 (검정색 등) */
}


:root {
  --main: #DAE5D0;
  --sub: #F9F9F9;
  --point: #A0C1B8;
  --black: #1a1a1a;
  --border: 2px solid var(--black);
  --shadow: 8px 8px 0 rgba(26, 26, 26, 0.18);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--main);
  background-image:
    linear-gradient(to right, rgba(26, 26, 26, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 26, 26, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: 'Space Mono', monospace;
  overflow: hidden;
  height: 100vh;
  user-select: none;
  margin-top:90px;
}

container {
}

/* ══ TICKER ══ */
.ticker-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 36px;
  background: var(--black);
  color: var(--main);
  border-bottom: var(--border);
  z-index: 2000;
  overflow: hidden;
}

.ticker-content {
  display: flex; 
  width: max-content;
  animation: ticker-loop 60s linear infinite;
}

.ticker-content span {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding-right: 50px; 
  line-height: 36px;
  white-space: nowrap; 
}

@keyframes ticker-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ══ TASKBAR ══ */
.taskbar {
  position: fixed;
  top: 36px;
  width: 100%;
  height: 56px;
  background: var(--sub);
  border-bottom: var(--border);
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.taskbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo {
  width: 100px;
  height: 40px;
  background: url("../img/LOGO.svg") no-repeat center / contain;
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.taskbar-login-btn {
  background: var(--black);
  color: var(--sub);
  border: var(--border);
  padding: 6px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.2);
}

.taskbar-login-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.2);
}

.taskbar-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border: var(--border);
  background: var(--main);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s;
}

.taskbar-user-info:hover {
  background: var(--point);
}

.taskbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--point);
  border: var(--border);
  background-image: url("../img/default-avatar.png");
  background-size: cover;
  background-position: center;
}

.taskbar-clock {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.06em;
  position: absolute;
  right: 28px;
}

/* ══ DESKTOP ══ */
.desktop {
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 52px;
  overflow: hidden;
}

/* ══ ICONS ══ */
.icon-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: absolute;
  top: 32px;
  left: 40px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  width: 80px;
}

.desktop-icon:hover .icon-img {
  transform: translateY(-3px);
  box-shadow: 6px 10px 0 rgba(26, 26, 26, 0.15);
}

.icon-img {
  width: 64px;
  height: 64px;
  background: var(--sub);
  border: var(--border);
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.15);
  transition: transform 0.15s, box-shadow 0.15s;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 35px 35px;

}

.icon-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  letter-spacing: 0.03em;
  background: rgba(249, 249, 249, 0.88);
  padding: 2px 6px;
  border-radius: 2px;
}

.desktop-icon.active .icon-img {
  background-color: var(--point);
}

/* ══ DECO ══ */
.deco-panel {
  position: absolute;
  right: 32px;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.deco-tag {
  background: var(--sub);
  border: var(--border);
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.1);
  color: #555;
}

.deco-tag span {
  color: var(--black);
}

/* ══ WINDOWS ══ */
.win {
  position: absolute;
  background: var(--sub);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 2px;
  display: none;
  min-width: 280px;
  min-height: 150px;
  z-index: 100;
  overflow: hidden;
}

.win.open {
  display: block;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.win-header {
  background: var(--point);
  border-bottom: var(--border);
  padding: 0 12px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: grab;
  position: relative;
}

.win-header:active {
  cursor: grabbing;
}

.dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.dot {
  width: 13px;
  height: 13px;
  border: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: filter 0.15s;
}

.dot:hover {
  filter: brightness(0.8);
}

.dot.r {
  background: #ff5f56;
}

.dot.y {
  background: #ffbd2e;
}

.dot.g {
  background: #27c93f;
}

.win-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

.win-body {
  padding: 28px 32px;
  overflow-y: auto;
  max-height: calc(100% - 38px - 100px);
}

.tp-main {
  padding: 0;
}



.close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: -2px;
  right: -2px;
  border: var(--border);
  background: url("../img/close.svg") no-repeat center;
  cursor: pointer;
}

/* ══ WIN: 로그인 ══ */
#win-login {
  width: 380px;
  top: 15%;
  left: 35%;
}

.login-body {
  padding: 24px 32px;
}

.login-logo-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  width: 300px;
  height: 60px;
  margin: 0 auto 10px;
  background: url("../img/LOGO.svg") no-repeat center / contain;
}

.login-sub {
  font-size: 11px;
  color: #777;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.login-form {
  margin-bottom: 16px;
}

.login-divider {
  text-align: center;
  position: relative;
  margin: 16px 0;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(26, 26, 26, 0.15);
}

.login-divider span {
  background: var(--sub);
  padding: 0 10px;
  font-size: 10px;
  color: #999;
  position: relative;
}

.social-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-btn {
  width: 100%;
  padding: 10px;
  border: var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.1);
  letter-spacing: 0.06em;
}

.social-btn.kakao {
  background: #FEE500;
  color: #1a1a1a;
}

.social-btn.google {
  background: #fff;
  color: #1a1a1a;
}

.social-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.1);
}

/* ══ WIN: 회원가입 ══ */
#win-signup {
  width: 380px;
  top: 10%;
  left: 38%;
}

/* ══ WIN: 프로필 ══ */
#win-profile {
  width: 360px;
  top: 12%;
  left: 36%;
}

.profile-body {
  padding: 24px 28px;
}

.profile-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: var(--border);
  background: var(--point);
  flex-shrink: 0;
  background-image: url("../img/default-avatar.png");
  background-size: cover;
  background-position: center;
}

.profile-nick {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-badge {
  display: inline-block;
  font-size: 10px;
  background: var(--main);
  border: var(--border);
  padding: 2px 8px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.profile-stats {
  display: flex;
  gap: 12px;
}

.pstat {
  text-align: center;
}

.pstat-n {
  font-size: 1rem;
  font-weight: 700;
}

.pstat-l {
  font-size: 10px;
  color: #777;
}

.profile-divider {
  height: 2px;
  background: var(--black);
  margin-bottom: 16px;
  opacity: 0.1;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pmenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 26, 26, 0.1);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.04em;
}

.pmenu-item:hover {
  background: var(--main);
}

.pmenu-icon {
  font-size: 1rem;
}

.pmenu-logout {
  color: #ff5f56;
  margin-top: 8px;
  border: var(--border);
}

.pmenu-logout:hover {
  background: #fff0f0;
}

/* ══ 게시판 공통 ══ */
.page-main #win-hot {
  width: 1050px;
  top: 3%;
  left: 10%;
}

.page-hot #win-hot,.page-deal #win-deal, .page-free #win-free, .page-flex #win-flex, .page-trade #win-trade, .tp-page #win-trade {
  width: 90%;
  height: 100%;
  top: 0;
  right: 0;
}

.page-main #win-deal {
  width: 560px;
  height: 400px;
  bottom: 3%;
  left: 10%;
}

.page-main #win-free {
  width: 560px;
  top: 7%;
  left: 22%;
}

.page-main #win-flex {
  width: 600px;
  top: 9%;
  left: 26%;
}

.page-main #win-trade {
  width: 560px;
  height: 400px;
  bottom: 3%;
  left: 35%;
}

.page-main #win-alert {
  width: 320px;
  top: 30%;
  left: 38%;
}

.board-body {
  padding: 24px 28px;
}

.board-top {
  margin-bottom: 16px;
}

.board-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.board-desc {
  font-size: 11px;
  color: #777;
  letter-spacing: 0.04em;
}

.board-tabs,
.trade-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.btab {
  padding: 5px 14px;
  border: var(--border);
  background: var(--sub);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s;
}

.btab:hover,
.btab.active {
  background: var(--black);
  color: var(--sub);
}

/* 게시글 목록 */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.06);
}

.post-item:hover {
  background: var(--main);
}

.slide-list {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 5px;
}

.hot-slide {
  flex: 1;
  aspect-ratio: 1 / 1;
  background-color: #aaa;
}

#win-hot .post-list {
  flex: 1;
}

.hot-post {
  border-left: 3px solid #ff5f56;
  height: 60px;
}

.post-rank {
  font-size: 1.1rem;
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: #777;
  font-size: 12px;
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.post-meta {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: #999;
}

.deal-badge {
  font-size: 9px;
  padding: 3px 7px;
  font-weight: 700;
  background: var(--black);
  color: var(--sub);
  border: var(--border);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.deal-badge.info {
  background: var(--point);
  color: var(--black);
}

.deal-expire {
  color: #ff5f56 !important;
  font-weight: 700;
}

/* 글쓰기 버튼 */
.write-btn {
  margin-top: 4px;
}

/* ══ 자랑 (인스타형) ══ */
.insta-body {
  padding: 20px 24px;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.insta-card {
  border: var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}

.insta-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.15);
}

.insta-thumb {
  aspect-ratio: 4 / 3;
  border-bottom: var(--border);
    position: relative;
}

.insta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
}

.insta-like {
  color: var(--black);
}

/* ══ 중고거래 ══ */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.trade-card {
  border: var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
}

.trade-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(26, 26, 26, 0.15);
}

.trade-thumb {
  aspect-ratio: 4 / 3;
  border-bottom: var(--border);
}

.trade-name {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trade-price {
  padding: 0 10px 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--point);
}

.trade-condition {
  font-size: 9px;
  padding: 2px 7px;
  font-weight: 700;
  border: var(--border);
  z-index: 999;
}

.trade-condition.best {
  background: #d4f0d4;
}

.trade-condition.good {
  background: var(--main);
}

.trade-condition.used {
  background: #f0e8d4;
}

/* ══ 공통 폼 요소 ══ */
.form-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

.neo-input {
  width: 100%;
  border: var(--border);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  background: var(--sub);
  resize: none;
  transition: box-shadow 0.15s;
}

.neo-input:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--point);
}

textarea.neo-input {
  height: 90px;
}

.action-btn {
  display: inline-block;
  background: var(--black);
  color: var(--sub);
  border: var(--border);
  padding: 12px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 5px 5px 0 rgba(26, 26, 26, 0.2);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  margin-right: 8px;
}

.action-btn:hover {
  transform: translate(2px, 2px);
}

.action-btn.ghost {
  background: var(--main);
  color: var(--black);
  box-shadow: 5px 5px 0 rgba(26, 26, 26, 0.2);
}

.action-btn.full {
  width: 100%;
  text-align: center;
  margin-right: 0;
  display: block;
}

/* ══ 하단 앱바 ══ */
.open-apps {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(249, 249, 249, 0.95);
  border-top: var(--border);
  z-index: 1800;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 8px;
}

.apps-label {
  font-size: 10px;
  color: #aaa;
  font-weight: 700;
  margin-right: 8px;
  letter-spacing: 0.06em;
}

.taskbar-btn {
  height: 34px;
  padding: 0 14px;
  border: var(--border);
  background: var(--sub);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.1);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.taskbar-btn:hover {
  background: var(--main);
}

.taskbar-dot {
  width: 7px;
  height: 7px;
  background: var(--point);
  border: 1px solid var(--black);
  border-radius: 50%;
}

/* ══ 플로팅 퀵바 ══ */
.quickbar {
  position: fixed;
  /* 초기 위치 — JS로 드래그 가능 */
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
  z-index: 1700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--sub);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 4px;
  padding: 8px 6px;
  cursor: grab;
  user-select: none;
}

.quickbar:active {
  cursor: grabbing;
}

.qb-handle {
  font-size: 1.1rem;
  padding: 2px 0 6px;
  border-bottom: var(--border);
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
  cursor: grab;
}

.qb-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qb-key {
  width: 38px;
  height: 38px;
  border: var(--border);
  background: var(--main);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.15);
  transition: transform 0.1s, box-shadow 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qb-key:hover {
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 rgba(26, 26, 26, 0.2);
}

.qb-key:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(26, 26, 26, 0.1);
}

/* 툴팁 */
.qb-key[title]:hover::after {
  content: attr(title);
  position: absolute;
  right: 48px;
  background: var(--black);
  color: var(--sub);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
  border: var(--border);
}


.icon01 {
  background-image: url("../img/icon01.webp");
}

.icon02 {
  background-image: url("../img/icon02.webp");
}

.icon03 {
  background-image: url("../img/icon03.webp");
}

.icon04 {
  background-image: url("../img/icon04.webp");
}

.icon05 {
  background-image: url("../img/icon05.webp");
}

.icon06 {
  background-image: url("../img/icon06.webp");
}

/* ══ 검색창 ══ */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}

.search-input {
  height: 32px;
  border: var(--border);
  border-right: none;
  padding: 0 10px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  background: var(--sub);
  width: 180px;
  outline: none;
}

.search-input:focus {
  box-shadow: inset 0 0 0 2px var(--point);
}

.search-btn {
  height: 32px;
  width: 32px;
  border: var(--border);
  background: var(--black);
  color: var(--sub);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--point);
  color: var(--black);
}

mark {
  background: var(--point);
  color: var(--black);
  padding: 0 2px;
}

/* ══ 태스크바 우측 ══ */
.taskbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.taskbar-clock {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.06em;
}

/* ══ 인기게시판 2단 레이아웃 ══ */
.hot-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.hot-board-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px 0;
  border-bottom: var(--border);
  background: rgba(160, 193, 184, 0.15);
}

.hbtab {
  padding: 6px 14px;
  border: var(--border);
  border-bottom: none;
  background: var(--sub);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s;
}

.hbtab:hover {
  background: var(--main);
}

.hbtab.active {
  background: var(--point);
  border-color: var(--black);
}

.hot-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* 왼쪽 슬라이드 */
.hot-left {
  width: 50%;
  flex-shrink: 0;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
}

.hot-slideshow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hot-slide-img {
  flex: 1;
  min-height: 180px;
  transition: background 0.6s ease;
}

.hot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.2);
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background 0.2s;
}

.hot-dot.active {
  background: var(--black);
}

/* 오른쪽 게시글 */
.hot-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hot-board-header {
  padding: 12px 16px 8px;
  border-bottom: var(--border);
  background: rgba(218, 229, 208, 0.3);
}

#hotPostList {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

/* hover 시 배경색 강조 */
.post-item.hovered {
  background: var(--main) !important;
}

/* ══ 더보기 버튼 ══ */
.more-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: var(--border);
  background: var(--sub);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.1);
  transition: background 0.15s;
}

.more-btn:hover {
  background: var(--main);
}

/* ══ 리본 ══ */
.ribbon {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  letter-spacing: 0.06em;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.ribbon-hot {
  color: #d63031;
  background: #ffe8e8;
  border-color: #d63031;
}

.ribbon-pick {
  color: #6c5ce7;
  background: #f0eeff;
  border-color: #6c5ce7;
}

.ribbon-buzz {
  color: #00b894;
  background: #e8fff8;
  border-color: #00b894;
}

.ribbon-abs {
  position: absolute;
  top: 6px;
  left: 6px;
}

/* ══ 클릭 가능한 제목 ══ */
.clickable-title {
  cursor: pointer;
  transition: color 0.15s;
}

.clickable-title:hover {
  color: var(--point);
  text-decoration: underline;
}


/* ══ 자랑 카드 개선 ══ */
.insta-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 8px;
  font-size: 10px;
}

.insta-title {
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.insta-comments {
  color: #999;
}

.liked-btn {
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}

.liked-btn.liked {
  color: #d63031;
}

.liked-btn:hover {
  color: #d63031;
}

/* ══ 좋아요 애니메이션 ══ */
@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.like-btn.liked {
  animation: heartPop 0.3s ease;
}

/* ══ 반응형: win 내부 ══ */
.win {
  resize: none;
}

.win .win-body {
  box-sizing: border-box;
}

.hot-layout {
  flex-wrap: wrap;
}

@media (max-width:480px) {
  .hot-left {
    width: 100%;
    border-right: none;
    border-bottom: var(--border);
  }
}

/* ══ 푸터 링크바 ══ */
.footer-linkbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: var(--black);
  border-top: 2px solid var(--black);
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.flink {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(218, 229, 208, 0.6);
  text-decoration: none;
  padding: 0 10px;
  height: 38px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.flink:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.flink:hover {
  color: var(--main);
  background: rgba(255, 255, 255, 0.06);
}

.footer-clock {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(218, 229, 208, 0.5);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* open-apps 높이 줄이기 (푸터 위에 위치) */
.open-apps {
  bottom: 38px !important;
}

/* 데스크탑 영역도 푸터만큼 위로 */
.desktop {
  bottom: 90px !important;
}

/* ══ hot-thumb (인기창 왼쪽 썸네일) ══ */
.hot-thumb-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hot-thumb-img {
  flex: 1;
  min-height: 180px;
  transition: background 0.35s ease;
  border-bottom: var(--border);
}

.hot-thumb-caption {
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  color: #555;
  min-height: 46px;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ══ 푸터 링크바 ══ */
.footer-linkbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: var(--black);
  border-top: 2px solid var(--black);
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.flink {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(218, 229, 208, 0.6);
  text-decoration: none;
  padding: 0 10px;
  height: 38px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.flink:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.flink:hover {
  color: var(--main);
  background: rgba(255, 255, 255, 0.06);
}

.footer-clock {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(218, 229, 208, 0.5);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* open-apps + desktop: 푸터 위로 올리기 */
.open-apps {
  bottom: 38px !important;
}

.desktop {
  bottom: 90px !important;
}




/* common.css 맨 아래에 추가 (미디어 쿼리 중괄호가 끝난 후!) */

.ozl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; 
  margin: 30px 0;
}



.ozl-pg-num, .ozl-pg-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.ozl-pg-arrow {
  border: var(--border);
  background: var(--point);
  font-weight: bold;
  transition: all 0.2s;
  user-select: none;
}

.ozl-pagination .ozl-pg-arrow:hover {
  background: #DAE5D0;
  /* var(--main) */
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.ozl-pg-list {
  display: inline-flex;  /* 핵심: 자식 크기만큼만 부피를 가짐 */
  align-items: center;
  justify-content: center;
  gap: 5px;             /* 숫자들 사이의 간격 */
  
}

.ozl-pg-num.active {
  background-color: var(--black) !important; /* 배경을 검정색으로 */
  color: #fff !important;                    /* 글자를 흰색으로 */
}


.page-main .win-body {
  max-height: calc(100% - 80px);
}


/* ════════════════════════════════════════════════
   TRADE-POST.CSS
   상품 상세 페이지 전용
   common.css 변수(--main, --sub, --point, --black,
   --border, --shadow) 그대로 사용
════════════════════════════════════════════════ */

/* ── body 오버라이드: 이 페이지는 스크롤 허용 ── */
body.tp-page {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  min-height: 100vh;
  user-select: text;
}

/* ── taskbar 위치 조정 (ticker 아래) ── */
body.tp-page .taskbar { position: fixed; top: 36px; z-index: 1900; }
body.tp-page .ticker-bar { position: fixed; top: 0; z-index: 2000; }

/* 뒤로가기 버튼 (taskbar 안) */
.tp-back-btn {
  height: 30px; padding: 0 14px;
  border: var(--border);
  background: var(--sub); color: var(--black);
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.tp-back-btn:hover { background: var(--main); }

/* ── 전체 레이아웃 ── */


/* 사이드바 (레이아웃 균형용) */
.tp-sidebar-left,
.tp-sidebar-right {
  width: 80px;
  flex-shrink: 0;
}
.tp-sidebar-left {
position: absolute;
top: 58px;
left: 20px;
z-index: 999;
}
.tp-nav-btn {
  width: 40px; height: 40px;
  border: var(--border);
  background: var(--sub);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}
.tp-nav-btn:hover {
  transform: translate(-2px,-2px);
  box-shadow: 10px 10px 0 rgba(26,26,26,0.15);
}

/* ── 중앙 메인 카드 ── */


/* ════════════════════
   이미지 슬라이더
════════════════════ */
.tp-img-wrap {
  position: relative;
  width: 100%;
  border-bottom: var(--border);
  overflow: hidden;
  background: #1a1a1a;
}

.tp-img-stage {
  display: flex;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tp-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 800px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 화살표 */
.tp-img-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(249,249,249,0.85);
  border: var(--border); border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, opacity 0.15s;
  z-index: 5;
}
.tp-img-arrow:hover { background: var(--sub); }
.tp-img-arrow:disabled { opacity: 0.25; cursor: default; }
.tp-arrow-l { left: 10px; }
.tp-arrow-r { right: 10px; }

/* n / total 카운터 */
.tp-img-counter {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(26,26,26,0.62);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 10px;
  letter-spacing: 0.06em; z-index: 5;
}

/* 하단 점 dots */
.tp-img-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.tp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.6);
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.tp-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ════════════════════
   판매자
════════════════════ */
.tp-seller {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-bottom: var(--border);
  background: rgba(218,229,208,0.15);
}
.tp-seller-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: var(--border);
  background: var(--point);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--black);
  flex-shrink: 0;
  overflow: hidden;
}
.tp-seller-info { flex: 1; }
.tp-seller-nick {
  font-size: 13px; font-weight: 700; margin-bottom: 2px;
}
.tp-seller-region {
  font-size: 10px; color: #888;
}
.tp-seller-badge {
  font-size: 9px; font-weight: 700;
  padding: 3px 9px;
  border: var(--border);
  background: var(--main);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ════════════════════
   상품 본문 정보
════════════════════ */
.tp-product-body {
  padding: 18px 20px;
  border-bottom: var(--border);
}
.tp-product-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.05rem; font-weight: 900;
  line-height: 1.5; margin-bottom: 7px;
}
.tp-product-date {
  font-size: 10px; color: #aaa;
  letter-spacing: 0.04em; margin-bottom: 10px;
}
.tp-product-method {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px;
  border: var(--border);
  background: var(--main);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.tp-product-desc {
  font-size: 12px; line-height: 1.9;
  color: #333; white-space: pre-wrap;
  margin-bottom: 16px;
}
.tp-product-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tp-tag {
  font-size: 10px;
  padding: 3px 11px;
  border: 1.5px solid rgba(26,26,26,0.2);
  border-radius: 100px;
  color: #555;
  background: rgba(218,229,208,0.35);
  letter-spacing: 0.02em;
}

/* ════════════════════
   거래 안내 배너
════════════════════ */
.tp-notice {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 12px 20px;
  border-bottom: var(--border);
  background: rgba(160,193,184,0.18);
  font-size: 11px; color: #555; line-height: 1.65;
}
.tp-notice-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.tp-notice strong { color: var(--black); }

/* ════════════════════
   댓글 섹션
════════════════════ */
.tp-comments { padding: 18px 20px 24px; }

.tp-comments-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.tp-comments-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; color: #555;
}
.tp-comments-count { font-size: 10px; color: #aaa; }

/* 댓글 없을 때 */
.tp-no-comment {
  text-align: center; padding: 32px 10px;
  font-size: 11px; color: #ccc; line-height: 2;
  letter-spacing: 0.04em; border: 1px dashed rgba(26,26,26,0.15);
  margin-bottom: 16px;
}

/* ── 댓글 아이템 ── */
.tp-ci {
  border: var(--border);
  margin-bottom: 12px;
  background: var(--sub);
  box-shadow: 3px 3px 0 rgba(26,26,26,0.06);
}
.tp-ci-private { border-color: var(--point); background: rgba(160,193,184,0.07); }
.tp-ci-mine    { border-color: var(--black); }

.tp-ci-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(26,26,26,0.08);
  background: rgba(26,26,26,0.025);
}
.tp-ci-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--black);
  background: var(--point);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.tp-ci-nick {
  font-size: 11px; font-weight: 700; flex: 1;
}
.tp-ci-nick.is-seller { color: var(--point); }
.tp-seller-tag {
  font-size: 9px; padding: 1px 5px;
  background: var(--point); color: var(--black);
  border: 1px solid var(--black);
  margin-left: 4px; font-weight: 700;
}
.tp-ci-lock {
  font-size: 9px; padding: 1px 6px;
  background: rgba(160,193,184,0.4); color: var(--black);
  border: 1px solid var(--point); font-weight: 700;
}
.tp-ci-time { font-size: 9px; color: #ccc; flex-shrink: 0; }

.tp-ci-body { padding: 10px 13px; }
.tp-ci-text {
  font-size: 12px; line-height: 1.75;
  color: #333; white-space: pre-wrap;
}
.tp-ci-locked {
  font-size: 11px; color: #bbb;
  display: flex; align-items: center; gap: 6px;
}

/* 답글 영역 */
.tp-ci-replies {
  border-top: 1px solid rgba(26,26,26,0.07);
  background: rgba(26,26,26,0.015);
}
.tp-reply-item {
  display: flex; align-items: baseline; gap: 7px;
  padding: 7px 13px 7px 30px;
  border-bottom: 1px solid rgba(26,26,26,0.04);
  font-size: 11px;
}
.tp-reply-item:last-child { border-bottom: none; }
.tp-reply-nick  { font-weight: 700; color: var(--point); flex-shrink: 0; }
.tp-reply-text  { flex: 1; color: #444; line-height: 1.55; }
.tp-reply-time  { font-size: 9px; color: #ccc; flex-shrink: 0; }

/* 액션 버튼 행 */
.tp-ci-actions {
  padding: 5px 13px;
  border-top: 1px solid rgba(26,26,26,0.06);
}
.tp-reply-toggle-btn {
  font-size: 9px; font-weight: 700;
  padding: 2px 8px;
  border: 1px solid rgba(26,26,26,0.18);
  background: none; cursor: pointer; letter-spacing: 0.04em;
  transition: background 0.12s;
}
.tp-reply-toggle-btn:hover { background: var(--main); }

/* 답글 입력창 */
.tp-reply-write {
  display: none;
  padding: 7px 13px 8px 30px;
  border-top: 1px dashed rgba(26,26,26,0.1);
  gap: 6px; align-items: center;
}
.tp-reply-write.open { display: flex; }
.tp-reply-input {
  flex: 1; height: 30px;
  border: var(--border); padding: 0 9px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  background: var(--sub); outline: none;
}
.tp-reply-input:focus { box-shadow: 3px 3px 0 var(--point); }
.tp-reply-submit-btn {
  height: 30px; padding: 0 12px;
  border: var(--border);
  background: var(--black); color: var(--sub);
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700; cursor: pointer;
}

/* ── 댓글 입력창 ── */
.tp-cw { margin-top: 16px; }
.tp-cw-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 9px;
}
.tp-cw-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: var(--border); background: var(--point);
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.tp-cw-textarea {
  flex: 1;
  border: var(--border); padding: 10px 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; line-height: 1.65;
  background: var(--sub); resize: none; outline: none;
  transition: box-shadow 0.15s;
}
.tp-cw-textarea:focus { box-shadow: 4px 4px 0 var(--point); }

.tp-cw-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-left: 42px;
}
.tp-private-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; color: #555; cursor: pointer;
}
.tp-private-label input { accent-color: var(--point); cursor: pointer; }
.tp-submit-btn {
  padding: 8px 20px;
  border: var(--border);
  background: var(--black); color: var(--sub);
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(26,26,26,0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}
.tp-submit-btn:hover {
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 rgba(26,26,26,0.2);
}

/* 비로그인 안내 */
.tp-cw-guest { margin-top: 14px; text-align: center; }

/* ════════════════════
   하단 고정 바
════════════════════ */
.tp-bottom-bar {
  height: 100px;
  background: rgba(249,249,249,0.96);
  border-top: var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 10px;
  z-index: 1600;
  backdrop-filter: blur(10px);
}

/* 찜 버튼 */
.tp-like-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  width: 54px; height: 46px; flex-shrink: 0;
  border: var(--border);
  background: var(--sub);
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(26,26,26,0.1);
  transition: all 0.15s;
  font-family: 'Space Mono', monospace;
}
#tpLikeIcon { font-size: 1.15rem; line-height: 1; }
#tpLikeCount { font-size: 9px; font-weight: 700; color: #777; }
.tp-like-btn:hover { background: #ffe8e8; }
.tp-like-btn.liked {
  background: #ffe8e8;
  border-color: #d63031;
}
.tp-like-btn.liked #tpLikeCount { color: #d63031; }

@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.tp-like-btn.pop { animation: heartPop 0.3s ease; }

/* 문의 버튼 */
.tp-inquiry-btn {
  flex: 1; height: 46px;
  border: var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.tp-inquiry-main {
  background: var(--black); color: var(--sub);
  box-shadow: 4px 4px 0 rgba(26,26,26,0.2);
}
.tp-inquiry-main:hover {
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 rgba(26,26,26,0.2);
}
.tp-inquiry-ghost {
  background: rgba(26,26,26,0.07); color: #777;
  box-shadow: none;
}

/* ════════════════════
   로그인 모달
════════════════════ */
.tp-modal-dim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
}
.tp-modal-dim.open { display: block; }

.tp-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 340px;
  background: var(--sub);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  z-index: 3001;
}
.tp-modal.open { display: block; }
.tp-modal-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none;
  font-size: 1.3rem; cursor: pointer; color: #888;
  line-height: 1;
}
.tp-modal-close:hover { color: var(--black); }
.tp-modal-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem; font-weight: 900;
  text-align: center; margin-bottom: 20px;
}
.tp-modal-login-btn {
  width: 100%; height: 42px; margin-top: 14px;
  border: var(--border);
  background: var(--black); color: var(--sub);
  font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(26,26,26,0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}
.tp-modal-login-btn:hover {
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 rgba(26,26,26,0.2);
}
.tp-modal-kakao-btn {
  width: 100%; height: 42px; margin-top: 8px;
  border: var(--border);
  background: #FEE500; color: var(--black);
  font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700; cursor: pointer;
}

/* ── open-apps / footer 위치 ── */
body.tp-page .open-apps     { bottom: 38px; }
body.tp-page .footer-linkbar { bottom: 0; }

/* ════════════════════
   반응형
════════════════════ */
@media (max-width: 680px) {
  .tp-sidebar-left,
  .tp-sidebar-right { display: none; }


  .tp-cw-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; padding-left: 0;
  }
  .tp-submit-btn { width: 100%; text-align: center; }

  .tp-bottom-bar { padding: 0 12px; gap: 8px; }
  .tp-inquiry-btn { font-size: 11px; }
}

@media (max-width: 400px) {
  .tp-slide  { height: 240px; }
  .tp-product-title { font-size: 0.95rem; }
}





/* ════════════════════════════════════════════════
   RESPONSIVE MOBILE  ≤ 768px
   원본 데스크탑 코드를 건드리지 않고
   미디어쿼리로만 모바일 레이아웃을 덮어씀
════════════════════════════════════════════════ */

/* ── 햄버거 버튼: 데스크탑에서는 숨김 ── */
.m-hamburger {
  display: none;
}

@media (max-width: 768px) {

  /* ──────────────────
     BODY / 스크롤
  ────────────────── */
  body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
  }

  /* ──────────────────
     TICKER
  ────────────────── */
  .ticker-bar,
  .open-apps,
  .footer-clock {
    display: none;
  }

  #taskbar-guest {
    position: absolute;
    right: 70px;
  }

  .page-main #win-trade,
  .page-main #win-deal {
    display: none !important;
  }

  .win-group {
    position: absolute;
    left: 50%;
    top: 58px;
    transform: translateX(-50%);
    width: 95%;
    height: 80%;
  }

  /* ──────────────────
     TASKBAR
  ────────────────── */
  .taskbar {
    padding: 0 14px;
    height: 48px;
    top: 0;
    gap: 8px;
  }

  .logo {
    width: 72px;
    height: 32px;
  }

  .search-wrap {
    display: none;
  }

  /* 검색창 숨김 (공간 절약) */
  .taskbar-clock {
    display: none;
  }

  /* 시계 숨김 */

  /* 햄버거 버튼 표시 */
  .m-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    order: 10;
    /* taskbar-right 맨 오른쪽 */
  }

  .m-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
      opacity 0.2s ease,
      background 0.2s;
    transform-origin: center;
  }

  /* X 모양으로 변환 */
  .m-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .m-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .m-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ──────────────────
     ICON GRID → 드롭다운
  ────────────────── */
  .icon-grid {
    /* 기존 absolute 세로 배치 → fixed 가로 드롭다운 */
    position: fixed;
    top: 46px;
    /* ticker + taskbar */
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 8px;
    background: var(--sub);
    border-bottom: var(--border);
    z-index: 1850;

    /* 기본: 접혀 있음 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275),
      padding 0.3s ease;
  }

  .icon-grid.m-open {
    max-height: 130px;
    padding: 12px 8px 14px;
  }

  /* 아이콘 bouncy 등장 */
  .desktop-icon {
    width: auto;
    flex: 1;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.475),
      opacity 0.28s ease;
    pointer-events: none;
  }

  .icon-grid.m-open .desktop-icon {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .icon-grid.m-open .desktop-icon:nth-child(1) {
    transition-delay: 0.04s;
  }

  .icon-grid.m-open .desktop-icon:nth-child(2) {
    transition-delay: 0.09s;
  }

  .icon-grid.m-open .desktop-icon:nth-child(3) {
    transition-delay: 0.14s;
  }

  .icon-grid.m-open .desktop-icon:nth-child(4) {
    transition-delay: 0.19s;
  }

  .icon-grid.m-open .desktop-icon:nth-child(5) {
    transition-delay: 0.24s;
  }

  .icon-img {
    width: 52px;
    height: 52px;
    background-size: 36px 36px;
  }

  .icon-label {
    font-size: 9px;
  }

  /* ──────────────────
     DESKTOP AREA
  ────────────────── */
  .desktop {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    overflow: visible;
    padding-bottom: 38px;
    /* open-apps + footer */
    min-height: calc(100vh - 48px);
  }

  /* deco 숨김 */
  .deco-panel {
    display: none;
  }

  /* 퀵바 숨김 */
  .quickbar {
    display: none !important;
  }

  /* ──────────────────
     WIN 창 → 풀스크린
  ────────────────── */
  .win {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
    z-index: 1500;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* alert 창: 중앙 팝업 */
  #win-alert {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 88vw !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
  }

  /* win 헤더/바디 */
  .win-header {
    height: 40px;
  }

  .win-title {
    font-size: 10px;
  }
  
  /* 서브페이지 win (page-xxx에서 열리는 전체 창) */
  .page-hot #win-hot,
  .page-deal #win-deal,
  .page-free #win-free,
  .page-flex #win-flex {
    top: 0;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 38px !important;
  }

  /* 로그인창 */
  #win-login {
    top: calc(36px + 48px) !important;
  }

  #win-signup {
    top: calc(36px + 48px) !important;
  }

  #win-profile {
    top: calc(36px + 48px) !important;
  }

  #win-search {
    top: calc(36px + 48px) !important;
  }

  .login-body {
    padding: 20px;
  }

  /* ──────────────────
     게시판 레이아웃
  ────────────────── */
  .hot-layout {
    flex-direction: column;
  }

  .hot-left {
    display: none;
  }

  /* 썸네일 패널 숨김 */
  .hot-board-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .hbtab {
    font-size: 9px;
    padding: 4px 10px;
  }

  .board-body {
    padding: 14px;
  }

  .post-item {
    padding: 9px 10px;
    gap: 8px;
  }

  .post-title {
    font-size: 11px;
  }

  .post-meta {
    font-size: 9px;
    gap: 6px;
  }

  /* 자랑: 2열 */
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* 중고거래: 1열 */
  .trade-grid {
    grid-template-columns: 1fr;
  }

  /* 게시글 상세 */
  .post-detail-body {
    padding: 14px;
  }

  .post-detail-title {
    font-size: 1rem;
  }

  .post-detail-thumb {
    height: 140px;
  }


  /* ──────────────────
     FOOTER LINKBAR
  ────────────────── */
  .footer-linkbar {
    height: auto !important;
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 0;
    bottom: 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .flink {
    font-size: 9px;
    padding: 4px 8px;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-clock {
    font-size: 9px;
    margin-top: 3px;
    width: 100%;
    text-align: right;
  }

  /* ──────────────────
     FORMS
  ────────────────── */
  .neo-input {
    font-size: 13px;
  }

  .action-btn {
    padding: 10px 18px;
    font-size: 11px;
  }

  .action-btn.full {
    width: 100%;
    margin-right: 0;
    display: block;
  }

  .social-btn {
    padding: 12px;
    font-size: 12px;
  }



.num_m { display: none; }

.ozl-pagination {
  gap: 5px; 
  margin: 30px 0;
}

}

/* ── 초소형 화면 ── */
@media (max-width: 380px) {
  .icon-img {
    width: 44px;
    height: 44px;
    background-size: 30px 30px;
  }

  .icon-label {
    font-size: 8px;
  }

  .post-title {
    font-size: 10px;
  }
}