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

:root {
  --main-color: #1e293b;
  --sub-color: #64748b;
  --brand-color: #3b82f6;
  --accent-color: #ef4444;
  --bg-color: #e2e8f0;
  --card-bg: #ffffff;
  --header-bg: #f1f5f9;
  --input-bg: #f8fafc;
  --border-color: #cbd5e1;
  --shadow-color: rgba(0, 0, 0, 0.08); 
  --radius: 12px;
  --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
}

[data-theme="dark"] {
  --main-color: #f1f5f9;        
  --sub-color: #cbd5e1;         
  --brand-color: #60a5fa;       
  --accent-color: #f87171;      
  --bg-color: #0f172a;          
  --card-bg: #1e293b;           
  --header-bg: #334155;         
  --input-bg: #334155;          
  --border-color: #475569;      
  --shadow-color: rgba(0, 0, 0, 0.4); 
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
 
body {
  background: var(--bg-color);
  color: var(--main-color);
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0; padding: 0;
  font-size: 14px; 
  line-height: 1.6;
  letter-spacing: -0.02em;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ================= 모바일 뷰 스타일 ================= */
.mobile-view { padding-bottom: 100px; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-bold { font-weight: 700; }
.text-red { color: var(--accent-color); }
.text-blue { color: var(--brand-color); }
.text-sm { font-size: 12px; color: var(--sub-color); }
 
.bg-highlight { background-color: transparent; }
.bg-warning { 
    background-color: var(--input-bg); 
    border: 1px solid var(--border-color);
    border-radius: var(--radius); 
	min-height: fit-content;
	padding: 15px;                  /* 테두리 안쪽 여백 필수! */
    margin: 10px 20px 10px 20px;    /* 기존 인라인 스타일을 CSS로 이동 */
}
     
.container { max-width: 600px; margin: 0 auto; padding: 20px 16px; }

h2 {
    font-size: 22px; font-weight: 700; color: var(--main-color);
    text-align: center; margin: 20px 0 30px; letter-spacing: -0.05em;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  overflow: hidden;
  border: none;
  transition: background 0.3s ease;
}
 
.card-headers {
  background: var(--header-bg);
  padding: 16px 20px;
  font-weight: 700; font-size: 16px; color: var(--main-color);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  transition: background 0.3s ease;
}

.card-header {
  background: var(--header-bg);
  padding: 16px 20px;
  font-weight: 700; font-size: 16px; color: var(--main-color);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  transition: background 0.3s ease;
}
.card-header::before {
    content: ''; display: inline-block; width: 4px; height: 16px;
    background-color: var(--brand-color); margin-right: 10px; border-radius: 2px;
}
.card-header.text-red::before { background-color: var(--accent-color); }
     
.sticky-total {
  position: sticky; top: 10px; z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  transition: background 0.3s ease;
}
[data-theme="dark"] .sticky-total { background: rgba(30, 41, 59, 0.95); }
[data-theme="dark"] .sticky-label-total { color: #f8fafc; }
[data-theme="dark"] .docSerialNumber { color: #f8fafc; }

.sticky-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.sticky-label-total { font-size: 14px; font-weight: 500; color: #333; }
.sticky-label { font-size: 14px; font-weight: 500; color: var(--sub-color); }
.docSerialNumber { font-size: 14px; font-weight: 500; color: #333; }
.sticky-amount { font-size: 20px; font-weight: 800; color: var(--brand-color); }
.sticky-sub-amount { font-size: 16px; font-weight: 700; color: #991b1b; }
[data-theme="dark"] .sticky-sub-amount { color: #fca5a5; }

.input-block { margin-bottom: 15px; }
.row-flex { display: flex; gap: 12px; margin-bottom: 15px; }
.col-flex { flex: 1; }
     
.input-label { display: block; font-size: 13px; font-weight: 500; color: var(--sub-color); margin-bottom: 6px; }
.input-field {
  width: 100%; 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  padding: 10px 12px;
  font-size: 12px; 
  background: var(--input-bg); 
  color: var(--main-color);
  outline: none; height: 44px;
  transition: all 0.2s ease;
}
.input-field:focus { 
    border-color: var(--brand-color); 
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); 
}
textarea.input-field { height: auto; min-height: 100px; resize: none; line-height: 1.5; font-family: 'Noto Sans KR', sans-serif; }
     
.btn-addr {
  background: var(--header-bg); color: var(--main-color); 
  border: 1px solid var(--border-color); border-radius: 8px;
  padding: 0 14px; font-size: 13px; font-weight: 500; cursor: pointer; height: 44px;
  transition: background 0.2s;
}
.btn-addr:hover { filter: brightness(0.95); }

select.input-field, select.opt-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat; 
  background-position: right 12px center;
  background-size: 16px;
}
[data-theme="dark"] select.input-field, [data-theme="dark"] select.opt-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

select.opt-select {
  border: 1px solid var(--border-color); border-radius: 6px; 
  padding: 4px 28px 4px 8px; font-size: 12px; color: var(--main-color);
  background-color: var(--input-bg); outline: none; height: 32px; margin-top: 6px;
}

.terms-container { padding: 0 20px 20px 20px; }
.terms-box {
    width: 100%; height: 100px; 
    border: 1px solid var(--border-color); background: var(--input-bg);
    padding: 10px;
	font-size: 12px; color: var(--sub-color);
    overflow-y: scroll; margin-bottom: 8px; border-radius: 8px;
    white-space: pre-wrap; line-height: 1.5;
}
.terms-check { display: flex; align-items: center; font-size: 13px; cursor: pointer; color: var(--main-color); font-weight: 500;}
.terms-check input { width: 18px; height: 18px; margin-right: 8px; accent-color: var(--brand-color); }

.option-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 20px; border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;box-sizing: border-box;flex-wrap: wrap;
}
.option-item:last-child { border-bottom: none; }
.option-item:hover { background-color: var(--header-bg); }
     
.opt-left { display: flex; align-items: flex-start; flex: 1; padding-right: 12px; }
.opt-check { margin-right: 12px; padding-top: 2px; }
input[type="checkbox"] { 
    width: 20px; height: 20px; margin: 0; accent-color: var(--brand-color); 
    cursor: pointer; border-radius: 4px;
}
.star-icon {
  color: var(--border-color); font-size: 18px; line-height: 1; margin-right: 8px; margin-top: 2px;
}
.star-icon.active { color: #fbbf24; text-shadow: 0 0 5px rgba(251, 191, 36, 0.4); }

.opt-content { 
    display: flex; 
    flex-direction: column; 
    flex: 1;         /* ★ 추가: 빈 가로 공간을 끝까지 꽉 채우게 만듦 */
    min-width: 0;    /* ★ 추가: 텍스트나 이미지가 너무 커서 레이아웃이 터지는 걸 방지 */
}
.opt-title { font-size: 15px; color: var(--main-color); font-weight: 600; line-height: 1.4; }
.opt-sub { font-size: 13px; color: var(--sub-color); margin-top: 4px; font-weight: 400;}
.opt-right { text-align: right; white-space: nowrap; }
.opt-price { font-weight: 600; font-size: 15px; color: var(--main-color); letter-spacing: -0.5px;}
.opt-price.text-red { color: var(--accent-color); }


/* ================= 하단 고정 액션 바 (새로운 버튼 그룹) ================= */
.fixed-action-bar {
  position: fixed;
  bottom: 25px; /* 화면 하단 여백 */
  left: 50%;
  transform: translateX(-50%); /* 정확히 가운데 정렬 */
  display: flex;
  gap: 12px;
  z-index: 9000;
  align-items: center;
}

/* 공통 액션 버튼 (둥근 캡슐형) */
.btn-action {
  padding: 12px 20px;
  border: none;
  border-radius: 50px; /* 둥근 캡슐형 */
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  color: white;
  white-space: nowrap; /* 글씨가 줄바꿈되지 않게 방지 */
}

/* 인쇄 버튼 */
.btn-print {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* PDF/메일 발송 버튼 */
.btn-email {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 다크모드일 때 버튼 색상 약간 밝게 조절 (선택사항) */
[data-theme="dark"] .btn-print { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); color: #0f172a; }
[data-theme="dark"] .btn-email { background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%); }

/* 버튼 호버 & 클릭 효과 */
.btn-action:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}
.btn-action:active { transform: translateY(0) scale(0.96); }

/* ================= 다크 모드 전환 버튼 (프린트 버튼과 동일한 색상의 동그라미) ================= */
.btn-theme-new {
  width: 44px; /* 버튼 너비 */
  height: 44px; /* 버튼 높이 (프린트 버튼 높이와 조화롭게) */
  border: none;
  border-radius: 50%; /* 완벽한 동그라미 */
  font-size: 18px; /* 달/해 아이콘 크기 */
  cursor: pointer;
  color: white; 
  /* ▼ 프린트 버튼과 완벽하게 동일한 회색 그라디언트 ▼ */
  background: linear-gradient(135deg, #64748b 0%, #475569 100%); 
  box-shadow: 0 6px 16px rgba(0,0,0,0.15); /* 프린트 버튼과 동일한 그림자 */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* 화면이 좁아져도 찌그러지지 않게 고정 */
}

/* 다크모드 켜졌을 때 버튼 색상 (프린트 버튼 다크모드 색상과 동일) */
[data-theme="dark"] .btn-theme-new {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #0f172a;
}

/* 호버 및 클릭 효과 (프린트 버튼과 동일) */
.btn-theme-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}
.btn-theme-new:active { transform: translateY(0) scale(0.96); }

.info-card {
    padding: 16px; background-color: var(--header-bg); 
    border: 1px solid var(--border-color); border-left: 4px solid #f59e0b; 
    border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.bank-info-mobile {
  text-align: center; margin-bottom: 40px; 
  font-size: 14px; font-weight: 500; color: var(--sub-color);
  border: 1px dashed var(--border-color); padding: 20px; border-radius: var(--radius); 
  background-color: var(--input-bg); line-height: 1.8;
}
.bank-info-mobile strong { color: var(--main-color); font-weight: 700; font-size: 16px;}

/* '개조 후' 선택 박스 강조 스타일 */
#afterSeat {
  border: 2px solid #ef4444 !important;
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   ★ 핵심: 화면 전환 및 인쇄 스타일 (성공했던 방식 복구)
   ========================================================================== */

 /* ==========================================================================
   ★ [인쇄 전용 스타일] 사진과 동일한 디자인 (2단 분리 & 테두리 스타일)
   ========================================================================== */

/* 1. 화면 표시 제어 (JS가 printing-mode 클래스를 붙이면 작동) */
.print-view { display: none; }

body.printing-mode {
    background-color: #fff !important;
    font-family: 'Noto Sans KR', sans-serif;
}

body.printing-mode .mobile-view,
body.printing-mode .fixed-action-bar,
body.printing-mode .sticky-total,
body.printing-mode .info-card {
    display: none !important;
}

body.printing-mode .print-view {
    display: block !important;
    width: 200mm; /* A4 폭 */
    margin: 0 auto;
	page-break-inside: avoid; /* 요소가 페이지 중간에 잘리는 것 방지 */
}

/* 2. 실제 인쇄 설정 */
@media print {
    @page { size: A4; margin: 5mm; } /* 여백 최소화 */
    html, body { margin: 0; padding: 0; width: 100%; height: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .mobile-view { display: none !important; }
    .print-view { display: block !important; width: 100%; }
}

/* -----------------------------------------------------------
   [테이블 디자인] 사진과 동일한 Grid Look
   ----------------------------------------------------------- */
.print-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000; /* 외곽 진한 테두리 */
    font-size: 9pt;
    table-layout: fixed;
    color: #000;
}

/* 셀 공통 스타일 */
.print-table td {
    border: 1px solid #000; /* 내부 얇은 검은 테두리 */
    padding: 4px 6px;
    vertical-align: middle;
}

/* 1. 헤더 영역 */
.print-header {
    text-align: center;
    font-size: 20pt;
    font-weight: 900;
    letter-spacing: 5px;
    padding: 10px 0;
}

/* 2. 배경색 유틸리티 */
.p-bg-gray {
    background-color: #f1f5f9 !important; /* 연한 회색 */
    text-align: center;
    font-weight: 800;
}
.p-bg-yellow {
    background-color: #fffac0 !important; /* 연한 노랑/베이지 */
    color: #ff0000 !important; /* 빨간 글씨 */
    font-weight: 900;
    font-size: 16pt;
    text-align: center;
    letter-spacing: -0.5px;
}

/* 3. 데이터 텍스트 */
.print-data {
    font-weight: 700;
    padding-left: 5px;
	text-align: center; /* 데이터 가운데 정렬 */
}

/* 4. 내부 리스트 테이블 (옵션 목록) */
.inner-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}
.inner-table td {
    border: none; /* 내부 줄 없애기 */
	border-bottom: 1px solid #ccc; /* 항목 간 연한 줄 */
    border-right: 1px solid #000; /* 세로줄 유지 */
    padding: 3px 2px;
    font-size: 8pt;
    height: 20px;
}
/* 마지막 줄 구분선 제거 */
.inner-table td:last-child { border-right: none; } /* 마지막 칸 세로줄 제거 */
.inner-table tr:last-child td { border-bottom: none; } /* 마지막 줄 가로줄 제거 */

/* 카테고리 바 (진한 회색) */
.p-category {
    background-color: #f1f5f9 !important;
    font-weight: 800;
    padding: 4px 8px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    font-size: 8.5pt;
	text-align:center;
}

/* 리스트 아이템 정렬 */
.col-star { width: 20px; text-align: center; }
.col-name { text-align: left; letter-spacing: -0.5px; }
.col-price { width: 75px; text-align: right; font-weight: bold; }

/* 별표 스타일 */
.p-star { color: #fff; text-shadow: 0 0 1px #bbb; font-size: 10px;} /* 빈 별 */
.p-star.checked { color: #000; text-shadow: none; font-size: 12px; } /* 채워진 별 */

/* 선택된 행 강조 */
tr.active-row td { font-weight: 900; color: #000; background-color: rgba(0,0,0,0.03); }

/* 5. 하단 합계 및 푸터 */
.p-total-section {
    border-top: 2px solid #000;
    background-color: #fff;
}
.bank-box {
    margin-top: 10px;
    border: 2px solid #000;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 10pt;
}

  /* ================= 인쇄 시 강제 설정 ================= */
  @media print {
    @page { 
      size: A4; 
      margin: 8mm; 
    }
    
    html, body {
      width: 210mm; 
      height: 100%;
      margin: 0; 
      padding: 0;
      background: #fff !important; /* 인쇄는 무조건 흰 배경 */
      color: #000 !important;      /* 인쇄는 무조건 검은 글씨 */
      -webkit-print-color-adjust: exact;
    }

    .mobile-view { display: none !important; }
    
    .print-view { 
      display: block !important; 
      width: 100%;
      margin: 0;
    }

	.fixed-action-bar, #emailModal {
	  position: fixed;
	  bottom: 25px; /* 화면 하단 여백 */
	  left: 50%;
	  transform: translateX(-50%); /* 화면 한가운데 정렬 */
	  display: none !important; /* 버튼들을 가로로 나란히 배치 */
	  gap: 12px; /* 버튼 사이 간격 */
	  z-index: 9000;
	  align-items: center; /* 버튼들의 상하 중앙을 맞춤 */
	}
    
    .print-table {
       width: 100%;
       table-layout: fixed;
    }
  }

  @media screen {
    /* 캡처할 때만 적용되는 규칙 */
    .print-view {
        position: relative;
        top: 0;
        left: 0;
        overflow: visible;
    }
    
    .print-page {
        width: 100%;
        margin: 0 auto;
        /* 페이지가 겹치는 것을 방지 */
        display: block; 
        background: #fff;
        /* 내부 내용이 삐져나와서 페이지가 밀리는 현상 방지 */
        box-sizing: border-box; 
    }
}

/* PDF 라이브러리가 인식하는 분할 지점 */
.print-page {
    page-break-after: always !important;
    page-break-inside: avoid !important;
}
.print-page:last-child {
    page-break-after: auto !important;
}

/* =========================================================
   스페셜 패키지 가로 버튼형 UI
   ========================================================= */
.pkg-btn-group {
    display: flex;
    gap: 8px; /* 버튼 사이 간격 */
    margin-bottom: 15px;
}

.pkg-item {
    flex: 1; /* 4개가 동일한 너비로 꽉 차게 배치 */
}

/* 라벨을 버튼처럼 디자인 */
.pkg-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 12px 4px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
	font-family: inherit;
}

.pkg-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--main-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.pkg-price, .pkg-sub {
    font-size: 11px;
    color: var(--sub-color);
}

.pkg-price {
    color: var(--accent-color);
    font-weight: 600;
}

/* 마우스 올렸을 때 액션 */
.pkg-btn:hover:not(.disabled) {
    border-color: var(--brand-color);
    background-color: var(--header-bg);
}

/* ★ 핵심: 체크박스가 선택(checked)되었을 때 바로 뒤의 label(.pkg-btn) 스타일 변경 */
input[type="checkbox"]:checked + .pkg-btn {
    background-color: #eff6ff; /* 연한 파란색 바탕 */
    border-color: var(--brand-color); /* 파란색 테두리 */
    box-shadow: 0 0 0 1px var(--brand-color); /* 테두리 강조 */
}

/* 다크모드 대응 (파란색 바탕) */
[data-theme="dark"] input[type="checkbox"]:checked + .pkg-btn {
    background-color: rgba(59, 130, 246, 0.15);
}

/* 체크되었을 때 글씨 색상 파란색으로 변경 */
input[type="checkbox"]:checked + .pkg-btn .pkg-title {
    color: var(--brand-color);
}

/* 준비중(비활성화) 버튼 스타일 */
.pkg-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: var(--input-bg);
}

/* 상세 영역을 카드로 묶음 */
.pkg-detail-area {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 10px;
}

/* 모바일 대응: 화면이 너무 좁을 경우 글씨가 깨지지 않게 2개씩 2줄로 배치 */
@media (max-width: 450px) {
    .pkg-btn-group { flex-wrap: wrap; }
    .pkg-item { flex: 1 1 calc(50% - 4px); }
    .pkg-btn { padding: 15px 5px; }
}



/* 항목 제목 옆 버튼 컨테이너 */
.item-link-btns {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 항목 제목 옆 버튼 컨테이너 */
.item-link-btns {
    display: inline-flex;
    gap: 6px; /* 버튼 사이 간격 약간 증가 */
    margin-left: 12px; /* 제목과 더 구분 */
    vertical-align: middle;
}

/* 하단에 펼쳐질 이미지 영역 */
.item-preview-area {
	width: 100%;
    flex: 0 0 100%; /* ★ 핵심: 체크박스 밑부분까지 가로 100% 꽉 채우기 */
    margin-top: 15px; 
    display: none; 
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--input-bg); 
    padding: 15px; 
    box-sizing: border-box;
    text-align: center; /* 한가운데 정렬 */
}

/* 실제 이미지 태그 스타일 */
.item-preview-area img {
	max-width: 100%; 
    height: auto;    
    display: block; 
    margin: 0 auto;  /* ★ 화면(박스) 한가운데 정중앙! */
    border-radius: 6px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* 항목 제목 옆 버튼 컨테이너 */
.item-link-btns {
    display: inline-flex;
    gap: 8px; /* 버튼 사이 간격 */
    margin-left: 12px;
    vertical-align: middle;
}

/* 세련된 3D(Neumorphism) 작은 버튼 스타일 */
.btn-item-link {
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px; /* 둥근 캡슐 형태 */
    border: 1px solid #8F9092; /* 은은한 회색 테두리 */
    color: #606060; /* 진한 회색 텍스트 */
    
    /* 입체감을 살리는 배경 그라데이션 */
    background: linear-gradient(180deg, #D8D9DB 0%, #ffffff 80%, #FDFDFD 100%);
    
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;

    /* 스크린샷의 복합 그림자 (작은 크기에 맞게 스케일 조정) */
    box-shadow:
        0 2px 2px 1px #FCFCFC,     /* highlight-bottom */
        0 4px 5px #D6D7D9,         /* shadow-bottom */
        0 -2px 2px #CECFD1,        /* shadow-top */
        0 -3px 2px #FEFEFE,        /* highlight-top */
        inset 0 0 2px 0 #CECFD1;   /* shadow-inset */
}

/* 아이콘 크기 및 색상 동기화 */
.btn-item-link .btn-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* 마우스 호버 시 안쪽 그림자 강조 */
.btn-item-link:hover {
    box-shadow:
        0 2px 2px 1px #FCFCFC,
        0 4px 5px #D6D7D9,
        0 -2px 2px #CECFD1,
        0 -3px 2px #FEFEFE,
        inset 0 0 2px 2px #CECFD1; /* shadow-inset-hover */
        
    color: #3b82f6; /* 포인트(브랜드) 컬러 텍스트 */
    border-color: #94a3b8;
}

/* 클릭 시(또는 이미지 열림 등 활성화 시) 꾹 눌리는 효과 */
.btn-item-link:active,
.btn-item-link.active {
    box-shadow:
        0 2px 2px 1px #FCFCFC,
        0 4px 5px #D6D7D9,
        0 -2px 2px #CECFD1,
        0 -3px 2px #FEFEFE,
        inset 0 0 3px 2px #999,
        inset 0 0 15px #aaa;       /* shadow-inset-active (더 깊게 파인 느낌) */
        
    border-color: #3b82f6;
    color: #3b82f6;
}

/* ==========================================================================
   [신규] 동영상(유튜브, MP4) 비율 유지 및 반응형 스타일
   ========================================================================== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 화면 비율 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}