:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-color: #ffb703;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-sub: #3d444d;
  --border-color: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
  background: #f8fafc;
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 95px !important; 
}

/* ==========================================================
   1. Header & Menu (사장님 최적화 스탠다드 버전)
   ========================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.menu-nav {
  background: #fff;
  border-top: 1px solid #f1f5f9;
  padding: 10px 0;
}

.menu {
  display: flex !important;
  justify-content: space-between !important; /* 👈 사장님이 원하신 양 끝 균등 배치 유지 */
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a {
  text-decoration: none;
  color: #475569;
  background: #f1f5f9;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu a:hover, .menu a.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.menu a.menu-home {
  background: #1e293b;
  color: #fff;
}
.menu a.menu-home:hover {
  background: #0f172a;
}

.menu a.menu-flyer {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}
.menu a.menu-flyer:hover {
  background: linear-gradient(135deg, #be123c, #e11d48);
}

/* 💡 대기업 표준 햄버거 버튼 (비틀어짐/내려감 현상 완벽 제거) */
.hamburger-btn {
  display: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* 햄버거 아이콘 심볼 (☰ 모양 고정 및 깔끔한 변환) */
.hamburger-icon {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.hamburger-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.hamburger-btn.active .hamburger-icon {
  color: #ffffff !important;
}

/* 모바일 메뉴 펼쳐짐 애니메이션 (아래로 처지지 않고 자연스럽게 슬라이드 다운) */
@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between !important;
    padding: 10px 12px !important;
  }
  .hamburger-btn {
    display: flex !important;
  }
  .menu-nav {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  }
  .menu-nav.active {
    display: block !important;
    animation: slideDown 0.2s ease-out forwards;
  }
  .menu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 0 12px !important;
  }
  .menu a {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px !important;
    font-size: 14.5px !important;
    border-radius: 10px !important;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2. Hero Slider Section */
/* ==========================================================
   [메인 배너] background-size: cover 기반 1920x520 와이드 최적화
   ========================================================== */
.hero-slider-section {
  width: 100vw;
  height: 520px !important; /* PC 배너 세로 고정 */
  position: relative !important; /* 💡 내부 절대 배치 기준점 (여기에 추가 완료!) */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #0f172a;
}

.banner-slider-container {
  position: relative;
  width: 100%;
  height: 100% !important;
  overflow: hidden;
}

.banner-track {
  display: block; /* flex 대신 block으로 변경 */
  width: 100%;    /* 300% -> 100%로 수정 */
  height: 100% !important;
}

.banner-slide {
  width: 100%;    /* 33.333% -> 100%로 수정 */
  height: 100% !important;
  box-sizing: border-box;
}

/* 배경 이미지로 거실 인테리어를 꽉 채우는 스타일 */
.banner-item-single {
  width: 100%;
  height: 100% !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

/* 좌측 텍스트 오버레이 영역 */
.banner-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%; /* 좌측 텍스트 공간 확보 */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 80px;
  box-sizing: border-box;
  /* 우측 인테리어는 잘 보이게 두고, 좌측 글자는 가독성을 높이기 위해 은은한 그라데이션 적용 */
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.4) 10%, transparent 100%);
  z-index: 5;
}

/* 상단 뱃지 */
.banner-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* 메인 타이틀 */
.banner-main-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 47만원 강조 */
.banner-price-highlight {
  font-size: 56px;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* CTA 버튼 */
.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease;
}

.banner-cta-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

/* ==========================================================
   [신규 추가] 텍스트 탭바 + 컨트롤러 전용 스타일 (여기서부터 새로 교체/추가)
   ========================================================== */
.hero-tab-controls {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 20 !important;
  background: rgba(15, 23, 42, 0.75);
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  max-width: 95%;
  box-sizing: border-box;
}

.slider-ctrl-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  color: #ffffff !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.slider-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.banner-text-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.banner-text-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  font-family: 'Pretendard', sans-serif;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
  .hero-slider-section {
    height: 340px !important;
  }
  .banner-content-overlay {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    background: rgba(15, 23, 42, 0.65);
    align-items: center;
    text-align: center;
  }
  .banner-main-title { font-size: 18px; }
  .banner-price-highlight { font-size: 25px !important; margin-bottom: 14px; }
  .banner-cta-btn { width: 100%; max-width: 220px; padding: 10px 16px; font-size: 14px; }
  
  .hero-tab-controls {
    bottom: 12px !important;
    padding: 6px 12px;
    width: 92%;
  }
  .tab-btn {
    font-size: 11.5px;
    padding: 5px 10px;
  }
  .slider-ctrl-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* 💡 슬라이드 하단 컨트롤러 스타일 (배너 내부 하단 고정) */
.slider-controls {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 20 !important;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}


.banner-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-dots .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dots .dot.active {
  background-color: #fbbf24 !important;
  width: 24px;
  border-radius: 6px;
}

/* 모바일 화면 대응 (세로 높이 340px 고정) */
@media (max-width: 768px) {
  .hero-slider-section {
    height: 340px !important;
  }
  .banner-content-overlay {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    background: rgba(15, 23, 42, 0.65);
    align-items: center;
    text-align: center;
  }
  .banner-main-title { font-size: 22px; }
  .banner-price-highlight { font-size: 38px; margin-bottom: 14px; }
  .banner-cta-btn { width: 100%; max-width: 220px; padding: 10px 16px; font-size: 14px; }
}

/* 3. Section Common */
.section {
  padding: 35px 20px;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.title-wrap {
  text-align: center;
  margin-bottom: 25px;
}

.title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sub);
  margin-top: 4px;
}

/* 4. Carrier Grid */
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.carrier-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carrier-card.selected {
  background: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15) !important;
  transform: translateY(-4px);
}

.carrier-card.selected span {
  color: var(--primary-color) !important;
  font-weight: 800 !important;
}

.carrier-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.carrier-card img {
  width: 100%;
  height: 38px;
  object-fit: contain;
}

.carrier-card span {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

/* 5. 실시간 주문 현황판 (통합 정리) */
.live-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.realtime-title {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 16px;
  background: linear-gradient(90deg, #1e3799, #4a69bd);
  letter-spacing: 0.5px;
}

#realtime_panel_frame, #night_notice_panel {
    width: 100%;
    height: 350px;
    border: none;
    background: linear-gradient(135deg, #0a3d62, #3c6382);
    overflow: hidden;
    transition: all 0.4s ease;
}

#night_notice_panel {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

/* 6. 전단지 영역 */
.flyer-wrapper {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.flyer-container {
  width: 2580px;
  height: 2056px;
  background-image: url('https://topnet.kr/template_bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform-origin: top left;
  border-radius: 12px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.data-cell {
  position: absolute;
  font-family: 'Malgun Gothic', sans-serif;
  font-weight: 900;
  color: #111111;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qrcode-box {
  position: absolute;
  top: 2.5%;
  left: 88%;
  width: 10%;
  z-index: 10;
}

#qrcode-box img,
#qrcode-box canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* 7. 가전 사은품 섹션 */
.gift-section-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.gift-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.gift-img-box {
  width: 100%;
  height: 150px;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-img-box img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important; /* 👈 0.4초 동안 아주 부드럽게(Smooth) 작동 */
}

.gift-card:hover .gift-img-box img {
    transform: scale(1.08) !important; /* 👈 8% 정도 부드럽게 확대 */
}

.gift-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.gift-model {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.gift-price {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through; /* 중간 가로선(취소선) 적용 */
    margin-bottom: 10px;
}

/* 통신사별 부담금 선택 영역 박스 */
.gift-carrier-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.gift-carrier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.gift-carrier-row:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

/* 📌 [핵심 개선] 통신사별 부담금 금액 크기 및 강조 강화 */
.gift-carrier-price {
    font-size: 17px;
    font-weight: 900;
    color: #e11d48; /* 파격적인 혜택 강조 붉은 계열 */
}

/* 8. Contact Box */
.contact-box {
  width: 100%;
  max-width: 1200px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 24px;
  padding: 35px 20px;
  text-align: center;
  box-sizing: border-box;
  /* 💡 통신사의 세련된 느낌을 주는 입체 그림자 + 은은한 블루 빛 퍼짐 */
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2); /* 은은한 블루 테두리 */
  position: relative;
  overflow: hidden;
}

.contact-box h2 {
  font-size: 19px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
}

.contact-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--accent-color);
  letter-spacing: -1px;
}

/* 9. Floating Buttons */
.floating {
  position: fixed;
  right: 20px;
  bottom: 115px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.call { background: var(--primary-color); }
.reserve { background: #fee500; color: #191919 !important; }

/* 10. 하단 고정 빠른 상담 바 */
#quick-consult-bar-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #3b59f6 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 9998;
    padding: 10px 15px;
}

.quick-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.quick-bar-title h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
}

.quick-bar-sub {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #e2e8f0;
}

.quick-bar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.qb-input {
    flex: 1;
    min-width: 110px;
    height: 38px;
    padding: 0 10px;
    border: none;
    background: #ffffff;
    color: #0f172a;
    border-radius: 6px;
    font-size: 13.5px;
}

.qb-submit-btn {
    flex: 1;
    min-width: 120px;
    height: 38px;
    background: #facc15;
    color: #0f172a;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.quick-bar-agreement {
    max-width: 1200px;
    margin: 4px auto 0 auto;
    font-size: 11px;
    color: #ffffff;
    text-align: center;
}

/* 11. 최하단 브랜딩 푸터 */
.footer-brand {
  width: 100%;
  background: #090d16;
  color: #94a3b8;
  padding: 45px 20px 35px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffb703;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.brand-sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 25px;
}

.brand-features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  padding: 20px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu {
    justify-content: flex-start;
    padding: 0 10px;
  }
  .carrier-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .footer-brand {
    padding-bottom: 100px;
  }
}

@media (min-width: 900px) {
    .quick-bar-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .quick-bar-form {
        flex: 2;
        justify-content: flex-end;
    }
}


/* =========================================================
   [복원 2] 3번 배너 슬라이드 입체 텍스트 및 Slide-Down 애니메이션
   ========================================================= */
.animated-overlay-text {
  position: absolute;
  top: 50%;
  left: 6%; 
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.banner-slide.active .animated-overlay-text {
  animation: slideDownText 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.25s;
}

@keyframes slideDownText {
  0% { opacity: 0; transform: translate(0, -90px); }
  100% { opacity: 1; transform: translate(0, -50%); }
}

.anim-line-1 {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.6);
}

.anim-line-2 {
  font-size: 76px;
  font-weight: 900;
  color: #fffdfa;
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-shadow: 
    0 2px 0 #d97706, 
    0 4px 0 #b45309, 
    0 6px 10px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 215, 0, 0.4);
}

.anim-line-3 {
  font-size: 30px;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: -0.3px;
  margin-top: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .anim-line-1 { font-size: 13px; }
  .anim-line-2 { font-size: 23px; letter-spacing: -0.5px; }
  .anim-line-3 { font-size: 10px; margin-top: 2px; }
  .animated-overlay-text { left: 4%; gap: 2px; }
  
  #realtime_panel_frame, #night_notice_panel { 
      height: 180px; 
      padding: 12px 14px !important;
  }
  .night-notice-title {
      font-size: 14px !important;
      margin-bottom: 6px !important;
  }
  .night-notice-desc {
      font-size: 11.5px !important;
      line-height: 1.45 !important;
      word-break: keep-all; /* 단어 단위로 자연스럽게 줄바꿈 */
  }

  .contact-number { font-size: 32px; }
}

