*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  display: flex;
  height: 100vh;
  width: 100vw;
  color: #333;
}

/* ===================================================
   DESKTOP DEFAULT LAYOUT (PC 화면)
   =================================================== */

.sidebar {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.header-intro-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-intro-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.header .subtitle {
  font-size: 12.5px;
  color: #666;
  margin-top: 4px;
}

/* 상단 컨트롤 그룹 */
.top-controls-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gu-selector-box {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.gu-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.gu-selector-header label {
  font-size: 11.5px;
  font-weight: 700;
  color: #4a5568;
}

.gu-badge {
  font-size: 11px;
  background: #ebf8ff;
  color: #3182ce;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

#gu-select {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #cbd5e0;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #2d3748;
  background: #fff;
  cursor: pointer;
}

.search-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: #3182ce;
}

/* 동 필터 */
.dong-filter-wrapper {
  width: 100%;
}

.dong-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dong-btn {
  padding: 6px 12px;
  font-size: 12px;
  background: #edf2f7;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.dong-btn:hover {
  background: #e2e8f0;
}

.dong-btn.active {
  background: #fee500;
  color: #191919;
  font-weight: 700;
  border-color: #fada0a;
}

/* 업력 등급 필터 */
.filter-section h3, .top-list-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin: 0 0 10px 0;
}

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7fafc;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  border: 1px solid #edf2f7;
  transition: background 0.15s;
}

.tier-checkbox:hover {
  background: #edf2f7;
}

.tier-checkbox input {
  margin-right: 8px;
}

.count {
  font-size: 12px;
  color: #718096;
}

/* 통계 카드 */
.stats-card {
  display: flex;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #edf2f7;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: #718096;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin-top: 2px;
}

.stat-value.highlight {
  color: #e53e3e;
}

/* 검증 필터 */
.verification-filter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.verification-title {
  font-size: 12px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 6px;
}

.verification-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verification-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.verify-opt-double {
  background: #ebf8ff;
  border: 1.5px solid #3182ce;
  font-weight: 700;
  color: #2b6cb0;
}

.verify-opt-triple {
  background: #fefcbf;
  border: 1px solid #ecc94b;
  font-weight: 600;
  color: #744210;
}

/* 최고령 노포 TOP 5 */
.top-list-section {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.top-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top5-close-btn {
  display: none;
}

.top-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-item {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.top-item:hover {
  border-color: #cbd5e0;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.top-item-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  color: #2d3748;
}

.top-item-badge {
  font-size: 11px;
  color: #e53e3e;
  font-weight: 700;
}

.top-item-sub {
  font-size: 11px;
  color: #718096;
  margin-top: 3px;
}

/* 지도 영역 */
#map-container {
  flex: 1;
  position: relative;
  height: 100vh;
}

#map {
  width: 100%;
  height: 100%;
}

.map-status-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* 모바일 전용 버튼 기본 숨김 */
.mobile-top5-pill {
  display: none;
}

/* ===================================================
   식당 상세 팝업 (DESKTOP DEFAULT)
   =================================================== */

.kakao-custom-popup {
  position: relative;
  bottom: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  padding: 16px;
  width: 310px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.kakao-custom-popup::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #ffffff transparent;
  display: block;
  width: 0;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}

