/* ── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Pastel Dream — peach→lilac gradient + glass */
  --plum:      #3A2E40;   /* 딥 플럼 잉크 */
  --plum-sub:  #6B5C72;
  --plum-soft: #9784A0;
  --accent:    #B5589A;   /* 마젠타 포인트 */
  --coral:     #E0726B;
  --grad:      linear-gradient(90deg, #E0726B 0%, #C25BA8 55%, #9B5BD0 100%);
  --grad-btn:  linear-gradient(120deg, #E87C70, #B65BC0);
  --glass:     rgba(255,255,255,0.50);
  --glass-2:   rgba(255,255,255,0.70);
  --glass-bd:  rgba(255,255,255,0.72);
  --border:    rgba(58,46,64,0.12);
  --border-2:  rgba(58,46,64,0.22);
  --radius:    24px;
  --radius-sm: 14px;
  --radius-btn: 13px;   /* 버튼: 각진 사각형 스타일 */
  --shadow:    0 26px 64px rgba(120,72,110,0.18);
  --shadow-sm: 0 10px 28px rgba(120,72,110,0.12);
  --display:   'Pretendard', sans-serif;
}

html {
  scroll-behavior: smooth;
  /* 라이트 전용 선언 — 브라우저 강제 다크모드의 자동 색 반전을 비활성화 */
  color-scheme: only light;
  /* 그라디언트를 html 에 적용. fixed attachment 는 모바일(iOS Safari·모바일 크롬)에서
     그라디언트가 렌더링되지 않는 알려진 버그가 있어 사용하지 않는다. */
  background: linear-gradient(140deg, #FBDCC8 0%, #F6CCD7 36%, #E9CDEC 70%, #DBC6F2 100%);
  min-height: 100%;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  /* 콘텐츠가 짧을 때도 화면 전체가 그라디언트로 덮이도록 body 에도 동일 배경을 깔되
     스크롤되는 일반 배경(scroll attachment)으로 둔다. */
  background: linear-gradient(140deg, #FBDCC8 0%, #F6CCD7 36%, #E9CDEC 70%, #DBC6F2 100%) no-repeat;
  background-size: cover;
  color: var(--plum);
  min-height: 100vh;
  line-height: 1.65;
  /* 한글: 단어 중간에서 줄바꿈되지 않도록(어절 단위 개행) */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
textarea, input, select, button { font-family: inherit; }

.eyebrow, .section-badge, .badge { text-transform: uppercase; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 72px;
  background: linear-gradient(120deg, rgba(251,220,200,0.62) 0%, rgba(246,204,215,0.62) 55%, rgba(233,205,236,0.58) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--plum);
  white-space: nowrap;
}
.logo-mark { height: 30px; width: auto; display: block; }
.amp { color: var(--accent); padding: 0 .03em; }

.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-name { font-size: .85rem; color: var(--plum-sub); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 2rem;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(200,91,168,.32);
  transition: transform .18s, box-shadow .25s, filter .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(200,91,168,.42); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0); }

.btn-primary-sm {
  display: inline-flex; align-items: center;
  padding: .5rem 1.25rem;
  background: var(--grad-btn);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(200,91,168,.30);
  transition: transform .18s, box-shadow .25s, filter .25s;
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200,91,168,.4); filter: brightness(1.04); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem;
  background: rgba(255,255,255,0.45);
  color: var(--plum);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-btn);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.85); color: var(--accent); }

.btn-ghost-sm {
  padding: .42rem 1rem;
  background: rgba(255,255,255,0.5);
  color: var(--accent);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-ghost-sm:hover { background: rgba(255,255,255,0.9); }

.btn-large { padding: 1.1rem 2.7rem; font-size: 1rem; }
.btn-full  { width: 100%; justify-content: center; }

/* ── Gradient accent text ──────────────────────────────── */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: inherit;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  gap: 5rem;
  padding: 9rem 6rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle 360px at 80% 28%, rgba(255,170,150,.5) 0%, transparent 70%),
    radial-gradient(circle 320px at 12% 88%, rgba(190,150,230,.45) 0%, transparent 70%);
  filter: blur(20px);
}

.hero-content { position: relative; z-index: 1; max-width: 600px; }

.badge {
  display: inline-block;
  padding: .45rem 1.1rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 100px;
  font-size: .72rem;
  color: var(--accent);
  margin-bottom: 1.85rem;
  letter-spacing: .1em;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--plum-sub);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: stretch; margin-bottom: 1.85rem; }
/* 히어로: 두 버튼을 같은 높이·정렬로 균형 있게 */
.hero-actions .btn-primary.btn-large { padding: 0 2rem; min-height: 56px; }
.hero-actions .btn-ghost {
  min-height: 56px;
  padding: 0 1.6rem;
  font-size: .95rem;
  color: var(--accent);
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(181,88,154,.25);
}
.hero-actions .btn-ghost:hover { background: #fff; border-color: var(--accent); }

.hero-note {
  font-size: .8rem;
  color: var(--plum-soft);
  font-weight: 600;
  letter-spacing: .01em;
}

/* Phone mock */
.hero-visual { position: relative; z-index: 1; }

.phone-mock {
  width: 300px;
  height: 600px;
  background: rgba(255,255,255,0.55);
  border-radius: 46px;
  border: 1px solid var(--glass-bd);
  box-shadow: 0 40px 80px rgba(120,72,110,.25), 0 0 0 1px rgba(255,255,255,.4) inset;
  backdrop-filter: blur(16px);
  padding: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}

.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(160deg,#FFE4D6,#F6D2E2 50%,#E6D2F2); }

.match-card-preview {
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
}

.match-avatar-blur {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #FBB89E 0%, #E985A6 50%, #B97BD8 100%);
}
.match-avatar-blur::after {
  content: '1';
  position: absolute; top: 33%; left: 50%; transform: translate(-50%,-50%);
  font-weight: 800; font-size: 6rem; color: rgba(255,255,255,.85);
}

.match-info-preview {
  position: relative; z-index: 1;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(58,46,64,.78) 6%, rgba(58,46,64,.3) 55%, transparent 100%);
  color: #FBF1F6;
}

.timer-preview {
  display: flex; align-items: center; gap: .45rem;
  font-size: .74rem; color: #FFD7C8; letter-spacing: .04em; font-weight: 600;
  margin-bottom: .6rem;
}

.name-preview { font-size: 1.3rem; font-weight: 800; margin-bottom: .2rem; }
.job-preview  { font-size: .78rem; color: #EBD7E5; }

/* ── How / Steps ───────────────────────────────────────── */
.section-inner { max-width: 1120px; margin: 0 auto; padding: 7rem 2rem; }

.section-badge {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.16;
  margin-bottom: 3.5rem;
  text-wrap: balance;
}

.steps {
  display: flex; align-items: stretch; gap: 1.25rem; flex-wrap: wrap;
}

.step {
  flex: 1; min-width: 200px;
  background: var(--glass-2);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  backdrop-filter: blur(10px);
  transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.step-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.1rem;
  letter-spacing: -.03em;
}

.step-icon { display: none; }
.step h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .55rem; letter-spacing: -.02em; }
.step p  { font-size: .875rem; color: var(--plum-sub); line-height: 1.7; }

.step-arrow { display: none; }

/* ── Features ──────────────────────────────────────────── */
.features-section { background: rgba(255,255,255,0.28); border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}

.feature-card {
  background: var(--glass-2);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }

.card-glow { box-shadow: 0 14px 40px rgba(181,88,154,.14); }

.feature-icon {
  display: block;
  font-size: 1.9rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem; line-height: 1; letter-spacing: -.03em;
}
.feature-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .65rem; letter-spacing: -.02em; }
.feature-card p  { font-size: .88rem; color: var(--plum-sub); line-height: 1.75; }

/* ── Hero trust / countdown chip ──────────────────────── */
.countdown-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 100px;
  padding: .45rem 1.15rem;
  font-size: .78rem; font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: .01em;
}
.dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.75); }
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  font-size: .8rem; color: var(--plum-sub); font-weight: 600;
}
.hero-trust span { display: flex; align-items: center; gap: .3rem; }
.phone-glow {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 80px;
  background: radial-gradient(ellipse, rgba(181,88,154,.35) 0%, transparent 70%);
  filter: blur(18px); pointer-events: none;
}

/* ── Stats Strip ────────────────────────────────────────── */
.stats-strip {
  background: rgba(255,255,255,0.38);
  border-top: 1px solid rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 2.25rem 2rem; gap: 0;
}
.stat-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: .3rem; text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.stat-label {
  font-size: .78rem; color: var(--plum-sub); font-weight: 600;
}
.stat-divider {
  width: 1px; height: 50px;
  background: rgba(58,46,64,.12);
  flex-shrink: 0; margin: 0 1rem;
}