/* =========================================================
   [복원 3] 하단 상담바 셀렉트 화살표 및 푸터 저작권 디테일
   ========================================================= */
.qb-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.quick-bar-agreement label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.footer-copyright {
  font-size: 11px;
  color: #475569;
  letter-spacing: 0.5px;
}

/* =========================================================
   [복원 4] 전단지 A4 가로 인쇄 전용 스타일
   ========================================================= */
@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }
  body {
    background-color: white !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  header, .hero, .section:not(#flyer), #giftGridContainer, footer, .floating, #quick-consult-bar-wrapper, div:not(#flyerWrapper):not(#flyerBox):not(#flyerBox *) {
    display: none !important;
  }
  #flyerWrapper, .flyer-wrapper {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    visibility: visible !important;
  }
  #flyerBox, .flyer-container {
    display: block !important;
    box-shadow: none !important;
    transform: scale(1) !important;
    background-image: url('https://topnet.kr/template_bg.png') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    width: 2580px !important;
    height: 2056px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    visibility: visible !important;
  }
  #flyerBox *, .flyer-container * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

.footer-company-info {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  text-align: left !important; 
  width: 100%;
  max-width: 500px; 
  margin-left: auto;
  margin-right: auto; 
}

.footer-company-info p {
  margin: 0 0 4px 0;
  text-align: left !important; 
}

/* ==========================================================
   [추가] hello.php 요금 계산기 및 선택 카드 전용 스타일
   ========================================================== */
/* ==========================================================
   [KT 요금 계산기 섹션] 1200px 풀 와이드 및 반응형 그리드 고도화
   ========================================================== */

/* 1. 전체 계산기 영역 및 옵션 박스 1200px 확장 */
.option-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 0px auto !important;
  box-sizing: border-box;
}

.option {
  width: 100% !important;
  max-width: 1200px !important;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 18px !important;
  margin: 0 auto !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  text-align: left;
}

.option label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important; /* 왼쪽 정렬로 변경 */
  gap: 16px !important; /* 제목과 체크박스 사이의 간격 */
  font-weight: 800 !important;
  font-size: 18px !important;
  margin-top: 0px !important;     /* 💡 위쪽 여백 초기화 */
  margin-bottom: 15px !important;
  color: var(--text-main) !important;
}

/* 2. PC 기본 카드 그룹 그리드 (유연한 자동 배치) */
.card-group {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}

/* 3. 개별 카드 디자인 및 손모양 커서, 클릭 오류 방지 */
.card {
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 75px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  background-color: #ffffff !important;
  padding: 16px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  cursor: pointer !important; /* 💡 마우스 오버 시 확실한 손모양 출력 */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box !important;
}

/* 카드 내부 텍스트가 클릭 이벤트를 가로채지 않도록 방지 */
.card * {
  pointer-events: none !important;
}

.card:hover {
  background-color: #f8fafc !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1) !important;
}

.card.selected {
  background-color: #eff6ff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

.card.selected .card-title,
.card.selected .card-price,
.card.selected .card-memo {
  color: var(--primary-color) !important;
}

.card-title {
  font-weight: 800 !important;
  font-size: 16px !important;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-price, .card-memo {
  font-size: 14px !important;
  color: var(--text-sub) !important;
  font-weight: 600;
}

/* 4. 모바일 반응형 최적화 (768px 이하: 무조건 1줄에 2개씩 2열 배치) */
@media (max-width: 768px) {
  .card-group {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .card {
    min-height: 70px !important;
    padding: 12px 8px !important;
  }
  .option {
    padding: 16px !important;
  }
}

/* 요약 결과 박스 */
.final-box-container { 
  width: 100%; 
  max-width: 1200px; 
  margin: 10px auto 20px auto; 
  box-sizing: border-box; 
  padding: 0 20px; 
}

.summary-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.summary-header-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.result-wrapper { 
  display: flex; 
  flex-direction: row; 
  gap: 16px; 
  width: 100%; 
}

.result-box { 
  flex: 1;
  border-radius: 14px; 
  padding: 20px 10px; 
  text-align: center; 
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

#result_internet {
  background-color: #f0f7ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

#result_mobile {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}
#result_mobile .result-value {
  color: #334155;
}

#result_support {
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
}
.top-image, .bottom-image {
  width: 100% !important;
  max-width: 900px !important;
  height: auto !important;
  display: block !important;
  margin: 20px auto !important;
  border-radius: 12px;
}
/* ==========================================================
   상품 신청 및 바로상담 액션 버튼 공통 스타일
   ========================================================== */
.action-buttons-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 30px;
}

.action-btn {
  flex: 1;
  padding: 18px 10px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important; /* 밑줄 제거 */
  border-radius: 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-apply {
  background-color: #2b82f6;
  color: #fff !important;
  border: 2px solid #2b82f6;
}

.btn-apply:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-call {
  background-color: #10b981;
  color: #fff !important;
  border: 2px solid #10b981;
}

.btn-call:hover {
  background-color: #059669;
  border-color: #059669;
}

/* ==========================================================
   [최신 트렌드] 1200px 확장 및 프리미엄 요금 계산기/신청서 스타일
   ========================================================== */
.hello-section-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  box-sizing: border-box;
}

.hello-title-wrap {
  text-align: center;
  margin-bottom: 35px;
}

.hello-main-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hello-sub-title {
  font-size: 15px;
  color: #64748b;
}

.hello-option-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 24px auto;
}

.hello-option-box {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  box-sizing: border-box;
}

.hello-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  color: #1e293b;
  text-align: left;
  flex-wrap: wrap;
  gap: 8px;
}

.hello-wifi-badge {
  font-weight: 700;
  font-size: 14px;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

.hello-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.hello-card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

/* 프리미엄 다크 네이비 요약 카드 */
.hello-summary-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(15,23,42,0.15);
  padding: 35px;
  margin-bottom: 25px;
  color: #fff;
}

.hello-summary-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hello-result-box-dark {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  flex: 1;
  backdrop-filter: blur(10px);
}

