/* ==========================================================================
   LynkUpp AI Career Suite (ai.lynkupp.com)
   Design System & Core Stylesheet
   Brand Colors: Primary #472CC1 | Accent #10B981 | Navy #0B2530
   ========================================================================== */

:root {
  --primary: #472CC1;
  --primary-hover: #3B22A8;
  --primary-light: #EEF2FF;
  --primary-border: #C7D2FE;
  
  --accent: #10B981;
  --accent-hover: #059669;
  --accent-light: #ECFDF5;
  --accent-border: #A7F3D0;
  
  --dark: #0B2530;
  --dark-card: #0F172A;
  --dark-surface: #1E293B;
  
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-focus: #472CC1;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-primary: 0 10px 25px -5px rgba(71, 44, 193, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   TOP ECOSYSTEM NOTIFICATION BAR
   ========================================================================== */
.ecosystem-banner {
  background: var(--dark);
  color: #E2E8F0;
  font-size: 0.825rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ecosystem-banner a {
  color: #38BDF8;
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}

.ecosystem-banner a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header-main {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-pill-active {
  background: var(--primary);
  color: #FFFFFF !important;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav-pill-active:hover {
  background: var(--primary-hover);
  color: #FFFFFF !important;
}

.nav-btn-whatsapp {
  background: #25D366;
  color: #FFFFFF !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav-btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: #F1F5F9;
}

.mobile-menu-toggle .hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .site-header-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0B2530;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    padding: 1.25rem 1.25rem 1.5rem;
    z-index: 999;
  }

  .site-header-nav.is-open {
    display: flex;
    animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .site-header-nav .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }

  .site-header-nav .nav-link {
    color: #F1F5F9;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    width: 100%;
  }

  .site-header-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
  }

  .site-header-nav .nav-pill-active {
    background: var(--primary);
    color: #FFFFFF !important;
  }

  .site-header-nav .nav-btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-pill-badge {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stat-item svg {
  color: var(--accent);
}

/* ==========================================================================
   TOOL SELECTOR TABS
   ========================================================================== */
.tools-nav-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 70px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.mobile-tool-selector-wrap {
  display: none;
}

.tools-tabs-container {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.25rem 0;
}

.tools-tabs-container::-webkit-scrollbar {
  display: none;
}

.tool-tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .tools-nav-section {
    padding: 0.65rem 0;
    top: 70px;
  }

  .mobile-tool-selector-wrap {
    display: block;
    margin-bottom: 0.65rem;
  }

  .mobile-select-inner {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mobile-tool-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .mobile-select-custom {
    position: relative;
    width: 100%;
  }

  .mobile-tool-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #FFFFFF;
    border: 2px solid var(--primary);
    color: var(--text-main);
    font-size: 0.925rem;
    font-weight: 700;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(71, 44, 193, 0.08);
    cursor: pointer;
  }

  .mobile-tool-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 44, 193, 0.2);
  }

  .select-chevron {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
  }

  .tools-tabs-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.25rem 0.25rem 0.5rem;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .tool-tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0.55rem 0.95rem;
    font-size: 0.825rem;
    white-space: nowrap;
  }
}

.tool-tab-btn:hover {
  background: #F1F5F9;
  color: var(--text-main);
  border-color: #CBD5E1;
}

