/* ============================================================
   MOBILE RESPONSIVE — COMPLETE REWRITE
   ATSPerfect | Replace old mobile-responsive.css entirely
   ============================================================ */

   :root {
    --mh: 55px;
    --bn: 62px;
  }
  
  /* ============================================================
     HIDE MOBILE-ONLY ON DESKTOP
     ============================================================ */
  @media (min-width: 769px) {
    .mobile-bottom-nav,
    .preview-overlay,
    .mobile-menu-btn,
    .resume-hamburger-container { display: none !important; }
  }
  
  /* ============================================================
     BASE MOBILE  (≤ 768px)
     ============================================================ */
  @media (max-width: 768px) {
  
    html, body {
      overflow-x: hidden !important;
      overflow-y: auto !important;
      width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      max-height: none !important;
      box-sizing: border-box !important;
    }
  
    *, *::before, *::after {
      box-sizing: border-box !important;
      -webkit-tap-highlight-color: transparent;
    }
  
    body {
      font-size: 13px !important;
      line-height: 1.4 !important;
      padding-top: var(--mh) !important;
      margin: 0 !important;
      background: #f1f5f9 !important;
    }
  
    /* ── HEADER ── */
    .header, .rd-header {
      position: fixed !important;
      top: 0 !important; left: 0 !important; right: 0 !important;
      width: 100% !important;
      height: var(--mh) !important;
      z-index: 1000 !important;
      background: rgba(255,255,255,0.98) !important;
      backdrop-filter: blur(16px) !important;
      border-bottom: 1px solid #e2e8f0 !important;
      padding: 0 !important;
      margin: 0 !important;
    }
  
    .header-content, .rd-header-content {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      height: 100% !important;
      padding: 0 12px !important;
      max-width: 100% !important;
      position: relative !important;
    }
  
    /* Hide desktop nav */
    .header-nav, .rd-header .header-nav,
    .header-auth-buttons, .header-right-section,
    #userDropdownMenu, .nav-panel, .preview-panel,
    .rd-sidebar, .rd-preview-panel,
   
    .user-menu-trigger, .user-dropdown-content {
      display: none !important;
      visibility: hidden !important;
      width: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
      opacity: 0 !important;
      z-index: -1 !important;
    }
  
    /* Logo left */
  /* ── Replace ALL existing .logo-section rules in your mobile media query ── */

@media (max-width: 768px) {

  /* Pill wrapper */
  .header-content .logo-section,
  .rd-header-content .logo-section,
  .header .logo-section,
  .rd-header .logo-section,
  .logo-section {
    all: unset !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* The single <a> tag becomes the pill */
  .logo-section > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    background: #f0fdf4 !important;
    border: 1.5px solid rgba(11,175,120,0.3) !important;
    border-radius: 999px !important;
    padding: 5px 14px 5px 8px !important;
    box-shadow: 0 1px 6px rgba(11,175,120,0.1) !important;
  }

  /* SVG icon — no circle, sits directly in pill */
  .logo-section > a > svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  /* Text div */
  .logo-section > a > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Brand name — green gradient */
  .logo-section > a > div > span:first-child {
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    background: linear-gradient(120deg, #059669 0%, #0BAF78 50%, #34d399 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    white-space: nowrap !important;
  }

  /* Subtitle — hidden to keep pill compact */
  .logo-section > a > div > span:last-child {
    display: none !important;
  }

}

/* Small phones */
@media (max-width: 390px) {
  .logo-section > a > div > span:first-child {
    font-size: 14px !important;
  }
  .logo-section > a > svg {
    width: 19px !important;
    height: 19px !important;
  }
}
  
    .logo-image { width: 28px !important; height: 28px !important; }
    .brand-name { font-size: 15px !important; font-weight: 700 !important; }
  
    /* Hamburger — left */
    .resume-hamburger-container {
      display: flex !important;
      align-items: center !important;
      z-index: 3 !important;
      flex-shrink: 0 !important;
    }
    .resume-hamburger-btn {
      background: none !important; border: none !important;
      cursor: pointer !important; padding: 6px !important;
      display: flex !important; align-items: center !important;
    }
    .resume-hamburger-btn svg,
    .resume-hamburger-btn svg path,
    .resume-hamburger-btn svg line,
    .resume-hamburger-btn svg rect {
      stroke: #1e293b !important;
      fill: none !important;
    }
    /* Checkbox toggle bars */
    .resume-hamburger-btn .bar,
    .resume-hamburger-btn .toggle .bar {
      background-color: #0BAF78 !important;
      background: #0BAF78 !important;
    }
  
    /* 3-dot — fixed top right */
    .mobile-menu-btn {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 3px !important;
      background: none !important; border: none !important;
      cursor: pointer !important; padding: 8px !important;
      z-index: 1003 !important;
      position: fixed !important;
      top: 8px !important; right: 10px !important;
      width: 36px !important; height: 36px !important;
    }
    .mobile-menu-btn span {
      display: block !important;
      width: 4px !important; height: 4px !important;
      background: #0BAF78 !important;
      border-radius: 50% !important;
    }
  
    /* ── HAMBURGER PANEL ── */
    .resume-sections-overlay {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    
    .resume-sections-overlay.open {
      display: block !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }
  
    .resume-sections-panel {
      position: fixed !important;
      top: var(--mh) !important;
      left: -100% !important;
      width: 80% !important; max-width: 300px !important;
      height: calc(100dvh - var(--mh)) !important;
      max-height: calc(100dvh - var(--mh)) !important;
      background: #fff !important;
      z-index: 1200 !important;
      transition: left 0.28s cubic-bezier(0.4,0,0.2,1) !important;
      display: flex !important; flex-direction: column !important;
      overflow: hidden !important;
      box-shadow: 4px 0 24px rgba(0,0,0,0.15) !important;
    }
    .resume-sections-panel.open { left: 0 !important; }
  
    .resume-sections-header {
      padding: 14px 16px !important;
      background: #0f172a !important;
      border-bottom: 1px solid #1e293b !important;
      flex-shrink: 0 !important;
    }
    .resume-sections-header h3 {
      font-size: 16px !important;
      font-weight: 700 !important;
      color: #f1f5f9 !important;
      margin: 0 0 6px !important;
      letter-spacing: -0.01em !important;
    }
  
    /* "Step 1 of 5" text */
    #mobileNavStatus {
      font-size: 11px !important;
      color: #64748b !important;
      font-weight: 500 !important;
    }
  
    .resume-sections-menu { flex: 1 !important; overflow-y: auto !important; padding: 8px 0 !important; }
    .resume-section-item {
      display: flex !important; align-items: center !important;
      gap: 12px !important; padding: 14px 16px !important;
      text-decoration: none !important; color: #374151 !important;
      border-left: 3px solid transparent !important;
    }
    .resume-section-item.active {
      background: #f0fdf4 !important; border-left-color: #0BAF78 !important; color: #065f46 !important;
    }
    .resume-section-title { font-size: 14px !important; font-weight: 600 !important; display: block !important; }
    .resume-section-desc  { font-size: 11px !important; color: #9ca3af !important; display: block !important; }
    .resume-section-check { margin-left: auto !important; color: #0BAF78 !important; font-size: 16px !important; }
  
    .resume-sections-footer {
      flex-shrink: 0 !important; padding: 12px 16px !important;
      border-top: 1px solid #e5e7eb !important;
    }
    .resume-sections-actions { display: flex !important; gap: 8px !important; }
    .resume-section-nav-btn {
      flex: 1 !important; padding: 10px !important; border-radius: 8px !important;
      border: none !important; font-size: 13px !important; font-weight: 600 !important;
      cursor: pointer !important; background: #0BAF78 !important; color: #fff !important;
    }
    .resume-section-nav-btn.prev { background: #f1f5f9 !important; color: #374151 !important; }
  
    .resume-sections-progress {
      height: 3px !important;
      background: #1e293b !important;
      border-radius: 2px !important;
      overflow: hidden !important;
      margin-top: 6px !important;
    }
    .resume-sections-progress-fill {
      height: 100% !important;
      background: #0BAF78 !important;
      border-radius: 2px !important;
      transition: width 0.3s ease !important;
    }
  
    /* ── 3-DOT MENU PANEL ── */
    .mobile-menu-overlay {
      position: fixed !important;
      inset: 0 !important;
      top: var(--mh) !important;
      height: calc(100dvh - var(--mh)) !important;
      background: rgba(0,0,0,0.45) !important;
      z-index: 1100 !important;
      display: none !important;
      opacity: 0 !important;
    }
    .mobile-menu-overlay.open { display: block !important; opacity: 1 !important; }
  
    .mobile-menu-panel {
      position: fixed !important;
      top: var(--mh) !important;
      right: -100% !important;
      width: 75% !important; max-width: 280px !important;
      height: calc(100dvh - var(--mh)) !important;
      max-height: calc(100dvh - var(--mh)) !important;
      background: #fff !important;
      z-index: 1200 !important;
      transition: right 0.28s cubic-bezier(0.4,0,0.2,1) !important;
      display: flex !important; flex-direction: column !important;
      overflow-y: auto !important;
      box-shadow: -4px 0 24px rgba(0,0,0,0.15) !important;
      padding-top: 0 !important;
    }
    .mobile-menu-panel.open { right: 0 !important; }
  
    /* Status card */
    .mobile-menu-status {
      padding: 20px 16px 16px !important;
      background: #f8fafc !important;
      border-bottom: 1px solid #e5e7eb !important;
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      margin-top: 0 !important;
      font-size: 12px !important;
      color: #64748b !important;
    }
  
    #mobileMenuStatus {
      margin-top: 0 !important;
    }
  
    /* Avatar circle */
    .mobile-menu-status-avatar {
      width: 44px !important; height: 44px !important;
      border-radius: 50% !important;
      background: #e2e8f0 !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
      flex-shrink: 0 !important;
      font-size: 18px !important; font-weight: 700 !important;
      color: #64748b !important;
    }
    .mobile-menu-status-avatar.logged-in {
      background: #6366f1 !important; color: #fff !important;
    }
  
    .mobile-menu-status-info {
      display: flex !important; flex-direction: column !important; gap: 2px !important;
    }
    .mobile-menu-status-name {
      font-size: 15px !important; font-weight: 700 !important;
      color: #111827 !important; line-height: 1.2 !important;
    }
    .mobile-menu-status-sub {
      font-size: 11px !important; color: #64748b !important; line-height: 1.3 !important;
    }
  
    /* Upgrade banner */
    .mobile-menu-upgrade {
      margin: 12px 16px 0 !important;
      padding: 10px 14px !important;
      background: #fffbeb !important;
      border: 1px solid #fde68a !important;
      border-radius: 10px !important;
      display: flex !important; align-items: center !important;
      justify-content: space-between !important;
      text-decoration: none !important; cursor: pointer !important;
    }
    .mobile-menu-upgrade-left {
      display: flex !important; align-items: center !important; gap: 8px !important;
      font-size: 13px !important; font-weight: 600 !important; color: #92400e !important;
    }
    .mobile-menu-upgrade-arrow { font-size: 14px !important; color: #d97706 !important; }
  
    /* Section labels */
    .mobile-menu-section-label {
      padding: 16px 16px 6px !important;
      font-size: 10px !important; font-weight: 700 !important;
      text-transform: uppercase !important; letter-spacing: 0.08em !important;
      color: #9ca3af !important;
    }
  
    /* Nav links */
    .mobile-menu-items {
      flex: 1 !important;
      display: block !important;
      padding-bottom: 8px !important;
    }
    .mobile-menu-items .nav-link,
    .mobile-menu-panel .nav-link {
      display: flex !important;
      align-items: center !important;
      gap: 14px !important;
      visibility: visible !important;
      width: 100% !important;
      overflow: visible !important;
      pointer-events: auto !important;
      padding: 12px 16px !important;
      font-size: 14px !important; font-weight: 500 !important;
      color: #1f2937 !important; text-decoration: none !important;
      border-left: 3px solid transparent !important;
      transition: background 0.15s ease, border-color 0.15s ease !important;
      box-sizing: border-box !important;
      background: transparent !important;
    }
    .mobile-menu-items .nav-link:active,
    .mobile-menu-items .nav-link:hover {
      background: #f0fdf4 !important;
      border-left-color: #0BAF78 !important;
      color: #065f46 !important;
    }
  
    /* Icon wrapper */
    .mobile-menu-items .nav-link .menu-icon,
    .mobile-menu-panel .nav-link .menu-icon {
      width: 28px !important; height: 28px !important; min-width: 28px !important;
      border-radius: 8px !important; background: #f1f5f9 !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
      flex-shrink: 0 !important;
    }
    .mobile-menu-items .nav-link .menu-icon svg,
    .mobile-menu-panel .nav-link .menu-icon svg {
      width: 15px !important; height: 15px !important;
      stroke: #374151 !important; flex-shrink: 0 !important;
    }
  
    /* Logged-in links */
    .logged-in-only-link { display: none !important; }
  
    /* Logout bar */
    .mobile-logout-bar {
      display: flex !important;
      padding: 14px 16px !important;
      border-top: 1px solid #f1f5f9 !important;
      margin-top: auto !important;
    }
    .mobile-logout-link {
      display: flex !important; align-items: center !important; gap: 10px !important;
      font-size: 14px !important; color: #ef4444 !important;
      text-decoration: none !important; font-weight: 500 !important;
      width: 100% !important;
    }
    .mobile-logout-link svg {
      stroke: #ef4444 !important; width: 16px !important; height: 16px !important;
    }
  
    /* Auth buttons (guest) */
    .mobile-menu-auth-buttons {
      margin-top: auto !important;
      padding: 16px !important;
      border-top: 1px solid #f1f5f9 !important;
      flex-shrink: 0 !important;
    }
    .mobile-auth-row { display: flex !important; gap: 8px !important; }
    .mobile-auth-signin {
      flex: 1 !important; padding: 11px !important; border-radius: 8px !important;
      font-size: 13px !important; font-weight: 600 !important;
      text-align: center !important; text-decoration: none !important;
      border: 1.5px solid #e2e8f0 !important; color: #374151 !important;
      background: #fff !important; display: block !important;
    }
    .mobile-auth-signup {
      flex: 1 !important; padding: 11px !important; border-radius: 8px !important;
      font-size: 13px !important; font-weight: 600 !important;
      text-align: center !important; text-decoration: none !important;
      background: #0BAF78 !important; color: #fff !important;
      border: none !important; display: block !important;
    }
  
    /* ── HIDE BOTTOM NAV WHEN MENU IS OPEN ── */
    body.mobile-menu-open .mobile-bottom-nav,
    body.hamburger-menu-open .mobile-bottom-nav {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
      height: 0 !important;
    }
    body:has(.resume-sections-panel.open) .mobile-bottom-nav {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
    }
  
    /* ── APP LAYOUT ── */
    .rd-app-layout {
      display: block !important;
      grid-template-columns: unset !important;
      grid-template-rows: unset !important;
      height: auto !important; max-height: none !important;
      overflow: visible !important;
      margin-top: 0 !important; padding-top: 0 !important;
      width: 100% !important; max-width: 100vw !important;
    }
  
    .rd-sidebar, .rd-preview-panel, .preview-panel,
    .nav-panel, .main-layout, .left-panel, .section-header-nav {
      display: none !important; visibility: hidden !important;
      width: 0 !important; height: 0 !important;
      position: absolute !important; left: -9999px !important;
    }
  
    .rd-form-main {
      display: block !important;
      width: 100% !important; max-width: 100vw !important; min-width: 0 !important;
      height: auto !important; max-height: none !important;
      overflow-x: hidden !important; padding: 0 !important; margin: 0 !important;
      flex: none !important;
    }
  
    /* ── STEP BAR ── */
    .rd-step-bar {
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      background: #0BAF78 !important;
      padding: 0 12px !important;
      width: 100% !important;
      height: 50px !important; min-height: 50px !important; max-height: 50px !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 50 !important;
      margin: 0 !important;
      box-sizing: border-box !important;
    }
  
    .rd-step-right,
    #prev-btn, #next-btn { display: none !important; }
  
    .rd-step-left {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: flex-start !important;
      gap: 8px !important;
      flex: 1 !important;
      height: auto !important;
    }
  
    .rd-step-bar #rdStepIcon {
      display: flex !important; align-items: center !important; justify-content: center !important;
      width: 30px !important; height: 30px !important;
      min-width: 30px !important; min-height: 30px !important;
      max-width: 30px !important; max-height: 30px !important;
      flex: 0 0 30px !important;
      border-radius: 8px !important;
      background: rgba(255,255,255,0.2) !important;
      overflow: hidden !important;
    }
    .rd-step-bar #rdStepIcon svg {
      width: 15px !important; height: 15px !important;
      min-width: 15px !important; min-height: 15px !important;
      max-width: 15px !important; max-height: 15px !important;
      stroke: #fff !important; fill: none !important;
    }
  
    .rd-step-bar > .rd-step-left > div {
      display: flex !important; flex-direction: column !important;
      justify-content: center !important; align-items: flex-start !important; gap: 1px !important;
    }
    .rd-step-title {
      font-size: 13px !important; font-weight: 700 !important;
      color: #fff !important; line-height: 1.2 !important;
      margin: 0 !important; padding: 0 !important;
    }
    .rd-step-meta {
      font-size: 10px !important; color: rgba(255,255,255,0.8) !important;
      line-height: 1.2 !important; margin: 0 !important; padding: 0 !important;
    }
  
    /* ── FORM SECTIONS ── */
    .form-section, .rd-section-body {
      display: none !important;
      width: 100% !important; max-width: 100vw !important;
      padding: 8px !important;
      padding-bottom: calc(var(--bn) + 12px) !important;
      margin: 0 !important;
      background: #f1f5f9 !important;
      overflow-x: hidden !important;
      box-sizing: border-box !important;
    }
    .form-section.active, .rd-section-body.active {
      display: block !important;
      flex-direction: unset !important;
      flex-wrap: unset !important;
      gap: unset !important;
    }
  
    /* ── CARDS ── */
    .rd-card {
      background: #fff !important;
      border-radius: 6px !important;
      border: 1px solid #e5e7eb !important;
      padding: 10px !important;
      margin-bottom: 8px !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    .rd-card-header { display: flex !important; align-items: center !important; gap: 8px !important; margin-bottom: 8px !important; }
    .rd-card-title  { font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.06em !important; color: #374151 !important; }
  
    /* ── INPUTS ── */
    .rd-name-row, .rd-two-col {
      display: flex !important;
      flex-direction: column !important;
      flex-wrap: nowrap !important;
      grid-template-columns: unset !important;
      gap: 8px !important;
      width: 100% !important;
    }
    .rd-name-row > *, .rd-two-col > * {
      width: 100% !important; max-width: 100% !important;
      min-width: 0 !important; flex: 0 0 100% !important;
    }
  
    .rd-field-group { margin-bottom: 7px !important; width: 100% !important; }
    .rd-label {
      display: block !important; font-size: 11px !important; font-weight: 600 !important;
      letter-spacing: 0 !important; text-transform: none !important; color: #64748b !important; margin-bottom: 4px !important;
    }
  
    .rd-input-wrap { position: relative !important; width: 100% !important; }
    .rd-input-icon {
      position: absolute !important; left: 10px !important; top: 50% !important;
      transform: translateY(-50%) !important; color: #9ca3af !important;
      pointer-events: none !important; display: flex !important; align-items: center !important;
    }
  
    .rd-input,
    input[type="text"], input[type="email"],
    input[type="tel"], input[type="date"], select {
      width: 100% !important; max-width: 100% !important;
      height: 36px !important; min-height: 36px !important;
      padding: 0 10px 0 34px !important;
      font-size: 13px !important;
      border: 1.5px solid #e2e8f0 !important;
      border-radius: 4px !important;
      background: #fff !important; color: #111827 !important;
      box-sizing: border-box !important;
      -webkit-appearance: none !important;
    }
    .rd-textarea, textarea {
      width: 100% !important; padding: 8px 10px !important;
      min-height: 65px !important; height: 65px !important;
      font-size: 13px !important;
      border: 1.5px solid #e2e8f0 !important;
      border-radius: 4px !important; resize: vertical !important;
      box-sizing: border-box !important;
    }
    #summary { min-height: 90px !important; height: 90px !important; }
    #skills  { min-height: 70px !important; height: 70px !important; }
  
    input::placeholder, textarea::placeholder { color: #b0bac9 !important; font-size: 12px !important; }
    input:focus, textarea:focus, select:focus {
      outline: none !important; border-color: #0BAF78 !important;
      box-shadow: 0 0 0 3px rgba(11,175,120,0.12) !important;
    }
  
    .rd-input, .rd-textarea, .rd-input-wrap, .rd-field-group,
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="date"], select, textarea {
      min-width: 0 !important;
    }
  
    /* ── SECTION NOTE ── */
    .rd-section-note {
      display: flex !important; gap: 8px !important;
      background: #fffbeb !important; border: 1px solid #fde68a !important;
      border-radius: 8px !important; padding: 8px 10px !important;
      margin-bottom: 8px !important; font-size: 11px !important; color: #92400e !important;
    }
  
    /* ── ENTRIES ── */
    .accordion-card, .experience-entry, .education-entry, .cert-entry {
      background: #fff !important; border: 1px solid #e5e7eb !important;
      border-radius: 6px !important;
      padding: 0 !important;
      margin-bottom: 4px !important;
      position: relative !important;
      width: 100% !important; box-sizing: border-box !important;
      overflow: hidden !important;
    }
    .accordion-header {
      height: 44px !important; min-height: 44px !important; max-height: 44px !important;
      padding: 0 10px !important;
      width: 100% !important; box-sizing: border-box !important;
    }
    .accordion-body { padding: 10px !important; }
    .remove-btn {
      position: absolute !important; top: 10px !important; right: 10px !important;
      width: 28px !important; height: 28px !important;
      border-radius: 7px !important; border: none !important;
      background: #fee2e2 !important; color: #ef4444 !important;
      font-size: 16px !important; cursor: pointer !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
    }
  
    /* Date row */
    .date-row-with-checkbox {
      display: flex !important; flex-direction: row !important;
      flex-wrap: nowrap !important; gap: 6px !important; align-items: flex-end !important;
    }
    .date-row-with-checkbox > .rd-field-group,
    .date-row-with-checkbox > div { flex: 1 !important; min-width: 0 !important; margin-bottom: 0 !important; }
    .present-checkbox-wrapper, div[id^="presentWrapper-"], div[id^="eduPresentWrapper-"] {
      flex-shrink: 0 !important; height: 36px !important; padding: 0 8px !important;
      border: 1.5px solid #e2e8f0 !important; border-radius: 8px !important;
      display: flex !important; align-items: center !important; gap: 5px !important;
      background: #fff !important; white-space: nowrap !important;
    }
    .custom-checkbox { width: 14px !important; height: 14px !important; flex-shrink: 0 !important; }
    .checkbox-label  { font-size: 11px !important; font-weight: 500 !important; }
  
    /* ── BUTTONS ── */
    .rd-add-btn {
      display: flex !important; align-items: center !important; justify-content: center !important;
      width: 100% !important; padding: 8px !important;
      background: #fff !important; color: #059669 !important;
      border: 2px dashed #d1fae5 !important; border-radius: 10px !important;
      font-size: 12px !important; font-weight: 600 !important; cursor: pointer !important;
      margin: 0 !important; box-sizing: border-box !important;
    }
    .rd-ai-btn {
      display: flex !important; align-items: center !important; justify-content: center !important;
      gap: 8px !important; width: 100% !important; padding: 10px !important;
      background: linear-gradient(135deg,#059669,#0BAF78) !important;
      color: #fff !important; border: none !important; border-radius: 10px !important;
      font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important;
      margin-top: 4px !important;
    }
    .rd-status-bar {
      display: flex !important; align-items: center !important; gap: 8px !important;
      padding: 7px 10px !important;
      background: #fffbeb !important;
      border: 1px solid #fde68a !important;
      border-radius: 8px !important;
      font-size: 11px !important;
    }
    .rd-status-dot {
      background: #f59e0b !important;
      box-shadow: 0 0 0 3px rgba(245,158,11,0.2) !important;
    }
    .rd-status-text { color: #92400e !important; }
    .rd-status-req { margin-left: auto !important; font-size: 11px !important; color: #d97706 !important; }
    .rd-char-count { text-align: right !important; font-size: 9px !important; color: #9ca3af !important; margin-top: 2px !important; }
    .rd-validation  { font-size: 10px !important; color: #ef4444 !important; margin-top: 2px !important; min-height: 12px !important; }
  
    /* ── LISTS ── */
    #experience-list, #education-list,
    #certifications-list, #languages-list, #custom-sections-list {
      width: 100% !important; overflow-x: hidden !important;
      margin-bottom: 0 !important; padding-bottom: 0 !important;
    }
  
    /* ── BOTTOM NAV ── */
    .mobile-bottom-nav {
      position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
      width: 100% !important; z-index: 999 !important;
      background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
      border-top: 1px solid rgba(255,255,255,0.08) !important;
      /* Tight, low-opacity shadow: a wide blur banded against the white card
         edge / grey page behind it and looked blotchy. The hairline does the
         separating; the shadow only adds a hint of lift. */
      box-shadow: 0 -2px 6px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.06) !important;
      display: flex !important; align-items: center !important; justify-content: space-around !important;
      padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
      height: calc(var(--bn) + env(safe-area-inset-bottom, 0px)) !important;
    }
    .mobile-bottom-btn {
      flex: 1 !important; display: flex !important; flex-direction: column !important;
      align-items: center !important; justify-content: center !important; gap: 3px !important;
      background: none !important; border: none !important; cursor: pointer !important;
      padding: 4px 2px !important; min-width: 0 !important; text-decoration: none !important;
    }
    .mobile-bottom-btn:active { transform: scale(0.88) !important; }
    .mobile-bottom-btn .btn-icon {
      width: 26px !important; height: 26px !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
    }
    .mobile-bottom-btn .btn-icon svg {
      width: 22px !important; height: 22px !important;
      stroke: #94a3b8 !important; fill: none !important; stroke-width: 2 !important;
      transition: stroke 0.15s ease !important;
    }
    .mobile-bottom-btn .btn-label {
      font-size: 10px !important; font-weight: 500 !important;
      color: #94a3b8 !important; white-space: nowrap !important; line-height: 1 !important;
      transition: color 0.15s ease !important;
    }
    .mobile-bottom-btn.preview-btn .btn-icon svg { stroke: #34d399 !important; filter: drop-shadow(0 0 6px rgba(52,211,153,0.45)) !important; }
    .mobile-bottom-btn.preview-btn .btn-label    { color: #34d399 !important; font-weight: 600 !important; }
    /* pressed feedback reads on dark */
    .mobile-bottom-btn:active .btn-icon svg { stroke: #e2e8f0 !important; }
    .mobile-bottom-btn:active .btn-label    { color: #e2e8f0 !important; }
    .mobile-bottom-btn.preview-btn:active .btn-icon svg,
    .mobile-bottom-btn.preview-btn:active .btn-label { color: #6ee7b7 !important; stroke: #6ee7b7 !important; }
    /* disabled Next/Previous shouldn't vanish into the dark bar */
    .mobile-bottom-btn:disabled .btn-icon svg { stroke: #475569 !important; }
    .mobile-bottom-btn:disabled .btn-label    { color: #475569 !important; }
  
    /* ── PREVIEW OVERLAY ── */
    .preview-overlay {
      position: fixed !important; inset: 0 !important;
      background: rgba(0,0,0,0.82) !important;
      z-index: 9000 !important;
      display: none !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 !important;
    }
    .preview-overlay.active {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .preview-overlay .preview-section {
      width: 92vw !important; max-width: 480px !important;
      height: 78vh !important; max-height: 78vh !important;
      background: #fff !important; border-radius: 16px !important;
      overflow: hidden !important;
      display: flex !important; flex-direction: column !important;
      box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
      margin: auto !important; position: relative !important;
    }
    .preview-overlay .preview-header {
      flex-shrink: 0 !important;
      padding: 0 12px !important;
      background: #0BAF78 !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
      min-height: 48px !important; height: 48px !important;
      gap: 8px !important; position: relative !important;
    }
    .preview-overlay .preview-controls {
      display: flex !important; align-items: center !important; justify-content: center !important;
      gap: 8px !important; width: 100% !important; padding-right: 40px !important;
    }
    .preview-overlay .page-navigation,
    .preview-overlay .zoom-controls {
      display: flex !important; align-items: center !important;
      height: 30px !important;
      background: rgba(255,255,255,0.2) !important;
      border: 1px solid rgba(255,255,255,0.3) !important;
      border-radius: 7px !important; overflow: hidden !important; flex-shrink: 0 !important;
    }
    .preview-overlay .nav-btn,
    .preview-overlay .zoom-controls button {
      background: none !important; border: none !important; color: #fff !important;
      width: 28px !important; height: 30px !important;
      font-size: 14px !important; font-weight: 600 !important;
      cursor: pointer !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
    }
    .preview-overlay .page-info,
    .preview-overlay .zoom-controls span {
      font-size: 11px !important; font-weight: 600 !important;
      color: #fff !important; padding: 0 6px !important; white-space: nowrap !important;
    }
    .preview-overlay .download-btn {
      height: 30px !important; padding: 0 12px !important;
      background: #fff !important; border: none !important; border-radius: 7px !important;
      color: #059669 !important; font-size: 12px !important; font-weight: 700 !important;
      cursor: pointer !important; white-space: nowrap !important; flex-shrink: 0 !important;
    }
    /* scrolls both ways: zoomed in, every edge of the page can be reached (js/app.js MOBILE PREVIEW) */
    .preview-overlay .resume-preview {
      flex: 1 !important;
      overflow: auto !important;
      background: #f3f4f6 !important; padding: 12px !important;
      display: block !important;
      -webkit-overflow-scrolling: touch !important;
      touch-action: pan-x pan-y !important;   /* two-finger pinch zooms the page inside, not the screen */
    }
    /* sized to the zoomed page, so the scroll area matches it; centred while narrower than the box */
    .preview-overlay .mp-sizer { margin: 0 auto !important; position: relative !important; }
    .preview-overlay .mp-sizer > .a4-container { position: absolute !important; top: 0 !important; left: 0 !important; margin: 0 !important; }
    .preview-overlay .mp-sizer .resume-page { margin: 0 0 16px 0 !important; box-shadow: 0 1px 4px rgba(0,0,0,.12) !important; }
    .preview-close {
      position: absolute !important; top: 10px !important; right: 10px !important;
      width: 32px !important; height: 32px !important;
      border-radius: 8px !important;
      background: rgba(255,255,255,0.2) !important; border: none !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
      cursor: pointer !important; z-index: 10 !important;
    }
    .preview-close svg { width: 16px !important; height: 16px !important; stroke: #fff !important; }
  
    /* ── POPUPS ── */
    .skills-popup-overlay {
      position: fixed !important; inset: 0 !important;
      background: rgba(0,0,0,0.5) !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
      z-index: 2000 !important;
    }
    .skills-popup-card {
      width: 100% !important;
      max-width: 100% !important;
      max-height: 88vh !important;
      border-radius: 20px 20px 20px 20px !important;
      overflow-y: auto !important;
      padding: 20px 16px !important;
      background: #fff !important;
    }
  
    /* ── TOAST ── */
    #toastContainer {
      position: fixed !important; bottom: calc(var(--bn) + 12px) !important;
      left: 16px !important; right: 16px !important; z-index: 9999 !important;
    }
  
    /* ── FAB ── */
    #fabBuildResume { display: none !important; }
  
  } /* END @media (max-width: 768px) */
  
  /* ============================================================
     SMALL PHONES (≤ 390px)
     ============================================================ */
  @media (max-width: 390px) {
    :root { --mh: 50px; --bn: 58px; }
    .rd-step-title { font-size: 12px !important; }
    .rd-card { padding: 10px !important; }
    .rd-input, input[type="text"], input[type="email"],
    input[type="tel"], input[type="date"], select {
      height: 34px !important; font-size: 12px !important;
    }
    .mobile-bottom-btn .btn-icon svg { width: 20px !important; height: 20px !important; }
    .mobile-bottom-btn .btn-label { font-size: 9px !important; }
  }
  


  .mobile-profile-strength {
    padding: 14px 16px 16px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
  }

  /* NOTE: no dark-mode override here on purpose. The rest of this slide-out
     panel is light-only (fixed colors, not prefers-color-scheme aware). A lone
     dark-mode rule on just the footer made it render navy-black on dark-mode
     phones while everything above it stayed white — looking broken. Keeping the
     footer light matches the panel. */

  .mps-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .mps-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  
  .mps-score {
    font-size: 13px;
    font-weight: 700;
    color: #0BAF78;
    min-width: 36px;
    text-align: right;
  }
  
  .mps-bar-bg {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 7px;
  }
  
  .mps-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0BAF78, #059669);
    border-radius: 999px;
    transition: width 0.4s ease;
  }
  
  .mps-hint {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
  }

  
  /* Add this to mobile-responsive.css — overrides the 64px desktop header on mobile */
@media (max-width: 768px) {

  html {
      padding-top: 0 !important;
      margin-top: 0 !important;
  }

  body {
      padding-top: 55px !important;
      margin-top: 0 !important;
  }

  .header, .rd-header {
      height: 55px !important;
      min-height: 55px !important;
      max-height: 55px !important;
      top: 0 !important;
  }

  .header-content, .rd-header-content {
      height: 55px !important;
  }

  .rd-app-layout {
      margin-top: 0 !important;
      height: calc(100vh - 55px) !important;
      max-height: calc(100vh - 55px) !important;
  }

  .rd-step-bar { top: 0 !important; margin-top: 0 !important; }
  .rd-form-main { margin-top: 0 !important; }
}



.resume-sections-overlay.open {
  display: block !important;
}






/* ============================================================
   FIX: Remove excess left padding on inputs inside accordion
   entries (experience, education, certifications) — they have
   no icon wrapper so the 34px icon-offset looks like blank space
   ============================================================ */
   @media (max-width: 768px) {

    /* Any input that is NOT inside an .rd-input-wrap (no icon) */
    .accordion-body input[type="text"],
    .accordion-body input[type="email"],
    .accordion-body input[type="tel"],
    .accordion-body input[type="date"],
    .accordion-body select,
    .accordion-body .rd-input {
      padding-left: 10px !important;
      padding-right: 10px !important;
    }
  
    /* Also catch flatpickr-wrapped inputs inside accordion */
    .accordion-body .flatpickr-input,
    .accordion-body .flatpickr-wrapper input {
      padding-left: 10px !important;
      padding-right: 10px !important;
    }
  
    /* Inputs INSIDE .rd-input-wrap keep icon offset — don't touch those */
    .accordion-body .rd-input-wrap input,
    .accordion-body .rd-input-wrap .rd-input {
      padding-left: 34px !important;
    }
  
    /* Textarea inside accordion entries */
    .accordion-body textarea,
    .accordion-body .rd-textarea {
      padding: 8px 10px !important;
    }
  
  }
/* ── Mobile preview toolbar: center controls on ALL phone widths ──
   The original centering lived only in @media (max-width:390px), so phones
   wider than 390px (most modern phones) rendered the toolbar left-aligned.
   This covers the full phone/tablet range and uses symmetric padding so the
   absolutely-positioned close (✕) button doesn't pull the group off-center. */
@media (max-width: 768px) {
  .preview-overlay .preview-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .preview-overlay .preview-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 44px !important;      /* symmetric room for the ✕ button */
    box-sizing: border-box !important;
  }
}
/* =========================================================================
   MOBILE REFRESH — white bottom nav + emerald accents, progress strip,
   overlay header treatment (matches the approved mock).
   ========================================================================= */
@media (max-width: 768px) {

  /* ---- Bottom nav: white bar, refined emerald ---- */
  .mobile-bottom-nav {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 -2px 8px rgba(15,23,42,0.06) !important;
  }
  .mobile-bottom-btn .btn-icon svg { stroke: #64748b !important; }
  .mobile-bottom-btn .btn-label    { color: #64748b !important; }

  /* Preview = emerald accent (drop the old bright glow) */
  .mobile-bottom-btn.preview-btn .btn-icon svg { stroke: #059669 !important; filter: none !important; }
  .mobile-bottom-btn.preview-btn .btn-label    { color: #059669 !important; font-weight: 600 !important; }

  /* Next = filled emerald pill (primary progression) */
  .mobile-bottom-btn.next-btn {
    flex: 0 0 auto !important; flex-direction: row-reverse !important; gap: 5px !important;
    background: #10b981 !important; border-radius: 10px !important;
    padding: 7px 12px !important; margin: 0 2px !important;
    box-shadow: 0 2px 8px rgba(16,185,129,0.38) !important;
  }
  .mobile-bottom-btn.next-btn .btn-icon svg { stroke: #ffffff !important; }
  .mobile-bottom-btn.next-btn .btn-label    { color: #ffffff !important; font-weight: 700 !important; }
  .mobile-bottom-btn.next-btn:active { transform: scale(0.94) !important; background: #059669 !important; }
  .mobile-bottom-btn.next-btn:active .btn-icon svg,
  .mobile-bottom-btn.next-btn:active .btn-label { stroke: #ffffff !important; color: #ffffff !important; }

  /* active + disabled feedback on the white bar */
  .mobile-bottom-btn:active .btn-icon svg { stroke: #0f172a !important; }
  .mobile-bottom-btn:active .btn-label    { color: #0f172a !important; }
  .mobile-bottom-btn:disabled .btn-icon svg { stroke: #cbd5e1 !important; }
  .mobile-bottom-btn:disabled .btn-label    { color: #cbd5e1 !important; }

  /* ---- Mobile progress strip (under the form header) ---- */
  .rd-mobile-progress {
    display: block !important; background: #ffffff !important;
    border-bottom: 1px solid #eef2f7 !important; padding: 8px 14px 10px !important;
  }
  .rd-mp-row { display: flex; justify-content: space-between; font-size: 10px;
    letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; margin-bottom: 5px; }
  .rd-mp-row span:last-child { color: #059669; font-weight: 700; }
  .rd-mp-track { height: 5px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
  .rd-mp-fill  { height: 100%; background: linear-gradient(90deg,#10b981,#059669); transition: width .3s ease; }

  /* ---- Preview overlay header: green dot label + emerald Download ---- */
  .preview-overlay .mobile-lp-label {
    display: inline-flex !important; align-items: center !important; gap: 7px !important;
    font-size: 13px !important; font-weight: 700 !important; color: #0f172a !important; margin-right: auto !important;
  }
  .preview-overlay .mobile-lp-dot {
    width: 7px !important; height: 7px !important; border-radius: 50% !important;
    background: #10b981 !important; display: inline-block !important;
  }
  .preview-overlay .download-btn {
    background: #10b981 !important; color: #ffffff !important; border: none !important;
    border-radius: 7px !important; font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(16,185,129,0.32) !important;
  }
  .preview-overlay .download-btn:active { background: #059669 !important; }
}

/* strip is desktop-hidden by default */
.rd-mobile-progress { display: none; }

/* =========================================================================
   MOBILE HEADER -> WHITE (match the approved mock; overrides the green strip)
   ========================================================================= */
@media (max-width: 768px) {
  .rd-step-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04) !important;
  }
  .rd-step-bar #rdStepIcon { background: #10b981 !important; }   /* solid emerald chip */
  .rd-step-bar #rdStepIcon svg { stroke: #ffffff !important; }
  .rd-step-title { color: #0f172a !important; }
  .rd-step-meta  { color: #64748b !important; }

  /* title left, "Step 1 of 5" pushed to the right (like the mock) */
  .rd-step-bar > .rd-step-left > div {
    flex-direction: row !important; align-items: baseline !important;
    gap: 8px !important; width: 100% !important;
  }
  .rd-step-meta { margin-left: auto !important; font-weight: 600 !important; white-space: nowrap !important; }

  /* 4-button bottom nav: drop "New" to match the mock */
  /* .mobile-bottom-btn.new-resume-btn { display: none !important; } */  /* New restored */
}

/* =========================================================================
   MOBILE TOP-BAR + BOTTOM-NAV POLISH
   black hamburger · profile avatar (not 3 dots) · crisp bottom border
   ========================================================================= */
@media (max-width: 768px) {
  /* hamburger -> black */
  .resume-hamburger-btn .bar,
  .resume-hamburger-btn .toggle .bar { background: #0f172a !important; background-color: #0f172a !important; }
  .resume-hamburger-btn svg, .resume-hamburger-btn svg path,
  .resume-hamburger-btn svg line, .resume-hamburger-btn svg rect { stroke: #0f172a !important; }

  /* 3-dots -> profile avatar (indigo circle + user icon, like the mock) */
  .mobile-menu-btn span { display: none !important; }
  .mobile-menu-btn {
    width: 32px !important; height: 32px !important; padding: 0 !important;
    border-radius: 50% !important; top: calc(var(--mh, 55px) / 2) !important; transform: translateY(-50%) !important;
    background: #6366f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/18px no-repeat !important;
    box-shadow: 0 1px 4px rgba(99,102,241,0.35) !important;
  }

  /* bottom nav: drop the shadow, keep a clean premium separator */
  .mobile-bottom-nav {
    box-shadow: none !important;
    border-top: 1px solid #e5e7eb !important;
  }
}

/* =========================================================================
   CRISP SEPARATORS — sharp, premium hairlines on the top bar + bottom nav
   ========================================================================= */
@media (max-width: 768px) {
  .rd-header,
  .header.rd-header       { border-bottom: 1px solid #cbd5e1 !important; }
  .mobile-bottom-nav      { border-top: 1px solid #cbd5e1 !important; box-shadow: none !important; }
}

/* =========================================================================
   CRISP BOTTOM NAV — zero soft shadow near the edge + breathing room
   (a sharp hairline reads sharp only when nothing blurry touches it)
   ========================================================================= */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    background: #ffffff !important;
    border-top: 1px solid #cbd5e1 !important;
    box-shadow: none !important; -webkit-box-shadow: none !important;
    padding-top: 9px !important;                 /* breathing room like the mock */
  }
  .mobile-bottom-nav::before,
  .mobile-bottom-nav::after { box-shadow: none !important; }
  /* same treatment for the top bar edge */
  .rd-header, .header.rd-header {
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: none !important; -webkit-box-shadow: none !important;
  }
}

/* =========================================================================
   MOBILE LOGO PILL — premium SaaS refinement
   white pill · crisp neutral border · deeper wordmark (drop the neon tip)
   ========================================================================= */
@media (max-width: 768px) {
  .logo-section > a {
    background: linear-gradient(105deg, #d1fae5 0%, #ecfdf5 42%, #ffffff 100%) !important;
    border: 1px solid rgba(16,185,129,0.22) !important;
    border-radius: 999px !important;
    padding: 5px 15px 5px 9px !important;
    gap: 8px !important;
    box-shadow: 0 1px 4px rgba(16,185,129,0.12) !important;
  }
  .logo-section > a > svg {
    filter: drop-shadow(0 1px 3px rgba(16,185,129,0.22)) !important;
  }
  .logo-section > a > div > span:first-child {
    background: linear-gradient(120deg, #065f46 0%, #059669 55%, #10b981 100%) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
    letter-spacing: -0.02em !important;
  }
}

/* =========================================================================
   MOBILE TOP-HEADER — premium finish
   neutral avatar · header breathing room · crisper logo edge
   ========================================================================= */
@media (max-width: 768px) {
  /* avatar -> neutral (recede it; keep the emerald palette uncluttered) */
  .mobile-menu-btn {
    width: 32px !important; height: 32px !important; padding: 0 !important;
    border-radius: 50% !important; top: calc(var(--mh, 55px) / 2) !important; transform: translateY(-50%) !important;
    background: #f3f4f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/17px no-repeat !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(15,23,42,0.06) !important;
  }

  /* form header -> more vertical breathing room */
  .rd-step-bar {
    height: 56px !important; min-height: 56px !important; max-height: 56px !important;
    padding: 8px 14px !important;
  }

  /* logo pill -> crisper edge (keep the emerald wash) */
  .logo-section > a { border-color: rgba(16,185,129,0.3) !important; }
}

/* =========================================================================
   ANIMATED LOGO SHIMMER — subtle premium sheen across the wordmark
   ========================================================================= */
@keyframes atsLogoShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (max-width: 768px) {
  .logo-section > a > div > span:first-child {
    background: linear-gradient(120deg, #065f46 0%, #059669 28%, #34d399 50%, #059669 72%, #10b981 100%) !important;
    background-size: 220% 100% !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
    animation: atsLogoShimmer 2s ease-in-out infinite !important;
  }
}
/* respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .logo-section > a > div > span:first-child { animation: none !important; }
}

/* =========================================================================
   LOGO SHIMMER — apply on ALL resolutions (desktop, tablet, mobile)
   Overrides the span's inline gradient; global (not inside a media query).
   ========================================================================= */
.logo-section > a > div > span:first-child {
  background: linear-gradient(120deg, #065f46 0%, #059669 26%, #34d399 50%, #059669 74%, #10b981 100%) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  animation: atsLogoShimmer 5s ease-in-out infinite !important;
}
@media (prefers-reduced-motion: reduce) {
  .logo-section > a > div > span:first-child { animation: none !important; }
}

/* =========================================================================
   ANIMATED BACKGROUND WASH on the logo pill (modern) + static clean wordmark.
   BG animation is mobile-only (the pill only exists on mobile).
   ========================================================================= */
@keyframes atsPillWash {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (max-width: 768px) {
  .logo-section > a {
    background: linear-gradient(105deg, #d1fae5 0%, #ecfdf5 35%, #ffffff 60%, #ecfdf5 85%, #d1fae5 100%) !important;
    background-size: 220% 100% !important;
    animation: atsPillWash 5s ease-in-out infinite !important;
  }
  /* wordmark: clean static gradient now that the BG is what moves */
  .logo-section > a > div > span:first-child {
    background: linear-gradient(120deg, #065f46 0%, #059669 55%, #10b981 100%) !important;
    background-size: 100% 100% !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
    animation: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-section > a { animation: none !important; }
}

/* =========================================================================
   MOBILE PREVIEW OVERLAY HEADER -> WHITE (match desktop preview header)
   ========================================================================= */
@media (max-width: 768px) {
  .preview-overlay .preview-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04) !important;
  }
  .preview-overlay .mobile-lp-label { color: #0f172a !important; }
  .preview-overlay .mobile-lp-dot   { background: #10b981 !important; }

  .preview-overlay .page-navigation,
  .preview-overlay .zoom-controls {
    background: #ffffff !important;
    border: 1px solid #d8dee7 !important;
  }
  .preview-overlay .nav-btn,
  .preview-overlay .zoom-controls button { color: #475569 !important; }
  .preview-overlay .nav-btn:hover,
  .preview-overlay .zoom-controls button:hover { background: #f1f5f9 !important; color: #0f172a !important; }
  .preview-overlay .page-info,
  .preview-overlay #mobileZoomLevel { color: #334155 !important; }

  /* Download = solid emerald primary */
  .preview-overlay .download-btn {
    background: #10b981 !important; color: #ffffff !important; border: none !important;
    border-radius: 7px !important; font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(16,185,129,0.32) !important;
  }
  .preview-overlay .download-btn:hover { background: #059669 !important; }

  /* close (✕) reads on white */
  .preview-overlay .preview-close { color: #475569 !important; background: #f3f4f6 !important; border: 1px solid #e5e7eb !important; }
}

/* =========================================================================
   PREVIEW OVERLAY HEADER FIXES — visible ✕, no label wrap, fits on phones
   ========================================================================= */
@media (max-width: 768px) {
  /* make the close ✕ visible on the white header */
  .preview-overlay .preview-close svg { stroke: #475569 !important; }
  .preview-overlay .preview-close:hover { background: #e5e7eb !important; }

  /* keep the label on one line + let it shrink instead of wrapping */
  .preview-overlay .mobile-lp-label {
    white-space: nowrap !important; font-size: 12px !important;
    flex-shrink: 1 !important; min-width: 0 !important; overflow: hidden !important;
  }
  /* tighten controls so everything fits in one row */
  .preview-overlay .preview-controls { gap: 6px !important; }
  .preview-overlay .download-btn { padding: 0 10px !important; }
  .preview-overlay .page-navigation,
  .preview-overlay .zoom-controls { flex-shrink: 0 !important; }
}
/* very narrow phones: drop the redundant label (overlay is obviously the preview) */
@media (max-width: 430px) {
  .preview-overlay .mobile-lp-label { display: none !important; }
}

/* =========================================================================
   PREVIEW OVERLAY HEADER — animated emerald "growth" gradient
   no label · black close w/ red ✕ · white-on-green controls
   ========================================================================= */
@keyframes atsGrowthFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (max-width: 768px) {
  .preview-overlay .preview-header {
    background: linear-gradient(120deg, #065f46 0%, #059669 28%, #10b981 52%, #34d399 74%, #10b981 100%) !important;
    background-size: 280% 100% !important;
    animation: atsGrowthFlow 6s ease-in-out infinite !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 0 2px 10px rgba(6,95,70,0.25) !important;
  }
  /* remove the "Live Preview" label entirely */
  .preview-overlay .mobile-lp-label { display: none !important; }

  /* controls -> translucent white on the green header */
  .preview-overlay .page-navigation,
  .preview-overlay .zoom-controls {
    background: rgba(255,255,255,0.18) !important; border: 1px solid rgba(255,255,255,0.30) !important;
  }
  .preview-overlay .nav-btn,
  .preview-overlay .zoom-controls button,
  .preview-overlay .page-info,
  .preview-overlay #mobileZoomLevel { color: #ffffff !important; }

  /* Download -> white button, emerald text (pops on green) */
  .preview-overlay .download-btn {
    background: #ffffff !important; color: #059669 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18) !important;
  }
  .preview-overlay .download-btn svg { stroke: #059669 !important; }

  /* close ✕ -> black background, red cross */
  .preview-overlay .preview-close { background: #0f172a !important; border: none !important; }
  .preview-overlay .preview-close svg { stroke: #ef4444 !important; }
  .preview-overlay .preview-close:hover { background: #1e293b !important; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-overlay .preview-header { animation: none !important; }
}

/* =========================================================================
   MOBILE BOTTOM-NAV DOWNLOAD (replaces New) — emerald, pairs with Preview
   ========================================================================= */
@media (max-width: 768px) {
  .mobile-bottom-btn.download-btn .btn-icon svg { stroke: #059669 !important; }
  .mobile-bottom-btn.download-btn .btn-label    { color: #059669 !important; font-weight: 600 !important; }
  .mobile-bottom-btn.download-btn:active .btn-icon svg,
  .mobile-bottom-btn.download-btn:active .btn-label { stroke: #047857 !important; color: #047857 !important; }
}

/* =========================================================================
   MOBILE FLOATING NEW (FAB) — compact, blended, premium; above the bottom nav
   ========================================================================= */
.mobile-new-fab { display: none; }
@media (max-width: 768px) {
  .mobile-new-fab {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    position: fixed !important; right: 14px !important;
    bottom: calc(var(--bn, 62px) + env(safe-area-inset-bottom, 0px) + 14px) !important;
    z-index: 900 !important;
    width: 42px !important; height: 42px !important; padding: 0 !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid #e5e7eb !important; border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(15,23,42,0.12), 0 1px 3px rgba(15,23,42,0.06) !important;
    backdrop-filter: saturate(140%) blur(6px) !important; -webkit-backdrop-filter: saturate(140%) blur(6px) !important;
    cursor: pointer !important; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
  }
  .mobile-new-fab svg { width: 18px !important; height: 18px !important; stroke: #059669 !important; }
  .mobile-new-fab:active {
    transform: scale(0.93) !important; border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15,23,42,0.14) !important;
  }
  /* hide the FAB whenever an overlay / drawer is open */
  body:has(.preview-overlay.active) .mobile-new-fab,
  body.hamburger-menu-open .mobile-new-fab,
  body:has(.resume-sections-panel.open) .mobile-new-fab,
  body:has(.mobile-menu-panel.open) .mobile-new-fab { display: none !important; }
}

/* =========================================================================
   AVATAR -> CLEAN ✕ WHEN MENU OPEN (no person icon showing behind the cross)
   ========================================================================= */
@media (max-width: 768px) {
  .mobile-menu-btn { transition: none !important; }
  .mobile-menu-btn.open,
  body:has(.mobile-menu-panel.open) .mobile-menu-btn {
    transition: none !important;
    background: #f3f4f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/16px no-repeat !important;
  }
  .mobile-menu-btn.open span,
  body:has(.mobile-menu-panel.open) .mobile-menu-btn span { display: none !important; }
}

/* =========================================================================
   OPTION A — animate the WORDMARK (deep sheen), stop the pill background wash
   ========================================================================= */
@media (max-width: 768px) {
  /* stop the pill background from moving (wordmark moves instead) */
  .logo-section > a { animation: none !important; }
  /* animated deep-emerald sheen on the wordmark, matching desktop */
  .logo-section > a > div > span:first-child {
    background: linear-gradient(120deg, #065f46 0%, #059669 30%, #10b981 50%, #059669 70%, #065f46 100%) !important;
    background-size: 220% 100% !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
    animation: atsLogoShimmer 2s ease-in-out infinite !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-section > a > div > span:first-child { animation: none !important; }
}

/* =========================================================================
   DEFINITIVE WORDMARK ANIMATION — all resolutions, beats inline + prior rules
   (must stay LAST in this file)
   ========================================================================= */
.logo-section > a > div > span:first-child {
  background: linear-gradient(120deg, #065f46 0%, #059669 28%, #10b981 50%, #059669 72%, #065f46 100%) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  animation: atsLogoShimmer 3s ease-in-out infinite !important;
}
@media (prefers-reduced-motion: reduce) {
  .logo-section > a > div > span:first-child { animation: none !important; }
}