@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #E8001D;
  --primary-dark: #B50016;
  --primary-light: #FF1A35;
  --black: #1A1A1A;
  --dark-gray: #333333;
  --gray: #666666;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --kakao: #FEE500;
  --kakao-dark: #E6CE00;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-strong: 0 8px 32px rgba(0,0,0,0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #F0F0F0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 스플래시 스크린 ===== */
.splash-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1A1A1A 0%, #2D0007 50%, #E8001D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: splashFadeOut 0.5s ease 2.5s forwards;
  pointer-events: all;
}

@keyframes splashFadeOut {
  to { opacity: 0; pointer-events: none; }
}

.splash-content {
  text-align: center;
  animation: splashIn 0.8s ease;
}

@keyframes splashIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.splash-logo {
  width: 75%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 30px rgba(232,0,29,0.5));
}

.splash-tagline {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.loading-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  animation: loadingAnim 2.5s ease forwards;
}

@keyframes loadingAnim {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== 앱 컨테이너 ===== */
.app {
  max-width: 430px;
  margin: 0 auto;
  background: var(--light-gray);
  min-height: 100vh;
  position: relative;
  padding-bottom: 140px;
  display: block;
}

/* ===== 헤더 ===== */
.header {
  background: var(--black);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 44px;
  filter: brightness(0) invert(1);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,0,29,0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ===== 긴급 배너 ===== */
.emergency-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: filter 0.2s;
}

.emergency-banner:active { filter: brightness(0.9); }

.banner-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
  animation: shake 2s ease infinite;
}

@keyframes shake {
  0%, 90%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-10deg); }
  96% { transform: rotate(10deg); }
}

.banner-text {
  flex: 1;
  color: white;
}
.banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}
.banner-text span {
  font-size: 12px;
  opacity: 0.9;
}

.banner-arrow {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

/* ===== 메인 컨텐츠 ===== */
.main-content {
  padding: 20px 16px;
}

.section-title {
  margin-bottom: 18px;
}
.section-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
}
.section-title p {
  font-size: 13px;
  color: var(--gray);
}

/* ===== 서비스 그리드 ===== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid transparent;
}

.service-card:active {
  transform: scale(0.96);
  box-shadow: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
}

.service-card:nth-child(1)::before { background: var(--primary); }
.service-card:nth-child(2)::before { background: var(--black); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.search-icon {
  background: linear-gradient(135deg, #FFE5E8, #FFBDC5);
  color: var(--primary);
}

.capture-icon {
  background: linear-gradient(135deg, #E8E8E8, #CCCCCC);
  color: var(--black);
}

.card-content h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
}

.card-content p {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.5;
}

.card-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  color: #CCCCCC;
  font-size: 12px;
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.kakao-card::before { background: var(--kakao-dark); }
.call-card::before { background: #00C851; }
.insta-card::before { background: #C13584; }
.blog-card::before { background: #03C75A; }

.kakao-icon {
  background: linear-gradient(135deg, #FFF5C0, var(--kakao));
  color: #3A1D1D;
}

.call-icon {
  background: linear-gradient(135deg, #C8F5DA, #7DEDA4);
  color: #006B2B;
}

/* 인스타그램 아이콘 */
.insta-icon {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  font-size: 28px;
}

/* 네이버 블로그 아이콘 */
.blog-icon {
  background: #03C75A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.naver-n {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  font-family: 'Arial Black', sans-serif;
}

/* 유튜브 아이콘 */
.youtube-icon {
  background: #FF0000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.youtube-icon svg { width: 44px; height: 44px; }

/* 홈페이지 아이콘 */
.homepage-icon {
  background: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.homepage-icon svg { width: 44px; height: 44px; }

.kakao-badge { background: var(--kakao-dark); color: var(--black); }
.call-badge { background: #00C851; }

/* ===== 특징 섹션 ===== */
.features-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* SNS 섹션 — 전문장비 섹션과 동일 스타일 */
.sns-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.sns-grid {
  gap: 12px;
}

.features-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
}

.feature-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

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

.rental-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #FF8C00, #E8001D);
  border-radius: 10px;
  color: #fff;
  font-size: 22px;
}

/* 드론 SVG 아이콘 */
.drone-m4t-icon, .drone-avata-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.drone-m4t-icon svg, .drone-avata-icon svg {
  width: 44px;
  height: 44px;
}

/* IOT 원격포획 아이콘 */
.iot-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #00B4D8, #0077B6);
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CCTV 장비렌탈 아이콘 */
.cctv-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #444, #1A1A1A);
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 2px;
}

.feature-text span {
  font-size: 10px;
  color: var(--gray);
}

