/* ── JobHunt Corporate Design System ────────────────────────────────── */
:root {
  --bg-color: #070c18;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-hover: rgba(24, 35, 61, 0.9);
  --bg-header: rgba(10, 17, 32, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #0066FF;
  
  --primary-color: #0066FF;
  --primary-dark: #0052CC;
  --primary-gradient: linear-gradient(135deg, #0066FF 0%, #0045B5 100%);
  --accent-gradient: linear-gradient(135deg, #00D2FF 0%, #0066FF 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-glow: 0 8px 25px 0 rgba(0, 102, 255, 0.35);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

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

* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, input, button, select, textarea {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Sleek Dark Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 17, 32, 0.7);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 102, 255, 0.6);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

#app-container {
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.15), transparent 45%),
              radial-gradient(circle at bottom left, rgba(0, 210, 255, 0.08), transparent 40%);
  padding-bottom: 80px;
}

/* ── App Header with Official Corporate Logo ─────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo-img {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 10px rgba(0, 102, 255, 0.4));
}

.logo-text-wrap {
  display: flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-job {
  color: #FFFFFF;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo-hunt {
  color: #78849E;
  font-weight: 600;
  letter-spacing: -0.3px;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-guest { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.badge-hr { background: rgba(0, 102, 255, 0.22); color: #60a5fa; border: 1px solid rgba(0, 102, 255, 0.4); }
.badge-candidate { background: rgba(16, 185, 129, 0.22); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-admin { background: rgba(245, 158, 11, 0.22); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }

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

.role-switcher-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.role-switcher-btn:hover, .role-switcher-btn:active {
  background: rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.4);
}

.token-pill {
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 102, 255, 0.35);
  color: #60a5fa;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Bottom Navigation ────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 540px;
  height: 68px;
  background: rgba(10, 17, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 8px;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  width: 23%;
}

.nav-item i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: #38bdf8;
}

.nav-item.active i {
  color: #0066FF;
  transform: translateY(-2px) scale(1.15);
}

/* ── Main Content & Tabs ──────────────────────────────────────────────── */
.main-content {
  padding: 16px;
  flex: 1;
}

.tab-page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-page.active {
  display: block;
}

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

/* ── Search Bar & Filter Pills ────────────────────────────────────────── */
.search-bar-container {
  margin-bottom: 14px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.search-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrap input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25);
}

.category-scroll-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.category-scroll-pills::-webkit-scrollbar { display: none; }

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
}

.count-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

/* ── Cards Grid & Styles ──────────────────────────────────────────────── */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover, .card:active {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(0, 102, 255, 0.4);
}

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

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.card-salary {
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.card-company {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #cbd5e1;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── 👔 HR / 👤 NOMZOD ROLE SELECTION CARDS ───────────────────────────── */
.role-selection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.welcome-logo-badge {
  width: 56px;
  height: 56px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-glow);
}

.welcome-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.welcome-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.role-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-option-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.role-option-card:hover, .role-option-card:active {
  transform: translateY(-2px);
}

.role-option-card.hr-option:hover, .role-option-card.hr-option:active {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 102, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
}

.role-option-card.candidate-option:hover, .role-option-card.candidate-option:active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.role-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.hr-option .role-icon-box {
  background: rgba(0, 102, 255, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(0, 102, 255, 0.3);
}

.candidate-option .role-icon-box {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.role-details p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.role-arrow {
  color: var(--text-dim);
  font-size: 14px;
  margin-left: auto;
}

/* ── 🚀 HERO ROLE SELECTION BANNER STYLING ──────────────────────────── */
.role-hero-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid rgba(0, 102, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

.role-hero-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.role-hero-logo {
  width: 44px;
  height: 44px;
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 102, 255, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.role-hero-logo img {
  width: 28px;
  height: 28px;
}

.role-hero-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}
.role-hero-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.role-hero-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.role-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}
.role-btn i {
  font-size: 20px;
}
.role-btn strong {
  display: block;
  font-size: 13px;
  color: #fff;
  line-height: 1.2;
}
.role-btn small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.role-btn.hr-btn {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.25) 0%, rgba(0, 102, 255, 0.08) 100%);
  border-color: rgba(0, 102, 255, 0.5);
}
.role-btn.hr-btn i {
  color: #60a5fa;
}
.role-btn.hr-btn:hover, .role-btn.hr-btn.active {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.45) 0%, rgba(0, 102, 255, 0.25) 100%);
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
  transform: translateY(-1px);
}

.role-btn.candidate-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.5);
}
.role-btn.candidate-btn i {
  color: #34d399;
}
.role-btn.candidate-btn:hover, .role-btn.candidate-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(16, 185, 129, 0.25) 100%);
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* ── ⚡ 1-MINUTE QUICK FILL & TEMPLATES STYLING ────────────────────────── */
.template-banner {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.18) 0%, rgba(0, 210, 255, 0.08) 100%);
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

.template-title {
  font-size: 13px;
  font-weight: 700;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.template-grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.template-grid::-webkit-scrollbar { display: none; }

.template-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.template-btn:hover, .template-btn:active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
  transform: translateY(-1px);
}

/* One-Tap Quick Chips */
.quick-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.chip-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip-item:hover, .chip-item:active {
  background: rgba(0, 102, 255, 0.25);
  color: #93c5fd;
  border-color: rgba(0, 102, 255, 0.4);
}

.chip-item.selected {
  background: #0066FF;
  color: #fff;
  border-color: #0066FF;
}

