/* ==========================================================================
   CV DOST — INTERACTIVE AI RESUME BUILDER (SLEEK DARK OBSIDIAN THEME)
   Unified Dark Theme matching Dashboard & Mock Interview
   ========================================================================== */

:root {
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bg-app: #090D14;
  --bg-canvas: #090D14;
  --bg-card: #0E131F;
  --bg-card-subtle: #121826;
  --bg-input: #101522;
  --bg-preview-desk: #080A0F;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-light: rgba(255, 255, 255, 0.12);

  --accent-blue: #2563EB;
  --accent-blue-hover: #1D4ED8;
  --accent-blue-soft: rgba(37, 99, 235, 0.15);
  --accent-blue-border: rgba(37, 99, 235, 0.35);

  --text-white: #FFFFFF;
  --text-heading: #F0F6FC;
  --text-main: #F0F6FC;
  --text-body: #C4C7C5;
  --text-muted: #8B949E;
  --text-dim: #64748B;
  --text-light: #64748B;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-sheet: 0 18px 48px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

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

html,
body {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.builder-app-body {
  display: flex;
  flex-direction: column;
}

/* ── 1. Top Navbar ── */
.builder-top-navbar {
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  flex-shrink: 0;
  background: #090D14;
  border-bottom: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  z-index: 20;
}

.nav-center-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-hero-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-hero-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: #C4C7C5;
  letter-spacing: -0.1px;
  line-height: 1.2;
}

.nav-hero-subtitle {
  font-size: 0.74rem;
  color: #64748B;
  line-height: 1.2;
}

.hero-brand-link {
  text-decoration: none;
  display: inline-block;
}

.hero-brand-link:hover .hero-title {
  color: #93C5FD;
}

.nav-left-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent-blue);
  border-radius: 8px;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

/* ── Back to Dashboard Button (Subtle, Compact & Page-Themed) ── */
.btn-back-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-back-dashboard svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-back-dashboard:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.btn-back-dashboard:hover svg {
  color: #FFFFFF;
  transform: translateX(-2px);
}

.btn-back-dashboard:active {
  transform: scale(0.97);
}

.nav-right-section {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
}

.user-nav-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-profile-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.user-email-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: #F1F5F9;
  line-height: 1.25;
}

.user-tier-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 2px;
}

.btn-logout-link,
.btn-nav-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s ease;
  font-family: inherit;
}

.btn-logout-link:hover,
.btn-nav-logout:hover {
  color: #F87171;
}

.btn-nav-login {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.btn-export-pdf,
.btn-primary-action {
  position: relative;
  overflow: hidden;
  background: var(--accent-blue);
  color: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  font-family: inherit;
}

.btn-export-pdf:hover:not(:disabled),
.btn-primary-action:hover:not(:disabled) {
  background: var(--accent-blue-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.btn-export-pdf:active:not(:disabled),
.btn-primary-action:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-export-pdf:disabled,
.btn-primary-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.export-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* ── Creative Unlocked State Animation for Export PDF Button ── */
.btn-export-pdf.unlocked-ready {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 35%, #0284C7 70%, #1D4ED8 100%);
  background-size: 250% 250%;
  border-color: rgba(147, 197, 253, 0.45);
  animation: unlockedGradientShift 5s ease infinite,
    unlockedAuraBreath 2.6s ease-in-out infinite alternate,
    unlockedPopCelebration 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1;
}

/* Specular diagonal shimmer streak */
.btn-export-pdf.unlocked-ready::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 20%,
      rgba(255, 255, 255, 0.7) 50%,
      rgba(255, 255, 255, 0.1) 80%,
      transparent 100%);
  transform: rotate(25deg);
  pointer-events: none;
  animation: unlockedLightSweep 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Animated micro-nudge for the download arrow icon */
.btn-export-pdf.unlocked-ready .export-icon {
  animation: unlockedIconBounce 2s ease-in-out infinite;
}

@keyframes unlockedPopCelebration {
  0% {
    transform: scale(0.92);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes unlockedGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes unlockedAuraBreath {
  0% {
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35),
      0 0 10px rgba(37, 99, 235, 0.4),
      0 4px 14px rgba(0, 0, 0, 0.35);
  }

  100% {
    box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.7),
      0 0 22px rgba(56, 189, 248, 0.65),
      0 8px 24px rgba(37, 99, 235, 0.45);
  }
}

@keyframes unlockedLightSweep {

  0%,
  15% {
    left: -75%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  48%,
  100% {
    left: 140%;
    opacity: 0;
  }
}

@keyframes unlockedIconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(2.5px);
  }

  55% {
    transform: translateY(-1px);
  }

  75% {
    transform: translateY(1.5px);
  }
}

/* ── 2. Page Sub-Header Hero Banner ── */
.builder-hero-banner {
  padding: 18px 32px 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg-app);
}

.hero-text-block {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-progress-block {
  width: 280px;
  display: flex;
  flex-direction: column;
}

.progress-info-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 8px;
}

.progress-title-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #808080;
}

.completion-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.completion-fill {
  height: 100%;
  width: 0%;
  background: #2EB4FA;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(46, 180, 250, 0.35);
}

.progress-bottom-row {
  display: none !important;
}

.progress-indicator-anchor {
  display: flex;
  justify-content: flex-end;
  min-width: 32px;
  transition: width 0.4s ease;
}