/* ── Manifesto / Why ────────────────────────────────────── */
.manifesto { overflow: hidden; }
.manifesto .section-inner h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800; letter-spacing: -.04em;
  line-height: 1.12; margin-bottom: 1.75rem;
}
.manifesto .section-inner p {
  font-size: 1rem; color: var(--plum-sub);
  line-height: 1.85; margin-bottom: 1.25rem; max-width: 620px;
}
.manifesto-quote {
  font-size: 1.2rem !important;
  font-style: italic; font-weight: 700 !important;
  color: var(--accent) !important;
  margin: 2.5rem 0 3rem !important;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}
.contrast {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin-top: 1rem;
}
.col {
  background: var(--glass-2);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(10px);
}
.col h4 { font-size: 1rem; font-weight: 800; margin-bottom: 1.1rem; letter-spacing: -.02em; }
.col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.col li { font-size: .88rem; color: var(--plum-sub); display: flex; align-items: flex-start; gap: .55rem; line-height: 1.5; }
.mk { font-weight: 800; font-size: .95rem; flex-shrink: 0; }
.col.old .mk { color: #C05050; }
.col.new .mk { color: var(--accent); }
.col.new { border-color: rgba(181,88,154,.28); box-shadow: 0 8px 28px rgba(181,88,154,.1); }

/* ── Steps ──────────────────────────────────────────────── */
.steps-three { justify-content: center; align-items: stretch; position: relative; }
.step-arrow-line {
  display: flex; align-items: center; flex-shrink: 0;
  color: var(--plum-soft); font-size: 1.4rem; margin: 0 .25rem;
  padding-bottom: 1rem;
}
.step-arrow-line::after { content: '→'; }
.step-emoji {
  font-size: 2rem; margin-bottom: .75rem; line-height: 1;
}

/* ── Features ──────────────────────────────────────────── */
.features-section { background: rgba(255,255,255,0.28); border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--glass-2); border: 1px solid var(--glass-bd);
  border-radius: var(--radius); padding: 2.25rem 2rem;
  backdrop-filter: blur(10px);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.card-glow { box-shadow: 0 14px 40px rgba(181,88,154,.14); }
.feature-emoji { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.feature-icon { display: none; }
.feature-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .55rem; letter-spacing: -.02em; }
.feature-card p  { font-size: .875rem; color: var(--plum-sub); line-height: 1.75; }

/* ── For Women (안심 설계) ──────────────────────────────── */
.women-section {
  background:
    radial-gradient(circle 500px at 85% 0%, rgba(255,178,158,.20), transparent 60%),
    radial-gradient(circle 460px at 5% 100%, rgba(200,123,208,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.05));
  border-top: 1px solid rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(255,255,255,.5);
}
.women-lead {
  text-align: center; max-width: 46ch; margin: 0 auto 3rem;
  font-size: 1.02rem; line-height: 1.85; color: var(--plum-sub); text-wrap: pretty;
}
.br-desktop { display: inline; }
@media (max-width: 640px) { .br-desktop { display: none; } }
.women-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem;
}
.women-card {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  backdrop-filter: blur(10px);
  transition: transform .28s, box-shadow .28s;
}
.women-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.women-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,178,158,.9), rgba(200,123,208,.9));
  color: #fff; margin-bottom: 1.05rem;
}
.women-ico svg { width: 24px; height: 24px; }
.women-card h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.women-card p { font-size: .9rem; color: var(--plum-sub); line-height: 1.72; text-wrap: pretty; }

/* ── Focus System (완전 집중) ───────────────────────────── */
.focus-lead {
  text-align: center; max-width: 48ch; margin: 0 auto 3rem;
  font-size: 1.02rem; line-height: 1.85; color: var(--plum-sub); text-wrap: pretty;
}
.focus-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.focus-row {
  display: flex; gap: 1.3rem; align-items: flex-start;
  background: var(--glass-2); border: 1px solid var(--glass-bd);
  border-radius: var(--radius); padding: 1.6rem 1.75rem; backdrop-filter: blur(10px);
}
.focus-num {
  flex-shrink: 0; font-size: 1.5rem; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  min-width: 2.2rem;
}
.focus-txt h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .4rem; text-wrap: balance; }
.focus-txt p { font-size: .93rem; color: var(--plum-sub); line-height: 1.75; text-wrap: pretty; }

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-section { overflow: hidden; }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--glass-2); border: 1px solid var(--glass-bd);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .3s, box-shadow .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.testi-stars { color: #E8A84B; font-size: 1rem; letter-spacing: .06em; }
.testi-text {
  font-size: .92rem; color: var(--plum-sub); line-height: 1.82;
  flex: 1; font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: .85rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.testi-name  { font-size: .88rem; font-weight: 700; color: var(--plum); }
.testi-job   { font-size: .76rem; color: var(--plum-soft); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section .section-inner { padding-bottom: 5rem; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--glass-2); border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm); overflow: hidden;
  backdrop-filter: blur(10px);
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; background: transparent; border: none;
  cursor: pointer; text-align: left; gap: 1rem;
  font-size: .95rem; font-weight: 700; color: var(--plum);
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  font-size: 1.4rem; font-weight: 400; color: var(--accent);
  flex-shrink: 0; transition: transform .25s;
  line-height: 1;
}
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: .88rem; color: var(--plum-sub); line-height: 1.8;
  padding: 0 1.5rem;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}

/* ── CTA ───────────────────────────────────────────────── */
.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.cta-inner h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.24;
  margin-bottom: 1rem;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.cta-sub {
  font-size: 1rem; color: var(--plum-sub); margin-bottom: 2.5rem;
}

.cta-countdown-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 100px;
  padding: .4rem 1.1rem;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  margin-bottom: 2.25rem;
}

/* Quick join form */
.quick-join-form { max-width: 480px; margin: 0 auto; }
.quick-join-fields {
  display: flex; gap: .6rem;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  padding: .45rem .45rem .45rem 1.4rem;
  box-shadow: 0 8px 32px rgba(181,88,154,.14);
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}
.quick-join-input {
  flex: 1; border: none; background: transparent;
  font-size: .95rem; color: var(--plum); outline: none;
  min-width: 0;
}
.quick-join-input::placeholder { color: var(--plum-soft); }
.quick-join-btn { white-space: nowrap; flex-shrink: 0; }
.quick-join-note { font-size: .78rem; color: var(--plum-soft); font-weight: 600; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,.5);
  padding: 2.25rem 2rem;
  text-align: center;
  font-size: .8rem;
  color: var(--plum-soft);
}
.footer a { color: var(--plum-sub); }
.footer a:hover { color: var(--accent); }

/* ── Auth pages ────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 1rem 3rem;
}

.auth-card {
  width: 100%; max-width: 440px;
  background: var(--glass-2);
  border: 1px solid var(--glass-bd);
  border-radius: 28px;
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.auth-card-wide { max-width: 580px; }

.auth-logo {
  display: block;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 2.25rem;
}

.auth-title {
  font-size: 1.9rem; font-weight: 800;
  letter-spacing: -.035em; margin-bottom: .5rem;
}

.auth-sub { font-size: .9rem; color: var(--plum-sub); margin-bottom: 2.5rem; }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.field { display: flex; flex-direction: column; gap: .5rem; }

.field label {
  font-size: .78rem; font-weight: 700;
  color: var(--plum-sub); letter-spacing: .01em;
}

.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  padding: .85rem 1.05rem;
  color: var(--plum);
  font-size: .92rem;
  transition: border-color .22s, background .22s, box-shadow .22s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--plum-soft); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(181,88,154,.14);
}
.field select option { background: #fff; }
.field textarea { resize: vertical; line-height: 1.6; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.optional { color: var(--plum-soft); font-size: .74rem; font-weight: 400; }

.terms-check {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .83rem; color: var(--plum-sub);
}
.terms-check input { margin-top: .2rem; accent-color: var(--accent); }

.alert-error {
  background: rgba(224,114,107,.14);
  border: 1px solid rgba(224,114,107,.34);
  border-radius: var(--radius-sm);
  padding: .8rem 1.05rem;
  font-size: .875rem;
  color: #B0463E;
  margin-bottom: .25rem;
}
.alert-info {
  background: rgba(120,180,140,.16);
  border: 1px solid rgba(90,160,110,.35);
  border-radius: var(--radius-sm);
  padding: .8rem 1.05rem;
  font-size: .875rem;
  color: #2f7a4f;
  margin-bottom: .25rem;
}

.auth-footer { text-align: center; font-size: .85rem; color: var(--plum-sub); margin-top: 1.75rem; }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Profile setup ─────────────────────────────────────── */
.setup-progress { margin-bottom: 1.75rem; }
.progress-bar {
  height: 4px; background: rgba(255,255,255,0.6); border-radius: 4px; margin-bottom: .55rem;
}
.progress-fill {
  height: 100%; background: var(--grad); border-radius: 4px;
  transition: width .4s ease;
}
.setup-progress span { font-size: .72rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

.upload-section { display: grid; grid-template-columns: repeat(3,1fr); gap: .9rem; margin-bottom: .5rem; }

.upload-label { cursor: pointer; display: block; }

.upload-box {
  background: rgba(255,255,255,0.5);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  padding: 1.6rem .75rem;
  display: flex; flex-direction: column; align-items: center;
  gap: .45rem; text-align: center;
  font-size: .82rem; color: var(--plum); font-weight: 600;
  transition: border-color .25s, background .25s;
}
.upload-box:hover { border-color: var(--accent); background: rgba(255,255,255,0.8); }
.upload-box.uploaded { border-color: var(--accent); border-style: solid; background: rgba(255,255,255,0.85); }

.card-box { border-color: var(--border-2); }

.upload-icon { font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--accent); }
.upload-hint { font-size: .68rem; color: var(--plum-soft); line-height: 1.4; font-weight: 400; }
.upload-input { display: none; }

