:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #171721;
  --border: #262635;
  --accent: #6c63ff;
  --accent-soft: #a8a4ff;
  --success: #1d9e75;
  --danger: #e54b5e;
  --text: #ffffff;
  --muted: #cbd5e1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -10%, rgba(108, 99, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(29, 158, 117, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
}

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

button,
input,
select {
  font: inherit;
}

/* Global custom scrollbars for WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.3);
  border-radius: 8px;
  border: 1px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 99, 255, 0.5);
}

/* Global scrollbars for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 99, 255, 0.3) rgba(255, 255, 255, 0.02);
}

/* Dropdown/Select and Option styling to match dark theme */
select option {
  background-color: var(--surface-2);
  color: var(--text);
}

button,
a,
.scenario-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.app-shell,
.session-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 104px;
}

.product-home {
  display: grid;
  gap: 26px;
  width: min(1180px, calc(100% - 32px));
  padding-bottom: 132px;
}

.app-shell.compact {
  width: min(880px, calc(100% - 32px));
}

.topbar,
.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p,
.feedback-hero p {
  color: var(--muted);
}

.readiness-card,
.turn-pill,
.stat-card,
.scenario-card,
.home-hero,
.ai-coach-panel,
.continue-card,
.progress-card,
.insights-panel,
.gamification-panel,
.mode-card,
.scenario-category,
.activity-item,
.sticky-voice-cta,
.transcript-panel,
.metric-card,
.tip-card,
.chart-card,
.history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.home-hero,
.ai-coach-panel,
.continue-card,
.progress-card,
.insights-panel,
.gamification-panel,
.mode-card,
.scenario-category,
.activity-item {
  background: linear-gradient(145deg, rgba(18, 18, 30, 0.88), rgba(9, 9, 16, 0.72));
  border-color: rgba(108, 99, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.22);
}

.reveal-up {
  animation: productFadeUp 650ms ease both;
}

.reveal-up:nth-of-type(2) { animation-delay: 80ms; }
.reveal-up:nth-of-type(3) { animation-delay: 140ms; }
.reveal-up:nth-of-type(4) { animation-delay: 200ms; }

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.58fr);
  gap: 20px;
  min-height: 340px;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border-radius: 20px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 20%, rgba(108, 99, 255, 0.22), transparent 28%),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.hero-copy,
.hero-metrics,
.ai-coach-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

#homeWelcome,
#homeMotivation,
#coachInsight,
#coachLoadingLine {
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

#homeWelcome {
  min-height: clamp(2.4rem, 6vw, 5.2rem);
}

#homeWelcome::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.08em;
  background: var(--accent);
  animation: caretBlink 900ms steps(2, start) infinite;
  vertical-align: -0.04em;
}

#homeWelcome.is-fading {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(3px);
}

.metric-loading {
  display: inline-block;
  min-width: 70px;
  color: transparent !important;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(108,99,255,0.26), rgba(255,255,255,0.08));
  background-size: 220% 100%;
  animation: skeletonPulse 1.1s ease-in-out infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

@keyframes skeletonPulse {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

.message-fading {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(3px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ai-coach-panel {
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  border-radius: 16px;
}

.ai-coach-panel p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.ai-coach-panel strong {
  font-size: 1.15rem;
  line-height: 1.35;
}

.ai-orb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
}

.ai-orb-wrap span,
.ai-orb-core {
  position: absolute;
  border-radius: 50%;
}

.ai-orb-wrap span {
  inset: 8px;
  border: 1px solid rgba(108, 99, 255, 0.42);
  animation: pulse 1.8s ease-out infinite;
}

.ai-orb-wrap span:last-child {
  inset: 0;
  animation-delay: 520ms;
}

.ai-orb-core {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #fff;
  background: radial-gradient(circle, rgba(255,255,255,0.92) 0 8%, var(--accent) 10% 50%, rgba(108,99,255,0.18) 52% 100%);
  box-shadow: 0 0 36px rgba(108, 99, 255, 0.48);
}

.hero-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics article,
.hero-metrics a.metric-card-interactive,
.progress-card {
  padding: 18px;
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-metrics a.metric-card-interactive:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.view-details-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, var(--accent) 0%, rgba(108, 99, 255, 0.8) 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 4px 0;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.hero-metrics a.metric-card-interactive:hover .view-details-hover {
  transform: translateY(0);
}

.hero-metrics span,
.progress-card span,
.xp-meter span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
}

.continue-section,
.progress-system,
.practice-modes,
.scenario-section {
  scroll-margin-top: 24px;
}

.continue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
}

.continue-main h3 {
  margin: 12px 0 8px;
  font-size: 1.45rem;
}

.continue-main p {
  margin-bottom: 0;
  color: var(--muted);
}

.progress-track {
  height: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(108, 99, 255, 0.48);
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.progress-card {
  display: grid;
  gap: 13px;
  min-height: 150px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.progress-card:hover,
.mode-card:hover,
.scenario-option:hover {
  border-color: rgba(108, 99, 255, 0.58);
  transform: translateY(-3px);
  box-shadow: 0 18px 54px rgba(108, 99, 255, 0.12);
}

.progress-card strong {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.progress-card small {
  color: var(--accent-soft);
  font-weight: 800;
}

.coach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.insights-panel,
.gamification-panel {
  padding: 24px;
  border-radius: 22px;
}

.insight-list,
.activity-feed {
  display: grid;
  gap: 12px;
}

.insight-item,
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
}

.insight-item {
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.18);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.insight-item:hover {
  transform: translateY(-2px);
  background: rgba(108, 99, 255, 0.14) !important;
  border-color: rgba(108, 99, 255, 0.35) !important;
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.12);
}

/* Scroll down indicator animation */
@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
.scroll-arrow-animation {
  animation: bounceDown 1.6s infinite ease-in-out;
}
.scroll-down-indicator {
  transition: all 0.2s ease;
}
.scroll-down-indicator:hover {
  color: var(--accent) !important;
}

.insight-item i,
.activity-item i {
  flex: 0 0 auto;
  color: var(--accent-soft);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

.insight-item:hover i {
  color: var(--accent) !important;
  transform: scale(1.15) rotate(5deg);
}

.insight-item p,
.activity-item p {
  margin: 0;
  color: rgba(240, 240, 245, 0.84);
  line-height: 1.45;
}

.insight-item span,
.activity-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.xp-meter {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.xp-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.achievements {
  margin-bottom: 18px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.mode-card {
  display: grid;
  gap: 16px;
  min-height: 160px;
  padding: 18px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(145deg, rgba(18, 18, 30, 0.84), rgba(10, 10, 16, 0.66));
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mode-card i,
.scenario-option i {
  color: var(--accent-soft);
}

.mode-card h3,
.scenario-category h3,
.scenario-option h4 {
  margin: 0;
}

.scenario-option h4 {
  color: var(--text);
}

.mode-card p,
.scenario-option p {
  margin: 0;
  color: rgba(244, 244, 251, 0.74);
  font-size: 0.86rem;
  line-height: 1.5;
}

.scenario-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scenario-category {
  padding: 20px;
  border-radius: 22px;
}

.scenario-category > p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.sessions-page {
  padding-bottom: 118px;
}

.sessions-hero {
  display: grid;
  gap: 18px;
}

.sessions-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.session-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(720px, 100%);
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(108, 99, 255, 0.24);
  border-radius: 14px;
}

.session-search input {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.session-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-suggestions button,
.session-tag-row span,
.session-card-meta span {
  color: var(--text);
  background: rgba(108, 99, 255, 0.16);
  border: 1px solid rgba(108, 99, 255, 0.24);
  border-radius: 999px;
}

.session-suggestions button {
  padding: 8px 10px;
  cursor: pointer;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scenario-option {
  min-height: 154px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.session-card-meta,
.session-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.session-card-meta span,
.session-tag-row span {
  padding: 4px 7px;
  font-size: 0.72rem;
}

.session-card-meta span {
  color: rgba(244, 244, 251, 0.78);
  background: rgba(255, 255, 255, 0.05);
}

.session-empty-state {
  display: none;
  margin-top: 18px;
  padding: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 16px;
}

.session-empty-state.visible {
  display: block;
}

.home-gamification-grid,
.history-card-grid,
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.history-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 18px;
}

.history-toolbar select {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(108, 99, 255, 0.24);
  border-radius: 14px;
  padding: 0 14px;
}

.history-session-card,
.challenge-card,
.badge-modal article {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.history-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.history-score-grid span,
.challenge-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}

.history-score-grid span {
  flex-direction: column;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.history-score-grid strong {
  color: var(--text);
  font-size: 1.4rem;
}

.challenge-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.challenge-tabs button {
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.challenge-tabs button.active {
  color: var(--text);
  background: rgba(108, 99, 255, 0.36);
}

.challenge-badge,
.badge-modal-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--accent);
  background: rgba(108, 99, 255, 0.16);
  border: 1px solid rgba(108, 99, 255, 0.34);
  border-radius: 50%;
}

.challenge-card.completed {
  border-color: rgba(105, 240, 200, 0.5);
}

.challenge-card.glow-completed {
  border-color: rgba(105, 240, 200, 0.6);
  box-shadow: 0 0 12px rgba(105, 240, 200, 0.2), 0 0 24px rgba(105, 240, 200, 0.08), inset 0 0 8px rgba(105, 240, 200, 0.04);
  animation: certGlow 3s ease-in-out infinite alternate;
}

.challenge-card.glow-completed .challenge-brand-icon {
  background: linear-gradient(135deg, rgba(105, 240, 200, 0.25), rgba(167, 139, 250, 0.2));
  border-color: rgba(105, 240, 200, 0.5);
  box-shadow: 0 0 10px rgba(105, 240, 200, 0.3);
}

.challenge-card.glow-completed .progress-track span {
  background: linear-gradient(90deg, #69f0c8, #a78bfa) !important;
  box-shadow: 0 0 6px rgba(105, 240, 200, 0.4);
}

@keyframes certGlow {
  0% {
    box-shadow: 0 0 12px rgba(105, 240, 200, 0.2), 0 0 24px rgba(105, 240, 200, 0.08);
    border-color: rgba(105, 240, 200, 0.5);
  }
  50% {
    box-shadow: 0 0 18px rgba(167, 139, 250, 0.25), 0 0 32px rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.5);
  }
  100% {
    box-shadow: 0 0 12px rgba(105, 240, 200, 0.2), 0 0 24px rgba(105, 240, 200, 0.08);
    border-color: rgba(105, 240, 200, 0.5);
  }
}

.badge-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.badge-modal[hidden] {
  display: none;
}

.badge-modal article {
  position: relative;
  width: min(560px, 100%);
}

.badge-modal .icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.badge-modal textarea {
  width: 100%;
  min-height: 92px;
  margin-top: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.scenario-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.level-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--accent-soft);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.24);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.sticky-voice-cta {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(108, 99, 255, 0.36);
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 180ms ease, box-shadow 180ms ease;
}

.sticky-voice-cta span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  transition: max-width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-left: 0;
}

.sticky-voice-cta:hover {
  width: 170px;
  padding: 0 16px;
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(108, 99, 255, 0.5);
}

.sticky-voice-cta:hover span {
  max-width: 120px;
  opacity: 1;
  margin-left: 8px;
}

.readiness-card {
  display: grid;
  gap: 10px;
  min-width: 238px;
  padding: 18px;
  color: var(--muted);
}

.readiness-card span,
.scenario-card-title,
.bottom-nav a,
.session-actions,
.stat-card span:first-child,
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.readiness-card strong {
  color: var(--text);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  min-height: 178px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.scenario-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.scenario-icon,
.ai-avatar,
.icon-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.scenario-card h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
}

.scenario-card p {
  min-height: 42px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.difficulty,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  color: var(--success);
  background: rgba(29, 158, 117, 0.12);
  border: 1px solid rgba(29, 158, 117, 0.35);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 6px;
  background: rgba(18, 18, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.4), 
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 24px rgba(108, 99, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  gap: 0;
  color: var(--muted);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.bottom-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #837dff);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.35);
}

.bottom-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.bottom-nav a.active:hover {
  background: linear-gradient(135deg, var(--accent), #837dff);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.45);
}

.bottom-nav a svg,
.bottom-nav a i {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
  display: block;
  transition: transform 0.2s ease;
}

.bottom-nav a:hover svg,
.bottom-nav a:hover i {
  transform: scale(1.08);
}

.bottom-nav a span {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 15, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  display: block;
}

.bottom-nav a span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15, 15, 22, 0.96) transparent transparent transparent;
}

.bottom-nav a:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stage {
  display: grid;
  place-items: center;
  min-height: 360px;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
}

.ai-avatar {
  width: 92px;
  height: 92px;
  color: var(--accent);
}

.pulse-ring {
  position: absolute;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(108, 99, 255, 0.6);
  border-radius: 50%;
  opacity: 0;
}

.speaking .pulse-ring {
  animation: pulse 1.3s infinite ease-out;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

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

@keyframes loadingSweep {
  0% {
    transform: translateX(-110%);
  }
  52%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes loadingProgress {
  0% {
    transform: translateX(-105%);
  }
  55%,
  100% {
    transform: translateX(220%);
  }
}

@keyframes thinkingDots {
  50% { opacity: 0.28; }
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.ai-line {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--text);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.35;
}

.turn-pill {
  padding: 10px 14px;
  color: var(--muted);
  white-space: nowrap;
}

.transcript-panel {
  padding: 18px;
}

.transcript {
  min-height: 56px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.waveform {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  height: 54px;
}

.waveform span {
  width: 9px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0.45;
}

.recording .waveform span {
  animation: wave 850ms infinite ease-in-out alternate;
}

.waveform span:nth-child(2),
.waveform span:nth-child(6) {
  animation-delay: 120ms;
}

.waveform span:nth-child(3),
.waveform span:nth-child(5) {
  animation-delay: 220ms;
}

.waveform span:nth-child(4) {
  animation-delay: 320ms;
}

@keyframes wave {
  to {
    height: 48px;
    opacity: 1;
  }
}

.session-actions,
.button-row {
  justify-content: center;
  margin-top: 22px;
}

.speak-button,
.secondary-button,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.speak-button,
.primary-link {
  background: var(--accent);
  border-color: var(--accent);
}

.speak-button.recording-state {
  background: var(--danger);
  border-color: var(--danger);
}

.secondary-button,
.secondary-link {
  background: var(--surface);
}

.meeting-shell {
  width: min(1360px, calc(100% - 32px));
  padding-top: 22px;
  padding-bottom: 32px;
}

.meeting-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.meeting-title h1 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.meeting-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.connection-pill,
.meeting-recording,
.meeting-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.meeting-recording {
  color: #ff91a0;
  border-color: rgba(229, 75, 94, 0.34);
}

.status-chip {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.status-chip:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.4);
  border-color: rgba(108, 99, 255, 0.6);
}

.status-chip svg {
  width: 13px;
  height: 13px;
}

.status-good {
  color: #7ef0bf;
  background: rgba(29, 158, 117, 0.1);
  border-color: rgba(29, 158, 117, 0.3);
}

.status-warn {
  color: #ffd36b;
  background: rgba(255, 192, 92, 0.09);
  border-color: rgba(255, 192, 92, 0.28);
}

.status-bad {
  color: #ff9dab;
  background: rgba(229, 75, 94, 0.12);
  border-color: rgba(229, 75, 94, 0.3);
}

.status-premium {
  color: #a8a4ff;
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.35);
}

.status-free {
  color: #7ef0bf;
  background: rgba(29, 158, 117, 0.1);
  border-color: rgba(29, 158, 117, 0.3);
}

.status-good svg,
.status-warn svg,
.status-bad svg,
.status-premium svg,
.status-free svg {
  filter: drop-shadow(0 0 8px currentColor);
}

.meeting-recording span {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(229, 75, 94, 0.72);
}

.meeting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  gap: 18px;
  align-items: start;
}

.meeting-stage,
.meeting-side-panel > section,
.meeting-transcript-panel,
.meeting-control-bar {
  background: linear-gradient(145deg, rgba(18, 18, 30, 0.9), rgba(9, 9, 16, 0.76));
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.meeting-stage {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: min(680px, calc(100vh - 210px));
  padding: 22px 22px 18px;
  overflow: hidden;
  text-align: center;
}

.meeting-stage::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 28%, rgba(108, 99, 255, 0.22), transparent 30%),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.045), transparent);
}

.pre-session-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.pre-session-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.pre-session-overlay strong {
  color: var(--text);
  font-size: 1.05rem;
}

.meeting-stage-top,
.meeting-avatar,
.meeting-speaker-state,
.meeting-stage .ai-line,
.meeting-waveform,
.user-video-stage,
.ai-interviewer-tile {
  position: relative;
  z-index: 1;
}

.meeting-stage-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.user-video-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(540px, calc(100vh - 300px));
  padding: 78px 24px 118px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(108, 99, 255, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 20px;
}

.user-video-stage::after,
.camera-focus-overlay {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.camera-focus-overlay {
  z-index: 1;
  background: radial-gradient(circle at 50% 40%, transparent 0 34%, rgba(5, 5, 9, 0.14) 64%, rgba(5, 5, 9, 0.38) 100%);
}

#userCameraPreview {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 18px;
  z-index: 0;
}

#userCameraPreview.active {
  display: block;
}

.camera-placeholder {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
}

.framing-guide {
  position: absolute;
  inset: 16%;
  z-index: 2;
  pointer-events: none;
}

.framing-guide span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(168, 164, 255, 0.72);
}

