/* =============================================================
   눈끔(Noonkkeum) Redesign — main page, global header & footer
   Figma: node-id 3-2
   Loaded site-wide via partials/common.ejs (after style.css)
   ============================================================= */

:root {
  --nk-orange: #ff6b1a;
  --nk-orange-soft: rgba(255, 107, 26, 0.3);
  --nk-dark: #161210;
  --nk-dark-2: #1f1a16;
  --nk-ink: #1a1a1a;
  --nk-gray: #929292;
  --nk-gray-light: #bfbfbf;
  --nk-line: #ececec;
  --nk-bg-soft: #f6f6f7;
  --nk-header-h: 72px;
  --nk-container: 1200px;
  --nk-font:
    "Lato", "Noto Sans KR", "Helvetica Neue", "Helvetica",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.nk-container {
  width: 100%;
  max-width: var(--nk-container);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* keep-all = wrap Korean at word boundaries (no mid-word breaks) */
.nk-hero h2,
.nk-hero-desc,
.nk-title,
.nk-subtitle,
.nk-cta-title,
.nk-why-card h3,
.nk-how-card h3 {
  word-break: keep-all;
}

/* =========================================================
   GLOBAL HEADER  (replaces #gn inner)
   ========================================================= */
/* Keep original absolute positioning so the 30+ shared-partial pages
   behave exactly as before (no flow shift). The home page neutralizes
   its own top padding so the hero sits flush beneath the bar. */
#gn.nk-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nk-header-h);
  /* reset legacy #gn padding from style.css that pushed content down */
  padding: 0;
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid var(--nk-line);
  box-shadow: none;
  z-index: 1000;
  font-family: var(--nk-font);
}

/* home: hero starts directly under the absolute header */
main#home {
  padding-top: 0;
  padding-bottom: 0;
}

/* lecture player keeps its dark header (was regressed to white) */
body.mode-lecture #gn.nk-header {
  background: var(--nk-dark);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.mode-lecture #gn.nk-header .nk-logo-word,
body.mode-lecture #gn.nk-header .lecture-title,
body.mode-lecture #gn.nk-header .nk-username,
body.mode-lecture #gn.nk-header .nk-btn-text {
  color: #fff;
}
body.mode-lecture #gn.nk-header .nk-burger span,
body.mode-lecture #gn.nk-header .nk-burger span::before,
body.mode-lecture #gn.nk-header .nk-burger span::after {
  background: #fff;
}

.nk-header .nk-header-inner {
  height: var(--nk-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* logo */
.nk-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.nk-logo img.nk-logo-mark {
  height: 34px;
  width: auto;
  display: block;
}
.nk-logo .nk-logo-word {
  font-size: 23px;
  font-weight: 800;
  color: var(--nk-ink);
  letter-spacing: -0.5px;
  line-height: 1;
}

/* lecture title mode */
.nk-header .lecture-title {
  margin-right: auto;
  font-weight: 700;
  color: var(--nk-ink);
  font-size: 16px;
}

/* primary nav */
.nk-nav {
  display: flex;
  align-items: center;
}
.nk-nav-list {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nk-nav-list > li > a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nk-nav-list > li > a:hover,
.nk-nav-list > li.active > a {
  color: var(--nk-orange);
}

/* right utility area */
.nk-header-util {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nk-user-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nk-user-link img {
  width: 28px;
  height: 28px;
  display: block;
}
.nk-header-util .nk-me {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nk-header-util .nk-me .nk-username {
  font-size: 15px;
  color: var(--nk-ink);
  font-weight: 600;
}
.nk-header-util .nk-btn-text {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
}
.nk-header-util .nk-btn-text:hover {
  color: var(--nk-orange);
}
.nk-header-util .nk-btn-room {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--nk-orange);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* mobile hamburger */
.nk-burger {
  display: none;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nk-burger span,
.nk-burger span::before,
.nk-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: 0.2s;
}
.nk-burger span {
  top: 50%;
  transform: translateY(-50%);
}
.nk-burger span::before {
  top: -8px;
}
.nk-burger span::after {
  top: 8px;
}

#nk-nav-toggle {
  display: none;
}

/* =========================================================
   HERO
   ========================================================= */
.nk-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      120% 140% at 92% 60%,
      rgba(255, 107, 26, 0.55) 0%,
      rgba(98, 47, 19, 0.55) 22%,
      rgba(60, 33, 17, 0.6) 42%,
      rgba(41, 25, 16, 1) 65%,
      var(--nk-dark) 100%
    ),
    var(--nk-dark);
  color: #fff;
  font-family: var(--nk-font);
}
.nk-hero::before {
  /* faint vertical texture lines */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}
.nk-hero-inner {
  position: relative;
  z-index: 2;
  /* top = header height (72px, absolute overlay) + breathing room */
  padding: 168px 24px 120px;
}
.nk-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: #f1d8c6;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 30px;
}
.nk-hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nk-orange);
}
.nk-hero h2 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 26px;
  color: #fff;
}
.nk-hero-desc {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--nk-gray-light);
  margin: 0 0 40px;
  max-width: 620px;
}
.nk-hero-cta {
  display: inline-flex;
  align-items: center;
  background: var(--nk-orange);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 999px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.35);
}
.nk-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 26, 0.45);
}

