/* ========================================
   통합 CSS - 고객 접수 시스템 (완전 수정판)
   ======================================== */

/* ========================================
   기본 스타일 (공통)
   ======================================== */
body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  background: #f7f9fc;
  margin: 0;
  padding: 0;
}

/* ========================================
   컨테이너 & 레이아웃 (공통)
   ======================================== */
.form-container {
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.container {
  max-width: 95vw;
  margin: 30px auto;
  padding: 20px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ========================================
   폼 요소들 (공통)
   ======================================== */
form { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.form-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px; 
}

.form-group { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
}

.full-width { 
  flex: 100%; 
}

label { 
  font-weight: 500; 
  margin-bottom: 6px; 
}

.required {
  color: red;
  margin-left: 4px;
}

input, select, textarea {
  padding: 10px 12px; 
  font-size: 14px; 
  border: 1px solid #ccc;
  border-radius: 8px; 
  background: #fdfdfd;
}

textarea { 
  resize: vertical; 
}

.input-error { 
  border-color: #ef4444 !important; 
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15); 
}

/* ========================================
   헤더 & 네비게이션 (공통)
   ======================================== */
.form-header { 
  text-align: center; 
  margin-bottom: 30px; 
}

.form-header-inner {
  position: relative;
  text-align: center;
}

.responsive-logo {
  max-width: 180px; 
  width: 100%; 
  height: auto;
  display: block; 
  margin: 0 auto 12px;
}

.form-header-inner h1 {
  font-size: 24px; 
  color: #333; 
  margin: 0;
}

.header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.page-title {
  position: static;
  transform: none;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  text-align: center;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.header-actions .welcome {
  color: #555;
}

.header-actions .left-buttons,
.header-actions .right-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-status {
  align-self: flex-end;
  background: #e6edf5;
  color: #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background-color .2s, color .2s;
}

.login-status:hover { 
  background: #d7e5f1; 
}

.header-actions a.logout {
  padding: 4px 16px;
  border-radius: 999px;
  background: #efefef;
  color: #333;
  text-decoration: none;
  border: 1px solid #e2e2e2;
  font-size: 14px;
  font-weight: 500;
}

.header-actions a.logout:hover {
  background: #e8e8e8;
}

/* ========================================
   버튼 스타일 (공통)
   ======================================== */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 6px;
  padding: 8px 12px; 
  border-radius: 8px; 
  border: 1px solid #e5e7eb;
  background: #fff; 
  color: #111827; 
  cursor: pointer; 
  font-size: 14px;
  transition: background .2s, box-shadow .2s, border-color .2s;
}

.btn:hover { 
  background: #f9fafb; 
  border-color: #d1d5db; 
}

.btn-primary { 
  background: #2563eb; 
  color: #fff; 
  border-color: #1d4ed8; 
}

.btn-primary:hover { 
  background: #1d4ed8; 
}

.is-disabled {
  opacity: .55;
  cursor: not-allowed !important;
  pointer-events: auto;
}

.submit-btn {
  background-color: #0066cc; 
  color: white; 
  padding: 14px; 
  font-size: 16px;
  border: none; 
  border-radius: 8px; 
  cursor: pointer; 
  margin-top: 20px;
  transition: background 0.3s ease;
}

.submit-btn:hover { 
  background-color: #004d99; 
}

/* Live Scroll & Shop Buttons */
.live-scroll-btn {
  background: #236b3b;
  color: #fff;
  border: 1px solid #1f5d33;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.live-scroll-btn:hover {
  background: #1f5d33;
}

.shop-btn {
  background: #e11d48;
  color: #fff;
  border: 1px solid #be185d;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.shop-btn:hover {
  background: #be185d;
}

/* Mobile Live Holder - 모든 화면에서 표시 */
.mobile-live-holder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 8px;
  gap: 8px;
  width: 100%;
}

.mobile-live-holder .live-scroll-btn,
.mobile-live-holder .shop-btn {
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.1;
  border-radius: 999px;
  flex: 0 0 auto;
}

/* ========================================
   OTP 바 (공통)
   ======================================== */
.otp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.otp-bar .btn,
.otp-bar input[type="text"] {
  padding: 10px 12px; /* 다른 입력 필드와 동일한 패딩 */
  font-size: 14px; /* 다른 입력 필드와 동일한 폰트 크기 */
  /* height와 line-height 제거하여 자연스러운 높이 */
}

.cat-otp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.cat-otp-left {
  flex: 0 1 auto;
  min-width: 220px;
}

.cat-otp-left .chip-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cat-otp-right {
  flex: 0 0 auto;
}

.cat-otp-right .otp-bar {
  justify-content: flex-end;
}

#otpStatus {
  display: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #e6ffed;
  color: #1a7f37;
}

