@font-face { font-family: 'Pretendard'; src: url('fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-style: normal; font-display: swap; }
/* ==========================================================================
   AEGISPHONE - NEUMORPHISM & MATERIAL DESIGN SYSTEM
   Professional Trust Palette: Neutral Slate Charcoal + Trust Royal Blue
   ========================================================================== */

:root {
  /* Surface & Background (Modern High-Contrast Obsidian Base) */
  --bg-base: #0b0f19;
  --bg-surface: #131c2e;
  --bg-surface-elevated: #1a253c;
  --bg-input: #0f1626;
  
  /* Neumorphic Dual Shadows (High-Definition Crisp Depth) */
  --shadow-dark: rgba(0, 0, 0, 0.8);
  --shadow-light: rgba(255, 255, 255, 0.05);
  
  --neu-flat: 4px 4px 14px var(--shadow-dark), -2px -2px 10px var(--shadow-light);
  --neu-flat-sm: 2px 2px 8px var(--shadow-dark), -1px -1px 5px var(--shadow-light);
  --neu-pressed: inset 2px 2px 6px var(--shadow-dark), inset -1px -1px 5px var(--shadow-light);
  --neu-hover: 6px 6px 18px var(--shadow-dark), -3px -3px 12px var(--shadow-light);
  
  /* Color Palette (Clean & Trustworthy: Royal Blue & Luminous Cyan) */
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-light: #38bdf8; /* Luminous Vivid Cyan for ultra readability */
  --accent-blue-surface: rgba(37, 99, 235, 0.16);
  --accent-blue-glow: 0 0 18px rgba(56, 189, 248, 0.4);
  
  /* High-Contrast Crisp Typography (시인성 대폭 강화) */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0; /* Crisp bright silver */
  --text-muted: #94a3b8;     /* Clean slate gray, never muddy */
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-focus: #38bdf8;
  
  /* Font & Radii */
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.22s ease-in-out;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.018em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Helpers */
.text-center { text-align: center; }
.blue-text { color: var(--accent-blue-light); }
.req { color: #f87171; margin-left: 2px; }

/* Neumorphic Cards */
.neu-card {
  background: var(--bg-surface);
  box-shadow: var(--neu-flat);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  transition: var(--transition);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-light);
  font-size: 1.1rem;
  font-weight: 800;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}
.logo-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  box-shadow: var(--neu-pressed);
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Navigation Right Action Group */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 상담하기 네비게이션 버튼 */
.nav-btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
  border-radius: 9999px;
  padding: 8px 16px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.22s ease-in-out;
  white-space: nowrap;
}
.nav-btn-telegram:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
  transform: translateY(-2px);
}

/* Hamburger Toggle Button (데스크탑 & 모바일 공통 항상 표시) */
.mobile-toggle {
  display: flex !important;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: all 0.22s ease-in-out;
}
.mobile-toggle:hover {
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}
.mobile-toggle:active {
  box-shadow: var(--neu-pressed);
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Dropdown Menu (우측 정렬 & 전체 폭이 아닌 가장 긴 글자 너비 맞춤) */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  left: auto;
  width: max-content;
  min-width: 220px;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.97);
  border: 1.5px solid rgba(59, 130, 246, 0.38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 22px rgba(37, 99, 235, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  gap: 6px;
  z-index: 1000;
  backdrop-filter: blur(18px);
}
.mobile-menu.active {
  display: flex;
  animation: dropdownSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.mobile-link:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateX(-3px);
}
.mobile-btn-highlight {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5) !important;
}
.mobile-btn-highlight:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.7) !important;
}
.nav-menu-cs-link {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.15) !important;
  margin-top: 4px !important;
  padding-top: 12px !important;
}