.badge-verify {
  font-size: .58rem; font-weight: 700;
  background: var(--grad);
  color: #fff;
  padding: .14rem .5rem;
  border-radius: 100px;
  vertical-align: middle;
  letter-spacing: .04em;
}

.skip-link {
  display: block; text-align: center;
  font-size: .82rem; color: var(--plum-soft);
  margin-top: 1rem;
}
.skip-link:hover { color: var(--plum-sub); }

/* ── Profile setup: chip selection ─────────────────────── */
.profile-setup-card { max-width: 680px; }
.chip-group { margin-bottom: 1.6rem; }
.chip-label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--plum-sub); margin-bottom: .7rem; letter-spacing: -.01em;
}
.chip-hint { font-size: .72rem; font-weight: 500; color: var(--plum-soft); }
.required-mark { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block;
  padding: .5rem .9rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .84rem; font-weight: 600;
  color: var(--plum-sub);
  transition: all .18s;
}
.chip span:hover { border-color: var(--accent); color: var(--accent); }
.chip input:checked + span {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(200,91,168,.28);
}

/* 관심사 카테고리 소그룹 */
.chip-subgroup { margin-bottom: .9rem; }
.chip-subtitle {
  font-size: .74rem; font-weight: 700; color: var(--plum-soft);
  margin: 0 0 .45rem .1rem; letter-spacing: -.01em;
}