/* ========================================
   배지 & 칩 스타일 (공통)
   ======================================== */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.badge-blue  { background: #2196F3; color: #FFFFFF; }
.badge-slate { background: #e2e8f0; color: #334155; }
.badge-pink  { background: #ffe4e6; color: #9f1239; }
.badge-amber { background: #fef3c7; color: #92400e; }

/* 배지 타이틀 스타일 (고객목록 페이지용) */
.badge-title {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 999px;
  background: #2e7d32;
  color: #ffffff;
  line-height: 1;
  font-size: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.chip input {
  margin: 0;
}

.chip-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.live-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

/* ========================================
   카드 결제 필드 (공통)
   ======================================== */
#card-fields { 
  display: flex; 
  gap: 10px; 
}

.card-company { 
  flex: 1;
  position: relative;
}

.card-number { 
  flex: 3; 
}

.card-expiry { 
  flex: 1; 
}

.card-brand-holder {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.card-brand-holder img {
  width: 28px;
  height: 18px;
  object-fit: contain;
  display: none;
}

.card-brand-badge {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #efefef;
  color: #333;
  display: none;
}

.card-company input#card_company {
  padding-right: 50px;
}

/* ========================================
   옵션 라디오 스타일 (공통)
   ======================================== */
.option-group { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
}

.pill-radio {
  position: relative; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 8px 12px; 
  border: 1px solid #e5e7eb; 
  border-radius: 999px;
  background: #fff; 
  cursor: pointer; 
  user-select: none; 
  font-size: 14px;
  transition: box-shadow .2s, border-color .2s;
}

.pill-radio input[type="radio"] {
  appearance: none; 
  width: 14px; 
  height: 14px; 
  border: 2px solid #94a3b8; 
  border-radius: 999px; 
  display: inline-block;
}

.pill-radio input[type="radio"]:checked {
  border-color: #2563eb;
  background: radial-gradient(circle at center, #2563eb 50%, transparent 51%);
}

.pill-radio:has(input[type="radio"]:checked) {
  border-color: #2563eb; 
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ========================================
   테이블 스타일 (공통)
   ======================================== */
table { 
  width: 100%; 
  border-collapse: collapse; 
}

th, td {
  padding: 10px 8px; 
  text-align: center; 
  border-bottom: 1px solid #e1e1e1;
  font-size: 15px; 
  word-break: keep-all;
}

th { 
  background-color: #236b3b; 
  color: white; 
  font-weight: 600; 
}

th:first-child { 
  border-top-left-radius: 10px; 
}

th:last-child { 
  border-top-right-radius: 10px; 
}

thead tr { 
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); 
}

.table-wrapper { 
  margin-top: 8px; 
}

.relaxed-table thead th { 
  padding-top: 14px; 
  padding-bottom: 14px; 
}

.relaxed-table tbody td { 
  padding-top: 12px; 
  padding-bottom: 12px; 
}

.relaxed-table thead + tbody tr:first-child td { 
  padding-top: 16px; 
}

.table-900 {
  width: 900px;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

.table-900 th, .table-900 td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: center;
}

.table-900 thead th {
  background: #f8fafc;
  font-weight: bold;
}

.table-900 img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ========================================
   실시간 현황 위젯 (공통)
   ======================================== */
.live-card {
  position: relative;
  max-width: 960px;
  margin: 36px auto 24px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.live-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
  color: #111827;
}

.live-head .title-accent {
  color: #e11d48;
}

.live-head .bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #3730a3;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(55, 48, 163, .15);
}

.live-sub {
  margin-top: -4px;
  color: #6b7280;
  font-size: 12px;
}

.live-list {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.live-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px dashed #f1f5f9;
  background: #fff;
}

.live-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
  flex-shrink: 0;
}

.live-name {
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.live-meta {
  color: #475569;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  flex-shrink: 0;
}

.live-time {
  color: #64748b;
  font-size: 12px;
  min-width: 72px;
  text-align: right;
}

.to-top-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 6px 16px rgba(14, 165, 233, .25);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.to-top-btn:hover {
  background: #0284c7;
}

.to-top-btn svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   카드 & 모바일 레이아웃 (공통)
   ======================================== */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
}

.card-row { 
  display: flex; 
  justify-content: space-between; 
  gap: 12px; 
}

.card-label { 
  font-weight: 600; 
  color: #555; 
}

.card-actions { 
  display: flex; 
  justify-content: flex-end; 
  gap: 10px; 
  margin-top: 8px; 
}

.equal-btn { 
  width: 100px; 
  padding: 8px 0; 
  text-align: center; 
}

/* ========================================
   모달 (공통)
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-content button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #236b3b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #1e5b33;
}

/* 모달 스타일 (customer_list.php용) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal .modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

/* ========================================
   액션 버튼 스타일 (customer_list.php용)
   ======================================== */
.action-btn {
  padding: 6px 12px;
  margin: 2px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: .2s ease;
}

.view-btn {
  background-color: #16a085;
  color: #fff;
}

.view-btn:hover {
  background-color: #13856d;
}

.edit-btn {
  background-color: #3498db;
  color: #fff;
}

.edit-btn:hover {
  background-color: #2980b9;
}

.delete-btn {
  background-color: #e74c3c;
  color: #fff;
}

.delete-btn:hover {
  background-color: #c0392b;
}

/* ========================================
   페이지네이션 스타일 (customer_list.php용)
   ======================================== */
.pagination-bar {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}

.pagination-bar button {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  background: #2e7d32;
  color: #fff;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.pagination-bar button:disabled,
.pagination-bar button[style*="opacity:.5"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-bar span {
  font-size: 14px;
}

.mobile-pagination-buttons {
  display: none;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}

.mobile-pagination-buttons button {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  background: #2e7d32;
  color: #fff;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.mobile-pagination-buttons button:disabled,
.mobile-pagination-buttons button[style*="opacity:.5"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-pagination-buttons span {
  font-size: 14px;
}

/* ========================================
   인라인 스타일에서 변환된 클래스들 (공통)
   ======================================== */
.category-badge-style {
  display: none;
  background-color: #0D6EFD;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  margin: 8px 0;
  text-align: center;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.flex-row-gap-12 {
  display: flex;
  gap: 12px;
  align-items: center;
}

.flex-row-gap-10 {
  display: flex;
  gap: 10px;
}

.flex-row-gap-10-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.address-search-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.address-input-main {
  flex: 1;
  min-width: 220px;
}

.address-search-btn {
  padding: 8px 12px;
  background-color: #236b3b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.address-detail-input {
  margin-top: 10px;
}

.mattress-option-wrap {
  display: none;
  margin-top: 8px;
}

.set-product-select-wrap {
  display: none;
}

.set-combo-radio {
  display: none;
  margin-top: 8px;
}

.payment-hidden {
  display: none;
}

.otp-input-sizing {
  width: 100px;
  padding: 6px 10px;
  font-size: 14px;
  /* height 속성 제거하여 다른 입력 필드와 동일한 높이 유지 */
}

.spec-field {
  flex: 1;
  min-width: 150px;
}

.quantity-field {
  flex: 1;
  min-width: 100px;
}

.set-detail-block {
  display: none;
}

.group-frame,
.group-foundation {
  display: none;
}

.modal-hidden {
  display: none;
}

.card-fields-flex {
  display: flex;
}

.card-fields-hidden {
  display: none;
}

.bank-fields-flex {
  display: flex;
}

.bank-fields-hidden {
  display: none;
}

/* ========================================
   유틸리티 클래스 (공통)
   ======================================== */
.help-text { 
  font-size: 12px; 
  color: #6b7280; 
  margin-top: 4px; 
}

.error-text { 
  font-size: 12px; 
  color: #ef4444; 
  margin-top: 4px; 
}

.field-hint {
  color: #d35400;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.field-hint.error {
  color: #e74c3c;
}

.hidden { 
  display: none !important; 
}

.visually-hidden {
  position: absolute !important; 
  width: 1px; 
  height: 1px;
  margin: -1px; 
  padding: 0; 
  overflow: hidden; 
  clip: rect(0 0 0 0); 
  white-space: nowrap; 
  border: 0;
}

.truncate { 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

.subline { 
  display: inline-block; 
  margin-left: 6px; 
  font-size: 12px; 
  color: #64748b; 
}

.subtle {
  color: #6b7280;
  font-size: 12px;
  margin-top: 4px;
}

.inline-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.inline-controls .form-group {
  margin: 0;
}

.divider {
  height: 1px;
  background: #f1f5f9;
  margin: 8px 0;
  border: 0;
}

.set-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px; 
}

.auto-fill-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  z-index: 10000;
  font-weight: 600;
  animation: slideInRight 0.3s ease-out;
}

/* ========================================
   가시성 헬퍼 클래스 - 기본 상태
   ======================================== */
.pc-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* ========================================
   애니메이션 (공통)
   ======================================== */
.slide-out {
  animation: fadeUp .55s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: .0;
    transform: translateY(-12px);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================
   DESKTOP STYLES (데스크탑 - 기본)
   min-width: 769px
   ======================================== */
@media (min-width: 769px) {
  /* 데스크탑에서는 모든 기본 스타일 적용 */
  
  /* OTP 행 - 한 줄 고정 */
  .cat-otp-row {
    flex-wrap: nowrap;
  }
  
  /* 테이블 표시 */
  table, thead, tbody, tr, td, th { 
    display: table-row-group;
  }
  
  table { display: table; }
  thead { display: table-header-group; }
  tbody { display: table-row-group; }
  tr { display: table-row; }
  td, th { display: table-cell; }
  
  /* PC 전용 표시 */
  .pc-only { 
    display: block !important; 
  }
  
  /* 모바일 전용 숨김 */
  .mobile-only { 
    display: none !important; 
  }
  
  /* 세트 그리드 2열 */
  .set-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  
  /*  제거: 데스크탑에서 버튼 크기 오버라이드 제거 - 기본 스타일 유지 */
  
  /* 모바일 페이지네이션 숨김 */
  .mobile-pagination-buttons {
    display: none !important;
  }
  
  /* PC 페이지네이션 표시 */
  .pagination-bar {
    display: flex !important;
  }
}

/* ========================================
   MOBILE STYLES (모바일)
   max-width: 768px
   ======================================== */
@media (max-width: 768px) {
  /* 모바일 전용 스타일 */
  
  /* 컨테이너 조정 */
  .form-container { 
    padding: 20px; 
    margin: 20px; 
  }
  
  /* 폰트 크기 조정 */
  .form-header-inner h1 { 
    font-size: 20px; 
  }
  
  .page-title {
    font-size: 24px;
  }
  
  /* 폼 행을 세로로 */
  .form-row { 
    flex-direction: column; 
  }

  /* OTP 바 모바일 조정 - 다른 입력 필드와 동일한 높이로 통일 */
  .otp-bar .btn {
    padding: 10px 12px; /* 다른 입력 필드와 동일한 패딩 */
    font-size: 14px; /* 다른 입력 필드와 동일한 폰트 크기 */
    /* height와 line-height 제거 */
  }
  
  .otp-bar input[type="text"] {
    width: 100px;
    padding: 10px 12px; /* 다른 입력 필드와 동일한 패딩 */
    font-size: 14px; /* 다른 입력 필드와 동일한 폰트 크기 */
    /* height 제거 */
  }
  
  .cat-otp-row {
    flex-wrap: nowrap;
  }
  
  .cat-otp-left label {
    margin-right: 6px;
  }

  /* 테이블 완전 숨김 */
  table, thead, tbody, tr, td, th { 
    display: none !important; 
  }
  
  .table-wrapper {
    display: block !important;
  }
  
  .table-wrapper table {
    display: none !important;
  }
  
  /* 모바일 전용 표시 */
  .mobile-only { 
    display: block !important; 
  }

  /* PC 전용 숨김 */
  .pc-only { 
    display: none !important; 
  }

  /* 세트 그리드 1열 */
  .set-grid { 
    grid-template-columns: 1fr; 
  }
  
  /* 실시간 위젯 모바일 조정 */
  .live-card {
    margin: 28px 12px;
    padding: 14px;
  }
  
  .live-time {
    display: none;
  }
  
  .live-meta {
    max-width: 55vw;
  }
  
  /* 모바일에서 카드번호/유효기간 입력값 마스킹 */
  #card_number_mask,
  #card_expiry_mask {
    -webkit-text-security: none !important;
    text-security: none !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.06em;
  }

  /* 모바일에서 쇼핑몰 버튼만 실시간 버튼 크기에 맞춤 */
  .shop-btn {
    width: 160px !important; /* 모바일에서 쇼핑몰 버튼만 실시간 버튼 크기에 맞춤 */
    text-align: center !important;
  }
  
  /* 실시간 버튼은 자연스러운 크기 유지 */

  /* PC 페이지네이션 숨김 */
  .pagination-bar {
    display: none !important;
  }
  
  /* 모바일 페이지네이션 표시 */
  .mobile-pagination-buttons {
    display: flex !important;
  }
}
}

/* ========================================
   SMALL MOBILE (작은 모바일)
   max-width: 600px
   ======================================== */
@media (max-width: 600px) {
  .responsive-logo { 
    max-width: 140px; 
  }
}

/* ========================================
   ULTRA SMALL MOBILE (초소형 모바일)
   max-width: 480px
   ======================================== */
@media (max-width: 480px) {
  .header-actions {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    margin-top: 20px;
  }
  
  .header-actions .left-buttons,
  .header-actions .right-buttons {
    justify-content: center;
  }
  
  .header-actions .welcome {
    display: none;
  }
}

/* ========================================
   EXTRA SMALL MOBILE (극소형 모바일)
   max-width: 360px
   ======================================== */
@media (max-width: 360px) {
  .otp-bar input[type="text"] {
    width: 90px;
  }
  
  .otp-bar {
    gap: 6px;
  }
}