.popup-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.popup-close {
  cursor: pointer;
  color: #a0aec0;
  font-size: 18px;
  font-weight: bold;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

.popup-close:hover {
  color: #4a5568;
}

.popup-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.badge-red { background: #fed7d7; color: #c53030; }
.badge-orange { background: #feebc8; color: #c05621; }
.badge-yellow { background: #fefcbf; color: #b7791f; }
.badge-green { background: #c6f6d5; color: #22543d; }
.badge-gray { background: #edf2f7; color: #4a5568; }
.badge-taxpayer {
  background: linear-gradient(135deg, #fff3c4 0%, #ffd43b 100%);
  color: #744210;
  border: 1px solid #fcc419;
  font-weight: 700;
}

.popup-info {
  font-size: 12px;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.popup-address-box {
  margin: 6px 0 10px 0;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #edf2f7;
  font-size: 11.5px;
  line-height: 1.45;
  color: #4a5568;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.popup-address-box .addr-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.popup-address-box .addr-row:last-child {
  margin-bottom: 0;
}

.popup-address-box .addr-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e2e8f0;
  color: #4a5568;
  flex-shrink: 0;
  height: 17px;
  line-height: 15px;
}

.popup-address-box .addr-text {
  flex: 1;
}

.popup-address-box .addr-detail {
  display: block;
  font-size: 10.5px;
  color: #718096;
  margin-top: 2px;
}

.popup-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.popup-btn {
  flex: 1;
  padding: 7px 0;
  border: none;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
}

.popup-btn:hover {
  opacity: 0.85;
}

.btn-kakao {
  background: #fee500;
  color: #191919;
}

.btn-naver {
  background: #03c75a;
  color: #ffffff;
}

.btn-google {
  background: #4285f4;
  color: #ffffff;
}

.triple-check-card {
  margin: 10px 0;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 11px;
}

.check-title {
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 6px;
  font-size: 11px;
}

.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  color: #4a5568;
}

.status-badge {
  font-weight: 600;
}

.triple-verdict {
  margin-top: 8px;
  padding: 6px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  font-size: 11px;
}

.verdict-pass {
  background: #fefcbf;
  color: #744210;
  border: 1px solid #d69e2e;
}

.verdict-fail {
  background: #fed7d7;
  color: #9b2c2c;
  border: 1px solid #feb2b2;
}

/* 모바일 전용 네이티브 바텀 카드 (데스크탑에서는 숨김) */
.mobile-bottom-card {
  display: none;
}

/* ===================================================
   📱 MOBILE RESPONSIVE SYSTEM (초슬림 & 초심플 플로팅 UI)
   =================================================== */

@media (max-width: 768px) {
  body {
    position: relative;
    display: block;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }

  /* 1. 지도가 100% 전체 화면 */
  #map-container {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1;
  }

  #map {
    width: 100%;
    height: 100%;
  }

  /* 2. 데스크탑 전용 장식 요소들 숨김 */
  .desktop-only {
    display: none !important;
  }
  .header {
    display: none !important;
  }

  /* 3. 사이드바 -> 상단 플로팅 컨트롤 래퍼 (Safe Area 적용) */
  .sidebar {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top)) !important;
    left: calc(10px + env(safe-area-inset-left)) !important;
    right: calc(10px + env(safe-area-inset-right)) !important;
    width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    pointer-events: none !important;
    z-index: 60 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    overflow: visible !important;
  }

  /* 상단 1행: [구 선택] + [검색창] */
  .top-controls-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    pointer-events: auto !important;
  }

  .gu-selector-box {
    flex: 0 0 115px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  #gu-select {
    width: 100% !important;
    height: 44px !important;
    padding: 0 8px !important;
    background: #ffffff !important;
    border-radius: 22px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
  }

  .search-box {
    flex: 1 !important;
    margin: 0 !important;
  }

  .search-box input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 16px !important;
    background: #ffffff !important;
    border-radius: 22px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    font-size: 13px !important;
  }

  /* 상단 2행: 동 필터 가로 칩 스크롤 */
  .dong-filter-wrapper {
    width: 100% !important;
    pointer-events: auto !important;
  }

  .dong-filter {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 1px 2px 3px 2px !important;
    gap: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .dong-filter::-webkit-scrollbar {
    display: none !important;
  }

  .dong-btn {
    flex-shrink: 0 !important;
    height: 36px !important;
    line-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 18px !important;
    font-size: 12.5px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    color: #4a5568 !important;
    touch-action: manipulation;
  }

  .dong-btn:active {
    transform: scale(0.96);
  }

  .dong-btn.active {
    background: #fee500 !important;
    color: #191919 !important;
    font-weight: 700 !important;
    border-color: #fada0a !important;
  }

  /* 상단 3행: 업력 등급 칩 가로 스크롤 */
  .filter-section {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    pointer-events: auto !important;
  }

  .tier-list {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding: 0 2px 2px 2px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .tier-list::-webkit-scrollbar {
    display: none !important;
  }

  .tier-checkbox {
    flex-shrink: 0 !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 17px !important;
    font-size: 11.5px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    margin: 0 !important;
    touch-action: manipulation;
  }

  .tier-checkbox:active {
    transform: scale(0.96);
  }

  .tier-checkbox input {
    margin-right: 4px !important;
  }

  .tier-checkbox .count {
    margin-left: 3px !important;
    font-size: 10.5px !important;
  }

  /* 4. 모바일 TOP 5 플로팅 버튼 (우측 하단 - Safe Area 적용) */
  .mobile-top5-pill {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: fixed !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    right: calc(14px + env(safe-area-inset-right)) !important;
    background: #1a202c !important;
    color: #fee500 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 11px 18px !important;
    min-height: 44px !important;
    border-radius: 24px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    z-index: 100 !important;
    cursor: pointer !important;
    transition: transform 0.15s, background-color 0.15s !important;
    touch-action: manipulation;
  }

  .mobile-top5-pill:active {
    transform: scale(0.95) !important;
    background: #000000 !important;
  }

  /* TOP 5 모달 바텀 카드 (Safe Area 적용) */
  .top-list-section {
    display: none;
  }

  .top-list-section.mobile-open {
    display: block !important;
    position: fixed !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    left: calc(12px + env(safe-area-inset-left)) !important;
    right: calc(12px + env(safe-area-inset-right)) !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
    padding: 18px !important;
    z-index: 950 !important;
    max-height: 62vh !important;
    overflow-y: auto !important;
    pointer-events: auto !important;
    animation: cardSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .top-list-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
  }

  .top5-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: #edf2f7 !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #4a5568 !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }

  .top5-close-btn:active {
    background: #e2e8f0 !important;
  }

  /* 5. 모바일 전용 네이티브 바텀 카드 (웹뷰 완벽 호환, Safe Area 적용) */
  .mobile-bottom-card {
    display: block !important;
    position: fixed !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    left: calc(12px + env(safe-area-inset-left)) !important;
    right: calc(12px + env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    padding: 18px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    z-index: 1000 !important;
    max-height: 72vh !important;
    overflow-y: auto !important;
    pointer-events: auto !important;
    animation: cardSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .mobile-bottom-card.hidden {
    display: none !important;
  }

  .kakao-custom-popup {
    display: none !important;
  }

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

  .popup-header .popup-title {
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  .popup-links {
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .popup-btn {
    min-height: 44px !important;
    padding: 12px 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation;
  }

  .popup-btn:active {
    opacity: 0.8 !important;
    transform: scale(0.98) !important;
  }

  /* 6. 모바일 하단 플로팅 소개 버튼 (좌측 - Safe Area 적용) */
  .mobile-intro-pill {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: fixed !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    left: calc(14px + env(safe-area-inset-left)) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 11px 16px !important;
    min-height: 44px !important;
    border-radius: 24px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    z-index: 100 !important;
    cursor: pointer !important;
    transition: transform 0.15s, background-color 0.15s !important;
    touch-action: manipulation;
  }

  .mobile-intro-pill:active {
    transform: scale(0.95) !important;
    background: #f1f5f9 !important;
  }

  /* 모바일 인트로 모달 반응형 */
  .intro-modal {
    max-height: 85vh !important;
    border-radius: 24px !important;
    margin-bottom: env(safe-area-inset-bottom) !important;
  }

  .intro-hero {
    padding: 22px 18px 16px 18px !important;
  }

  .intro-title {
    font-size: 21px !important;
  }

  .intro-quote {
    font-size: 13.5px !important;
  }

  .intro-desc {
    font-size: 11.5px !important;
  }

  .intro-gu-section {
    padding: 12px 14px !important;
  }

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

  .intro-gu-card {
    padding: 8px 10px !important;
    min-height: 54px !important;
  }

  .intro-card-name {
    font-size: 12.5px !important;
  }

  .intro-card-sub {
    font-size: 10px !important;
  }
}

/* ===================================================
   🍲 INTRO OVERLAY & DISTRICT SELECTOR (첫 화면 대시보드)
   =================================================== */

.intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-modal {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: introPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.intro-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s;
  touch-action: manipulation;
}

.intro-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.intro-close-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.5);
}

.intro-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 28px 24px 22px 24px;
  text-align: center;
}

.intro-badge {
  display: inline-block;
  background: rgba(254, 229, 0, 0.15);
  color: #fee500;
  border: 1px solid rgba(254, 229, 0, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.intro-title {
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.intro-quote {
  font-size: 15px;
  font-weight: 700;
  color: #fee500;
  margin: 0 0 12px 0;
  line-height: 1.45;
  letter-spacing: -0.3px;
}

.intro-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.intro-desc strong {
  color: #ffffff;
}

.intro-gu-section {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.intro-gu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.intro-gu-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.intro-gu-stat {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 12px;
}

.intro-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.intro-tab-btn {
  flex: 1;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}

.intro-tab-btn:hover {
  background: #f1f5f9;
}

.intro-tab-btn.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

.intro-gu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.intro-gu-card {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 62px;
}

.intro-gu-card.ready {
  border-color: #cbd5e1;
  background: #ffffff;
}

.intro-gu-card.ready:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.intro-gu-card.ready.current {
  border-color: #f59e0b;
  background: #fffdf0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.intro-gu-card.pending {
  background: #f8fafc;
  border-color: #f1f5f9;
  opacity: 0.65;
}

.intro-gu-card.pending:hover {
  opacity: 0.95;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.intro-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intro-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.intro-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.intro-card-badge.ready {
  background: #dcfce7;
  color: #15803d;
}

.intro-card-badge.pending {
  background: #f1f5f9;
  color: #94a3b8;
}

.intro-card-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.intro-footer {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
}

.intro-start-btn {
  width: 100%;
  max-width: 320px;
  padding: 12px 0;
  border-radius: 24px;
  background: #fee500;
  color: #191919;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.35);
  transition: all 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.intro-start-btn:hover {
  background: #fada0a;
  transform: translateY(-1px);
}

.intro-start-btn:active {
  transform: translateY(1px);
}

.intro-close-btn,
.intro-tab-btn,
.intro-gu-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