.framing-guide span:nth-child(1) { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.framing-guide span:nth-child(2) { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.framing-guide span:nth-child(3) { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.framing-guide span:nth-child(4) { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; }

.framing-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 7px 10px;
  color: var(--accent-soft);
  background: rgba(5, 5, 9, 0.58);
  border: 1px solid rgba(108, 99, 255, 0.24);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.camera-placeholder.hidden {
  display: none;
}

.camera-placeholder strong {
  font-size: 1.15rem;
}

.meeting-avatar {
  width: 62px;
  height: 62px;
}

.meeting-avatar .ai-avatar {
  width: 52px;
  height: 52px;
  box-shadow: 0 0 36px rgba(108, 99, 255, 0.42);
}

.meeting-avatar .pulse-ring {
  width: 58px;
  height: 58px;
  opacity: 0.5;
  animation: pulse 1.8s infinite ease-out;
}

.meeting-speaker-state {
  margin: 8px 0 0;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-stage .ai-line {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(420px, calc(100% - 180px));
  max-width: none;
  min-height: auto;
  /* Cap the caption so a long AI turn scrolls inside the box instead of
     growing upward and covering the whole video stage. */
  max-height: 40%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 99, 255, 0.5) transparent;
  padding: 12px 14px;
  background: rgba(5, 5, 9, 0.58);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  font-size: clamp(0.96rem, 1.55vw, 1.14rem);
  line-height: 1.45;
  transform: translateX(-50%);
}

.meeting-stage .ai-line::-webkit-scrollbar {
  width: 6px;
}
.meeting-stage .ai-line::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.5);
  border-radius: 6px;
}

.meeting-waveform {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  height: 54px;
  margin-top: 18px;
}

.meeting-waveform span {
  width: 9px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0.45;
}

.recording .meeting-waveform span,
.meeting-waveform.recording span {
  animation: wave 850ms infinite ease-in-out alternate;
}

.meeting-waveform span:nth-child(2),
.meeting-waveform span:nth-child(6) {
  animation-delay: 120ms;
}

.meeting-waveform span:nth-child(3),
.meeting-waveform span:nth-child(5) {
  animation-delay: 220ms;
}

.meeting-waveform span:nth-child(4) {
  animation-delay: 320ms;
}

.ai-interviewer-tile {
  position: absolute;
  top: 18px;
  left: 18px;
  right: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 155px;
  padding: 8px 10px;
  text-align: left;
  background: rgba(10, 10, 16, 0.78);
  border: 1px solid rgba(108, 99, 255, 0.24);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.ai-interviewer-tile[data-ai-state="speaking"] {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 20px rgba(108, 99, 255, 0.2);
}

.ai-interviewer-tile[data-ai-state="listening"] .pulse-ring {
  animation-duration: 2.3s;
}

.ai-interviewer-tile[data-ai-state="thinking"] .meeting-speaker-state::after {
  content: "...";
  animation: thinkingDots 1.2s ease-in-out infinite;
}

.ai-interviewer-tile[data-ai-state="transcribing"] {
  border-color: rgba(255, 184, 77, 0.42);
}

.ai-interviewer-tile[data-ai-state="analyzing"] {
  border-color: rgba(29, 158, 117, 0.36);
}

.user-video-stage.speaking {
  border-color: rgba(29, 158, 117, 0.62);
  box-shadow: 0 0 36px rgba(29, 158, 117, 0.18);
}

.user-preview-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--success));
  border-radius: 50%;
  font-weight: 900;
}

.camera-placeholder span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.ai-interviewer-tile span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.65rem;
}

.ai-interviewer-tile strong {
  font-size: 0.74rem;
}

.ai-interviewer-tile .meeting-avatar {
  width: 36px !important;
  height: 36px !important;
}

.ai-interviewer-tile .meeting-avatar .ai-avatar {
  width: 30px !important;
  height: 30px !important;
}

.ai-interviewer-tile .meeting-avatar .pulse-ring {
  width: 34px !important;
  height: 34px !important;
}

.ai-interviewer-tile .meeting-waveform {
  grid-column: 1 / -1;
  height: 18px;
  margin-top: 0;
}

.ai-interviewer-tile .meeting-waveform span {
  width: 3px;
  height: 6px;
}

.coach-nudge {
  position: absolute;
  top: 120px;
  left: 18px;
  z-index: 2;
  width: min(228px, calc(100% - 48px));
  padding: 13px 15px;
  color: rgba(240, 240, 245, 0.9);
  background: rgba(108, 99, 255, 0.13);
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.coach-nudge.visible {
  opacity: 1;
  transform: translateY(0);
}

.meeting-side-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-height: min(680px, calc(100vh - 210px)) !important;
  height: min(680px, calc(100vh - 210px)) !important;
}

.side-panel-tabs {
  display: none !important;
}

.side-panel-tabs button {
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.side-panel-tabs button.active {
  color: var(--text);
  background: rgba(108, 99, 255, 0.24);
}

.side-panel-view {
  display: none !important;
  padding: 16px !important;
  background: linear-gradient(145deg, rgba(18, 18, 30, 0.9), rgba(9, 9, 16, 0.76));
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.side-panel-view[data-panel-view="transcript"] {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 180px !important;
  overflow: hidden !important;
}

.side-panel-view[data-panel-view="transcript"] .transcript {
  flex: 1 !important;
  overflow-y: auto !important;
  max-height: none !important;
  align-content: start !important;
}

#idePanel {
  display: none !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.meeting-side-panel.has-ide #idePanel {
  display: flex !important;
  flex: 1.3 !important;
  overflow: hidden !important;
}

.text-answer-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.text-answer-form[hidden] {
  display: none !important;
}

.prep-panel,
.feedback-panel {
  padding: 20px;
}

.question-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 16px;
}

.question-card span,
.question-meta span,
.signal-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.question-card strong {
  line-height: 1.38;
}

.question-meta {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.question-meta p {
  display: grid;
  gap: 4px;
  margin: 0;
  color: rgba(240, 240, 245, 0.86);
  line-height: 1.4;
}

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

.signal-grid article {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 14px;
}

.signal-grid strong {
  font-size: 1.05rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.metric-pulse {
  transform: scale(1.04);
  color: var(--accent-soft);
}

.coach-suggestion {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  color: var(--accent-soft);
  background: rgba(108, 99, 255, 0.09);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 14px;
}

.coach-suggestion p {
  margin: 0;
  color: rgba(240, 240, 245, 0.86);
  line-height: 1.45;
}

.side-transcript {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 99, 255, 0.55) rgba(255, 255, 255, 0.03);
}

.side-transcript::-webkit-scrollbar {
  width: 8px;
}

.side-transcript::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.side-transcript::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.48);
  border-radius: 999px;
}

.session-notes,
.session-end-card textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 14px;
  resize: vertical;
}

.text-answer-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.text-answer-form[hidden] {
  display: none;
}

.text-answer-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 8px;
  resize: vertical;
}

.meeting-transcript-panel {
  margin-top: 18px;
  padding: 20px;
}

.meeting-transcript-panel .transcript {
  display: grid;
  gap: 10px;
  max-height: 260px;
  min-height: 190px;
  margin-top: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.transcript-message {
  width: min(78%, 620px);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 16px;
}

.transcript-message.you {
  justify-self: end;
  border-color: rgba(29, 158, 117, 0.26);
  background: rgba(29, 158, 117, 0.08);
}

.transcript-message span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.transcript-message p {
  margin: 0;
  color: rgba(240, 240, 245, 0.88);
  line-height: 1.45;
}

.transcript-message.streaming p::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 4px;
  background: var(--accent-soft);
  vertical-align: -2px;
  animation: cursorBlink 850ms steps(1, end) infinite;
}

.meeting-control-bar {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 10px 14px;
  transform: none;
}

.meeting-control {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  font-weight: 850;
  line-height: 0;
  flex: 0 0 auto;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.meeting-control svg {
  width: 18px;
  height: 18px;
}

.meeting-control:hover {
  border-color: rgba(108, 99, 255, 0.54);
  transform: translateY(-2px);
}

.meeting-control.active {
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.5);
}

.meeting-control.recording-state {
  background: rgba(229, 75, 94, 0.22);
  border-color: rgba(229, 75, 94, 0.62);
  color: #e54b5e !important;
}

.meeting-control:disabled {
  cursor: wait;
  opacity: 0.78;
}

.meeting-control.off {
  color: var(--muted);
}

.meeting-control.end {
  color: #fff;
  background: rgba(229, 75, 94, 0.86);
  border-color: rgba(229, 75, 94, 0.95);
}

.session-end-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(12px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.session-end-modal.visible {
  opacity: 1;
  visibility: visible;
}

.session-end-card {
  width: min(560px, 100%);
  padding: 24px;
  background: linear-gradient(145deg, rgba(18, 18, 30, 0.96), rgba(9, 9, 16, 0.9));
  border: 1px solid rgba(108, 99, 255, 0.26);
  border-radius: 22px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.48), 0 0 70px rgba(108, 99, 255, 0.16);
}

.session-end-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

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

.session-summary-grid article,
.summary-highlight {
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 14px;
}

.session-summary-grid span,
.summary-highlight span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.session-summary-grid strong {
  display: block;
  margin-top: 6px;
}

.summary-highlight p {
  margin: 6px 0 0;
  color: rgba(240, 240, 245, 0.88);
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0 14px;
}

.rating-row button {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.3rem;
}

.rating-row button.active,
.rating-row button:hover {
  background: rgba(108, 99, 255, 0.22);
  border-color: rgba(108, 99, 255, 0.56);
}

.session-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.feedback-hero {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
}

.score-reveal {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 10px;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
}

.score-reveal small {
  color: var(--muted);
  font-size: 1.4rem;
}

.metric-grid,
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.metric-card,
.tip-card,
.stat-card,
.chart-card {
  padding: 18px;
}

.metric-card span,
.stat-card span:first-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-card strong,
.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.65rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.badge.red {
  color: #ff91a0;
  background: rgba(229, 75, 94, 0.13);
  border-color: rgba(229, 75, 94, 0.45);
}

.tip-card {
  line-height: 1.5;
}

.tip-card strong {
  color: var(--accent);
}

.button-row {
  display: flex;
  gap: 12px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.chart-card {
  min-height: 290px;
}

.chart-card canvas {
  width: 100% !important;
  height: 220px !important;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  justify-content: space-between;
  padding: 16px;
}

.history-item span {
  color: var(--muted);
}

.auth-modal-overlay,
.toast,
.coach-loading-overlay {
  position: fixed;
  z-index: 40;
}

.auth-modal-overlay {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 9, 0.76);
  backdrop-filter: blur(10px);
}

.coach-loading-overlay {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(108, 99, 255, 0.14), transparent 34%),
    rgba(5, 5, 9, 0.52);
  backdrop-filter: blur(8px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.coach-loading-overlay.visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.coach-loading-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: min(520px, 100%);
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 18, 30, 0.94), rgba(9, 9, 16, 0.88));
  border: 1px solid rgba(108, 99, 255, 0.26);
  border-radius: 22px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.48), 0 0 70px rgba(108, 99, 255, 0.16);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms ease;
}

.coach-loading-overlay.visible .coach-loading-card {
  transform: translateY(0) scale(1);
}

.coach-loading-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: loadingSweep 2.8s ease-in-out infinite;
}

.loading-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
}

.loading-orb span,
.loading-orb div {
  position: absolute;
  border-radius: 50%;
}

.loading-orb span {
  inset: 10px;
  border: 1px solid rgba(108, 99, 255, 0.38);
  animation: pulse 1.65s ease-out infinite;
}

.loading-orb span:nth-child(2) {
  inset: 0;
  animation-delay: 520ms;
}