.hello-result-box-pink {
  background: rgba(244,63,94,0.12);
  border: 1px solid rgba(244,63,94,0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  flex: 1;
  backdrop-filter: blur(10px);
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
  .hello-card-grid-3, .hello-card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .hello-summary-card {
    padding: 20px 15px !important;
  }
}
/* ==========================================================
   [완벽 수정] 마스터 박스 안의 개별 옵션 박스 스타일 초기화 (1개의 박스로 통일)
   ========================================================== */

/* 1. 전체를 감싸는 1개의 큰 외곽 마스터 박스 */
.calculator-master-box {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 30px auto !important;
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 24px !important;
  padding: 10px 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

/* 2. 마스터 박스 내부의 개별 옵션 박스(배경, 테두리, 그림자 완전 제거) */
div.calculator-master-box div.option {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 20px 0 !important;
  margin: 0 auto !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* 3. 마지막 메뉴의 구분선은 깔끔하게 제거 */
.calculator-master-box .option-container:last-child div.option {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.policy-bar {
    width: calc(100% - 40px);
    max-width: 1160px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer; 
    transition: background-color 0.2s ease;
}

.policy-bar:hover {
    background-color: #fafbfc; /* 👈 마우스 올렸을 때 아주 연한 배경 변화 */
}

.policy-wrap {
    width: 100%;
    height: 88px;
    padding: 0 20px 0 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* 1. 좌측 파란 박스 영역 (🔴 LIVE 뱃지 추가 버전) */
.policy-title {
    width: 280px;        
    min-width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #0057ff, #1d7eff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 15px;
    box-sizing: border-box;
}
.policy-title .fire { 
    font-size: 26px;      
}
.policy-title strong { 
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 19px;      
    font-weight: 800; 
    line-height: 1.2;
}
.policy-title small { 
    font-size: 11px;      
    opacity: 0.95; 
    display: block;
    margin-top: 2px;
}

/* 🔴 LIVE 깜빡이는 뱃지 스타일 */
.live-badge {
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    animation: pulseLive 1.5s infinite;
    vertical-align: middle;
}
@keyframes pulseLive {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* 2. 중앙 메인 롤링 영역 (Fade + translateY 애니메이션 적용) */
.policy-main {
    flex: 1;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.policy-slider {
    position: relative;
    width: 100%;
    height: 40px;
    overflow: hidden;
}
.policy-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); 
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.policy-item.active { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

/* 통신사와 금액을 묶어주는 내부 박스 */
.policy-info {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0 auto; /* 중앙에 예쁘게 안착 */
}

/* 통신사별 컬러 정의 */
.carrier { 
    font-size: 20px; 
    font-weight: 800; 
}
.carrier.kt,
.carrier.sky { color: #00875a; }

.carrier.lg,
.carrier.hello { color: #e6007e; }

.carrier.sk,
.carrier.skpop { color: #ff6b00; }

/* 금액 스타일 통일 */
.policy-item .amount {
    font-size: 23px;
    font-weight: 900;
    color: #e11d48;
}

/* 3. 💡 새로 추가된 우측 [혜택 확인 →] CTA 버튼 스타일 */
.policy-cta-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.policy-cta-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* 1. KT, KT스카이라이프 ➔ 녹색 */
.carrier.kt,
.carrier.sky {
    color: #00875a; 
}

/* 2. LG U+, LG헬로비전 ➔ 빨간색 */
.carrier.lg,
.carrier.hello {
    color: #e6007e; 
}

/* 3. SK Broadband, SK 팝 ➔ 주황색 */
.carrier.sk,
.carrier.skpop {
    color: #ff6b00; 
}
 
.product { color: #64748b; font-size: 15px; font-weight: 600; }
.amount { font-size: 36px; color: #ff2f2f; font-weight: 900; letter-spacing: -1px; }
 
/* 우측 롤링 신뢰 뱃지 영역 (완벽한 수직 중앙 정렬 수정) */
.policy-badge-container {
    width: 240px;
    min-width: 240px;
    height: 40px; /* 높이 확보 */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-right: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center; /* 수직 중앙 정렬 */
}

.badge-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.badge-item {
    height: 40px; /* 부모 높이와 정확히 일치 */
    line-height: 40px; /* 글자 수직 중앙 정렬 */
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    box-sizing: border-box;
}
 
/* 하단 티커 */
.policy-ticker {
    height: 40px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: tickerMove 30s linear infinite;
}
.ticker-track span {
    margin-right: 60px;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
}
@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
 
@media (max-width: 768px) {
    .policy-wrap { height: auto; flex-direction: column; padding: 15px 0; }
    .policy-title { width: 100%; height: 50px; border-radius: 6px; margin-bottom: 10px; }
    .policy-main { padding: 0 10px; width: 100%; height: 50px; }
    .policy-badge-container { width: 92%; margin: 10px auto 0 auto; }
    
    /* 📌 통신사 이름과 금액이 절대 2줄로 꺾이지 않고 1줄에 나오도록 고정 */
    .policy-item {
        gap: 6px !important;
        padding: 0 !important;
        justify-content: space-between !important;
    }
    .policy-info {
        gap: 6px !important;
        white-space: nowrap !important; /* 👈 핵심: 글자 줄바꿈 방지 (무조건 1줄 유지) */
    }
    .policy-item .carrier {
        font-size: 13px !important;   /* 통신사 이름 글씨 크기 최적화 */
    }
    .policy-item .amount {
        font-size: 14px !important;   /* 금액 글씨 크기 최적화 */
    }
    /* 우측 [혜택 확인 →] 버튼이 찌그러지지 않게 고정 */
    .policy-cta-btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;    
    }
}
.trust-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.section-title p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: center; /* 카드가 살짝 커졌을 때 수직 정렬 보정 */
}

.trust-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.trust-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

/* 💰 250억+ 메인 강조 카드 전용 스타일 (조금 더 크게 및 그라데이션) */
.trust-card.highlight {
    background: linear-gradient(135deg, #0057ff, #3b82f6);
    color: #fff;
    border: none;
    transform: scale(1.03); /* 요청하신 살짝 더 큰 스케일 적용 */
    box-shadow: 0 15px 40px rgba(0,87,255,0.35);
}

.trust-card.highlight:hover {
    transform: scale(1.03) translateY(-7px); /* 호버 시에도 확대 유지하며 위로 이동 */
}

.trust-card.highlight .label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.trust-card.highlight .trust-icon,
.trust-card.highlight .plus,
.trust-card.highlight .counter,
.trust-card.highlight .text-title {
    color: #fff !important;
}

.trust-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.counter {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
}

.plus {
    font-size: 22px;
    font-weight: 800;
    margin-left: 2px;
}

/* 📌 흰색 카드들의 메인 타이틀 크기 및 볼륨감 상향 */
.trust-card .text-title {
    font-size: 22px !important;
    font-weight: 800;
    color: #111;
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 1.2;
}

/* 📌 하단 설명 라벨 크기 및 가독성 개선 */
.trust-card .label {
    margin-top: 4px;
    font-size: 15px !important;
    color: #666;
    font-weight: 600;
}

/* highlight 카드 안의 텍스트 타이틀 스타일 보정 */
.trust-card.highlight .text-title {
    font-size: 22px !important;
    font-weight: 800;
    margin-top: 6px;
    margin-bottom: 6px;
}

/* 반응형 처리 (모바일 대응) */
@media(max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .trust-card.highlight {
        transform: scale(1); /* 모바일에서는 꽉 차게 보이도록 확대 해제 */
    }
    .trust-card.highlight:hover {
        transform: translateY(-5px);
    }
    .section-title h2 {
        font-size: 26px;
    }
    .counter {
        font-size: 36px;
    }
    .trust-card {
        padding: 25px 15px;
    }
}

/* ==========================================================
   [실제 가입 고객 후기 - 화살표 및 호버 정지 최적화]
   ========================================================== */
.review-section-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.review-header {
    text-align: center;
    margin-bottom: 30px;
}

.review-top-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* 슬라이더 전체 감싸는 박스 (relative) */
.review-container {
    position: relative;
    width: 100%;
    padding: 0 40px; /* 양옆 화살표 공간 확보 */
    box-sizing: border-box;
}

/* 뷰포트 및 트랙 */
.review-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.review-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 개별 후기 카드 스타일 */
.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    flex: 0 0 calc(33.333% - 13.33px); /* PC: 3개 노출 */
    min-height: 380px; 
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

/* 이미지 박스 (1장 전용) */
.review-img-box {
    width: 100%;
    height: 180px;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #f1f5f9;
}

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

/* 후기 텍스트 */
.review-text {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
    word-break: keep-all;
    max-height: 130px;
    overflow-y: auto;
    padding-right: 4px;
}

.review-text::-webkit-scrollbar {
    width: 4px;
}
.review-text::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* 작성자 정보 */
.review-user {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    text-align: right;
}

/* 📌 좌우 화살표 버튼 디자인 */
.review-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10;
    transition: all 0.2s ease;
}

.review-arrow:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.08);
}

.review-prev { left: -6px; }
.review-next { right: -6px; }

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .review-container {
        padding: 0 10px; /* 모바일에서는 화살표를 안쪽으로 붙이거나 크기 조절 */
    }
    .review-card {
        flex: 0 0 100%; /* 모바일 1개 노출 */
        min-height: 350px;
        padding: 18px;
    }
    .review-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .review-prev { left: 0px; }
    .review-next { right: 0px; }
    .review-top-title {
        font-size: 22px;
    }
}

/* ==========================================================
   [7. 통신사별 지원금 비교표 - 속도별 탭 & 전체보기 분리형]
   ========================================================== */
.policy-table-section {
    width: 100%;
    max-width: 1160px;
    margin: 60px auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

.policy-table-header {
    text-align: center;
    margin-bottom: 24px;
}

.policy-table-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.speed-tab-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e2e8f0;
}

.speed-tab-btn {
    padding: 14px 28px;               /* 👈 버튼 상하좌우 크기를 넉넉하게 확 키움 */
    font-size: 16px !important;       /* 👈 글씨 크기를 키워 가독성 대폭 개선 */
    font-weight: 800 !important;      /* 👈 굵기를 두껍게 주어 시인성 확보 */
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.speed-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

/* 선택(Active)된 버튼: 강력한 브랜드 블루와 입체감 부여 */
.speed-tab-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-2px);      /* 살짝 떠오르는 인터랙션 */
}

.speed-block-wrap {
    margin-bottom: 32px;
}

.speed-block-badge {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 8px 8px 0 0;
}

/* 테이블 스타일 */
.policy-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 0 12px 12px 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.clean-policy-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14.5px;
}

.clean-policy-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 800;
    padding: 13px 10px;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.clean-policy-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
}

.clean-policy-table tr:last-child td {
    border-bottom: none;
}

/* 통신사 셀 구분 */
.carrier-cell {
    font-weight: 800 !important;
    color: #0f172a !important;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    width: 130px;
}

/* 지원금 강조 */
.sup-highlight {
    color: #e11d48;
    font-weight: 900;
    font-size: 15.5px;
}

.usim-highlight {
    color: #2563eb;
    font-weight: 800;
}

.policy-notice-text {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-top: 14px;
    word-break: keep-all;
}

@media (max-width: 768px) {
    /* 💡 속도별 탭 그룹 3등분 꽉 채우기 및 버튼 크기 고도화 */
    .speed-tab-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 모바일에서 3등분하여 꽉 채우기 */
        width: 100%;
        padding: 6px;
        gap: 8px;
    }
    .speed-tab-btn {
        padding: 12px 6px;
        font-size: 14.5px !important;    /* 모바일에서도 답답하지 않은 크기 유지 */
        text-align: center;
    }

    /* 기존 테이블 및 셀 관련 스타일 유지 */
    .clean-policy-table {
        font-size: 13px;
    }
    .clean-policy-table th, .clean-policy-table td {
        padding: 10px 6px;
    }
    .carrier-cell {
        width: 90px;
    }
}
/* ==========================================================
   [상위 5% 프리미엄 디자인] 통신사 지원금 비교표 & TOP3 랭킹 고도화
   ========================================================== */

/* 1. TOP 3 랭킹 카드 섹션 최적화 */
.top-benefit-summary-wrap {
    margin-bottom: 30px;
}

.top-benefit-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.top-benefit-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.benefit-rank-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-rank-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
    border-color: #2563eb;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

/* 🥇 1위 카드 전용 특별 강조 포인트 (오버 시 골드빛 테두리) */
.benefit-rank-card.rank-1:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffdf4 0%, #ffffff 100%);
}

/* 메달 뱃지 크기 대폭 확대 및 입체감 부여 */
.benefit-rank-card .rank-badge {
    display: inline-block;
    font-size: 28px; /* 메달 크기 큼직하게 확대 */
    line-height: 1;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

/* 마우스 올렸을 때 메달이 살짝 톡 튀어오르는 인터랙션 */
.benefit-rank-card:hover .rank-badge {
    transform: scale(1.1) rotate(-5deg);
}

.benefit-rank-card .rank-carrier {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.benefit-rank-card .rank-product-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.benefit-rank-card .rank-amount {
    font-size: 20px;
    font-weight: 800;
    color: #ef4444; /* 최대 지원금 강조 붉은빛 */
    border-top: 1px dashed #e5e7eb;
    padding-top: 14px;
}

/* 1위 특별 강조 카드 (그라데이션 및 네온 빛 감성) */
.benefit-rank-card.rank-1 {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

/* 2위 카드 스타일 (LG 유플러스 고유 핑크 테두리 및 왼쪽 세로 바 강제 적용) */
.benefit-rank-card.rank-2 {
    border: 1px solid #e2e8f0 !important;
    border-left: 6px solid #c7007f !important; /* 👈 LG 브랜드 마젠타 컬러 */
}

/* 3위 카드 스타일 (SK 브로드밴드 고유 레드 테두리 및 왼쪽 세로 바 강제 적용) */
.benefit-rank-card.rank-3 {
    border: 1px solid #e2e8f0 !important;
    border-left: 6px solid #ea002c !important; /* 👈 SK 브랜드 레드 컬러 */
}

.rank-badge {
    font-size: 22px;
    margin-bottom: 6px;
    display: block;
}

.rank-carrier {
    font-size: 24px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 4px;
}

.rank-product-sub {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.rank-amount {
    font-size: 28px;
    font-weight: 900;
    color: #e11d48;
    letter-spacing: -0.5px;
}

/* 2. 전체 비교표 래퍼 및 테이블 현대화 */
.policy-table-responsive {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.clean-policy-table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
}

.clean-policy-table th {
    background: #f8fafc !important;
    color: #334155;
    font-weight: 800;
    font-size: 14.5px;
    padding: 16px 12px;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.clean-policy-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

/* 통신사 그룹 마지막 행 고급 경계선 */
.clean-policy-table tr.carrier-group-end td {
    border-bottom: 3px solid #94a3b8 !important;
    box-shadow: inset 0 -2px 0 0 #f8fafc;
}

/* ==========================================================
   [최종 수정] 브랜드별 고유 컬러 바 및 텍스트 색상 강제 적용
   ========================================================== */

/* 1. 기본 .carrier-cell의 강제 검정색 상속 차단 */
.clean-policy-table td.carrier-cell {
    font-weight: 800 !important;
    background: #f8fafc;
    border-right: 2px solid #cbd5e1 !important;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
    letter-spacing: -0.5px;
}

/* 2. KT 계열 (KT, KT올레, 스카이라이프) ➔ 녹색 통일 */
.clean-policy-table td.carrier-cell[data-carrier="KT"],
.clean-policy-table td.carrier-cell[data-carrier="KT올레"],
.clean-policy-table td.carrier-cell[data-carrier="KT스카이라이프"] { 
    color: #00875a !important; 
    border-left: 6px solid #00875a !important; 
}

/* 3. SK 계열 (SK브로드밴드, SK POP) */
.clean-policy-table td.carrier-cell[data-carrier="SK브로드밴드"],
.clean-policy-table td.carrier-cell[data-carrier="SK POP"] { 
    color: #ea002c !important; 
    border-left: 6px solid #ea002c !important; 
}

/* 4. LG 계열 (LG유플러스, 헬로비전) */
.clean-policy-table td.carrier-cell[data-carrier="LG유플러스"],
.clean-policy-table td.carrier-cell[data-carrier="LG헬로비전"] { 
    color: #c7007f !important; 
    border-left: 6px solid #c7007f !important; 
}
/* 핵심 혜택 금액 강조 (방문자 후킹) */
.sup-highlight {
    color: #e11d48;
    font-weight: 900;
    font-size: 16px;
}

.usim-highlight {
    color: #2563eb;
    font-weight: 800;
    font-size: 14.5px;
}

/* 마우스 호버 인터랙션 */
.clean-policy-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* 속도별 탭 버튼 트렌디 스타일 고도화 */
.speed-tab-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.speed-tab-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.speed-tab-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.speed-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* 모바일 완벽 반응형 대응 */
@media (max-width: 768px) {
    .top-benefit-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .speed-tab-btn {
        padding: 10px 18px;
        font-size: 13.5px;
    }
    .clean-policy-table th, .clean-policy-table td {
        padding: 10px 6px;
        font-size: 12.5px;
    }
    .sup-highlight {
        font-size: 14px;
    }
}

/* ==========================================================
   [상위 1% 프리미엄 가독성] 통신사 그룹 및 셀 완벽 분리 스타일
   ========================================================== */

/* 1. 통신사 그룹의 마지막 행 하단에 고급스러운 굵은 입체 경계선 적용 */
.clean-policy-table tr.carrier-group-end td {
    border-bottom: 2.5px solid #94a3b8 !important;
    box-shadow: inset 0 -2px 0 0 #f1f5f9;
}

/* 2. 좌측 통신사 셀(KT, SK 등) 디자인: 세련된 배경과 우측/하단 경계선 강화 */
.clean-policy-table td.carrier-cell {
    font-weight: 800;
    font-size: 15px;
    background: #f8fafc;
    border-right: 2px solid #cbd5e1 !important;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
    letter-spacing: -0.5px;
}

/* 3. 표 전체의 라운드 처리 및 모던한 테두리 감성 부여 */
.policy-table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.clean-policy-table {
    border-collapse: collapse;
    width: 100%;
}

.clean-policy-table th {
    background: #f1f5f9 !important;
    color: #334155;
    font-weight: 700;
    padding: 14px 10px;
    border-bottom: 2px solid #cbd5e1;
}

.clean-policy-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14.5px;
}

/* 4. 마우스 호버 시 은은한 인터랙션 부여 (전문가 감성) */
.clean-policy-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* ==========================================================
   [모바일 완벽 대응] 가전 사은품 리스트 인라인 폰트 크기 강제 축소
   ========================================================== */
@media screen and (max-width: 768px) {
    /* 사은품 카드 안의 모든 라벨, 통신사 부담금 글씨 크기 축소 */
    #giftGridContainer .gift-pay-box div,
    #giftGridContainer .gift-pay-box label {
        font-size: 9px !important;
        padding: 4px 6px !important;
    }
    
    /* 상품신청, 바로상담 버튼 글씨 및 패딩 축소 */
    #giftGridContainer button,
    #giftGridContainer a[href^="tel:"] {
        font-size: 11.5px !important;
        padding: 8px 2px !important;
    }
}

/* ==========================================================
   [모바일 최적화] 누적 혜택 지급 카드 글씨 크기 축소
   ========================================================== */
@media screen and (max-width: 768px) {
    /* 250억+ 강조 카드 내부 숫자 크기 조절 */
    .trust-card .counter {
        font-size: 30px !important; /* 모바일에서 숫자를 조금 더 아담하게 축소 */
    }
    .trust-card .plus {
        font-size: 18px !important; /* '억+' 기호 크기 조절 */
    }
    .trust-card .label {
        font-size: 13px !important; /* 하단 설명 글씨 크기 조절 */
    }
}

/* ==========================================================
   [상위 5% 프리미엄 디자인] 전체보기 토글 버튼 고도화 (선택 후 가독성 완벽 개선)
   ========================================================== */
.all-view-toggle-wrap {
    margin-top: 30px;
    padding-top: 15px;
}

.all-view-toggle-btn {
    width: 100%;
    /* 세련된 다크 블루 그라데이션 배경으로 주목도 극대화 */
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    font-size: 15.5px;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between; /* 좌우로 요소 배치하여 정돈된 느낌 */
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
    letter-spacing: -0.3px;
}

/* 마우스 호버 시 또는 클릭(포커스) 유지 시에도 컬러 고정 및 부양 효과 */
.all-view-toggle-btn:hover,
.all-view-toggle-btn:focus,
.all-view-toggle-btn:active {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important; /* 브랜드 블루 컬러 유지 */
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 만약 자바스크립트 등에서 .active 클래스를 토글 버튼에 붙이는 방식이라면 아래 코드도 함께 방어 */
.all-view-toggle-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
}

/* 내부 텍스트 스타일 정돈 */
.all-view-toggle-btn span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
}

/* 화살표 아이콘 포인트 */
#toggleArrow {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #ffffff !important;
}

.all-view-toggle-btn:hover #toggleArrow,
.all-view-toggle-btn:focus #toggleArrow {
    background: rgba(255, 255, 255, 0.2);
}

/* 전체보기 컨테이너 열렸을 때 부드러운 등장 감성 */
#allSpeedContainer {
    animation: fadeInExpand 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInExpand {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 전체 랭킹 컨테이너 래퍼 */
.ranking-section-wrapper {
    max-width: 1160px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 상단 타이틀 영역 */
.ranking-header {
    text-align: center;
    margin-bottom: 25px;
}
.ranking-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}
.ranking-header p {
    font-size: 14px;
    color: #666;
}

/* 랭킹 카드 그리드 레이아웃 */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .ranking-grid {
        grid-template-columns: 1fr; /* 모바일에서는 1열 세로 정렬 */
        gap: 15px;
    }
}

/* 개별 랭킹 카드 기본 스타일 & 롤오버(Hover) 효과 */
.rank-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e8eb;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

/* 🖱️ 마우스 올렸을 때(Rollover) 효과: 위로 떠오르며 그림자 강조 & 배경 포인트 */
.rank-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #3182f6;
    background: #fbfdff;
}