/* constellation graphic */
.nk-hero-constellation {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  max-width: 820px;
  height: 78%;
  z-index: 1;
  pointer-events: none;
}
.nk-hero-constellation svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================================================
   STATS BAR
   ========================================================= */
.nk-stats {
  background: var(--nk-orange);
  color: #fff;
  font-family: var(--nk-font);
}
.nk-stats-inner {
  display: flex;
  justify-content: space-between;
  padding: 40px 24px;
  gap: 16px;
}
.nk-stat {
  flex: 1;
  text-align: center;
}
.nk-stat .nk-stat-num {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}
.nk-stat .nk-stat-num small {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 2px;
}
.nk-stat .nk-stat-label {
  margin-top: 12px;
  font-size: clamp(12px, 1.1vw, 15px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

/* =========================================================
   SECTION HEADING (shared eyebrow + title)
   ========================================================= */
.nk-section {
  font-family: var(--nk-font);
}
.nk-section-head {
  text-align: center;
}
.nk-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--nk-orange);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.nk-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--nk-ink);
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.3;
}
.nk-title .accent {
  color: var(--nk-orange);
}
.nk-subtitle {
  margin: 16px 0 0;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--nk-gray);
  line-height: 1.6;
}

/* =========================================================
   WHY  (3 columns)
   ========================================================= */
.nk-why {
  background: #fff;
  padding: 100px 0;
}
.nk-why .nk-section-head {
  margin-bottom: 64px;
}
.nk-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.nk-icon-box {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: var(--nk-orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.nk-icon-box img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.nk-icon-box svg {
  width: 42px;
  height: 42px;
}
.nk-why-card h3 {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  color: var(--nk-ink);
  letter-spacing: 1px;
  line-height: 1.35;
  margin: 0 0 18px;
}
.nk-why-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--nk-gray);
  margin: 0;
}
.nk-why-card p b {
  color: var(--nk-ink);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 4px;
}

/* =========================================================
   HOW  (4 step cards, gray bg)
   ========================================================= */
.nk-how {
  background: var(--nk-bg-soft);
  padding: 100px 0;
}
.nk-how .nk-section-head {
  margin-bottom: 60px;
}
.nk-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.nk-how-card {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: 18px;
  padding: 34px 28px 38px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.nk-how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}
.nk-how-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--nk-orange);
  line-height: 1;
  margin-bottom: 22px;
}
.nk-how-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--nk-ink);
  margin: 0 0 14px;
}
.nk-how-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nk-gray);
  margin: 0;
}

/* =========================================================
   REVIEWS  (dark)
   ========================================================= */