.loading-orb div {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: #fff;
  background: radial-gradient(circle, rgba(255,255,255,0.88) 0 8%, var(--accent) 10% 52%, rgba(108,99,255,0.18) 54% 100%);
  box-shadow: 0 0 48px rgba(108, 99, 255, 0.48);
}

.loading-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.loading-copy strong {
  min-height: 54px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.loading-progress {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 999px;
}

.loading-progress span {
  display: block;
  width: 46%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(108, 99, 255, 0.48);
  animation: loadingProgress 1.65s ease-in-out infinite;
}

.auth-modal-card,
.profile-card,
.account-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.auth-modal-card {
  width: min(420px, 100%);
  padding: 24px;
  text-align: center;
}

.auth-modal-card p {
  color: var(--muted);
}

.auth-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 22px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--text);
  background: var(--accent);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 900;
}

.profile-card p,
.account-panel p {
  color: var(--muted);
}

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

.account-panel {
  padding: 18px;
}

.account-panel > button,
.account-panel > .primary-link {
  margin-top: 10px;
}

.preference-panel {
  margin-bottom: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.preference-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.preference-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.preference-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.preference-item strong,
.preference-item a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
}

.onboarding-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.onboarding-card {
  width: min(920px, 100%);
  padding: 26px;
  background:
    radial-gradient(circle at 82% 12%, rgba(108, 99, 255, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(18, 18, 26, 0.96), rgba(12, 12, 18, 0.98));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.onboarding-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.onboarding-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.ai-orb-wrap.small {
  width: 78px;
  height: 78px;
}

.onboarding-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.onboarding-header p:last-child {
  max-width: 620px;
  color: var(--muted);
}

.onboarding-form {
  display: grid;
  gap: 18px;
}

.onboarding-form label,
.chip-field {
  display: grid;
  gap: 8px;
}

.onboarding-form label > span,
.chip-field legend {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.onboarding-form input,
.onboarding-form select {
  width: 100%;
  min-height: 50px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
}

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

.chip-field {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 0;
  padding: 0;
}

.chip-field legend {
  grid-column: 1 / -1;
}

.chip-field label {
  cursor: pointer;
}

.chip-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-field span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.chip-field input:checked + span {
  border-color: rgba(108, 99, 255, 0.72);
  background: rgba(108, 99, 255, 0.18);
}

.resume-drop {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(168, 164, 255, 0.34);
  border-radius: 8px;
  cursor: pointer;
}

.resume-drop input {
  display: none;
}

.onboarding-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
}

.onboarding-cta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

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

.onboarding-skip {
  min-height: 44px;
  padding-inline: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
}

.mic-cta {
  position: relative;
  width: auto;
}

.mic-cta::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(108, 99, 255, 0.34);
  border-radius: 999px;
  animation: pulse 1.8s ease-out infinite;
}

.inline-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.inline-form input,
.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.inline-form.hidden {
  display: none;
}

.danger-button {
  background: rgba(229, 75, 94, 0.14);
  border-color: rgba(229, 75, 94, 0.5);
  color: #ff91a0;
}

.toast {
  right: 18px;
  bottom: 92px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  z-index: 999999 !important;
}

@media (max-width: 880px) {
  .topbar,
  .session-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .meeting-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .meeting-status-row {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .scenario-grid,
  .chart-grid,
  .progress-grid,
  .coach-grid,
  .scenario-category-grid,
  .home-gamification-grid,
  .history-card-grid,
  .challenge-grid,
  .meeting-grid {
    grid-template-columns: 1fr;
  }

  .history-toolbar {
    grid-template-columns: 1fr;
  }

  .meeting-stage {
    min-height: min(620px, calc(100vh - 240px));
  }

  .home-hero,
  .continue-card {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .readiness-card {
    width: 100%;
  }

  .bottom-nav span {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .app-shell,
  .session-shell {
    width: min(100% - 28px, 1120px);
  }

  .meeting-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .meeting-title h1 {
    font-size: 1.65rem;
  }

  .meeting-status-row {
    gap: 8px;
  }

  .meeting-live,
  .turn-pill,
  .connection-pill,
  .meeting-recording {
    min-height: 34px;
    padding: 8px 9px;
    font-size: 0.68rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .scenario-grid,
  .chart-grid,
  .progress-grid,
  .mode-grid,
  .scenario-list {
    grid-template-columns: 1fr;
  }

  .product-home {
    width: min(100% - 28px, 1180px);
    gap: 20px;
  }

  .home-hero {
    min-height: auto;
    padding: 24px;
  }

  .meeting-stage {
    min-height: calc(100vh - 210px);
    padding: 18px 14px 14px;
  }

  .meeting-stage-top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    justify-self: stretch;
    margin-bottom: 16px;
  }

  .user-video-stage {
    min-height: min(420px, calc(100vh - 310px));
    padding: 74px 14px 94px;
  }

  .coach-nudge {
    top: 168px;
    left: 12px;
    width: min(210px, calc(100% - 24px));
  }

  .ai-interviewer-tile {
    top: 82px;
    left: 12px;
    bottom: auto;
    width: min(176px, calc(100% - 96px));
  }

  .meeting-stage .ai-line {
    left: 50%;
    right: auto;
    bottom: 14px;
    width: min(calc(100% - 24px), 336px);
    min-height: auto;
    font-size: 0.98rem;
    transform: translateX(-50%);
  }

  .side-panel-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .feedback-panel.collapsed,
  .meeting-transcript-panel.collapsed {
    display: none;
  }

  .meeting-transcript-panel .transcript {
    max-height: 220px;
  }

  .transcript-message {
    width: 100%;
  }

  .meeting-control-bar {
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 18px;
  }

  .meeting-control {
    width: 44px;
    height: 44px;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .continue-card .primary-link {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions > *,
  .continue-card .primary-link {
    width: 100%;
  }

  .ai-coach-panel {
    justify-items: start;
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .coach-loading-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .loading-orb {
    width: 94px;
    height: 94px;
  }

  .ai-orb-wrap {
    width: 86px;
    height: 86px;
  }

  .ai-orb-core {
    width: 58px;
    height: 58px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: min(460px, calc(100% - 32px));
    gap: 4px;
    padding: 6px;
    border-radius: 12px;
  }

  .bottom-nav a {
    width: auto;
    height: 44px;
    min-height: auto;
  }

  .bottom-nav span {
    display: none !important;
  }

  .sticky-voice-cta {
    right: 8px;
    bottom: 88px;
    width: 54px;
    height: 54px;
    justify-content: center;
    padding: 0;
  }

  .sticky-voice-cta span {
    display: none;
  }

  .stage {
    min-height: 300px;
  }

  .ai-line {
    font-size: 1.1rem;
  }

  .score-reveal {
    font-size: 5rem;
  }

  .session-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .speak-button {
    width: 100%;
    min-height: 60px;
  }

  .history-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboarding-card {
    padding: 20px;
  }

  .onboarding-header,
  .onboarding-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .mic-cta {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .app-shell,
  .session-shell {
    padding: 16px 0 90px;
  }

  .scenario-card {
    min-height: 140px;
  }
}

/* --- Achievior Dashboard Upgrades & Layout Stabilization --- */

.hero-title-container {
  display: block;
  min-height: 165px;
  margin-bottom: 16px;
}

#homeWelcome {
  min-height: 0 !important;
  margin: 0 !important;
}

@media (max-width: 1024px) {
  .hero-title-container {
    min-height: 185px;
  }
}

@media (max-width: 768px) {
  .hero-title-container {
    min-height: 205px;
  }
}

@media (max-width: 480px) {
  .hero-title-container {
    min-height: 245px;
  }
}

/* Metric Radial Score Indicators */
.metric-radial-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px !important;
}

.radial-progress-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-progress-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-progress-svg circle {
  fill: none;
  stroke-width: 6px;
}

.radial-bg {
  stroke: rgba(255, 255, 255, 0.05);
}

.radial-indicator {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#readiness,
#homeConfidenceScore,
#homeCommunicationScore,
#streak {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 800;
  z-index: 2;
  display: block;
}

/* Glassmorphism & Micro-animations */
.home-hero,
.ai-coach-panel,
.continue-card,
.progress-card,
.insights-panel,
.gamification-panel,
.mode-card,
.scenario-category,
.activity-item {
  background: linear-gradient(145deg, rgba(20, 20, 32, 0.72), rgba(10, 10, 18, 0.88)) !important;
  border: 1px solid rgba(108, 99, 255, 0.16) !important;
  backdrop-filter: blur(24px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3) !important;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.progress-card:hover,
.mode-card:hover,
.scenario-category:hover,
.continue-card:hover,
.home-summary-card:hover {
  border-color: rgba(108, 99, 255, 0.48) !important;
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 48px rgba(108, 99, 255, 0.15) !important;
}

/* Pulsing AI Coach Orb */
.ai-orb-wrap span {
  border: 1.5px solid rgba(108, 99, 255, 0.6);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

.ai-orb-core {
  background: radial-gradient(circle, #ffffff 0%, var(--accent) 40%, rgba(108, 99, 255, 0.2) 100%) !important;
  animation: orbPulse 3s infinite ease-in-out;
}

@keyframes orbPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 35px rgba(108, 99, 255, 0.48);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 55px rgba(108, 99, 255, 0.72), 0 0 15px rgba(168, 164, 255, 0.4);
  }
}

/* Dynamic Sections: Progress-Insights & Modes Grid */
.coach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  scroll-margin-top: 24px;
}

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

.insights-panel {
  padding: 24px;
  border-radius: 22px;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
  text-align: left !important;
  align-items: stretch !important;
}

.progress-system {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 12px !important;
}

.activity-item i {
  color: var(--accent-soft);
  flex-shrink: 0;
}

.activity-item p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(240, 240, 245, 0.9);
  line-height: 1.4;
}

.activity-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Practice modes adjustments */
@media (max-width: 992px) {
  .mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Achievior Jobs Board Styling --- */

.jobs-board-hero {
  background: linear-gradient(145deg, rgba(20, 20, 32, 0.72), rgba(10, 10, 18, 0.88)) !important;
  border-color: rgba(108, 99, 255, 0.22) !important;
}

.jobs-carousel-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.jobs-carousel-horizontal {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 12px 4px;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
  min-width: 0; /* Prevents stretching parent container */
}
.jobs-carousel-horizontal::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari/Edge scrollbar */
}
.jobs-carousel-horizontal .job-match-card {
  flex-shrink: 0 !important;
  width: 340px !important;
  scroll-snap-align: start;
}
.carousel-nav-btn {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.carousel-nav-btn:hover {
  background: rgba(108, 99, 255, 0.1) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .carousel-nav-btn {
    display: none !important;
  }
  .jobs-carousel-horizontal .job-match-card {
    width: 310px; /* slightly narrower cards on mobile */
  }
}

.job-match-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 20px;
  min-height: 250px;
  background: linear-gradient(145deg, rgba(18, 18, 30, 0.88), rgba(9, 9, 16, 0.72));
  border: 1px solid rgba(108, 99, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.22);
  transition: border-color 160ms ease, transform 160ms ease;
}

.job-match-card:hover {
  border-color: rgba(108, 99, 255, 0.6);
  transform: translateY(-2px);
}

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

.job-card-header h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.job-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(29, 158, 117, 0.12);
  border: 1px solid rgba(29, 158, 117, 0.24);
  color: #1d9e75;
  font-weight: 800;
  font-size: 0.76rem;
  border-radius: 999px;
  white-space: nowrap;
}

.job-score-badge.high-match {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.26);
  color: var(--accent-soft);
  box-shadow: 0 0 14px rgba(108, 99, 255, 0.1);
}

.job-card-company {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  margin-bottom: 8px;
}

.job-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.job-card-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-card-meta-row i {
  color: var(--accent-soft);
  width: 14px;
  height: 14px;
}

.job-source-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: auto;
}

.job-source-tag.source-linkedin {
  background: rgba(10, 102, 194, 0.12);
  border: 1px solid rgba(10, 102, 194, 0.25);
  color: #0a66c2;
}

.job-source-tag.source-naukri {
  background: rgba(245, 130, 32, 0.12);
  border: 1px solid rgba(245, 130, 32, 0.25);
  color: #f58220;
}

.job-source-tag.source-google-jobs,
.job-source-tag.source-google {
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.25);
  color: #4285f4;
}


.job-card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.job-card-match-reason {
  background: rgba(108, 99, 255, 0.05);
  border: 1px solid rgba(108, 99, 255, 0.12);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: rgba(240, 240, 245, 0.86);
  margin-bottom: 18px;
  line-height: 1.4;
}

.job-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.job-card-actions .primary-link,
.job-card-actions .secondary-link {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  border-radius: 10px;
}

/* Discover Board elements */
.jobs-search-bar-row {
  margin-bottom: 18px;
}

.jobs-categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-pill {
  padding: 8px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
  color: var(--text);
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.36);
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.1);
}

.jobs-split-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  margin-top: 24px;
  background: rgba(15, 15, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  height: 750px;
}

.jobs-list-pane {
  width: 380px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.jobs-compact-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}

.job-compact-card {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.job-compact-card:last-child {
  border-bottom: none;
}

.job-compact-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.job-compact-card.active {
  background: rgba(108, 99, 255, 0.08);
}

.job-compact-card.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.job-compact-card .job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.job-compact-card .job-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.job-compact-card .job-card-company {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.job-compact-card .job-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0;
}

.job-compact-card .job-score-badge {
  padding: 3px 8px;
  font-size: 0.68rem;
}

.job-details-pane {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: static;
  scrollbar-width: thin;
}

.job-details-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  text-align: center;
  color: var(--muted);
  gap: 16px;
}

.job-details-placeholder i {
  width: 48px;
  height: 48px;
  color: rgba(108, 99, 255, 0.3);
}

.job-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
}

.job-details-title-area {
  flex: 1;
  min-width: 0;
}

.job-details-title-area h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.25;
}

.job-details-company {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.job-details-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.job-details-meta-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-details-meta-list i {
  color: var(--accent-soft);
  width: 16px;
  height: 16px;
}

.job-details-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.job-details-actions .primary-link,
.job-details-actions .secondary-link {
  padding: 12px 24px;
  font-size: 0.94rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.job-details-actions .primary-link {
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3);
}

.job-details-actions .secondary-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.job-details-actions .secondary-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.job-details-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-details-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 12px;
}