/* 장점 칩(선택 시 다른 색으로 구분) */
.chip-strength input:checked + span {
  background: linear-gradient(135deg, #ffb347, #ff7eb3);
  box-shadow: 0 4px 12px rgba(255,126,179,.3);
}

.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* 원하는 상대 조건 블록 */
.pref-block {
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(181,88,154,.12);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.1rem .4rem;
  margin-bottom: 1.6rem;
}
.pref-block .chip-label { margin-bottom: .9rem; }
.age-range { display: flex; align-items: center; gap: .5rem; }
.age-range input { width: 100%; }
.age-range span { color: var(--plum-soft); font-weight: 700; }

/* 상대 카드: 라이프스타일 · 서술 */
.partner-life { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 1rem; }
.partner-life span {
  font-size: .76rem; font-weight: 600; color: var(--plum-sub);
  background: rgba(181,88,154,.06); border: 1px solid rgba(181,88,154,.12);
  padding: .26rem .6rem; border-radius: 8px;
}
.partner-note { margin-bottom: .8rem; }
.partner-note b { display: block; font-size: .72rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: .2rem; }
.partner-note p { font-size: .88rem; color: var(--plum-sub); line-height: 1.6; white-space: pre-wrap; }

/* ── 내 프로필 보기 ── */
.pv-hint { font-size: .84rem; color: var(--plum-soft); margin: -.4rem 0 1.1rem; }
.pv-warn {
  background: rgba(255,179,71,.12); border: 1px solid rgba(255,150,90,.35);
  border-radius: 12px; padding: .8rem 1rem; font-size: .85rem; color: #c2691e; margin-bottom: 1.1rem;
}
.pv-warn a { color: var(--accent); font-weight: 700; }
.pv-card {
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(181,88,154,.1); border: 1px solid rgba(181,88,154,.08);
}
.pv-photo { position: relative; aspect-ratio: 4/5; max-height: 460px; }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-photo-ph {
  width: 100%; height: 100%; min-height: 320px;
  background: linear-gradient(160deg,#FBB89E,#E985A6 55%,#B97BD8);
  display: flex; align-items: center; justify-content: center; font-size: 4.5rem; font-weight: 800; color: #fff;
}
.pv-photo-grad { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(40,20,45,.72)); }
.pv-verified { position: absolute; top: 1rem; left: 1rem; background: rgba(58,46,64,.72); color: #FBF1F6; font-size: .72rem; font-weight: 600; padding: .3rem .7rem; border-radius: 8px; backdrop-filter: blur(6px); }
.pv-photo-name { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.1rem; color: #fff; }
.pv-photo-name h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.pv-photo-name h2 small { font-size: 1.05rem; font-weight: 600; opacity: .9; }
.pv-photo-name p { font-size: .85rem; opacity: .92; margin-top: .15rem; }
.pv-body { padding: 1.4rem 1.4rem 1.6rem; }
.pv-sec { margin-bottom: 1.2rem; }
.pv-sec h3 { font-size: .74rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: .5rem; }
.pv-sec p { font-size: .92rem; color: var(--plum-sub); line-height: 1.7; white-space: pre-wrap; }
.pv-empty { color: var(--plum-soft); }

/* ── 프로필 작성 위저드 ── */
.wiz-head { margin-bottom: 1.6rem; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.wiz-count { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.skip-link.inline { font-size: .78rem; color: var(--plum-soft); }
.wiz-bar { height: 6px; background: rgba(181,88,154,.12); border-radius: 100px; overflow: hidden; margin-bottom: 1.4rem; }
.wiz-bar-fill { height: 100%; background: var(--grad-btn); border-radius: 100px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.wiz-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .3rem; text-wrap: balance; }
.wiz-sub { font-size: .88rem; color: var(--plum-sub); }
.wiz-step { display: none; animation: wizfade .3s ease; }
.wiz-step.active { display: block; }
@keyframes wizfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-nav { display: flex; gap: .7rem; margin-top: 1.8rem; }
.wiz-nav .btn-ghost { flex: 0 0 auto; min-width: 88px; justify-content: center; }
.wiz-nav .btn-primary { flex: 1; justify-content: center; }

/* ── 사진 업로드 그리드(위저드) ── */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: .6rem; }
.photo-cell { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: rgba(181,88,154,.06); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-badge {
  position: absolute; top: 5px; left: 5px; font-size: .62rem; font-weight: 700;
  padding: .15rem .4rem; border-radius: 6px; color: #fff; letter-spacing: .02em;
}
.photo-badge.pending { background: rgba(210,140,40,.92); }
.photo-badge.approved { background: rgba(62,180,120,.95); }
.photo-badge.rejected { background: rgba(210,90,90,.92); }
.photo-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(30,20,35,.6); color: #fff; border: none; cursor: pointer;
  font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  aspect-ratio: 3/4; border: 1.5px dashed rgba(181,88,154,.35); border-radius: 12px;
  color: var(--accent); cursor: pointer; background: rgba(181,88,154,.03);
}
.photo-add:hover { background: rgba(181,88,154,.07); }
.photo-add .photo-add-plus { font-size: 1.5rem; line-height: 1; }
.photo-add .photo-add-txt { font-size: .68rem; font-weight: 600; }
.photo-add .photo-input { display: none; }

/* ── 프로필 보기: 내 사진 ── */
.pv-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.pv-photo-cell { position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; }
.pv-photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.pv-photo-note { font-size: .76rem; color: var(--plum-soft); margin-top: .5rem; }

/* ── 대시보드 상대 사진 캐러셀 ── */
.photo-carousel { position: absolute; inset: 0; }
.carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.carousel-img.active { opacity: 1; }
.carousel-dots { position: absolute; top: .8rem; left: 50%; transform: translateX(-50%); display: flex; gap: .3rem; z-index: 3; }
.carousel-dots .cdot { width: 20px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.5); }
.carousel-dots .cdot.active { background: #fff; }
.match-photo-locked {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(160deg, rgba(251,184,158,.25), rgba(200,123,208,.25));
  color: var(--plum); text-align: center; padding: 1rem;
}
.match-photo-locked .lock-ico { color: var(--accent); }
.match-photo-locked .lock-ico svg { width: 34px; height: 34px; }
.match-photo-locked p { font-size: .86rem; line-height: 1.5; color: var(--plum-sub); }

/* Bio + suggestions */
.bio-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.bio-counter { font-size: .72rem; color: var(--plum-soft); margin-top: .4rem; text-align: right; }
.bio-suggestions { display: flex; flex-direction: column; gap: .55rem; margin-top: .85rem; }
.suggest-title { font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: .15rem; }
.suggest-item {
  text-align: left;
  background: rgba(255,255,255,0.6);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .86rem; line-height: 1.65; color: var(--plum-sub);
  cursor: pointer; transition: all .18s; font-family: inherit;
}
.suggest-item:hover { border-style: solid; border-color: var(--accent); background: #fff; color: var(--plum); }

.upload-section-2 { grid-template-columns: 1fr 1fr; }
.upload-note { font-size: .74rem; color: var(--plum-soft); line-height: 1.6; margin: .25rem 0 1.25rem; }

@media (max-width: 560px) {
  .field-row-3 { grid-template-columns: 1fr; }
  .upload-section-2 { grid-template-columns: 1fr; }
}

/* ── Dashboard ─────────────────────────────────────────── */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

.sidebar {
  width: 280px; flex-shrink: 0;
  background: rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(18px);
  padding: 2.5rem 1.75rem;
  display: flex; flex-direction: column; align-items: center;
  position: sticky; top: 72px; height: calc(100vh - 72px);
  overflow-y: auto;
}

.sidebar-avatar {
  position: relative;
  width: 88px; height: 88px; margin-bottom: 1.1rem;
}
.sidebar-avatar img {
  width: 88px; height: 88px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.8);
}
.avatar-placeholder {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(160deg,#FBB89E,#C87BD0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 800; color: #fff;
}
.verified-badge {
  position: absolute; bottom: 2px; right: 2px;
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: #fff; font-weight: 700;
}

.sidebar-name { font-size: 1.15rem; font-weight: 800; margin-bottom: .25rem; letter-spacing: -.02em; }
.sidebar-job  { font-size: .78rem; color: var(--plum-sub); text-align: center; margin-bottom: .9rem; }

.manner-score {
  display: flex; align-items: center; gap: .35rem;
  font-size: .85rem; margin-bottom: 2rem;
}
.manner-star { color: var(--coral); }
.manner-count { font-size: .74rem; color: var(--plum-soft); }

.sidebar-nav { width: 100%; display: flex; flex-direction: column; gap: .25rem; }
.nav-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  color: var(--plum-sub);
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.5); color: var(--plum); }
.nav-item.active { background: rgba(255,255,255,.75); color: var(--accent); }
.nav-item.logout { margin-top: auto; color: var(--plum-soft); }
.nav-item.logout:hover { color: var(--coral); background: rgba(255,255,255,.5); }

.dashboard-main { flex: 1; padding: 3rem 3.5rem; overflow-y: auto; }

.match-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.25rem;
}
.match-header h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; }

.timer-wrap {
  display: flex; flex-direction: column; align-items: flex-end;
}
.timer-label { font-size: .66rem; color: var(--plum-sub); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; font-weight: 600; }
.timer-digits {
  font-size: 1.7rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -.01em;
}
.timer-urgent { -webkit-text-fill-color: #C23B2B !important; }

.match-card-full {
  display: flex; gap: 0;
  background: var(--glass-2);
  border: 1px solid var(--glass-bd);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.match-card-photo {
  width: 320px; flex-shrink: 0;
  position: relative;
}
.match-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.photo-placeholder {
  width: 100%; height: 100%; min-height: 380px;
  background: linear-gradient(160deg,#FBB89E,#E985A6 55%,#B97BD8);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; font-weight: 800; color: #fff;
}
.card-verified {
  position: absolute; bottom: 1rem; left: 1rem;
  background: rgba(58,46,64,.7);
  border-radius: 100px;
  padding: .35rem .85rem;
  font-size: .74rem; color: #FBF1F6; font-weight: 600;
  backdrop-filter: blur(6px);
}

.match-card-info { flex: 1; padding: 2.5rem; }

.match-name-row {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: .5rem;
}
.match-name-row h3 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.035em; }
.partner-manner { font-size: .85rem; color: var(--coral); font-weight: 700; }
.match-job   { font-size: .92rem; color: var(--plum-sub); margin-bottom: .25rem; }
.match-age   { font-size: .85rem; color: var(--plum-soft); margin-bottom: 1.5rem; }
.match-bio   { font-size: .95rem; color: var(--plum-sub); line-height: 1.85; margin-bottom: 1.5rem; }

.partner-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.partner-tag {
  font-size: .78rem; font-weight: 600; color: var(--accent);
  background: rgba(181,88,154,.1);
  border: 1px solid rgba(181,88,154,.2);
  padding: .3rem .75rem; border-radius: 100px;
}
.partner-tag-str {
  color: #d2691e;
  background: rgba(255,179,71,.14);
  border-color: rgba(255,140,90,.3);
}

/* ── 알림 켜기 / 홈 화면에 추가 권유 ── */
.push-prompt, .install-prompt {
  display: flex; align-items: center; gap: .9rem;
  background: linear-gradient(135deg, rgba(200,91,168,.12), rgba(255,179,71,.12));
  border: 1px solid rgba(181,88,154,.22);
  border-radius: 16px; padding: .95rem 1.1rem; margin-bottom: 1.4rem;
}
.push-prompt[hidden], .install-prompt[hidden] { display: none; }
.push-prompt-ico { flex-shrink: 0; color: var(--accent); }
.push-prompt-ico svg { width: 26px; height: 26px; }
.push-prompt-txt { flex: 1; display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.push-prompt-txt b { font-size: .9rem; font-weight: 700; color: var(--plum-deep); }
.push-prompt-txt span { font-size: .78rem; color: var(--plum-sub); line-height: 1.45; }
.push-prompt-actions { flex-shrink: 0; display: flex; align-items: center; gap: .5rem; }
.push-x {
  font-size: .78rem; color: var(--plum-soft); background: none; border: none; cursor: pointer; white-space: nowrap;
}
.push-x:hover { color: var(--accent); }
@media (max-width: 560px) {
  .push-prompt, .install-prompt { flex-wrap: wrap; }
  .push-prompt-actions { width: 100%; justify-content: flex-end; }
}

/* iOS "홈 화면에 추가" 수동 안내 */
.install-ios-hint {
  display: flex; align-items: center; gap: .4rem; margin-top: .35rem;
  font-size: .76rem; font-weight: 600; color: var(--accent);
}
.install-ios-hint[hidden] { display: none; }
.ios-step { display: inline-flex; align-items: center; gap: .25rem; }
.ios-step svg { width: 15px; height: 15px; }
.ios-arrow { color: var(--plum-soft); font-size: .7rem; }

/* ── 알림 배너 ── */
.notif-banner {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, rgba(200,91,168,.08), rgba(255,179,71,.08));
  border: 1px solid rgba(181,88,154,.2);
  border-radius: 16px; padding: .9rem 1.1rem; margin-bottom: 1.4rem;
}
.notif-list { display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.notif-item { display: flex; align-items: center; gap: .55rem; font-size: .86rem; color: var(--plum-sub); text-decoration: none; }
.notif-item:hover { color: var(--accent); }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.notif-text b { font-weight: 700; }
.notif-dismiss {
  flex-shrink: 0; font-size: .76rem; font-weight: 600; color: var(--plum-soft);
  background: rgba(255,255,255,.6); border: 1px solid rgba(181,88,154,.2);
  padding: .4rem .7rem; border-radius: 100px; cursor: pointer;
}
.notif-dismiss:hover { color: var(--accent); }

/* ── 지난 인연 평가 ── */
.rate-pending {
  background: #fff; border: 1px solid rgba(181,88,154,.14);
  border-radius: 20px; padding: 1.4rem 1.5rem; margin-bottom: 1.6rem;
  box-shadow: 0 6px 20px rgba(181,88,154,.06);
}
.rate-pending h3 { font-size: 1.05rem; font-weight: 800; color: var(--plum-deep); margin-bottom: .25rem; }
.rate-pending-sub { font-size: .82rem; color: var(--plum-soft); margin-bottom: 1rem; }
.rate-pending-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 0; border-top: 1px solid rgba(181,88,154,.1);
}
.rate-pending-info { display: flex; align-items: center; gap: .7rem; }
.rate-pending-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rate-pending-avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-btn); color: #fff; font-weight: 700;
}
.rate-pending-name { font-weight: 700; font-size: .92rem; color: var(--plum-deep); }
.rate-pending-job { font-size: .78rem; color: var(--plum-soft); }
.rate-pending-right { display: flex; align-items: center; gap: .7rem; }
.inline-stars { display: flex; gap: .15rem; }
.inline-stars .star-btn {
  background: none; border: none; cursor: pointer; font-size: 1.4rem;
  color: #e0d3da; line-height: 1; padding: 0;
}
.inline-stars .star-btn.active { color: #ffb347; }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; }

.voice-section { margin-bottom: 1.75rem; }
.voice-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .6rem; font-weight: 700; }
.voice-player { width: 100%; }

.waiting-notice {
  display: flex; align-items: flex-start; gap: .85rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  font-size: .88rem; color: var(--plum-sub); line-height: 1.7;
}
.waiting-notice span { font-weight: 800; font-size: 1.3rem; line-height: 1.2;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.waiting-notice small { color: var(--plum-soft); }

/* No-match state */
.no-match-card {
  max-width: 500px; margin: 5rem auto;
  background: var(--glass-2);
  border: 1px solid var(--glass-bd);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.no-match-icon {
  font-weight: 800;
  font-size: 3.5rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem; display: block;
}
.no-match-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .75rem; letter-spacing: -.03em; }
.no-match-card p  { color: var(--plum-sub); font-size: .92rem; margin-bottom: 2rem; }
.no-match-card p strong { color: var(--accent); font-weight: 800; }

.next-timer-wrap {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  margin-bottom: 2rem;
}
.next-timer-wrap span:first-child { font-size: .68rem; color: var(--plum-soft); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.next-timer {
  font-size: 2.6rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -.01em;
}

.verify-nudge {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: .85rem;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.verify-nudge p { color: var(--plum-sub); }

/* ── Chat ──────────────────────────────────────────────── */
.chat-wrapper {
  display: flex; flex-direction: column;
  height: 100vh; padding-top: 72px;
}

.chat-header {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1rem 1.75rem;
  background: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(18px);
  flex-shrink: 0;
  position: relative;
}

.back-btn { font-size: .85rem; color: var(--plum-sub); white-space: nowrap; }
.back-btn:hover { color: var(--accent); }

.chat-partner-info { display: flex; align-items: center; gap: .85rem; flex: 1; }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.8); }
.chat-avatar-placeholder {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg,#FBB89E,#C87BD0);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff;
}
.chat-partner-name { font-size: .95rem; font-weight: 800; }
.chat-partner-job  { font-size: .76rem; color: var(--plum-sub); }

.chat-timer { font-size: .82rem; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: .65rem;
}

.chat-notice {
  text-align: center;
  font-size: .8rem; color: var(--plum-soft);
  padding: .75rem;
}

.msg-row { display: flex; flex-direction: column; max-width: 68%; }
.msg-mine  { align-self: flex-end; align-items: flex-end; }
.msg-theirs { align-self: flex-start; align-items: flex-start; }

.bubble {
  padding: .72rem 1.1rem;
  border-radius: 20px;
  font-size: .92rem; line-height: 1.6;
}
.msg-mine .bubble {
  background: var(--grad-btn);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg-theirs .bubble {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--plum);
  border-bottom-left-radius: 6px;
}

.msg-time { font-size: .68rem; color: var(--plum-soft); margin-top: .3rem; }

/* ── 대화 시작 도우미 ── */
.icebreaker-box {
  margin: 0 1.25rem .8rem; padding: .9rem 1rem;
  background: rgba(255,255,255,.65); border: 1px solid rgba(181,88,154,.14);
  border-radius: 14px; backdrop-filter: blur(10px);
}
.icebreaker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.icebreaker-head span { font-size: .76rem; font-weight: 700; color: var(--accent); }
.icebreaker-x { background: none; border: none; font-size: 1.1rem; color: var(--plum-soft); cursor: pointer; line-height: 1; padding: 0 .2rem; }
.icebreaker-list { display: flex; flex-direction: column; gap: .5rem; }
.icebreaker-item {
  text-align: left; font-size: .84rem; color: var(--plum-deep);
  background: rgba(181,88,154,.05); border: 1px solid rgba(181,88,154,.1);
  border-radius: 10px; padding: .6rem .8rem; cursor: pointer; line-height: 1.5;
}
.icebreaker-item:hover { background: rgba(181,88,154,.1); }

.chat-input-bar {
  display: flex; gap: .85rem;
  padding: 1rem 1.75rem;
  background: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(18px);
  flex-shrink: 0;
}

.chat-input-bar input {
  flex: 1;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-btn);
  padding: .78rem 1.25rem;
  color: var(--plum);
  font-size: .92rem;
  transition: box-shadow .2s, border-color .2s;
}
.chat-input-bar input::placeholder { color: var(--plum-soft); }
.chat-input-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,88,154,.14); }