/* 메달 뱃지 디자인 */
.rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}
.rank-card.gold .rank-badge { background: #fff8e1; color: #f59e0b; border: 1px solid #fde68a; }
.rank-card.silver .rank-badge { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.rank-card.bronze .rank-badge { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }

/* 상품 정보 */
.rank-provider {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.rank-bundle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* 지원금 강조 영역 */
.rank-price-box {
    border-top: 1px dashed #e5e7eb;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rank-price-label {
    font-size: 13px;
    color: #4b5563;
}
.rank-price-value {
    font-size: 20px;
    font-weight: 800;
    color: #ef4444; /* 최대 지원금 강조 레드/오렌지톤 */
}

/* 🚀 하단 CTA 링크 버튼 디자인 */
.ranking-cta-box {
    text-align: center;
}
.ranking-cta-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 480px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}
.ranking-cta-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #ffffff;
}

/* ==========================================
   KT & SK 공통 모바일 반응형 완결판 정렬 
   ========================================== */
@media (max-width: 768px) {
  /* 1. 마스터 박스 내부 패딩 슬림화로 화면 좌우 여백 확보 */
  .calculator-master-box {
    padding: 15px 12px !important;
    border-radius: 16px !important;
  }

  /* 2. 하단 요약 카드 마스터 박스 핏에 완벽 밀착 */
  .final-box-container {
    width: 100% !important;
    margin: 20px auto 0 auto !important;
    padding: 0 !important;
  }
  
  .summary-card {
    padding: 18px 12px !important;
    margin-bottom: 15px !important;
    border-radius: 14px !important;
  }
  
  .summary-header-title {
    font-size: 16px !important;
    margin-bottom: 14px !important;
    gap: 6px !important;
  }

  /* 3. 혜택 결과 박스 3개를 모바일에서 세로(column)로 완벽 정렬 */
  .result-wrapper { 
    flex-direction: column !important; 
    gap: 10px !important;
  }
  
  .result-box {
    width: 100% !important;
    padding: 12px 10px !important;
    border-radius: 10px !important;
  }
  
  .result-box .result-label {
    font-size: 13px !important;
  }
  
  .result-box .result-value {
    font-size: 20px !important;
  }

  /* 4. 신청 및 상담 버튼 가로 정렬 및 터치 편의성 극대화 */
  .action-buttons-wrapper {
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  
  .action-btn {
    font-size: 14px !important;
    padding: 15px 6px !important;
    border-radius: 10px !important;
  }
}

/* ==========================================
   상단 상품 및 옵션 선택 카드 모바일 완벽 반응형 추가
   ========================================== */
@media (max-width: 768px) {
  /* 1. 옵션 컨테이너 여백 최적화 */
  .option-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 10px auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .option {
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }

  /* 2. 옵션 타이틀(라벨) 크기 및 여백 조정 */
  .option label {
    font-size: 16px !important;
    margin-bottom: 10px !important;
    gap: 8px !important;
  }

  /* 3. 카드 그룹을 모바일에서 2열 그리드로 정렬 */
  .card-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* 4. 개별 선택 카드 크기 및 폰트 슬림화 */
  .card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 10px 8px !important;
    border-radius: 10px !important;
    margin: 0 !important;
  }

  .card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .card-price, .card-memo {
    font-size: 11px !important;
    margin-top: 2px !important;
  }
}

@media (max-width: 768px) {
  /* 첫 번째 옵션 라벨 내부를 세로 정렬(column)로 변경하여 꽉 차게 배치 */
  .option label {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 15px !important;
  }

  /* 체크박스와 WIFI 선택 텍스트 영역을 한 줄로 예쁘게 묶기 */
  .option label input[type="checkbox"] {
    transform: scale(1.1) !important;
    margin-right: 4px;
  }
}

/* ==========================================================
   [skpop 전용 추가 보완] 유심 카드 및 할인 선택 그룹 스타일
   ========================================================== */
/* PC 화면: 특별할인 4열 그리드 */
.disc-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.disc-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background-color: #fff;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.disc-item:hover {
  background-color: #fff1f2;
  border-color: #f43f5e;
}