.progress-percent-val {
  font-size: 0.78rem;
  font-weight: 500;
  color: #F6F6F6;
  line-height: 1.2;
}

/* ── Mobile View Tabs ── */
.mobile-view-tabs {
  display: none;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 14px;
  gap: 8px;
  flex-shrink: 0;
  min-height: 48px;
  height: auto;
  box-sizing: border-box;
}

.mobile-tab-btn {
  flex: 1;
  padding: 6px 10px;
  min-height: 36px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.mobile-tab-btn.active {
  background: var(--accent-blue-soft);
  color: #60A5FA;
  border: 1px solid var(--accent-blue-border);
}

/* ── 3. Main Workspace Grid ── */
.builder-workspace-grid,
.builder-workspace {
  padding: 0 32px 20px 32px;
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 20px;
  flex: 1 1 0%;
  min-height: 0;
  max-height: calc(100dvh - 150px);
  overflow: hidden;
  background: var(--bg-app);
}

/* ── LEFT PANE: Chat with Dost ── */
.chat-card-pane,
.chat-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

/* ── Modern AI Chatbot Header ── */
.chat-pane-header.modern-ai-header,
.chat-pane-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #181C28;
}

.chat-header-back-btn,
.chat-header-menu-btn {
  background: transparent;
  border: none;
  color: #8F9CAE;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.chat-header-back-btn:hover,
.chat-header-menu-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.chat-header-center-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chat-header-bot-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.chat-header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 3px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* ── Onboarding State Visibility Toggling ── */
.chat-card-pane.onboarding-active .chat-messages,
.chat-card-pane.onboarding-active .quick-start-section,
.chat-card-pane.onboarding-active .chat-modern-composer {
  display: none !important;
}

.chat-card-pane.onboarding-active .chat-header-back-btn {
  opacity: 0.25;
  pointer-events: none;
}

.chat-card-pane:not(.onboarding-active) .chat-onboarding-screen {
  display: none !important;
}

/* ── Onboarding Welcome Screen ── */
.chat-onboarding-screen {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: #181C28;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
}

.chat-onboarding-robot-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  width: 100%;
}

.robot-glow-backdrop {
  position: absolute;
  width: 290px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(251, 191, 36, 0.1) 45%, rgba(52, 211, 153, 0.08) 70%, transparent 85%);
  filter: blur(24px);
  pointer-events: none;
}

/* ── Animated Theme Scene ── */
.onboarding-animated-scene {
  width: 290px;
  max-width: 92%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
  overflow: visible;
}

/* 1. Robot inside Phone Floating & Waving Animation */
.anim-scene-robot {
  transform-box: fill-box;
  transform-origin: center;
  animation: sceneRobotFloat 3.8s ease-in-out infinite alternate;
}

@keyframes sceneRobotFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }

  100% {
    transform: translateY(-15px) rotate(-0.8deg);
  }
}

/* 2. Human Character Breathing & Thumbs-Up Sway */
.anim-scene-human {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: sceneHumanSway 4.2s ease-in-out infinite alternate;
}

@keyframes sceneHumanSway {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.015);
  }

  100% {
    transform: translateY(-7px) scale(1.02);
  }
}

/* 3. Idea Lightbulb Glowing & Pulsing Inspiration */
.anim-scene-bulb {
  transform-box: fill-box;
  transform-origin: center;
  animation: sceneBulbPulse 2.4s ease-in-out infinite alternate;
}

@keyframes sceneBulbPulse {
  0% {
    transform: scale(0.96) translateY(0px);
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3));
  }

  50% {
    transform: scale(1.06) translateY(-6px);
    filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.85));
  }

  100% {
    transform: scale(1.02) translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
  }
}

/* 4. Golden Gears Spinning */
.anim-scene-gears {
  transform-box: fill-box;
  transform-origin: center;
  animation: sceneGearsSpin 14s linear infinite;
}

@keyframes sceneGearsSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 5. Checkmark Badge Pop */
.anim-scene-check {
  transform-box: fill-box;
  transform-origin: center;
  animation: sceneCheckBounce 3s ease-in-out infinite alternate;
}

@keyframes sceneCheckBounce {
  0% {
    transform: scale(0.94) translateY(0px);
  }

  50% {
    transform: scale(1.08) translateY(-5px);
  }

  100% {
    transform: scale(1.02) translateY(-2px);
  }
}

/* 6. Floating Message Bubbles with Independent Drifts */
.anim-scene-msg {
  transform-box: fill-box;
  transform-origin: center;
}

.anim-msg-tl {
  animation: sceneBubbleFloat1 3.2s ease-in-out infinite alternate;
}

@keyframes sceneBubbleFloat1 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(-1.5deg);
  }

  100% {
    transform: translateY(-13px) rotate(1deg);
  }
}

.anim-msg-ml {
  animation: sceneBubbleFloat2 3.6s ease-in-out 0.4s infinite alternate;
}

@keyframes sceneBubbleFloat2 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-9px) rotate(1.2deg);
  }

  100% {
    transform: translateY(-16px) rotate(-0.8deg);
  }
}

.anim-msg-tr {
  animation: sceneBubbleFloat3 3.4s ease-in-out 0.8s infinite alternate;
}

@keyframes sceneBubbleFloat3 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }

  100% {
    transform: translateY(-14px) rotate(-1deg);
  }
}