/* Buttons (Neumorphic & Material) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: var(--neu-flat-sm), var(--accent-blue-glow);
}
.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  box-shadow: var(--neu-pressed);
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-surface-elevated);
}
.btn-secondary:active {
  box-shadow: var(--neu-pressed);
}

.btn-submit {
  width: 100%;
  padding: 16px 28px;
  font-size: 1.08rem;
  font-weight: 700;
  background: var(--accent-blue);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-flat), var(--accent-blue-glow);
  margin-top: 10px;
}
.btn-submit:hover {
  background: var(--accent-blue-hover);
}
.btn-submit:active {
  box-shadow: var(--neu-pressed);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-sm:hover {
  background: var(--accent-blue);
  color: #fff;
}
.btn-sm:active {
  box-shadow: var(--neu-pressed);
}

.btn-text-small {
  background: none;
  border: none;
  color: var(--accent-blue-light);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 6px;
}

/* Hero Section */
.hero {
  padding: 70px 0 50px;
  text-align: center;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid var(--border-subtle);
  color: var(--accent-blue-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 900px;
  color: #fff;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Forensic Recovery Proof Card (Neumorphic) */
.forensic-proof-card {
  width: 100%;
  max-width: 960px;
  margin: 20px auto 35px;
  padding: 28px 30px;
  text-align: left;
}
.proof-header {
  margin-bottom: 22px;
  text-align: center;
}
.proof-header h3 {
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
  margin: 6px 0 8px;
}
.proof-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 760px;
  margin: 0 auto;
}
.proof-grid {
  gap: 18px;
}
.proof-item {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}
.proof-tag {
  align-self: flex-start;
  background: var(--accent-blue-surface);
  color: var(--accent-blue-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.proof-item h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
}
.proof-item p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Android OS Spec Highlight Box (Clean Material & Neumorphic) */
.android-spec-highlight-card {
  width: 100%;
  max-width: 860px;
  margin: 10px auto 35px;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat);
  border: 1px solid var(--border-subtle);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
}
.spec-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.spec-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.android-badge {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  color: var(--accent-blue-light);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.spec-main-title {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}
.ios-incompatible-tag {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}
.spec-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.spec-chip {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chip-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.chip-value {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
}
.spec-notice-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  background: var(--bg-base);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-pressed);
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 35px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-blue-light);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Header */
.section-header {
  margin-bottom: 40px;
}
.section-tag {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent-blue-light);
  display: block;
  margin-bottom: 6px;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 6px;
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Features Section */
.features-section { padding: 50px 0; }
.card-icon-box {
  width: 44px;
  height: 44px;
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-light);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.neu-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: #fff;
}
.neu-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Legal Shield Section */
.legal-shield-section { padding: 45px 0; }
.legal-header h2 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 6px;
}
.legal-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 28px;
}
.legal-grid { gap: 28px; margin-bottom: 28px; }
.col-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-blue-light);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-blue);
}
.legal-list li strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}
.legal-alert-bar {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-blue-light);
}

/* Pricing Section */
.pricing-section { padding: 50px 0; }
.pricing-grid { gap: 28px; margin-bottom: 35px; }
.price-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.featured-price {
  border: 1px solid rgba(37, 99, 235, 0.4);
}
.featured-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--accent-blue-glow);
}
.card-tier {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
}
.currency { font-size: 1.4rem; color: var(--accent-blue-light); margin-right: 4px; }
.number { font-size: 2.5rem; font-weight: 800; color: #fff; }
.unit { font-size: 0.85rem; color: var(--text-muted); margin-left: 8px; }
.price-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  min-height: 44px;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}
.price-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Visiting Policy Box */
.visiting-policy-box {
  padding: 28px;
}
.policy-header h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 18px;
}
.policy-content { gap: 20px; }
.policy-item {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  padding: 18px 20px;
  border-radius: var(--radius-md);
}
.policy-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.blue-badge { background: var(--accent-blue-surface); color: var(--accent-blue-light); }
.gray-badge { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
.policy-item h4 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.policy-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }

/* Process Steps */
.process-section { padding: 45px 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step-card {
  background: var(--bg-surface);
  box-shadow: var(--neu-flat);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}
.step-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-blue-light);
  margin-bottom: 6px;
}
.step-card h4 { font-size: 1.05rem; color: #fff; margin-bottom: 6px; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* CONTRACT & RESERVATION SECTION */
.contract-section { padding: 60px 0 90px; }
.contract-wrapper {
  background: var(--bg-surface);
  box-shadow: var(--neu-flat);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contract-top-header {
  text-align: center;
  margin-bottom: 35px;
}
.contract-top-header h2 {
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 6px;
}
.contract-top-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Auth Gate Box */
.auth-gate-box {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}
.auth-step-pill {
  display: inline-block;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.auth-header h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 6px;
}
.auth-info-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.input-with-button {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  max-width: 520px;
}
.input-with-button input {
  flex-grow: 1;
}
.auth-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.check-icon {
  color: var(--accent-blue-light);
  font-weight: 900;
  font-size: 1.15rem;
}
.firebase-mode-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.mode-tag {
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Tabs */
.form-step-title {
  margin-bottom: 16px;
}
.tab-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.tab-btn {
  flex: 1;
  padding: 13px;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.tab-btn.active {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  color: var(--accent-blue-light);
  border-color: var(--accent-blue);
}

/* Document Previews */
.contract-doc-preview {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.doc-header h4 { font-size: 1rem; color: #fff; }
.doc-badge {
  font-size: 0.72rem;
  background: var(--accent-blue-surface);
  color: var(--accent-blue-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.doc-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.doc-body strong { color: #fff; }

/* Inline Error Messages */
.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}
.field-error-msg {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 5px;
  font-weight: 600;
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

/* Forms & Inputs (Neumorphic Inset) */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  box-shadow: var(--neu-pressed);
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
input::placeholder, textarea::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}
input[readonly] {
  background: rgba(0, 0, 0, 0.3);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

/* Dispatch Address Box (Emphasized when Dispatch is selected) */
.dispatch-address-box {
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid rgba(37, 99, 235, 0.45);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
  animation: fadeIn 0.25s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Personal Subdevices Box */
.personal-subdevices-box {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
  margin-bottom: 22px;
}
.subdevices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.subdevices-header h4 { font-size: 0.98rem; color: #fff; }
.subdevices-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.additional-toggle-row {
  margin-bottom: 8px;
}
.subdevice-count-selector {
  background: var(--bg-surface);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-flat-sm);
}
.subdevices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subdevice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.subdevice-badge {
  font-size: 0.78rem;
  background: var(--accent-blue-surface);
  color: var(--accent-blue-light);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
}
.subdevice-input {
  flex-grow: 1;
}
.subdevices-empty-notice {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 14px 0;
}

/* B2B Table */
.b2b-members-section {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
  margin-bottom: 22px;
}
.b2b-members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.b2b-members-header h4 { font-size: 0.98rem; color: #fff; }
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}
.b2b-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}
.b2b-table th, .b2b-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.b2b-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.b2b-table input {
  padding: 8px 10px;
  font-size: 0.84rem;
}
.table-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.btn-delete-row {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* Mandatory Legal Checkboxes */
.legal-checks-box {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-checks-box h4 {
  font-size: 1rem;
  color: var(--accent-blue-light);
  margin-bottom: 2px;
}
.check-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.check-container input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--accent-blue);
}
.check-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.check-label strong { color: #fff; }

/* Signature Canvas (Neumorphic Inset Pad) */
.signature-section {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 26px;
}
.sig-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sig-header label { font-size: 0.92rem; font-weight: 700; color: #fff; }
.canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 170px;
  background: var(--bg-input);
  box-shadow: var(--neu-pressed);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  touch-action: none;
}
#signaturePad {
  width: 100%;
  height: 100%;
  display: block;
}
.canvas-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
  text-align: center;
  width: 90%;
}
.sig-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Reservation & Location */
.reservation-box {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 26px;
}
.reservation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.radio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.radio-card:hover { box-shadow: var(--neu-hover); }
.radio-card input {
  margin-top: 4px;
  accent-color: var(--accent-blue);
}
.radio-card-body strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin: 4px 0 2px;
}
.radio-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.r-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.r-badge.blue { background: var(--accent-blue-surface); color: var(--accent-blue-light); }
.r-badge.gray { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }

/* Price Calculation Summary & Submit */
.summary-and-submit {
  margin-top: 26px;
}
.price-calc-summary {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 6px 0;
}
.summary-row strong { color: #fff; }
.total-row {
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 1.1rem;
}
.total-row strong { font-size: 1.3rem; color: var(--accent-blue-light); }
.submit-security-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Modal Dialog */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-dialog {
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-success-badge {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-blue-light);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}
.receipt-card {
  background: var(--bg-base);
  box-shadow: var(--neu-pressed);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.receipt-line strong { color: #fff; }
.encryption-stamp {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-base);
  border-left: 3px solid var(--accent-blue);
  font-size: 0.8rem;
  color: var(--accent-blue-light);
  word-break: break-all;
  border-radius: 4px;
}
.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}

/* Footer */
.footer {
  background: #14171f;
  border-top: 1px solid var(--border-subtle);
  padding: 45px 0;
  color: var(--text-muted);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.footer-info p {
  font-size: 0.82rem;
  max-width: 600px;
  line-height: 1.55;
}
.copyright {
  margin-top: 8px;
  font-size: 0.78rem;
}
.footer-badge-box {
  display: flex;
  gap: 10px;
}
.badge-item {
  font-size: 0.75rem;
  background: var(--bg-base);
  box-shadow: var(--neu-flat-sm);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* RESPONSIVE DESIGN: 1024PX 이하 모바일 모드 */
@media (max-width: 1024px) {
  /* 상단 메뉴 숨김 및 햄버거 토글 활성화 */
  .nav-menu { display: none !important; }
  .mobile-toggle { display: flex !important; }
  
  .hero { padding: 45px 0 30px; }
  .hero-title { font-size: 1.85rem; line-height: 1.3; }
  .hero-desc { font-size: 0.95rem; }
  .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .stat-number { font-size: 1.55rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; }

  /* Grids to 1 Column */
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .proof-grid { grid-template-columns: 1fr !important; }
  .spec-chips-grid { grid-template-columns: 1fr !important; }
  .pricing-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .process-steps { grid-template-columns: 1fr !important; }
  .legal-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .policy-content { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .reservation-grid { grid-template-columns: 1fr !important; }
  .radio-cards { grid-template-columns: 1fr !important; }
  
  .container { padding: 0 16px; }
  .contract-wrapper { padding: 22px 14px; }
  .tab-buttons { flex-direction: column; }
  .footer-container { flex-direction: column; align-items: flex-start; gap: 20px; }
  
  .subdevices-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .subdevice-row { flex-direction: column; align-items: stretch; }
  
  /* 모바일 가로 잘림 완전 방지 (B2B 테이블 카드화) */
  .table-responsive {
    overflow: visible !important;
  }
  .b2b-table thead {
    display: none !important;
  }
  .b2b-table, .b2b-table tbody, .b2b-table tr, .b2b-table td {
    display: block !important;
    width: 100% !important;
  }
  .b2b-table tr {
    background: var(--bg-surface) !important;
    box-shadow: var(--neu-flat-sm) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
  }
  .b2b-table td {
    padding: 4px 0 !important;
    border: none !important;
    text-align: left !important;
  }
  .b2b-table td:first-child {
    font-size: 0.85rem;
    color: var(--accent-blue-light) !important;
    margin-bottom: 4px;
  }
  .b2b-table td input {
    width: 100% !important;
    margin: 2px 0;
  }
  .b2b-table .btn-delete-row {
    width: 100%;
    margin-top: 6px;
    padding: 8px;
  }

  /* 입력창 및 레이아웃 잘림 방지 */
  .input-with-button {
    flex-direction: column !important;
    max-width: 100% !important;
  }
  .input-with-button .btn {
    width: 100% !important;
  }
  .subdevice-count-selector {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .subdevice-count-selector select {
    max-width: 100% !important;
  }

  .canvas-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: 150px !important;
  }
}

/* ==========================================================================
   11. ZERO-RETENTION POLICY BANNER
   ========================================================================== */
.zero-retention-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(20, 24, 33, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: var(--neu-flat-sm);
}
.zero-retention-banner .z-icon {
  font-size: 2rem;
  line-height: 1;
}
.zero-retention-banner h4 {
  font-size: 1.05rem;
  color: #60a5fa;
  margin-bottom: 6px;
  font-weight: 700;
}
.zero-retention-banner p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   12. 1-DAY 1-CLIENT EXCLUSIVE RESERVATION CALENDAR
   ========================================================================== */
.calendar-booking-container {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-flat);
  border: 1px solid var(--border-subtle);
  padding: 22px;
  margin-bottom: 20px;
}
.calendar-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}
.badge-single-day {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-right: 8px;
  vertical-align: middle;
}
.calendar-main-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
.calendar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.calendar-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.legend-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  box-sizing: border-box;
}
.legend-box.available {
  background: var(--bg-surface);
  border: 1.5px solid #3b82f6;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.4);
}
.legend-box.booked {
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid #ef4444;
}
.legend-box.selected {
  background: #2563eb;
  border: 1.5px solid #93c5fd;
}

/* Calendar Widget Frame */
.neu-calendar-widget {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-pressed-sm);
  padding: 16px;
  border: 1px solid var(--border-subtle);
}
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cal-nav-btn {
  background: var(--bg-surface);
  border: none;
  box-shadow: var(--neu-flat-sm);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cal-nav-btn:hover {
  color: #60a5fa;
  box-shadow: var(--neu-pressed-sm);
}
.cal-current-month {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

/* Weekday header */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}
.cal-col.sun { color: #f87171; }
.cal-col.sat { color: #60a5fa; }

/* Day Cells Grid (모바일 글자 밀림 완전 방지: 텍스트 제거 및 아웃라인 표기) */
.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-day-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}
.cal-day-num {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1;
}
.cal-day-cell.empty {
  visibility: hidden;
}

/* Cell Outline States */
/* 1. 예약 가능: 블루 아웃라인 */
.cal-day-cell.available {
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  cursor: pointer;
  border: 1.5px solid #3b82f6;
}
.cal-day-cell.available:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}
.cal-day-cell.available .cal-day-num {
  color: #fff;
}

/* 2. 예약 마감 (1일 1곳 마감): 레드 아웃라인 */
.cal-day-cell.booked {
  background: rgba(239, 68, 68, 0.06);
  border: 1.5px solid #ef4444;
  cursor: not-allowed;
  opacity: 0.75;
}
.cal-day-cell.booked:hover {
  border-color: #f87171;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.cal-day-cell.booked .cal-day-num {
  color: #fca5a5;
  text-decoration: line-through;
}

/* 3. 과거 및 당일 (예약 불가): 비활성화 아웃라인 */
.cal-day-cell.disabled {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
  opacity: 0.35;
}
.cal-day-cell.disabled .cal-day-num {
  color: #475569;
}

/* 4. 선택된 날짜: 블루 채움 및 화이트/스카이블루 하이라이트 테두리 */
.cal-day-cell.selected {
  background: var(--accent-blue) !important;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.8) !important;
  border: 2px solid #93c5fd !important;
  transform: scale(1.05);
}
.cal-day-cell.selected .cal-day-num {
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
}

/* Selected Banner */
.calendar-selected-banner {
  margin-top: 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cal-check-badge {
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-right: 8px;
}
#calendarSelectedText {
  color: #fff;
  font-size: 0.92rem;
}

/* Mobile responsive for calendar (모바일 밀림 방지) */
@media (max-width: 768px) {
  .cal-days-grid {
    gap: 4px;
  }
  .cal-day-cell {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    min-height: unset;
    border-radius: 4px;
  }
  .cal-day-num {
    font-size: 0.9rem;
  }
  .calendar-booking-header {
    flex-direction: column;
  }
  .calendar-legend {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   13. FLOATING TELEGRAM CS BUTTON & NAVBAR TELEGRAM LINK
   ========================================================================== */
.nav-btn-telegram {
  background: rgba(37, 99, 235, 0.15) !important;
  border: 1px solid #3b82f6 !important;
  color: #60a5fa !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-btn-telegram:hover {
  background: var(--accent-blue) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   FLOATING CONSULTATION LAYER (우측 하단 작은 상담 이모지 플로팅 레이어)
   ========================================================================== */
.floating-cs-layer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.floating-cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(59, 130, 246, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(37, 99, 235, 0.35);
  border-radius: 9999px;
  padding: 7px 15px 7px 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  cursor: pointer;
  user-select: none;
}

.floating-cs-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 22px rgba(59, 130, 246, 0.65);
  border-color: #60a5fa;
  color: #93c5fd;
}

.cs-emoji-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
  flex-shrink: 0;
}

.cs-emoji {
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.cs-pulse-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background: #22c55e;
  border: 2px solid #0f172a;
  border-radius: 50%;
  animation: csPulseAnim 2s infinite ease-in-out;
}

@keyframes csPulseAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.cs-label {
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.cs-tooltip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(10, 15, 29, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.76rem;
  color: #cbd5e1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.floating-cs-layer:hover .cs-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 모바일 화면 최적화 */
@media (max-width: 768px) {
  .floating-cs-layer {
    bottom: 18px;
    right: 14px;
  }
  .floating-cs-btn {
    padding: 6px 12px 6px 6px;
    gap: 6px;
    font-size: 0.8rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 12px rgba(37, 99, 235, 0.35);
  }
  .cs-emoji-wrapper {
    width: 28px;
    height: 28px;
  }
  .cs-emoji {
    font-size: 0.95rem;
  }
  .cs-pulse-dot {
    width: 8px;
    height: 8px;
  }
  .cs-tooltip {
    display: none; /* 모바일 터치 시 툴팁 숨김 */
  }
}

/* ==========================================================================
   A4 CONTRACT PRINT / PDF EXPORT STYLES (고화질 정식 계약서 인쇄 규격)
   ========================================================================== */
#a4PrintSheet {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }

  /* 인쇄 시 웹 전체 요소 숨김 및 A4 시트만 단독 출력 */
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body > *:not(#a4PrintSheet) {
    display: none !important;
  }

  #a4PrintSheet {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 8.5pt !important;
    line-height: 1.45 !important;
    box-sizing: border-box !important;
  }

  .a4-contract-page {
    border: 2px solid #0f172a;
    padding: 12mm 14mm;
    box-sizing: border-box;
    background: #ffffff;
    min-height: 270mm;
    position: relative;
  }

  .a4-header {
    text-align: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .a4-header-top {
    font-size: 7.5pt;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2563eb;
    margin-bottom: 4px;
  }

  .a4-title {
    font-size: 15pt;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
  }

  .a4-subtitle {
    font-size: 8pt;
    color: #64748b;
    margin: 0;
  }

  .a4-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 8.5pt;
  }

  .a4-th {
    width: 20%;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
  }

  .a4-td {
    width: 30%;
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px;
    color: #0f172a !important;
  }

  .a4-clauses {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .a4-clauses-title {
    font-size: 9pt;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 4px;
  }

  .a4-clauses p {
    font-size: 7.5pt;
    line-height: 1.4;
    color: #334155;
    margin: 0 0 5px 0;
  }

  .a4-clauses p:last-child {
    margin-bottom: 0;
  }

  .a4-clauses p strong {
    color: #0f172a;
  }

  .a4-signature-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-top: 10px;
    border-top: 1px dashed #94a3b8;
    padding-top: 10px;
  }

  .a4-hash-box {
    flex: 1;
    font-size: 7.5pt;
    color: #475569;
    line-height: 1.4;
  }

  .a4-hash-text {
    font-family: monospace;
    font-size: 7.5pt;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    word-break: break-all;
    color: #1e40af;
    font-weight: 700;
    margin: 3px 0;
  }

  .a4-sign-box {
    width: 240px;
    text-align: right;
  }

  .a4-sign-label {
    font-size: 8.5pt;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
  }

  .a4-sign-img-wrap {
    height: 65px;
    border-bottom: 1.5px solid #0f172a;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 4px;
  }

  .a4-sign-img-wrap img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
    filter: contrast(150%);
  }

  .a4-stamp {
    font-size: 7.5pt;
    font-weight: 800;
    color: #dc2626;
    margin-top: 4px;
    letter-spacing: 0.5px;
  }
}


/* 자필 확인 패드 (모바일/데스크탑 동일: Pointer Events) */
.hw-item { margin: 14px 0; }
.hw-phrase { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.5; word-break: keep-all; }
.hw-wrap { position: relative; width: 100%; border: 1px dashed rgba(96,165,250,0.5); border-radius: 8px; background: rgba(15,23,42,0.5); }
.hw-canvas { display: block; width: 100%; height: 80px; touch-action: none; cursor: crosshair; }
.hw-guide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; color: rgba(148,163,184,0.45); font-size: 0.9rem; padding: 0 10px; text-align: center; }
.hw-clear { margin-top: 4px; }

.hw-red { color: #ef4444; font-weight: 800; }