.disc-item.selected {
  background-color: #fff1f2 !important;
  border-color: #f43f5e !important;
  color: #c2410c !important;
}

.disc-item .disc-title {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
}

.disc-item.selected .disc-title {
  color: #e11d48 !important;
  font-size: 16px !important;
}
/* ==========================================================
   [모바일 요약 결과 박스 깨짐 방지 패치]
   ========================================================== */
@media (max-width: 768px) {
  /* 결과 박스 그룹을 모바일에서 세로(column)로 정렬 */
  .result-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* 개별 결과 박스를 모바일 가로 100% 꽉 차게 고정 */
  .result-box {
    width: 100% !important;
    flex: none !important;
    padding: 14px 10px !important;
  }
}
/* ==========================================================
   [특별할인 선택 그룹 모바일 2열 정렬 고정 패치]
   ========================================================== */
@media (max-width: 768px) {
  .disc-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .disc-item {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 6px !important;
    min-height: 55px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .disc-item .disc-title,
  .disc-item.selected .disc-title {
    font-size: 12.5px !important;
  }
}

/* ==========================================================
   [헤더 고정 전화번호 버튼 스타일]
   ========================================================== */
.header-phone {
  margin-left: auto;
  margin-right: 15px;
}

.header-phone a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ff6b00, #ff4500);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 107, 0, .3);
  transition: .2s;
  white-space: nowrap;
}

.header-phone a:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .header-phone {
    margin-right: 8px;
  }
  .header-phone a {
    padding: 7px 12px;
    font-size: 12.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, .25);
  }
}

/* ==========================================================
   [가전 사은품 더보기/접기 기능 CSS 고도화]
   ========================================================== */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  
  /* 💡 초기 상태: 정확히 2줄만 보이도록 높이 잠금 (카드 1개 높이 ~360px 기준 2줄 = 약 740px) */
  max-height: 750px !important; 
  overflow: hidden !important;
  position: relative;
  transition: max-height 0.4s ease-in-out;
}

/* 펼쳐졌을 때: 충분히 큰 높이로 확장 */
.gift-grid.expanded {
  max-height: 4000px !important;
}

/* 모바일 반응형 (모바일은 2열 기준 2줄 높이) */
@media (max-width: 768px) {
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: 850px !important; /* 모바일 2줄 높이 감안 */
  }
  .gift-grid.expanded {
    max-height: 5000px !important;
  }
}
@media (max-width: 768px) {
  /* 1. 상단 헤더 내부 여백을 좁게 조정 */
  .header-inner {
    padding: 10px 12px !important;
    gap: 6px !important;
  }

  /* 2. 로고 영역이 너무 넓어져서 줄바꿈되는 현상 방지 */
  .logo a {
    font-size: 15px !important; /* 모바일에서 로고 글자 크기 최적화 */
    gap: 6px !important;
  }
  .logo img {
    height: 26px !important;    /* 로고 이미지 높이 살짝 축소 */
    width: auto !important;
  }

  /* 3. 상단 우측 전화번호 버튼 모바일 맞춤 축소 및 여백 확보 */
  .header-phone {
    margin-left: auto !important;
    margin-right: 4px !important;
  }
  .header-phone a {
    padding: 6px 10px !important;
    font-size: 11px !important;     /* 글자 크기를 아담하게 줄여서 한 줄로 유지 */
    gap: 4px !important;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.25) !important;
  }

  /* 4. 햄버거 메뉴 버튼 크기 고정 (전화번호와 겹침 방지) */
  .hamburger-btn {
    width: 36px !important;
    height: 34px !important;
    padding: 7px !important;
    flex-shrink: 0 !important;
  }
}

/* ==========================================================
   [모바일 전용] 통신사별 최대 지원금 확인 타이틀 글자 크기 최적화
   ========================================================== */
@media (max-width: 768px) {
  .section .title-wrap .title {
    font-size: 22px !important; /* 모바일 화면 크기에 맞게 글자 크기 축소 (기본 32px ➔ 22px) */
    line-height: 1.3 !important;
  }
  
  .section .title-wrap .subtitle {
    font-size: 13.5px !important; /* 서브 타이틀이 있다면 함께 최적화 */
  }
}
/* ==========================================================
   [모바일 전용] 본사직영 가전 사은품 특가 타이틀 크기 최적화
   ========================================================== */
