/* 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: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

.gnb-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
}

.gnb-link {
  height: 64px;
  padding: 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s ease;
}

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

.gnb-link.active {
  color: var(--primary);
  font-weight: 800;
}

.gnb-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

body.theme-4 .gnb-link {
  color: #94A3B8;
}

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

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

.gnb-my-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  margin-left: 2px;
}

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

.gnb-sub-link {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.gnb-sub-link:hover, .gnb-sub-link.active {
  color: var(--primary);
  background: rgba(47, 91, 255, 0.06);
}

body.theme-4 .gnb-sub-link {
  color: #94A3B8;
}

body.theme-4 .gnb-sub-link:hover, body.theme-4 .gnb-sub-link.active {
  color: #12C2B0;
  background: rgba(18, 194, 176, 0.1);
}

.gnb-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
}

.btn-pro-pill {
  height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  background: linear-gradient(135deg, #2F5BFF 0%, #6366F1 100%);
  color: #FFFFFF !important;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(47, 91, 255, 0.22);
  transition: all 0.2s ease;
}

.btn-pro-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 91, 255, 0.35);
  filter: brightness(1.05);
}

.btn-pro-pill .pro-sparkle {
  font-size: 12px;
  color: #FDE047;
}

.btn-profile-chip {
  height: 34px;
  padding: 0 12px 0 5px;
  border-radius: 17px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--dark);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

.btn-profile-chip .profile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F5BFF, #8B5CF6);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.btn-login-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: var(--primary);
  color: white !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

.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: 7px;
  padding: 5px 14px;
  background: rgba(18, 194, 176, 0.1);
  color: #0D9488;
  border: 1px solid rgba(18, 194, 176, 0.25);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-badge-tag .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0D9488;
}

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

body.theme-4 .hero-badge-tag .badge-dot {
  background: #12C2B0;
}

.hero-h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.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: 15px;
  color: var(--gray-muted);
  margin-bottom: 24px;
}

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

.search-container {
  max-width: 680px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1.5px solid rgba(203, 213, 225, 0.8);
  border-radius: 9999px;
  padding: 5px 6px 5px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-container:focus-within {
  border-color: #2F5BFF;
  box-shadow: 0 6px 24px rgba(47, 91, 255, 0.16);
}

body.theme-4 .search-container {
  border-color: rgba(255, 255, 255, 0.15);
  background: #1E293B;
}

body.theme-4 .search-container:focus-within {
  border-color: #12C2B0;
  box-shadow: 0 6px 24px rgba(18, 194, 176, 0.2);
}

.search-lens-box {
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
}

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

.search-input-field::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

body.theme-4 .search-input-field {
  color: #FFFFFF;
}

.btn-search-submit {
  height: 42px;
  padding: 0 24px;
  background: #2F5BFF;
  color: white;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(47, 91, 255, 0.28);
  transition: all 0.2s ease;
}

.btn-search-submit:hover {
  background: #1E4AE9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 91, 255, 0.38);
}

body.theme-4 .btn-search-submit {
  background: #12C2B0;
  box-shadow: 0 2px 8px rgba(18, 194, 176, 0.3);
}

body.theme-4 .btn-search-submit:hover {
  background: #0EA899;
}

.search-match-bar {
  max-width: 680px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.match-mode-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-mode-label {
  color: #64748B;
  font-weight: 600;
  font-size: 12.5px;
}

body.theme-4 .match-mode-label {
  color: #94A3B8;
}

.match-mode-segment {
  display: inline-flex;
  background: #E2E8F0;
  border-radius: 20px;
  padding: 2px;
}

body.theme-4 .match-mode-segment {
  background: #334155;
}

.match-seg-btn {
  border: none;
  border-radius: 18px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: #64748B;
}

body.theme-4 .match-seg-btn {
  color: #94A3B8;
}

.match-seg-btn.active {
  background: #FFFFFF;
  color: #2F5BFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

body.theme-4 .match-seg-btn.active {
  background: #12C2B0;
  color: #0F172A;
}

.search-result-count {
  color: #64748B;
  font-size: 12.5px;
}

.search-result-count .highlight-count {
  color: #2F5BFF;
  font-weight: 800;
}

body.theme-4 .search-result-count .highlight-count {
  color: #12C2B0;
}

.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 (Wanted/Toss Standard) */
.job-card {
  background: var(--card-bg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  word-break: keep-all;
  position: relative;
}

.job-card:hover {
  box-shadow: 0 12px 28px rgba(47, 91, 255, 0.09);
  border-color: rgba(47, 91, 255, 0.35);
  transform: translateY(-3px);
}

body.theme-4 .job-card {
  border-color: #1E293B;
  background: #0F172A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.theme-4 .job-card:hover {
  border-color: #12C2B0;
  box-shadow: 0 12px 28px rgba(18, 194, 176, 0.15);
}

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

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

.comp-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.2px;
}