.job-details-match-box {
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.job-details-match-score {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(135deg, rgba(108, 99, 255, 0.25) 0%, rgba(108, 99, 255, 0.05) 100%);
  border: 1px solid rgba(108, 99, 255, 0.4);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  text-shadow: 0 2px 4px rgba(108, 99, 255, 0.4);
}

.job-details-match-score.verified-zap {
  background: radial-gradient(135deg, rgba(255, 159, 67, 0.3) 0%, rgba(255, 82, 82, 0.1) 100%);
  border: 1px solid rgba(255, 159, 67, 0.5);
  box-shadow: 0 8px 24px rgba(255, 159, 67, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.15);
  color: #ff9f43;
}

.job-details-match-info {
  flex: 1;
}

.job-details-match-reason {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(240, 240, 245, 0.9);
  margin-bottom: 12px;
}

.job-details-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-details-desc-box {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
  white-space: pre-wrap;
}

.job-desc-paragraph {
  margin-bottom: 14px;
  line-height: 1.65;
}

.job-desc-section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.job-desc-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.job-desc-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.back-to-list-btn {
  display: none;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--text);
}

.pagination-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.3);
}

.pagination-btn[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 992px) {
  .jobs-list-pane {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .jobs-split-container {
    flex-direction: column;
    height: auto;
    border: none;
    background: transparent;
    backdrop-filter: none;
  }
  
  .jobs-list-pane {
    width: 100%;
    height: auto;
    border-right: none;
  }
  
  .jobs-compact-list {
    overflow-y: visible;
  }
  
  .job-details-pane {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
    padding: 24px;
    background: var(--background);
    overflow-y: auto;
  }
  
  .jobs-split-container.show-details .jobs-list-pane {
    display: none;
  }
  
  .jobs-split-container.show-details .job-details-pane {
    display: flex;
  }
  
  .back-to-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-soft);
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 16px;
    align-self: flex-start;
    transition: all 0.2s ease;
  }
  
  .back-to-list-btn:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.35);
  }
}

.loading-state-placeholder {
  grid-column: 1 / -1;
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(108, 99, 255, 0.15);
  border-radius: 20px;
  font-size: 0.94rem;
}

.skill-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(240, 240, 245, 0.88);
  font-size: 0.78rem;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* Premium Modals & Drawer Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ticket-drawer {
  max-width: 500px;
}

.pricing-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  max-width: 960px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from {
    transform: scale(0.96) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

.plan-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.modal-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .modal-pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.modal-price-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.modal-price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-price-card.featured {
  border: 2px solid var(--accent);
  background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.08), transparent 50%), rgba(255, 255, 255, 0.03);
}

.modal-price-card h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}

.plan-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  min-height: 38px;
}

.price-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
}

.price-value span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(240, 240, 245, 0.85);
}

.plan-features li i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.plan-features li i[data-lucide="check"] {
  color: var(--success);
}

.plan-features li i[data-lucide="lock"] {
  color: var(--danger);
  opacity: 0.7;
}

/* Custom Search Multi-Select Dropdown */
.multi-select-container {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: text;
  transition: border-color 0.2s;
}

.multi-select-container:focus-within {
  border-color: var(--accent);
}

.multi-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.multi-select-chip {
  background: rgba(108, 99, 255, 0.14);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.multi-select-chip button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.multi-select-chip button i {
  width: 12px;
  height: 12px;
}

.multi-select-search {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
  padding: 2px 0;
  width: 100%;
}

.multi-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.multi-select-dropdown.hidden {
  display: none;
}

.multi-select-option {
  padding: 10px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}

.multi-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.multi-select-option.selected {
  background: rgba(108, 99, 255, 0.18);
  color: var(--accent-soft);
  font-weight: 600;
}

/* FAQ Accordion Styling */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-trigger i {
  transition: transform 0.2s;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.faq-item.active {
  border-color: rgba(108, 99, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-trigger i {
  transform: rotate(180deg);
  color: var(--accent-soft);
}

.faq-item.active .faq-content {
  max-height: 150px;
  padding-bottom: 14px;
}

/* AI Support Chatbot window */
.support-chat-window {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  height: 240px;
  margin-top: 12px;
}

.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.chat-messages .message {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 85%;
  word-break: break-word;
}

.chat-messages .message.bot {
  background: rgba(255, 255, 255, 0.04);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: rgba(240, 240, 245, 0.9);
}

.chat-messages .message.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-form {
  display: flex;
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 26, 0.4);
}

.chat-input-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
}

.chat-input-form button {
  background: transparent;
  border: none;
  padding: 0 12px;
  color: var(--accent-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.chat-input-form button i {
  width: 16px;
  height: 16px;
}

/* Turn Limit Locked overlay overlay screen */
.session-lock-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  animation: fadeIn 0.3s forwards;
}

.session-lock-card {
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.session-lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(229, 75, 94, 0.1);
  border: 1px solid rgba(229, 75, 94, 0.25);
  color: var(--danger);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.session-lock-icon i {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   GLOBAL FLOATING AI SUPPORT WIDGET STYLES
   ========================================================================== */
.floating-support-container {
  position: fixed;
  bottom: 110px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  font-family: 'Inter', sans-serif;
}

.floating-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text);
  border: 1px solid rgba(108, 99, 255, 0.4);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 0;
}

.floating-support-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.8;
  animation: supportPulse 2s infinite;
  pointer-events: none;
}

.hidden, .floating-support-panel.hidden, .modal-overlay.hidden {
  display: none !important;
}

@keyframes supportPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.floating-support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5);
  background: #7c74ff;
}

.floating-support-btn i {
  width: 18px;
  height: 18px;
}

.floating-support-panel {
  width: 380px;
  height: 520px;
  max-height: 80vh;
  max-width: 90vw;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.support-panel-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--surface), rgba(108, 99, 255, 0.1));
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-panel-title-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.support-panel-title-area h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-indicator-dot {
  width: 8px;
  height: 8px;
  background: #1d9e75;
  border-radius: 50%;
  box-shadow: 0 0 8px #1d9e75;
  display: inline-block;
}

.support-panel-title-area span {
  font-size: 0.75rem;
  color: var(--muted);
}

.support-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-msg {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 85%;
  word-break: break-word;
}

.support-msg.bot {
  background: var(--surface-2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.support-msg.user {
  background: var(--accent);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.support-msg.system {
  background: rgba(229, 75, 94, 0.1);
  border: 1px solid rgba(229, 75, 94, 0.2);
  color: var(--danger);
  align-self: center;
  max-width: 95%;
  text-align: center;
}

.support-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-panel-input-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 6px 4px 14px;
}

.support-panel-input-form input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.85rem;
  height: 36px;
  outline: none;
}

.support-panel-input-form button {
  background: var(--accent);
  color: var(--text);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.support-panel-input-form button:hover {
  background: #7c74ff;
}

.support-panel-input-form button i {
  width: 14px;
  height: 14px;
}

.support-quick-ticket-btn {
  font-size: 0.72rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  transition: color 0.2s;
}

.support-quick-ticket-btn:hover {
  color: var(--accent);
}

/* ==========================================================================
   REDESIGNED PROFILE PAGE STYLES
   ========================================================================== */
.profile-hero-section {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--surface), rgba(108, 99, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 32px;
  position: relative;
  margin-bottom: 24px;
}

.profile-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9b51e0);
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.2);
}

.profile-hero-details {
  flex: 1;
}

.profile-hero-details h2 {
  margin: 0 0 4px 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.profile-hero-role {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}

.profile-hero-member {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.profile-hero-member strong {
  color: var(--text);
}

.edit-pref-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

.compact-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.compact-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.compact-stat-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
}

.compact-stat-card i {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.compact-stat-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compact-stat-card span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compact-stat-card strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.details-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.details-card h3 {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 8px;
}

.details-item span {
  color: var(--muted);
}

.details-item strong {
  color: var(--text);
  font-weight: 600;
}

.resume-details-card {
  grid-column: span 1;
}

.details-item.resume-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.resume-name-container {
  font-weight: 700;
  color: var(--text);
  font-size: 0.8rem;
  word-break: break-all;
  white-space: normal;
  background: var(--surface-2);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  width: 100%;
}

.profile-challenges-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.challenges-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.challenges-stat-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.challenges-stat-block .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.challenges-stat-block .label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.profile-subscription-section {
  margin-bottom: 24px;
}

.subscription-card-wrapper {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(18, 18, 26, 0.4) 100%);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.subscription-meta {
  flex: 1;
}

.plan-badge-saas {
  background: var(--accent);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 12px;
}

.subscription-meta h2 {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.subscription-meta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.subscription-usage-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 24px;
  border-radius: 12px;
  min-width: 260px;
}

.usage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.usage-item i {
  width: 14px;
  height: 14px;
  color: #1d9e75;
}

.usage-item span {
  color: var(--muted);
  flex: 1;
}

.usage-item strong {
  color: var(--text);
  font-weight: 700;
}

.upgrade-saas-btn {
  padding: 12px 24px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
}

.billing-table-container {
  overflow-x: auto;
  margin-top: 16px;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.billing-table th {
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

.billing-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.billing-table tr:last-child td {
  border-bottom: 0;
}

.billing-table td.no-billing {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.billing-table td .status-badge {
  background: rgba(29, 158, 117, 0.15);
  color: #1d9e75;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.faq-footer-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.danger-zone-section {
  background: var(--surface);
  border: 1px solid #e54b5e22;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.danger-zone-section h2 {
  color: var(--danger);
  font-size: 1.1rem;
  margin-top: 0;
}

.danger-zone-section p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
  .compact-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .subscription-card-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/* ==========================================================================
   AVATAR SELECTOR GRID (Profile Edit)
   ========================================================================== */
.avatar-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .avatar-selector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: rgba(18, 18, 26, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.avatar-option:hover {
  border-color: rgba(108, 99, 255, 0.5);
  background: rgba(108, 99, 255, 0.08);
  transform: translateY(-2px);
}

.avatar-option.selected {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.16);
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.25);
}

.avatar-option.selected::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(108, 99, 255, 0.2);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.avatar-design {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-design i {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   ROBOT ICON + RAYS FOR AI SUPPORT BUTTON
   ========================================================================== */
.floating-support-btn .robot-icon {
  z-index: 1;
  position: relative;
}

.floating-support-btn .support-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.floating-support-btn .support-rays::before,
.floating-support-btn .support-rays::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(108, 99, 255, 0.5);
  animation: robotRayPulse 2.5s ease-out infinite;
}

.floating-support-btn .support-rays::before {
  width: 70px;
  height: 70px;
  animation-delay: 0s;
}

.floating-support-btn .support-rays::after {
  width: 90px;
  height: 90px;
  animation-delay: 0.8s;
}

@keyframes robotRayPulse {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* ==========================================================================
   FAQ ACCORDION SCROLLABLE + SEARCH
   ========================================================================== */
.faq-item.active .faq-content {
  max-height: 250px;
}

.modal-search-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.15);
}

/* Scrollbar & Flex Layout fixes for FAQ Accordion to prevent overlapping */
.faq-item {
  flex-shrink: 0;
}

#faqAccordionList {
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 99, 255, 0.3) rgba(255, 255, 255, 0.02);
}

#faqAccordionList::-webkit-scrollbar {
  width: 6px;
}

#faqAccordionList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

#faqAccordionList::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.3);
  border-radius: 8px;
}

#faqAccordionList::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 99, 255, 0.5);
}


/* User Profile Avatar Dropdown styles */
.profile-dropdown-container {
  position: relative;
}

.avatar-dropdown-trigger {
  cursor: pointer;
}

.dropdown-menu {
  display: flex;
}

.dropdown-menu.hidden {
  display: none !important;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ── AI Coach Pop-up ── */
@keyframes coachBounceIn {
  0% { transform: translateY(100%) scale(0.8); opacity: 0; }
  50% { transform: translateY(-10%) scale(1.02); opacity: 1; }
  70% { transform: translateY(5%) scale(0.99); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(167, 139, 250, 0.3); }
  50% { box-shadow: 0 0 35px rgba(167, 139, 250, 0.6), 0 0 60px rgba(129, 140, 248, 0.2); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
.ai-coach-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 10002;
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.ai-coach-popup-overlay.visible { opacity: 1; pointer-events: auto; }
.ai-coach-popup-card {
  background: linear-gradient(145deg, rgba(30,30,45,0.98), rgba(20,20,35,0.98));
  border: 1px solid rgba(167,139,250,0.3); border-radius: 24px; padding: 36px 32px;
  max-width: 420px; width: 90%; text-align: center; position: relative; overflow: visible;
  animation: coachBounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.ai-coach-popup-card .robot-icon {
  font-size: 4rem; display: block; margin-bottom: 16px;
  animation: robotFloat 2.5s ease-in-out infinite;
}
.ai-coach-popup-card .sparkle-dot {
  position: absolute; font-size: 1.2rem; animation: sparkle 2s ease-in-out infinite;
}
.ai-coach-popup-card .sparkle-dot:nth-child(1) { top: -8px; left: 20%; animation-delay: 0s; }
.ai-coach-popup-card .sparkle-dot:nth-child(2) { top: 10px; right: 15%; animation-delay: 0.6s; }
.ai-coach-popup-card .sparkle-dot:nth-child(3) { bottom: 20px; left: 10%; animation-delay: 1.2s; }
.ai-coach-popup-card h3 {
  font-size: 1.35rem; font-weight: 800; margin: 0 0 8px;
  background: linear-gradient(135deg, #a78bfa, #818cf8, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ai-coach-popup-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0 0 24px; }
.ai-coach-popup-card .cta-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff;
  border: none; border-radius: 14px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.ai-coach-popup-card .cta-btn:hover { transform: translateY(-2px) scale(1.03); }
.ai-coach-popup-card .dismiss-link {
  display: block; margin-top: 16px; color: var(--muted); font-size: 0.8rem;
  cursor: pointer; border: none; background: none; text-decoration: underline;
  transition: color 0.2s;
}
.ai-coach-popup-card .dismiss-link:hover { color: var(--text); }

/* Subscription Countdown Timer styling */
.subscription-countdown-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  width: fit-content;
  backdrop-filter: blur(8px);
  animation: countdown-pulse-border 2.5s infinite alternate;
}

@keyframes countdown-pulse-border {
  from {
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.08);
  }
  to {
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.25);
  }
}

/* Glassmorphic Locked Overlay styles */
@keyframes pulse-lock {
  from {
    transform: scale(1);
    box-shadow: 0 0 4px rgba(108, 99, 255, 0.2);
  }
  to {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.5);
  }
}

.locked-overlay-glass {
  transition: all 0.3s ease;
}

.locked-overlay-glass:hover {
  background: rgba(18, 18, 26, 0.72) !important;
}

/* Circular Icon-Only Status Chips */
#analysisStatus,
#connectionStatus,
#syncStatus,
#voiceStatus,
#coachingStatus {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  aspect-ratio: 1;
}

/* --- Searchable Custom Combobox Filter Styles --- */
.custom-combobox-wrapper {
  position: relative;
  width: 100%;
}

.custom-combobox {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(108, 99, 255, 0.22) !important;
  border-radius: 14px !important;
  padding: 0 16px;
  height: 50px;
  cursor: text;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-combobox:hover,
.custom-combobox:focus-within {
  border-color: rgba(108, 99, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.15);
}

.combobox-input {
  background: transparent !important;
  border: none !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  outline: none !important;
  width: 100% !important;
  height: 100% !important;
  cursor: pointer;
  padding: 0 !important;
}

.combobox-arrow {
  width: 16px;
  height: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.combobox-dropdown {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(18, 18, 28, 0.96) !important;
  border: 1px solid rgba(108, 99, 255, 0.25) !important;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  max-height: 250px;
  overflow-y: auto;
  padding: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: dropdown-fade-slide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.combobox-dropdown::-webkit-scrollbar {
  width: 6px;
}
.combobox-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.combobox-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

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

.combobox-option {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.combobox-option:hover {
  background: rgba(108, 99, 255, 0.14) !important;
  color: var(--accent-soft) !important;
}

/* --- Pagination Styles --- */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--muted) !important;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover {
  background: rgba(108, 99, 255, 0.08) !important;
  border-color: rgba(108, 99, 255, 0.35) !important;
  color: var(--text) !important;
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: rgba(108, 99, 255, 0.2) !important;
  border-color: var(--accent) !important;
  color: var(--text) !important;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

/* --- Premium UI Enhancements --- */
.job-match-card.high-glow {
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.12), inset 0 0 20px rgba(108, 99, 255, 0.04);
  border-color: rgba(108, 99, 255, 0.32) !important;
  position: relative;
}

.job-match-card.high-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.06), transparent 50%);
}

.job-skills-matched .skill-badge {
  background: rgba(108, 99, 255, 0.06) !important;
  border-color: rgba(108, 99, 255, 0.22) !important;
  color: var(--accent-soft) !important;
  transition: all 0.15s ease;
  font-weight: 600;
}

.job-match-card:hover .job-skills-matched .skill-badge {
  background: rgba(108, 99, 255, 0.1) !important;
  border-color: rgba(108, 99, 255, 0.35) !important;
  color: #fff !important;
}

.job-card-actions .secondary-link {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--muted) !important;
  transition: all 0.2s ease;
}

