/* ════════════════════════════════════════════════
   기본 설정
   ════════════════════════════════════════════════ */
:root {
  --point-color: #FF5C95;
  --title-color: #282828;
  --body-color: #767676;
  --bg-color: #F6F6F6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  color: var(--body-color);
  background: #EAEAEA; /* 뷰포트가 640px보다 넓을 때 바깥 배경 */
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

h1, h2, h3, p { margin: 0; }

.bold{font-weight:500}



/* ════════════════════════════════════════════════
   앱 래퍼 (모바일 최대 640px)
   ════════════════════════════════════════════════ */
.app-wrap {
  position: relative;
  max-width: 640px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-color);
}

/* ════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 14px 16px 12px;
  background: var(--bg-color);
}

.header-logo {
  font-size: 26px;
  font-weight: 700;
  color: #404040;
  letter-spacing: -0.52px;
}

.header-logo .point {
  color: var(--point-color);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.icon-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--point-color);
}


.mobile-hamburger {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
	}

/* ════════════════════════════════════════════════
   MAIN (컴포넌트 삽입 영역)
   ════════════════════════════════════════════════ */
.main-content {
  min-height: 400px;
  padding:0 16px 150px 16px;/* 하단내비에 콘텐츠 가려지지 않도록 */
 
}

/* ════════════════════════════════════════════════
   공용 패턴: 라운드박스 / 섹션 / 타이틀 / 더보기
   ════════════════════════════════════════════════ */
.round-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.section + .section {
  margin-top: 32px; /* 섹션 간 간격 */
}

.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 8px;
}

.title-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
  white-space: nowrap;
}

.more-btn {
  height: 24px;
  padding: 4px 8px;
  background: #EAEAEA;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #286FFF;
  white-space: nowrap;
  cursor: pointer;
}

/* ════════════════════════════════════════════════
   발송문구
   ════════════════════════════════════════════════ */
.ship-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
}

.ship-notice-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.ship-notice-text {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--body-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════
   편지쓰기 카드
   ════════════════════════════════════════════════ */
.write-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 24px;
}

.write-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.write-card-sub {
  font-size: 14px;
  font-weight: 500;
  color: #454545;
  margin-bottom: 8px;
}

.write-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
  white-space: nowrap;
}

.write-card-title .point {
  color: var(--point-color);
}

.write-card-illust {
  position: relative;
  flex-shrink: 0;
  width: 68px;
  height: 56px;
}

.write-card-illust-1 {
  position: absolute;
  left: 36px;
  top: 0;
  width: 32px;
  height: 32px;
}

.write-card-illust-2 {
  position: absolute;
  left: 0;
  top: 8px;
  width: 48px;
  height: 48px;
}

.write-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 16px 0;
  background: var(--point-color);
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.write-card-btn-icon {
  width: 21px;
  height: 21px;
}

/* ════════════════════════════════════════════════
   발송 통계 (보낸편지/작성중/사서함)
   ════════════════════════════════════════════════ */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.stat-card {
  display: flex;
  flex: 1 0 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  height: 110px;
  padding: 16px 20px;
  cursor:pointer;
}

.stat-icon {
  width: 24px;
  height: 24px;
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  color: #454545;
  white-space: nowrap;
}

.stat-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
}

.stat-unit {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--body-color);
}

/* ════════════════════════════════════════════════
   공지사항
   ════════════════════════════════════════════════ */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 24px 16px;
  margin: 0;
  list-style: none;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  cursor:pointer;
}

