/* AIApply-inspired homepage refresh for index.html */
:root {
  --primary-blue: #2368f6;
  --primary-blue-dark: #1246be;
  --secondary-blue: #15c1ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe6f3;
  --soft: #f4f8ff;
  --card: #ffffff;
  --success: #19c37d;
  --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 16px 40px rgba(35, 104, 246, 0.12);
}

.dashboard-page {
  margin: 0;
  padding-top: 64px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 193, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(35, 104, 246, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 46%, #f5f8ff 100%);
  color: var(--ink);
  line-height: 1.5;
}

.main-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(219, 230, 243, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
  color: var(--ink);
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
}

.header-content {
  max-width: 1220px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .logo-img { width: 30px; height: 30px; object-fit: contain; }
.brand .logo { color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -0.04em; }
.header-nav, .nav-links { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: #334155; text-decoration: none; font-size: 14px; font-weight: 600; }
.header-nav a:hover, .header-nav a.active { color: var(--primary-blue); }
.user-menu { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 7px 10px; border-radius: 999px; background: #f1f6ff; color: var(--ink); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.dropdown-arrow { color: var(--muted); font-size: 12px; }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 210px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-xl); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: 0.2s ease; }
.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.dropdown-item:hover { background: #f1f6ff; color: var(--primary-blue); }
.dropdown-divider { height: 1px; background: var(--line); margin: 4px 0; }
.logout-icon { color: var(--primary-blue); }

.hero-banner { padding: 44px 24px 20px; }
.hero-content {
  max-width: 1220px;
  min-height: 570px;
  margin: 0 auto;
  padding: 58px;
  border-radius: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 48%, #dbeafe 100%);
  border: 1px solid rgba(219, 230, 243, 0.9);
  box-shadow: var(--shadow-xl);
}
.hero-content::before { content: ''; position: absolute; width: 520px; height: 520px; right: -150px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(21, 193, 255, 0.34), transparent 68%); }
.hero-copy, .hero-showcase { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; padding: 9px 14px; border: 1px solid #bfdbfe; border-radius: 999px; background: rgba(255,255,255,0.72); color: var(--primary-blue-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-content h1 { margin: 22px 0 18px; max-width: 760px; color: var(--ink); font-size: clamp(48px, 6vw, 82px); line-height: 0.96; letter-spacing: -0.07em; font-weight: 900; }
.hero-highlight { color: var(--primary-blue); }
.hero-subtitle { max-width: 630px; margin: 0; color: #475569; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; }
.hero-primary-cta, .continue-btn { border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, var(--ink), var(--primary-blue)); box-shadow: 0 18px 38px rgba(35, 104, 246, 0.24); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.hero-primary-cta { padding: 15px 24px; }
.continue-btn { padding: 15px 34px; font-size: 15px; }
.hero-primary-cta:hover, .continue-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(35, 104, 246, 0.3); }
.hero-rating { color: #f59e0b; font-size: 14px; }
.hero-rating strong { color: #334155; margin-left: 6px; }
.hero-showcase { min-height: 455px; }
.floating-card { position: absolute; background: rgba(255,255,255,0.86); border: 1px solid rgba(219,230,243,.9); border-radius: 26px; box-shadow: var(--shadow-md); backdrop-filter: blur(20px); }
.cover-card { top: 0; left: 0; width: 355px; padding: 24px; transform: rotate(-3deg); }
.card-topline, .jobs-card-header, .preview-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #64748b; font-size: 13px; font-weight: 700; }
.card-topline strong, .jobs-card-header strong, .preview-header strong { color: var(--success); }
.cover-card p { margin: 18px 0 0; color: #334155; font-size: 14px; line-height: 1.7; }
.jobs-card { right: 0; top: 105px; width: 340px; padding: 22px; }
.job-row { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 13px; border: 1px solid #eaf1fb; border-radius: 17px; background: #fff; }
.job-row.active { background: #eff6ff; border-color: #bfdbfe; }
.company-dot { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: white; font-weight: 900; }
.google-dot { background: #4285f4; } .stripe-dot { background: #635bff; } .meta-dot { background: #0a66c2; }
.job-row strong { display: block; color: var(--ink); font-size: 14px; }
.job-row small { display: block; color: var(--muted); }
.mini-resume-card { left: 60px; bottom: 25px; padding: 18px 20px; display: flex; align-items: center; gap: 13px; width: 300px; }
.pulse-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 8px rgba(25,195,125,.14); }
.mini-resume-card strong, .preview-step strong { display: block; color: var(--ink); }
.mini-resume-card small, .preview-step small { color: var(--muted); }

.main-content { max-width: 1080px; margin: 0 auto; padding: 24px; }
.trust-strip { margin: 4px auto 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-strip div { padding: 20px; border-radius: 22px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(15,23,42,.05); }
.trust-strip strong { display: block; font-size: 25px; letter-spacing: -0.04em; color: var(--ink); }
.trust-strip span { color: var(--muted); font-size: 13px; font-weight: 600; }
.content-wrapper { background: white; border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow-xl); overflow: hidden; }
.form-section { padding: 34px; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-eyebrow { color: var(--primary-blue); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.section-title { margin: 8px 0 8px; color: var(--ink); font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.05em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: stretch; }
.form-column { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field label { margin-bottom: 7px; color: #172033; font-size: 13px; font-weight: 800; }
.form-field input[type="text"], .form-field input[type="email"], .industry-input, .form-field select { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1.5px solid #d8e4f2; border-radius: 16px; background: #f8fbff; color: var(--ink); font: inherit; font-size: 14px; transition: .2s ease; }
.form-field input:focus, .industry-input:focus, .form-field select:focus { outline: none; border-color: var(--primary-blue); background: white; box-shadow: 0 0 0 5px rgba(35,104,246,.10); }
.form-field input::placeholder, .industry-input::placeholder { color: #94a3b8; }
.form-field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); background-position: right 14px center; background-repeat: no-repeat; background-size: 16px; padding-right: 42px; }
.dropdown-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-upload-area { padding: 26px 18px; border: 1.5px dashed #93c5fd; border-radius: 22px; background: linear-gradient(135deg, #eff6ff, #f8fbff); text-align: center; cursor: pointer; transition: .2s ease; }
.file-upload-area:hover, .file-upload-area.highlight { transform: translateY(-2px); border-color: var(--primary-blue); box-shadow: var(--shadow-md); }
.upload-icon { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: white; color: var(--primary-blue); font-size: 24px; font-weight: 900; box-shadow: 0 8px 20px rgba(35,104,246,.12); }
.upload-text { display: block; color: var(--ink); font-size: 14px; font-weight: 800; }
.file-upload-area small { display: block; margin-top: 5px; color: var(--muted); }
.file-name { margin: 8px 0 0; color: var(--primary-blue); font-weight: 700; }
.hidden { display: none !important; }
.industries-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.industry-input-wrapper { display: flex; align-items: center; gap: 8px; }
.remove-industry-btn { width: 40px; height: 40px; border: 0; border-radius: 13px; background: #fff1f2; color: #e11d48; font-size: 22px; font-weight: 800; cursor: pointer; }
.remove-industry-btn:hover { background: #e11d48; color: white; }
.add-industry-btn { align-self: flex-start; padding: 11px 16px; border: 1.5px dashed #93c5fd; border-radius: 999px; background: white; color: var(--primary-blue); font-weight: 800; cursor: pointer; }
.add-industry-btn:hover { background: #eff6ff; }
.illustration-column { display: flex; }
.campaign-preview-card { width: 100%; min-height: 100%; padding: 25px; border-radius: 28px; color: white; background: radial-gradient(circle at top right, rgba(21,193,255,.42), transparent 36%), linear-gradient(160deg, #0f172a, #123b7a 55%, #2368f6); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), var(--shadow-md); box-sizing: border-box; }
.preview-header { color: rgba(255,255,255,.75); }
.preview-header strong { color: white; }
.preview-progress { height: 10px; margin: 24px 0; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.preview-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--secondary-blue), #7dd3fc); }
.preview-step { display: flex; gap: 13px; padding: 16px; margin-bottom: 13px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.preview-step span { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; display: grid; place-items: center; background: rgba(255,255,255,.16); color: white; font-weight: 900; }
.preview-step.done span { background: var(--success); }
.preview-step strong { color: white; }
.preview-step small { color: rgba(255,255,255,.72); }
.preview-metric { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; align-items: end; margin-top: 24px; }
.preview-metric strong { font-size: 38px; line-height: .85; letter-spacing: -.06em; }
.preview-metric span { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; }
.continue-section { margin-top: 24px; }

.main-footer { margin-top: 70px; padding: 56px 24px; color: white; background: #071a33; }
.footer-content { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 60px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo .logo-img { width: 34px; height: 34px; object-fit: contain; }
.logo-text { color: white; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; }
.footer-brand p { max-width: 480px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.footer-contact h4 { margin: 0 0 12px; color: var(--secondary-blue); font-size: 30px; line-height: 1.05; }
.contact-highlight { color: white; }
.footer-contact a { display: block; color: rgba(255,255,255,.86); text-decoration: none; font-weight: 600; }
.footer-help-links { display: flex; gap: 16px; margin-top: 18px; }

.loading-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10000; background: rgba(15,23,42,.72); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; }
.loading-modal.show { display: flex; opacity: 1; }
.loading-content { width: min(90%, 420px); padding: 38px; border-radius: 26px; background: white; text-align: center; box-shadow: var(--shadow-xl); }
.loading-text { margin-bottom: 22px; color: var(--ink); font-size: 18px; font-weight: 800; }
.spinner-ring { width: 42px; height: 42px; margin: auto; border: 4px solid #dbeafe; border-top-color: var(--primary-blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { height: 50px; padding: 9px 14px; border: 1.5px solid #d8e4f2; border-radius: 16px; background: #f8fbff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 30px; padding-left: 0; font-size: 14px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #94a3b8; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--primary-blue); box-shadow: 0 0 0 5px rgba(35,104,246,.10); }
.select2-container--default .select2-dropdown { border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.select2-container--default .select2-results__option { padding: 10px 14px; color: var(--ink); font-size: 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--primary-blue); color: white; }
.select2-container--default.select2-container--disabled .select2-selection--single { background: #e2e8f0; }

@media (max-width: 1020px) {
  .hero-content { grid-template-columns: 1fr; padding: 38px; }
  .hero-showcase { min-height: 390px; }
  .form-grid { grid-template-columns: 1fr; }
  .campaign-preview-card { min-height: auto; }
}
@media (max-width: 768px) {
  .dashboard-page { padding-top: 58px; }
  .header-content { height: 58px; padding: 0 16px; }
  .nav-links { display: none; }
  .hero-banner, .main-content { padding-left: 14px; padding-right: 14px; }
  .hero-content { min-height: auto; padding: 26px; border-radius: 26px; }
  .hero-subtitle { font-size: 16px; }
  .hero-showcase { display: none; }
  .trust-strip { grid-template-columns: 1fr; }
  .form-section { padding: 22px; }
  .dropdown-row { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}
