/* MCSELLER Mobile Optimization CSS */

/* 모바일 기본 설정 */
@media screen and (max-width: 768px) {
  /* 터치 최적화 - 스크롤 허용 */
  * {
    -webkit-tap-highlight-color: transparent !important;
    scroll-behavior: auto !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 기본 터치 액션 - 스크롤 허용 */
  * {
    touch-action: pan-y !important;
  }

  /* 스크롤 가능 요소 */
  html,
  body,
  .scrollable,
  .overflow-auto {
    touch-action: pan-y !important;
  }

  /* 터치 가능 요소들 */
  button,
  a,
  input,
  textarea,
  select,
  [role='button'] {
    touch-action: manipulation !important;
  }

  /* 스크롤 개선 - pull-to-refresh 완전 차단 */
  html,
  body {
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: auto !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    height: auto !important;
    min-height: 100% !important;
    overscroll-behavior: none !important;
    overscroll-behavior-y: none !important;
    -webkit-overscroll-behavior: none !important;
    -webkit-overscroll-behavior-y: none !important;
    position: relative !important;
    transform: translate3d(0, 0, 0) !important;
  }

  /* Fixed positioning 문제 해결 */
  body {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }

  /* 전체 페이지 컨테이너 */
  .container,
  .container-fluid {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  /* 모바일 글자 크기 최적화 - 개선된 가독성 */
  body {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* 제목 글자 크기 조절 - 더 크고 읽기 쉽게 */
  h1 {
    font-size: 2.2rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.5rem !important;
  }

  h2 {
    font-size: 1.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.3rem !important;
  }

  h3 {
    font-size: 1.6rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.2rem !important;
  }

  h4 {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
  }

  h5 {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.8rem !important;
  }

  h6 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.7rem !important;
  }

  /* 본문 글자 크기 - 개선된 가독성 */
  p,
  .text-muted,
  small {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
  }

  /* 버튼 글자 크기 */
  .btn {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }

  .btn-sm {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  .btn-lg {
    font-size: 1rem !important;
    padding: 0.6rem 1.2rem !important;
  }

  /* 네비게이션 글자 크기 */
  .navbar-brand {
    font-size: 1.3rem !important;
  }

  .nav-link {
    font-size: 0.9rem !important;
  }

  /* 카드 글자 크기 */
  .card-title {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }

  .card-text {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  /* 폼 입력 글자 크기 */
  .form-control,
  .form-select {
    font-size: 0.95rem !important;
  }

  /* 테이블 글자 크기 */
  .table {
    font-size: 0.85rem !important;
  }

  /* 배지 글자 크기 */
  .badge {
    font-size: 0.75rem !important;
  }

  /* 풀터 글자 크기 */
  footer {
    font-size: 0.85rem !important;
  }

  /* 모달 글자 크기 */
  .modal-title {
    font-size: 1.2rem !important;
  }

  .modal-body {
    font-size: 0.9rem !important;
  }

  /* 폰트 최적화 */
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  /* 버튼 터치 영역 확대 - 개선된 터치성 */
  .btn {
    min-height: 52px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
    transition: all 0.3s ease !important;
    margin: 8px 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
  }

  .btn:active {
    transform: scale(0.97) !important;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4) !important;
  }

  /* 주요 액션 버튼 스타일 */
  .btn-primary,
  .btn-warning {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 6px 18px rgba(255, 153, 0, 0.3) !important;
  }

  .btn-outline-primary,
  .btn-outline-warning {
    border: 2px solid #ff9900 !important;
    color: #ff9900 !important;
    background: transparent !important;
    outline: none !important;
  }

  .btn-outline-primary:hover,
  .btn-outline-warning:hover {
    background: #ff9900 !important;
    color: white !important;
  }

  /* 카드 스타일 모바일 최적화 - 개선된 시각성 */
  .card {
    border-radius: 20px !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    overflow: hidden !important;
    outline: none !important;
    border-style: none !important;
  }

  .card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(255, 153, 0, 0.2) !important;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .card-header {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600 !important;
  }

  /* 네비게이션 최적화 */
  .navbar-nav {
    padding: 1rem 0;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    margin: 4px 0;
  }

  /* 입력 필드 최적화 */
  .form-control {
    font-size: 16px; /* iOS 줌 방지 */
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
  }

  .form-control:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 0, 0.25);
    transform: translateY(-2px);
  }

  /* 모달 최적화 */
  .modal-dialog {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .modal-content {
    border-radius: 16px;
  }

  /* 텍스트 크기 조정 */
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  h5 {
    font-size: 1.125rem;
  }
  h6 {
    font-size: 1rem;
  }

  /* 간격 조정 - 스크롤 개선 및 중앙 정렬 */
  .container-fluid {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    max-width: 100% !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  .row > * {
    margin-bottom: 1.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 중앙 정렬 강화 */
  .text-center {
    text-align: center !important;
  }

  .d-flex {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .justify-content-center {
    justify-content: center !important;
  }

  .align-items-center {
    align-items: center !important;
  }

  /* 섹션 간격 개선 */
  section {
    padding: 2rem 0 !important;
    margin-bottom: 1rem !important;
  }

  .hero-section {
    padding: 3rem 0 !important;
    text-align: center !important;
  }

  /* 이미지 최적화 */
  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* 테이블 스크롤 */
  .table-responsive {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* 토스트 알림 위치 조정 */
  .toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 1060;
  }

  .toast {
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }
}

/* 작은 모바일 기기 (iPhone SE 등) */
@media screen and (max-width: 400px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

/* 큰 모바일 기기 및 태블릿 */
@media screen and (min-width: 576px) and (max-width: 991px) {
  .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .card {
    margin-bottom: 2rem;
  }

  .btn-lg {
    min-height: 52px;
    font-size: 18px;
  }
}

/* 햄버거 메뉴 개선 */
@media screen and (max-width: 991px) {
  .navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 153, 0, 0.1);
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 0, 0.25);
  }

  .navbar-collapse {
    background: rgba(17, 17, 17, 0.95);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
}

/* 스와이프 제스처 지원 */
.swipeable {
  touch-action: pan-x;
  user-select: none;
}

/* 풀스크린 비디오 플레이어 최적화 */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* 모바일 전용 유틸리티 클래스 */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media screen and (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .mobile-center {
    text-align: center;
  }

  .mobile-full-width {
    width: 100%;
  }

  .mobile-hide {
    display: none !important;
  }
}

/* 모바일 스크롤 궁극 수정 */
@media screen and (max-width: 768px) {
  /* 모든 섹션에서 가로 스크롤 방지 */
  section,
  .section,
  .hero-section {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* 카드와 콘텐츠 요소들 */
  .card,
  .modal,
  .alert,
  .toast {
    max-width: calc(100vw - 2rem) !important;
    overflow-x: hidden !important;
  }

  /* 텍스트 줄바꿈 강제 */
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  span,
  div {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* 테이블 스크롤 개선 */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: calc(100vw - 2rem) !important;
  }

  /* AOS 애니메이션 요소 정적 표시 */
  [data-aos] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  :root {
    --bs-body-bg: #111111;
    --bs-body-color: #e0e0e0;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* 고해상도 디스플레이 최적화 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .btn {
    border-width: 0.5px;
  }

  .card {
    border-width: 0.5px;
  }
}

/* iOS Safari 특별 최적화 */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari 스크롤 문제 해결 */
  html,
  body {
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
    height: auto !important;
    position: relative !important;
  }

  /* iOS Safari viewport 문제 해결 */
  .container,
  .container-fluid,
  .row,
  .col {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* iOS Safari 100vh 문제 해결 */
  .hero-section,
  .section {
    min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  }

  .btn {
    -webkit-appearance: none;
    -webkit-border-radius: 12px;
  }

  .form-control {
    -webkit-appearance: none;
    -webkit-border-radius: 12px;
  }
}

/* 모바일 드래그 앤 드롭 방지 */
img,
.card,
.btn {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* 모바일 컨텍스트 메뉴 방지 */
.no-context-menu {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 진동 피드백 지원 클래스 */
.vibrate-light {
  /* JavaScript에서 navigator.vibrate(50) 호출 */
}

.vibrate-medium {
  /* JavaScript에서 navigator.vibrate(100) 호출 */
}

.vibrate-strong {
  /* JavaScript에서 navigator.vibrate([100, 30, 100]) 호출 */
}

/* 추가 모바일 최적화 - PC 디자인 50% 수준 보장 */
@media screen and (max-width: 768px) {
  /* 고급 레이아웃 그리드 모바일 최적화 */
  .row.advanced-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .col-advanced {
    width: 100% !important;
    margin-bottom: 1rem;
  }

  /* 고급 카드 그리드 시스템 */
  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  /* 모바일 전용 아이콘 시스템 */
  .mobile-icon {
    font-size: 1.5rem;
    margin: 0.5rem;
    color: #ff9900;
  }

  /* 향상된 버튼 스타일 */
  .btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2);
  }

  .btn-enhanced:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
  }

  .btn-enhanced:hover:before {
    left: 100%;
  }

  /* 고급 입력 필드 스타일 */
  .form-enhanced {
    position: relative;
    margin-bottom: 2rem;
  }

  .form-enhanced .form-control {
    padding: 1rem 1rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 15px;
  }

  .form-enhanced label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    transition: all 0.3s ease;
    color: #999;
    pointer-events: none;
  }

  .form-enhanced .form-control:focus + label,
  .form-enhanced .form-control:not(:placeholder-shown) + label {
    top: 0.3rem;
    font-size: 0.8rem;
    color: #ff9900;
  }

  /* 향상된 알림 시스템 */
  .toast-enhanced {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  /* 고급 탭 시스템 */
  .nav-tabs-enhanced {
    border: none;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 2rem;
  }

  .nav-tabs-enhanced .nav-link {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
  }

  .nav-tabs-enhanced .nav-link.active {
    background: #ff9900;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
  }

  /* 향상된 프로그레스 바 */
  .progress-enhanced {
    height: 12px;
    border-radius: 10px;
    background: rgba(255, 153, 0, 0.1);
    overflow: hidden;
    position: relative;
  }

  .progress-enhanced .progress-bar {
    background: linear-gradient(45deg, #ff9900, #ffb84d);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
  }

  .progress-enhanced .progress-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 70%
    );
    animation: shimmer 2s infinite;
  }

  @keyframes shimmer {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }

  /* 고급 모달 시스템 */
  .modal-enhanced .modal-dialog {
    margin: 0;
    height: 100vh;
    max-width: 100vw;
    display: flex;
    align-items: flex-end;
  }

  .modal-enhanced .modal-content {
    border-radius: 25px 25px 0 0;
    border: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
  }

  /* 스와이프 제스처 향상 */
  .swipe-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
  }

  .swipe-item {
    transition: transform 0.3s ease;
    cursor: grab;
  }

  .swipe-item:active {
    cursor: grabbing;
    transform: scale(0.98);
  }

  /* 향상된 로딩 애니메이션 */
  .loading-enhanced {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
  }

  .loading-enhanced:after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    margin: 4px;
    border-radius: 50%;
    border: 3px solid #ff9900;
    border-color: #ff9900 transparent #ff9900 transparent;
    animation: dual-ring 1.2s linear infinite;
  }

  @keyframes dual-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /* 고급 그리드 레이아웃 */
  .grid-enhanced {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .grid-item-enhanced {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
  }

  .grid-item-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 153, 0, 0.2);
  }

  /* 향상된 검색 바 */
  .search-enhanced {
    position: relative;
    margin-bottom: 2rem;
  }

  .search-enhanced input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .search-enhanced input:focus {
    border-color: #ff9900;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
    outline: none;
  }

  .search-enhanced .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ff9900;
    font-size: 1.2rem;
  }

  /* 향상된 통계 카드 - 모바일 최적화 */
  .stats-card-enhanced {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    color: white !important;
    border-radius: 24px !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 12px 35px rgba(255, 153, 0, 0.35) !important;
    margin-bottom: 2rem !important;
    border: none !important;
  }

  .stats-card-enhanced:before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    pointer-events: none !important;
  }

  .stats-number {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.8rem !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: -1px !important;
  }

  .stats-label {
    font-size: 1.1rem !important;
    opacity: 0.95 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 500 !important;
  }

  /* 통계 카드 전용 스타일 */
  .card.stats-card {
    background: rgba(255, 153, 0, 0.1) !important;
    border: none !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .card.stats-card .card-body {
    padding: 2rem !important;
  }

  .card.stats-card h2,
  .card.stats-card h3 {
    color: #ff9900 !important;
    font-weight: 700 !important;
    font-size: 2.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  .card.stats-card p {
    color: #666 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
  }

  /* 추가 모바일 최적화 스타일 */

  /* 네비게이션 바 완전 최적화 */
  .navbar {
    padding: 1rem 0 !important;
    background: rgba(17, 17, 17, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }

  .navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ff9900 !important;
  }

  .navbar-toggler {
    border: none !important;
    padding: 0.5rem !important;
    font-size: 1.2rem !important;
    background: rgba(255, 153, 0, 0.1) !important;
    border-radius: 10px !important;
    color: #ff9900 !important;
  }

  .navbar-nav .nav-link {
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    color: #e0e0e0 !important;
    border-radius: 12px !important;
    margin: 0.25rem 0 !important;
    transition: all 0.3s ease !important;
  }

  .navbar-nav .nav-link:hover {
    background: rgba(255, 153, 0, 0.2) !important;
    color: #ff9900 !important;
  }

  /* 폼 요소 완전 최적화 */
  .form-control {
    font-size: 16px !important; /* iOS 줌 방지 */
    padding: 1rem 1.5rem !important;
    border-radius: 16px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .form-control:focus {
    border-color: #ff9900 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 0, 0.25) !important;
    transform: translateY(-2px) !important;
    background: white !important;
  }

  .form-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.8rem !important;
  }

  /* 테이블 모바일 최적화 */
  .table-responsive {
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
  }

  .table {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
  }

  .table th {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 1rem !important;
    border: none !important;
  }

  .table td {
    padding: 0.8rem !important;
    border-color: transparent !important;
    vertical-align: middle !important;
  }

  /* 모달 완전 최적화 */
  .modal-content {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  .modal-header {
    border-bottom: none !important;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    color: white !important;
  }

  .modal-title {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
  }

  .modal-body {
    padding: 2rem !important;
    font-size: 1rem !important;
  }

  .modal-footer {
    border-top: none !important;
    padding: 1.5rem !important;
  }

  .btn-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    opacity: 0.8 !important;
  }

  /* 알림 토스트 최적화 */
  .toast {
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: none !important;
  }

  .toast-header {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    color: white !important;
    border-bottom: none !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .toast-body {
    padding: 1.5rem !important;
    font-size: 1rem !important;
  }

  /* 진행 바 최적화 */
  .progress {
    height: 16px !important;
    border-radius: 12px !important;
    background: rgba(255, 153, 0, 0.1) !important;
    overflow: hidden !important;
  }

  .progress-bar {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    border-radius: 12px !important;
    transition: width 0.3s ease !important;
  }

  /* 뱃지 최적화 */
  .badge {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
  }

  .badge.bg-primary {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    color: white !important;
  }

  /* 드롭다운 최적화 */
  .dropdown-menu {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }

  .dropdown-item {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
  }

  .dropdown-item:hover {
    background: rgba(255, 153, 0, 0.1) !important;
    color: #ff9900 !important;
  }

  /* 추가 터치 최적화 */
  a,
  button,
  .btn,
  .nav-link,
  .dropdown-item {
    -webkit-tap-highlight-color: rgba(255, 153, 0, 0.2) !important;
  }

  /* 스크롤바 스타일링 */
  ::-webkit-scrollbar {
    width: 8px !important;
  }

  ::-webkit-scrollbar-track {
    background: rgba(255, 153, 0, 0.1) !important;
    border-radius: 10px !important;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
    border-radius: 10px !important;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e68900, #ff9900) !important;
  }

  /* 최종 완성도 향상 */
  .shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

  .shadow {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  }

  .shadow-lg {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
  }

  .border-primary {
    border-color: #ff9900 !important;
  }

  .text-primary {
    color: #ff9900 !important;
  }

  .bg-primary {
    background: linear-gradient(135deg, #ff9900, #ffb84d) !important;
  }

  /* 반응형 이미지 최적화 */
  .img-fluid {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
  }

  /* 추가 애니메이션 */
  .fade-in {
    animation: fadeIn 0.5s ease-in-out !important;
  }

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

  .slide-up {
    animation: slideUp 0.3s ease-out !important;
  }

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

  /* 히어로 섹션 상단 공백 조정 */
  .hero-section {
    padding-top: 20px !important;
    min-height: auto !important;
    margin-top: 60px !important;
  }

  .hero-section .row {
    min-height: auto !important;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
  }

  /* 모든 투명 보더 완전 제거 */
  .card,
  .card-header,
  .card-body,
  .card-footer,
  .btn,
  .form-control,
  .form-select,
  .achievement-card,
  .special-offer-card,
  .course-card,
  .price-card {
    border: none !important;
    outline: none !important;
    border-style: none !important;
  }

  /* 무료특강 박스 최적화 */
  .special-offer-card,
  .free-lecture-card {
    padding: 20px !important;
    margin-bottom: 30px !important;
  }

  .special-offer-card h3,
  .free-lecture-card h3 {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
  }

  .special-offer-card p,
  .free-lecture-card p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
  }

  /* 카카오채널 플로팅 버튼 */
  .kakao-floating-btn {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    background: #fee500 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
  }

  .kakao-floating-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  }

  .kakao-floating-btn img {
    width: 35px !important;
    height: 35px !important;
  }
}