.send-btn {
  background: var(--grad-btn);
  color: #fff;
  border: none; border-radius: var(--radius-btn);
  padding: .78rem 1.5rem;
  font-weight: 700; font-size: .88rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200,91,168,.3);
  transition: transform .18s, box-shadow .22s, filter .25s;
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200,91,168,.4); filter: brightness(1.04); }

.chat-locked {
  text-align: center;
  padding: 1.25rem;
  font-size: .85rem; color: var(--plum-sub);
  background: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.5);
}

/* Manner rating overlay */
.rate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(58,46,64,.45);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.rate-card {
  background: var(--glass-2);
  border: 1px solid var(--glass-bd);
  border-radius: 28px;
  padding: 3rem 2.75rem;
  text-align: center; max-width: 380px; width: 100%;
  box-shadow: 0 30px 70px rgba(58,46,64,.3);
  backdrop-filter: blur(22px);
}
.rate-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .6rem; letter-spacing: -.03em; }
.rate-card p  { color: var(--plum-sub); font-size: .9rem; margin-bottom: 1.75rem; }

.star-group { display: flex; justify-content: center; gap: .6rem; margin-bottom: 1.75rem; }
.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 2rem; color: rgba(58,46,64,.25);
  transition: color .15s, transform .1s;
}
.star-btn:hover, .star-btn.active { color: var(--coral); transform: scale(1.14); }

/* ── Landing: Why / Manifesto ──────────────────────────── */
.manifesto .section-inner { max-width: 860px; text-align: center; }
.manifesto h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.28; margin-bottom: 1.75rem; text-wrap: balance; }
.manifesto p { font-size: 1.05rem; color: var(--plum-sub); line-height: 1.95; margin: 0 auto 1.1rem; max-width: 44ch; text-wrap: pretty; }
.manifesto p strong { color: var(--accent); font-weight: 700; }
.manifesto-quote {
  margin: 2.75rem auto 0; max-width: 22ch;
  font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.35;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 780px; margin: 3.5rem auto 0; text-align: left; }
.contrast .col {
  background: var(--glass-2); border: 1px solid var(--glass-bd); border-radius: var(--radius);
  padding: 1.85rem 1.6rem; backdrop-filter: blur(10px);
}
.contrast .new { box-shadow: 0 16px 40px rgba(181,88,154,.16); }
.contrast h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; font-weight: 800; }
.contrast .old h4 { color: var(--plum-soft); }
.contrast .new h4 { color: var(--accent); }
.contrast ul { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.contrast li { font-size: .92rem; color: var(--plum-sub); display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.contrast .new li { color: var(--plum); font-weight: 500; }
.contrast li .mk { font-weight: 800; flex-shrink: 0; }
.contrast .old li .mk { color: var(--plum-soft); }
.contrast .new li .mk {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Conversion: countdown chip / CTA ──────────────────── */
.countdown-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.85);
  border-radius: 100px; padding: .5rem 1.05rem;
  font-size: .82rem; font-weight: 600; color: var(--plum); margin-bottom: 1.35rem;
}
.countdown-chip b {
  font-variant-numeric: tabular-nums; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.countdown-chip .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex-shrink: 0;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,114,107,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(224,114,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,114,107,0); }
}
.hero-desc strong { color: var(--accent); font-weight: 700; }