.anim-msg-mr {
  animation: sceneBubbleFloat4 3.9s ease-in-out 0.2s infinite alternate;
}

@keyframes sceneBubbleFloat4 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(-1.2deg);
  }

  100% {
    transform: translateY(-13px) rotate(1deg);
  }
}

.anim-msg-br {
  animation: sceneCardFloat 4.1s ease-in-out 0.6s infinite alternate;
}

@keyframes sceneCardFloat {
  0% {
    transform: translateY(0px) scale(0.98);
  }

  50% {
    transform: translateY(-8px) scale(1.03);
  }

  100% {
    transform: translateY(-14px) scale(1);
  }
}

.chat-onboarding-content {
  margin-bottom: 24px;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.chat-onboarding-title {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.3px;
  margin: 0 0 10px 0;
}

.chat-onboarding-desc {
  color: #8F9CAE;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

.chat-onboarding-action {
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-start-conversation {
  background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 100%);
  color: #090D14;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 13px 28px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-start-conversation:hover {
  background: linear-gradient(135deg, #7DD3FC 0%, #93C5FD 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5);
}

.btn-start-conversation:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

/* ── Modern Chat Messages ── */
.chat-messages {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #181C28;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

/* Message Rows */
.modern-chat-msg-row {
  display: flex;
  width: 100%;
  animation: msgRowEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes msgRowEntrance {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bot Message Stream */
.modern-chat-msg-row.bot {
  gap: 12px;
  align-items: flex-start;
}

.bot-sparkle-col,
.bot-avatar-col {
  width: 32px;
  flex-shrink: 0;
  padding-top: 2px;
}

.writing-hand-avatar-wrapper {
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #0E131F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.writing-hand-avatar-video,
.writing-hand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 43%;
  display: block;
  pointer-events: none;
}

/* Active writing indicator state: plays video with active cyan edge glow */
.writing-hand-avatar-wrapper.is-writing,
#typing-indicator-row .writing-hand-avatar-wrapper {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.sparkle-icon {
  display: block;
}

.sparkle-icon.pulse {
  animation: sparklePulse 1.5s infinite ease-in-out;
}

@keyframes sparklePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.bot-body-col {
  flex: 1;
  min-width: 0;
}

.bot-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.view-drafts-tag {
  font-size: 0.8rem;
  color: #60A5FA;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.01em;
}

.drafts-arrow {
  font-size: 0.68rem;
}

.icon-tool-btn,
.speaker-tool-btn {
  background: transparent;
  border: none;
  color: #8F9CAE;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.icon-tool-btn:hover,
.speaker-tool-btn:hover {
  color: #FFFFFF;
}

.bot-rich-content {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #CBD5E1;
  word-break: break-word;
}

.bot-rich-content strong {
  color: #FFFFFF;
  font-weight: 600;
}

.bot-rich-content p {
  margin-bottom: 12px;
}

.bot-sub-section {
  margin-top: 10px;
}

.bot-section-heading {
  font-size: 0.90rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.bot-query-prompt {
  color: #FFFFFF;
  font-size: 0.88rem;
}

.bot-list-item {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.bot-list-num {
  color: #60A5FA;
  font-weight: 600;
}

.bot-list-text {
  color: #CBD5E1;
}

.bot-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.bot-act-btn {
  background: transparent;
  border: none;
  color: #8F9CAE;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.bot-act-btn:hover {
  color: #FFFFFF;
}

/* User Message Pill */
.modern-chat-msg-row.user {
  justify-content: flex-end;
}

.user-msg-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 88%;
}

.user-bubble-pill {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 20px;
  padding: 8px 16px;
  color: #ECFDF5;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  word-break: break-word;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
}

.user-pencil-icon {
  color: #34D399;
  flex-shrink: 0;
}

.user-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Typing Indicator */
.typing-bubble-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.t-dot {
  width: 7px;
  height: 7px;
  background: #60A5FA;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.5);
}

.t-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.t-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }
}

/* Quick Start Suggestions */
.quick-start-section {
  padding: 8px 18px 4px 18px;
  flex-shrink: 0;
  background: #181C28;
  position: relative;
  z-index: 5;
}

.quick-start-heading {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.quick-start-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.suggestion-chip {
  background: #222736;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #CBD5E1;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.suggestion-chip:hover {
  border-color: #60A5FA;
  color: #FFFFFF;
  background: rgba(96, 165, 250, 0.15);
}

/* ── Modern Floating Composer ── */
.chat-modern-composer {
  padding: 10px 18px 16px 18px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  background: #181C28;
  position: relative;
  z-index: 10;
}

.chat-input-pill-wrapper {
  flex: 1;
  min-height: 48px;
  max-height: 140px;
  background: #222736;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 4px 16px;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  overflow: hidden;
}

.chat-input-pill-wrapper:focus-within {
  border-color: #60A5FA;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

.chat-pill-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-family: inherit;
  resize: none;
  line-height: 1.45;
  min-height: 24px;
  max-height: 110px;
  padding: 8px 0;
  margin: 0;
  box-sizing: border-box;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.chat-pill-input::-webkit-scrollbar {
  width: 5px;
}

.chat-pill-input::-webkit-scrollbar-track {
  background: transparent;
}

.chat-pill-input::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 10px;
}

.chat-pill-input::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.chat-pill-input::placeholder {
  color: #8F9CAE;
}

.btn-pill-mic {
  background: transparent;
  border: none;
  color: #8F9CAE;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.btn-pill-mic:hover {
  color: #60A5FA;
}

.chat-pill-send-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.chat-pill-send-action-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

.chat-pill-send-action-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.chat-pill-send-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── RIGHT PANE: Live ATS Resume Preview ── */
.preview-card-pane,
.preview-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.preview-top-toolbar,
.preview-toolbar {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: var(--bg-card);
}

.preview-mode-switch {
  background: var(--bg-card-subtle);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  display: inline-flex;
  gap: 2px;
}

.preview-mode-pill {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.preview-mode-pill.active {
  background: #1B253B;
  color: #FFFFFF;
  font-weight: 600;
}

.template-selector-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.template-selector-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.template-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.builder-template-select {
  background: var(--bg-card-subtle);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  border-radius: 8px;
  padding: 6px 28px 6px 12px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.builder-template-select:hover,
.builder-template-select:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.dropdown-chevron-icon {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* Desk Viewport */
.preview-canvas-viewport,
.preview-canvas {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-preview-desk);
  padding: 28px 20px;
  display: flex;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.preview-canvas-viewport::-webkit-scrollbar,
.preview-canvas::-webkit-scrollbar {
  width: 6px;
}

.preview-canvas-viewport::-webkit-scrollbar-thumb,
.preview-canvas::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

/* ── Canvas Welcome Overlay (Right Pane Before Start) ── */
.preview-card-pane.onboarding-active #resume-sheet {
  display: none !important;
}

.preview-card-pane:not(.onboarding-active) .preview-welcome-overlay {
  display: none !important;
}

.preview-card-pane.onboarding-active .preview-canvas-viewport {
  padding: 0 !important;
  background: #171E2B !important;
}

.preview-welcome-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 36px 28px;
  background: #171E2B;
  overflow-y: auto;
}

.welcome-card-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 660px;
  width: 100%;
  text-align: center;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: welcomeCardEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes welcomeCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-canvas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 9999px;
  padding: 5px 14px;
  color: #38BDF8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Mini Resume Mockup Animation / Video */
.welcome-canvas-hero-illustration {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Hero Video Illustration in Canvas Welcome Overlay ── */
.canvas-video-glow-backdrop {
  display: none;
}

.canvas-video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: none;
  outline: none;
  -webkit-mask-image: radial-gradient(ellipse 96% 90% at 50% 46%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 90% at 50% 46%, #000 70%, transparent 100%);
}

.welcome-canvas-title {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.2px;
  margin: 0 0 12px 0;
}

.welcome-canvas-desc {
  color: #8F9CAE;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 26px 0;
}

.welcome-feature-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.welcome-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #CBD5E1;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.welcome-feature-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

font-weight: 500;
}

.welcome-feature-pill .feat-icon {
  font-size: 0.8rem;
}

/* White A4 Resume Simulator Sheet */
.resume-sheet {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  width: 100%;
  max-width: 740px;
  min-height: 980px;
  box-shadow: var(--shadow-sheet);
  border-radius: 2px;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  transform-origin: top center;
  transition: transform 0.2s ease;
  height: fit-content;
}

/* Live Preview Watermark: Big diagonal watermark across preview canvas, hidden on print/download */
.resume-sheet::before {
  content: "CV DOST • PREVIEW";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(3.2rem, 7.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: rgba(99, 102, 241, 0.14);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 10;
  text-transform: uppercase;
}

@media print {
  .resume-sheet::before {
    display: none !important;
  }
}

/* Sheet Footer: Draft Watermark & Page Count */
.sheet-footer-draft {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8pt;
  color: #94A3B8;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.draft-tag {
  text-transform: uppercase;
}

.draft-page {
  font-family: inherit;
}

/* Bottom Status & Controls Bar */
.preview-bottom-bar {
  padding: 10px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: var(--bg-card);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.layout-status-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.layout-status-text {
  color: var(--text-muted);
}

.layout-status-dot {
  color: var(--text-dim);
}

.layout-status-sub {
  color: var(--text-muted);
}

.preview-controls-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.page-count-display {
  color: var(--text-muted);
}

.zoom-stepper-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-step-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
  font-family: inherit;
}

.zoom-step-btn:hover {
  color: #FFFFFF;
}

.zoom-level-display {
  color: #CBD5E1;
  font-weight: 500;
  font-size: 0.76rem;
  min-width: 32px;
  text-align: center;
}

/* Resume Document Styling (ATS-Approved Clean Single Column) */
.res-header {
  border-bottom: 2px solid #111827;
  padding-bottom: 14px;
  margin-bottom: 18px;
  text-align: center;
}

.res-name {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0F172A;
}

.res-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #4B5563;
}

.res-contact span:not(:last-child)::after {
  content: "•";
  margin-left: 16px;
  color: #9CA3AF;
}

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

.res-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid #D1D5DB;
  padding-bottom: 3px;
  margin-bottom: 10px;
  color: #1F2937;
}

/* Placeholder Empty States */
.empty-placeholder {
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  color: #94A3B8;
  font-size: 0.82rem;
  font-style: italic;
  background: #F8FAFC;
}

/* Entries Styling */
.res-entry {
  margin-bottom: 10px;
}

.res-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0F172A;
}

.res-entry-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #4B5563;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.res-entry ul {
  padding-left: 18px;
  margin-top: 4px;
}

.res-entry li {
  font-size: 0.82rem;
  color: #374151;
  margin-bottom: 2px;
}

.res-skill-group {
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.res-skill-label {
  font-weight: 600;
  color: #1F2937;
}

/* ==========================================================================
   Dynamic Template Themes (Live Parity with PDF Engine)
   ========================================================================== */

/* ── Template 1: Software Engineer ATS Theme (Times + Calibri + Deep Indigo) ── */
.resume-sheet.theme-software-engineer,
.resume-sheet.theme-ivy {
  font-family: Calibri, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #000000;
  line-height: 1.26;
}

.resume-sheet.theme-software-engineer .candidate-name,
.resume-sheet.theme-ivy .candidate-name {
  font-family: 'Times New Roman', Times, 'Times-Roman', serif;
  font-size: 16pt;
  font-weight: bold;
  color: #2C2D92;
  margin: 0 0 3pt 0;
  line-height: 1.15;
  text-transform: none;
  text-align: left;
}

.resume-sheet.theme-software-engineer table.contact-table,
.resume-sheet.theme-ivy table.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4pt;
}

.resume-sheet.theme-software-engineer table.contact-table td,
.resume-sheet.theme-ivy table.contact-table td {
  font-size: 9.3pt;
  padding: 1.5pt 0;
  vertical-align: middle;
  color: #000000;
  font-family: Arial, Calibri, sans-serif;
}

.resume-sheet.theme-software-engineer .link-purple,
.resume-sheet.theme-ivy .link-purple {
  color: #800080;
  text-decoration: underline;
}

.resume-sheet.theme-software-engineer .link-blue,
.resume-sheet.theme-ivy .link-blue {
  color: #0000EE;
  text-decoration: underline;
}

.resume-sheet.theme-software-engineer .link-dark,
.resume-sheet.theme-ivy .link-dark {
  color: #000000;
  text-decoration: underline;
}

.resume-sheet.theme-software-engineer .section,
.resume-sheet.theme-ivy .section {
  margin-bottom: 4pt;
}

.resume-sheet.theme-software-engineer .section-title,
.resume-sheet.theme-ivy .section-title {
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  font-size: 11pt;
  font-weight: bold;
  text-transform: uppercase;
  color: #463992;
  letter-spacing: 0.5pt;
  margin-top: 6pt;
  margin-bottom: 0;
  padding-bottom: 1pt;
  border-bottom: none;
}

.resume-sheet.theme-software-engineer .section-divider,
.resume-sheet.theme-ivy .section-divider {
  border: none;
  border-bottom: 0.75pt solid #463992;
  margin-top: 1pt;
  margin-bottom: 4pt;
  height: 0;
}

.resume-sheet.theme-software-engineer .skills-line,
.resume-sheet.theme-ivy .skills-line {
  font-size: 9.3pt;
  line-height: 1.25;
  margin-bottom: 1.8pt;
  color: #000000;
}

.resume-sheet.theme-software-engineer .skills-label,
.resume-sheet.theme-ivy .skills-label {
  font-weight: bold;
  color: #000000;
}

.resume-sheet.theme-software-engineer table.row-table,
.resume-sheet.theme-ivy table.row-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1pt;
}

.resume-sheet.theme-software-engineer table.row-table td,
.resume-sheet.theme-ivy table.row-table td {
  padding: 0;
  vertical-align: top;
  font-size: 9.5pt;
}

.resume-sheet.theme-software-engineer .title-left,
.resume-sheet.theme-ivy .title-left {
  text-align: left;
  font-weight: bold;
  color: #2C2D92;
  font-size: 9.5pt;
}

.resume-sheet.theme-software-engineer .meta-tech,
.resume-sheet.theme-ivy .meta-tech {
  font-style: italic;
  font-weight: normal;
  color: #000000;
}

.resume-sheet.theme-software-engineer .meta-pipe,
.resume-sheet.theme-ivy .meta-pipe {
  font-style: normal;
  font-weight: normal;
  color: #000000;
  margin: 0 2pt;
}

.resume-sheet.theme-software-engineer .date-right,
.resume-sheet.theme-ivy .date-right {
  text-align: right;
  color: #000000;
  font-size: 9.5pt;
  white-space: nowrap;
}

.resume-sheet.theme-software-engineer ul.bullets,
.resume-sheet.theme-ivy ul.bullets {
  margin: 1.5pt 0 4pt 0;
  padding-left: 14pt;
  list-style-type: disc;
}

.resume-sheet.theme-software-engineer ul.bullets li,
.resume-sheet.theme-ivy ul.bullets li {
  font-size: 9.3pt;
  line-height: 1.28;
  color: #000000;
  margin-bottom: 2pt;
  text-align: justify;
}

.resume-sheet.theme-software-engineer ul.bullets li strong,
.resume-sheet.theme-ivy ul.bullets li strong {
  font-weight: bold;
  color: #000000;
}

.resume-sheet.theme-software-engineer .edu-inst,
.resume-sheet.theme-ivy .edu-inst {
  font-weight: bold;
  color: #2C2D92;
  font-size: 9.5pt;
}

.resume-sheet.theme-software-engineer .edu-loc,
.resume-sheet.theme-ivy .edu-loc {
  color: #000000;
  font-weight: normal;
}

.resume-sheet.theme-software-engineer .edu-sub,
.resume-sheet.theme-ivy .edu-sub {
  font-size: 9.3pt;
  color: #000000;
  line-height: 1.25;
  margin-top: 1pt;
}

/* ── Template 2: Specialised Tech Placement Theme (Calibri + Clean Dark Lines) ── */
.resume-sheet.theme-specialised {
  font-family: Calibri, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  font-size: 10pt;
  line-height: 1.28;
  color: #000000;
}

.resume-sheet.theme-specialised .header-center {
  text-align: center;
  margin-bottom: 2pt;
}

.resume-sheet.theme-specialised .candidate-name {
  font-size: 16pt;
  font-weight: bold;
  color: #000000;
  margin: 0 0 2pt 0;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
}

.resume-sheet.theme-specialised .candidate-location {
  font-size: 9.5pt;
  color: #000000;
  margin: 0 0 2pt 0;
}

.resume-sheet.theme-specialised .contact-bar {
  font-size: 9pt;
  color: #000000;
  margin: 0 0 4pt 0;
}

.resume-sheet.theme-specialised .contact-bar a {
  color: #000000;
  text-decoration: underline;
}

.resume-sheet.theme-specialised .contact-sep {
  margin: 0 5pt;
  color: #000000;
  display: inline-block;
}

.resume-sheet.theme-specialised .header-divider {
  border: none;
  border-bottom: 1.2pt solid #000000;
  margin: 4pt 0 8pt 0;
  padding: 0;
}

.resume-sheet.theme-specialised .section {
  margin-bottom: 7pt;
}

.resume-sheet.theme-specialised .section-title {
  font-size: 11pt;
  font-weight: bold;
  color: #000000;
  border-bottom: 1pt solid #000000;
  padding-bottom: 1.5pt;
  margin-top: 6pt;
  margin-bottom: 4pt;
  text-transform: none;
  letter-spacing: normal;
}

.resume-sheet.theme-specialised table.row-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1pt;
}

.resume-sheet.theme-specialised table.row-table td {
  padding: 0;
  vertical-align: top;
}

.resume-sheet.theme-specialised .title-left {
  font-weight: bold;
  font-size: 10pt;
  color: #000000;
  text-align: left;
}

.resume-sheet.theme-specialised .date-right {
  font-weight: bold;
  font-size: 9.5pt;
  color: #000000;
  text-align: right;
  white-space: nowrap;
}

.resume-sheet.theme-specialised .sub-left {
  font-style: italic;
  font-size: 9.5pt;
  color: #000000;
  text-align: left;
}

.resume-sheet.theme-specialised .sub-right {
  font-style: italic;
  font-size: 9.5pt;
  color: #000000;
  text-align: right;
  white-space: nowrap;
}

.resume-sheet.theme-specialised .tech-stack {
  font-weight: normal;
  font-style: italic;
  font-size: 9.5pt;
  color: #000000;
}

.resume-sheet.theme-specialised ul.bullets {
  margin: 2pt 0 4pt 0;
  padding-left: 14pt;
  list-style-type: disc;
}

.resume-sheet.theme-specialised ul.bullets li {
  font-size: 9.5pt;
  line-height: 1.28;
  color: #000000;
  margin-bottom: 2.5pt;
  text-align: justify;
}

.resume-sheet.theme-specialised ul.bullets li strong,
.resume-sheet.theme-specialised ul.bullets li b {
  font-weight: bold;
  color: #000000;
}

.resume-sheet.theme-specialised .skills-entry {
  font-size: 9.5pt;
  line-height: 1.4;
  margin-bottom: 2pt;
  color: #000000;
}

.resume-sheet.theme-specialised .skills-label {
  font-weight: bold;
  color: #000000;
}

.resume-sheet.theme-specialised .repo-link {
  font-size: 9.5pt;
  margin: 2pt 0 4pt 0;
  padding-left: 14pt;
}

.resume-sheet.theme-specialised a {
  color: #000000;
  text-decoration: underline;
}

/* ── Template 3: Research & Academic Theme (Arial + Deep Teal Dividers) ── */
.resume-sheet.theme-academic {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 9.2pt;
  line-height: 1.22;
  color: #1a1a1a;
}

.resume-sheet.theme-academic .header {
  text-align: center;
  margin-bottom: 4pt;
  border-bottom: none;
}

.resume-sheet.theme-academic .candidate-name {
  font-size: 18pt;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5pt;
  text-transform: uppercase;
  margin: 0 0 2pt 0;
  line-height: 1.1;
  text-align: center;
}

.resume-sheet.theme-academic .candidate-title {
  font-size: 9.8pt;
  font-weight: normal;
  color: #548dd4;
  margin: 0 0 2.5pt 0;
  letter-spacing: 0.1pt;
  text-align: center;
}

.resume-sheet.theme-academic .contact-line {
  font-size: 8.8pt;
  color: #444444;
  margin: 0;
  text-align: center;
}

.resume-sheet.theme-academic .contact-line a {
  color: #444444;
  text-decoration: none;
}

.resume-sheet.theme-academic .contact-line a:hover {
  text-decoration: underline;
}

.resume-sheet.theme-academic .section {
  margin-bottom: 3.5pt;
}

.resume-sheet.theme-academic .section-title {
  font-size: 10.2pt;
  font-weight: 700;
  color: #1f4d5b;
  text-transform: uppercase;
  letter-spacing: 0.4pt;
  border-bottom: 0.9pt solid #1f4d5b;
  padding-bottom: 1pt;
  margin-top: 4.5pt;
  margin-bottom: 3pt;
}

.resume-sheet.theme-academic .summary-text {
  font-size: 9.1pt;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0;
  text-align: justify;
}

.resume-sheet.theme-academic .edu-row {
  font-size: 9.1pt;
  line-height: 1.28;
  color: #1a1a1a;
  margin-bottom: 1.5pt;
}

.resume-sheet.theme-academic .edu-row strong {
  font-weight: 700;
  color: #1a1a1a;
}

.resume-sheet.theme-academic .skill-row {
  font-size: 9.1pt;
  line-height: 1.24;
  color: #1a1a1a;
  margin-bottom: 1.8pt;
}

.resume-sheet.theme-academic .skill-row strong {
  font-weight: 700;
  color: #1a1a1a;
}

.resume-sheet.theme-academic .entry-block {
  margin-bottom: 3.5pt;
}

.resume-sheet.theme-academic .entry-header {
  font-size: 9.5pt;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.resume-sheet.theme-academic .entry-sub {
  font-size: 9pt;
  font-style: italic;
  color: #444444;
  margin-top: 0.5pt;
  margin-bottom: 1.5pt;
}

.resume-sheet.theme-academic ul.bullets {
  margin: 1pt 0 2pt 0;
  padding-left: 13pt;
  list-style-type: disc;
}

.resume-sheet.theme-academic ul.bullets li {
  font-size: 9pt;
  line-height: 1.23;
  color: #1a1a1a;
  margin-bottom: 1pt;
  text-align: justify;
}

.resume-sheet.theme-academic .info-row {
  font-size: 9pt;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 1.5pt;
}

.resume-sheet.theme-academic .info-row strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* ── Template 4: Classic ATS Theme (Georgia / Times + Minimalist Black) ── */
.resume-sheet.theme-classic {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.4;
  color: #111111;
}

.resume-sheet.theme-classic .header {
  text-align: center;
  border-bottom: 1.5pt solid #111111;
  padding-bottom: 8pt;
  margin-bottom: 12pt;
}

.resume-sheet.theme-classic .name {
  font-size: 18pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5pt;
  margin-bottom: 4pt;
}

.resume-sheet.theme-classic .contact-line {
  font-size: 8.5pt;
  color: #333333;
}

.resume-sheet.theme-classic .section {
  margin-bottom: 11pt;
}

.resume-sheet.theme-classic .section-title {
  font-size: 10.5pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5pt;
  border-bottom: 0.75pt solid #888888;
  padding-bottom: 2pt;
  margin-bottom: 6pt;
  color: #111111;
}

.resume-sheet.theme-classic table.item-header {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2pt;
}

.resume-sheet.theme-classic .item-title {
  font-weight: bold;
  font-size: 9.5pt;
  text-align: left;
}

.resume-sheet.theme-classic .item-right {
  text-align: right;
  font-size: 8.5pt;
  color: #444444;
  white-space: nowrap;
}

.resume-sheet.theme-classic .item-sub {
  font-size: 8.5pt;
  color: #333333;
  margin-bottom: 3pt;
  font-style: italic;
}

.resume-sheet.theme-classic ul.bullets {
  margin: 0;
  padding-left: 14pt;
  list-style-type: disc;
}

.resume-sheet.theme-classic ul.bullets li {
  font-size: 8.5pt;
  margin-bottom: 2pt;
  color: #222222;
  line-height: 1.35;
}

.resume-sheet.theme-classic table.skills-table {
  width: 100%;
  border-collapse: collapse;
}

.resume-sheet.theme-classic table.skills-table td {
  padding: 1.5pt 0;
  font-size: 8.5pt;
  vertical-align: top;
}

.resume-sheet.theme-classic .skill-cat {
  font-weight: bold;
  width: 25%;
  color: #111111;
}

.resume-sheet.theme-classic .skill-list {
  width: 75%;
  color: #222222;
}

/* ── Responsive Mobile ── */
@media (max-width: 900px) {

  html,
  body {
    overflow: hidden !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .builder-top-navbar {
    padding: 0 16px !important;
    height: 52px !important;
    min-height: 52px !important;
  }

  .nav-hero-tagline {
    display: none !important;
  }

  .btn-back-dashboard {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }

  .btn-export-pdf {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }

  .builder-hero-banner {
    padding: 8px 16px 8px 16px !important;
  }

  .hero-title {
    font-size: 1.15rem !important;
  }

  .mobile-view-tabs {
    display: flex !important;
    padding: 6px 14px 8px 14px !important;
    min-height: 48px !important;
    height: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .mobile-tab-btn {
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .builder-workspace-grid,
  .builder-workspace {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    padding: 8px 12px 14px 12px !important;
    gap: 0 !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .chat-card-pane,
  .chat-pane,
  .preview-card-pane,
  .preview-pane {
    flex: 1 1 0% !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: var(--radius-lg) !important;
    box-sizing: border-box !important;
  }

  .preview-card-pane.mobile-hidden,
  .preview-pane.mobile-hidden,
  #preview-pane.mobile-hidden {
    display: none !important;
  }

  .chat-card-pane.mobile-hidden,
  .chat-pane.mobile-hidden,
  #chat-pane.mobile-hidden {
    display: none !important;
  }

  /* Onboarding card adjustments for mobile */
  .chat-onboarding-screen {
    padding: 16px 14px !important;
    justify-content: center !important;
  }

  .onboarding-animated-scene {
    width: 210px !important;
    max-width: 80% !important;
  }

  .chat-onboarding-robot-wrapper {
    margin-bottom: 12px !important;
  }

  .chat-onboarding-content {
    margin-bottom: 16px !important;
    max-width: 100% !important;
  }

  .chat-onboarding-title {
    font-size: 1.12rem !important;
    margin-bottom: 6px !important;
  }

  .chat-onboarding-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  .btn-start-conversation {
    padding: 11px 22px !important;
    font-size: 0.88rem !important;
  }

  /* Preview pane mobile scaling */
  .preview-top-toolbar {
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  .preview-bottom-bar {
    padding: 8px 12px !important;
  }

  .preview-canvas-viewport {
    padding: 12px 8px !important;
  }

  .resume-sheet {
    padding: 20px 16px !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Career Starter Payment Modal Styles (Dark Obsidian)
   ========================================================================== */
.payment-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.payment-modal-card {
  position: relative;
  background: #11141B;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-modal-card::-webkit-scrollbar {
  width: 5px;
}

.payment-modal-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

/* Modal Artwork Header */
.modal-art-banner {
  margin: -28px -26px 18px -26px;
  height: 145px;
  position: relative;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  overflow: hidden;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.modal-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 20, 27, 0) 55%, rgba(17, 20, 27, 0.82) 90%, #11141B 100%);
  pointer-events: none;
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(17, 20, 27, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: #FFFFFF;
  background: rgba(17, 20, 27, 0.95);
  transform: scale(1.05);
}

.modal-badge-row {
  margin-bottom: 8px;
}

.pack-badge {
  display: inline-block;
  background: rgba(29, 100, 242, 0.16);
  color: #60A5FA;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(29, 100, 242, 0.35);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.45;
  margin-bottom: 16px;
}

.price-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.price-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.old-price {
  font-size: 0.95rem;
  color: #64748B;
  text-decoration: line-through;
}

.current-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
}

.price-period {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 500;
}

.price-tag {
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.feature-icon {
  flex-shrink: 0;
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-text strong {
  font-size: 0.86rem;
  color: #FFFFFF;
  font-weight: 600;
}

.feature-text span {
  font-size: 0.76rem;
  color: #94A3B8;
  line-height: 1.35;
}

.guarantee-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.lock-icon {
  color: #60A5FA;
  display: flex;
  align-items: center;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-pay-now {
  width: 100%;
  padding: 13px 20px;
  background: var(--accent-blue);
  color: #FFFFFF;
  border: 1px solid var(--accent-blue);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(29, 100, 242, 0.35);
}

.btn-pay-now:hover:not(:disabled) {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 100, 242, 0.45);
}

.btn-pay-now:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pay-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-modal-cancel {
  width: 100%;
  padding: 9px;
  background: transparent;
  color: #94A3B8;
  border: none;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-modal-cancel:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.trust-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #64748B;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.trust-footer strong {
  color: #94A3B8;
}

/* ==========================================================================
   Passwordless Email OTP Modal Styles (Dark Obsidian)
   ========================================================================== */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: authFadeIn 0.2s ease-out;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.auth-modal-card {
  position: relative;
  background: #11141B;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #FFFFFF;
  animation: authScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authScaleUp {
  from {
    transform: scale(0.96);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.auth-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.auth-modal-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.auth-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: rgba(29, 100, 242, 0.15);
  border: 1px solid rgba(29, 100, 242, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60A5FA;
}

.auth-icon-badge.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.25;
  font-weight: 700;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.45;
  margin-bottom: 22px;
}

.auth-subtitle strong {
  color: #FFFFFF;
}

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

.auth-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: #FFFFFF;
  background: #161922;
  transition: all 0.15s ease;
}

.auth-input::placeholder {
  color: #64748B;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(29, 100, 242, 0.25);
}

.otp-code-input {
  font-size: 1.6rem !important;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  padding: 12px 14px !important;
  color: #60A5FA;
}

.auth-primary-btn {
  width: 100%;
  padding: 13px 20px;
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(29, 100, 242, 0.35);
  transition: all 0.15s ease;
}

.auth-primary-btn:hover:not(:disabled) {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 100, 242, 0.45);
}

.auth-primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.auth-hint {
  font-size: 0.76rem;
  color: #64748B;
  display: block;
}

.auth-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #64748B;
}

.auth-link-btn {
  background: transparent;
  border: none;
  color: #60A5FA;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.auth-link-btn:hover {
  color: #93C5FD;
  text-decoration: underline;
}

/* Navbar Logged-in Badge */
.user-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #E2E8F0;
  font-weight: 500;
}

.user-nav-badge .paid-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.btn-nav-logout {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.btn-nav-logout:hover {
  color: #EF4444;
}

@media (max-width: 520px) {
  .payment-modal-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .modal-art-banner {
    margin: -22px -18px 16px -18px;
    height: 125px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }
  .modal-title {
    font-size: 1.25rem;
  }
}