/* ── 🎯 CATEGORY DIRECTION PICKER GRID & FORM LOCKING ────────────────── */
.category-picker-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(0, 102, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.category-picker-title {
  font-size: 13px;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .category-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  user-select: none;
}

.category-chip-btn i {
  font-size: 15px;
  color: #60a5fa;
  flex-shrink: 0;
}

.category-chip-btn:hover {
  background: rgba(0, 102, 255, 0.18);
  border-color: rgba(0, 102, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.category-chip-btn.active {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.45) 0%, rgba(0, 210, 255, 0.25) 100%);
  border: 1px solid #0066FF;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
}

.category-chip-btn.active i {
  color: #38bdf8;
}

.form-lock-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse 2s infinite;
}

.form-lock-banner.unlocked {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
  animation: none;
}

.form-fields-wrapper {
  transition: all 0.3s ease;
}

.form-fields-wrapper.locked {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.6);
  user-select: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
}
.btn-primary:hover, .btn-primary:active {
  box-shadow: var(--shadow-glow);
  filter: brightness(1.1);
}

.btn-success {
  background: var(--success-gradient);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); }

.btn-danger {
  background: var(--danger-gradient);
  color: #fff;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  width: auto;
}

/* ── Cabinet & Admin Styling ─────────────────────────────────────────── */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.avatar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-glow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-box .num {
  font-size: 20px;
  font-weight: 800;
  color: #60a5fa;
}

.stat-box .label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Admin Subtabs */
.admin-subtabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.subtab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.subtab.active {
  background: rgba(0, 102, 255, 0.2);
  color: #60a5fa;
  border-color: rgba(0, 102, 255, 0.4);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--danger-color);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
}

/* ── Modal Overlay & Card ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 540px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .modal-card {
    border-radius: var(--radius-lg) !important;
    max-height: 88vh;
  }
}

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

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  background: #0d1527;
  border: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 17, 32, 0.7);
  box-sizing: border-box;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover, .icon-btn:active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.modal-body {
  padding: 18px 16px 24px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25);
}

textarea.form-control {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
  box-sizing: border-box;
}

/* Toast */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s forwards;
}

.toast-success { border-left: 4px solid var(--success-color); }
.toast-error { border-left: 4px solid var(--danger-color); }

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

/* Skeleton */
.skeleton-card {
  height: 120px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: var(--radius-lg);
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 👁 PREVIEW CARD (Vacancy & Resume confirm view) ─────────────────── */
.preview-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.preview-header {
  margin-bottom: 12px;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0,102,255,0.25) 0%, rgba(0,210,255,0.1) 100%);
  border: 1px solid rgba(0, 102, 255, 0.4);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.preview-body {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
}

.preview-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.preview-company {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-company i { color: #0066FF; }

.preview-salary {
  font-size: 15px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 12px;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.preview-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.preview-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 4px;
}

.preview-text {
  font-size: 13px;
  color: #cbd5e1;
  white-space: pre-wrap;
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
}

/* Tap-to-edit indicator */
.preview-editable {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.preview-editable::after {
  content: ' ✏️';
  font-size: 11px;
  opacity: 0.5;
}
.preview-editable:hover, .preview-editable:active {
  opacity: 0.75;
  outline: 1.5px dashed rgba(0,102,255,0.6);
  border-radius: 6px;
}

.preview-hint {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.preview-actions {
  display: flex;
  gap: 10px;
}

/* Inline field editor panel */
.inline-edit-panel {
  background: rgba(0,102,255,0.08);
  border: 1px solid rgba(0,102,255,0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.inline-edit-label {
  font-size: 13px;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

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

/* ── BANNER CAROUSEL ─────────────────────────────────────────────────────── */
.banner-carousel-container {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.banner-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 7; /* Typical ad banner ratio */
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 20px 15px 15px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.banner-content-text {
  flex: 1;
}

.banner-slide h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner-slide p {
  color: #eee;
  font-size: 13px;
  margin-bottom: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-cta {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 10px;
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.4);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* Banner creation modal styles */
.banner-plan-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--card-bg);
}

.banner-plan-card.active {
  border-color: var(--primary);
  background: rgba(0, 102, 255, 0.05);
  box-shadow: 0 0 0 2px rgba(0,102,255,0.2);
}

.banner-plan-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 5px;
}

.banner-plan-card .price {
  font-size: 18px;
  color: var(--primary);
  font-weight: 800;
}

/* ── ✨ AI IMPROVE BUTTON & COMPARISON STYLING ───────────────────────── */
.btn-ai-improve {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(0, 102, 255, 0.25) 100%);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.15);
}

.btn-ai-improve:hover {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.3) 0%, rgba(0, 102, 255, 0.45) 100%);
  border-color: #00D2FF;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.35);
  transform: translateY(-1px);
}

.btn-ai-improve:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ai-comparison-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-compare-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
}

.ai-compare-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.ai-compare-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.ai-compare-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-compare-label {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-compare-label.original-label {
  color: #94a3b8;
}

.ai-compare-label.improved-label {
  color: #38bdf8;
}

.ai-compare-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow-y: auto;
}

.ai-compare-box.original-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.ai-compare-box.improved-box {
  background: rgba(0, 102, 255, 0.1);
  border: 1.5px solid rgba(0, 210, 255, 0.4);
  color: #ffffff;
  box-shadow: inset 0 0 15px rgba(0, 102, 255, 0.15);
}

.ai-compare-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.ai-compare-actions button {
  flex: 1;
}