.nk-reviews {
  background: var(--nk-dark);
  padding: 100px 0;
}
.nk-reviews .nk-title {
  color: #fff;
}
.nk-reviews .nk-section-head {
  margin-bottom: 56px;
}
.nk-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.nk-review-card {
  background: var(--nk-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 38px 36px;
}
.nk-review-quote {
  font-size: 17px;
  line-height: 1.75;
  color: #e9e4df;
  margin: 0 0 30px;
}
.nk-review-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nk-review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--nk-orange);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nk-review-name {
  font-size: 15px;
  color: var(--nk-gray-light);
  font-weight: 500;
}

/* =========================================================
   CTA
   ========================================================= */
.nk-cta {
  background: #fff;
  padding: 100px 0;
}
.nk-cta-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: var(--nk-ink);
  letter-spacing: -0.5px;
  margin: 0 0 44px;
  line-height: 1.35;
}
.nk-cta-title .accent {
  color: var(--nk-orange);
}
.nk-cta-banner {
  background: var(--nk-orange);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
}
.nk-cta-banner p {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px;
}
.nk-cta-banner .nk-cta-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--nk-orange);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 36px;
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.nk-cta-banner .nk-cta-btn:hover {
  transform: translateY(-2px);
}

/* =========================================================
   GLOBAL FOOTER  (replaces #gf inner)
   ========================================================= */
#gf.nk-footer {
  background: #fff;
  border-top: 1px solid var(--nk-line);
  padding: 56px 0 64px;
  font-family: var(--nk-font);
}
.nk-footer .nk-footer-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.nk-footer .nk-logo img.nk-logo-mark {
  height: 30px;
}
.nk-footer .nk-logo .nk-logo-word {
  font-size: 20px;
}
.nk-footer .nk-footer-desc {
  flex: 1 1 360px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--nk-gray);
  margin: 0;
}
.nk-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 30px 0 22px;
  padding: 24px 0 0;
  border-top: 1px solid var(--nk-line);
}
.nk-footer-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}
.nk-footer-links a:hover {
  color: var(--nk-orange);
}
.nk-footer-info {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: #9a9a9a;
}
.nk-footer-info li {
  display: inline;
  margin-right: 16px;
}
.nk-footer-info .nk-company {
  font-weight: 700;
  color: #555;
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.nk-footer-info a {
  color: #9a9a9a;
  text-decoration: none;
}
.nk-footer-copy {
  margin-top: 18px;
  font-size: 12px;
  color: #b3b3b3;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nk-why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 520px;
    margin: 0 auto;
  }
  .nk-how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nk-reviews-grid {
    grid-template-columns: 1fr;
  }
  .nk-hero-constellation {
    opacity: 0.4;
    width: 70%;
  }
  .nk-hero-inner {
    padding: 132px 24px 88px;
  }
}