.notice-badge {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 50px;
   height: 19px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.notice-badge--new {
  background: #F7EAFF;
  color: #BF28FF;
}

.notice-badge--info {
  background: #EAF3FF;
  color: #286FFF;
}

.notice-text {
  flex: 1 0 0;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  color: var(--body-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-date {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--body-color);
}

/* ════════════════════════════════════════════════
   당신의 마음이 전해지는 과정
   ════════════════════════════════════════════════ */
.title-text--center {
  flex: 1 0 0;
  text-align: center;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.step-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

.step-card--purple { background: #F1F0FD; }
.step-card--green   { background: #ECF7ED; }
.step-card--peach    { background: #FEEDEB; }
.step-card--yellow  { background: #FEF6E2; }

.step-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
}

.step-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

.step-icon {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 42px;
  height: 42px;
}

.step-badge {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
  white-space: nowrap;
}

.step-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--body-color);
  line-height: normal;
}

.tip-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 16px;
  background: #fff;
  border-radius: 100px;
}

.tip-banner-deco {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.tip-banner-text {
  flex-shrink: 0;
  font-size: 12px;
  color: #000;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════
   공용 패턴: 가로 스크롤 (편지지 pick / 인기스티커 등)
   ════════════════════════════════════════════════ */
.h-scroll {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.h-scroll-wrap {
  position: relative;
  width: 100%;
}

/* 터치로 스와이프할 수 없는 PC 환경에서만 좌/우 이동 버튼을 노출한다 */
.h-scroll-nav {
  display: none;
  position: absolute;
  top:45%;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
}

.h-scroll-nav img {
  width: 100%;
  height: 100%;
}

.h-scroll-nav--prev {
  left: -12px;
  transform: translateY(-50%) scaleX(-1);
}

.h-scroll-nav--next {
  right: -12px;
}

.h-scroll-nav.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .h-scroll-nav {
    display: block;
  }
}

/* ════════════════════════════════════════════════
   편지지 pick!
   ════════════════════════════════════════════════ */
.pl-card {
  flex-shrink: 0;
  width: 100px;
}

.pl-card-img {
  position: relative;
  width: 100px;
  height: 127px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

.pl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-card-badge {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.pl-card-badge--new   { background: #65BCFF; }
.pl-card-badge--hot   { background: var(--point-color); }
.pl-card-badge--value { background: #53CD56; }

.pl-card-name {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-color);
  white-space: nowrap;
}

.pl-card-price {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #191919;
  white-space: nowrap;
}

.pl-card-unit,
.pl-card-won {
  font-size: 12px;
  font-weight: 300;
}

.pl-card-won {
  font-size: 16px;
}

/* ════════════════════════════════════════════════
   이벤트 배너
   ════════════════════════════════════════════════ */
.promo-banner {
  position: relative;
  width: 100%;
  height: 122px;
  padding: 22px 24px;
  background: #FAF6D0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 4px 8px;
  background: var(--bg-color);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-color);
  white-space: nowrap;
}

.promo-badge img {
  width: 14px;
  height: 13px;
}

.promo-title {
  margin-top: 9px;
  max-width: 60%;
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
}

.promo-sub {
  max-width: 60%;
  font-size: 18px;
  font-weight: 700;
  color: #FF3C81;
}

.promo-slides {
  position: absolute;
  inset: 0;
}

.promo-slide {
  position: absolute;
  inset: 0;
  padding: 22px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.promo-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.promo-slide--yellow {
  background: #FAF6D0;
}

.promo-slide--pink {
  background: #FDE2E9;
}

.promo-slide--blue {
  background: #E1EEFB;
}

.promo-img {
  position: absolute;
  right: 40px;
  top: 30px;
  width: 65px;
  height: 65px;
  border-radius: 4px;
  overflow: hidden;
}

.promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════
   인기스티커
   ════════════════════════════════════════════════ */
.sticker {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  overflow: hidden;
}

.sticker img {
  position: absolute;
  max-width: none;
}

/* ════════════════════════════════════════════════
   편지발송은..발송조회하기 배너
   ════════════════════════════════════════════════ */
.post-banner {
	display:flex;
	flex-direction:row;
	align-items:center;
	gap:16px;
	justify-content: center;
	padding:24px 16px;
}

.post-banner p{display:flex; align-items:center}

 


/* ════════════════════════════════════════════════
   모바일 하단 네비게이션
   ════════════════════════════════════════════════ */
:root { --mbn-ink: #2B3440; --mbn-pink: #F23C7D; --mbn-pink-bg: #FCE6F0; }
.mobile-bottomnav { display: none; }

@media (max-width: 500px) {
  .mobile-bottomnav {
    display: flex; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0;
    max-width: 640px;
    margin: 0 auto;
    height: calc(98px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #ffffff;
    border-top: 1px solid #ECEAF2;
    box-shadow: none;
    z-index: 1100;
  }
  .mbn-item {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    gap: 3px; padding: 0 0 15px;
    background: none; border: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mbn-icon-wrap {
    width: 58px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 15px;
    position: relative; z-index: 1;
  }
  .mbn-icon-img { height: 30px; width: auto; display: block; }
  .mbn-notice-dot {
    position: absolute; left: 44px; top: 9px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #F93E7D; transform: translate(-50%, -50%);
    z-index: 2; display: none; pointer-events: none;
  }
  .mbn-has-new .mbn-notice-dot { display: block; }
  .mbn-label {
    font-family: "Pretendard", sans-serif; font-size: 12.5px; font-weight: 600;
    color: var(--mbn-ink); letter-spacing: -0.2px; transition: color .1s ease;
    position: relative; z-index: 1; top: -1px;
  }
  .mbn-item::before {
    content: ""; position: absolute; z-index: 0;
    left: 14px; right: 14px; top: 8px; bottom: 6px;
    border-radius: 16px; background: transparent;
    transition: background .1s ease; pointer-events: none;
  }
  .mbn-item:not(.mbn-write):active::before     { background: var(--mbn-pink-bg); }
  .mbn-item:not(.mbn-write):active .mbn-label  { color: var(--mbn-pink); }
  .mbn-write::before { display: none; }
  .mbn-write-wrap { width: auto; height: auto; }
  .mbn-write-img {
    height: 55px; width: auto; display: block;
    margin-top: -14px; margin-bottom: 0;
    position: relative; top: 2px;
    transition: transform .12s ease;
  }
  .mbn-write:active .mbn-write-img { transform: scale(0.86); }
  .mbn-write .mbn-label { color: var(--mbn-pink); font-weight: 700; }
}

@media (max-width: 500px) {
  #sentList .notice-body, #inboxList .notice-body, #draftList .notice-body, #addrList .notice-body, #pointList .notice-body, #myinfo .notice-body {
    padding: 12px 12px 120px !important;
    gap: 8px !important;
  }
}








/*-------------------------중복 스타일 가져온것 ------------------------*/

.nb-notice  { background: #E8EAF6; color: #5C6BC0; }
.nb-update  { background: #E0F7FA; color: #00838F; }
.nb-event   { background: #FCE4EC; color: #C2185B; }
.nb-system  { background: #FFF3E0; color: #E65100; }
.nb-faq-account { background: #E8EAF6; color: #5C6BC0; }
.nb-faq-letter  { background: #E0F7FA; color: #00838F; }
.nb-faq-payment { background: #FCE4EC; color: #C2185B; }
.nb-faq-mail    { background: #FFF3E0; color: #E65100; }
.nb-faq-etc     { background: #F3E5F5; color: #7B1FA2; }

 .notice-title {
    flex: 1 0 0;
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
    color: var(--body-color);
    text-overflow: ellipsis;
    white-space: nowrap;
	}


.f-bold{font-weight:700}
.f-blue{color:#008bf7}