/* CareerHi Design System & Responsive Styles (Mobile-First Crop Free) */
:root {
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   4 THEMES VARIABLES (Synced with Official Logo)
   - Royal Blue: #2F5BFF
   - Teal Mint:  #12C2B0
   - Warm Gold:  #FFC83D
   - Deep Navy:  #14213D
   - Sub Slate:  #5B6478
   ======================================================== */

/* [Theme 1] 스마트 테크 & 커리어 발견 (기본 추천) */
body.theme-1 {
  --primary: #2F5BFF;
  --primary-hover: #1D46E6;
  --primary-light: #EEF3FF;
  --teal: #12C2B0;
  --teal-light: #E7FAF8;
  --accent: #FFC83D;
  --navy: #14213D;
  --dark: #14213D;
  --gray-muted: #5B6478;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --card-radius: 14px;
  --card-shadow: 0 2px 8px rgba(20, 33, 61, 0.04);
  --card-hover-shadow: 0 14px 30px rgba(47, 91, 255, 0.12);
  --gnb-bg: #FFFFFF;
  --gnb-border: #E2E8F0;
  --gnb-text: #5B6478;
  --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #F1F5FD 100%);
  --hero-text: #14213D;
}

/* [Theme 2] 프로페셔널 SaaS 터미널 (3단 스플릿 뷰) */
body.theme-2 {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --teal: #10B981;
  --teal-light: #ECFDF5;
  --accent: #6366F1;
  --navy: #0F172A;
  --dark: #0F172A;
  --gray-muted: #64748B;
  --border: #CBD5E1;
  --bg: #F1F5F9;
  --card-bg: #FFFFFF;
  --card-radius: 8px;
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --card-hover-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  --gnb-bg: #FFFFFF;
  --gnb-border: #CBD5E1;
  --gnb-text: #475569;
  --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  --hero-text: #0F172A;
}

/* [Theme 3] 비비드 그로스 부스터 (2열 카드 그리드) */
body.theme-3 {
  --primary: #2F5BFF;
  --primary-hover: #1D46E6;
  --primary-light: #EEF3FF;
  --teal: #12C2B0;
  --teal-light: #E0F7F5;
  --accent: #FF8F00;
  --accent-hover: #E67E00;
  --navy: #14213D;
  --dark: #1E293B;
  --gray-muted: #64748B;
  --border: #E2E8F0;
  --bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --card-radius: 20px;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  --card-hover-shadow: 0 16px 36px rgba(47, 91, 255, 0.14);
  --gnb-bg: #FFFFFF;
  --gnb-border: #E2E8F0;
  --gnb-text: #64748B;
  --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 100%);
  --hero-text: #1E293B;
}

/* [Theme 4] 엔터프라이즈 다크 신뢰형 (Navy GNB & 공인 신뢰) */
body.theme-4 {
  --primary: #12C2B0;
  --primary-hover: #0EA899;
  --primary-light: #E7FAF8;
  --teal: #12C2B0;
  --teal-light: #E7FAF8;
  --accent: #2F5BFF;
  --navy: #14213D;
  --dark: #14213D;
  --gray-muted: #5B6478;
  --border: #D1D5DB;
  --bg: #F4F6F8;
  --card-bg: #FFFFFF;
  --card-radius: 8px;
  --card-shadow: 0 2px 4px rgba(20, 33, 61, 0.06);
  --card-hover-shadow: 0 8px 20px rgba(20, 33, 61, 0.12);
  --gnb-bg: #14213D; /* Deep Navy GNB */
  --gnb-border: #1E293B;
  --gnb-text: #CBD5E1;
  --hero-bg: linear-gradient(180deg, #14213D 0%, #0F172A 100%);
  --hero-text: #FFFFFF;
}

/* ========================================================
   GLOBAL BASE & RESET
   ======================================================== */
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
  padding-top: 0; /* Sticky GNB starts at top */
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  word-break: keep-all; /* Korean word-break optimization */
}