.job-card-actions .secondary-link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: var(--text) !important;
}

/* --- Shining Metallic Badge Styles --- */
.shining-badge-container {
  position: relative;
  display: inline-block;
}

.shining-badge {
  position: relative !important;
  overflow: hidden !important;
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  z-index: 1;
  background: radial-gradient(circle, #f39c12 0%, #d35400 100%) !important;
  border: 2px solid #ffe066 !important;
  box-shadow: 0 0 15px rgba(245, 176, 65, 0.45), inset 0 0 8px rgba(255, 255, 255, 0.6) !important;
  animation: badgeGlowPulse 2.5s infinite ease-in-out;
}

.shining-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-25deg);
  animation: badgeShineSweep 3s infinite ease-in-out;
  z-index: 2;
}

.shining-badge i,
.shining-badge svg {
  color: #ffffff !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  position: relative;
  z-index: 3;
}

.shining-badge-star {
  position: absolute;
  color: #ffd700;
  font-size: 14px;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
  pointer-events: none;
  z-index: 10;
  animation: starFlickerSpin 2s infinite ease-in-out;
}

.shining-badge-star.s1 {
  top: -4px;
  right: -4px;
  animation-delay: 0.3s;
}

.shining-badge-star.s2 {
  bottom: -2px;
  left: -2px;
  animation-delay: 0.9s;
}

@keyframes badgeShineSweep {
  0% { left: -150%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

@keyframes badgeGlowPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(245, 176, 65, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.6);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 26px rgba(255, 224, 102, 0.8), inset 0 0 12px rgba(255, 255, 255, 0.8);
  }
}

@keyframes starFlickerSpin {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(180deg);
  }
}

/* Custom size override for profile page badges */
.profile-badge-card .shining-badge {
  width: 48px;
  height: 48px;
}
.profile-badge-card .shining-badge-star {
  font-size: 12px;
}

/* Custom size override for modal badge */
.badge-modal-icon.shining-badge {
  width: 72px;
  height: 72px;
  border-width: 3px !important;
}

/* --- Mountain Expedition Trail Styles (Shared) --- */
.challenge-trail {
  display: flex;
  flex-direction: row;
  gap: 40px;
  overflow-x: auto;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.challenge-trail::-webkit-scrollbar {
  height: 8px;
}
.challenge-trail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.challenge-trail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.challenge-trail::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.challenge-trail-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.challenge-trail-node .node-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  background: var(--surface-2);
  border: 3px solid var(--border);
  color: var(--muted);
  transition: all 0.3s ease;
}

.challenge-trail-node .node-title {
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s ease;
}

/* Trail node states */
.challenge-trail-node.completed .node-circle {
  background: rgba(48, 223, 160, 0.15) !important;
  border-color: #30dfa0 !important;
  color: #30dfa0 !important;
  box-shadow: 0 0 16px rgba(48, 223, 160, 0.35) !important;
}
.challenge-trail-node.completed .node-title {
  color: #30dfa0 !important;
}

.challenge-trail-node.active .node-circle {
  background: rgba(108, 99, 255, 0.2) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.5) !important;
}
.challenge-trail-node.active .node-title {
  color: var(--accent-soft) !important;
  font-weight: 800;
}

.challenge-trail-node.locked .node-circle {
  opacity: 0.65;
}

/* Winding Trail SVG flow animations */
@keyframes challengeDashFlow {
  to {
    stroke-dashoffset: -20;
  }
}
.flowing-path {
  animation: challengeDashFlow 2.5s linear infinite;
}
.glowing-path {
  filter: drop-shadow(0 0 5px rgba(108, 99, 255, 0.5));
}

/* Base styles - hide mobile elements by default on desktop */
.mobile-nav-header,
.mobile-drawer-backdrop,
.mobile-nav-drawer {
  display: none;
}

/* --- Mobile Side Navigation Drawer --- */
@media screen and (max-width: 768px) {
  body {
    padding-top: 56px !important;
  }
  
  .bottom-nav {
    display: none !important;
  }

  .mobile-nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 999;
  }

  .hamburger-toggle-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .hamburger-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-drawer-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    background: rgba(15, 15, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-drawer.open {
    transform: translateX(0);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
  }

  .drawer-close-btn {
    border-radius: 8px;
    transition: background 0.2s;
  }
  .drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .drawer-nav {
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
  }

  .drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
  }

  .drawer-nav-item i,
  .drawer-nav-item svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: color 0.2s ease;
  }

  .drawer-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
  }
  
  .drawer-nav-item:hover i,
  .drawer-nav-item:hover svg {
    color: var(--text);
  }

  .drawer-nav-item.active {
    background: rgba(108, 99, 255, 0.14);
    border-color: rgba(108, 99, 255, 0.28);
    color: var(--accent-soft);
    font-weight: 700;
  }

  .drawer-nav-item.active i,
  .drawer-nav-item.active svg {
    color: var(--accent-soft);
  }

  .drawer-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
  }
}

@media screen and (min-width: 769px) {
  .mobile-nav-header,
  .mobile-drawer-backdrop,
  .mobile-nav-drawer {
    display: none !important;
  }
}

/* --- Earned Achievements Badge Layout & Actions --- */
.badge-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.profile-badge-card {
  background: rgba(18, 18, 26, 0.45);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.profile-badge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15);
  background: rgba(18, 18, 26, 0.65);
}

.profile-badge-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.profile-badge-card .badge-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-badge-card .badge-date {
  font-size: 0.65rem;
  color: var(--accent-soft);
  font-weight: 500;
}

.profile-badge-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}

.profile-badge-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.profile-badge-btn i,
.profile-badge-btn svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.profile-badge-btn:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.3);
}

.profile-badge-btn:hover i,
.profile-badge-btn:hover svg {
  color: var(--accent-soft);
}

.profile-badge-btn.share-btn:hover {
  background: rgba(0, 119, 181, 0.1);
  border-color: rgba(0, 119, 181, 0.4);
}

.profile-badge-btn.share-btn:hover i,
.profile-badge-btn.share-btn:hover svg {
  color: #0077b5;
}

/* --- Unified Hub (Missions & Challenges) Styles --- */
.hub-dropdown-container {
  position: relative;
  display: inline-block;
}

.hub-dropdown-trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hub-tile-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hub-tile-card:hover {
  transform: translateY(-8px);
  background: rgba(18, 18, 26, 0.65) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(108, 99, 255, 0.15);
}

#hubTileMissions:hover {
  border-color: rgba(108, 99, 255, 0.45) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(108, 99, 255, 0.15) !important;
}

#hubTileChallenges:hover {
  border-color: rgba(29, 158, 117, 0.45) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(29, 158, 117, 0.15) !important;
}

.dropdown-item {
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text) !important;
}

.dropdown-item.active {
  background: rgba(108, 99, 255, 0.15) !important;
  color: var(--accent-soft) !important;
}

#jobSearchBtn {
  font-family: inherit;
}

#jobSearchBtn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.35);
}

#jobSearchBtn:active {
  transform: translateY(0);
}

/* Siri/Gemini/Naukri-Style Glassmorphic Glowing AI Orb Animation */
.ai-glowing-orb {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #090a15;
  background-image: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(9, 10, 21, 1) 100%);
  overflow: hidden;
  box-shadow: 
    0 0 8px rgba(168, 85, 247, 0.65), 
    0 0 16px rgba(236, 72, 153, 0.4),
    inset 0 0 4px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  vertical-align: middle;
  flex-shrink: 0;
  animation: orb-container-pulse 3s ease-in-out infinite alternate;
}

/* Inner blending blobs */
.ai-glowing-orb .orb-blob-1,
.ai-glowing-orb .orb-blob-2,
.ai-glowing-orb .orb-blob-3 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(2px);
}

.ai-glowing-orb .orb-blob-1 {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.95) 0%, rgba(236, 72, 153, 0) 70%);
  animation: orb-blob-1-anim 3.5s ease-in-out infinite alternate;
}

.ai-glowing-orb .orb-blob-2 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.95) 0%, rgba(59, 130, 246, 0) 70%);
  animation: orb-blob-2-anim 4.2s ease-in-out infinite alternate;
}

.ai-glowing-orb .orb-blob-3 {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.95) 0%, rgba(6, 182, 212, 0) 70%);
  animation: orb-blob-3-anim 3.8s ease-in-out infinite alternate;
}

/* Highlighting glossy reflection overlay */
.ai-glowing-orb .orb-shine {
  position: absolute;
  top: 1px;
  left: 2px;
  width: calc(100% - 4px);
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  pointer-events: none;
  z-index: 4;
}

@keyframes orb-blob-1-anim {
  0% { transform: translate(-25%, -25%) scale(0.95); }
  100% { transform: translate(25%, 25%) scale(1.25); }
}

@keyframes orb-blob-2-anim {
  0% { transform: translate(25%, -20%) scale(1.2); }
  100% { transform: translate(-25%, 20%) scale(0.9); }
}

@keyframes orb-blob-3-anim {
  0% { transform: translate(-15%, 25%) scale(0.9); }
  100% { transform: translate(20%, -25%) scale(1.15); }
}

@keyframes orb-container-pulse {
  0% {
    transform: scale(1);
    box-shadow: 
      0 0 8px rgba(168, 85, 247, 0.55), 
      0 0 14px rgba(236, 72, 153, 0.35),
      inset 0 0 3px rgba(255, 255, 255, 0.3);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 
      0 0 12px rgba(168, 85, 247, 0.75), 
      0 0 20px rgba(236, 72, 153, 0.55),
      inset 0 0 5px rgba(255, 255, 255, 0.45);
  }
}

/* Google-Style Ambient Glow Button */
.job-practice-btn {
  position: relative !important;
  overflow: visible !important;
  background: #0c0d16 !important; /* Premium dark navy-charcoal background */
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  z-index: 1;
}

.job-practice-btn::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, #4285f4, #9b51e0, #ea4335, #34a853);
  background-size: 300% 300%;
  filter: blur(8px);
  opacity: 0.25;
  z-index: -1;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: google-glow-shift 8s ease infinite;
}

.job-practice-btn:hover {
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-2px);
}

.job-practice-btn:hover::before {
  opacity: 1;
  filter: blur(16px);
  transform: scale(1.07);
}

.job-practice-btn:active {
  transform: translateY(0px);
}

.job-practice-btn:active::before {
  opacity: 0.8;
  filter: blur(10px);
  transform: scale(0.98);
}

@keyframes google-glow-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



/* Compact Recommended Job Cards Overrides */
.jobs-carousel-horizontal .job-match-card {
  width: 320px !important;
  min-height: 190px !important;
  padding: 18px !important;
}

.job-match-card .job-card-header h3 {
  font-size: 1.15rem !important;
}

.job-match-card .job-card-header {
  margin-bottom: 8px !important;
}

.job-match-card .job-card-meta-row {
  margin-bottom: 10px !important;
}

.job-match-card .job-skills-matched {
  margin-bottom: 12px !important;
}

/* Floating Control Prompts Tooltips styling */
.meeting-control {
  position: relative !important;
}

.control-prompt-popup {
  position: absolute;
  bottom: 60px; /* Positioned directly above the button */
  left: 50%;
  transform: translate(-50%, 10px) scale(0.95);
  background: rgba(12, 13, 22, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.7), 
    0 0 20px rgba(168, 85, 247, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 12px;
  width: 250px;
  font-size: 0.76rem;
  color: #fff;
  line-height: 1.4;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  text-align: center;
  backdrop-filter: blur(16px);
  white-space: normal;
  font-weight: 500;
}

.control-prompt-popup.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: tooltip-glow-pulse 2.5s infinite alternate;
}

.control-prompt-popup::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(12, 13, 22, 0.96);
  border-right: 1px solid rgba(168, 85, 247, 0.6);
  border-bottom: 1px solid rgba(168, 85, 247, 0.6);
}

@keyframes tooltip-glow-pulse {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.6);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(236, 72, 153, 0.5);
    border-color: rgba(236, 72, 153, 0.8);
  }
}

@keyframes warningPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.7);
  }
}