@media (max-width: 768px) {
  .gift-section-wrap .title-wrap .title {
    font-size: 22px !important; /* 모바일에 알맞게 제목 크기 축소 */
    line-height: 1.3 !important;
  }
  
  .gift-section-wrap .title-wrap .subtitle {
    font-size: 13.5px !important; /* 서브 타이틀 크기 최적화 */
    margin-top: 6px !important;
  }
}

/* ==========================================================
   [모바일 전용] 통신사별 지원금 비교표 타이틀 크기 최적화
   ========================================================== */
@media (max-width: 768px) {
  .policy-table-section .policy-table-header .policy-table-title {
    font-size: 22px !important; /* 모바일에 알맞게 제목 크기 축소 */
    line-height: 1.3 !important;
  }
  
  .policy-table-section .policy-table-header .subtitle {
    font-size: 13.5px !important; /* 서브 안내 문구 크기 최적화 */
    margin-top: 6px !important;
    line-height: 1.4 !important;
  }
}

/* ==========================================================
   [모바일 전용] 통신사 지원금 비교표 가로 스크롤 가이드 및 최적화
   ========================================================== */
@media (max-width: 768px) {
  /* 1. 테이블을 감싸는 박스에 좌우 스크롤 시각적 인지 디자인 추가 */
  .policy-table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    border-radius: 10px !important;
  }

  /* 2. 모바일에서 우측 내용이 잘리지 않도록 테이블 최소 폭 확보 */
  .clean-policy-table {
    min-width: 580px !important; /* 👈 모바일에서 내용이 찌그러지지 않고 가로로 밀어볼 수 있게 강제 고정 */
  }

  /* 3. 테이블 위에 [👉 좌우로 밀어서 확인하세요] 안내 팁 바 추가 효과 (선택사항) */
  .policy-table-responsive::before {
    content: "👉 표를 좌우로 밀어서 자세한 혜택을 확인해보세요";
    display: block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    padding: 6px;
    border-bottom: 1px solid #bfdbfe;
  }
}

/* ==========================================================
   [모바일 전용] 하단 빠른 상담바 컴팩트 축소형 디자인
   ========================================================== */
@media (max-width: 768px) {
    #quick-consult-bar-wrapper {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 6px 10px !important; /* 여백을 대폭 줄여서 슬림하게 만듦 */
        background: #3b59f6 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
        z-index: 9998 !important;
    }

    /* 타이틀 영역 축소 */
    #quick-consult-bar-wrapper .quick-bar-title h3 {
        font-size: 13px !important;
        margin: 0 0 2px 0 !important;
        color: #fff !important;
    }

    /* 서브 문구는 공간 절약을 위해 모바일에서는 숨김 처리 */
    #quick-consult-bar-wrapper .quick-bar-sub {
        display: none !important; 
    }

    /* 입력창 및 버튼 높이 및 폰트 축소 */
    #quick-consult-bar-wrapper .qb-input {
        height: 32px !important;
        font-size: 12px !important;
        padding: 0 6px !important;
    }

    #quick-consult-bar-wrapper .qb-submit-btn {
        height: 32px !important;
        font-size: 12px !important;
        font-weight: bold !important;
    }

    /* 개인정보 동의 글자 크기 축소 */
    #quick-consult-bar-wrapper .quick-bar-agreement {
        font-size: 10.5px !important;
        margin-top: 4px !important;
        color: #e0e7ff !important;
    }
}

/* ==========================================================
   [통합 프리미엄 헤더 & 햄버거 메뉴 CSS 표준]
   ========================================================== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
  background: #f8fafc;
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 95px !important; 
}

/* 최상단 띠배너 */
.pro-top-banner {
  position: sticky !important;
  top: 0 !important;
  z-index: 1001 !important; /* 헤더보다 위에 오도록 z-index 높임 */
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #f8fafc;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  letter-spacing: -0.3px;
}
.pro-top-banner span.highlight {
  color: #38bdf8;
  font-weight: 900;
}

