@charset "utf-8";

@import "reset.css";
@import "setup.css";
@import "webfont.css";
@import "sajufrm.css";
@import "sajuTable.css";
@import "terms.css";

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');

/* color palette */
.c-0 { color: #171a26 }
.c-0-1 { color: #2b2f3e }
.c-0-2  {color:#f9fafb; }

.c-1 {color:#ff4757; }
.c-1-1  {color:#ffe8ea; }
.c-1-2  {color:#fff0f0; } 

.c-2  {color:#00d2aa; } 
.c-2-1  {color:#dbf8f3; } 
.c-2-2  {color:#f0fbf9; } 

.c-3  {color:#ff8c42; } 
.c-3-1  {color:#fff5cc; } 
.c-3-2  {color:#fffbf0; } 

.c-4  {color:#886ce4; }
.c-4-1  {color:#f5f5ff; } 
.c-4-2  {color:#eaecf0; } 

.clr-0 { color: #171a26 }
.clr-1 { color: #2b2f3e }
.c-1  {color:#f9fafb; } 

/* layout */
body {
  position: relative; 
  margin: 0 auto;
  height: 100dvh;
  -webkit-text-size-adjust: none;
  user-select: none;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'GmarketSansMedium', 'Noto Sans KR', sans-serif;
  color: #252525;
  background-color: #fff;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  margin-top: 30px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .section {
    margin-top: 20px;
    margin-bottom: 20px;
  }

}

.line {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}

.whiteBox {
  margin-bottom: 30px;
}

.premium-divider {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0;
}

.premium-divider::before,
.premium-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ebe5dc;
}

.premium-divider span {
  width: 6px;
  height: 6px;
  background: #f6d365;
  transform: rotate(45deg);
  border-radius: 1px;
  opacity: 0.9;
}

.premium-divider span:nth-child(2) {
  width: 7px;
  height: 7px;
  background: #f4c84a;
}

@media (max-width: 768px) {

  .premium-divider {
    margin: 28px 0;
    gap: 6px;
  }

  .premium-divider span {
    width: 5px;
    height: 5px;
  }

}

.divider-1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.divider-1::before,
.divider-1::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(212, 175, 55, 0),
    rgba(212, 175, 55, 0.6)
  );
}

.divider-1::after {
  background: linear-gradient(
    to left,
    rgba(212, 175, 55, 0),
    rgba(212, 175, 55, 0.6)
  );
}

.divider-icon {
  width: 34px;
  height: 34px;
  margin: 0 16px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #F8F5F0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #C9A227;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(212,175,55,0.08);
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #171a26;
  text-decoration: none;
}

.gnb {
  display: flex;
  align-items: center;
  gap: 36px;
}

.gnb a {
  position: relative;
  padding: 6px 6px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.gnb a:hover {
  border-color: #f6f7f8;
  background: #f9fafb;
  color: #0F172A;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: #ff4757; 
  border: 1px solid #ff4757; 
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
}

.btn-login:hover {
  opacity: 0.9;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  text-decoration: none;
  transition: 0.25s;
}

.menu-btn:hover {
  background: #E2E8F0;
}

.menu-btn i {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

@media (max-width: 768px) {

  .site-header {
    height: 64px;
  }

  .header-inner {
    padding: 0 12px;
  }

  .gnb {
    display: none;
  }

  .btn-login {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .logo a {
    font-size: 20px;
  }
}

/* =========================
   LOGIN PAGE
========================= */
.section-login {
  position: relative; 
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center;    
  min-height: calc(100vh - 120px); 
}

.login-wrap {
  width: 100%;
  max-width: 400px;
  margin-top: 50px;     
  margin-bottom: auto;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.login-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: #ffe8ea; 
  color: #ff4757; 
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 20px;
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  color: #171a26;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.event-txt {
  color: #ff4757;
}

.login-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: 40px;
}

.login-btn {
  width: 100%;
  height: 56px;
  background-color: #fee500; 
  color: #191919;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.1s;
}

.kakao-login-btn:active {
  transform: scale(0.98);
}

.login-btn.kakao {
  background-color: #fee500; 
  color: #191919; 
}

.login-btn.naver {
  background-color: #03c75a; 
  color: #fff; 
}

.kakao-icon {
  width: 20px;
  height: 20px;
}

.login-agree {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 20px;
}

.login-agree a {
  color: #6b7280; 
  text-decoration: underline; 
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.login-footer {
  position: absolute;
  bottom: 40px; 
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.login-footer a {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #171a26;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .login-wrap {
      box-shadow: none; 
      padding: 20px 16px;
  }
}

/* =========================
   MYPAGE
========================= */
.saju-mypage{
  padding:0px 0px 80px;
  border-radius:28px;
}

.mypage-actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  /* border-top: 1px solid rgba(148, 163, 184, 0.18); */
}

.mypage-actions a{
  color: #334155;
  font-weight: 700;
  text-decoration: none;
}

.mypage-actions a:hover{
  color: #111827;
}

.action-divider{
  color: #cbd5e1;
}

.customer-service-link{
  color: #f43f5e;
}

.customer-service-link:hover{
  color: #c81e4a;
}

/* SHARE BANNER */
.mypage-share-banner{
  margin-bottom:32px;
  padding:36px;
  border-radius:28px;
  background: linear-gradient(135deg, #111827 0%, #0f172a 48%, #1e293b 100%);
  border: 1px solid rgba(255,255,255,0.12);
  overflow:hidden;
  position:relative;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mypage-share-banner:hover{
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.4);
}

.banner-content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.banner-text{
  max-width: calc(100% - 180px);
}

.banner-text h2{
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.banner-text p{
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .banner-content{
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .banner-text{
    max-width: 100%;
  }

  .btn-share{
    width: 100%;
  }
}

.mypage-share-banner::before{
  content:'';
  position:absolute;
  top:-120px;
  right:-80px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:
  radial-gradient(circle,
  rgba(255,255,255,0.15),
  transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.banner-label{
  display:inline-flex;
  align-items:center;
  padding:12px 20px;
  border-radius:999px;
  background:
  rgba(255,255,255,0.12);
  backdrop-filter:blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color:#E2E8F0;
  font-size:12px;
  font-weight:700;
  line-height:1.5;
  margin-bottom:28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-share{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 170px;
  height: 54px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdf2f8, #fee2e9);
  color: #7f1d4b;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 14px 28px rgba(255, 71, 87, 0.18);
  position: relative;
  overflow: hidden;
}

.btn-share-icon{
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8);
}

.btn-share-icon svg{
  width: 16px;
  height: 16px;
}

.btn-share::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 45%);
  transition: left 0.4s ease;
}

.btn-share:hover{
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #ffe4ec, #ffcad4);
  box-shadow: 0 18px 34px rgba(255, 71, 87, 0.22);
}

.btn-share:hover::before{
  left: 100%;
}

/* HISTORY */
.mypage-history-wrap{
  margin-top: 24px;
  padding: 24px 0;
  border-radius: 28px;
}

.mypage-title-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.title-info{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mypage-title-wrap h3{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.title-desc{
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.saju-history-list{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.saju-history-empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  min-height: 240px;
  padding: 38px 26px;
  border: 1px dashed #dbe4ed;
  border-radius: 28px;
  background: #f8fafc;
}

.empty-icon{
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: 50%;
  background: #fff5f8;
  color: #f43f65;
}

.saju-history-empty h4{
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.saju-history-empty p{
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.btn-empty{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: #ff6f92;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn-empty:hover{
  transform: translateY(-1px);
  background: #ed577a;
}

.saju-history-card{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid #eef2f7;
  border-radius: 24px;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}

.saju-history-card:hover{
  transform: translateY(-2px);
  border-color: #ffd7dd;
  box-shadow: 0 16px 28px rgba(255, 71, 87, 0.08);
}

.saju-card-left{
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  flex: 1;
}

.saju-card-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.saju-tag{
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag-love{
  background: #FFF1F3;
  color: #D62839;
}

.tag-money{
  background: #FFF7ED;
  color: #EA580C;
}

.view-date{
  font-size: 12px;
  color: #94A3B8;
}

.saju-card-info h3{
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #111827;
  margin: 0;
}

.saju-history-card.active{
  background: linear-gradient(180deg, #fff9fb 0%, #fff2f7 100%);
  border-color: #f5c2d1;
}

.saju-history-card.expired{
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.95;
  cursor: pointer;
}

.expired-modal-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.expired-modal-backdrop.show{
  display: flex;
}

.expired-modal{
  width: min(100%, 420px);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
  padding: 30px 26px;
  text-align: center;
}

.expired-modal h3{
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.expired-modal p{
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
}

.btn-modal-close{
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  background: #ff6f92;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-modal-close:hover{
  background: #ed577a;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .mypage-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .saju-history-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media(max-width:768px){

  .banner-content{
    flex-direction:column;
    align-items:flex-start;
  }

  .banner-text h2{
    font-size:22px;
  }

  .banner-text p{
    font-size:13px;
  }

  .mypage-title-wrap h3{
    font-size:20px;
  }

  .title-desc{
    font-size:12px;
  }

  .btn-share{
    width:100%;
  }

  .saju-history-card{
    padding:20px;
  }

  .saju-card-info h3{
    font-size:18px;
  }

}

/* saju-form inline styles moved to style.css */
.ime-active {
  ime-mode: active;
}

.sf-wrap-couple {
  margin-top: 20px;
}

.sf-wrap-couple.hidden {
  display: none;
}

.sf-wrap-couple.visible {
  display: block;
}

@media(max-width:560px){

  .saju-history-card{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
  }

  .saju-card-right{
    width:100%;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }

}

/* =========================
   MAIN BANNER
========================= */
.section-banner {
  margin-top: 10px;
}

/* Locked analysis card: blur sensitive content and show overlay */
.analysis-card {
  position: relative;
}
.analysis-card.locked .ac-body {
  position: relative;
  /* blur entire body for locked content */
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.95;
}
.analysis-card.locked .ac-body::after {
  /* overlay kept for visual dimming but no text */
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(255,255,255,0.4);
  border-radius: 12px;
  pointer-events: none;
}

.swiper-section {
  border-radius: 12px;
}

.saju-banner {
  position: relative;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
}

.sub-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.05);
}

.sub-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.2)
  );
}

/* BANNER 텍스트 */
.saju-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1200px;
  padding-left: 60px;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .saju-banner {
    height: 220px;
  }

  .saju-banner-text {
    padding-left: 0;
    justify-content: center;
    text-align: center;
  }
}

.saju-banner-inner {
  color: #fff;
  max-width: 500px;
}

.saju-badge {
  display: inline-block;
  background: rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 10px;
}

.saju-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

.saju-sub {
  font-size: 14px;
  margin-bottom: 20px;
}

.saju-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

/* =========================
   CATEGORY BAR
========================= */
.category-inner {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  overflow-x: auto;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  border-radius: 16px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-btn .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #f2f6fa;
  font-size: 20px;
  transition: all 0.25s ease;
}

.category-btn .txt {
  font-size: 11px;
  transition: all 0.25s ease;
}

.category-btn:hover,
.category-btn.active {
  transform: translateY(-1px);
}

.category-btn:hover .icon,
.category-btn.active .icon {
  background: #fff0f0;
  border-color: #ffdadd;
  color: #ff4757;
}

.category-btn:hover .txt,
.category-btn.active .txt {
  color: #ff4757;
}

.category-btn:hover .icon {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .category-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow-x: visible; 
    padding: 16px;
  }

  .category-btn {
    min-width: auto;
  }

}

/* =========================
   HOT SECTION
========================= */
.hot-inner {
  background: #fff0f0;
  border: 1px solid #ffdadd;
  border-radius: 16px;
  padding: 20px;
}

.hot-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #171a26;
}

.title-badge {
  font-size: 10px;
  background: #ff4757;
  color: #fff;
  padding: 4px 8px;
  border-radius: 9999px;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 8px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tag:hover {
  background: #fff0f0;
  border-color: #ffdadd;
  color: #ff4757;
}

.tag.active {
  background: #ff4757;
  border-color: #ff4757;
  color: #fff;
}

/* =========================
   LIST SECTION LIST
========================= */
.section-list {
  padding: 16px 0px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-left h3 {
  font-size: 18px;
  font-weight: 700;
}

.section-left p {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 4px;
}

.section-more {
  font-size: 14px;
  color: #ff4757;
  text-decoration: none;
}

.sect-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sect-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.25s;
  cursor: pointer;
}

.sect-card:hover {
  transform: translateY(-4px);
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; 
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.card-category {
  font-size: 13px;
  color: #9ca3af;
}

.card-body h4 {
  font-size: 16px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: auto;
}

/* badge style */
.badge {
  position: absolute;
  top: 8px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  color: #fff;
}

.badge.hot {
  left: 8px;
  background: #ff4757;
}

.badge.free {
  right: 8px;
  background: #00c896;
}

.badge.price {
  right: 8px;
  background: #ff8c42;
}

@media (max-width: 768px) {
  .sect-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* section-divider */
.section-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.divider-text {
  padding: 0 14px;
  font-size: 13px;
  color: #6b7280;
  background: #fff;
  font-weight: 500;
}

/* =========================
   ALL LIST
========================= */
.all-list {
  display: none;
}

.all-list.show {
  display: block;
}

.divider-text {
  cursor: pointer;
}

.divider-text.active {
  color: #171a26;
  font-weight: 600;
}

/* =========================
   FILTER TABS
========================= */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  background: #f1f3f5;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab.cat-love:hover {
  background: #fff0f0;
  color: #ff4757;
}

.tab.cat-love.active {
  background: #ff4757;
  color: #fff;
}
.cat-love.section-header h3 {
  color: #ff4757;
}

.tab.cat-personality.active {
  background: #00bfa6;
  color: #fff;
}
.tab.cat-personality:hover {
  background: #f0fbf9;
  color: #00bfa6;
}

.cat-personality .section-header h3 {
  color: #00bfa6;
}

.tab.cat-money.active {
  background: #ff8c42;
  color: #fff;
}
.tab.cat-money:hover {
  background: #fff4eb;
  color: #ff8c42;
}

.cat-money .section-header h3 {
  color: #ff8c42;
}

.tab.cat-relation.active {
  background: #3b82f6;
  color: #fff;
}
.tab.cat-relation:hover {
  background: #eff6ff;
  color: #3b82f6;
}

.cat-relation .section-header h3 {
  color: #3b82f6;
}

.tab.cat-future.active {
  background: #886ce4;
  color: #fff;
}
.tab.cat-future:hover {
  background: #f5f5ff;
  color: #886ce4;
}

.cat-future .section-header h3 {
  color: #886ce4;
}

@media (max-width: 768px) {
  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px;
  }

  .tab {
    width: 100%;
    padding: 10px 6px;
    font-size: 12px;
    border-radius: 12px;
  }

}

/* =========================
   QUICK CATEGORY
========================= */
.quick-category {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.quick-item .icon {
  font-size: 24px;
}

.quick-item .txt strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.quick-item .txt span {
  font-size: 12px;
  color: #6b7280;
}

.quick-item.love {
  background: #fff0f0;
  border-color: #ffdadd;
  color: #ff4757;
}

.quick-item.personality {
  background: #f0fbf9;
  border-color: #dbf8f3;
  color: #00bfa6;
}

.quick-item.money {
  background: #fffbf0;
  border-color: #ffe8c2;
  color: #ff8c42;
}

.quick-item.future {
  background: #f5f5ff;
  border-color: #e0e4ff;
  color: #886ce4;
}

.quick-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .quick-category {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
  section-detail
========================= */
.fd-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.fd-category {
  font-size: 13px;
}

.fd-category.love {
  color: #ff4757;
}

.fd-category.personality {
  color: #00bfa6;
}

.fd-category.money {
  color: #ff8c42;
}

.fd-category.future {
  color: #886ce4;
}

.fd-title {
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
}

.fd-top {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.fd-thumb {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
}

.fd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fd-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 10px;
  color: #fff;
}

.fd-hot {
  background: #ff4757;
}

.fd-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fd-price {
  font-size: 18px;
  font-weight: 700;
  color: #ff4757;
}


.fd-full {
  width: 100%;
  margin-top: 10px;
}

.fd-section {
  margin-top: 30px;
}

.fd-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.fd-section p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
}

.fd-list {
  padding-left: 0;
}

.fd-list li {
  list-style: none;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .fd-top {
    flex-direction: column;
  }

  .fd-thumb {
    width: 100%;
    height: 160px;
  }
}

/* =========================
   more 버튼 영역
========================= */
.fortune-more-wrap {
  margin-top: 28px;
}

.fortune-more-btn {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    #ff6b81,
    #ff4757
  );
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    0 8px 20px rgba(255, 71, 87, 0.18);
  transition: all 0.25s ease;
}

.fortune-more-btn svg {
  width: 20px;
  height: 20px;

  stroke-width: 2.2;
}
/* premium promo: tense / urgent styling */
.promo-box {
  margin-top: 28px;
  width: 100%;
  padding: 22px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1b1209 0%, #271a0f 100%);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* make the whole promo area clickable */
.promo-cta {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.promo-cta:focus { outline: 2px solid rgba(255,140,60,0.25); outline-offset: 4px; }

.pay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(2px);
  z-index: 999;
}

.pay-modal {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: min(100%, 520px);
  max-height: 92vh;
  z-index: 1000;
  transition: transform 0.28s ease;
  pointer-events: none;
}

.pay-modal.open {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pay-modal-inner {
  background: radial-gradient(circle at top, #3e1f0b 0%, #1b0a04 100%);
  border-radius: 26px 26px 0 0;
  padding: 24px 22px 30px;
  box-shadow: 0 -14px 48px rgba(0,0,0,0.35);
  color: #fff;
  overflow-y: auto;
  max-height: calc(92vh - 10px);
}

.pay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.pay-modal-header {
  margin-bottom: 18px;
}

.pay-modal-header strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pay-modal-header p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 14px;
  line-height: 1.6;
}

.pay-field {
  display: block;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
}

.pay-field span {
  display: block;
  margin-bottom: 8px;
}

.pay-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 16px;
}

.pay-phone-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-phone-part {
  width: 0;
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 16px;
  text-align: center;
}

.pay-phone-sep {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
}

.pay-summary {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  margin-bottom: 18px;
}

.pay-summary-row,
.pay-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  margin-bottom: 10px;
}

.pay-summary-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 18px;
  font-weight: 800;
}

.pay-summary-row strong,
.pay-summary-total strong {
  color: #fff;
}

.pay-summary-row:nth-child(2) strong {
  color: #ffa36c;
}

.pay-note {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.pay-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.pay-btn:hover {
  transform: translateY(-1px);
}

.pay-kakao {
  background: #fee500;
  color: #191919;
}

.pay-naver {
  background: #03c75a;
  color: #191919;
}

.pay-normal {
  width: 100%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
}

.pay-agree-note {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.pay-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 14px;
}

.pay-check > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-check input {
  width: 18px;
  height: 18px;
  accent-color: #ffb35a;
}

.pay-check-detail {
  color: #ffcd7f;
  text-decoration: none;
  font-size: 13px;
}

.pay-check-detail:hover {
  text-decoration: underline;
}

.pay-detail-info {
  margin-top: 12px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.7;
}

.pay-detail-info strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.pay-modal .pay-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.pay-modal-inner {
  position: relative;
}

@media (max-width: 520px) {
  .pay-modal {
    width: 100%;
  }
}

.promo-box::after {
  content: '';
  position: absolute;
  inset: -40% -40% -40% -40%;
  background: radial-gradient(circle at 10% 20%, rgba(255,180,100,0.06), transparent 8%),
              linear-gradient(90deg, rgba(255,80,30,0.02), rgba(255,255,255,0.02));
  transform: rotate(18deg);
  animation: promo-shift 6s linear infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.promo-text {
  margin: 0;
  color: #ffd9b3;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.promo-text strong {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(255,150,80,0.12), rgba(0,0,0,0.08));
  border-radius: 8px;
  color: #fff;
  font-family: "GmarketSansMedium", sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: none;
  animation: pulse 1.6s ease-in-out infinite;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,110,60,0.12), rgba(255,200,140,0.04));
  color: #ffd9b3;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  border: 1px solid rgba(255,110,60,0.18);
  box-shadow: 0 12px 30px rgba(255,90,40,0.12), 0 0 28px rgba(255,70,30,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

@keyframes promo-shift {
  0% { transform: rotate(18deg) translateX(0); }
  50% { transform: rotate(18deg) translateX(6%); }
  100% { transform: rotate(18deg) translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.92; }
  100% { transform: scale(1); opacity: 1; }
}

/* urgency modifiers */
.promo-box.urgent {
  background: linear-gradient(180deg, #3a1208 0%, #2b0c06 100%);
  box-shadow: none;
  border-color: rgba(255,120,60,0.12);
}

.promo-box.urgent .promo-text {
  color: #ffd8c0;
}

.promo-box.urgent .promo-text strong {
  background: linear-gradient(180deg, #ff6b3b 0%, #d43b1a 100%);
  box-shadow: none;
  animation-duration: 1s; /* faster pulse */
}

.promo-box.critical {
  background: linear-gradient(180deg, #3f0e08 0%, #260602 100%);
  box-shadow: none;
  border-color: rgba(255,40,10,0.2);
}

.promo-box.critical .promo-text strong {
  background: linear-gradient(90deg, #ff2e00 0%, #b80000 100%);
  box-shadow: none;
  animation: critical-flash 0.9s ease-in-out infinite;
}

@keyframes critical-flash {
  0% { transform: scale(1); box-shadow: 0 16px 40px rgba(184,0,0,0.32); }
  50% { transform: scale(1.06); box-shadow: 0 28px 60px rgba(255,40,10,0.44); }
  100% { transform: scale(1); box-shadow: 0 16px 40px rgba(184,0,0,0.32); }
}


@media (max-width: 768px) {

  .fortune-more-btn {
    height: 50px;
    font-size: 14px;
    border-radius: 14px;
  }

}

/* =========================
   counselor
========================= */
.cs-counselor-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  box-sizing: border-box;
}

.cs-counselor-card * {
  box-sizing: border-box;
}

.cs-counselor-top {
  padding: 24px;
}

.cs-counselor-profile {
  display: grid;
  grid-template-columns: 76px minmax(160px, 1fr) minmax(220px, 1.2fr);
  gap: 18px;
  align-items: flex-start;
}

.cs-counselor-profile img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8d59f;
}

.cs-counselor-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.cs-counselor-name strong {
  font-size: 20px;
  color: #111827;
}

.cs-counselor-name span {
  font-size: 13px;
  font-weight: 700;
  color: #9b1c31;
}

.cs-counselor-info p {
  margin: 0 0 7px;
  font-size: 14px;
  color: #6b4b2b;
}

.cs-counselor-rating {
  font-size: 13px;
  color: #f5b400;
}

.cs-counselor-rating strong {
  margin-left: 5px;
  color: #111;
}

.cs-counselor-rating span {
  color: #6b7280;
}

.cs-counselor-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cs-counselor-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f4eadc;
  font-size: 12px;
  line-height: 1;
  color: #7c4a1e;
}

.cs-fortune-box {
  border-top: 1px solid #eee5dc;
}

.cs-fortune-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border: 0;
  background: #fffaf4;
  cursor: pointer;
  text-align: left;
}

.cs-fortune-toggle strong {
  flex: 1;
  font-size: 16px;
  color: #7c4a1e;
}

.cs-fortune-toggle svg {
  width: 20px;
  height: 20px;
  color: #9b1c31;
  stroke-width: 2.5;
}

.cs-icon-minus {
  display: none;
}

.cs-fortune-box.is-open .cs-icon-plus {
  display: none;
}

.cs-fortune-box.is-open .cs-icon-minus {
  display: block;
}

.cs-fortune-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}

.cs-menu-list {
  padding: 0 24px 22px;
}

.cs-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 18px;
  background: #fffaf4;
  border: 1px solid #f0e2d5;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: .25s;
}

.cs-menu-item:hover {
  background: #fff5ea;
  border-color: #e9cfb8;
}

.cs-menu-item div {
  flex: 1;
}

.cs-menu-item strong {
  font-size: 15px;
  color: #111827;
}

.cs-menu-item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b4b2b;
}

.cs-menu-item em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #9b1c31;
  white-space: nowrap;
}

.cs-menu-item.cs-popular::after,
.cs-menu-item.cs-new::after {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 3px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 0 15px 0 10px;
}

.cs-menu-item.cs-popular::after {
  content: "인기";
  background: #ffd400;
}

.cs-menu-item.cs-new::after {
  content: "신규";
  background: #ff4757;
}

@media screen and (max-width: 768px) {
  .cs-counselor-top {
    padding: 20px 16px;
  }

  .cs-counselor-profile {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .cs-counselor-profile img {
    width: 64px;
    height: 64px;
  }

  .cs-counselor-tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .cs-fortune-toggle,
  .cs-menu-list {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media screen and (max-width: 640px) {
  .cs-counselor-card {
    border-radius: 18px;
  }

  .cs-counselor-name {
    flex-wrap: wrap;
    gap: 6px;
  }

  .cs-counselor-name strong {
    font-size: 18px;
  }

  .cs-menu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cs-menu-item em {
    align-self: flex-end;
  }
}

/* =========================
   FOOTER
========================= */
.section-footer {
  width: 100%;
  background: #f9fafb;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 20px 30px;
  color: #171a26;
  font-size: 14px;
  line-height: 1.7;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #171a26;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 14px;
  color: #6b7280;
}

.footer-left,
.footer-right {
  display: inline-block;
  vertical-align: top;
}

.footer-left {
  width: calc(100% - 220px);
}

.footer-right {
  width: 200px;
  text-align: right;
}

.footer-col h4 {
  font-size: 14px;
  color: #171a26;
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-col p {
  font-size: 12px;
  color: #6b7280;
  word-break: keep-all;
}

.footer-links {
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
}

.footer-links a {
  color: #171a26;
  text-decoration: none;
  transition: 0.25s;
  font-weight: 500;
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  text-align: center;
  font-size: 13px;
  color: #171a26;
}

@media (max-width: 768px) {
  .section-footer {
    padding: 50px 20px 25px;
  }

  .footer-logo {
    font-size: 20px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    display: block;
  }

  .footer-right {
    margin-top: 30px;
    text-align: left;
  }

  .footer-col p {
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-bottom {
    margin-top: 35px;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.5;
  }
}