/* Creative Pre-Interview Guide & Reusable Ambient Glow Borders */
.ambient-glow-border {
  border: 2px solid transparent !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  background-size: 100% 100%, 300% 100% !important;
  background-position: 0% 0%, 0% 0%;
  animation: border-glow-shift 4s linear infinite !important;
}

#dosDontsModalCard {
  border-radius: 24px !important;
  background-image: linear-gradient(145deg, #141423, #0a0a12),
                    linear-gradient(90deg, #4285f4, #9b51e0, #ea4335, #34a853) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 
              0 0 30px rgba(108, 99, 255, 0.15), 
              0 0 50px rgba(168, 85, 247, 0.15) !important;
}

#aiWarningBubble {
  border-radius: 14px !important;
  background-image: linear-gradient(135deg, #1e1b4b, #0f0f19),
                    linear-gradient(90deg, #4285f4, #9b51e0, #ea4335, #34a853) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 
              0 0 15px rgba(108, 99, 255, 0.15), 
              0 0 25px rgba(168, 85, 247, 0.15) !important;
}
#aiWarningBubble .bubble-pointer {
  border-right: 7px solid #1e1b4b !important;
}

.session-end-card.ambient-glow-border {
  background-image: linear-gradient(145deg, #141423, #0a0a12),
                    linear-gradient(90deg, #4285f4, #9b51e0, #ea4335, #34a853) !important;
}

.modal-drawer.ambient-glow-border {
  background-image: linear-gradient(145deg, #141423, #0a0a12),
                    linear-gradient(90deg, #4285f4, #9b51e0, #ea4335, #34a853) !important;
}

@keyframes border-glow-shift {
  0% {
    background-position: 0% 0%, 0% 0%;
  }
  100% {
    background-position: 0% 0%, 300% 0%;
  }
}

.understand-btn {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.understand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6) !important;
}

.understand-btn .arrow-icon {
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.3s;
}

.understand-btn:hover .arrow-icon {
  animation: arrowLoop 0.8s infinite linear;
}

.understand-btn .sweep-arrow {
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  opacity: 0;
  font-weight: bold;
}

.understand-btn:hover .sweep-arrow {
  animation: sweepArrowAnim 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes arrowLoop {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(18px);
    opacity: 0;
  }
  41% {
    transform: translateX(-18px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes sweepArrowAnim {
  0% {
    left: -30px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: calc(100% + 10px);
    opacity: 0;
  }
}

#startInterviewBtn.ambient-glow-border {
  border: 2px solid transparent !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  background-size: 100% 100%, 300% 100% !important;
  background-position: 0% 0%, 0% 0%;
  animation: border-glow-shift 4s linear infinite !important;
  background-image: linear-gradient(135deg, #141423, #0a0a12),
                    linear-gradient(90deg, #4285f4, #9b51e0, #ea4335, #34a853) !important;
  color: white !important;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3), 
              0 0 15px rgba(168, 85, 247, 0.2) !important;
  transition: all 0.2s;
  outline: none;
}
#startInterviewBtn.ambient-glow-border:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.5), 
              0 0 25px rgba(168, 85, 247, 0.4) !important;
}

/* --- AI Insights Upgrade Split Layout --- */
.insights-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.insights-sidebar {
  display: none !important;
}

.insights-main-content {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .insights-split-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Specific Sizing & Elements */
.rec-text {
  margin: 0 0 12px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.rec-label {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
  display: block;
}

.sidebar-btn {
  width: 100%;
  text-align: center;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sidebar-btn:hover {
  transform: translateY(-2px);
}

/* Mini Badges inside Sidebar Drawer */
.badges-grid-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.badge-item-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-item-mini i, .badge-item-mini svg {
  width: 20px;
  height: 20px;
}

.badge-item-mini:hover {
  transform: scale(1.1);
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

/* Tooltip for Mini Badges */
.badge-item-mini[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #0f0f18;
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  z-index: 10;
}

.badge-item-mini:hover[data-tooltip]::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Metric Circles styling */
.metric-circle-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.metric-circle-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(108, 99, 255, 0.2);
}

.radial-ring {
  margin: 0 auto;
}

.stats-counter-row strong {
  text-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

/* ==========================================================================
   AI INSIGHTS TABBED LAYOUT, DYNAMIC HERO BANNER, & INTERACTIVE COMPONENT STYLES
   ========================================================================== */

/* User Profile Sidebar Header */
.user-profile-header-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.02);
}

/* Sidebar Vertical Tab Navigation */
.sidebar-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  width: 100%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-nav-item i, .sidebar-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.25s ease;
}

.sidebar-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  padding-left: 20px;
}

.sidebar-nav-item:hover i, .sidebar-nav-item:hover svg {
  transform: scale(1.1);
  color: var(--text);
}

.sidebar-nav-item.active {
  color: #fff;
  background: rgba(108, 99, 255, 0.12) !important;
  border-color: rgba(108, 99, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.08), inset 0 0 10px rgba(108, 99, 255, 0.05);
  padding-left: 20px;
}

.sidebar-nav-item.active i, .sidebar-nav-item.active svg {
  color: var(--accent);
}

.sidebar-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--accent);
}

/* Premium Dashboard Hero Banner */
.dashboard-hero-banner {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.09) 0%, rgba(0, 210, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dashboard-hero-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-banner-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #837dff;
  margin: 0 0 8px 0;
  text-shadow: 0 0 12px rgba(108, 99, 255, 0.25);
}

.hero-headline {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 12px 0;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #fff 50%, #c4c4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

/* Tab Panel Toggle & Animation */
.tab-panel {
  animation: fadeInDashboardTab 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.tab-panel.hidden {
  display: none !important;
}

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

/* Interactive Accordion for Playbook Cards */
.tip-card {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  background: rgba(18, 18, 29, 0.4) !important;
}

.tip-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: rgba(108, 99, 255, 0.2) !important;
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.1) !important;
  background: rgba(18, 18, 29, 0.65) !important;
}

.tip-card .tip-expanded-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 0;
  border-top: 1px dashed transparent;
  margin-top: 0;
}

.tip-card.expanded .tip-expanded-content {
  max-height: 500px;
  opacity: 1;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin-top: 16px;
}

.tip-card .expand-chevron {
  transition: transform 0.3s ease;
  color: var(--muted);
  flex-shrink: 0;
}

.tip-card.expanded .expand-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Interactive Focus for History Filters */
.search-box-container input:focus {
  border-color: rgba(108, 99, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.08);
}

#historyFilterSelect:focus {
  border-color: rgba(108, 99, 255, 0.35) !important;
  background: rgba(18, 18, 29, 0.9) !important;
}

/* ==========================================================================
   MOBILE SCREEN RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
  .insights-split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar-nav-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    scrollbar-width: none; /* Firefox */
  }
  
  .sidebar-nav-tabs::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
  }
  
  .sidebar-nav-item {
    white-space: nowrap;
    width: auto;
    padding: 10px 16px;
  }
  
  .sidebar-nav-item.active::before {
    left: 15%;
    bottom: 0;
    top: auto;
    height: 3px;
    width: 70%;
    border-radius: 4px 4px 0 0;
  }
  
  .sidebar-nav-item:hover {
    padding-left: 16px;
  }
  
  .sidebar-nav-item.active {
    padding-left: 16px;
  }
  
  .hero-headline {
    font-size: 1.45rem;
  }
  
  .dashboard-hero-banner {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .overview-recommendations-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- Impact & Growth Calibration Card Styles --- */
.growth-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.calibration-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(18, 18, 29, 0.4);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.calibration-card:hover {
  border-color: rgba(108, 99, 255, 0.15);
  background: rgba(18, 18, 29, 0.55);
}

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

.calibration-card-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.diff-glow-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
}

.diff-glow-badge.positive {
  background: rgba(29, 158, 117, 0.15);
  color: #2be0a5;
  border-color: rgba(29, 158, 117, 0.3);
  box-shadow: 0 0 12px rgba(29, 158, 117, 0.15);
}

.diff-glow-badge.negative {
  background: rgba(229, 75, 94, 0.15);
  color: #ff6074;
  border-color: rgba(229, 75, 94, 0.3);
  box-shadow: 0 0 12px rgba(229, 75, 94, 0.15);
}

.diff-glow-badge.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
}

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

.comparison-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comparison-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.comparison-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.comparison-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-bar-fill.baseline {
  background: var(--muted);
  opacity: 0.4;
}

.comparison-bar-fill.current-confidence {
  background: linear-gradient(90deg, #6c63ff 0%, #00d2ff 100%);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.comparison-bar-fill.current-clarity {
  background: linear-gradient(90deg, #1d9e75 0%, #2be0a5 100%);
  box-shadow: 0 0 10px rgba(43, 224, 165, 0.3);
}

.comparison-bar-fill.current-filler {
  background: linear-gradient(90deg, #e54b5e 0%, #ff6074 100%);
  box-shadow: 0 0 10px rgba(255, 96, 116, 0.3);
}

/* Ambient glow effect for primary recommended buttons */
.ambient-glow-primary {
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ambient-glow-primary:hover {
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.6), 0 0 8px rgba(133, 125, 255, 0.4) !important;
  transform: translateY(-2px);
}

/* Ambient glow effect for secondary adopted buttons */
.ambient-glow-secondary {
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(108, 99, 255, 0.25) !important;
}
.ambient-glow-secondary:hover {
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4), 0 0 8px rgba(108, 99, 255, 0.2) !important;
  border-color: rgba(108, 99, 255, 0.5) !important;
  transform: translateY(-2px);
}

/* Premium ambient glow border button styled in our purple/indigo theme */
.ambient-glow-btn-themed {
  border: 2px solid transparent !important;
  background-clip: padding-box, border-box !important;
  background-origin: padding-box, border-box !important;
  background-size: 100% 100%, 300% 100% !important;
  background-position: 0% 0%, 0% 0%;
  animation: border-glow-shift 4s linear infinite !important;
  background-image: linear-gradient(135deg, #141423, #0a0a12),
                    linear-gradient(90deg, #6c63ff, #ea4335, #857dff, #6c63ff) !important;
  color: white !important;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.35), 
              0 0 15px rgba(168, 85, 247, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.ambient-glow-btn-themed:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.55), 
              0 0 25px rgba(168, 85, 247, 0.35) !important;
}

/* Glossy/metallic circular orb icon */
.metallic-orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8) 0%, rgba(168, 85, 247, 0.6) 40%, rgba(10, 10, 20, 0.95) 80%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  display: inline-block;
  flex-shrink: 0;
}

/* Executive summary panel hover responsive border */
.ai-coach-panel {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-coach-panel:hover {
  border-color: rgba(108, 99, 255, 0.25) !important;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.08) !important;
}

/* Interactive list items for observations */
.executive-insight-item {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px 12px;
  border-radius: 6px;
  list-style-type: none !important;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}
.executive-insight-item:hover {
  transform: translateX(4px);
  color: var(--text) !important;
  background: rgba(108, 99, 255, 0.05);
}
.executive-insight-item::before {
  content: "•";
  color: var(--accent-soft);
  font-size: 1.5rem;
  line-height: 1;
  margin-top: -3px;
  transition: transform 0.25s ease;
}
.executive-insight-item:hover::before {
  transform: scale(1.4);
  color: var(--accent);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stagger-in {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

/* --- Modern Horizontal Session History Tiles / Rows --- */
.history-rows-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.history-session-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.history-session-row:hover {
  border-color: rgba(108, 99, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Border Accent Colors for Row states */
.history-session-row.source-violet {
  border-left: 4px solid var(--accent) !important;
}

.history-session-row.source-green {
  border-left: 4px solid var(--success) !important;
}

.history-session-row.source-slate {
  border-left: 1px solid var(--border) !important;
}

/* Row Left elements */
.row-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 2;
  min-width: 0;
}

.row-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.row-icon-wrap.icon-violet {
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-soft);
}

.row-icon-wrap.icon-green {
  background: rgba(29, 158, 117, 0.1);
  color: var(--success);
}

.row-icon-wrap.icon-slate {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.row-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.source-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: inherit;
}

.badge-violet {
  background: rgba(108, 99, 255, 0.15);
  color: #a8a4ff;
  border: 1px solid rgba(108, 99, 255, 0.3);
}

.badge-green {
  background: rgba(29, 158, 117, 0.15);
  color: #34d399;
  border: 1px solid rgba(29, 158, 117, 0.3);
}

.badge-slate {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.date-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.session-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.target-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

/* Row Middle (Scores Display) */
.row-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1.5;
}

.row-middle-scores {
  display: flex;
  gap: 10px;
}

.row-middle-scores .score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  min-width: 90px;
}

.row-middle-scores .score-block strong {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
}

.row-middle-scores .score-block span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Row Right (Actions) */
.row-right {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.history-session-row .retry-btn,
.history-session-row .critique-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-session-row .retry-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.history-session-row .retry-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--muted);
}

.history-session-row .critique-btn {
  background: #f0f0f5;
  color: #0a0a0f;
  border: none;
}

.history-session-row .critique-btn:hover {
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Toolbar adjustments for 4 columns on desktop */
.history-toolbar {
  grid-template-columns: 1fr 180px 180px 180px !important;
}

/* Responsive grid to row adaptation */
@media (max-width: 900px) {
  .history-toolbar {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .history-session-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }
  .row-left {
    width: 100%;
  }
  .row-middle {
    width: 100%;
    justify-content: flex-start;
  }
  .row-right {
    width: 100%;
    justify-content: flex-start;
  }
  .history-session-row .retry-btn,
  .history-session-row .critique-btn {
    flex: 1;
    justify-content: center;
  }
  .history-toolbar {
    grid-template-columns: 1fr !important;
  }
}

/* --- Desktop Left Sidebar Navigation --- */
@media screen and (min-width: 769px) {
  body.has-sidebar {
    padding-left: 260px;
    transition: padding-left 0.3s ease;
  }

  /* Style for bottom-nav when it acts as the sidebar nav */
  .bottom-nav.sidebar-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    transform: none !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: 1px solid var(--border) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 28px 20px !important;
    z-index: 1000 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25) !important;
    overflow-y: auto !important;
    background: rgba(18, 18, 26, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    gap: 0 !important;
  }

  /* Brand Logo */
  .sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 36px !important;
    padding: 0 8px !important;
    text-decoration: none !important;
  }

  .sidebar-brand img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
  }

  .sidebar-brand span {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    letter-spacing: -0.02em !important;
  }

  /* Navigation Groups */
  .sidebar-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 28px !important;
    width: 100% !important;
  }

  .sidebar-group-title {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
    letter-spacing: 0.1em !important;
    padding: 0 12px 6px !important;
  }

  /* Override the square button styling of .bottom-nav a */
  .bottom-nav.sidebar-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    color: var(--muted) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    gap: 12px !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
  }

  .bottom-nav.sidebar-nav a i,
  .bottom-nav.sidebar-nav a svg {
    width: 18px !important;
    height: 18px !important;
    transition: color 0.2s !important;
    margin: 0 !important;
    color: var(--muted) !important;
  }

  /* Override the default hidden state of .bottom-nav a span */
  .bottom-nav.sidebar-nav a span {
    display: inline !important;
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
  }

  /* Remove any ::after styling from bottom-nav */
  .bottom-nav.sidebar-nav a span::after {
    display: none !important;
  }

  /* Hover & Active States */
  .bottom-nav.sidebar-nav a:hover {
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .bottom-nav.sidebar-nav a.active {
    color: #fff !important;
    background: rgba(108, 99, 255, 0.08) !important;
    border-left: 3px solid var(--accent) !important;
    font-weight: 600 !important;
    border-radius: 0 8px 8px 0 !important;
    margin-left: -16px !important;
    padding-left: 29px !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
  }

  .bottom-nav.sidebar-nav a.active i,
  .bottom-nav.sidebar-nav a.active svg {
    color: var(--accent-soft) !important;
  }

  /* Footer item */
  .sidebar-footer {
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border) !important;
    width: 100% !important;
  }
}