.theme-bar-brand {
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.theme-pill-tag {
  background: linear-gradient(90deg, #2F5BFF, #12C2B0);
  color: white;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
}

.theme-switcher-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.theme-switcher-nav::-webkit-scrollbar {
  display: none;
}

.btn-theme-select {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn-theme-select:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-theme-select.active {
  background: #FFFFFF;
  color: #14213D;
  border-color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ========================================================
   CONCEPT BRIEFING BANNER
   ======================================================== */
.concept-banner {
  background: var(--card-bg);
  border-bottom: 2px solid var(--primary);
  padding: 12px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.concept-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.concept-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.concept-tag {
  padding: 3px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.concept-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}

.concept-slogan {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.concept-specs {
  font-size: 12px;
  color: var(--gray-muted);
}

/* ========================================================
   RESPONSIVE GNB HEADER
   ======================================================== */
.gnb {
  position: sticky;
  top: 0;
  background: var(--gnb-bg);
  border-bottom: 1px solid var(--gnb-border);
  z-index: 1000;
  transition: background 0.2s, border-color 0.2s;
}

.gnb-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-anchor {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.gnb-logo-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.gnb-nav {
  display: flex;
  gap: 6px;
}

.gnb-link {
  padding: 8px 16px;
  border-radius: var(--card-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--gnb-text);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gnb-link:hover, .gnb-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

body.theme-4 .gnb-link.active {
  color: #FFFFFF;
  background: #12C2B0;
}

.gnb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-spec-view {
  padding: 7px 13px;
  border-radius: var(--card-radius);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--dark);
  cursor: pointer;
}

body.theme-4 .btn-spec-view {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* ========================================================
   HERO SEARCH SECTION
   ======================================================== */
.hero-section {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 40px 20px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

body.theme-4 .hero-section {
  border-bottom: 1px solid #1E293B;
}

.hero-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--teal-light);
  color: #0A8E80;
  border: 1px solid rgba(18, 194, 176, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

body.theme-4 .hero-badge-tag {
  background: rgba(18, 194, 176, 0.2);
  color: #12C2B0;
  border-color: #12C2B0;
}

.hero-h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero-h1 span.grad-hi {
  background: linear-gradient(90deg, #2F5BFF, #12C2B0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-4 .hero-h1 span.grad-hi {
  background: linear-gradient(90deg, #12C2B0, #5C82FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 14.5px;
  color: var(--gray-muted);
  margin-bottom: 22px;
}

body.theme-4 .hero-desc {
  color: #94A3B8;
}

.search-container {
  max-width: 700px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: var(--card-radius);
  padding: 5px 8px 5px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.search-input-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  background: transparent;
  min-width: 0; /* Prevent flex overflow */
}

.btn-search-submit {
  padding: 11px 22px;
  background: var(--primary);
  color: white;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: calc(var(--card-radius) - 3px);
  cursor: pointer;
  white-space: nowrap;
}

.chips-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-tag {
  padding: 4px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition-fast);
}

body.theme-4 .chip-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
}

.chip-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ========================================================
   MAIN CONTENT & RESPONSIVE LAYOUT MODES
   ======================================================== */
.main-wrapper {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 20px;
}

/* Filter Bar */
.filter-controls {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-select {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: calc(var(--card-radius) - 3px);
  font-size: 13px;
  font-weight: 600;
  background: var(--card-bg);
  color: var(--dark);
  outline: none;
}

/* Mode 1 & 4: Feed List */
.layout-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mode 2: Split 3-Pane View */
.layout-split {
  display: grid;
  grid-template-columns: 240px 1fr 360px;
  gap: 18px;
  align-items: flex-start;
}

/* Mode 3: 2-Column Grid */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Job Card */
.job-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  word-break: keep-all;
}

.job-card:hover {
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

.comp-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comp-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-star-bm {
  background: none;
  border: none;
  font-size: 20px;
  color: #CBD5E1;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.btn-star-bm.active {
  color: var(--accent);
}

.job-headline {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  cursor: pointer;
  line-height: 1.35;
}

.job-headline:hover {
  color: var(--primary);
}

.meta-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--gray-muted);
}

.meta-money {
  color: #059669;
  font-weight: 700;
}

.meta-dday {
  color: #DC2626;
  font-weight: 700;
}

.skills-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.skill-chip {
  padding: 3px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* AI Summary Accordion */
.ai-summary-box {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.ai-box-head {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.btn-ai-toggle {
  padding: 5px 11px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-outlink-action {
  padding: 6px 13px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Split View Side Panels (Theme 2) */
.side-filter-pane {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 16px;
}

.side-preview-pane {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px;
  position: sticky;
  top: 130px;
}

body.theme-2 .side-filter-pane,
body.theme-2 .side-preview-pane {
  display: block;
}

/* ========================================================
   MOBILE BOTTOM NAVIGATION BAR (FIXED FOR SMALL SCREENS)
   ======================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  z-index: 9000;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

body.theme-4 .mobile-bottom-bar {
  background: #14213D;
  border-top-color: #1E293B;
}

.mobile-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gray-muted);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.mobile-tab-btn.active {
  color: var(--primary);
}

body.theme-4 .mobile-tab-btn.active {
  color: #12C2B0;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  background: #14213D;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES (NO CROP / FLUID LAYOUT)
   ======================================================== */

/* Tablet & Mobile Landscape (< 992px) */
@media (max-width: 992px) {
  .layout-split {
    grid-template-columns: 1fr; /* Fallback to 1-col on tablet/mobile */
  }
  .side-filter-pane, .side-preview-pane {
    display: none !important;
  }
  .layout-grid {
    grid-template-columns: 1fr; /* Fallback to 1-col */
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 0;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .gnb {
    top: 0;
  }
  .gnb-container {
    height: 58px;
    padding: 0 14px;
  }
  .gnb-logo-img {
    height: 34px;
    max-width: 170px;
  }
  .gnb-nav {
    display: none; /* Handled by mobile bottom bar */
  }
  .btn-spec-view {
    display: none;
  }
  .hero-section {
    padding: 28px 14px 24px;
  }
  .hero-h1 {
    font-size: 24px;
  }
  .hero-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .search-container {
    flex-direction: column;
    padding: 6px;
    border-radius: 12px;
  }
  .search-input-field {
    width: 100%;
    padding: 8px 6px;
    font-size: 14px;
  }
  .btn-search-submit {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
  .main-wrapper {
    padding: 0 14px;
  }
  .job-card {
    padding: 16px;
  }
  .job-headline {
    font-size: 16px;
  }
  .card-footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-footer-flex > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .mobile-bottom-bar {
    display: flex; /* Show bottom bar */
  }
}

/* Very Small Mobile (< 400px) */
@media (max-width: 400px) {
  .hero-h1 {
    font-size: 21px;
  }
  .gnb-logo-img {
    height: 30px;
    max-width: 145px;
  }
}

/* ========================================================
   PWA APP INSTALLATION & NOTIFICATION CENTER STYLES
   ======================================================== */
.btn-install-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2F5BFF 0%, #12C2B0 100%);
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(47, 91, 255, 0.28);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  animation: pulse-subtle 2.5s infinite;
}

.btn-install-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 91, 255, 0.4);
}

@keyframes pulse-subtle {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(47, 91, 255, 0.28);
  }
  50% {
    box-shadow: 0 4px 22px rgba(18, 194, 176, 0.55);
  }
}

.btn-notif {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.btn-notif:hover {
  background: var(--border);
  transform: translateY(-1px);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  border-radius: 10px;
  text-align: center;
  padding: 0 4px;
  border: 2px solid var(--gnb-bg);
}

.notif-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  z-index: 10000;
  display: none;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-dropdown-header {
  padding: 14px 16px;
  background: var(--feed-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(47, 91, 255, 0.04);
}

.notif-item.unread {
  background: rgba(47, 91, 255, 0.08);
}

/* Floating PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 74px; /* Above mobile bottom bar */
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: #14213D;
  color: white;
  border-radius: 16px;
  padding: 12px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.45);
  z-index: 9990;
  animation: slideUp 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

@media (min-width: 769px) {
  .pwa-install-banner {
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 420px;
  }
}

/* App Install Modal */
.pwa-guide-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
  text-align: left;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2F5BFF;
  color: white;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================================
   GNB SETTINGS & USER PROFILE BUTTON
   ======================================================== */
.btn-settings-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-settings-trigger:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 600px) {
  .btn-settings-label {
    display: none;
  }
  .btn-settings-trigger {
    padding: 8px 10px;
  }
}

/* ========================================================
   AUTH SYSTEM (LOGIN, REGISTER, 2FA VERIFICATION)
   ======================================================== */
.auth-page-container {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  max-width: 440px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.08);
  padding: 32px 26px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--gray-muted);
  line-height: 1.45;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-alert.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}

.auth-alert.success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #16A34A;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.15);
}

.two-factor-input {
  font-size: 26px !important;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  font-family: monospace;
}

.security-notice-box {
  background: rgba(47, 91, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 4px 0;
}

.btn-auth-primary {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-auth-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-auth-demo {
  width: 100%;
  padding: 11px;
  background: var(--feed-bg);
  color: var(--primary);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-auth-demo:hover {
  background: var(--primary-light);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gray-muted);
}

.auth-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
}

.auth-link:hover {
  text-decoration: underline;
}

/* ========================================================
   MY PAGE & PERSONALIZATION SETTINGS
   ======================================================== */
.my-page-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 18px 60px;
}

.my-page-header {
  margin-bottom: 24px;
}

.user-tier-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.my-page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.my-page-desc {
  font-size: 13.5px;
  color: var(--gray-muted);
}

.btn-logout-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--gray-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  background: var(--card-bg);
  transition: all 0.2s;
}

.btn-logout-link:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

.settings-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.theme-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.theme-choice-card {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.theme-choice-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.theme-choice-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(47, 91, 255, 0.14);
}

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

.theme-badge-rec {
  background: #2F5BFF;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.theme-badge-sub {
  background: #E2E8F0;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.theme-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--dark);
  margin: 2px 0 4px;
}

.theme-card-slogan {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.theme-color-dots {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.theme-color-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}

.theme-card-desc {
  font-size: 11px;
  color: var(--gray-muted);
  line-height: 1.45;
  margin: 0;
}

.checkbox-tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card-bg);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.checkbox-tag-btn input {
  cursor: pointer;
}

.checkbox-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.security-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.security-status-badge.on {
  background: #DCFCE7;
  color: #166534;
}

.security-status-badge.off {
  background: #FEE2E2;
  color: #991B1B;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.settings-save-bar {
  margin-top: 24px;
  text-align: center;
}

.btn-save-settings {
  width: 100%;
  max-width: 380px;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(47, 91, 255, 0.3);
  transition: all 0.2s;
}

.btn-save-settings:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ========================================================
   HORIZONTAL SCROLLING FILTER CHIPS (TOSS/WANTED STYLE)
   ======================================================== */
.filter-chips-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 4px;
  scrollbar-width: none;
}

.filter-chips-scroll-container::-webkit-scrollbar {
  display: none;
}

.chip-item {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chip-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(47, 91, 255, 0.25);
}

/* ========================================================
   JOB CARD MOBILE-FIRST COMPONENT ENHANCEMENTS
   ======================================================== */
.comp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-star-bm {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gray-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}

.btn-star-bm:hover {
  background: var(--feed-bg);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--gray-muted);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 6px;
}

.card-actions-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-legal-source {
  font-size: 11.5px;
  color: var(--gray-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.legal-dot {
  font-size: 8px;
}

.ai-line {
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--dark);
  line-height: 1.5;
}

.ai-line:last-child {
  margin-bottom: 0;
}

.tab-icon {
  font-size: 17px;
  line-height: 1;
}