.cta-countdown {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: 1.75rem; font-size: .85rem; color: var(--plum-sub); font-weight: 600;
}
.cta-countdown strong {
  font-size: 1.15rem; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cta-note { margin-top: 1.1rem; font-size: .8rem; color: var(--plum-soft); font-weight: 500; }

/* ── Mobile sticky signup bar ──────────────────────────── */
.mobile-cta { display: none; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar { padding: 0 1.5rem; }
  .hero { flex-direction: column; padding: 7.5rem 2rem 3.5rem; text-align: center; gap: 2.5rem; }
  .hero-content { max-width: 100%; }
  .countdown-chip { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mock { width: 220px; height: 440px; }
  .steps { flex-direction: column; }
  .dashboard-wrapper { flex-direction: column; }
  .match-card-full { flex-direction: column; }
  .match-card-photo { width: 100%; height: 300px; }
  .photo-placeholder { min-height: 0; height: 300px; }
  .field-row { grid-template-columns: 1fr; }
  .upload-section { grid-template-columns: 1fr; gap: .75rem; }
  .auth-card { padding: 2.25rem 1.75rem; }
}

/* Phone / mobile-first behaviour */
@media (max-width: 640px) {
  body:has(.mobile-cta) { padding-bottom: 74px; }

  .navbar { padding: 0 1.1rem; height: 64px; }
  .logo { font-size: 1.15rem; }
  .nav-links { gap: .5rem; }
  .btn-ghost { padding: .5rem .9rem; font-size: .8rem; }
  .btn-primary-sm { padding: .5rem 1rem; }

  /* hero */
  .hero { padding: 6rem 1.25rem 3rem; gap: 2rem; min-height: auto; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2.3rem, 9vw, 3rem); }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .6rem; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; min-height: 54px; font-size: .98rem; }
  .hero-actions .btn-primary.btn-large { padding: 0 1.5rem; min-height: 54px; }
  .btn-large { padding: 1rem 1.5rem; }

  /* sections */
  .section-inner { padding: 4rem 1.25rem; }
  .section-title, .manifesto h2 { margin-bottom: 2rem; }
  .manifesto p { font-size: .98rem; line-height: 1.85; text-align: left; }
  .contrast { grid-template-columns: 1fr; margin-top: 2.25rem; }
  .features-grid { gap: 1rem; }
  .cta-section { padding: 5rem 1.25rem; }
  .cta-inner .btn-primary { width: 100%; }

  /* auth */
  .auth-wrapper { padding: 5.5rem .9rem 2.5rem; }
  .auth-card { padding: 2rem 1.35rem; border-radius: 22px; }
  .auth-title { font-size: 1.6rem; }
  .field input, .field select, .field textarea { padding: .95rem 1rem; font-size: 1rem; }

  /* dashboard → compact top + fixed bottom tab bar */
  .dashboard-wrapper { padding-top: 64px; }
  .sidebar {
    position: static; width: 100%; height: auto;
    flex-direction: column; padding: 1.5rem 1.25rem 1.25rem;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.5);
  }
  .sidebar-avatar { width: 64px; height: 64px; margin-bottom: .75rem; }
  .sidebar-avatar img, .avatar-placeholder { width: 64px; height: 64px; font-size: 1.4rem; }
  .verified-badge { width: 20px; height: 20px; }
  .manner-score { margin-bottom: 0; }
  .sidebar-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; width: 100%;
    flex-direction: row; gap: .25rem;
    background: rgba(255,255,255,0.78); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.6);
    padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom));
  }
  .nav-item {
    flex: 1; justify-content: center; text-align: center;
    padding: .7rem .25rem; font-size: .78rem; border-radius: 12px; min-height: 48px;
  }
  .nav-item.logout { margin-top: 0; }
  .dashboard-main { padding: 1.75rem 1.25rem calc(72px + 1.5rem); }
  .match-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ── 삼성 브라우저 "어둡게 보기" / OS 다크모드 강제 라이트 오버라이드 ──────
   color-scheme: only light 는 CSS 기반 자동 다크모드를 막지만,
   삼성 브라우저의 "어둡게 보기" 토글이 prefers-color-scheme 미디어쿼리
   방식으로 동작할 경우를 대비해 명시적으로 라이트 컬러를 재선언한다.   */
@media (prefers-color-scheme: dark) {
  html {
    color-scheme: only light;
    background: linear-gradient(140deg, #FBDCC8 0%, #F6CCD7 36%, #E9CDEC 70%, #DBC6F2 100%) !important;
  }
  body {
    background: linear-gradient(140deg, #FBDCC8 0%, #F6CCD7 36%, #E9CDEC 70%, #DBC6F2 100%) !important;
    color: #3A2E40 !important;
  }
  .glass-card, .glass-card-flat {
    background: rgba(255,255,255,0.55) !important;
    color: #3A2E40 !important;
  }
  input, textarea, select {
    background: rgba(255,255,255,0.75) !important;
    color: #3A2E40 !important;
    border-color: rgba(58,46,64,0.18) !important;
  }
  .navbar {
    background: linear-gradient(120deg, rgba(251,220,200,0.72) 0%, rgba(246,204,215,0.72) 55%, rgba(233,205,236,0.68) 100%) !important;
    color: #3A2E40 !important;
  }
  .sidebar-nav {
    background: rgba(255,255,255,0.78) !important;
  }
  .nav-item, .nav-item .nav-label {
    color: #6B5C72 !important;
  }
  .nav-item.active, .nav-item.active .nav-label {
    color: #B5589A !important;
  }
  .btn-ghost {
    color: #6B5C72 !important;
  }
  p, span, label, h1, h2, h3, h4, h5, h6, small, li {
    color: inherit !important;
  }
}

/* 아래 규칙들은 원래 모바일(max-width:640) 전용인데 미디어쿼리가 끊겨 전역 적용되던 버그 수정 */
@media (max-width: 640px) {
  .match-card-info { padding: 1.75rem 1.5rem; }
  .match-name-row h3 { font-size: 1.6rem; }
  .no-match-card { margin: 2.5rem auto; padding: 2.5rem 1.5rem; }

  /* chat */
  .chat-wrapper { padding-top: 64px; }
  .chat-header { padding: .8rem 1rem; gap: .85rem; }
  .chat-messages { padding: 1.25rem 1rem; }
  .msg-row { max-width: 82%; }
  .chat-input-bar { padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); }
  .chat-input-bar input { padding: .85rem 1.15rem; font-size: 1rem; min-height: 46px; }
  .send-btn { min-height: 46px; padding: .75rem 1.2rem; }

  /* mobile sticky signup bar */
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    align-items: center; justify-content: space-between; gap: .85rem;
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.72); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.6);
  }
  .mobile-cta .mc-text { font-size: .72rem; color: var(--plum-sub); font-weight: 600; line-height: 1.35; }
  .mobile-cta .mc-text b {
    font-variant-numeric: tabular-nums; font-weight: 800;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .mobile-cta .btn-primary { flex-shrink: 0; padding: .8rem 1.4rem; min-height: 48px; }
}

/* ── Legal pages (약관 / 개인정보) ──────────────────────── */
.legal-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem 1.25rem 4rem;
}
.legal-card {
  background: var(--glass-2);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 2.25rem 2rem;
}
.legal-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .35rem; }
.legal-updated { font-size: .82rem; color: var(--plum-soft); margin-bottom: 2rem; }
.legal-card h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--plum);
  margin: 1.75rem 0 .6rem;
}
.legal-card p { font-size: .92rem; color: var(--plum-sub); line-height: 1.8; margin-bottom: .6rem; }
.legal-card ul { margin: .4rem 0 .8rem; padding-left: 1.2rem; }
.legal-card li { font-size: .9rem; color: var(--plum-sub); line-height: 1.75; margin-bottom: .3rem; }
.legal-footer { margin-top: 2rem; font-size: .85rem; color: var(--plum-soft); }
.legal-back {
  display: inline-block; margin-top: 1.5rem;
  font-size: .9rem; font-weight: 600; color: var(--accent);
}
.legal-back:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-wrapper { padding: 6rem 1rem 3rem; }
  .legal-card { padding: 2rem 1.4rem 1.5rem; }
  .legal-title { font-size: 1.5rem; }
}

/* ── Chat menu (신고/차단) ──────────────────────────────── */
.chat-menu-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--plum-sub);
  padding: .25rem .5rem; border-radius: 8px; flex-shrink: 0;
}
.chat-menu-btn:hover { background: rgba(255,255,255,0.6); color: var(--plum); }
.chat-menu {
  position: absolute; top: 58px; right: 12px; z-index: 50;
  background: var(--glass-2); border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden; min-width: 168px;
}
.chat-menu-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: .8rem 1rem; font-size: .9rem; color: var(--plum);
}
.chat-menu-item:hover { background: rgba(255,255,255,0.6); }
.chat-menu-item.danger { color: var(--coral); border-top: 1px solid var(--border); }

/* ── Report modal ──────────────────────────────────────── */
.report-overlay, .rate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(58,46,64,0.45);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.report-overlay[hidden] { display: none; }
.report-card {
  background: var(--glass-2); border: 1px solid var(--glass-bd);
  border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 2rem 1.75rem; max-width: 400px; width: 100%;
}
.report-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .4rem; }
.report-card p { font-size: .85rem; color: var(--plum-sub); margin-bottom: 1.25rem; }
.report-reasons { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.report-reason {
  background: rgba(255,255,255,0.55); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  padding: .75rem 1rem; font-size: .9rem; color: var(--plum); text-align: left;
}
.report-reason:hover { border-color: var(--accent); }
.report-reason.active { border-color: var(--accent); background: rgba(181,88,154,0.1); font-weight: 600; }
.report-detail {
  width: 100%; background: rgba(255,255,255,0.7);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .75rem 1rem; font-size: .9rem; color: var(--plum); resize: vertical;
  margin-bottom: 1.25rem;
}
.report-detail:focus { outline: none; border-color: var(--accent); }
.report-actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* ══════════════════════════════════════════════════════════
   앱 셸: 하단 탭바 + 페이지 컨테이너 (모바일 우선, 데스크톱 중앙정렬)
   ══════════════════════════════════════════════════════════ */
.app-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 88px 1.1rem calc(76px + env(safe-area-inset-bottom) + 1rem);
  min-height: 100vh;
}