@media screen and (max-width: 768px) {
  .sidebar-nav {
    display: none !important;
  }
}

/* --- Sidebar Collapse & Expand Animations --- */
@media screen and (min-width: 769px) {
  body.has-sidebar {
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding-left: 260px !important;
  }

  body.has-sidebar.sidebar-collapsed {
    padding-left: 72px !important;
  }
}

@media screen and (max-width: 768px) {
  body.has-sidebar {
    padding-left: 0 !important;
    padding-top: 60px !important;
  }
}

.bottom-nav.sidebar-nav {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 260px !important;
  background: var(--surface) !important;
  border-right: 1px solid var(--border) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 24px 14px !important;
  z-index: 1000 !important;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bottom-nav.sidebar-nav.collapsed {
  width: 72px !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 24px 8px !important;
}

/* Brand Header Wrapper (Brand Logo + Collapse Trigger Button) */
.sidebar-brand-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 36px !important;
  width: 100% !important;
}

.sidebar-brand {
  margin-bottom: 0 !important; /* override old bottom margin */
  padding: 0 !important;
}

/* Top Collapse Icon Button */
.sidebar-collapse-btn-top {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  padding: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.sidebar-collapse-btn-top:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.sidebar-collapse-btn-top i,
.sidebar-collapse-btn-top svg {
  width: 18px !important;
  height: 18px !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hide text and titles in collapsed state */
.bottom-nav.sidebar-nav.collapsed .sidebar-brand span,
.bottom-nav.sidebar-nav.collapsed .sidebar-group-title,
.bottom-nav.sidebar-nav.collapsed .dropdown-arrow,
.bottom-nav.sidebar-nav.collapsed a span,
.bottom-nav.sidebar-nav.collapsed button span,
.bottom-nav.sidebar-nav.collapsed .sidebar-submenu {
  display: none !important;
}

/* Layout centering when collapsed */
.bottom-nav.sidebar-nav.collapsed .sidebar-brand-wrapper {
  justify-content: center !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

.bottom-nav.sidebar-nav.collapsed a {
  justify-content: center !important;
  padding: 12px !important;
  border-radius: 8px !important;
}

.bottom-nav.sidebar-nav.collapsed .sidebar-dropdown-toggle-left {
  justify-content: center !important;
  width: 100% !important;
}

.bottom-nav.sidebar-nav.collapsed a i,
.bottom-nav.sidebar-nav.collapsed a svg {
  margin-right: 0 !important;
  width: 20px !important;
  height: 20px !important;
}

/* Rotate collapse arrow in slim state */
.bottom-nav.sidebar-nav.collapsed .sidebar-collapse-btn-top i,
.bottom-nav.sidebar-nav.collapsed .sidebar-collapse-btn-top svg {
  transform: rotate(180deg) !important;
}

/* Hide Default Web Tour Button Globally */
#floatingTourBtn {
  display: none !important;
}

/* Active adjustments in collapsed state */
.bottom-nav.sidebar-nav.collapsed a.active {
  margin-left: -8px !important;
  padding-left: 12px !important;
  width: calc(100% + 16px) !important;
  border-radius: 0 8px 8px 0 !important;
}

/* --- Submenu Dropdown & Arrow Animations --- */
.sidebar-dropdown-group {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0 !important;
}

.sidebar-dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.sidebar-dropdown-toggle-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.dropdown-arrow {
  margin-left: auto !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 14px !important;
  height: 14px !important;
}

.sidebar-dropdown-group.open .dropdown-arrow {
  transform: rotate(180deg) !important;
}

.sidebar-submenu {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding-left: 20px !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  max-height: 0 !important;
  opacity: 0 !important;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
  width: 100% !important;
}

.sidebar-dropdown-group.open .sidebar-submenu {
  max-height: 220px !important;
  opacity: 1 !important;
}

/* Submenu Link Styling Overrides */
.bottom-nav.sidebar-nav .sidebar-submenu a {
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
  gap: 10px !important;
  color: var(--muted) !important;
}

.bottom-nav.sidebar-nav .sidebar-submenu a i,
.bottom-nav.sidebar-nav .sidebar-submenu a svg {
  width: 14px !important;
  height: 14px !important;
}

.bottom-nav.sidebar-nav .sidebar-submenu a:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.bottom-nav.sidebar-nav .sidebar-submenu a.active {
  color: var(--accent-soft) !important;
  background: rgba(108, 99, 255, 0.08) !important;
  border-color: rgba(108, 99, 255, 0.15) !important;
}

/* --- Global Sticky Top Bar --- */
.app-top-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60px !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  z-index: 1010 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 24px !important;
}

.top-bar-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.top-bar-toggle-btn {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.top-bar-toggle-btn:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.top-bar-toggle-btn i,
.top-bar-toggle-btn svg {
  width: 20px !important;
  height: 20px !important;
}

.top-bar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}

.top-bar-brand img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

.top-bar-brand span {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  letter-spacing: -0.02em !important;
}

.top-bar-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.top-bar-icon-btn {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.top-bar-icon-btn:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.top-bar-icon-btn i,
.top-bar-icon-btn svg {
  width: 20px !important;
  height: 20px !important;
}

/* Profile Dropdown inside Top Bar */
.top-bar-profile-dropdown {
  position: relative !important;
}

.top-bar-profile-trigger {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.top-bar-profile-trigger:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.profile-avatar-mini {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--accent) 0%, #857dff 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  color: white !important;
  font-size: 0.72rem !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.profile-chevron {
  width: 14px !important;
  height: 14px !important;
  color: var(--muted) !important;
}

/* Dropdown Menu styling */
.top-profile-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  width: 240px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin-top: 8px !important;
  z-index: 1020 !important;
  padding: 8px 0 !important;
}

.top-profile-menu.hidden {
  display: none !important;
}

.top-profile-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
}

.top-profile-header div {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.top-profile-header strong {
  color: var(--text) !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.top-profile-header span {
  color: var(--muted) !important;
  font-size: 0.76rem !important;
}

.top-profile-divider {
  height: 1px !important;
  background: var(--border) !important;
  margin: 6px 0 !important;
  width: 100% !important;
}

.profile-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.profile-menu-item:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.profile-menu-item i,
.profile-menu-item svg {
  width: 16px !important;
  height: 16px !important;
}

.profile-menu-item.sign-out-item {
  color: #ff5c5c !important;
}

.profile-menu-item.sign-out-item:hover {
  background: rgba(255, 92, 92, 0.08) !important;
}

/* Sidebar Nav positioning adjustments */
.bottom-nav.sidebar-nav {
  top: 60px !important; /* Starts below top bar */
}

body.has-sidebar {
  padding-top: 60px !important; /* Push main content below top bar */
  padding-left: 260px !important;
}

body.has-sidebar.sidebar-collapsed {
  padding-left: 72px !important;
}

/* Hide dynamically injected mobile top-bar header */
.mobile-nav-header {
  display: none !important;
}

}

/* --- Top Bar Search Container (Expanding) --- */
.top-bar-search-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 20px !important;
  padding: 0 !important;
  height: 36px !important;
  width: 36px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.top-bar-search-container.expanded {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  width: 280px !important;
  padding: 0 12px !important;
}

.top-bar-search-container.expanded:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.15) !important;
}

.top-bar-search-toggle {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.top-bar-search-toggle:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.top-bar-search-container.expanded .top-bar-search-toggle {
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin-right: 8px !important;
  cursor: default !important;
}

.top-bar-search-container.expanded .top-bar-search-toggle:hover {
  background: none !important;
}

.top-bar-search-toggle i,
.top-bar-search-toggle svg {
  width: 20px !important;
  height: 20px !important;
}

.top-bar-search-container.expanded .top-bar-search-toggle i,
.top-bar-search-container.expanded .top-bar-search-toggle svg {
  width: 16px !important;
  height: 16px !important;
}

#topBarSearchInput {
  display: none !important;
  background: none !important;
  border: none !important;
  color: var(--text) !important;
  outline: none !important;
  font-size: 0.86rem !important;
  width: 100% !important;
  padding: 0 !important;
}

.top-bar-search-container.expanded #topBarSearchInput {
  display: block !important;
}

/* Search Dropdown Results */
.top-search-results {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  margin-top: 8px !important;
  z-index: 1020 !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  padding: 6px 0 !important;
}

.top-search-results.hidden {
  display: none !important;
}

.search-result-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  color: var(--muted) !important;
  font-size: 0.85rem !important;
}

.search-result-row:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text) !important;
}

.search-result-empty {
  padding: 12px 16px !important;
  color: var(--muted) !important;
  font-size: 0.85rem !important;
  text-align: center !important;
}

/* --- AI Chatbot Widget Styles --- */
.chatbot-toggle-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--accent) 0%, #857dff 100%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.6) !important;
}

.chatbot-toggle-btn i,
.chatbot-toggle-btn svg {
  width: 24px !important;
  height: 24px !important;
}

/* Chat Window */
.chatbot-window {
  position: fixed !important;
  bottom: 88px !important;
  right: 24px !important;
  width: 360px !important;
  height: 500px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 99999 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.chatbot-window.hidden {
  opacity: 0 !important;
  transform: translateY(20px) scale(0.95) !important;
  pointer-events: none !important;
}

/* Header */
.chatbot-header {
  padding: 14px 18px !important;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(20, 20, 30, 0.95) 100%) !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.chatbot-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.chatbot-header-left i,
.chatbot-header-left svg {
  color: var(--accent-soft) !important;
  width: 20px !important;
  height: 20px !important;
}

.chatbot-header-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.chatbot-header-info strong {
  font-size: 0.92rem !important;
  color: var(--text) !important;
}

.chatbot-plan-badge {
  font-size: 0.7rem !important;
  color: var(--accent-soft) !important;
  background: rgba(108, 99, 255, 0.15) !important;
  border: 1px solid rgba(108, 99, 255, 0.3) !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  width: fit-content !important;
  font-weight: 600 !important;
}

.chatbot-close-btn {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  padding: 4px !important;
  font-size: 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s !important;
}

.chatbot-close-btn:hover {
  color: var(--text) !important;
}

/* Message Area */
.chatbot-messages {
  flex-grow: 1 !important;
  padding: 16px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.chatbot-msg-row {
  display: flex !important;
  width: 100% !important;
}

.chatbot-msg-row.user {
  justify-content: flex-end !important;
}

.chatbot-msg-bubble {
  max-width: 80% !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 0.86rem !important;
  line-height: 1.4 !important;
}

.chatbot-msg-row.assistant .chatbot-msg-bubble {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-bottom-left-radius: 2px !important;
  border: 1px solid var(--border) !important;
}

.chatbot-msg-row.user .chatbot-msg-bubble {
  background: var(--accent) !important;
  color: white !important;
  border-bottom-right-radius: 2px !important;
}

/* Footer Input */
.chatbot-footer {
  padding: 12px 16px !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--surface) !important;
}

.chatbot-input {
  flex-grow: 1 !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  padding: 10px 14px !important;
  border-radius: 20px !important;
  font-size: 0.86rem !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}

.chatbot-input:focus {
  border-color: var(--accent) !important;
}

.chatbot-send-btn {
  background: var(--accent) !important;
  border: none !important;
  color: white !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  flex-shrink: 0 !important;
}

.chatbot-send-btn:hover {
  background: #554eff !important;
}

.chatbot-send-btn i,
.chatbot-send-btn svg {
  width: 16px !important;
  height: 16px !important;
}

/* --- AI Mascot Chatbot Toggle Overrides --- */
.chatbot-toggle-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #8A2387 0%, #E94057 50%, #F27121 100%) !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  padding: 4px !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  animation: rayPulse 3s infinite ease-in-out !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.15) rotate(8deg) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 30px rgba(233, 64, 87, 0.8), 0 0 60px rgba(242, 113, 33, 0.6) !important;
}

.chatbot-toggle-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: rgba(20, 20, 30, 0.9) !important;
  transition: transform 0.3s ease !important;
}

.chatbot-toggle-btn:hover img {
  transform: scale(1.05) !important;
}

@keyframes rayPulse {
  0% {
    box-shadow: 0 0 12px rgba(233, 64, 87, 0.4), 0 0 24px rgba(242, 113, 33, 0.2);
  }
  50% {
    box-shadow: 0 0 24px rgba(233, 64, 87, 0.8), 0 0 48px rgba(242, 113, 33, 0.6);
  }
  100% {
    box-shadow: 0 0 12px rgba(233, 64, 87, 0.4), 0 0 24px rgba(242, 113, 33, 0.2);
  }
}

/* --- Certifications Page Custom Styles --- */
.challenges-page .topbar {
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 24px !important;
  margin-bottom: 24px !important;
}

.challenges-page .topbar h1 {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 8px !important;
  background: linear-gradient(135deg, var(--text) 30%, var(--muted) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.challenges-page .topbar p {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  max-width: 800px !important;
}

.challenge-tabs-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 12px !important;
  margin-bottom: 32px !important;
  width: 100% !important;
  margin-top: 12px !important;
}

/* Tabs */
.challenge-tabs {
  display: flex !important;
  gap: 8px !important;
}

.challenge-tabs button {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  position: relative !important;
  transition: color 0.2s !important;
  border-radius: 6px !important;
}

.challenge-tabs button:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.challenge-tabs button.active {
  color: var(--accent-soft) !important;
  background: rgba(108, 99, 255, 0.08) !important;
}

.challenge-tabs button.active::after {
  content: "" !important;
  position: absolute !important;
  bottom: -13px !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: var(--accent) !important;
  border-top-left-radius: 3px !important;
  border-top-right-radius: 3px !important;
}

/* Grid Layout */
.challenge-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 20px !important;
}