/* 프로 헤더 바 */
.pro-header {
  position: sticky;
  top: 34px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid #e2e8f0;
}
.pro-header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 로고 영역 */
.pro-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.pro-logo-title {
  font-size: 14px;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.5px;
}
.pro-logo-badge {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* PC용 중앙 CTA 및 우측 전화번호 박스 */
.pro-core-cta { display: flex; align-items: center; gap: 8px; }
.pro-cta-btn {
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: all 0.2s ease;
}
.pro-cta-compare { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25); }
.pro-cta-gift { background: #f8fafc; color: #0f172a; border: 1.5px solid #cbd5e1; }

.pro-phone-box a {
  display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #ea580c, #c2410c); color: #fff; padding: 7px 16px; border-radius: 50px; text-decoration: none; box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}
.pro-phone-sub { display: block; font-size: 9.5px; font-weight: 600; color: #ffedd5; line-height: 1; }
.pro-phone-num { font-size: 15px; font-weight: 900; }

/* 💡 대기업 스탠다드 햄버거 버튼 (기본은 PC에서 숨김) */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hamburger-icon {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

/* 하단 통신사 네비게이션 바 (PC 버전) */
.pro-carrier-nav { background: #f8fafc; border-top: 1px solid #f1f5f9; }
.pro-carrier-nav .menu {
  max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.pro-carrier-nav .menu a {
  padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #475569; background: #ffffff; border: 1px solid #e2e8f0; text-decoration: none; transition: all 0.2s;
}
.pro-carrier-nav .menu a.menu-home { background: #e2e8f0; color: #0f172a; }

/* 브랜드별 컬러 호버 */
.pro-carrier-nav .menu a.nav-kt:hover, .pro-carrier-nav .menu a.nav-kt.active { background: #0284c7 !important; color: #fff !important; border-color: #0284c7 !important; }
.pro-carrier-nav .menu a.nav-sk:hover, .pro-carrier-nav .menu a.nav-sk.active { background: #ef4444 !important; color: #fff !important; border-color: #ef4444 !important; }
.pro-carrier-nav .menu a.nav-lg:hover, .pro-carrier-nav .menu a.nav-lg.active { background: #db2777 !important; color: #fff !important; border-color: #db2777 !important; }
.pro-carrier-nav .menu a.nav-sky:hover, .pro-carrier-nav .menu a.nav-sky.active { background: #10b981 !important; color: #fff !important; border-color: #10b981 !important; }
.pro-carrier-nav .menu a.nav-skpop:hover, .pro-carrier-nav .menu a.nav-skpop.active { background: #f97316 !important; color: #fff !important; border-color: #f97316 !important; }
.pro-carrier-nav .menu a.nav-hello:hover, .pro-carrier-nav .menu a.nav-hello.active { background: #ec4899 !important; color: #fff !important; border-color: #ec4899 !important; }

/* ==========================================================
   [KT 스타일 모바일 풀스크린 풀커버 메뉴 & 우측 X 닫기 버튼]
   ========================================================== */
@media (max-width: 960px) {
  /* 평소에는 모바일에서 헤더의 햄버거 버튼 노출 */
  .hamburger-btn { 
    display: flex !important; 
  }
  .pro-core-cta, .pro-phone-box, .pro-logo-badge { 
    display: none !important; 
  }

  /* 햄버거 버튼이 눌려서 .menu-nav에 active가 붙으면 화면 전체를 앱처럼 완전 덮음 */
  .menu-nav.active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 99999 !important; /* 상단 띠배너 아래부터 혹은 화면 전체 풀 커버 */
    overflow-y: auto !important;
    padding: 70px 20px 30px 20px !important; /* 상단 X 닫기 버튼을 위한 여백 확보 */
    box-sizing: border-box !important;
    animation: fadeInMenu 0.2s ease-out forwards;
  }

  /* 풀스크린 내부 메뉴 리스트 세로 정렬 및 디자인 대폭 개선 */
  .menu-nav.active .menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .menu-nav.active .menu a {
    width: 100% !important;
    justify-content: center !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
  }
  
  .menu-nav.active .menu a.menu-home {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
  }

  .menu-nav.active .menu a:hover,
  .menu-nav.active .menu a.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
  }
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 💡 풀스크린 열렸을 때 우측 상단에 띄울 ✕ 닫기 버튼 스타일 */
.mobile-close-btn {
  display: none;
}

@media (max-width: 960px) {
  .menu-nav.active .mobile-close-btn {
    display: flex !important;
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent !important; /* 배경 투명 처리 */
    border: none !important;            /* 테두리 없음 */
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 26px !important;         /* ✕ 기호 크기를 시원하게 확대 */
    font-weight: 700 !important;
    color: #0f172a !important;          /* 다크 네이비 텍스트 색상 */
    cursor: pointer;
    z-index: 100000;
    box-shadow: none !important;        /* 그림자 제거 */
    padding: 0;
  }
  
  /* 마우스나 터치 시 아주 은은한 효과만 부여 */
  .menu-nav.active .mobile-close-btn:active {
    opacity: 0.6;
  }
}
/* ==========================================================
   [모바일 열린 메뉴 전용] 상단 핵심 CTA 2개 배너 스타일
   ========================================================== */
/* PC에서는 기본적으로 숨김 */
.mobile-menu-top-ctas {
  display: none;
}

@media (max-width: 960px) {
  /* 모바일에서 메뉴가 열렸을 때(.menu-nav.active) 상단에 노출 */
  .menu-nav.active .mobile-menu-top-ctas {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 1줄에 2개 나란히 배치 */
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding-top: 5px;
  }

  .mob-cta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 8px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    word-break: keep-all;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  }

  /* 1번 배너: 최대혜택 비교 (붉은색 포인트) */
  .mob-cta-compare {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25) !important;
  }

  /* 2번 배너: 가전특가 (화이트 & 깔끔한 테두리 포인트) */
  .mob-cta-gift {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
  }
}

/* ==========================================================
   [전문 디자이너 감성] 우측 하단 플로팅 바 (위/아래 이동 버튼 추가)
   ========================================================== */
.floating {
  position: fixed;
  right: 20px;
  bottom: 115px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.floating a, 
.floating button.scroll-dir-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating a:hover,
.floating button.scroll-dir-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.floating .call { background: var(--primary-color); }
.floating .reserve { background: #fee500; color: #191919 !important; }

/* 💡 새로 추가되는 상/하 방향 이동 버튼 스타일 (모던 글래스모피즘 & 다크네이비 포인트) */
.floating .scroll-dir-btn {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 16px;
}

.floating .scroll-dir-btn:hover {
  background: #0f172a !important;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
  .floating {
    right: 14px;
    bottom: 95px;
    gap: 8px;
  }
  .floating a, 
  .floating button.scroll-dir-btn {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }
}

.compare-filter-wrap {
    max-width: 1200px;
    margin: 20px auto 30px auto;
    padding: 0 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.group-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    border: none;
    cursor: pointer;
    padding: 10px 18px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* 💡 선택된 버튼 전용 오렌지 그라데이션 액티브 스타일 */
.filter-btn.active {
    background: linear-gradient(135deg, #ff6b00, #ff4500);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* 서브 버튼 공통 스타일 (오렌지 액티브 적용) */
.sub-btn {
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    background: #ffffff;
    color: #475569;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.2s;
}
.sub-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.sub-btn.active {
    background: linear-gradient(135deg, #ff6b00, #ff4500) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255,107,0,0.3) !important;
}

/* 1. 대분류 버튼 크기 키우기 (TOP 3 랭킹 타이틀과 동일하게) */
.main-filter-btn {
    font-size: 21px !important; /* 글자 크기 확대 */
    padding: 14px 16px !important; /* 버튼 높이 및 여백 조절 */
}

/* 2. 하부 서브 탭 및 통신사/속도 선택 버튼 폰트 키우기 */
.sub-btn {
    font-size: 17px !important; /* 기존 13px에서 14px로 확대 */
    font-weight: 800 !important; /* 폰트를 더 굵게 묵직하게 */
    padding: 10px 18px !important; /* 터치하기 좋게 패딩 살짝 확대 */
}

/* 서브 탭 안내 타이틀 폰트도 함께 깔끔하게 정돈 */
.sub-filter-box > div:first-child {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #334155 !important;
}

/* ==========================================================
   📱 2단 하이브리드 필터 모바일 반응형 최적화
   ========================================================== */

@media (max-width: 768px) {
    /* 1. 필터 전체 박스 여백 조절 (모바일 화면 좌우 여백 확보) */
    .compare-filter-wrap,
    .hybrid-filter-wrap {
        padding: 0 10px !important;
        margin: 15px auto !important;
    }

    /* 2. 대분류 버튼(속도별 vs 통신사별) 폰트 및 패딩 최적화 */
    .hybrid-main-btn,
    .filter-main-group button {
        font-size: 13px !important;
        padding: 10px 6px !important;
        border-radius: 10px !important;
    }

    /* 3. 서브 탭 컨테이너 박스 패딩 축소 */
    .sub-filter-box,
    .hybrid-sub-box {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    /* 4. 서브 탭 안내 타이틀 폰트 크기 축소 */
    .sub-filter-box > div:first-child,
    .hybrid-sub-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    /* 5. 하위 버튼(속도 및 통신사 버튼들) 모바일 맞춤 크기 조절 */
    .sub-btn {
        font-size: 12px !important;
        padding: 7px 10px !important;
        border-radius: 8px !important;
        flex: 1 1 auto; /* 모바일에서 공간에 맞춰 유연하게 늘어나도록 설정 */
        text-align: center;
    }

    /* 6. 비교표 상단 타이틀 폰트 크기 조절 (모바일에서 두 줄 넘어가도 이쁘게) */
    .policy-table-title, 
    #policyDynamicRenderArea h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        word-break: keep-all;
    }
}


    /* 1단계 속도 버튼 기본 스타일 (세련된 라이트 블루 그레이) */
    .compare-filter-wrap .speed-btn {
        padding: 10px 16px; 
        border: 1.5px solid #cbd5e1; 
        background: #ffffff; 
        color: #475569; 
        font-weight: 700; 
        font-size: 14px;
        border-radius: 10px; 
        cursor: pointer;
        transition: all 0.2s ease;
    }
    /* 1단계 활성화 시 (강렬한 일렉트릭 블루 그라데이션) */
    .compare-filter-wrap .speed-btn.active {
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        color: #fff !important;
        border-color: #1d4ed8 !important;
        box-shadow: 0 4px 14px rgba(37,99,235,0.35);
        transform: translateY(-1px);
    }

    /* 2단계 통신사 버튼 기본 스타일 (모던 슬레이트 톤으로 1단계와 확실히 차별화) */
    .compare-filter-wrap .carrier-btn {
        padding: 10px 16px; 
        border: 1.5px solid #cbd5e1; 
        background: #ffffff; 
        color: #334155; 
        font-weight: 700; 
        font-size: 14px;
        border-radius: 10px; 
        cursor: pointer;
        transition: all 0.2s ease;
    }
    /* 2단계 활성화 시 (시크하고 무게감 있는 다크 네이비/블랙 톤) */
    .compare-filter-wrap .carrier-btn.active {
        background: linear-gradient(135deg, #0f172a, #1e293b) !important;
        color: #fff !important;
        border-color: #0f172a !important;
        box-shadow: 0 4px 14px rgba(15,23,42,0.35);
        transform: translateY(-1px);
    }

    .compare-filter-wrap .filter-btn:hover {
        border-color: #94a3b8;
    }

    /* ========================================================= */
/* [모바일 전용 하이브리드 필터 최적화 스타일]                    */
/* ========================================================= */
@media screen and (max-width: 768px) {
    /* 필터 전체 감싸는 박스 여백 모바일 맞춤 조정 */
    .compare-filter-wrap {
        margin: 15px 10px !important;
        padding: 0 !important;
    }
    
    /* 필터 내부 패딩 살짝 슬림하게 조정 */
    .compare-filter-wrap > div {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }

    /* 상단 후킹 타이틀 및 배지 모바일 줄바꿈 정돈 */
    .compare-filter-wrap .filter-top-title {
        font-size: 17px !important;
    }

    /* 1단계, 2단계 버튼들 모바일에서 터치하기 편하게 배치 및 폰트 크기 최적화 */
    #unifiedSpeedTabs, #unifiedCarrierTabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 모바일에서 3개씩 꽉 차게 배치 */
        gap: 6px !important;
    }

    /* '전체상품'이나 '전체 통신사' 같은 긴 버튼은 첫 줄을 가득 꽉 채우도록(2칸 차지) 설정 */
    #unifiedSpeedTabs button:first-child,
    #unifiedCarrierTabs button:first-child {
        grid-column: span 3 !important;
    }

    /* 필터 버튼 내부 글자 크기와 패딩 모바일 최적화 */
    .compare-filter-wrap .filter-btn,
    .compare-filter-wrap .speed-btn,
    .compare-filter-wrap .carrier-btn {
        width: 100% !important;
        padding: 9px 4px !important;
        font-size: 13px !important;
        text-align: center !important;
        border-radius: 8px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 섹션 타이틀 (01 속도별 혜택 비교 등) 폰트 크기 모바일 눈높이에 맞춤 */
    .compare-filter-wrap .section-label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    /* 1. '내게 맞는 최대 혜택 비교' 메인 타이틀 크기 및 여백 최적화 */
    .compare-filter-wrap h2, 
    .compare-filter-wrap div[style*="font-size: 22px"],
    .compare-filter-wrap div[style*="font-size: 20px"] {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    /* 2. 우측/하단 안내 문구 ("✨ 속도별 · 통신사별 혜택을 실시간으로 비교해보세요.") 크기 및 줄바꿈 최적화 */
    .compare-filter-wrap div[style*="font-size: 13px"],
    .compare-filter-wrap div[style*="font-size: 14px"] {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    /* 3. 타이틀 영역을 감싸는 상단 헤더 박스 정렬 모바일 맞춤 (Flex 세로 정렬 등) */
    .compare-filter-wrap > div > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}
@media screen and (max-width: 768px) {
    /* 1. 가로 스크롤을 유발하는 부모 영역의 오버플로우 강제 해제 */
    .policy-table-responsive, 
    div[style*="overflow-x"] {
        width: 100% !important;
        overflow-x: visible !important;
    }

    /* 2. 테이블 태그들을 블록 형태로 풀어주기 */
    table, thead, tbody, tr, th, td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. 상단 헤더(제목 행)는 숨김 */
    table thead {
        display: none !important;
    }

    /* 4. 각 데이터 행(tr)을 개별 프리미엄 카드 박스로 완벽 변환 */
    table tbody tr {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
        padding: 16px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important;
    }

    /* 5. 각 셀(td)을 가로 밀기 없이 세로로 예쁘게 정렬 */
    table tbody tr td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-align: right !important;
        font-size: 14px !important;
    }

    /* 마지막 셀(버튼 영역) 정렬 및 여백 조정 */
    table tbody tr td:last-child {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        border-bottom: none !important;
        padding-top: 14px !important;
        margin-top: 6px !important;
        border-top: 1px dashed #cbd5e1 !important;
    }

    /* 💡 버튼들을 블록(Block)으로 세로 정렬하고 width를 90%로 주어 좌우 여백 확보 */
    table tbody tr td:last-child a,
    table tbody tr td:last-child button,
    table tbody tr td:last-child div {
        display: block !important;       /* 세로로 한 줄씩 차지하도록 강제 */
        width: 90% !important;           /* 카드 폭보다 살짝 안으로 들어오게 (90%) */
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 5px auto !important;     /* 위아래 간격 5px, 좌우 auto로 완벽한 중앙 정렬 */
        text-align: center !important;
        padding: 10px 16px !important;   /* 버튼 내부 여백 슬림하게 조정 */
        border-radius: 8px !important;
    }

    /* 첫 번째 셀(통신사/상품명)은 상단에 크고 굵게 강조 */
    table tbody tr td:first-child {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        border-bottom: 2px solid #e2e8f0 !important;
        padding-bottom: 10px !important;
        margin-bottom: 6px !important;
        justify-content: flex-start !important;
    }
}

.result-box-appliance { border: 2px solid #2563eb; background: #eff6ff; cursor: pointer; }
.result-box-appliance .result-label { color: #1d4ed8; }
.result-box-appliance .result-value { color: #2563eb; font-size: 18px; }

.appliance-section { display: none; margin-top: 24px; padding: 20px; background: #f8fafc; border-radius: 12px; }
.appliance-section h3 { margin-bottom: 14px; font-size: 18px; }
.appliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

.app-item-card { cursor: pointer; padding: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; transition: 0.2s; }
.app-item-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.1); }
.app-item-model { font-size: 12px; color: #64748b; margin-top: 4px; }
.app-item-pay { color: #2563eb; font-weight: 700; margin-top: 6px; }

.appliance-more-wrap { text-align: center; margin-top: 16px; }
.appliance-more-btn { padding: 10px 20px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-weight: 700; }
.appliance-notice { font-size: 13.5px; color: #1e40af; background: #dbeafe; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

.app-item-img-box { width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.app-item-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ==========================================================
   [2026-11-19 추가] skpop.php 인라인 <style> 에서 옮겨온 규칙
   - main.css 에 없던 것만 옮김 (나머지는 이미 있음)
   - 가전 사은품(skpop 포함 6개 페이지) UI 보강
   ========================================================== */

/* SK팝 유심 카드 3열 */
.mobile-sim-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-sim-card .card-memo {
  font-size: 16px;
  color: #e11d48;
  font-weight: 700;
  margin: 2px 0;
}

.mobile-sim-card .card-price {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.3;
}

/* 이벤트 배너 래퍼 (5개 페이지가 이 클래스를 씀) */
.benefits-wrapper.single-banner {
  display: block;
  width: 100%;
}

/* 푸터 특징 아이콘 (18곳에서 사용) */
.feature-item .icon {
  font-size: 16px;
}

/* 모바일: 유심 카드 2열 */
@media (max-width: 768px) {
  .mobile-sim-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .mobile-sim-card {
    padding: 10px 6px !important;
    min-height: 75px !important;
  }
  .mobile-sim-card .card-title {
    font-size: 13px !important;
  }
  .mobile-sim-card .card-memo {
    font-size: 11px !important;
  }
  .mobile-sim-card .card-price {
    font-size: 10px !important;
  }
  .feature-item .icon {
    font-size: 16px !important;
  }
}

/* 가전 사은품 UI 마무리 (2026-11-19) */
.appliance-loading { padding: 18px; text-align: center; color: #64748b; font-size: 14px; }
.appliance-picked { margin: 0 0 12px 0; font-size: 14px; color: #1d4ed8; font-weight: 700; }
.app-item-card.picked { border: 2px solid #2563eb; background: #eff6ff; }

/* ==========================================================
   [2026-11-19] 6개 상품 페이지 인라인 style → 클래스 완전 이관
   대상: kt.php, sk.php, lg.php, sky.php, hello.php, skpop.php
   - 결과 박스(현금/가전 사은품) 폰트 기준 = sk.php / lg.php
     · 라벨 14px / 600, 금액 22px / 800 (모바일 13px / 600, 20px / 800)
   - JS가 style.display 를 직접 읽고 토글하는 요소(신청박스·모달·약관·
     옵션 영역)는 CSS 기본값만 display:none 으로 두고, 표시는 기존처럼
     JS 인라인(display:block/flex)이 덮어쓰도록 유지한다.
   ========================================================== */

/* ---------- 1. 헤더 / 푸터 로고 ---------- */
.pro-logo-img { height: 34px; width: auto; object-fit: contain; }
.footer-logo-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.footer-logo-link { display: inline-block; }
.footer-logo { height: 40px; width: auto; object-fit: contain; }

/* ---------- 2. 섹션 여백 / 페이지 제목 ---------- */
.carrier-select-section { padding-bottom: 10px; }
.page-main-section { padding-top: 10px; }
.page-title { font-size: 26px; font-weight: 800; line-height: 1.35; margin: 40px 0; }
.page-title--tight { margin-top: 10px; margin-bottom: 20px; }
.page-title--hello { font-size: 24px; font-weight: 800; margin: 0 0 25px 0; text-align: center; }

/* ---------- 3. WIFI 안내 ---------- */
.wifi-label { font-weight: 700; font-size: 16px; }
.wifi-label.is-blue { color: #2b82f6; }
.wifi-label-inline { display: inline; cursor: pointer; }
.wifi-check { transform: scale(1.2); }
.wifi-check.is-hidden { display: none; }
#wifiOptionWrapper { display: none; }
#wifiDefaultWrapper { display: none; font-weight: 700; font-size: 16px; color: #666; }

/* ---------- 4. 옵션 영역 초기 숨김 (JS가 display:block 으로 연다) ---------- */
#tvOptions,
#mobileOptions,
#phoneOptions,
#mobileBindOptions { display: none; }

/* ---------- 5. 결과 요약 박스 : SK/LG 기준 폰트 통일 ---------- */
.result-box .result-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.result-box .result-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
#result_support { cursor: pointer; }
.result-box--hidden { display: none; }

/* 가전 사은품 박스 : 라벨은 현금 사은품 라벨과 동일한 14px/600, 안내문은 16px/700 */
.result-box-appliance { border: 2px solid #2563eb; background: #eff6ff; cursor: pointer; }
.result-box-appliance .result-label { color: #1d4ed8; font-size: 14px; font-weight: 600; }
.result-box-appliance .result-value { color: #2563eb; font-size: 16px; font-weight: 700; }

/* 모바일 : 3개 박스 세로 정렬 시에도 라벨/금액 굵기 유지 */
@media (max-width: 768px) {
  .result-box .result-label { font-weight: 600 !important; }
  .result-box .result-value { font-weight: 800 !important; }
  .result-box-appliance .result-value { font-size: 16px !important; font-weight: 700 !important; }
}

/* ---------- 6. 인라인 가입 신청 박스 ---------- */
.apply-box {
  display: none;
  background: #ffffff;
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 25px;
  margin: 20px 0 30px;
  text-align: left;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}
.apply-box-title {
  margin: 0;
  color: #15803d;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  font-size: 18px;
}
.apply-notice {
  margin: 15px 0;
  background: #f0fdf4;
  padding: 15px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
}
.apply-field { margin-bottom: 12px; }
.apply-field--last { margin-bottom: 15px; }
.apply-label {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
  color: #374151;
}
.apply-input {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
}
.apply-textarea {
  width: 100%;
  height: 80px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  resize: vertical;
  color: #9ca3af;
}
.apply-agree-box {
  margin-bottom: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}
.apply-agree-row { display: flex; align-items: center; justify-content: space-between; }
.apply-agree-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}
.apply-agree-check { width: 18px; height: 18px; margin-right: 8px; cursor: pointer; }
.terms-toggle-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  padding: 5px;
}
.terms-content {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  text-align: left;
}
.apply-btn-row { display: flex; gap: 10px; }
.btn-apply-submit,
.btn-apply-cancel {
  flex: 1;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}
.btn-apply-submit { background: #22c55e; }
.btn-apply-cancel { background: #9ca3af; }

/* ---------- 7. 알림 모달 / 개인정보 동의 모달 ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay--privacy { z-index: 10000; }
.modal-card {
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.modal-brand { font-size: 18px; font-weight: 700; color: #15803d; margin-bottom: 10px; }
.modal-message {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
}
.modal-confirm-btn {
  width: 100%;
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}
.privacy-card {
  background: #fff;
  width: 90%;
  max-width: 450px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-family: 'Pretendard', sans-serif;
  position: relative;
}
.privacy-title { margin: 0 0 15px 0; font-size: 16px; color: #191919; font-weight: 700; }
.privacy-body {
  font-size: 12.5px;
  color: #4a4a4a;
  line-height: 1.6;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 6px;
}
.privacy-confirm-btn {
  width: 100%;
  height: 40px;
  background: #191919;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.privacy-open-link { cursor: pointer; }

/* ---------- 8. 푸터 ---------- */
.footer-admin-wrap { margin-top: 20px; text-align: center; }
.footer-admin-link {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-admin-link:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.footer-copyright { margin-top: 16px; }

/* ---------- 9. skpop 전용 ----------
   주의: 원래 인라인에 있던 두 선언은 .option/.card-group 의 !important 규칙에
   밀려 실제로는 적용되지 않던 값이다. 렌더링 결과를 바꾸지 않기 위해
   !important 없이 그대로 옮겨 둔다(현재 화면 = 이전 화면). */
.option--spaced { margin-bottom: 20px; }
.card-group--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

@media (max-width: 768px) {
  .clean-policy-table { min-width: 0 !important; width: 100% !important; }
  .policy-table-responsive::before { display: none !important; }
  table tbody tr td:last-child div {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 10px 0 0 0 !important;
  }
  table tbody tr td:last-child a,
  table tbody tr td:last-child button {
    flex: 1 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 11px 8px !important;
    font-size: 14px !important;
  }
  .floating { bottom: 155px !important; }
}