@media (max-width: 760px) {
  :root {
    --nk-header-h: 60px;
  }
  .nk-hero-inner {
    padding: 112px 24px 72px;
  }

  /* header → mobile */
  .nk-burger {
    display: block;
  }
  .nk-nav {
    position: absolute;
    top: var(--nk-header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--nk-line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  #nk-nav-toggle:checked ~ .nk-nav {
    max-height: 70vh;
  }
  .nk-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .nk-nav-list > li > a {
    padding: 14px 24px;
    font-size: 16px;
  }
  .nk-header-util .nk-me .nk-username {
    display: none;
  }
  /* mobile: drop the text links, keep the user icon for access */
  .nk-header-util .nk-btn-text {
    display: none;
  }

  /* stats → 2x2 */
  .nk-stats-inner {
    flex-wrap: wrap;
  }
  .nk-stat {
    flex: 0 0 calc(50% - 12px);
    padding: 14px 0;
  }

  .nk-how-grid {
    grid-template-columns: 1fr;
  }
  .nk-why,
  .nk-how,
  .nk-reviews,
  .nk-cta {
    padding: 64px 0;
  }
  .nk-cta-banner {
    padding: 48px 24px;
  }
  .nk-footer-top {
    flex-direction: column;
  }
}

/* =========================================================
   REFERRAL PROGRAM PAGE  (/referral)
   ========================================================= */
.nk-ref .nk-section {
  font-family: var(--nk-font);
}

/* --- HERO --- */
.nk-ref-hero {
  background: #fff;
  padding: 96px 0 72px;
}
.nk-ref-hero .nk-section-head {
  margin-bottom: 8px;
}
.nk-ref-tagline {
  margin: 22px auto 0;
  max-width: 720px;
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--nk-orange);
  font-weight: 600;
}
.nk-ref-hero-visual {
  margin: 48px auto 0;
  max-width: 620px;
  text-align: center;
}
.nk-ref-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- BENEFIT --- */
.nk-ref-benefit {
  background: var(--nk-bg-soft);
  padding: 96px 0;
}
.nk-ref-benefit .nk-section-head {
  margin-bottom: 56px;
}
.nk-ref-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.nk-ref-card {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: 22px;
  padding: 36px 28px 40px;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.nk-ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}
.nk-ref-card-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: #f1f1f1;
  color: var(--nk-ink);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
}
.nk-ref-card-circle {
  width: 190px;
  height: 190px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #ff8a45, var(--nk-orange));
  box-shadow: 0 18px 36px rgba(255, 107, 26, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nk-ref-card-amount {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nk-ref-card-amount small {
  font-size: 20px;
  font-weight: 700;
  margin-left: 2px;
}
.nk-ref-card-role {
  font-size: 21px;
  font-weight: 700;
  color: var(--nk-ink);
  margin: 0 0 12px;
}
.nk-ref-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--nk-gray);
  margin: 0;
}

/* --- MUST CHECK --- */
.nk-ref-check-wrap {
  background: #fff;
  padding: 40px 0 96px;
}
.nk-ref-check {
  max-width: 960px;
  margin: 0 auto;
  border: 1.5px solid var(--nk-orange-soft);
  background: #fff8f4;
  border-radius: 24px;
  padding: 44px 48px;
}
.nk-ref-check-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.nk-ref-check-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nk-orange);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nk-ref-check-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--nk-ink);
  margin: 0;
}
.nk-ref-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.nk-ref-check-col h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--nk-orange);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nk-line);
}
.nk-ref-check-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nk-ref-check-col li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  margin-bottom: 12px;
}
.nk-ref-check-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nk-gray-light);
}
.nk-ref-check-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--nk-line);
}
.nk-ref-check-foot p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nk-gray);
  margin: 0 0 6px;
}

/* --- HOW TO / STEPS --- */
.nk-ref-steps {
  background: var(--nk-bg-soft);
  padding: 96px 0;
}
.nk-ref-steps .nk-section-head {
  margin-bottom: 56px;
}
.nk-ref-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nk-ref-step {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: 20px;
  padding: 34px 30px 36px;
}
.nk-ref-step-num {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--nk-orange);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.nk-ref-step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--nk-ink);
  margin: 0 0 14px;
}
.nk-ref-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nk-gray);
  margin: 0 0 10px;
}
.nk-ref-step-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--nk-orange-soft);
  color: #b5460f;
  font-size: 13px;
  font-weight: 700;
}