/* Card Styling */
.challenge-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  transition: all 0.2s ease !important;
}

.challenge-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--accent-soft) !important;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.1) !important;
}

.challenge-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.challenge-brand-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  flex-shrink: 0 !important;
}

.challenge-card-body {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  text-align: left !important;
}

.challenge-card-body h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 0 !important;
}

.challenge-card-body p {
  font-size: 0.84rem !important;
  color: var(--muted) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.challenge-meta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  margin-top: 4px !important;
}

/* --- Concentric Radar Pulse Rings (Always Visible) --- */
.chatbot-toggle-btn::before,
.chatbot-toggle-btn::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 50% !important;
  border: 1px solid rgba(108, 99, 255, 0.5) !important;
  pointer-events: none !important;
  z-index: -1 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transition: all 0.3s ease !important;
}

.chatbot-toggle-btn::before {
  animation: radarPulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite !important;
}

.chatbot-toggle-btn::after {
  animation: radarPulseOuter 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite !important;
  animation-delay: 1.5s !important;
}

.chatbot-toggle-btn:hover::before {
  border-color: rgba(0, 210, 255, 0.8) !important;
}

.chatbot-toggle-btn:hover::after {
  border-color: rgba(255, 0, 127, 0.8) !important;
}

@keyframes radarPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.3) !important;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0) !important;
  }
}

@keyframes radarPulseOuter {
  0% {
    transform: scale(1);
    opacity: 0.7;
    box-shadow: 0 0 6px rgba(108, 99, 255, 0.2) !important;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
    box-shadow: 0 0 24px rgba(108, 99, 255, 0) !important;
  }
}

/* --- Search Input Clear Button --- */
.top-bar-search-clear {
  position: absolute !important;
  right: 12px !important;
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
}

.top-bar-search-clear:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.top-bar-search-clear.hidden {
  display: none !important;
}

/* --- Search Dropdown Bounds (No Full Width) --- */
.top-search-results {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  width: 320px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  margin-top: 8px !important;
  z-index: 1020 !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  padding: 6px 0 !important;
}

/* --- Global Sticky Footer --- */
.app-footer {
  position: relative !important;
  margin-top: auto !important;
  padding: 16px 24px !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: var(--surface) !important;
  z-index: 100 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.footer-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.footer-links a,
.footer-dropdown-trigger {
  color: #c5c5d2 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  transition: color 0.2s ease !important;
  font-family: inherit !important;
}

.footer-links a:hover,
.footer-dropdown-trigger:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Footer Dropdown */
.footer-dropdown {
  position: relative !important;
}

.footer-dropdown-menu {
  position: absolute !important;
  bottom: 100% !important;
  left: 0 !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3) !important;
  padding: 6px 0 !important;
  margin-bottom: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 150px !important;
  z-index: 1020 !important;
}

.footer-dropdown-menu.hidden {
  display: none !important;
}

.footer-dropdown-menu a {
  padding: 8px 16px !important;
  color: var(--muted) !important;
  text-align: left !important;
  font-size: 0.8rem !important;
  white-space: nowrap !important;
  transition: all 0.2s !important;
}

.footer-dropdown-menu a:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.footer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 4px !important;
}

.footer-brand img,
.footer-logo {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.8 !important;
}

.footer-brand span {
  font-size: 12px !important;
  color: #8c8c9a !important;
}

/* --- Certification Section Subdivisions --- */
.certification-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  text-align: left !important;
}

.certification-section-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  letter-spacing: -0.02em !important;
  display: flex !important;
  align-items: center !important;
  border-left: 3px solid var(--accent) !important;
  padding-left: 12px !important;
  margin-top: 12px !important;
  margin-bottom: 4px !important;
}

.certification-subgrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}

#challengeGrid {
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  width: 100% !important;
}

.app-shell {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100vh - 120px) !important;
  box-sizing: border-box !important;
  padding-bottom: 24px !important;
  position: relative !important;
  z-index: 10 !important;
}

/* --- Footer Bullet Separator --- */
.footer-dot {
  color: #707080 !important;
  font-size: 13px !important;
  opacity: 0.8 !important;
  margin: 0 4px !important;
}

/* --- Margins-Only Floating Connection Graph --- */
.network-bg-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.about-network-svg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  opacity: 0.45 !important;
}

.network-node {
  position: absolute !important;
  width: 48px !important;
  height: 48px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent-soft) !important;
  opacity: 0.28 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s ease !important;
  pointer-events: none !important;
}

.network-node i,
.network-node svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 1.5 !important;
}

@media (max-width: 900px) {
  .network-bg-container {
    display: none !important;
  }
}

/* Custom states for session room control buttons (Purple for active/on, Grey/Muted for off, Red for Cut Call) */
.meeting-control#speakButton.recording-state,
.meeting-control#cameraButton:not(.off),
.meeting-control#pauseButton,
.meeting-control#settingsButton {
  background: rgba(108, 99, 255, 0.15) !important;
  border-color: rgba(108, 99, 255, 0.4) !important;
  color: #6c63ff !important;
}

.meeting-control#speakButton:not(.recording-state),
.meeting-control#cameraButton.off {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(108, 99, 255, 0.16) !important;
  color: var(--text-muted) !important;
}

html[data-theme="light"] .meeting-control#speakButton:not(.recording-state),
html[data-theme="light"] .meeting-control#cameraButton.off {
  background: rgba(15, 23, 42, 0.085) !important;
  border-color: rgba(108, 99, 255, 0.16) !important;
  color: var(--text-muted) !important;
}

.meeting-control#endButton {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}
.meeting-control#endButton:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* Quick action links styling (adapted for dark/light themes) */
.action-btn-large {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.action-btn-large.primary-action {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.25);
  color: #ffffff !important;
}

.action-btn-large.primary-action p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.action-btn-large.primary-action .action-icon-wrap {
  background: rgba(255, 255, 255, 0.12);
  padding: 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.action-btn-large.secondary-action {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: var(--text) !important;
}

.action-btn-large.secondary-action p {
  color: var(--muted) !important;
}

.action-btn-large.secondary-action .action-icon-wrap {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

/* --- Certification Card Thumbnails --- */
.challenge-card-thumbnail {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  margin-bottom: 4px !important;
}

.challenge-card-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.challenge-card:hover .challenge-card-thumbnail img {
  transform: scale(1.06) !important;
}

/* ==========================================================================
   === Mobile Responsive (additive) ===
   Overrides below apply ONLY at <=768px (plus a base rule for the JS-created
   .mobile-sidebar-backdrop element). They are appended at the end of the
   file so they win the cascade against the unconditional !important rules
   above (e.g. body.has-sidebar padding and sidebar display), which otherwise
   leak the desktop sidebar layout into mobile. Desktop (>768px) is
   unaffected.
   ========================================================================== */

/* Backdrop element created by the additive drawer script in app.js.
   Hidden by default; only activated inside the <=768px block below. */
.mobile-sidebar-backdrop {
  display: none;
}

@media (max-width: 768px) {
  /* Neutralize desktop sidebar layout on phones */
  body.has-sidebar {
    padding-left: 0 !important;
    padding-top: 60px !important;
  }

  body.has-sidebar.sidebar-collapsed {
    padding-left: 0 !important;
  }

  /* Sticky top bar: tighter spacing so brand + actions fit a 375px screen */
  .app-top-bar {
    padding: 0 12px !important;
  }

  .top-bar-left {
    gap: 10px !important;
  }

  .top-bar-right {
    gap: 6px !important;
  }

  /* Expanding top-bar search must not push the bar wider than the screen */
  .top-bar-search-container.expanded {
    width: min(280px, calc(100vw - 190px)) !important;
  }

  .app-top-bar:has(.top-bar-search-container.expanded) .top-bar-brand span {
    display: none !important;
  }

  .top-search-results {
    width: min(320px, calc(100vw - 24px)) !important;
  }

  /* ------------------------------------------------------------------
     Mobile nav drawer = the REAL page sidebar (.bottom-nav.sidebar-nav),
     so every desktop item (groups, Highlights dropdown, Web Tour,
     Profile) is available on phones. It slides in off-canvas when the
     additive script in app.js toggles body.mobile-sidebar-open.
     The injected 6-item .mobile-nav-drawer stays hidden (redundant).
     ------------------------------------------------------------------ */
  .mobile-nav-drawer,
  .mobile-drawer-backdrop,
  .mobile-nav-header {
    display: none !important;
  }

  .bottom-nav.sidebar-nav,
  .bottom-nav.sidebar-nav.collapsed {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(300px, 84vw) !important;
    height: 100vh !important;
    padding: 24px 20px !important;
    border: none !important;
    border-right: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: var(--surface) !important;
    overflow-y: auto !important;
    z-index: 1060 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    gap: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.mobile-sidebar-open .bottom-nav.sidebar-nav,
  body.mobile-sidebar-open .bottom-nav.sidebar-nav.collapsed {
    transform: translateX(0) !important;
  }

  body.mobile-sidebar-open .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1055;
  }

  /* Sidebar item styling on mobile (mirrors the desktop >=769px rules,
     which do not apply at this breakpoint) */
  .bottom-nav.sidebar-nav .sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 28px !important;
    padding: 0 8px !important;
    text-decoration: none !important;
  }

  .bottom-nav.sidebar-nav .sidebar-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
  }

  .bottom-nav.sidebar-nav .sidebar-group-title {
    display: block !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
    letter-spacing: 0.1em !important;
    padding: 0 12px 6px !important;
  }

  .bottom-nav.sidebar-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    color: var(--muted) !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    gap: 12px !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    margin: 0 !important;
  }

  .bottom-nav.sidebar-nav a i,
  .bottom-nav.sidebar-nav a svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    color: var(--muted) !important;
  }

  .bottom-nav.sidebar-nav a span {
    display: inline !important;
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
  }

  .bottom-nav.sidebar-nav a span::after {
    display: none !important;
  }

  .bottom-nav.sidebar-nav a.active {
    color: #fff !important;
    background: rgba(108, 99, 255, 0.1) !important;
    border: 1px solid rgba(108, 99, 255, 0.25) !important;
    font-weight: 600 !important;
  }

  .bottom-nav.sidebar-nav a.active i,
  .bottom-nav.sidebar-nav a.active svg {
    color: var(--accent-soft) !important;
  }

  .bottom-nav.sidebar-nav .sidebar-footer {
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border) !important;
    width: 100% !important;
  }

  /* Keep the drawer fully expanded even when the desktop "collapsed"
     state is active (same button toggles it; no visual effect here) */
  .bottom-nav.sidebar-nav.collapsed .sidebar-brand span,
  .bottom-nav.sidebar-nav.collapsed a span,
  .bottom-nav.sidebar-nav.collapsed button span {
    display: inline !important;
  }

  .bottom-nav.sidebar-nav.collapsed .sidebar-group-title {
    display: block !important;
  }

  .bottom-nav.sidebar-nav.collapsed .dropdown-arrow {
    display: inline-block !important;
  }

  .bottom-nav.sidebar-nav.collapsed .sidebar-submenu {
    display: flex !important;
  }

  .bottom-nav.sidebar-nav.collapsed a {
    justify-content: flex-start !important;
    padding: 10px 14px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .bottom-nav.sidebar-nav.collapsed .sidebar-dropdown-toggle-left {
    justify-content: flex-start !important;
    width: auto !important;
  }

  /* ------------------------------------------------------------------
     Jobs page: the fullscreen job-details overlay referenced the
     undefined var(--background) (the variable is --bg), so it rendered
     transparent with the list showing through. Give it a solid themed
     background and start it below the fixed 60px top bar.
     ------------------------------------------------------------------ */
  .job-details-pane {
    background: var(--bg) !important;
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    padding: 20px 16px !important;
    z-index: 1030 !important;
  }

  /* The .reveal-up entrance animation (fill: both) permanently retains a
     transform on the jobs section, which makes it the containing block for
     the fixed details pane (pane then floats mid-page and scrolls with the
     list). Release the transform while the details view is open — the
     entrance animation has long finished by the time a job is tapped. */
  .scenario-section:has(.jobs-split-container.show-details) {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  /* ------------------------------------------------------------------
     Home page alignment
     ------------------------------------------------------------------ */
  /* Overall Score / Streak / Weekly Activity: one compact row of three
     instead of three stacked full-width cards */
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .hero-metrics a.metric-card-interactive {
    padding: 12px 6px !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
  }

  .hero-metrics a.metric-card-interactive > span {
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
  }

  .radial-progress-wrap {
    width: 64px !important;
    height: 64px !important;
    margin: 4px auto 0 !important;
  }

  #readiness,
  #streak {
    font-size: 0.9rem !important;
  }

  .numeric-display-wrap {
    height: 64px !important;
    margin-top: 4px !important;
  }

  #homeWeeklySessions {
    font-size: 1.5rem !important;
  }

  .home-hero {
    padding: 20px 16px !important;
    gap: 18px !important;
  }

  /* The typewriter headline container reserves 205-245px on small screens
     but the rotating lines need ~100px at this width, leaving a large hole
     between the title and the copy below it */
  .hero-title-container {
    min-height: 104px !important;
    margin-bottom: 10px !important;
  }

  #homeMissionCarouselPanel,
  .ai-coach-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .quick-action-links {
    gap: 12px !important;
  }

  /* Quick-action tiles stack full width instead of forcing 250px columns */
  .action-btn-large {
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  /* ------------------------------------------------------------------
     Dashboard (Highlights): charts and bar grids. The markup sets
     grid-template-columns inline (repeat(3,1fr) / 1fr 1fr), so these
     need !important to stack on phones.
     ------------------------------------------------------------------ */
  .chart-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .growth-comparison-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .radar-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .stats-counter-row {
    gap: 8px !important;
  }

  .chart-header-row {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .skills-donut-layout {
    gap: 20px !important;
  }

  /* Responsive Certifications Layout overrides */
  .challenge-tabs-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
  }

  .challenge-tabs {
    overflow-x: auto !important;
    width: 100% !important;
    white-space: nowrap !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    border-bottom: 1px solid var(--border-soft) !important;
  }

  .challenge-tabs button {
    flex: 0 0 auto !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
  }

  .challenge-search-box {
    width: 100% !important;
  }

  .challenge-search-box input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}