body.theme-4 .comp-title {
  color: #F8FAFC;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body.theme-4 .badge-trust {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-star-bm {
  background: none;
  border: none;
  font-size: 20px;
  color: #CBD5E1;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.btn-star-bm:hover {
  transform: scale(1.15);
  color: #F59E0B;
}

.btn-star-bm.bookmarked {
  color: #F59E0B !important;
}

.job-headline {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: color 0.15s ease;
}

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

body.theme-4 .job-headline {
  color: #F1F5F9;
}

body.theme-4 .job-card:hover .job-headline {
  color: #12C2B0;
}
  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 {
  display: none;
  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-summary-box.open {
  display: block;
}

.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: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  font-size: 12px;
  color: var(--gray-muted);
  flex-wrap: wrap;
  gap: 10px;
}

body.theme-4 .card-footer-flex {
  border-top-color: #1E293B;
}

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

.btn-ai-toggle {
  height: 32px;
  padding: 0 11px;
  border: 1px solid #E2E8F0;
  background: var(--card-bg);
  color: #475569;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

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

body.theme-4 .btn-ai-toggle {
  border-color: #334155;
  color: #94A3B8;
  background: #1E293B;
}

body.theme-4 .btn-ai-toggle:hover {
  border-color: #12C2B0;
  color: #12C2B0;
  background: rgba(18, 194, 176, 0.1);
}

.btn-outlink-action {
  height: 32px;
  padding: 0 13px;
  background: linear-gradient(135deg, #2F5BFF 0%, #1E4AE9 100%) !important;
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(47, 91, 255, 0.25);
  transition: all 0.15s ease;
}

.btn-outlink-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 91, 255, 0.35);
  filter: brightness(1.05);
}

