
:root{
  --blue:#0d63f3; --blue2:#2f7cff; --ink:#111827; --muted:#7b8496;
  --line:#e6eaf0; --soft:#f7f9fc; --shadow:0 10px 30px rgba(32,56,85,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,"Noto Sans KR",sans-serif;color:var(--ink);background:#fff}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.container{width:min(1360px,calc(100% - 48px));margin:auto}
.topbar{height:74px;border-bottom:1px solid var(--line);display:flex;align-items:center;background:#fff;position:sticky;top:0;z-index:30}
.nav{display:flex;align-items:center;justify-content:space-between;width:100%}
.logo{font-weight:900;font-size:23px;letter-spacing:.5px;color:#16284c;margin-left:34px}.logo b{color:var(--blue)}
.menu{display:flex;gap:34px;font-size:14px;font-weight:700;color:#354155}
.menu a.active{color:var(--blue);position:relative}.menu a.active:after{content:"";position:absolute;left:0;right:0;bottom:-26px;height:3px;background:var(--blue);border-radius:4px}
.nav-actions{display:flex;align-items:center}
.header-search{width:250px;height:40px;border:1px solid var(--line);border-radius:22px;display:grid;grid-template-columns:1fr 42px;background:#fff;overflow:hidden}
.header-search input{min-width:0;border:0;outline:0;padding:0 4px 0 16px;color:#354155;background:transparent}
.header-search input::placeholder{color:#a0a8b6}
.header-search button{border:0;background:#fff;cursor:pointer;font-size:20px;color:#354155}
.hero{background:linear-gradient(180deg,#f6f9ff 0,#fff 100%);padding:34px 0 22px}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:24px}
.eyebrow{font-size:28px;font-weight:900;line-height:1.25;margin:0}.eyebrow .blue{display:block;color:var(--blue);font-size:37px}
.hero p{color:#5e6a7f;margin:12px 0 0;font-size:15px}
.coupon-art{height:160px;display:flex;align-items:center;justify-content:center;position:relative}
.ticket{width:230px;height:110px;border-radius:24px;background:linear-gradient(135deg,#4a8cff,#a9c9ff);transform:rotate(-8deg);display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;font-weight:900;box-shadow:0 18px 35px rgba(13,99,243,.18)}
.ticket:before,.ticket:after{content:"";position:absolute;width:26px;height:26px;border-radius:50%;background:#f8fbff;top:42px}.ticket:before{left:-13px}.ticket:after{right:-13px}
.filterbar{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;grid-template-columns:150px 150px 150px 1fr 130px;gap:10px;box-shadow:0 5px 20px rgba(50,65,90,.04)}
.filterbar select,.filterbar input,.filterbar button{height:44px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 14px;color:#566174}
.filterbar button{cursor:pointer}.searchwrap{position:relative}.searchwrap input{width:100%}
.section{padding:26px 0 8px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-head h2{font-size:19px;margin:0}.meta{font-size:12px;color:#8490a3}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px 12px 16px;box-shadow:0 8px 22px rgba(37,57,86,.04);text-align:center;transition:.2s}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}

.coupon-media{width:290px;height:115px;max-width:100%;margin:0 auto 12px;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f8fafc}
.coupon-image{display:block;width:290px;height:115px;max-width:100%;object-fit:contain}
.coupon-media-placeholder{border:1px solid #edf0f5}
.coupon-media-placeholder .brand{margin:0}
.card-facts{margin:8px 0 12px;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5;padding:8px 0}
.fact-row{display:grid;grid-template-columns:68px 1fr;gap:8px;align-items:center;text-align:left;min-height:28px;font-size:12px}
.fact-row span{color:#8a94a6}
.fact-row strong{color:#253044;font-size:13px;font-weight:800}

.brand{width:66px;height:66px;border-radius:20px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:24px;color:#fff}
.card h3{margin:6px 0 8px;font-size:18px}.benefit{font-weight:900;color:var(--blue);font-size:18px;margin:0 0 7px}.period{font-size:12px;color:#7c8799;margin-bottom:12px}
.codebox{display:grid;grid-template-columns:1fr 54px;border:1px dashed #b9cff7;background:#fbfdff;border-radius:9px;overflow:hidden;margin-bottom:9px;height:39px}
.code{display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;letter-spacing:.2px}.copy{border:0;border-left:1px solid #dce7fb;background:#fff;color:#4e5c73;cursor:pointer}.copy.copied{color:var(--blue);font-weight:900}
.primary{display:flex;align-items:center;justify-content:center;height:42px;background:var(--blue);color:#fff;border-radius:8px;font-size:13px;font-weight:800;margin-bottom:8px}.secondary{display:flex;align-items:center;justify-content:center;height:37px;border:1px solid var(--line);border-radius:8px;font-size:13px;color:#38455a}
.featurebar{margin:30px 0 40px;border:1px solid var(--line);border-radius:15px;padding:22px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;background:#fff}
.feature{display:flex;gap:12px;align-items:center;padding-right:14px;border-right:1px solid var(--line)}.feature:last-child{border-right:0}.ficon{width:36px;height:36px;border:2px solid #8ab2ff;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--blue)}.feature b{display:block;font-size:13px}.feature span{font-size:11px;color:#808ca0;line-height:1.45}
.seo-placeholder{margin:30px 0 60px;padding:28px;border-radius:16px;background:#f8fafc;border:1px solid var(--line)}.seo-placeholder h2{margin-top:0}.seo-placeholder p{color:#5d687a;line-height:1.8}
.footer{border-top:1px solid var(--line);padding:28px 0 50px;color:#8993a4;font-size:12px}

/* detail */
.detail-hero{padding:36px 0 20px;background:linear-gradient(180deg,#f7faff,#fff)}
.breadcrumb{font-size:12px;color:#8a95a7;margin-bottom:16px}
.detail-card{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);padding:28px;display:grid;grid-template-columns:260px 1fr;gap:30px;align-items:center}
.detail-visual{height:240px;border-radius:18px;background:linear-gradient(145deg,#eff5ff,#fff);display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e7eefb}
.detail-visual .brand{width:104px;height:104px;font-size:38px;border-radius:28px;margin-bottom:14px}.detail-visual h1{margin:0;font-size:25px}
.detail-info h2{font-size:30px;margin:0 0 6px}.detail-info .bigbenefit{font-size:24px;color:var(--blue);font-weight:900;margin:0 0 14px}.detail-code{display:grid;grid-template-columns:1fr 74px;border:1px dashed #abc8fb;border-radius:12px;overflow:hidden;height:58px;margin:14px 0}.detail-code .code{font-size:18px}.detail-actions{display:grid;grid-template-columns:1.4fr .8fr;gap:10px}.detail-actions .primary,.detail-actions .secondary{height:48px;margin:0}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.info-box{border:1px solid var(--line);border-radius:14px;padding:20px}.info-box h3{margin:0 0 12px}.info-box ul,.info-box ol{margin:0;padding-left:18px;color:#5c6778;line-height:1.8;font-size:14px}
.rank-section{padding:24px 0}.rank-section .grid{grid-template-columns:repeat(4,1fr)}
.rank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:25px;border-radius:20px;background:#eef4ff;color:var(--blue);font-size:12px;font-weight:900;margin-bottom:8px}
.note{font-size:12px;color:#8b95a6;margin-top:8px}
@media(max-width:980px){.grid,.rank-section .grid{grid-template-columns:repeat(2,1fr)}.filterbar{grid-template-columns:1fr 1fr}.filterbar .searchwrap{grid-column:1/-1}.hero-grid{grid-template-columns:1fr}.coupon-art{display:none}.detail-card{grid-template-columns:1fr}.featurebar{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.container{width:min(100% - 24px,1180px)}.menu{display:none}.mypage{display:none}.hero{padding-top:24px}.eyebrow{font-size:22px}.eyebrow .blue{font-size:31px}.filterbar{grid-template-columns:1fr}.filterbar .searchwrap{grid-column:auto}.grid,.rank-section .grid{grid-template-columns:1fr}.featurebar{grid-template-columns:1fr}.feature{border-right:0;border-bottom:1px solid var(--line);padding-bottom:12px}.feature:last-child{border-bottom:0}.detail-card{padding:18px}.info-grid{grid-template-columns:1fr}.detail-actions{grid-template-columns:1fr}}

.topbar .container{width:min(1240px,calc(100% - 48px))}
@media(max-width:980px){
  .topbar .container{width:min(100% - 28px,1240px)}
  .logo{margin-left:10px}
  .header-search{width:210px}
}
@media(max-width:640px){
  .logo{margin-left:0;font-size:19px}
  .header-search{width:160px;height:38px}
  .header-search input{padding-left:12px;font-size:12px}
  .coupon-media{width:290px;height:115px}
}


/* ===== Detail page v3 adjustments ===== */
.detail-card{
  grid-template-columns:320px minmax(0,1fr);
  gap:34px;
  align-items:center;
}
.detail-visual{
  width:320px;
  height:165px;
  padding:24px 14px;
  border-radius:16px;
  background:#f8fbff;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e7eefb;
}
.detail-coupon-image{
  display:block;
  width:290px;
  height:115px;
  object-fit:contain;
  border-radius:0;
}
.detail-image-placeholder{
  width:290px;
  height:115px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--placeholder-accent),#ffffff);
  border:1px solid rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
}
.placeholder-brand{
  font-size:30px;
  line-height:1;
  font-weight:900;
  color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.15);
}
.placeholder-name{
  font-size:13px;
  font-weight:800;
  color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.18);
}
.detail-info{
  min-width:0;
  padding-right:2px;
}
.detail-info h2{
  margin-top:0;
}

/* No longer show the old logo/title rules inside detail image area */
.detail-visual .brand,
.detail-visual h1{
  display:none;
}

/* Center both information blocks */
.info-box{
  text-align:center;
}
.info-box h3{
  text-align:center;
  margin-bottom:14px;
}
.info-lines{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.info-lines p{
  margin:0;
  font-size:14px;
  color:#5c6778;
}
.info-lines p span{
  margin-right:8px;
  color:#7c8799;
}
.info-lines p strong{
  color:#344054;
}
.coupon-number-line{
  width:100%;
  text-align:center;
}
.coupon-number-line strong{
  color:#e11d2e !important;
  font-size:16px;
  font-weight:900 !important;
  letter-spacing:.3px;
}
.usage-info-box ol{
  display:inline-block;
  text-align:left;
  margin:0 auto;
  padding-left:22px;
  list-style-position:outside;
}
.usage-info-box li{
  margin:2px 0;
}
.rank-section .section-head{
  justify-content:flex-start;
}

@media(max-width:980px){
  .detail-card{
    grid-template-columns:1fr;
  }
  .detail-visual{
    width:100%;
    max-width:360px;
    margin:0 auto;
  }
}
@media(max-width:640px){
  .detail-visual{
    width:100%;
    height:auto;
    min-height:150px;
    padding:18px 10px;
  }
  .detail-coupon-image,
  .detail-image-placeholder{
    width:290px;
    height:115px;
    max-width:100%;
  }
}


/* ===== Detail page v4: larger coupon image / smaller right text ===== */
.detail-card{
  grid-template-columns:440px minmax(0,1fr);
  gap:28px;
  padding:24px 28px;
}
.detail-visual{
  width:440px;
  height:200px;
  padding:22px;
}
.detail-coupon-image{
  width:380px;
  height:auto;
  max-height:151px;
  object-fit:contain;
}
.detail-image-placeholder{
  width:380px;
  height:151px;
  max-width:100%;
}
.detail-info h2{
  font-size:24px;
  margin-bottom:4px;
}
.detail-info .bigbenefit{
  font-size:21px;
  margin-bottom:10px;
}
.detail-info .period{
  font-size:11px;
  margin-bottom:8px;
}
.detail-code{
  height:52px;
  margin:10px 0 12px;
}
.detail-code .code{
  font-size:16px;
}
.detail-code .copy{
  font-size:12px;
}
.detail-actions .primary,
.detail-actions .secondary{
  height:44px;
  font-size:12px;
}
.detail-info .note{
  font-size:11px;
  margin-top:7px;
}

@media(max-width:980px){
  .detail-card{
    grid-template-columns:1fr;
  }
  .detail-visual{
    width:100%;
    max-width:480px;
    margin:0 auto;
  }
  .detail-coupon-image{
    width:380px;
    max-width:100%;
  }
}
@media(max-width:640px){
  .detail-card{
    padding:18px;
  }
  .detail-visual{
    width:100%;
    height:auto;
    min-height:165px;
    padding:16px 8px;
  }
  .detail-coupon-image,
  .detail-image-placeholder{
    width:100%;
    max-width:380px;
    height:auto;
    aspect-ratio:290 / 115;
  }
  .detail-info h2{
    font-size:21px;
  }
  .detail-info .bigbenefit{
    font-size:19px;
  }
}


/* ===== Detail page v5: larger image / less empty space / full-width direct button ===== */
.detail-card{
  grid-template-columns:520px minmax(0,1fr);
  gap:24px;
  padding:20px 24px;
}
.detail-visual{
  width:520px;
  height:225px;
  padding:18px 12px;
  background:#f8fbff;
}
.detail-coupon-image{
  width:460px;
  height:auto;
  max-height:183px;
  object-fit:contain;
}
.detail-image-placeholder{
  width:460px;
  height:183px;
  max-width:100%;
}
.detail-info{
  padding:4px 0;
}
.detail-info h2{
  font-size:23px;
}
.detail-info .bigbenefit{
  font-size:20px;
}
.detail-code{
  height:50px;
  margin:9px 0 10px;
}
.detail-actions{
  display:block;
}
.detail-actions .primary{
  width:100%;
  height:46px;
  margin:0;
}
.detail-actions .secondary{
  display:none !important;
}
.detail-info .note{
  margin-top:6px;
}

@media(max-width:1180px){
  .detail-card{
    grid-template-columns:460px minmax(0,1fr);
  }
  .detail-visual{
    width:460px;
  }
  .detail-coupon-image,
  .detail-image-placeholder{
    width:420px;
    max-width:100%;
  }
}
@media(max-width:980px){
  .detail-card{
    grid-template-columns:1fr;
  }
  .detail-visual{
    width:100%;
    max-width:560px;
    height:auto;
    min-height:210px;
    margin:0 auto;
  }
  .detail-coupon-image,
  .detail-image-placeholder{
    width:460px;
    max-width:100%;
    height:auto;
    aspect-ratio:290 / 115;
  }
}
@media(max-width:640px){
  .detail-card{
    padding:16px;
  }
  .detail-visual{
    min-height:170px;
    padding:12px 6px;
  }
}


/* ===== Detail page v6: typography consistency + centered top info ===== */
html, body, button, input, select, textarea, a{
  font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;
}

/* Top detail text block: center the circled title/benefit/period area */
.detail-info > h2,
.detail-info > .bigbenefit,
.detail-info > .period{
  text-align:center;
}
.detail-info > h2{
  font-size:18px;
  line-height:1.35;
  font-weight:800;
  margin:0 0 7px;
}
.detail-info > .bigbenefit{
  font-size:18px;
  line-height:1.35;
  font-weight:900;
  margin:0 0 7px;
  color:var(--blue);
}
.detail-info > .period{
  font-size:12px;
  line-height:1.45;
  color:#7c8799;
  margin:0 0 10px;
}

/* Make detail-page ranking cards match the main index cards */
.detail-rank-card{
  padding:14px 12px 16px;
  text-align:center;
}
.detail-rank-card .rank-badge{
  margin:0 auto 8px;
}
.detail-rank-card .coupon-media{
  width:290px;
  height:115px;
  max-width:100%;
  margin:0 auto 12px;
}
.detail-rank-card .coupon-media-placeholder .brand{
  width:66px;
  height:66px;
  border-radius:20px;
  margin:0;
  font-size:24px;
}
.detail-rank-card h3{
  margin:6px 0 8px;
  font-size:18px;
  line-height:1.35;
  font-weight:800;
}
.detail-rank-card .card-facts{
  margin:8px 0 12px;
  border-top:1px solid #eef1f5;
  border-bottom:1px solid #eef1f5;
  padding:8px 0;
}
.detail-rank-card .fact-row{
  grid-template-columns:68px 1fr;
  min-height:28px;
  font-size:12px;
}
.detail-rank-card .fact-row span{
  color:#8a94a6;
}
.detail-rank-card .fact-row strong{
  color:#253044;
  font-size:13px;
  font-weight:800;
}
.detail-rank-card .codebox{
  margin-bottom:9px;
}
.detail-rank-card .primary{
  font-size:13px;
  font-weight:800;
}
.detail-rank-card .secondary{
  font-size:13px;
}

/* Keep the top info visually centered even when the right column is wide */
.detail-info{
  display:flex;
  flex-direction:column;
  justify-content:center;
}


/* =========================================================
   v7 - 메인 + 상세페이지 하단 쿠폰카드 전용 수정
   상세페이지 상단 영역에는 적용하지 않음
   ========================================================= */

/* 카드 전체 여백을 조금 더 타이트하게 */
.coupon-card{
  padding:14px 12px 14px;
}

/* 이미지 290x115 유지 */
.coupon-card .coupon-media{
  width:290px;
  height:115px;
  max-width:100%;
  margin:0 auto 10px;
  border-radius:10px;
}
.coupon-card .coupon-image{
  width:290px;
  height:115px;
  max-width:100%;
  object-fit:contain;
}

/* 사이트명 */
.coupon-card h3{
  margin:5px 0 9px;
  font-size:18px;
  line-height:1.3;
  font-weight:800;
}

/* 혜택 / 사용기간 : 짧은 2칸형 */
.coupon-card .card-facts{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:7px !important;
  margin:0 0 10px !important;
  padding:0 !important;
  border:0 !important;
}

.coupon-card .fact-row{
  position:relative;
  display:grid !important;
  grid-template-columns:27px minmax(0,1fr) !important;
  grid-template-rows:auto auto !important;
  column-gap:6px !important;
  row-gap:1px !important;
  align-items:center !important;
  min-height:54px !important;
  padding:7px 7px !important;
  border:1px solid #dfe8f7 !important;
  border-radius:9px !important;
  background:#f8fbff !important;
  text-align:left !important;
}

/* 간단한 블루 라인 아이콘 느낌 */
.coupon-card .fact-row::before{
  grid-column:1;
  grid-row:1 / 3;
  width:25px;
  height:25px;
  border-radius:50%;
  border:1px solid #d5e3fb;
  background:#fff;
  color:#0d63f3;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  box-sizing:border-box;
}
.coupon-card .fact-row:nth-child(1)::before{
  content:"✦";
}
.coupon-card .fact-row:nth-child(2)::before{
  content:"▣";
}

.coupon-card .fact-row span{
  grid-column:2;
  grid-row:1;
  margin:0 !important;
  color:#6f7c91 !important;
  font-size:10.5px !important;
  line-height:1.2 !important;
  white-space:nowrap;
}

.coupon-card .fact-row strong{
  grid-column:2;
  grid-row:2;
  margin:0 !important;
  color:#0d63f3 !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 쿠폰번호와 버튼도 카드가 길어 보이지 않게 살짝 압축 */
.coupon-card .codebox{
  height:38px !important;
  margin:0 0 8px !important;
}
.coupon-card .codebox .code{
  font-size:11.5px !important;
}
.coupon-card .copy{
  font-size:12px !important;
}
.coupon-card .primary{
  height:41px !important;
  margin-bottom:7px !important;
  font-size:12.5px !important;
}
.coupon-card .secondary{
  height:35px !important;
  font-size:12px !important;
}

/* 상세페이지 하단 순위 카드도 완전히 동일한 카드 스타일 */
.detail-rank-card .card-facts{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:7px !important;
  margin:0 0 10px !important;
  padding:0 !important;
  border:0 !important;
}
.detail-rank-card .fact-row{
  min-height:54px !important;
}
.detail-rank-card .rank-badge{
  margin:0 auto 7px !important;
}

/* 모바일에서는 두 칸 유지하되 아주 좁으면 세로로 */
@media(max-width:420px){
  .coupon-card .card-facts{
    grid-template-columns:1fr !important;
  }
  .coupon-card .fact-row{
    min-height:50px !important;
  }
}

/* ===== v8: benefit emphasis ===== */
.coupon-card .fact-row strong,
.detail-rank-card .fact-row strong{
  color:#111827 !important;
}

.coupon-card .fact-row:nth-child(1) strong,
.detail-rank-card .fact-row:nth-child(1) strong{
  color:#e11d2e !important;
  font-weight:900 !important;
}

.coupon-card .fact-row:nth-child(2) strong,
.detail-rank-card .fact-row:nth-child(2) strong{
  color:#111827 !important;
  font-weight:800 !important;
}


/* ===== v9 menu + SEO content ===== */
.menu{gap:24px;font-size:13px}
.page-kicker,.seo-kicker{font-size:12px;font-weight:900;letter-spacing:.12em;color:#0d63f3;margin-bottom:9px}
.subpage-hero{padding:44px 0 34px;background:linear-gradient(180deg,#f6f9ff 0,#fff 100%);border-bottom:1px solid #eef2f7}
.subpage-hero .breadcrumb{margin-bottom:18px}
.subpage-hero h1{font-size:34px;line-height:1.25;margin:0 0 12px}
.subpage-hero p{max-width:820px;color:#5d687a;line-height:1.75;margin:0}
.text-link{font-size:13px;color:#0d63f3;font-weight:800}

.seo-content-section{margin:42px 0 70px;border-top:1px solid #eef2f7;padding-top:42px}
.seo-content-section>h2{font-size:27px;line-height:1.35;margin:0 0 14px}
.seo-lead{font-size:15px;line-height:1.9;color:#526074;max-width:980px;margin:0 0 26px}
.seo-check-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:26px 0 36px}
.seo-check-card{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:18px;min-height:145px}
.seo-check-no{display:inline-flex;align-items:center;justify-content:center;width:34px;height:26px;border-radius:16px;background:#eef4ff;color:#0d63f3;font-size:11px;font-weight:900;margin-bottom:11px}
.seo-check-card h3{font-size:16px;margin:0 0 8px}
.seo-check-card p{font-size:13px;line-height:1.7;color:#697589;margin:0}
.seo-copy-wrap{max-width:980px}
.seo-copy-section{margin:0 0 28px}
.seo-copy-section h3{font-size:20px;margin:0 0 11px}
.seo-copy-section p{font-size:14px;line-height:1.95;color:#536074;margin:0 0 11px}
.seo-checklist-box{margin:34px 0;padding:24px;border:1px solid #e1e7f0;border-radius:16px;background:#f9fbfd}
.seo-checklist-box h2{font-size:21px;margin:0 0 15px}
.seo-checklist-box ul{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 30px;margin:0;padding-left:20px}
.seo-checklist-box li{font-size:14px;color:#475569;line-height:1.65}
.seo-faq{margin-top:38px}
.seo-faq>h2{font-size:24px;margin:0 0 16px}
.faq-item{padding:18px 0;border-bottom:1px solid #e9edf3}
.faq-item h3{font-size:16px;margin:0 0 7px}
.faq-item p{font-size:14px;line-height:1.8;color:#596579;margin:0}
.seo-related-links{margin-top:26px;padding:18px 20px;border-radius:14px;background:#f6f9ff;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.seo-related-links strong{font-size:13px}
.seo-related-links a{font-size:13px;color:#0d63f3;font-weight:800;margin-right:14px}
.subpage-coupon-list{padding-top:34px}

/* detail H1: keep former H2 appearance */
.detail-info h1{font-size:23px;margin:0 0 4px;line-height:1.3;font-weight:900}

/* Search remains useful on every page */
@media(max-width:1180px){
  .menu{gap:14px;font-size:12px}
  .header-search{width:210px}
}
@media(max-width:980px){
  .seo-check-grid{grid-template-columns:repeat(2,1fr)}
  .seo-checklist-box ul{grid-template-columns:1fr}
}
@media(max-width:640px){
  .subpage-hero{padding:28px 0 24px}
  .subpage-hero h1{font-size:26px}
  .seo-content-section{margin-top:30px;padding-top:30px}
  .seo-content-section>h2{font-size:23px}
  .seo-check-grid{grid-template-columns:1fr}
}


/* ===== v10: SEO 먼저, 쿠폰랭크는 하단 ===== */
.seo-bottom-rank{
  margin-top:56px;
  padding-top:42px;
  border-top:1px solid #e8edf4;
}
.seo-bottom-rank .section-head{
  align-items:flex-end;
  margin-bottom:10px;
}
.seo-bottom-rank .section-head h2{
  margin:0;
  font-size:24px;
}
.rank-intro{
  max-width:860px;
  margin:0 0 22px;
  color:#667085;
  font-size:14px;
  line-height:1.75;
}
.seo-bottom-rank .grid{
  margin-top:18px;
}
@media(max-width:640px){
  .seo-bottom-rank{
    margin-top:40px;
    padding-top:30px;
  }
}


/* ===== v11: 사이트명 무료쿠폰 표기 + 상세 상단/혜택안내 정렬 ===== */

/* 메인/랭킹 카드 사이트명: OOO 무료쿠폰 */
.coupon-card h3,
.detail-rank-card h3{
  word-break:keep-all;
  letter-spacing:-0.02em;
}

/* 상세페이지 상단 제목을 혜택 위 가운데 정렬 */
.detail-info{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.detail-info h1,
.detail-info h2{
  width:100%;
  margin:0 0 8px;
  text-align:center !important;
  font-size:24px;
  line-height:1.35;
  font-weight:900;
}

/* 상단 혜택/기간도 제목 아래에서 가운데 정렬 유지 */
.detail-info .bigbenefit{
  width:100%;
  text-align:center !important;
  margin:0 0 6px;
}
.detail-info .period{
  width:100%;
  text-align:center !important;
  margin:0 0 12px;
}

/* 혜택 안내 박스 좌측 라벨 정렬 */
.info-lines{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.info-lines p{
  min-width:260px;
  text-align:left;
}
.info-lines p span{
  display:inline-block;
  width:72px;
  text-align:left;
  color:#7c8799;
}
.info-lines p strong{
  display:inline-block;
  min-width:120px;
  text-align:left;
}

/* 모바일에서 제목 줄바꿈 대응 */
@media(max-width:640px){
  .detail-info h1,
  .detail-info h2{
    font-size:20px;
  }
  .info-lines p{
    min-width:220px;
  }
  .info-lines p span{
    width:66px;
  }
}


/* ===== v12: 상세페이지 상단 크기 복구 + 혜택안내 정렬 오류 수정 ===== */

/* v11의 align-items:center 때문에 상단 쿠폰번호/버튼 폭이 줄어든 문제 복구 */
.detail-info{
  align-items:stretch !important;
}

/* 제목/혜택/기간만 가운데 정렬 */
.detail-info h1,
.detail-info h2,
.detail-info .bigbenefit,
.detail-info .period{
  width:100% !important;
  text-align:center !important;
}

/* 쿠폰번호 영역은 오른쪽 정보칸 전체 폭 사용 */
.detail-info .detail-code{
  width:100% !important;
  min-width:0 !important;
  height:50px !important;
  margin:9px 0 10px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 74px !important;
  align-self:stretch !important;
}

.detail-info .detail-code .code{
  font-size:16px !important;
  font-weight:900 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.detail-info .detail-code .copy{
  width:74px !important;
  font-size:12px !important;
}

/* 사이트 바로가기 버튼도 다시 전체 폭 */
.detail-info .detail-actions{
  width:100% !important;
  display:block !important;
  align-self:stretch !important;
}

.detail-info .detail-actions .primary{
  width:100% !important;
  height:46px !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:12px !important;
  font-weight:800 !important;
}

/* 안내문 역시 우측 정보 영역 폭에 맞춤 */
.detail-info .note{
  width:100% !important;
  text-align:left !important;
}

/* 혜택 안내 3개 행을 같은 시작점/폭으로 정렬 */
.benefit-info-box .info-lines{
  align-items:center !important;
}

.benefit-info-box .info-lines p,
.benefit-info-box .info-lines .coupon-number-line{
  width:270px !important;
  min-width:270px !important;
  max-width:100% !important;
  margin:0 !important;
  display:grid !important;
  grid-template-columns:78px minmax(0,1fr) !important;
  align-items:center !important;
  gap:8px !important;
  text-align:left !important;
}

.benefit-info-box .info-lines p span{
  width:auto !important;
  margin:0 !important;
  text-align:left !important;
}

.benefit-info-box .info-lines p strong{
  min-width:0 !important;
  width:auto !important;
  text-align:left !important;
}

/* 쿠폰번호 행만 따로 가운데로 빠지던 기존 스타일 무효화 */
.benefit-info-box .coupon-number-line{
  text-align:left !important;
}

.benefit-info-box .coupon-number-line strong{
  color:#e11d2e !important;
  font-size:16px !important;
  font-weight:900 !important;
  letter-spacing:.2px !important;
  text-align:left !important;
}

@media(max-width:640px){
  .benefit-info-box .info-lines p,
  .benefit-info-box .info-lines .coupon-number-line{
    width:230px !important;
    min-width:0 !important;
    grid-template-columns:70px minmax(0,1fr) !important;
  }
}


/* ===== v14 custom coupon popup ===== */
body.modal-open{
  overflow:hidden;
}
.coupon-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.coupon-modal.is-open{
  display:flex;
}
.coupon-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(2px);
}
.coupon-modal__dialog{
  position:relative;
  z-index:1;
  width:min(420px,calc(100vw - 32px));
  background:#fff;
  border:1px solid #e4e9f2;
  border-radius:20px;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
  padding:30px 28px 24px;
  text-align:center;
  animation:couponModalIn .18s ease-out;
}
.coupon-modal__icon{
  width:48px;
  height:48px;
  margin:0 auto 14px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef4ff;
  color:#0d63f3;
  font-size:24px;
  font-weight:900;
}
.coupon-modal__dialog h2{
  margin:0 0 8px;
  color:#111827;
  font-size:20px;
  line-height:1.45;
  font-weight:900;
}
.coupon-modal__dialog p{
  margin:0 0 22px;
  color:#667085;
  font-size:14px;
  line-height:1.6;
}
.coupon-modal__confirm{
  width:100%;
  height:48px;
  border:0;
  border-radius:11px;
  background:#0d63f3;
  color:#fff;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}
.coupon-modal__confirm:hover{
  background:#0b57d9;
}
@keyframes couponModalIn{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}


/* ===== 실시간 클릭 TOP5 : 메인 / 웹하드 무료쿠폰 상단 ===== */
.hero.hero-live-rank{padding:30px 0 22px}
.hero-live-rank .hero-grid,.subpage-hero.hero-live-rank .hero-grid{grid-template-columns:minmax(0,1fr) minmax(500px,.88fr);gap:28px;align-items:center}
.hero-side-live{min-width:0;display:grid;grid-template-columns:210px minmax(255px,1fr);align-items:center;gap:16px}
.hero-side-live .coupon-art{height:160px;justify-content:flex-start;overflow:visible}
.hero-side-live .ticket{transform:rotate(-8deg) scale(.86);transform-origin:center}
.live-click-rank{min-width:0;background:#fff;border:1px solid #e6edf7;border-radius:16px;padding:12px 13px 11px;box-shadow:0 10px 28px rgba(25,65,120,.08)}
.live-rank-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.live-rank-title{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:900;color:#15233b;white-space:nowrap}
.live-dot{width:7px;height:7px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.10);flex:0 0 auto}
.live-rank-stamp{font-size:9px;color:#98a2b3;white-space:nowrap}
.live-rank-list{display:grid}
.live-rank-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;min-height:23px;gap:7px;border-top:1px solid #f0f3f8;font-size:11px}
.live-rank-row:first-child{border-top:0}.live-rank-no{width:19px;height:19px;border-radius:6px;display:grid;place-items:center;background:#eef5ff;color:#1368e8;font-weight:900;font-size:10px}.live-rank-row:first-child .live-rank-no{background:#176cf0;color:#fff}.live-rank-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#26364f;font-weight:750}.live-rank-clicks{font-size:10px;color:#176cf0;font-weight:900;white-space:nowrap}.live-click-rank.is-offline .live-dot{background:#aab2c0;box-shadow:none}
.subpage-hero.hero-live-rank{padding:32px 0 28px}.subpage-hero.hero-live-rank .breadcrumb{margin-bottom:12px}.subpage-hero.hero-live-rank h1{font-size:32px}
@media(max-width:1120px){.hero-live-rank .hero-grid,.subpage-hero.hero-live-rank .hero-grid{grid-template-columns:1fr}.hero-side-live{grid-template-columns:190px minmax(280px,370px);justify-content:start}}
@media(max-width:700px){.hero-side-live{grid-template-columns:1fr}.hero-side-live .coupon-art{display:none}.live-click-rank{max-width:100%}}


/* ===== TOP7 compact override : 좌우 폭 축소 ===== */
.hero.hero-live-rank{
  padding:26px 0 20px;
}
.hero-live-rank .hero-grid,
.subpage-hero.hero-live-rank .hero-grid{
  grid-template-columns:minmax(0,1fr) 430px;
  gap:18px;
  align-items:center;
}
.hero-side-live{
  width:430px;
  min-width:0;
  display:grid;
  grid-template-columns:155px 265px;
  align-items:center;
  gap:10px;
}
.hero-side-live .coupon-art{
  width:155px;
  height:158px;
  justify-content:center;
  overflow:visible;
}
.hero-side-live .ticket{
  transform:rotate(-8deg) scale(.68);
  transform-origin:center;
}
.live-click-rank{
  width:265px;
  min-width:0;
  padding:10px 11px 9px;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(25,65,120,.07);
}
.live-rank-head{
  gap:6px;
  margin-bottom:3px;
}
.live-rank-title{
  gap:6px;
  font-size:12px;
}
.live-rank-stamp{
  font-size:8px;
}
.live-rank-row{
  grid-template-columns:20px minmax(0,1fr) auto;
  min-height:20px;
  gap:6px;
  font-size:10.5px;
}
.live-rank-no{
  width:17px;
  height:17px;
  border-radius:5px;
  font-size:9px;
}
.live-rank-clicks{
  font-size:9.5px;
}
.subpage-hero.hero-live-rank{
  padding:28px 0 24px;
}
@media(max-width:1120px){
  .hero-live-rank .hero-grid,
  .subpage-hero.hero-live-rank .hero-grid{
    grid-template-columns:1fr;
  }
  .hero-side-live{
    width:430px;
    grid-template-columns:155px 265px;
    justify-content:start;
  }
}
@media(max-width:520px){
  .hero-side-live{
    width:100%;
    grid-template-columns:1fr;
  }
  .hero-side-live .coupon-art{
    display:none;
  }
  .live-click-rank{
    width:100%;
    max-width:100%;
  }
}


/* ===== 실시간 TOP7 FINAL : 심플/컴팩트/클릭 가능 ===== */
.hero.hero-live-rank{
  padding:26px 0 20px;
}
.hero-live-rank .hero-grid,
.subpage-hero.hero-live-rank .hero-grid{
  grid-template-columns:minmax(0,1fr) 350px;
  gap:12px;
  align-items:center;
}

/* 우측 전체 영역 폭 축소 */
.hero-side-live{
  width:350px;
  min-width:0;
  display:grid;
  grid-template-columns:100px 242px;
  align-items:center;
  gap:8px;
}

/* COUPON 이미지: 잘리지 않고 한 줄로 완전히 보이도록 재설정 */
.hero-side-live .coupon-art{
  width:100px;
  height:74px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}
.hero-side-live .ticket{
  position:relative;
  width:92px;
  height:56px;
  min-width:92px;
  border-radius:13px;
  background:linear-gradient(135deg,#4a8cff,#8db6ff);
  transform:rotate(-5deg);
  transform-origin:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#fff;
  font-size:14px;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(13,99,243,.14);
}
.hero-side-live .ticket span{
  display:inline;
  white-space:nowrap;
}
.hero-side-live .ticket:before,
.hero-side-live .ticket:after{
  width:12px;
  height:12px;
  top:22px;
  background:#f8fbff;
}
.hero-side-live .ticket:before{left:-6px}
.hero-side-live .ticket:after{right:-6px}

/* TOP7 박스: 장식 최소화 */
.live-click-rank{
  width:242px;
  min-width:0;
  padding:8px 9px 7px;
  background:#fff;
  border:1px solid #e7ecf4;
  border-radius:11px;
  box-shadow:none;
}
.live-rank-head{
  display:block;
  margin:0 0 4px;
  padding:0 2px 4px;
  border-bottom:1px solid #eef2f7;
}
.live-rank-title{
  display:block;
  color:#162033;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
}

/* 한 줄 전체가 사이트 바로가기 링크 */
.live-rank-row{
  text-decoration:none;
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  align-items:center;
  min-height:20px;
  gap:5px;
  padding:1px 2px;
  border:0;
  border-bottom:1px solid #f2f4f7;
  border-radius:4px;
  font-size:10px;
  color:inherit;
  cursor:pointer;
}
.live-rank-row:last-child{
  border-bottom:0;
}
.live-rank-row:hover{
  background:#f6f9ff;
}
.live-rank-row:focus-visible{
  outline:2px solid #176cf0;
  outline-offset:1px;
}
.live-rank-no{
  width:16px;
  height:16px;
  border-radius:4px;
  display:grid;
  place-items:center;
  background:#eef5ff;
  color:#176cf0;
  font-size:8px;
  font-weight:900;
}
.live-rank-row:first-child .live-rank-no{
  background:#176cf0;
  color:#fff;
}
.live-rank-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#26364f;
  font-size:10px;
  font-weight:750;
}
.live-rank-clicks{
  color:#176cf0;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}
.live-click-rank.is-offline .live-rank-title:after{
  content:" · 연결 확인";
  color:#98a2b3;
  font-size:8px;
  font-weight:600;
}

/* 웹하드 무료쿠폰 상단도 같은 크기 */
.subpage-hero.hero-live-rank{
  padding:28px 0 24px;
}

/* 반응형 */
@media(max-width:1050px){
  .hero-live-rank .hero-grid,
  .subpage-hero.hero-live-rank .hero-grid{
    grid-template-columns:1fr;
  }
  .hero-side-live{
    width:350px;
    grid-template-columns:100px 242px;
    justify-content:start;
  }
}
@media(max-width:520px){
  .hero-side-live{
    width:100%;
    grid-template-columns:1fr;
  }
  .hero-side-live .coupon-art{
    display:none;
  }
  .live-click-rank{
    width:100%;
    max-width:280px;
  }
}


/* ===== TOP7 BALANCED : 큰 쿠폰 이미지 + 왼쪽 이동 + 넓어진 TOP7 ===== */
.hero.hero-live-rank{
  padding:26px 0 22px;
}

/* 오른쪽 묶음을 더 넓혀 전체 묶음 시작점을 왼쪽으로 이동 */
.hero-live-rank .hero-grid,
.subpage-hero.hero-live-rank .hero-grid{
  grid-template-columns:minmax(0,1fr) 600px;
  gap:16px;
  align-items:center;
}

.hero-side-live{
  width:600px;
  min-width:0;
  display:grid;
  grid-template-columns:280px 300px;
  align-items:center;
  gap:14px;
}

/* 쿠폰 아트는 v14 초반의 원래 큰 비율(230x110)에 가깝게 복원 */
.hero-side-live .coupon-art{
  width:280px;
  height:170px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  overflow:visible;
  padding-left:8px;
}
.hero-side-live .ticket{
  position:relative;
  width:230px;
  height:110px;
  min-width:230px;
  border-radius:24px;
  background:linear-gradient(135deg,#4a8cff,#a9c9ff);
  transform:rotate(-8deg);
  transform-origin:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#fff;
  font-size:28px;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 18px 35px rgba(13,99,243,.18);
}
.hero-side-live .ticket span{
  display:inline;
}
.hero-side-live .ticket:before,
.hero-side-live .ticket:after{
  content:"";
  position:absolute;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#f8fbff;
  top:42px;
}
.hero-side-live .ticket:before{left:-13px}
.hero-side-live .ticket:after{right:-13px}

/* TOP7은 가로/세로 모두 한 단계 키우되 장식은 최소화 */
.live-click-rank{
  width:300px;
  min-width:0;
  padding:11px 12px 10px;
  background:#fff;
  border:1px solid #e7ecf4;
  border-radius:12px;
  box-shadow:none;
}
.live-rank-head{
  display:block;
  margin:0 0 5px;
  padding:0 2px 6px;
  border-bottom:1px solid #eef2f7;
}
.live-rank-title{
  display:block;
  color:#162033;
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
}

/* '연결 확인' 문구는 어떤 상태에서도 표시하지 않음 */
.live-click-rank.is-offline .live-rank-title:after{
  content:none !important;
  display:none !important;
}

.live-rank-row{
  text-decoration:none;
  display:grid;
  grid-template-columns:20px minmax(0,1fr) auto;
  align-items:center;
  min-height:23px;
  gap:7px;
  padding:2px 3px;
  border:0;
  border-bottom:1px solid #f2f4f7;
  border-radius:4px;
  font-size:10.5px;
  color:inherit;
  cursor:pointer;
}
.live-rank-row:last-child{border-bottom:0}
.live-rank-row:hover{background:#f6f9ff}
.live-rank-row:focus-visible{
  outline:2px solid #176cf0;
  outline-offset:1px;
}
.live-rank-no{
  width:18px;
  height:18px;
  border-radius:5px;
  display:grid;
  place-items:center;
  background:#eef5ff;
  color:#176cf0;
  font-size:9px;
  font-weight:900;
}
.live-rank-row:first-child .live-rank-no{
  background:#176cf0;
  color:#fff;
}
.live-rank-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#26364f;
  font-size:10.5px;
  font-weight:750;
}
.live-rank-clicks{
  color:#176cf0;
  font-size:9.5px;
  font-weight:900;
  white-space:nowrap;
}

.subpage-hero.hero-live-rank{
  padding:28px 0 24px;
}

@media(max-width:1180px){
  .hero-live-rank .hero-grid,
  .subpage-hero.hero-live-rank .hero-grid{
    grid-template-columns:1fr;
  }
  .hero-side-live{
    width:600px;
    grid-template-columns:280px 300px;
    justify-content:start;
  }
}
@media(max-width:700px){
  .hero-side-live{
    width:100%;
    grid-template-columns:1fr;
  }
  .hero-side-live .coupon-art{
    display:none;
  }
  .live-click-rank{
    width:100%;
    max-width:320px;
  }
}


/* ===== 모바일 실시간 클릭 TOP7 가운데 정렬 ===== */
@media(max-width:700px){
  .hero-side-live{
    width:100%;
    grid-template-columns:1fr;
    justify-items:center;
  }

  .hero-side-live .coupon-art{
    display:none;
  }

  .live-click-rank{
    width:min(320px, calc(100% - 28px));
    max-width:320px;
    margin-left:auto;
    margin-right:auto;
    justify-self:center;
  }
}