/* --- CASH CONVERSION --- */
.nk-ref-cash {
  background: #fff;
  padding: 96px 0;
}
.nk-ref-cash .nk-section-head {
  margin-bottom: 48px;
}
.nk-ref-cash-body {
  max-width: 900px;
  margin: 0 auto;
}
.nk-ref-cash-points {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
.nk-ref-cash-points li {
  padding: 20px 24px 20px 28px;
  background: var(--nk-bg-soft);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
  margin-bottom: 14px;
}
.nk-ref-cash-points li b {
  color: var(--nk-orange);
  font-weight: 700;
}
.nk-ref-cash-figure {
  margin: 0;
  text-align: center;
}
.nk-ref-cash-figure figcaption {
  font-size: 16px;
  font-weight: 700;
  color: var(--nk-ink);
  text-align: left;
  margin-bottom: 14px;
}
.nk-ref-cash-figure img {
  width: 100%;
  max-width: 720px;
  height: auto;
}
.nk-ref-cash-example {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.nk-ref-cash-example-point,
.nk-ref-cash-example-cash {
  padding: 22px 34px;
  border-radius: 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nk-ref-cash-example-point {
  background: var(--nk-orange);
  color: #fff;
}
.nk-ref-cash-example-cash {
  background: var(--nk-bg-soft);
  color: var(--nk-ink);
  border: 1px solid var(--nk-line);
}
.nk-ref-cash-example-arrow {
  font-size: 28px;
  font-weight: 700;
  color: var(--nk-gray);
}
.nk-ref-cash-example-note {
  margin: 0;
  font-size: 14px;
  color: var(--nk-gray);
  text-align: center;
}

/* --- NOTICE --- */
.nk-ref-caution {
  background: var(--nk-bg-soft);
  padding: 96px 0;
}
.nk-ref-caution .nk-section-head {
  margin-bottom: 40px;
}
.nk-ref-caution-list {
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.nk-ref-caution-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 14px;
}
.nk-ref-caution-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--nk-orange);
  font-weight: 700;
}

/* --- CTA (reuses .nk-cta from home) --- */
.nk-ref .nk-cta {
  padding: 96px 0;
}

/* --- responsive --- */
@media (max-width: 960px) {
  .nk-ref-benefit-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .nk-ref-step-grid {
    grid-template-columns: 1fr;
  }
  .nk-ref-check-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .nk-ref-check {
    padding: 36px 28px;
  }
}
@media (max-width: 760px) {
  .nk-ref-hero {
    padding: 64px 0 48px;
  }
  .nk-ref-benefit,
  .nk-ref-steps,
  .nk-ref-cash,
  .nk-ref-caution {
    padding: 64px 0;
  }
  .nk-ref-check-wrap {
    padding: 24px 0 64px;
  }
  .nk-ref .nk-cta {
    padding: 64px 0;
  }
}

/* =============================================================
   눈끔 Redesign — My Page (마이페이지) content
   회원정보 추천인 코드 / 적립금 전환
   Scoped to .nk-me inside existing .section-view (side_nav 유지)
   ============================================================= */

.nk-me {
  font-family: var(--nk-font);
  color: var(--nk-ink);
}

/* --- 회원정보: 추천인 코드 강조 행 (Figma node 113-223) --- */
.nk-me-refcode-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid var(--nk-orange);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.nk-me-refcode-value {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nk-ink);
}
.nk-me-refcode-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--nk-gray);
}

/* --- 적립금 전환 (Figma node 116-310) --- */
.nk-me-balance-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--nk-bg-soft);
  border-radius: 12px;
}
.nk-me-balance-label {
  font-size: 0.95rem;
  color: #555;
}
.nk-me-balance-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nk-ink);
}
.nk-me-balance-min {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #666;
  background: #fff;
  border-radius: 999px;
}

.nk-me-field-label {
  display: block;
  margin: 20px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
}
.nk-me-amount-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.nk-me-amount-input {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.nk-me-amount-input input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  font-size: 1.05rem;
  border: 1px solid var(--nk-line);
  border-radius: 8px;
  box-sizing: border-box;
}
.nk-me-amount-input .unit {
  position: absolute;
  right: 16px;
  color: var(--nk-gray);
  pointer-events: none;
}
.nk-me-btn-outline {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 18px;
  font-size: 0.95rem;
  color: var(--nk-ink);
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: 8px;
  cursor: pointer;
}
.nk-me-btn-outline:hover {
  border-color: var(--nk-orange);
  color: var(--nk-orange);
}
.nk-me-preview {
  margin-top: 8px;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--nk-orange);
}