.tool-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tool-tab-btn .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.tool-tab-btn:not(.active) .tab-badge {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   MAIN AI WORKSPACE LAYOUT
   ========================================================================== */
.workspace-section {
  padding: 2.5rem 0 4rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title-group p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.btn-sample-fill {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-sample-fill:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(71, 44, 193, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.btn-generate {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
}

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

.btn-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   RESULTS PANEL STYLES
   ========================================================================== */
.results-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.results-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  height: 100%;
  color: var(--text-muted);
}

.empty-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.empty-desc {
  font-size: 0.9rem;
  max-width: 360px;
  line-height: 1.5;
}

/* Loading Skeleton */
.loading-skeleton {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 0;
}

.skeleton-bar {
  height: 20px;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-bar.title { height: 28px; width: 60%; }
.skeleton-bar.line { width: 100%; }
.skeleton-bar.short { width: 75%; }

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

/* Action Toolbar (Copy, Download) */
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.results-badge-source {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.toolbar-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-tool-action {
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-tool-action:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

/* ==========================================================================
   CONVERSION FUNNEL CARDS (MESMERIZE & AMPLIFY)
   ========================================================================== */
.upsell-alert-box {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.upsell-alert-icon {
  color: #D97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.upsell-alert-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 0.35rem;
}

.upsell-alert-content p {
  font-size: 0.85rem;
  color: #78350F;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.btn-upsell-primary {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

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

/* Hidden Jobs Blurred Teaser Card */
.hidden-jobs-teaser-card {
  background: var(--dark-card);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden-teaser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hidden-teaser-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hidden-teaser-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.hidden-roles-list {
  list-style: none;
  margin-bottom: 1rem;
}

.hidden-role-item {
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  filter: blur(0.4px);
}

.btn-unlock-hidden {
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  transition: var(--transition);
}

.btn-unlock-hidden:hover {
  background: #059669;
}

/* ==========================================================================
   SPECIFIC RESULT COMPONENTS (Meters, Chips, Cards)
   ========================================================================== */
.score-meter-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.score-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  flex-shrink: 0;
  color: #FFFFFF;
}

.score-circle.score-high { background: var(--accent); }
.score-circle.score-mid { background: var(--warning); }
.score-circle.score-low { background: var(--danger); }

.score-circle span {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: -3px;
}

.score-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.score-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Chips & Tags */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}

.chip-tag {
  font-size: 0.785rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.chip-tag.matched {
  background: var(--accent-light);
  color: #065F46;
  border: 1px solid var(--accent-border);
}

.chip-tag.missing {
  background: var(--danger-light);
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Job Match Cards */
.matched-job-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #FFFFFF;
  transition: var(--transition);
}

.matched-job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.matched-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.matched-job-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.matched-job-score {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent-hover);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.matched-job-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.matched-job-reason {
  font-size: 0.85rem;
  color: #334155;
  background: #F8FAFC;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--primary);
}

.matched-job-apply-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.matched-job-apply-link:hover {
  text-decoration: underline;
}

/* Interview Questions Accordion */
.interview-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #FFFFFF;
}

.interview-q-title {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.interview-q-body {
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.star-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #166534;
  white-space: pre-line;
}

/* Chatbot Specific */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 480px;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #F1F5F9;
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border);
}

.chat-bubble.bot p { margin-bottom: 0.5rem; }
.chat-bubble.bot p:last-child { margin-bottom: 0; }

.chat-input-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

/* ==========================================================================
   ADSENSE UNITS
   ========================================================================== */
.adsense-wrapper {
  margin: 2rem auto;
  text-align: center;
  max-width: 970px;
  overflow: hidden;
}

.adsense-placeholder {
  background: #F1F5F9;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 1.25rem 0.5rem;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
  background: var(--dark);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94A3B8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   AI ENGINE STATUS INDICATOR & LIVE KEY MODAL
   ========================================================================== */
.ai-key-status-wrap {
  display: flex;
  align-items: center;
}

.btn-ai-key-config {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #F1F5F9;
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ai-key-config:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: var(--text-main);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
}

.status-indicator-dot.is-live {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-indicator-dot.is-error {
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.chat-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.chat-source-tag.gemini {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.chat-source-tag.lynk {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}
.chat-source-tag.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.ai-key-badge-spark {
  color: #D97706;
}

/* Modal Styling */
.ai-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 37, 48, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ai-modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modal-pop 0.2s ease-out;
}

@keyframes modal-pop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ai-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: #F8FAFC;
}

.ai-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.ai-modal-close:hover {
  color: var(--text-main);
}

.ai-modal-body {
  padding: 1.5rem;
}

