/* ============================================================
   📱 PPA WEB 모바일 리디자인 v4
   Bottom Nav + 가독성 + 웹툰 추천기식 횡스크롤
   ============================================================
   ⚠️ 이 파일은 style.css 이후에 로드됩니다.
   데스크톱(>768px)에서는 전혀 작동하지 않습니다.
   ============================================================ */

@media (max-width: 768px) {

  /* ============================================================
     LAYER 0: 전역 리셋 & 변수
     ============================================================ */
  :root {
    --header-height: 56px;
    --bottom-nav-height: 56px;
    --mobile-side-pad: 16px;
  }

  html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
  }

  body {
    padding-bottom: var(--bottom-nav-height);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  body.drawer-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    touch-action: none;
  }

  .container {
    padding-left: var(--mobile-side-pad);
    padding-right: var(--mobile-side-pad);
  }

  /* ============================================================
     LAYER 1: 성능 — 불필요 요소 숨김
     ============================================================ */
  .hero-particles,
  .hero-scroll-indicator,
  .floating-widget-container {
    display: none !important;
  }

  .accordion-item:not(.visible) .accordion-body {
    display: none;
  }

  /* 🚫 챗봇 모바일에서 완벽히 숨김 처리 (순도 100% 제거) */
  #chatbotToggle,
  #chatbotWindow,
  .chatbot-toggle-btn,
  .chatbot-window,
  .chatbot-bubble,
  .chatbot-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
  }

  /* 🚫 데스크톱 전용 컴포넌트 모바일에서 숨김 */
  .desktop-only {
    display: none !important;
  }

  /* 📱 모바일 전용 컴포넌트 표시 구제 */
  .mobile-only {
    display: block !important;
  }

  .mobile-only.mobile-sub-header {
    display: flex !important;
  }

  /* ============================================================
     LAYER 2-A: 모바일 서브페이지 스티키 탑 헤더 (V6 모드)
     ============================================================ */
  .mobile-sub-header {
    display: flex !important;
    align-items: center;
    position: sticky;
    top: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    height: 56px;
    margin-bottom: 20px;
    /* transition for smooth scroll behavior */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .mobile-sub-header .btn-back {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 12px;
    margin-left: -8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
  }

  .mobile-sub-header .btn-back:active {
    background: rgba(0, 0, 0, 0.05);
  }

  .mobile-sub-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
  }

  /* ============================================================
     LAYER 2-T: Tooltip Icon (모바일 전용 툴팁 버튼)
     ============================================================ */
  .tooltip-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 80, 160, 0.1);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    font-style: italic;
    font-family: serif;
    border: 1px solid rgba(0, 80, 160, 0.2);
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
    margin-right: 4px;
    margin-top: -2px;
    transition: all 0.2s;
  }

  .tooltip-icon:active {
    background: var(--color-primary);
    color: white;
    transform: scale(0.9);
  }

  /* ============================================================
     LAYER 2-A: 모바일 메인 헤더 (56px 스티키)
     ============================================================ */
  header#mainHeader {
    height: var(--header-height) !important;
    min-height: unset !important;
  }

  .header-inner {
    height: var(--header-height) !important;
    padding: 0 12px !important;
  }

  /* 로고 축소 */
  header .logo {
    gap: 8px;
  }

  header .logo svg {
    width: 22px !important;
    height: 22px !important;
  }

  header .logo span:first-child {
    font-size: 0.9rem !important;
  }

  header .logo .logo-sub {
    display: none !important;
  }

  /* 데스크톱 네비·메가 드롭다운 숨기기 */
  .nav-menu,
  .mega-dropdown {
    display: none !important;
  }

  /* 햄버거 버튼 */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--text-white);
    z-index: 10001;
  }

  header.scrolled .menu-toggle {
    color: var(--text-dark);
  }

  /* 헤더 유틸리티 */
  .header-util {
    display: flex !important;
    gap: 4px;
  }

  .header-util .senior-mode-toggle {
    display: none !important;
  }

  .header-util .search-trigger {
    width: 48px;
    height: 48px;
    padding: 10px;
  }

  /* ============================================================
     LAYER 2-B: ⭐ 하단 고정 네비게이션 바 (5개 메뉴)
     넷플릭스/웨이브 스타일 — 항상 표시
     ============================================================ */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 9999;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    text-decoration: none;
    color: #8E8E93;
    font-size: 0.65rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item .nav-icon {
    font-size: 1.25rem;
    line-height: 1;
  }

  .bottom-nav-item .nav-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
  }

  .bottom-nav-item.active {
    color: var(--color-primary, #0050A0);
  }

  .bottom-nav-item.active .nav-icon svg {
    stroke-width: 2.2;
  }

  .bottom-nav-item:active {
    opacity: 0.7;
  }

  /* 기존 bottom-bar 요소 완전 숨김 — JS가 이전 것을 남길 수 있으므로 */
  .mobile-bottom-bar {
    display: none !important;
  }

  /* ============================================================
     LAYER 2-C: 풀스크린 드로어 (간소화)
     ============================================================ */
  .mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--header-height);
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }

  .mobile-drawer-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 10001;
  }

  .mobile-drawer-header .drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
  }

  .mobile-drawer-header .drawer-logo svg {
    color: var(--color-primary);
  }

  .drawer-close {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.4rem;
    border-radius: 50%;
  }

  .drawer-close:active {
    background: rgba(0, 0, 0, 0.06);
  }

  .mobile-drawer-nav {
    padding: 12px 0;
  }

  .drawer-menu-item {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    user-select: none;
    gap: 0;
  }

  .drawer-menu-item .menu-icon {
    margin-right: 12px;
    font-size: 1.1rem;
  }

  .drawer-menu-item .menu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--text-light);
    font-size: 0.8rem;
  }

  .drawer-menu-item.expanded .menu-arrow {
    transform: rotate(180deg);
  }

  .drawer-menu-item:active {
    background: rgba(0, 80, 160, 0.04);
  }

  /* 서브메뉴 아코디언 */
  .drawer-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 80, 160, 0.02);
  }

  .drawer-submenu.open {
    max-height: 500px;
  }

  .drawer-submenu a {
    display: block;
    padding: 14px 20px 14px 52px;
    font-size: 0.95rem;
    color: var(--text-medium);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .drawer-submenu a:active {
    background: rgba(0, 80, 160, 0.06);
    color: var(--color-primary);
  }

  /* 드로어 하단 */
  .drawer-footer {
    padding: 24px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 8px;
  }

  .drawer-footer-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
  }

  .drawer-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .drawer-quick-links a {
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 80, 160, 0.06);
    border-radius: 8px;
    text-decoration: none;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .drawer-quick-links a:active {
    background: var(--color-primary);
    color: #fff;
  }

  .drawer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .drawer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-medium);
  }

  .drawer-contact-item a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
  }

  .drawer-senior-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: rgba(0, 80, 160, 0.04);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    min-height: 48px;
  }

  /* ============================================================
     LAYER 3: 히어로 섹션 — clamp() 가독성 강화
     ============================================================ */
  .hero {
    min-height: 60vh !important;
    max-height: 80vh;
  }

  .hero-content {
    padding: 70px 0 90px !important;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    line-height: 1.4 !important;
    word-break: keep-all;
    letter-spacing: -0.5px;
  }

  .hero h1 br {
    display: none;
  }

  .hero-desc {
    font-size: clamp(0.9rem, 3vw, 1.05rem) !important;
    line-height: 1.6 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .hero-desc br {
    display: none;
  }

  .hero-badge {
    font-size: 0.72rem !important;
    padding: 6px 14px !important;
  }

  .hero-bg-img {
    object-position: 65% center !important;
  }

  /* 모바일 문구 간략화 유틸리티 */
  .mobile-full {
    display: none !important;
  }

  .mobile-short {
    display: inline !important;
  }

  /* CTA 버튼 풀 너비 */
  .hero .btn {
    width: 100%;
    text-align: center;
  }

  /* ============================================================
     LAYER 3-B: 프로모 카드 — 횡스크롤 (웹툰 추천기식)
     ============================================================ */
  .promo-slider {
    margin-top: 16px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px !important;
  }

  .promo-slider::-webkit-scrollbar {
    display: none;
  }

  .promo-card {
    flex: 0 0 85vw !important;
    scroll-snap-align: start;
    padding: 12px 16px !important;
    border-radius: 10px !important;
  }

  .promo-card h3 {
    font-size: 0.85rem !important;
    white-space: normal !important;
  }

  .promo-card p {
    display: none !important;
  }

  .promo-card span[style*="width: 1px"] {
    display: none !important;
  }

  .promo-card a[href] {
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    min-width: unset !important;
  }

  /* ============================================================
     LAYER 3-C: 구조 분리 유틸리티
     ============================================================ */
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* ============================================================
     LAYER 3-D: 모바일 앱 스타일 (가로 스와이프 업무 카드)
     ============================================================ */
  .mobile-widget-section {
    position: relative;
    z-index: 10;
  }

  .mobile-swipe-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    /* 스크롤바 숨김 */
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  .mobile-swipe-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .mobile-type-card {
    flex: 0 0 160px;
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
  }

  .mobile-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .mobile-type-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
  }

  .mobile-card-action {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
  }

  /* ============================================================
     LAYER 4: 업무 카드 (기존 호환성 보존)
     ============================================================ */
  .user-type-section {
    padding: 28px 0 !important;
  }

  .user-type-section h3[style*="font-size: 1.5rem"],
  .user-type-section h2,
  .user-type-section h3 {
    font-size: clamp(1.2rem, 5vw, 1.4rem) !important;
    word-break: keep-all;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }

  .user-type-section p[style*="margin-bottom: 36px"] {
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
  }

  /* 그리드 → 횡스크롤 */
  .user-type-section [style*="grid-template-columns"] {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .user-type-section [style*="grid-template-columns"]::-webkit-scrollbar {
    display: none;
  }

  .user-type-card {
    flex: 0 0 140px !important;
    scroll-snap-align: start;
    padding: 20px 14px !important;
    border-radius: 14px !important;
    min-height: auto !important;
  }

  .user-type-card h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    white-space: nowrap;
  }

  /* 카드 설명 숨기고 제목만 표시 */
  .user-type-card p {
    display: none !important;
  }

  .user-type-card span[style*="margin-top"] {
    font-size: 0.75rem !important;
    margin-top: 8px !important;
  }

  /* ============================================================
     LAYER 5-A: 탭 시스템 — 횡스크롤
     ============================================================ */
  .tabs-menu {
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
    padding: 0 var(--mobile-side-pad) !important;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap !important;
  }

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

  /* 탭 버튼 터치 영역 및 가독성 확장 */
  .tab-btn {
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    text-align: center !important;
    white-space: nowrap;
    font-size: 0.95rem !important;
    padding: 12px 20px !important;
    min-height: 52px;
    font-weight: 600 !important;
  }

  /* FAQ 카테고리 드롭다운 대체 */
  .faq-category-tabs {
    display: none !important;
  }

  .faq-category-select {
    display: block !important;
    width: calc(100% - 32px);
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41.59L6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    margin: 0 16px;
    min-height: 48px;
  }

  /* ============================================================
     LAYER 5-T: 서브페이지 모바일 전용 탭(해줌 스타일 바 형태)
     ============================================================ */
  .mobile-tab-select-wrapper {
    position: relative;
    margin: 0 var(--mobile-side-pad) 24px;
    z-index: 10;
  }

  .mobile-tab-select {
    display: block !important;
    width: 100%;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--color-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath fill='%230050A0' d='M1.88 0L8 6.18 14.12 0 16 1.88 8 9.88 0 1.88z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
    min-height: 56px;
    box-shadow: 0 4px 12px rgba(0, 80, 160, 0.08);
  }

  .mobile-tab-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 80, 160, 0.2);
  }

  /* 기존 탭 메뉴 모바일에서 숨김 처리 */
  .tabs-menu.desktop-only {
    display: none !important;
  }

  /* ============================================================
     LAYER 5-B: 테이블 — 가로 스크롤
     ============================================================ */
  .data-table-wrapper,
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--mobile-side-pad));
    padding: 0 var(--mobile-side-pad);
  }

  .data-table,
  .comparison-table,
  .type-table {
    min-width: 600px;
  }

  .type-table td:first-child,
  .type-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: white;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
  }

  .type-table th:first-child {
    background: #EBF2FA;
  }

  /* ============================================================
     LAYER 5-C: 인라인 그리드 → 1열 오버라이드
     ============================================================ */
  [style*="grid-template-columns"]:not(.user-type-section *):not(.stats-grid):not(.footer-bottom-links *) {
    grid-template-columns: 1fr !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* ============================================================
     LAYER 5-D: 팝업 → 인라인 모달
     ============================================================ */
  .mobile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.2s ease;
  }

  .mobile-modal {
    width: 100%;
    max-height: 90vh;
    background: white;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8f9fa;
  }

  .mobile-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
  }

  .mobile-modal iframe {
    width: 100%;
    height: calc(90vh - 60px);
    border: none;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

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

    to {
      transform: translateY(0);
    }
  }

  /* ============================================================
     LAYER 6: 정보 허브 / CTA / 푸터 — 간략화
     ============================================================ */
  .info-hub-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .info-hub-wrapper {
    padding: 28px 0 !important;
  }

  /* CTA 섹션 간략화 */
  .cta-section .cta-content {
    padding: 28px 20px !important;
    text-align: center;
  }

  .cta-section h2 {
    font-size: clamp(1.1rem, 4vw, 1.3rem) !important;
    margin-bottom: 8px !important;
  }

  .cta-section p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important;
  }

  .cta-info {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center;
  }

  .cta-item {
    justify-content: center;
  }

  .cta-emails {
    text-align: center;
  }

  .cta-emails div {
    flex-direction: column !important;
  }

  .cta-emails small {
    font-size: 0.72rem !important;
  }

  .cta-section .btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px !important;
    font-size: 1.05rem !important;
    border-radius: 12px !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 푸터 */
  footer {
    padding: 28px 0 calc(var(--bottom-nav-height) + 16px) !important;
  }

  .footer-top {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .footer-info {
    text-align: center;
  }

  .footer-info p {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
  }

  .footer-contact {
    text-align: center !important;
  }

  .footer-contact .phone {
    font-size: 1.5rem !important;
  }

  .footer-region {
    font-size: 0.8rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center;
  }

  /* ============================================================
     LAYER 7: 접근성 — 48px 터치 타겟, 16px input
     ============================================================ */

  /* 모든 인터랙티브 요소 최소 높이 (오터치 방지) */
  a:not(.drawer-logo):not(.bottom-nav-item),
  button,
  input[type="button"],
  input[type="submit"],
  [role="button"],
  select,
  .tab-btn,
  .accordion-header {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 네비게이션 드로어나 기타 예외는 별도 처리되거나 기존 flex를 상속 */
  .drawer-menu-item {
    align-items: center;
    justify-content: flex-start;
  }

  .accordion-header {
    justify-content: flex-start;
  }

  /* input iOS 줌 방지 */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  /* ============================================================
     LAYER 7-A: 타이포그래피 및 가독성 극대화 (해줌 스타일)
     ============================================================ */
  /* 규정, 안내문, 표 내용 등 긴 텍스트 읽기 편안하게 조정 */
  p,
  li,
  td,
  .step-desc,
  .accordion-body,
  .policy-intro {
    word-break: keep-all !important;
    line-height: 1.65 !important;
    letter-spacing: -0.3px !important;
  }

  /* 제목류 강한 볼드, 자간 축소, 단어 끊김 방지 */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-break: keep-all !important;
    letter-spacing: -0.5px !important;
    font-weight: 800 !important;
  }

  /* ============================================================
     LAYER 8: 시니어 모드 × 모바일 충돌 해결
     ============================================================ */
  body.senior-mode .hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 1.8rem) !important;
  }

  body.senior-mode .hero-desc {
    font-size: clamp(1rem, 3vw, 1.15rem) !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  body.senior-mode .tab-btn {
    font-size: 1rem !important;
    padding: 12px 18px !important;
  }

  body.senior-mode .drawer-menu-item {
    font-size: 1.1rem;
    min-height: 56px;
  }

  body.senior-mode .bottom-nav-item {
    font-size: 0.72rem;
  }

  body.senior-mode .bottom-nav-item .nav-icon {
    font-size: 1.4rem;
  }

  /* ═══════════════════════════════════════════════
     [V6] APP-LIKE 마스터 보드 (웰컴 패널 + 벤토 그리드) 
  ═══════════════════════════════════════════════ */
  .mobile-master-board {
    padding: 16px 0 100px;
    /* 하단 GNB 공간 확보 */
    background: var(--bg-body);
  }

  /* 1. 상단 하프-플로팅 검색바 */
  .mobile-top-search {
    display: flex;
    align-items: center;
    background: white;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    gap: 10px;
    border: 1px solid rgba(0, 80, 160, 0.1);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .mobile-top-search:active {
    transform: scale(0.98);
  }

  /* 2. 웰컴 패널 (인사말 + 공지) */
  .mobile-welcome-panel {
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .welcome-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
  }

  .welcome-header p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
  }

  .welcome-notice-ticker {
    display: flex;
    align-items: center;
    background: rgba(0, 80, 160, 0.04);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    gap: 10px;
    transition: background 0.2s;
  }

  .welcome-notice-ticker:active {
    background: rgba(0, 80, 160, 0.08);
  }

  .ticker-badge {
    background: var(--color-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
  }

  .ticker-text {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ticker-arrow {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
  }

  /* 3. Bento Grid (벤토 그리드) */
  .mobile-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .bento-row {
    display: flex;
    gap: 16px;
    width: 100%;
  }

  .bento-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
  }

  .bento-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  }

  /* 1열 프라임 큰 카드 (정사각형) */
  .bento-prime {
    flex: 1;
    aspect-ratio: 1 / 1.1;
    justify-content: flex-end;
    color: white;
    padding: 24px;
    border: none;
  }

  .bento-prime .bento-icon {
    font-size: 2.2rem;
    position: absolute;
    top: 20px;
    left: 20px;
  }

  .bento-prime h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: white;
  }

  .bento-prime p {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.3;
    word-break: keep-all;
  }

  .bg-blue {
    background: linear-gradient(135deg, #0050A0 0%, #0072E5 100%);
  }

  .bg-green {
    background: linear-gradient(135deg, #278F67 0%, #10B981 100%);
  }

  /* 2열 하단 미니 카드 (대금수령 카드는 비율만 정사각 유지) */
  .bento-vertical {
    flex: 0.8;
    aspect-ratio: 1 / 1.1;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
  }

  .bento-vertical .bento-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }

  .bento-vertical h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
  }

  /* 2열 우측 가로 미니 카드 (용량확인, 자료찾기) */
  .bento-horizontal {
    flex: 1;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    justify-content: center;
  }

  .bento-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .bento-icon.mini {
    font-size: 1.5rem;
  }

  .bento-horizontal h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
  }

}

/* end @media */

/* 데스크톱에서 모바일 요소 숨기기 */
@media (min-width: 769px) {

  .mobile-short,
  .mobile-master-board,
  .mobile-bottom-nav {
    display: none !important;
  }
}