.nk-me-notice-title {
  margin: 32px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}
.nk-me-notice {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #666;
}
.nk-me-notice li {
  list-style: disc;
  margin-bottom: 4px;
}

.nk-me-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 8px;
  font-size: 0.9rem;
  color: #444;
  cursor: pointer;
}
.nk-me-agree input {
  margin-top: 2px;
}

.nk-me-btn-primary {
  width: 100%;
  height: 54px;
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--nk-orange);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.nk-me-btn-primary:disabled {
  background: var(--nk-gray-light);
  cursor: not-allowed;
}

.nk-me-banner {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #fff5f0;
  border: 1px solid var(--nk-orange-soft);
  border-radius: 10px;
  font-size: 0.92rem;
  color: #444;
}
.nk-me-banner a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  color: #fff;
  background: var(--nk-orange);
  border-radius: 8px;
  font-size: 0.9rem;
}

/* --- 공용: 마이페이지 내역 테이블 --- */
.nk-me-subtitle {
  margin: 36px 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nk-ink);
}
.nk-me-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.nk-me-table thead th {
  padding: 10px 8px;
  border-bottom: 2px solid var(--nk-line);
  color: #555;
  font-weight: 700;
  text-align: left;
}
.nk-me-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--nk-line);
}
.nk-me-table .num {
  text-align: right;
}
.nk-me-table .center {
  text-align: center;
}
.nk-me-empty {
  padding: 24px 0;
  color: var(--nk-gray);
}
.nk-me-badge {
  font-weight: 700;
}

/* --- 쿠폰 및 적립금 (Figma node 263-1728) --- */
.nk-me-sec-title {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nk-ink);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nk-ink);
}

.nk-me-points-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.nk-me-points-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 260px;
  padding: 22px 28px;
  background: var(--nk-bg-soft);
  border-radius: 10px;
}
.nk-me-points-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nk-ink);
  padding-right: 20px;
  border-right: 1px solid var(--nk-gray-light);
}
.nk-me-points-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nk-ink);
}
.nk-me-btn-refund {
  flex: 0 0 auto;
  padding: 16px 30px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--nk-orange);
  border-radius: 10px;
  white-space: nowrap;
}
.nk-me-btn-refund:hover {
  filter: brightness(0.96);
  color: #fff;
}

.nk-me-ticket-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.nk-me-ticket-item {
  width: calc(50% - 20px);
  min-width: 260px;
}
.nk-me-ticket {
  position: relative;
  display: flex;
  min-height: 140px;
  background: var(--nk-bg-soft);
  border-radius: 12px;
}
.nk-me-ticket-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 26px;
}
.nk-me-ticket-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--nk-gray-light);
}
.nk-me-ticket-amount {
  margin: 8px 0 6px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--nk-ink);
}
.nk-me-ticket-type {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nk-orange);
}
.nk-me-ticket-stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  border-left: 2px dashed #d7d7d7;
}
.nk-me-ticket-stub span {
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nk-gray-light);
}
/* 티켓 절취선 노치(위·아래 원형 컷아웃) — 페이지 배경색(#fff)과 동일 */
.nk-me-ticket-stub::before,
.nk-me-ticket-stub::after {
  content: "";
  position: absolute;
  left: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.nk-me-ticket-stub::before {
  top: -9px;
}
.nk-me-ticket-stub::after {
  bottom: -9px;
}
.nk-me-ticket.is-inactive {
  opacity: 0.55;
}
.nk-me-ticket-stamp {
  position: absolute;
  top: 14px;
  right: 66px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #888;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cfcfcf;
  border-radius: 6px;
}
.nk-me-ticket-note {
  margin: 10px 2px 0;
  font-size: 0.82rem;
  color: var(--nk-gray);
}

@media (max-width: 760px) {
  .nk-me-ticket-item {
    width: 100%;
  }
  .nk-me-btn-refund {
    width: 100%;
    text-align: center;
  }
}