body.theme-4 .btn-outlink-action {
  background: linear-gradient(135deg, #12C2B0 0%, #0D9488 100%) !important;
  box-shadow: 0 2px 6px rgba(18, 194, 176, 0.3);
}

body.theme-4 .btn-outlink-action:hover {
  box-shadow: 0 4px 10px rgba(18, 194, 176, 0.4);
}

/* 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: #475569;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-notif:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  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;
}

/* ========================================================
   FLOATING SCROLL CONTROLLER (TOP & DOWN BUTTONS)
   ======================================================== */
.scroll-controller {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 8900;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 4px;
  transition: all var(--transition-normal);
  user-select: none;
}

body.theme-4 .scroll-controller {
  background: rgba(20, 33, 61, 0.92);
  border-color: #1E293B;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.btn-scroll {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  padding: 0;
}

body.theme-4 .btn-scroll {
  color: #F8FAFC;
}

.btn-scroll svg {
  transition: transform 0.2s ease;
}

.btn-scroll:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

body.theme-4 .btn-scroll:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-scroll:hover svg {
  transform: scale(1.15);
}

.btn-scroll:active {
  transform: scale(0.92);
}

.btn-scroll.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.scroll-controller-divider {
  width: 22px;
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

body.theme-4 .scroll-controller-divider {
  background: #1E293B;
}

/* Mobile responsive positioning - above bottom tab bar */
@media (max-width: 768px) {
  .scroll-controller {
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  .btn-scroll {
    width: 38px;
    height: 38px;
  }
  .btn-scroll svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================================
   PERPLEXITY-STYLE AI SEARCH INTELLIGENCE BRIEFING CARD
   ======================================================== */
.ai-search-briefing-card {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(245, 243, 255, 0.95) 100%);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
  margin-bottom: 22px;
  position: relative;
  transition: all var(--transition-normal);
}

body.theme-4 .ai-search-briefing-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: #334155;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
}

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

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

.ai-briefing-title {
  font-size: 15px;
  font-weight: 800;
  color: #4338ca;
  letter-spacing: -0.2px;
}

body.theme-4 .ai-briefing-title {
  color: #a5b4fc;
}

.ai-badge-live {
  font-size: 11px;
  font-weight: 700;
  background: #e0e7ff;
  color: #4338ca;
  padding: 3px 9px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

body.theme-4 .ai-badge-live {
  background: #312e81;
  color: #c7d2fe;
}

.ai-badge-live.loaded {
  background: #d1fae5;
  color: #065f46;
}

body.theme-4 .ai-badge-live.loaded {
  background: #064e3b;
  color: #6ee7b7;
}

.btn-briefing-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.btn-briefing-close:hover {
  color: #4b5563;
}

.ai-briefing-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #6366f1;
  padding: 8px 0;
}

body.theme-4 .ai-briefing-loading {
  color: #818cf8;
}

.briefing-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.ai-briefing-summary {
  font-size: 14.5px;
  line-height: 1.65;
  color: #1e1b4b;
  font-weight: 500;
  margin: 0 0 14px 0;
  word-break: keep-all;
}

body.theme-4 .ai-briefing-summary {
  color: #e2e8f0;
}

.ai-briefing-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.briefing-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: #3730a3;
  line-height: 1.5;
}

body.theme-4 .briefing-hl-item {
  color: #cbd5e1;
}

.hl-dot {
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-suggested-queries {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed rgba(99, 102, 241, 0.2);
}

body.theme-4 .ai-suggested-queries {
  border-top-color: rgba(148, 163, 184, 0.2);
}

.suggested-label {
  font-size: 12px;
  font-weight: 700;
  color: #4f46e5;
  white-space: nowrap;
}

body.theme-4 .suggested-label {
  color: #a5b4fc;
}

.suggested-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-suggested {
  background: #ffffff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-4 .chip-suggested {
  background: #1e293b;
  border-color: #475569;
  color: #cbd5e1;
}

.chip-suggested:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

body.theme-4 .chip-suggested:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

/* ========================================================
   MyPage Action Widgets & AI Resume Tuning UI
   ======================================================== */
.mypage-action-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mypage-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.mypage-action-card.card-pricing {
  background: linear-gradient(135deg, #FAF5FF, #F3E8FF);
  border: 1px solid #D8B4FE;
  color: #6B21A8;
}

.mypage-action-card.card-pricing:hover {
  background: linear-gradient(135deg, #F3E8FF, #E9D5FF);
  border-color: #C084FC;
  color: #581C87;
}

.mypage-action-card.card-resume {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid #93C5FD;
  color: #1D4ED8;
}

.mypage-action-card.card-resume:hover {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  border-color: #60A5FA;
  color: #1E40AF;
}

.mypage-action-card .action-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.mypage-action-card .action-text-box {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mypage-action-card .action-sub {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.8;
  letter-spacing: -0.2px;
}

.mypage-action-card .action-main {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* AI Resume Tune Box in Helper Modal */
.ai-tune-box {
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
  border: 1px solid #DDD6FE;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-tune-status {
  font-size: 12px;
  color: #6D28D9;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-tune-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(109, 40, 217, 0.3);
  border-top-color: #6D28D9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