/* ===== 통계 섹션 ===== */
.stats-section {
  background: linear-gradient(135deg, var(--black) 0%, #3D0010 100%);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow-strong);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number span {
  font-size: 16px;
  color: var(--primary);
}

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ===== 후기 섹션 ===== */
.review-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.review-section h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-section h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.review-slider {
  position: relative;
  min-height: 100px;
}

.review-card {
  display: none;
  animation: fadeIn 0.4s ease;
}

.review-card.active { display: block; }

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

.review-stars {
  color: #FFC107;
  font-size: 14px;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 13px;
  color: var(--dark-gray);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 10px;
}

.review-author {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

.review-date {
  font-size: 10px;
  color: #bbb;
  margin-top: 4px;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #DDDDDD;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* ===== 배너 이미지 ===== */
.banner-section {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ===== 하단 CTA ===== */
.bottom-cta {
  position: fixed;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 398px;
  z-index: 50;
}

.cta-button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(232,0,29,0.4);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.cta-button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(232,0,29,0.3);
}

/* ===== 하단 내비게이션 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-top: 1px solid #EEEEEE;
  display: flex;
  padding: 8px 0 12px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  transition: all 0.2s;
}

.nav-item i {
  font-size: 20px;
  color: #BBBBBB;
  transition: all 0.2s;
}

.nav-item span {
  font-size: 10px;
  color: #BBBBBB;
  font-weight: 500;
}

.nav-item.active i { color: var(--primary); }
.nav-item.active span { color: var(--primary); font-weight: 700; }

/* ===== 비용안내 모달 ===== */
.price-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 600;
  align-items: flex-end;
  justify-content: center;
}
.price-modal.show { display: flex; }
.price-modal-inner {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.price-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.price-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #1A1A1A;
}
.price-modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: #f5f5f5; border-radius: 50%;
  cursor: pointer; font-size: 14px; color: #666;
}
.price-modal-body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* ===== 모달 ===== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal.open { display: flex; }

.modal-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #F0F0F0;
  z-index: 1;
}

.modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.search-modal-icon {
  background: linear-gradient(135deg, #FFE5E8, #FFBDC5);
  color: var(--primary);
}

.capture-modal-icon {
  background: linear-gradient(135deg, #E8E8E8, #CCCCCC);
  color: var(--black);
}

.modal-header h2 {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--light-gray);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.animal-select p {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.animal-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.animal-btn {
  padding: 8px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 20px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
}

.animal-btn.active {
  border-color: var(--primary);
  background: #FFF0F2;
  color: var(--primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i { color: var(--primary); }

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 2px solid #E8E8E8;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  background: #FAFAFA;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  height: 90px;
  resize: none;
  line-height: 1.6;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 20px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(232,0,29,0.3);
}

.capture-submit {
  background: linear-gradient(135deg, var(--black), #3D0010);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ===== 토스트 ===== */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--black);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 9999;
  white-space: nowrap;
}

.toast i { color: #4CAF50; }

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 스크롤바 숨기기 */
::-webkit-scrollbar { display: none; }

/* ===== 결제 모달 ===== */
.pay-tab-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.pay-tab {
  flex: 1;
  padding: 12px 8px;
  border: 2px solid #eee;
  background: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pay-tab.active {
  border-color: #E8001D;
  color: #E8001D;
  background: #fff5f5;
}
.pay-bank-box {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border: 1.5px solid #e9ecef;
}
.pay-bank-logo { font-size: 32px; }
.pay-bank-info { flex: 1; }
.pay-bank-name { font-size: 13px; color: #888; margin-bottom: 4px; }
.pay-bank-num { font-size: 20px; font-weight: 900; color: #1a1a1a; letter-spacing: 1px; }
.pay-bank-holder { font-size: 12px; color: #666; margin-top: 4px; }
.pay-copy-btn {
  background: #E8001D;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pay-notice {
  background: #fff8e1;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: #555;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  line-height: 1.6;
}
.pay-notice i { color: #FFA000; margin-top: 2px; flex-shrink: 0; }
.pay-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
}
.pay-amount-section { margin-bottom: 16px; }
.pay-amount-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pay-amount-input {
  flex: 1;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  transition: border 0.2s;
}
.pay-amount-input:focus { border-color: #E8001D; }
.pay-won { font-size: 16px; font-weight: 700; color: #333; }
.pay-confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, #E8001D, #B50016);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.pay-confirm-btn:active { filter: brightness(0.9); }
.pay-card-notice {
  background: #f0f7ff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 18px;
  border: 1.5px solid #d0e8ff;
}

/* 5탭 하단 네비 글씨 작게 */
.bottom-nav .nav-item span { font-size: 10px; }

/* 카드사 배지 */
.card-badge {
  background: #f0f2f5;
  border: 1px solid #dde1e7;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}
.card-badge.urgent { background: #E8001D; color: #fff; border-color: #E8001D; }
.card-badge.expert { background: #E8001D; color: #fff; border-color: #E8001D; }
.card-badge.kakao-badge { background: #1565C0; color: #fff; border-color: #1565C0; }
.card-badge.call-badge { background: #1565C0; color: #fff; border-color: #1565C0; }

/* ===== 사업자정보 푸터 ===== */
.biz-footer {
  background: #1a1a1a;
  padding: 28px 20px 100px;
  margin-top: 24px;
}
.biz-footer-inner { max-width: 480px; margin: 0 auto; }
.biz-logo-row { margin-bottom: 14px; }
.biz-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 16px;
}
.biz-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}
.biz-links span { color: #ccc; cursor: pointer; }
.biz-links span:hover { color: #fff; text-decoration: underline; }
.biz-links .sep { color: #555; cursor: default; }
.biz-copy { font-size: 11px; color: #555; }

/* ===== 약관 모달 ===== */
.legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  align-items: flex-end;
  justify-content: center;
}
.legal-modal.show { display: flex; }
.legal-modal-inner {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.legal-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 13px;
  color: #444;
  line-height: 1.8;
}
.legal-modal-body h3 {
  font-size: 14px;
  font-weight: 800;
  color: #222;
  margin: 18px 0 8px;
}
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body ul { padding-left: 18px; margin: 6px 0; }
.legal-modal-body li { margin-bottom: 4px; }
.legal-modal-body .highlight {
  background: #fff5f5;
  border-left: 3px solid #E8001D;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 8px 0;
}
