/* =================================================================
   style.css - 통합 스타일 시트
   [목차]
   1. Reset & Global (기본 설정, 폰트, 배경)
   2. Header & Navigation (상단 메뉴, 로그인 아이콘)
   3. User Menu & Modals (로그인창, 토스트 알림, 드롭다운)
   4. Footer (하단 정보)
   5. Animations (공통 애니메이션)
   6. Page: Home (메인 페이지)
   7. Page: About (회사 소개)
   8. Page: Business (사업 소개)
   9. Page: Solution (솔루션)
   ================================================================= */

/* =========================================
   1. Reset & Global
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
p, h1, h2, h3, h4, h5, h6, span { word-break: keep-all; white-space: normal; hyphens: none; }

body {
  font-family: "NexonLv1Gothic", sans-serif;
  color: #fff;
  background-color: #000;
  overflow-x: hidden;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
body.loaded {
  opacity: 1;
}
/* 전체 스크롤바 디자인 커스텀 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 2px solid #050505; /* 여백 효과 */
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 142, 255, 0.6); /* 브랜드 컬러(#4a8eff) 적용 */
}

/* 3D 배경 캔버스 */
#three-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

/* 공통 섹션 레이아웃 */
section {
  position: relative; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: 80px; /* 헤더 높이만큼 여백 */
  background: transparent !important;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 스크롤 등장 애니메이션용 클래스 */
.animate { opacity: 0; transform: translateY(50px); }
.reveal { transform: translateY(100px); transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.active { transform: translateY(0); }

.noto-sans-kr { font-family: "Noto Sans KR", sans-serif; font-weight: 700; }


/* =========================================
   2. Header & Navigation
   ========================================= */
header {
  position: fixed; top: 0; left: 0; right: 0; height: 80px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2rem;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { 
  position: absolute; left: 2rem;
  font-size: 1.5rem; font-weight: bold; color: #fff; text-decoration: none; letter-spacing: 1px; 
}

.top-nav ul { display: flex; list-style: none; gap: 40px; margin: 0; padding: 0; }
.top-nav a {
  color: #ccc; text-decoration: none; font-size: 1rem; font-weight: 500; letter-spacing: 0.5px;
  transition: color 0.3s ease, text-shadow 0.3s ease; position: relative;
}
.top-nav a:hover, .top-nav a.active {
  color: #4a8eff; text-shadow: 0 0 10px rgba(74, 142, 255, 0.4);
}
.top-nav a.active::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px;
  background: #4a8eff; box-shadow: 0 0 10px #4a8eff;
}

/* 로그인 아이콘 버튼 */
.login-icon-btn {
  position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: #fff; transition: all 0.3s ease;
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; text-decoration: none;
}
.login-icon-btn:hover {
  color: #4a8eff; background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(74, 142, 255, 0.4);
}


/* =========================================
   3. User Menu & Modals
   ========================================= */

/* 드롭다운 메뉴 */
.user-dropdown {
  display: none; position: absolute; top: 70px; right: 20px; width: 220px;
  background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6); z-index: 10001;
  flex-direction: column; overflow: hidden; animation: fadeInMenu 0.2s ease-out;
}
@keyframes fadeInMenu { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.user-info-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff; }
.user-info-header strong { display: block; font-size: 1.1rem; color: #4a8eff; margin-bottom: 4px; }
.user-info-header span { font-size: 0.85rem; color: #888; }

.user-dropdown a {
  padding: 14px 20px; text-decoration: none; color: #ccc; font-size: 0.95rem;
  transition: 0.2s; display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.user-dropdown a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.user-dropdown a i { width: 20px; text-align: center; color: #666; transition: 0.2s; }
.user-dropdown a:hover i { color: #4a8eff; }
.user-dropdown a.danger-text { color: #ff6b6b; border-top: 1px solid rgba(255,255,255,0.05); }
.user-dropdown a.danger-text:hover { background: rgba(255, 80, 80, 0.1); }

/* 토스트 메시지 */
#toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 20000; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  min-width: 300px; padding: 16px 20px; border-radius: 12px;
  background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #fff; font-size: 0.95rem; display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(-20px); animation: toastIn 0.4s forwards; transition: all 0.3s ease;
}
.toast.hide { opacity: 0 !important; transform: translateY(-20px) !important; }
.toast.success { border-left: 4px solid #00c853; } .toast.success i { color: #00c853; }
.toast.error { border-left: 4px solid #ff3d00; } .toast.error i { color: #ff3d00; }
.toast.info { border-left: 4px solid #2979ff; } .toast.info i { color: #2979ff; }
@keyframes toastIn { to { opacity: 1; transform: translateY(0); } }

/* 로그인/회원가입 모달 */
.auth-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: fadeInModal 0.3s forwards;
}
@keyframes fadeInModal { to { opacity: 1; } }

.auth-box {
  width: 100%; max-width: 420px; padding: 40px;
  background: rgba(20, 20, 20, 0.85); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  position: relative; text-align: center;
}
.close-auth {
  position: absolute; top: 20px; right: 20px; background: none; border: none;
  color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0.7; transition: 0.3s;
}
.close-auth:hover { opacity: 1; transform: rotate(90deg); }

.auth-tabs { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tab-btn {
  flex: 1; background: none; border: none; padding-bottom: 15px;
  color: #888; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.3s;
  position: relative;
}
.tab-btn.active { color: #fff; }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px;
  background: #4a8eff; box-shadow: 0 0 10px #4a8eff;
}
.auth-content { display: none; animation: slideUp 0.4s ease; }
.auth-content.active { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.auth-title { font-size: 2rem; margin-bottom: 10px; color: #fff; }
.auth-subtitle { color: #aaa; margin-bottom: 30px; font-size: 0.95rem; }
.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #4a8eff; font-size: 1rem; }
.input-group input {
  width: 100%; padding: 14px 14px 14px 45px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: #fff; font-size: 1rem; outline: none; transition: 0.3s;
}
.input-group input:focus { border-color: #4a8eff; background: rgba(255, 255, 255, 0.1); }
.auth-submit-btn {
  width: 100%; padding: 15px; border-radius: 12px; border: none; margin-top: 10px;
  background: linear-gradient(135deg, #214B97, #4a8eff); color: #fff;
  font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
  box-shadow: 0 5px 20px rgba(74, 142, 255, 0.3);
}
.auth-submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(74, 142, 255, 0.5); }
.auth-helper-text { font-size: 0.8rem; color: #888; text-align: left; margin-top: -12px; margin-bottom: 20px; padding-left: 5px; }

/* Confirm Modal */
.confirm-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
  z-index: 30000; display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.confirm-overlay.show { display: flex; opacity: 1; }
.confirm-box {
  width: 90%; max-width: 380px; background: rgba(25, 25, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; padding: 30px;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.confirm-overlay.show .confirm-box { transform: scale(1); }
.confirm-title { color: #fff; font-size: 1.4rem; font-weight: bold; margin-bottom: 10px; }
.confirm-desc { color: #aaa; font-size: 1rem; line-height: 1.5; margin-bottom: 25px; }
.confirm-btns { display: flex; gap: 10px; justify-content: center; }
.btn-conf {
  flex: 1; padding: 12px; border-radius: 12px; border: none;
  font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.2s;
}
.btn-conf.cancel { background: rgba(255,255,255,0.1); color: #ccc; }
.btn-conf.cancel:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-conf.ok { background: #4a8eff; color: #fff; }
.btn-conf.ok:hover { background: #3b71cc; box-shadow: 0 5px 15px rgba(74, 142, 255, 0.3); }
.btn-conf.ok.danger { background: #ff4a4a; }
.btn-conf.ok.danger:hover { background: #d63030; box-shadow: 0 5px 15px rgba(255, 74, 74, 0.3); }


/* =========================================
   4. Footer
   ========================================= */
.new-footer {
  background: #050505; border-top: 1px solid #222; padding: 4rem 2rem;
  color: #666; font-size: 0.9rem; position: relative; z-index: 2; margin-top: auto;
}
.footer-content {
  max-width: 1200px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
}
.footer-info div { margin-bottom: 0.5rem; }
.footer-info span:first-child { display: inline-block; width: 50px; font-weight: bold; color: #444; }


/* =========================================
   5. Animations (General)
   ========================================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   6. Page: Home (Index)
   ========================================= */
/* Hero Section */
#section1 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.overlay-text { position: relative; z-index: 2; color: #fff; max-width: 1000px; width: 90%; }
.text1 { font-size: 4rem; margin-bottom: 1rem; }
.text2 {
  font-size: 5rem; margin-bottom: 2rem;
  background: linear-gradient(to right, #ffffff, #214B97);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Scroll Down Indicator */
.scroll-down-container {
  position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0.8; transition: opacity 0.3s; cursor: pointer; z-index: 10;
}
.scroll-down-container:hover { opacity: 1; }
.mouse {
  width: 30px; height: 50px; border: 2px solid #fff; border-radius: 20px;
  position: relative; margin-bottom: 10px; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.wheel {
  width: 4px; height: 8px; background-color: #fff; border-radius: 2px;
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; top: 10px; } 100% { opacity: 0; top: 30px; } }
.arrow-scroll span {
  display: block; width: 15px; height: 15px;
  border-bottom: 2px solid #fff; border-right: 2px solid #fff;
  transform: rotate(45deg); margin: -5px auto; animation: scrollArrow 2s infinite;
}
.arrow-scroll span:nth-child(1) { animation-delay: 0s; }
.arrow-scroll span:nth-child(2) { animation-delay: 0.15s; }
.arrow-scroll span:nth-child(3) { animation-delay: 0.3s; }
@keyframes scrollArrow {
  0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}
.scroll-text {
  font-size: 0.8rem; letter-spacing: 2px; margin-top: 15px; color: #ccc;
  font-weight: 300; text-transform: uppercase; animation: fadeInText 2s infinite alternate;
}
@keyframes fadeInText { from { opacity: 0.5; } to { opacity: 1; } }

/* Product Highlight */
#product-highlight { padding: 160px 20px; }
.simple-container {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 80px;
}
.simple-text { flex: 1; text-align: left; z-index: 2; }
.simple-text > * { opacity: 0; transform: translateY(30px); }
.simple-tag {
  display: inline-block; font-size: 0.9rem; font-weight: 700; color: #4a8eff; 
  margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase;
}
.simple-title {
  font-size: 3.5rem; font-weight: 700; line-height: 1.2; color: #fff; 
  margin-bottom: 25px; letter-spacing: -1px; 
}
.simple-desc { font-size: 1.15rem; color: #bbb; line-height: 1.7; font-weight: 300; margin-bottom: 40px; }
.simple-divider { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.15); margin-bottom: 40px; }
.simple-features { list-style: none; padding: 0; display: flex; gap: 50px; }
.simple-features li { display: flex; flex-direction: column; }
.simple-features strong { font-size: 1.5rem; color: #fff; font-weight: 700; margin-bottom: 5px; }
.simple-features span { font-size: 0.9rem; color: #888; }
.simple-image { flex: 1; display: flex; justify-content: center; align-items: center; opacity: 0; }
.simple-image > img { max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }

/* Pricing Section */
#pricing-section { padding: 100px 0; }
.pricing-header { text-align: center; margin-bottom: 4rem; z-index: 2; }
.pricing-header h2 {
  font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700;
  background: linear-gradient(to right, #ffffff, #214B97);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-header p { color: #ccc; font-size: 1.1rem; }
.pricing-container {
  display: flex; justify-content: center; gap: 2rem;
  width: 90%; max-width: 1200px; flex-wrap: wrap; z-index: 2;
}
.pricing-card {
  flex: 1; min-width: 300px; max-width: 380px;
  background: rgba(255, 255, 255, 0); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 20px; padding: 2.5rem; display: flex; flex-direction: column;
  transition: all 0.6s ease-out;
}
.pricing-card:hover {
  transform: translateY(-10px); background: rgba(255, 255, 255, 0.08);
  border-color: #214B97; box-shadow: 0 0 40px rgba(33, 75, 151, 0.2);
}
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 0.85rem; color: #fff;
}
.icon-blue { background: linear-gradient(135deg, #214B97, #4A72C8); }
.card-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 0.5rem; color: #fff; }
.card-price { font-size: 3rem; font-weight: bold; margin: 1rem 0 0.5rem 0; color: #fff; }
.card-period { color: #888; font-size: 0.9rem; margin-bottom: 2rem; }
.feature-list { list-style: none; padding: 0; margin-bottom: auto; }
.feature-list li { margin-bottom: 1rem; color: #ddd; font-size: 1rem; display: flex; align-items: center; }
.feature-list li i { color: #214B97; margin-right: 12px; }
.pricing-btn {
  width: 100%; padding: 1.2rem; border-radius: 12px; border: none;
  font-weight: bold; font-size: 1rem; cursor: pointer; margin-top: 2rem;
  transition: 0.3s; background: #214B97; color: #fff;
}
.pricing-btn:hover { background: #1A3B78; box-shadow: 0 0 15px rgba(33, 75, 151, 0.6); }

/* Contact Section */
#section5 { background: #000; padding-bottom: 12rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
#contact-teaser-view { display: block; animation: fadeIn 0.8s ease-in-out; width: 100%; max-width: 800px; margin: 50px auto 0; }
.teaser-text h2 { font-size: 3rem; margin-bottom: 20px; font-weight: 700; line-height: 1.3; }
.teaser-text p { font-size: 1.2rem; color: #aaa; margin-bottom: 50px; }
.btn-contact-open {
  padding: 18px 70px; font-size: 1.2rem; font-weight: 700; color: #000;
  background-color: #fff; border: none; border-radius: 50px; cursor: pointer;
  transition: all 0.3s ease; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.btn-contact-open:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 255, 255, 0.5); }
#contact-form-view {
  display: none; animation: fadeIn 0.8s ease-in-out;
  width: 100%; max-width: 600px; background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 40px; position: relative; text-align: left;
  backdrop-filter: blur(10px); margin-top: 50px;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #ccc; }
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem; background: rgba(255,255,255,0.05);
  border: 1px solid #333; color: #fff; border-radius: 8px; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #214B97; outline: none; }
.submit-btn {
  width: 100%; padding: 1rem; background: #fff; color: #000;
  font-weight: bold; border: none; cursor: pointer; margin-top: 1rem;
  transition: 0.3s; border-radius: 8px;
}
.submit-btn:hover { background: #214B97; color: #fff; }
.btn-close-form {
  position: absolute; top: 20px; right: 20px; background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer; opacity: 0.7; transition: opacity 0.3s;
}
.btn-close-form:hover { opacity: 1; }


/* =========================================
   7. Page: About
   ========================================= */
.about-hero {
  height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; flex-direction: column; margin-top: 70px;
}
.about-title {
  font-size: 4rem; font-weight: 700; margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #214B97);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-subtitle { font-size: 1.5rem; color: #ccc; max-width: 800px; line-height: 1.6; }

.vision-section {
  padding: 120px 0;
  background: transparent; 
}

.vision-grid {
  display: grid;
  /* [수정] 무조건 가로 3개로 고정 (화면이 줄어도 3열 유지하다가 모바일에서만 1열로 변함) */
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px;
  margin-top: 60px;
  width: 100%; /* 컨테이너 너비 꽉 채우기 */
}

.vision-card {
  opacity: 0;
  transform: translateY(50px);
  background: rgba(255, 255, 255, 0); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 50px 30px;
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: background 0.6s ease-out, border-color 0.6s ease-out, box-shadow 0.6s ease-out, transform 0.6s ease-out;
  
  /* [추가] 카드 높이를 동일하게 맞춤 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.vision-card:hover {
  transform: translateY(-10px) !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: #4a8eff;
  box-shadow: 0 0 40px rgba(74, 142, 255, 0.2);
}

.vision-icon {
  font-size: 2.5rem;
  color: #4a8eff; 
  margin-bottom: 25px;
}

.vision-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap; /* 제목 한 줄 유지 */
}

.vision-card p {
  color: #aaa;
  line-height: 1.7;
  font-size: 1rem;
}

/* 모바일 대응 (화면이 작아지면 세로로 배치) */
@media (max-width: 768px) {
  .vision-grid {
    grid-template-columns: 1fr; /* 모바일에서는 1열 */
  }
}

.info-section { padding: 100px 0; display: flex; align-items: center; justify-content: center; }
.info-wrapper { display: flex; flex-wrap: wrap; gap: 60px; align-items: center; }
.info-text { flex: 1; min-width: 300px; }
.info-text h2 { font-size: 3rem; margin-bottom: 30px; line-height: 1.2; }
.info-text p { font-size: 1.1rem; color: #ccc; line-height: 1.8; margin-bottom: 20px; }
.info-image {
  flex: 1; min-width: 300px; height: 400px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.info-image img { width: 100%; height: 100%; object-fit: cover; }


/* =========================================
   8. Page: Business
   ========================================= */
.page-header { padding: 180px 20px 80px; text-align: center; position: relative; }
.page-title { 
  font-size: 4rem; font-weight: 700; margin-bottom: 20px; 
  background: linear-gradient(to right, #fff, #4a8eff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.page-desc { font-size: 1.2rem; color: #888; max-width: 700px; margin: 0 auto; line-height: 1.6; }

.business-container {
  max-width: 1300px; margin: 0 auto; padding: 0 40px 150px;
  display: flex; flex-direction: column; gap: 150px;
}
.biz-row { display: flex; align-items: center; justify-content: space-between; position: relative; }
.biz-row:nth-child(even) { flex-direction: row-reverse; }

.biz-img-wrap {
  width: 55%; height: 450px; position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
}
.biz-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; filter: brightness(0.9); }
.biz-row:hover .biz-img-wrap img { transform: scale(1.05); filter: brightness(1.1); }

.biz-text-wrap {
  width: 40%; position: relative; z-index: 2; padding: 40px;
  background: rgba(255, 255, 255, 0); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); margin-left: -80px;
  transition: background 0.6s ease-out, border-color 0.6s ease-out, box-shadow 0.6s ease-out;
}
.biz-row:nth-child(even) .biz-text-wrap { margin-left: 0; margin-right: -80px; }
.biz-row:hover .biz-text-wrap {
  transform: translateY(-5px); /* 살짝 떠오르는 느낌 */
  background: rgba(255, 255, 255, 0.1); /* 배경 밝기 증가 */
}
.biz-num {
  display: inline-block; font-family: 'Lato', sans-serif;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 2px;
  color: #4a8eff; margin-bottom: 15px; border: 1px solid #4a8eff;
  padding: 5px 12px; border-radius: 50px;
}
.biz-title { font-size: 2.2rem; font-weight: bold; margin-bottom: 20px; line-height: 1.2; }
.biz-desc { font-size: 1.05rem; color: #bbb; line-height: 1.7; word-break: keep-all; }
.glow-bg {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(33, 75, 151, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; opacity: 0.6;
}


/* =========================================
   9. Page: Solution
   ========================================= */
.solution-list {
  max-width: 1200px; margin: 0 auto; padding: 0 20px 150px; 
  display: flex; flex-direction: column; gap: 100px;
}
.sol-card {
  background: rgba(255, 255, 255, 0.005); backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative; transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.sol-card:hover {
  background: rgba(255, 255, 255, 0.03); border-color: rgba(74, 142, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.sol-header {
  padding: 25px 40px 20px 40px; display: flex; align-items: center; justify-content: flex-start;
  background: transparent;
}
.sol-badge { 
  background: rgba(33, 75, 151, 0.3); color: #4a8eff; 
  border: 1px solid rgba(74, 142, 255, 0.5); padding: 6px 16px; 
  border-radius: 50px; font-size: 0.85rem; font-weight: 800; letter-spacing: 1px; font-family: 'Lato', sans-serif;
}
.sol-title { font-size: 1.6rem; font-weight: bold; margin-left: 20px; color: #fff; letter-spacing: -0.5px; }

.sol-body { display: flex; flex-direction: row; min-height: 420px; }
.sol-video-area {
  flex: 1.6; background: rgba(0, 0, 0, 0.1); position: relative; 
  margin: 0 0 40px 40px; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.sol-video-area video { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.5s; }
.sol-card:hover .sol-video-area video { opacity: 1; }

.sol-info-area { flex: 1; padding: 0 40px 40px 40px; display: flex; flex-direction: column; justify-content: center; }
.sol-desc { font-size: 1.1rem; line-height: 1.7; color: #ccc; margin-bottom: 30px; font-weight: 300; }
.sol-features { list-style: none; padding: 0; }
.sol-features li { display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 1rem; color: #ddd; }
.sol-features li i { color: #4a8eff; margin-right: 15px; margin-top: 5px; font-size: 0.9rem; }


/* =========================================
   Responsive (Common)
   ========================================= */
@media (max-width: 1024px) {
  .top-nav ul { gap: 20px; }
  .biz-text-wrap { margin-left: -40px; margin-right: 0; }
  .biz-row:nth-child(even) .biz-text-wrap { margin-right: -40px; margin-left: 0; }
}

@media (max-width: 900px) {
  .simple-container { flex-direction: column; text-align: left; align-items: flex-start; }
  .simple-title { font-size: 2.8rem; }
  .simple-features { gap: 30px; }
  .simple-image { width: 100%; margin-top: 40px; justify-content: center; }
}

@media (max-width: 768px) {
  /* Header */
  header { height: 60px; justify-content: space-between; }
  .logo { position: static; font-size: 1.2rem; }
  .top-nav { display: none; }
  .login-icon-btn { right: 1.5rem; font-size: 1.2rem; }

  /* Home */
  .text1 { font-size: 2rem; }
  .text2 { font-size: 2.5rem; }
  .pricing-container { flex-direction: column; align-items: center; }
  .pricing-card { width: 100%; }
  .teaser-text h2 { font-size: 2rem; }
  #contact-form-view { padding: 25px; }

  /* About */
  .about-title { font-size: 2.5rem; }
  .about-subtitle { font-size: 1.1rem; }
  .vision-grid { grid-template-columns: 1fr; }
  .info-wrapper { flex-direction: column; }
  .info-image { width: 100%; height: 300px; }

  /* Business */
  .page-title { font-size: 2.5rem; }
  .business-container { gap: 80px; padding: 0 20px 100px; }
  .biz-row, .biz-row:nth-child(even) { flex-direction: column; align-items: flex-start; }
  .biz-img-wrap { width: 100%; height: 250px; margin-bottom: -30px; z-index: 1; }
  .biz-text-wrap, .biz-row:nth-child(even) .biz-text-wrap { width: 95%; margin: 0 auto; z-index: 2; }

  /* Solution */
  .solution-list { gap: 60px; }
  .sol-card { height: auto; }
  .sol-body { flex-direction: column; }
  .sol-video-area { margin: 0 20px; height: 250px; flex: none; width: auto; }
  .sol-info-area { padding: 30px; }
}

/* =========================================
   [NEW] MOBILE MENU STYLE
   ========================================= */

/* 1. 햄버거 버튼 (기본은 숨김, 모바일에서만 보임) */
.mobile-menu-btn {
  display: none; /* 데스크탑에선 안 보임 */
  background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  position: absolute; left: 1.5rem; /* 로고 왼쪽 배치 */
  z-index: 10002;
}

/* 2. 모바일 메뉴 오버레이 (전체 화면 덮기) */
.mobile-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(0, 0, 0, 0.95); /* 아주 진한 검정 */
  backdrop-filter: blur(10px);
  z-index: 20000; /* 최상단 */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; /* 안 보일 땐 클릭 불가 */
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1; pointer-events: auto; /* 보일 때 클릭 가능 */
}

/* 3. 모바일 메뉴 링크들 */
.mobile-menu-overlay nav {
  display: flex; flex-direction: column; gap: 40px; text-align: center;
}
.mobile-menu-overlay a {
  color: #fff; text-decoration: none; font-size: 1.8rem; font-weight: bold;
  opacity: 0; transform: translateY(20px); transition: 0.4s;
}
.mobile-menu-overlay.active a {
  opacity: 1; transform: translateY(0);
}

/* 4. 닫기 버튼 */
.close-mobile-menu {
  position: absolute; top: 30px; right: 30px;
  background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
  transition: transform 0.3s;
}
.close-mobile-menu:hover { transform: rotate(90deg); color: #4a8eff; }

/* 5. 모바일 반응형 처리 */
@media (max-width: 768px) {
  /* 햄버거 버튼 보이기 */
  .mobile-menu-btn { 
    display: block; 
  } 
  
  /* [중요 수정] 로고 위치를 강제로 정중앙에 고정 (position: absolute 필수) */
  .logo { 
    position: absolute !important; /* 기존 static 설정을 무시하고 절대 위치 사용 */
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 1.3rem;
    white-space: nowrap; /* 줄바꿈 방지 */
  } 
  
  /* 헤더 높이 및 정렬 보정 */
  header {
    height: 60px;
    justify-content: center; /* 중앙 정렬 기준 */
  }
}

/* ============================
   Generic Modals (purchase history, pay method, paypal)
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

.modal-card {
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  background: rgba(18, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary-btn {
  background: linear-gradient(90deg, rgba(74, 142, 255, 0.95), rgba(114, 92, 255, 0.95));
  border-color: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.primary-btn:hover { filter: brightness(1.05); }

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.secondary-btn:hover { background: rgba(255, 255, 255, 0.10); }

/* 결제수단 선택 모달 */
.pay-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-method-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.pay-method-btn:hover { background: rgba(255, 255, 255, 0.10); }

/* 로그인 영역 링크 */
.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.auth-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.pricing-btn:disabled {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: not-allowed;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
  filter: grayscale(100%); /* 흑백 처리로 비활성 강조 */
}

.pricing-btn:disabled:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}


/* Contact Form Submit Loading */
.submit-btn:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}
.submit-btn.is-loading{
  opacity: 0.85;
  cursor: progress;
}
.contact-status{
  display:none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ddd;
}
.contact-status.show{ display:block; }
.contact-status.success{
  border-color: rgba(0,200,83,0.35);
  color: #a9f5c3;
}
.contact-status.error{
  border-color: rgba(255,61,0,0.35);
  color: #ffb4a6;
}

#privacy-modal.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: none;                 /* JS에서 flex로 열림 */
  align-items: center;
  justify-content: center;
  padding: 18px;                 /* 작은 화면에서 카드가 가장자리에 붙지 않게 */
  z-index: 20000;
  overscroll-behavior: contain;
}

/* 카드 내부는 overflow 숨기고, 본문만 스크롤 */
#privacy-modal .modal-card{
  overflow: hidden;
  max-height: 85vh;
}

/* ✅ 핵심: flex 자식이 스크롤되려면 min-height:0 필요 */
#privacy-modal .modal-body{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 10px;
}

/* 배경 스크롤 잠금 (이미 있다면 유지) */
html.modal-open,
body.modal-open{
  overflow: hidden !important;
}

/* ===========================================================
   GS3D Viewer UI (3D 모델 + 도구/측정/주석)
   - index.html의 3D 모달(#modal-3d-wrapper)에서만 사용
=========================================================== */
.gs3d-modal { overflow: hidden; }
#gs3d-root{
  position: absolute;
  inset: 0;
  display: block;
}
#gs3d-panel{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 320px;
  padding: 16px 14px;
  background: rgba(18,18,18,.92);
  border-right: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  z-index: 10001;
  overflow: auto;
}
.gs3d-panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.gs3d-panel-title{ display:flex; flex-direction:column; gap:6px; }
.gs3d-badge{
  display:inline-flex;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.gs3d-project{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
}
.gs3d-panel-actions{ display:flex; gap:8px; }
.gs3d-mini-btn{
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: .15s ease;
}
.gs3d-mini-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.gs3d-mini-btn:active{ transform: translateY(0px); }

.gs3d-section{ padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.gs3d-section-title{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 10px;
}
.gs3d-check{
  display:flex;
  gap:10px;
  align-items:center;
  margin: 8px 0;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.gs3d-check input{ accent-color: #4facfe; }
.gs3d-disabled{ opacity: .45; }
.gs3d-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.gs3d-pill{
  min-width: 30px;
  text-align:center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size: 12px;
  opacity: .9;
}
.gs3d-foot{ border-bottom: none; }
.gs3d-muted{ font-size: 12px; opacity: .75; line-height: 1.45; }

/* Viewer canvas area */
#full-screen-viewer{
  position:absolute;
  left:0; top:0; right:0; bottom:0;
  z-index: 9990;
}
#full-screen-viewer canvas{ display:block; }

/* Top toolbar */
#gs3d-topbar{
  position:absolute;
  left: 340px; top: 18px;
  z-index: 10002;
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
}
.gs3d-tool{
  width: 40px; height: 40px;
  display:grid; place-items:center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: .15s ease;
  background: rgba(255, 255, 255, 0.05); /* 더 투명하게 */
  backdrop-filter: blur(12px); /* 블러 효과 강화 */
  border: 1px solid rgba(255, 255, 255, 0.2); /* 테두리를 밝게 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* 그림자 추가 */
}
.gs3d-tool.active {
  border-color: #4a8eff;
  background: rgba(74, 142, 255, 0.2);
  box-shadow: 0 0 15px rgba(74, 142, 255, 0.4); /* 글로우 효과 */
  color: #fff;
}
.gs3d-tool:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.gs3d-sep{ width: 1px; height: 22px; background: rgba(255,255,255,.12); margin: 0 2px; }

/* Status bar */
#gs3d-statusbar{
  position:absolute;
  left: 340px; right: 18px; bottom: 18px;
  z-index: 10002;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92);
  font-size: 13px;
}
.gs3d-status-left{ display:flex; align-items:center; gap: 10px; min-width: 0; }
.gs3d-status-mode{
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(79,172,254,.16);
  border: 1px solid rgba(79,172,254,.35);
  font-weight: 800;
  letter-spacing: .06em;
}
.gs3d-status-tip{
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs3d-status-right{
  font-variant-numeric: tabular-nums;
  opacity: .9;
  white-space: nowrap;
}

/* Small screens */
@media (max-width: 900px){
  #gs3d-panel{ width: 280px; }
  #gs3d-topbar{ left: 300px; }
  #gs3d-statusbar{ left: 300px; }
}
@media (max-width: 760px){
  /* 패널: 모바일에서는 슬라이드 인(기본 숨김) */
  #gs3d-panel{
    display:block;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  }
  /* 모달에 gs3d-panel-open 클래스가 붙으면 패널 표시 */
  #modal-3d-wrapper.gs3d-panel-open #gs3d-panel{
    transform: translateX(0);
  }

  /* 툴바/상태바는 화면 왼쪽으로 */
  #gs3d-topbar{ left: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); }
  #gs3d-statusbar{ left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

  /* 모바일에서만 패널 토글 버튼 보이게 */
  .gs3d-mobile-only{ display: inline-grid !important; }
}


/* ===========================================================
   GS3D UX fixes
   - Close 버튼 클릭 안되는 문제 해결 (z-index / fixed)
   - Mobile touch scroll 방지 + 패널 토글 버튼
=========================================================== */
.gs3d-mobile-only{ display:none; }

#modal-3d-wrapper{
  overscroll-behavior: contain;
}

/* 캔버스에서 스크롤/줌 제스처로 페이지가 움직이지 않게 */
#full-screen-viewer,
#full-screen-viewer canvas{
  touch-action: none;
}

/* 패널은 세로 스크롤 허용 */
#gs3d-panel{
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* ✅ 핵심: 닫기 버튼을 캔버스보다 위로 (클릭 가능) */
#modal-3d-wrapper .modal-close-btn{
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  z-index: 10005;
}

/* 작은 화면에서 닫기 버튼 크기/여백 조정 */
@media (max-width: 760px){
  #modal-3d-wrapper .modal-close-btn{
    font-size: 2.1rem;
    padding: 6px 10px;
  }
}

/* ===========================================================
   GS3D Mobile Toolbar Visibility & Safe Close Space
   - 모바일에서도 툴바가 항상 보이도록 강제
   - 닫기(X) 버튼 영역 확보 + 가로 스크롤 허용
=========================================================== */
@media (max-width: 760px){
  /* 혹시 다른 규칙에서 숨겼더라도 항상 표시 */
  #gs3d-topbar{
    display: flex !important;
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: calc(12px + env(safe-area-inset-left, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px) + 64px); /* X 버튼 공간 확보 */
    z-index: 10004 !important;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #gs3d-topbar::-webkit-scrollbar{ display:none; }

  /* 버튼은 조금 더 컴팩트하게 */
  #gs3d-topbar .gs3d-tool{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  #gs3d-topbar .gs3d-sep{ height: 18px; }
}

/* === GS3D HUD (camera info) === */
.gs3d-hud{
  position:absolute;
  /* X 닫기 버튼/툴바와 겹치지 않도록 살짝 아래로 내림 */
  /* 닫기 버튼(우상단)과 시각적으로 겹치지 않도록 여유 공간 확보 */
  top: calc(12px + env(safe-area-inset-top, 0px) + 76px); /* ~= 88px */
  right: calc(12px + env(safe-area-inset-right, 0px));
  z-index: 25;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1.15;
  color: rgba(255,255,255,0.9);
  pointer-events: none;
}
.gs3d-hud-row{display:flex; gap:10px; justify-content:space-between; margin:4px 0;}
.gs3d-hud-row .k{opacity:0.7; min-width:46px;}

@media (max-width:760px){
  /* 모바일은 툴바가 더 두꺼워서 HUD를 더 아래로 */
  .gs3d-hud{ 
    top: calc(12px + env(safe-area-inset-top, 0px) + 112px); /* ~= 124px */
    right: calc(12px + env(safe-area-inset-right, 0px));
    padding:8px 10px; 
    font-size: 11px; 
  }
}


/* ===============================
   GS3D Viewer - Modern HUD tweaks
   =============================== */

/* 패널 상단 (내보내기/전체삭제) 버튼은 사용성 혼동이 있어 기본 숨김 */
#gs3d-panel .gs3d-panel-actions { display: none; }

/* 컴퍼스(방향표시) - 기존 구/축 보조도형 대신 미니멀 HUD */
#gs3d-compass{
  position:absolute;
  top:auto;
  right:18px;
  bottom:84px;
  width:54px;
  height:54px;
  border-radius:999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 10002;
  pointer-events:none;
}
#gs3d-compass .ring{
  position:absolute;
  inset:6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
}
#gs3d-compass .needle{
  width:0; height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-bottom:18px solid rgba(79,172,254,0.95);
  transform-origin: 50% 80%;
  filter: drop-shadow(0 2px 6px rgba(79,172,254,0.35));
}
#gs3d-compass .n{
  position:absolute;
  top:6px;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.9);
}
/* ===== GS3D Compass ===== */
.gs3d-compass{
  position:absolute;
  right:16px;
  top:16px;
  width:52px;
  height:52px;
  border-radius:999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.gs3d-compass .ring{
  position:absolute; inset:6px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,0.18);
}
.gs3d-compass .needle{
  position:absolute; left:50%; top:50%;
  width:2px; height:18px;
  transform-origin: 50% calc(100% - 2px);
  transform: translate(-50%,-100%) rotate(0deg);
  background: linear-gradient(to bottom, rgba(79,172,254,1), rgba(79,172,254,0.05));
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(79,172,254,0.5));
}
.gs3d-compass .label{
  position:absolute; left:50%; top:7px;
  transform: translateX(-50%);
  font-family: Lato, Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
}

/* 내보내기/삭제 버튼은 사용자가 원할 때만 노출하도록 숨김 */
.gs3d-panel-actions{ display:none !important; }

@media (max-width: 760px){
  #gs3d-compass{ right:12px; bottom:84px; top:auto; width:48px; height:48px; }
}

/* ===========================================================
   GS3D Panel Scrollbar (Modern)
   - left panel scroll aesthetics
   =========================================================== */
#gs3d-panel{
  scrollbar-width: thin;
  scrollbar-color: rgba(79,172,254,0.55) rgba(255,255,255,0.08);
}
#gs3d-panel::-webkit-scrollbar{ width: 10px; }
#gs3d-panel::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}
#gs3d-panel::-webkit-scrollbar-thumb{
  background: rgba(79,172,254,0.40);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.30);
}
#gs3d-panel::-webkit-scrollbar-thumb:hover{
  background: rgba(79,172,254,0.62);
}

/* ===========================================================
   GS3D Close Button (Modern)
   - ensure it's always clickable and looks consistent
   =========================================================== */
#modal-3d-wrapper .modal-close-btn{
  pointer-events: auto;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px 12px;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
#modal-3d-wrapper .modal-close-btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.60);
  border-color: rgba(79,172,254,0.35);
}
#modal-3d-wrapper .modal-close-btn:active{
  transform: translateY(0px);
}