/* 하단 탭바 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(181,88,154,0.14);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .18rem; padding: .55rem 0 .5rem; min-height: 60px;
  color: var(--plum-soft); font-size: .7rem; font-weight: 600;
  transition: color .15s;
}
.tabbar .tab .tab-ico { font-size: 1.35rem; line-height: 1; filter: grayscale(.4); opacity: .75; transition: all .15s; }
.tabbar .tab.active { color: var(--accent); }
.tabbar .tab.active .tab-ico { filter: none; opacity: 1; transform: translateY(-1px); }

/* 페이지 헤더(메세지·커뮤니티 등) */
.page-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.page-head h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.page-head .btn-sm { margin-left: auto; }
.back-link { font-size: .9rem; font-weight: 600; color: var(--plum-sub); }
.back-link:hover { color: var(--accent); }

/* ── 홈(로비) ── */
.home-header { display: flex; align-items: center; margin-bottom: 1.5rem; }
.home-me { display: flex; align-items: center; gap: .9rem; }
.home-avatar { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.home-avatar img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.home-avatar-ph {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(160deg,#FBB89E,#C87BD0);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.4rem;
}
.home-badge {
  position: absolute; bottom: 0; right: 0; width: 20px; height: 20px;
  background: var(--accent); border: 2px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .6rem; font-weight: 700;
}
.home-hello { font-size: .8rem; color: var(--plum-soft); }
.home-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.home-manner { font-size: .8rem; color: var(--plum-sub); margin-top: .1rem; }
.home-manner .star { color: var(--coral); }
.home-manner .cnt { color: var(--plum-soft); font-size: .72rem; }
.home-admin-link {
  margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--accent);
  background: rgba(181,88,154,.1); padding: .45rem .8rem; border-radius: 100px;
}

/* 오늘의 인연 */
.today-section { margin-bottom: 1.6rem; }
.today-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.today-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.today-timer {
  display: flex; align-items: center; gap: .4rem;
  font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.today-timer .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; animation: pulse 1.6s infinite; }
.today-timer.urgent { color: #C23B2B; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }

.match-card {
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 10px 34px rgba(181,88,154,.13);
  border: 1px solid rgba(181,88,154,.08);
}
.match-photo { position: relative; width: 100%; aspect-ratio: 4/3.4; overflow: hidden; }
.match-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.match-photo-ph {
  width: 100%; height: 100%;
  background: linear-gradient(160deg,#FBB89E,#E985A6 55%,#B97BD8);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 4rem; font-weight: 800;
}
.match-photo-grad {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to top, rgba(40,26,45,.82), transparent);
}
.match-photo-name { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1rem; color: #fff; }
.match-photo-name h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.match-photo-name h3 small { font-size: 1.1rem; font-weight: 600; opacity: .9; }
.match-photo-name p { font-size: .86rem; opacity: .92; margin-top: .15rem; }
.match-verified {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(58,46,64,.62); backdrop-filter: blur(6px);
  color: #FBF1F6; font-size: .72rem; font-weight: 600; padding: .32rem .7rem; border-radius: 100px;
}
.match-body { padding: 1.3rem 1.3rem 1.4rem; }
.match-bio { font-size: .92rem; line-height: 1.65; color: var(--plum-sub); margin-bottom: 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.tag-chip {
  font-size: .76rem; font-weight: 600; color: var(--accent);
  background: rgba(181,88,154,.1); border: 1px solid rgba(181,88,154,.16);
  padding: .28rem .66rem; border-radius: 100px;
}
.tag-chip.str { color: #d2691e; background: rgba(255,179,71,.14); border-color: rgba(255,140,90,.28); }
.match-cta { margin-top: 1.1rem; }
.waiting-box {
  background: rgba(181,88,154,.06); border: 1px dashed rgba(181,88,154,.25);
  border-radius: 16px; padding: 1.1rem; text-align: center;
}
.waiting-box p { font-size: .9rem; color: var(--plum-sub); line-height: 1.5; }
.waiting-box small { color: var(--plum-soft); font-size: .78rem; }

/* 빈 상태 카드 */
.empty-card {
  background: #fff; border-radius: 22px; padding: 2.75rem 1.75rem;
  text-align: center; box-shadow: 0 8px 26px rgba(181,88,154,.09);
  border: 1px solid rgba(181,88,154,.08); margin-bottom: 1.4rem;
}
.empty-card.incomplete { border: 1.5px solid rgba(255,150,90,.4); background: linear-gradient(180deg,#fff,rgba(255,179,71,.05)); }
.empty-ico { font-size: 3rem; margin-bottom: .8rem; }
.empty-card h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.empty-card p { font-size: .9rem; color: var(--plum-sub); line-height: 1.6; margin-bottom: 1.2rem; }
.next-timer { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.2rem; }
.next-timer span { font-size: .72rem; color: var(--plum-soft); letter-spacing: .1em; text-transform: uppercase; }
.next-timer b { font-size: 1.7rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* 홈 커뮤니티 바로가기 */
.home-shortcut {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 18px; padding: 1.1rem 1.3rem;
  box-shadow: 0 6px 20px rgba(181,88,154,.07); border: 1px solid rgba(181,88,154,.08);
}
.home-shortcut b { display: block; font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.home-shortcut span { font-size: .8rem; color: var(--plum-soft); }
.home-shortcut .arrow { color: var(--accent); display: inline-flex; }
.home-shortcut .arrow svg { width: 20px; height: 20px; }

/* ── 매칭 포인트(상대 카드 안) ── */
.match-reason {
  margin-bottom: 1rem; padding: .9rem 1rem;
  background: rgba(255,179,71,.08); border: 1px solid rgba(255,150,90,.22);
  border-radius: 12px;
}
.match-reason b { display: block; font-size: .78rem; font-weight: 700; color: #c2691e; margin-bottom: .4rem; }
.match-reason ul { margin: 0; padding-left: 1.1rem; }
.match-reason li { font-size: .85rem; color: var(--plum-sub); line-height: 1.6; }

/* ── 오늘의 대화 주제(투표) ── */
.topic-card {
  background: #fff; border-radius: 18px; padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 0 6px 20px rgba(181,88,154,.07); border: 1px solid rgba(181,88,154,.08);
  margin-bottom: 1.2rem;
}
.topic-card h3 { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: .5rem; }
.topic-q { font-size: 1.02rem; font-weight: 700; color: var(--plum-deep); margin-bottom: 1rem; line-height: 1.5; text-wrap: pretty; }
.topic-options { display: flex; flex-direction: column; gap: .6rem; }
.topic-opt {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; padding: .8rem .9rem; border-radius: 12px;
  background: rgba(181,88,154,.05); border: 1px solid rgba(181,88,154,.12);
  cursor: pointer; overflow: hidden; gap: .6rem;
}
.topic-opt-label { position: relative; z-index: 1; font-size: .88rem; font-weight: 600; color: var(--plum-deep); }
.topic-opt-pct { position: relative; z-index: 1; font-size: .82rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.topic-opt-bar { display: none; }
.topic-opt-fill {
  position: absolute; inset: 0; left: 0; height: 100%; z-index: 0; border-radius: 12px;
  background: rgba(181,88,154,.14); transition: width .4s ease;
}
.topic-options[data-voted="true"] .topic-opt { cursor: default; }
.topic-opt.mine { border-color: var(--accent); }
.topic-opt.mine .topic-opt-fill { background: rgba(200,91,168,.22); }
.topic-note { font-size: .74rem; color: var(--plum-soft); margin-top: .8rem; text-align: center; }

/* ── 나의 기록 ── */
.record-card {
  background: #fff; border-radius: 18px; padding: 1.3rem;
  box-shadow: 0 6px 20px rgba(181,88,154,.07); border: 1px solid rgba(181,88,154,.08);
  margin-bottom: 1.2rem;
}
.record-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.record-head h3 { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.record-level { font-size: .82rem; font-weight: 700; color: var(--plum-deep); }
.record-bar { height: 8px; border-radius: 100px; background: rgba(181,88,154,.1); overflow: hidden; margin-bottom: .5rem; }
.record-bar-fill { height: 100%; background: var(--grad-btn); border-radius: 100px; transition: width .5s ease; }
.record-sub { font-size: .76rem; color: var(--plum-soft); margin-bottom: 1rem; }
.record-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-bottom: 1rem; }
.record-stat { text-align: center; background: rgba(181,88,154,.05); border-radius: 10px; padding: .6rem .3rem; }
.record-stat b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--plum-deep); }
.record-stat span { font-size: .7rem; color: var(--plum-soft); }
.record-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.record-badge {
  font-size: .74rem; font-weight: 600; padding: .32rem .7rem; border-radius: 100px;
  background: rgba(181,88,154,.06); color: var(--plum-soft); border: 1px solid rgba(181,88,154,.12);
}
.record-badge.on { background: rgba(62,180,120,.12); color: #2f8a5c; border-color: rgba(62,180,120,.3); }

/* ── 커뮤니티 인기글 ── */
.trend-card {
  background: #fff; border-radius: 18px; padding: 1.3rem;
  box-shadow: 0 6px 20px rgba(181,88,154,.07); border: 1px solid rgba(181,88,154,.08);
  margin-bottom: 1.2rem;
}
.trend-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.trend-head h3 { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.trend-more { font-size: .78rem; font-weight: 600; color: var(--plum-soft); }
.trend-list { display: flex; flex-direction: column; gap: .7rem; }
.trend-item { display: flex; align-items: center; gap: .5rem; }
.trend-cat { font-size: .68rem; font-weight: 700; color: var(--accent); background: rgba(181,88,154,.08); padding: .18rem .5rem; border-radius: 6px; flex-shrink: 0; }
.trend-title { font-size: .86rem; color: var(--plum-deep); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-like { font-size: .74rem; color: var(--plum-soft); flex-shrink: 0; }
.trend-empty { font-size: .84rem; color: var(--plum-soft); }

/* ── 선형 아이콘 정규화(이모지 대체 SVG) ── */
.tab-ico svg { width: 23px; height: 23px; display: block; }
.empty-ico { color: var(--accent); display: flex; justify-content: center; }
.empty-ico svg { width: 46px; height: 46px; stroke-width: 1.4; }
.step-emoji { color: var(--accent); display: flex; justify-content: center; }
.step-emoji svg { width: 40px; height: 40px; }
.feature-emoji { color: var(--accent); }
.feature-emoji svg { width: 34px; height: 34px; }
.upload-icon svg { width: 28px; height: 28px; }
.like-heart { width: 17px; height: 17px; fill: none; }
.like-btn.liked .like-heart { fill: var(--coral); color: var(--coral); }

/* ── 메세지 목록 ── */
.convo-list { display: flex; flex-direction: column; gap: .5rem; }
.convo-item {
  display: flex; align-items: center; gap: .9rem;
  background: #fff; border-radius: 16px; padding: .9rem 1rem;
  box-shadow: 0 4px 14px rgba(181,88,154,.06); border: 1px solid rgba(181,88,154,.06);
}
.convo-item.disabled { opacity: .62; }
.convo-avatar { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.convo-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.convo-avatar-ph {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(160deg,#FBB89E,#C87BD0);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.convo-live { position: absolute; bottom: 1px; right: 1px; width: 12px; height: 12px; background: #3ecf8e; border: 2px solid #fff; border-radius: 50%; }
.convo-text { flex: 1; min-width: 0; }
.convo-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; }
.convo-name { font-weight: 700; font-size: .95rem; }
.convo-badge { font-size: .68rem; font-weight: 700; color: var(--plum-soft); background: rgba(181,88,154,.08); padding: .12rem .5rem; border-radius: 100px; }
.convo-badge.live { color: #2f9e6a; background: rgba(62,207,142,.14); }
.convo-last { font-size: .82rem; color: var(--plum-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-note { font-size: .78rem; color: var(--plum-soft); text-align: center; margin-top: 1.2rem; line-height: 1.5; }

/* ── 커뮤니티 ── */
.cat-tabs { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; font-size: .82rem; font-weight: 600; color: var(--plum-sub);
  background: rgba(255,255,255,.7); border: 1px solid rgba(181,88,154,.14);
  padding: .5rem .9rem; border-radius: 100px; white-space: nowrap;
}
.cat-tab.active { background: var(--grad-btn); color: #fff; border-color: transparent; }

.popular-box { background: #fff; border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: 0 4px 14px rgba(181,88,154,.06); }
.popular-title { font-size: .8rem; font-weight: 800; color: var(--plum); margin-bottom: .6rem; }
.popular-item { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.popular-rank { font-weight: 800; color: var(--accent); font-size: .85rem; width: 16px; }
.popular-name { flex: 1; font-size: .86rem; color: var(--plum-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popular-like { font-size: .74rem; color: var(--plum-soft); }

.post-list { display: flex; flex-direction: column; gap: .6rem; }
.post-item { display: block; background: #fff; border-radius: 16px; padding: 1rem 1.15rem; box-shadow: 0 4px 14px rgba(181,88,154,.06); border: 1px solid rgba(181,88,154,.06); }
.post-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.post-cat { font-size: .72rem; font-weight: 700; color: var(--accent); }
.post-date { font-size: .72rem; color: var(--plum-soft); }
.post-item-title { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; letter-spacing: -.01em; }
.post-item-body { font-size: .84rem; color: var(--plum-soft); line-height: 1.5; margin-bottom: .55rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-item-meta { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; color: var(--plum-soft); }
.post-stats { font-variant-numeric: tabular-nums; }

.post-detail { background: #fff; border-radius: 20px; padding: 1.5rem 1.4rem; box-shadow: 0 6px 20px rgba(181,88,154,.08); margin-bottom: 1.2rem; }
.post-detail-title { font-size: 1.35rem; font-weight: 800; margin: .5rem 0 .7rem; letter-spacing: -.02em; }
.post-detail-meta { display: flex; gap: .8rem; font-size: .76rem; color: var(--plum-soft); margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(181,88,154,.1); }
.post-detail-body { font-size: .95rem; line-height: 1.75; color: var(--plum-sub); white-space: pre-wrap; }
.post-detail-actions { margin-top: 1.5rem; display: flex; justify-content: center; }
.like-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.7); border: 1.5px solid rgba(181,88,154,.2);
  padding: .6rem 1.4rem; border-radius: 100px; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--plum-sub); transition: all .15s;
}
.like-btn.liked { background: rgba(232,133,166,.12); border-color: rgba(232,133,166,.4); color: #d1477a; }
.del-btn, .comment-del { background: none; border: none; cursor: pointer; color: var(--plum-soft); font-size: .82rem; }
.del-btn:hover, .comment-del:hover { color: var(--coral); }

.comments { background: #fff; border-radius: 20px; padding: 1.3rem 1.4rem; box-shadow: 0 6px 20px rgba(181,88,154,.06); }
.comments-title { font-size: .95rem; font-weight: 800; margin-bottom: 1rem; }
.comment-item { padding: .75rem 0; border-bottom: 1px solid rgba(181,88,154,.08); }
.comment-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.comment-name { font-weight: 700; font-size: .84rem; }
.comment-date { font-size: .72rem; color: var(--plum-soft); }
.comment-body { font-size: .88rem; color: var(--plum-sub); line-height: 1.55; white-space: pre-wrap; }
.comments-empty { font-size: .84rem; color: var(--plum-soft); text-align: center; padding: 1rem 0; }
.comment-form { margin-top: 1rem; }
.comment-form textarea {
  width: 100%; border: 1px solid rgba(181,88,154,.2); border-radius: 12px;
  padding: .75rem .9rem; font-size: .9rem; font-family: inherit; resize: vertical; color: var(--plum);
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }

.write-form .field { margin-bottom: 1.1rem; }
.anon-check { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--plum-sub); margin-bottom: 1.2rem; cursor: pointer; }
.anon-check input { width: auto; }
.anon-check.sm { font-size: .78rem; margin-bottom: 0; }

/* 탭바가 있는 페이지(프로필 편집 등)는 하단 여백 확보 */
body:has(.tabbar) .auth-wrapper { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

/* 데스크톱: 탭바를 하단 중앙 캡슐로 */
@media (min-width: 720px) {
  .tabbar {
    left: 50%; transform: translateX(-50%); right: auto; bottom: 20px;
    width: auto; border-radius: 100px; border: 1px solid rgba(181,88,154,.14);
    box-shadow: 0 8px 28px rgba(181,88,154,.18); padding: 0 .4rem;
  }
  .tabbar .tab { padding: .5rem 1.4rem; min-height: 56px; }
}

/* 다크모드(삼성 어둡게 보기) — 새 컴포넌트 라이트 유지 */
@media (prefers-color-scheme: dark) {
  .tabbar { background: rgba(255,255,255,0.85) !important; }
  .tabbar .tab { color: #6B5C72 !important; }
  .tabbar .tab.active { color: #B5589A !important; }
  .match-card, .empty-card, .home-shortcut, .convo-item, .post-item,
  .post-detail, .comments, .popular-box { background: #fff !important; }
  .match-bio, .post-detail-body, .comment-body { color: #6B5C72 !important; }
}
