/* =================================================================
   GLOBAL RESET & BASE
================================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f0f4ff; min-height: 100vh; }

/* =================================================================
   NAV BAR
================================================================= */
.header {
    background: #1a1a2e;
    color: white;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-logo { font-size: 20px; font-weight: bold; color: white; text-decoration: none; letter-spacing: 0.3px; }
.header-logo span { color: #f0a500; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { color: #bbb; text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.nav-link:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-link.active { background: rgba(46,117,182,0.25); color: #5b9bd5; }
.header-right { display: flex; align-items: center; gap: 10px; }
.credit-pill { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 4px 12px; font-size: 12px; color: #ddd; white-space: nowrap; }
.credit-pill .pill-label { color: #999; font-size: 11px; }
.credit-pill .pill-value { color: white; font-weight: bold; font-size: 13px; }
.credit-pill.low .pill-value { color: #ff8a65; }
.credit-total { background: #2E75B6; color: white; border-radius: 8px; padding: 4px 14px; font-size: 13px; font-weight: bold; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.credit-total:hover { background: #1a5a9a; }
.credit-total.low { background: #e64a19; }
.notif-btn { position: relative; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; color: #bbb; font-size: 18px; line-height: 1; text-decoration: none; display: flex; align-items: center; transition: background 0.15s, color 0.15s; }
.notif-btn:hover { background: rgba(255,255,255,0.08); color: white; }
@keyframes bellBounce { 0%,100%{transform:rotate(0deg);} 15%{transform:rotate(12deg);} 30%{transform:rotate(-10deg);} 45%{transform:rotate(8deg);} 60%{transform:rotate(-6deg);} 75%{transform:rotate(4deg);} }
.notif-btn.has-unread .bell-emoji { display: inline-block; animation: bellBounce 1.2s ease 0.8s 2; }
.notif-badge { position: absolute; top: 2px; right: 2px; background: #e53935; color: white; font-size: 10px; font-weight: bold; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px; pointer-events: none; }
.header-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.15); }
.logout-link { color: #aaa; text-decoration: none; font-size: 13px; padding: 6px 10px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.logout-link:hover { background: rgba(255,255,255,0.08); color: white; }
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #bbb; font-size: 22px; line-height: 1; transition: color 0.15s; }
.hamburger-btn:hover { color: white; }
.mobile-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #1a1a2e; border-top: 1px solid rgba(255,255,255,0.08); box-shadow: 0 6px 20px rgba(0,0,0,0.4); z-index: 99; flex-direction: column; padding: 8px 0; }
.mobile-nav.open { display: flex; }
.mobile-nav-link { color: #bbb; text-decoration: none; font-size: 15px; padding: 13px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.15s, color 0.15s; display: flex; align-items: center; gap: 10px; }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { background: rgba(255,255,255,0.06); color: white; }
.mobile-nav-link.active { color: #5b9bd5; background: rgba(46,117,182,0.15); }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
.mobile-nav-credits { padding: 10px 24px; font-size: 13px; color: #888; display: flex; gap: 16px; }
.mobile-nav-credits span { color: white; font-weight: bold; }

/* =================================================================
   PAGE CONTAINER
================================================================= */
.container { padding: 30px; max-width: 1100px; margin: 0 auto; }

/* =================================================================
   MOBILE NAV BREAKPOINT
================================================================= */
@media (max-width: 700px) {
    .header { padding: 0 16px; position: relative; }
    .header-nav { display: none; }
    .header-right { display: none; }
    .header-divider { display: none; }
    .hamburger-btn { display: flex; align-items: center; }
    .container { padding: 16px; }
}

/* =================================================================
   FLASH MESSAGES
================================================================= */
.flash-messages { margin-bottom: 20px; }
.tip-box { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; margin-bottom: 20px; background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%); border: 1px solid #ffe082; border-left: 3px solid #f9a825; border-radius: 8px; }
.tip-box-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; line-height: 1.4; }
.tip-box-body { font-size: 13px; color: #7a5800; line-height: 1.6; }
.tip-box-body strong { color: #5d4037; }
.flash-error   { background: #ffebee; border-left: 4px solid #e53935; padding: 10px 14px; border-radius: 8px; color: #c62828; font-size: 13px; margin-bottom: 8px; }
.flash-success { background: #e8f5e9; border-left: 4px solid #43a047; padding: 10px 14px; border-radius: 8px; color: #2e7d32; font-size: 13px; margin-bottom: 8px; }
.flash-info    { background: #e8f4fd; border-left: 4px solid #2E75B6; padding: 10px 14px; border-radius: 8px; color: #1a5a9a; font-size: 13px; margin-bottom: 8px; }
.flash-warning { background: #fff8e1; border-left: 4px solid #ffb300; padding: 10px 14px; border-radius: 8px; color: #7a5800; font-size: 13px; margin-bottom: 8px; }

/* =================================================================
   SHARED COMPONENTS
================================================================= */
.btn         { background: #2E75B6; color: white; padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; font-size: 14px; transition: background 0.2s, box-shadow 0.2s; }
.btn:hover   { background: #2563a8; box-shadow: 0 4px 12px rgba(46,117,182,0.35); color: white; }
.btn:disabled { background: #ccc; color: #666; cursor: not-allowed; box-shadow: none; }
.btn-outline       { background: white; color: #2E75B6; border: 1.5px solid #2E75B6; padding: 10px 20px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; font-size: 14px; transition: background 0.2s, box-shadow 0.2s; }
.btn-outline:hover { background: #eef4fc; box-shadow: 0 4px 12px rgba(46,117,182,0.15); color: #2E75B6; }
.btn-danger       { background: white; color: #e53935; border: 1px solid #e53935; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: background 0.2s; }
.btn-danger:hover { background: #ffebee; color: #e53935; }
.card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.card h3 { color: #2E75B6; margin-bottom: 10px; font-size: 16px; }

/* =================================================================
   DASHBOARD
================================================================= */
.dashboard-bg { position: fixed; inset: 0; z-index: -1; background: linear-gradient(160deg, #e8f0fb 0%, #f0f5ff 40%, #edf3ff 70%, #e4eeff 100%); overflow: hidden; }
.dashboard-bg::before { content: ""; position: absolute; top: -120px; right: -100px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(46,117,182,0.12) 0%, transparent 70%); filter: blur(40px); animation: blobDrift1 18s ease-in-out infinite alternate; }
.dashboard-bg::after { content: ""; position: absolute; bottom: -80px; left: -60px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(100,160,230,0.10) 0%, transparent 70%); filter: blur(50px); animation: blobDrift2 22s ease-in-out infinite alternate; }
.dashboard-bg-blob3 { position: absolute; top: 45%; left: 38%; width: 350px; height: 350px; background: radial-gradient(circle, rgba(180,210,250,0.09) 0%, transparent 70%); filter: blur(45px); animation: blobDrift3 26s ease-in-out infinite alternate; }
@keyframes blobDrift1 { from{transform:translate(0,0) scale(1);} to{transform:translate(-40px,30px) scale(1.08);} }
@keyframes blobDrift2 { from{transform:translate(0,0) scale(1);} to{transform:translate(30px,-40px) scale(1.06);} }
@keyframes blobDrift3 { from{transform:translate(0,0) scale(1);} to{transform:translate(-20px,20px) scale(1.04);} }
@keyframes cardFadeUp { from{opacity:0;transform:translateY(12px);} to{opacity:1;transform:translateY(0);} }
@keyframes waveIn { 0%{opacity:0;transform:translateY(-6px);} 100%{opacity:1;transform:translateY(0);} }
@keyframes wave { 0%,100%{transform:rotate(0deg);} 20%{transform:rotate(-10deg);} 40%{transform:rotate(14deg);} 60%{transform:rotate(-8deg);} 80%{transform:rotate(10deg);} }
.welcome-bar { margin-bottom: 24px; display: flex; align-items: center; justify-content: flex-start; gap: 96px; flex-wrap: wrap; padding: 8px 0; }
.welcome-bar-left { flex-shrink: 0; }
.welcome-bar-left h2 { color: #1a1a2e; font-size: 26px; font-weight: 700; margin-bottom: 4px; animation: waveIn 0.6s ease; }
.welcome-bar-left p { color: #666; font-size: 14px; }
.wave-emoji { display: inline-block; animation: wave 1.4s ease 0.5s 1; }
.announcement-banner { flex: 1; min-width: 0; background: linear-gradient(135deg, #1a1a2e 0%, #2E75B6 100%); padding: 16px 22px; display: flex; align-items: center; gap: 16px; animation: waveIn 0.6s ease 0.2s both; flex-wrap: wrap; border-radius: 8px; }
.announcement-banner .ab-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 3px; }
.announcement-banner .ab-left h3 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 3px; }
.progress-steps { display: flex; align-items: stretch; background: white; box-shadow: 0 4px 18px rgba(46,117,182,0.10); margin-bottom: 20px; animation: cardFadeUp 0.4s ease 0.1s both; border-radius: 8px; overflow: hidden; gap: 2px; }
.step { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 28px; text-decoration: none; transition: background 0.15s; position: relative; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); background: #eef4fc; }
.step:first-child { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); }
.step:hover:not(.disabled) { background: #ddeaf8; }
.step.active { background: #2E75B6; }
.step.completed { background: #2E75B6; }
.step.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; background: #eef4fc; }
.step-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #c5d9f0; color: #2E75B6; flex-shrink: 0; }
.step.active .step-num { background: rgba(255,255,255,0.25); color: white; }
.step.completed .step-num { background: rgba(255,255,255,0.25); color: white; }
.step-label { font-size: 13px; font-weight: 600; color: #2E75B6; }
.step.active .step-label { color: white; }
.step.completed .step-label { color: white; }
.step-sub { font-size: 11px; opacity: 0.7; margin-top: 1px; color: #5a8fc4; }
.step.active .step-sub { color: rgba(255,255,255,0.8); opacity: 1; }
.step.completed .step-sub { color: rgba(255,255,255,0.8); opacity: 1; }
.mobile-actions { display: none; }
.session-card { background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(46,117,182,0.10); border-left: 4px solid #2E75B6; padding: 18px 22px; margin-bottom: 20px; animation: cardFadeUp 0.4s ease 0.15s both; border-radius: 8px; }
.session-card-header { font-size: 11px; font-weight: 700; color: #2E75B6; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.session-card-query { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.session-card-meta { font-size: 12px; color: #888; margin-bottom: 12px; }
.session-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-card { background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(46,117,182,0.10), 0 1px 4px rgba(0,0,0,0.06); padding: 28px; display: flex; flex-direction: column; animation: cardFadeUp 0.4s ease 0.2s both; border-radius: 12px; }
.dash-card h3 { color: #2E75B6; font-size: 15px; font-weight: bold; margin-bottom: 18px; display: flex; align-items: center; gap: 7px; }
.dash-card-body { flex: 1; }
.dash-card-footer { margin-top: 18px; }
.activity-section { background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(46,117,182,0.10); padding: 22px 28px; margin-bottom: 20px; animation: cardFadeUp 0.4s ease 0.25s both; border-radius: 12px; }
.activity-section h3 { color: #1a1a2e; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.activity-section h3 a { font-size: 12px; color: #2E75B6; text-decoration: none; font-weight: 600; text-transform: none; letter-spacing: 0; }
.activity-section h3 a:hover { text-decoration: underline; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f4ff; line-height: 1.5; }
.activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.activity-dot.generated { background: #2E75B6; }
.activity-dot.search { background: #bbb; }
.activity-text { font-size: 13px; }
.activity-text.generated { color: #1a1a2e; font-weight: 600; }
.activity-text.search { color: #888; font-weight: 400; }
.activity-date { font-size: 11px; color: #bbb; margin-left: auto; flex-shrink: 0; padding-left: 10px; }
.empty-state { background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(46,117,182,0.10); padding: 28px; margin-bottom: 20px; text-align: center; animation: cardFadeUp 0.4s ease 0.25s both; border-radius: 12px; }
.empty-state p { color: #888; font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.resume-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; background: #f8fbff; margin-bottom: 7px; border: 1px solid #e0eaf7; border-radius: 6px; }
.resume-name { color: #1a1a2e; font-size: 13px; font-weight: bold; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.resume-meta { color: #888; font-size: 11px; }
.resume-badge { background: #e8f4fd; color: #2E75B6; padding: 2px 7px; font-size: 10px; font-weight: bold; margin-right: 5px; border-radius: 4px; }
.resume-menu-wrap { position: relative; margin-left: 8px; flex-shrink: 0; }
.resume-menu-btn { background: none; border: none; cursor: pointer; font-size: 16px; color: #999; padding: 4px 6px; line-height: 1; letter-spacing: 1px; transition: color 0.15s; border-radius: 4px; }
.resume-menu-btn:hover { color: #2E75B6; background: #f0f4ff; }
.resume-menu-dropdown { display: none; position: absolute; right: 0; top: 100%; background: white; border: 1px solid #e0eaf7; box-shadow: 0 4px 14px rgba(0,0,0,0.12); z-index: 100; min-width: 150px; border-radius: 8px; overflow: hidden; }
.resume-menu-dropdown.open { display: block; }
.resume-menu-item { display: block; width: 100%; padding: 9px 14px; background: none; border: none; text-align: left; font-size: 13px; cursor: pointer; color: #333; transition: background 0.12s; white-space: nowrap; text-decoration: none; }
.resume-menu-item:hover { background: #f8fbff; }
.resume-menu-delete { color: #e53935; }
.resume-menu-delete:hover { background: #ffebee; }
.credits-strip { text-align: center; font-size: 13px; color: #666; margin-bottom: 16px; animation: cardFadeUp 0.4s ease 0.25s both; }
.credits-strip a { color: #2E75B6; text-decoration: none; font-weight: 600; }
.credits-strip .low { color: #e64a19; font-weight: 700; }
.career-tip-strip { background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); border: 1px solid #ffe082; border-left: 3px solid #f9a825; padding: 12px 18px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #7a5800; animation: cardFadeUp 0.4s ease 0.3s both; border-radius: 8px; }
#tip-strip-text a { color: #7a5800; font-weight: 600; }
.dash-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.dash-main { min-width: 0; }
.dash-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-widget { background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(46,117,182,0.10); padding: 22px; animation: cardFadeUp 0.4s ease 0.2s both; border-radius: 12px; }
.sidebar-widget h3 { font-size: 13px; font-weight: 700; color: #1a1a2e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.sidebar-role-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f4ff; font-size: 13px; color: #444; line-height: 1.4; }
.sidebar-role-item:last-of-type { border-bottom: none; }
.sidebar-role-dot { width: 6px; height: 6px; border-radius: 50%; background: #2E75B6; flex-shrink: 0; }
.sidebar-activity-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0f4ff; font-size: 13px; color: #555; }
.sidebar-activity-row:last-of-type { border-bottom: none; }
.sidebar-activity-count { font-size: 16px; font-weight: 700; color: #2E75B6; min-width: 28px; text-align: right; }
.sidebar-activity-count.zero { color: #ccc; }
.sidebar-empty-hint { font-size: 12px; color: #999; margin-top: 12px; line-height: 1.5; }
.sidebar-momentum { font-size: 12px; color: #2e7d32; font-weight: 600; margin-top: 10px; }
.sidebar-divider { border: none; border-top: 1px solid #e8f0fb; margin: 4px 0; }
@media (max-width: 1100px) { .dash-layout { grid-template-columns: 1fr 300px; } }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } .dash-grid { grid-template-columns: 1fr; } .welcome-bar { gap: 16px; } }
@media (max-width: 700px) {
    .progress-steps { display: none; }
    .mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; animation: cardFadeUp 0.4s ease 0.1s both; }
    .mobile-action-btn { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; font-size: 15px; font-weight: 600; background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(46,117,182,0.10); color: #1a1a2e; transition: background 0.15s; border-radius: 8px; }
    .mobile-action-btn.primary { background: #2E75B6; color: white; }
    .mobile-action-btn.primary:hover { background: #1a5a9a; }
    .mobile-action-btn.disabled { opacity: 0.4; pointer-events: none; }
    .mobile-action-icon { font-size: 20px; flex-shrink: 0; }
    .mobile-action-label { flex: 1; }
    .mobile-action-sub { font-size: 12px; opacity: 0.7; font-weight: 400; }
    .mobile-action-arrow { font-size: 18px; }
    .welcome-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .announcement-banner { min-width: 0; width: 100%; }
    .career-tip-strip { font-size: 12px; padding: 10px 14px; }
    .dash-sidebar { display: none; }
}


/* =================================================================
   ADMIN — ANALYTICS
================================================================= */
/* ── Admin nav ── */
.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.admin-nav a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #666;
    background: white;
    border: 1px solid #ddd;
    transition: all 0.15s;
}
.admin-nav a:hover  { background: #f0f4ff; color: #2E75B6; border-color: #2E75B6; }
.admin-nav a.active { background: #2E75B6; color: white; border-color: #2E75B6; }

/* ── Page header ── */
.page-header { margin-bottom: 28px; }
.page-header h2 { color: #1a1a2e; font-size: 22px; margin-bottom: 4px; }
.page-header p  { color: #888; font-size: 14px; }

/* ── Stat cards row ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-align: center;
}
.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-card .stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.stat-card.blue  .stat-value { color: #2E75B6; }
.stat-card.green .stat-value { color: #27ae60; }
.stat-card.amber .stat-value { color: #e67e22; }
.stat-card.purple.stat-value { color: #8e44ad; }

/* ── Chart cards ── */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.chart-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 20px 24px;
}
.chart-card h3 {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.chart-card canvas { width: 100% !important; }

/* ── Enrichment donut row ── */
.enrichment-row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.enrichment-legend { flex: 1; min-width: 140px; }
.enrichment-legend .leg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
.leg-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Recent users table ── */
.recent-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 28px;
}
.recent-card h3 {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a2e;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    background: #1a1a2e;
    color: white;
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.3px;
}
tbody tr { border-bottom: 1px solid #f5f5f5; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8fbff; }
tbody td { padding: 11px 16px; color: #444; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
}
.badge-green  { background: #e6f9ef; color: #27ae60; }
.badge-grey   { background: #f0f0f0; color: #888; }
.badge-amber  { background: #fff4e0; color: #e67e22; }

/* ── Revenue note ── */
.revenue-note {
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
}

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

/* =================================================================
   ADMIN — PROMO CODES
================================================================= */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-header h2 { color: #1a1a2e; font-size: 22px; margin-bottom: 3px; }
.admin-header p  { color: #888; font-size: 14px; }

.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.admin-nav a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #666;
    background: white;
    border: 1px solid #ddd;
    transition: all 0.15s;
}
.admin-nav a:hover  { background: #f0f4ff; color: #2E75B6; border-color: #2E75B6; }
.admin-nav a.active { background: #2E75B6; color: white; border-color: #2E75B6; }

/* Create form card */
.create-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 24px;
    margin-bottom: 24px;
}
.create-card h3 { color: #2E75B6; font-size: 16px; margin-bottom: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    color: #555;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
}
.form-group input:focus { outline: none; border-color: #2E75B6; }

/* Codes table */
.codes-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
}
.codes-card h3 {
    color: #2E75B6;
    font-size: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    background: #1a1a2e;
    color: white;
    padding: 11px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.3px;
}
tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8fbff; }
tbody td { padding: 12px 16px; color: #444; vertical-align: middle; }

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
}
.status-active   { background: #e8f5e9; color: #2e7d32; }
.status-inactive { background: #ffebee; color: #c62828; }
.status-expired  { background: #fff3e0; color: #e65100; }

.progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    min-width: 60px;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: #2E75B6;
    transition: width 0.3s;
}
.progress-pct { font-size: 11px; color: #888; white-space: nowrap; }

.action-btn {
    padding: 5px 12px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.15s;
}
.btn-deactivate { background: #ffebee; color: #c62828; }
.btn-deactivate:hover { background: #e53935; color: white; }
.btn-activate   { background: #e8f5e9; color: #2e7d32; }
.btn-activate:hover { background: #43a047; color: white; }

.empty-state {
    padding: 40px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* Redemptions list */
.redemptions-list {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    max-height: 60px;
    overflow-y: auto;
}

/* =================================================================
   ADMIN — USERS
================================================================= */
.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.admin-nav a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #666;
    background: white;
    border: 1px solid #ddd;
    transition: all 0.15s;
}
.admin-nav a:hover  { background: #f0f4ff; color: #2E75B6; border-color: #2E75B6; }
.admin-nav a.active { background: #2E75B6; color: white; border-color: #2E75B6; }

.page-header { margin-bottom: 24px; }
.page-header h2 { color: #1a1a2e; font-size: 22px; margin-bottom: 3px; }
.page-header p  { color: #888; font-size: 14px; }

.users-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
}
.users-card h3 {
    color: #2E75B6;
    font-size: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    background: #1a1a2e;
    color: white;
    padding: 11px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.3px;
}
tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8fbff; }
tbody td { padding: 12px 16px; color: #444; vertical-align: middle; }

.admin-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    background: #fff3e0;
    color: #e65100;
}
.user-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    background: #f0f4ff;
    color: #2E75B6;
}
.you-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    background: #e8f5e9;
    color: #2e7d32;
    margin-left: 6px;
}

.action-btn {
    padding: 5px 12px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.15s;
}
.btn-promote  { background: #fff3e0; color: #e65100; }
.btn-promote:hover  { background: #ff9800; color: white; }
.btn-demote   { background: #ffebee; color: #c62828; }
.btn-demote:hover   { background: #e53935; color: white; }
.credit-form { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.credit-input { width: 55px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 8px; font-size: 12px; text-align: center; }
.credit-select { padding: 4px 6px; border: 1px solid #ddd; border-radius: 8px; font-size: 12px; }
.btn-add    { background: #e8f5e9; color: #2e7d32; padding: 4px 10px; border: none; border-radius: 8px; font-size: 12px; cursor: pointer; font-weight: bold; }
.btn-add:hover    { background: #2e7d32; color: white; }
.btn-remove { background: #ffebee; color: #c62828; padding: 4px 10px; border: none; border-radius: 8px; font-size: 12px; cursor: pointer; font-weight: bold; }
.btn-remove:hover { background: #c62828; color: white; }

/* =================================================================
   CREDITS
================================================================= */
.page-header { margin-bottom: 25px; }
.page-header h2 { color: #1a1a2e; font-size: 22px; margin-bottom: 5px; }
.page-header p  { color: #666; font-size: 14px; }

/* ── Current balance ─────────────────────────────────────────────── */
.balance-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.balance-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 22px 24px;
}
.balance-card .label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.balance-card .value {
    color: #1a1a2e;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}
.balance-card .value.low { color: #e64a19; }
.balance-card .sub {
    color: #999;
    font-size: 12px;
}

/* ── Top-up packs ────────────────────────────────────────────────── */
.section-title {
    color: #1a1a2e;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 6px;
}
.section-sub {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pack-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 28px 24px;
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.pack-card:hover {
    border-color: #2E75B6;
    box-shadow: 0 4px 16px rgba(46,117,182,0.15);
}
.pack-card.popular {
    border-color: #2E75B6;
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2E75B6;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.pack-credits {
    font-size: 42px;
    font-weight: bold;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 4px;
}
.pack-credits-label {
    color: #888;
    font-size: 13px;
    margin-bottom: 16px;
}
.pack-price {
    font-size: 24px;
    font-weight: bold;
    color: #2E75B6;
    margin-bottom: 4px;
}
.pack-per-credit {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 20px;
}
.pack-features {
    list-style: none;
    margin-bottom: 22px;
    text-align: left;
}
.pack-features li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
}
.pack-features li::before {
    content: "✓ ";
    color: #43a047;
    font-weight: bold;
}

.btn-buy {
    width: 100%;
    background: #2E75B6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: block;
}
.btn-buy:hover {
    background: #1a5c9a;
    color: white;
    text-decoration: none;
}
.btn-buy:disabled,
.btn-buy.disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}

/* ── Subscription banner ─────────────────────────────────────────── */
.subscription-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #2E75B6 100%);
    border-radius: 8px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: white;
}
.subscription-banner h3 { font-size: 18px; margin-bottom: 6px; }
.subscription-banner p  { font-size: 14px; color: rgba(255,255,255,0.75); }
.btn-subscribe {
    background: white;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: not-allowed;
    white-space: nowrap;
    opacity: 0.7;
}

/* ── Transaction history ─────────────────────────────────────────── */
.history-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 24px;
}
.history-card h3 { color: #2E75B6; font-size: 16px; margin-bottom: 16px; }

.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.tx-row:last-child { border-bottom: none; }
.tx-desc  { color: #444; }
.tx-date  { color: #aaa; font-size: 12px; margin-top: 2px; }
.tx-amount { font-weight: bold; white-space: nowrap; padding-left: 12px; }
.tx-amount.positive { color: #2e7d32; }
.tx-amount.negative { color: #c62828; }

.empty-state {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    padding: 20px 0;
}

/* ── Stripe badge ────────────────────────────────────────────────── */
.stripe-badge {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.stripe-badge a {
    color: #aaa;
    text-decoration: none;
}

@media (max-width: 700px) {
    .balance-row {
        grid-template-columns: 1fr;
    }
    .packs-grid {
        grid-template-columns: 1fr;
    }
    .subscription-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .subscription-banner > div:last-child {
        text-align: left;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .balance-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .packs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =================================================================
   ENRICH RESUME
================================================================= */
/* ── Two-column grid ─────────────────────────────────────────────────────── */
.enrich-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 820px) {
    .enrich-grid { grid-template-columns: 1fr; }
    .enrich-sidebar { order: -1; }
}

/* ── Page header (inside left col) ──────────────────────────────────────── */
.page-title    { color: #1a1a2e; font-size: 22px; margin: 0 0 6px 0; }
.page-subtitle { color: #666; font-size: 14px; margin-bottom: 14px; line-height: 1.5; }
.resume-chip   { display: inline-flex; align-items: center; gap: 6px; background: #e8f0fb;
                 color: #2E75B6; padding: 4px 12px; font-size: 13px; font-weight: 600;
                 margin-bottom: 16px; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress-wrap  { background: #eee; height: 6px; margin-bottom: 20px; }
.progress-fill  { background: #2E75B6; height: 6px; transition: width 0.3s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px;
                  color: #999; margin-bottom: 6px; }

/* ── Question cards ──────────────────────────────────────────────────────── */
.question-card {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 22px 24px;
    margin-bottom: 16px;
    border-left: 4px solid #e0e0e0;
    transition: border-color 0.2s;
    border-radius: 8px;
}
.question-card.answered { border-left-color: #2E75B6; }
.question-card.error    { border-left-color: #c0392b; }
.q-number { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase;
            letter-spacing: 0.8px; margin-bottom: 6px; }
.q-text   { color: #1a1a2e; font-size: 15px; font-weight: 600; margin-bottom: 14px; line-height: 1.4; }

/* ── Text answer ─────────────────────────────────────────────────────────── */
.q-textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd;
    font-size: 14px; color: #333; font-family: inherit;
    line-height: 1.5; resize: vertical; min-height: 90px;
    box-sizing: border-box; transition: border-color 0.15s; border-radius: 8px;
}
.q-textarea:focus { outline: none; border-color: #2E75B6; box-shadow: 0 0 0 3px rgba(46,117,182,0.1); }
.char-count { text-align: right; font-size: 11px; color: #bbb; margin-top: 4px; }

/* ── Choice answer ───────────────────────────────────────────────────────── */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-option {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border: 2px solid #e0e0e0;
    cursor: pointer; font-size: 13px; color: #444;
    transition: all 0.15s; line-height: 1.3;
}
.choice-option:hover                { border-color: #2E75B6; background: #f5f8ff; }
.choice-option input[type="radio"]  { accent-color: #2E75B6; flex-shrink: 0; }
.choice-option.selected             { border-color: #2E75B6; background: #eef3fb; color: #1a1a2e; font-weight: 600; }

/* ── Field error ─────────────────────────────────────────────────────────── */
.field-error      { color: #c0392b; font-size: 12px; margin-top: 6px; display: none; }
.field-error.show { display: block; }

/* ── Draft pill ──────────────────────────────────────────────────────────── */
.draft-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff8e1; border: 1px solid #ffe082;
    color: #795548; font-size: 12px; font-weight: 600; padding: 3px 10px;
}

/* ── Action bar (bottom of form) ─────────────────────────────────────────── */
.action-bar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.btn-skip   { background: none; border: 1px solid #ddd; color: #888; font-size: 13px;
              cursor: pointer; padding: 8px 16px; }
.btn-skip:hover { background: #f5f5f5; }
.btn-draft  { background: white; color: #2E75B6; border: 2px solid #2E75B6;
              padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
              transition: all 0.15s; border-radius: 8px; }
.btn-draft:hover { background: #f0f4ff; }
.btn-submit { background: #2E75B6; color: white; border: none;
              padding: 9px 20px; font-size: 14px; font-weight: 600;
              cursor: pointer; transition: background 0.15s; }
.btn-submit:hover { background: #1a5a9a; }

/* ── Sidebar widget ──────────────────────────────────────────────────────── */
.sidebar-widget {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-widget h4 {
    color: #1a1a2e; font-size: 14px; font-weight: 700;
    margin: 0 0 14px 0; padding-bottom: 10px;
    border-bottom: 2px solid #e8f0fb;
}
.benefit-item {
    display: flex; align-items: flex-start; gap: 8px;
    margin-bottom: 11px; font-size: 13px; color: #444; line-height: 1.4;
}
.benefit-icon { flex-shrink: 0; margin-top: 1px; }
.btn-skip-sidebar {
    display: block; width: 100%; margin-top: 16px;
    background: white; color: #2E75B6; border: 1.5px solid #2E75B6;
    padding: 9px 14px; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: center; box-sizing: border-box;
    transition: all 0.15s;
}
.btn-skip-sidebar:hover { background: #f0f4ff; }

/* =================================================================
   FORGOT PASSWORD
================================================================= */
.form-container { max-width:480px; margin:60px auto; }
.form-container h2 { color:#1a1a2e; font-size:22px; margin-bottom:8px; }
.form-container p { color:#666; font-size:14px; margin-bottom:24px; }
.form-group { margin-bottom:20px; }
.form-group label { display:block; color:#444; font-size:14px; font-weight:bold; margin-bottom:6px; }
.form-group input { width:100%; padding:11px 14px; border:1px solid #ddd; border-radius:8px; font-size:14px; box-sizing:border-box; }
.form-group input:focus { outline:none; border-color:#2E75B6; box-shadow:0 0 0 3px rgba(46,117,182,0.1); }
.btn-submit { width:100%; background:#2E75B6; color:white; border:none; border-radius:8px; padding:13px; font-size:15px; font-weight:bold; cursor:pointer; }
.btn-submit:hover { background:#1a5c9a; }
.back-link { text-align:center; margin-top:16px; font-size:14px; color:#888; }
.back-link a { color:#2E75B6; text-decoration:none; }

/* =================================================================
   GENERATE RESULTS
================================================================= */
.success-banner    { background: #e8f5e9; border: 1px solid #43a047; border-radius: 8px; padding: 20px; text-align: center; margin-bottom: 25px; }
.success-banner h2 { color: #2e7d32; font-size: 22px; margin-bottom: 5px; }
.success-banner p  { color: #444; font-size: 14px; }
.file-card         { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.file-info         { flex: 1; }
.file-title        { color: #2E75B6; font-size: 15px; font-weight: bold; margin-bottom: 4px; }
.file-meta         { color: #666; font-size: 13px; }
.file-type-badge   { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: bold; margin-right: 8px; }
.badge-resume        { background: #e8f4fd; color: #2E75B6; }
.badge-cover_letter  { background: #f3e5f5; color: #6a1b9a; }
.download-btn      { background: #2E75B6; color: white; padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; transition: background 0.15s; }
.download-btn:hover { background: #1a5a9a; }
.download-all-btn  { background: #1a1a2e; color: white; padding: 12px 24px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block; width: 100%; text-align: center; margin-bottom: 15px; transition: background 0.15s; }
.download-all-btn:hover { background: #2E75B6; }
.actions           { display: flex; gap: 12px; margin-top: 25px; }
.score-block { display: flex; flex-direction: column; align-items: flex-end; margin-right: 14px; }
.file-buttons      { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.interview-prep-btn { background: white; color: #2E75B6; padding: 10px 20px; border: 1px solid #2E75B6; border-radius: 8px; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; text-align: center; transition: background 0.15s, color 0.15s; }
.interview-prep-btn:hover { background: #2E75B6; color: white; }
{{ score_annotation_styles() }}

/* =================================================================
   GENERATE
================================================================= */
.page-title    { color: #1a1a2e; font-size: 22px; margin-bottom: 5px; }
.page-subtitle { color: #666; font-size: 14px; margin-bottom: 25px; }
.credit-info   { background: #e8f4fd; border-left: 4px solid #2E75B6; padding: 12px 16px; border-radius: 8px; font-size: 13px; color: #444; margin-bottom: 25px; }
.gen-job-card  { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 15px; }
.job-title     { color: #1a1a2e; font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.job-company   { color: #2E75B6; font-size: 14px; margin-bottom: 15px; }
.choice-label  { display: block; color: #444; font-size: 13px; font-weight: bold; margin-bottom: 10px; }
.choice-group  { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.choice-option { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid #ddd; border-radius: 8px; cursor: pointer; font-size: 13px; color: #444; transition: all 0.2s; }
.choice-option:hover { border-color: #2E75B6; background: #f0f4ff; }
.choice-option input[type="radio"] { accent-color: #2E75B6; }
.resume-select { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; color: #333; margin-top: 8px; }
.divider       { border: none; border-top: 1px solid #eee; margin: 20px 0; }
.total-bar     { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.total-bar p   { color: #444; font-size: 15px; }
.total-bar span { color: #2E75B6; font-weight: bold; font-size: 20px; }
.generate-btn  { background: #2E75B6; color: white; padding: 14px 40px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; width: auto; display: inline-block; transition: background 0.15s; }
.generate-btn:hover    { background: #1a5a9a; }
.generate-btn:disabled { background: #ccc; cursor: not-allowed; }
.no-jobs       { background: white; padding: 40px; border-radius: 8px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.no-jobs h3    { color: #1a1a2e; margin-bottom: 10px; }
.no-jobs p     { color: #666; margin-bottom: 20px; }

@keyframes pulse   { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes bounce  { 0%,100%{transform:translateY(0);opacity:0.4} 50%{transform:translateY(-7px);opacity:1} }

/* =================================================================
   HISTORY
================================================================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-header h2 { color: #1a1a2e; font-size: 22px; margin-bottom: 3px; }
.page-header p  { color: #888; font-size: 14px; }

/* Summary stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 16px 18px;
    text-align: center;
}
.stat-card .val  { font-size: 28px; font-weight: bold; color: #1a1a2e; line-height: 1; margin-bottom: 4px; }
.stat-card .lbl  { font-size: 12px; color: #888; }
.stat-card.blue  .val { color: #2E75B6; }
.stat-card.green .val { color: #2e7d32; }

/* Doc table */
.doc-table-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
}
.doc-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.doc-table-card thead th {
    background: #1a1a2e;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.3px;
}
.doc-table-card tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}
.doc-table-card tbody tr:last-child { border-bottom: none; }
.doc-table-card tbody tr:hover { background: #f8fbff; }
.doc-table-card tbody td { padding: 12px 16px; color: #444; vertical-align: middle; }

.type-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
}
.type-badge.resume       { background: #e8f4fd; color: #1565c0; }
.type-badge.cover_letter { background: #e8f5e9; color: #2e7d32; }

/* Match score dial column sizing */
.history-match-cell { text-align: center; min-width: 90px; padding: 8px 12px; }
.history-match-empty { color: #ccc; font-size: 16px; }
{{ score_annotation_styles() }}

.download-link {
    color: #2E75B6;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}
.download-link:hover { text-decoration: underline; }

/* Empty state */
.empty-state {
    padding: 60px 30px;
    text-align: center;
}
.empty-state .icon { font-size: 44px; margin-bottom: 14px; }
.empty-state h3    { color: #1a1a2e; margin-bottom: 8px; font-size: 18px; }
.empty-state p     { color: #888; font-size: 14px; margin-bottom: 20px; }

/* Table horizontal scroll on mobile */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 600px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
.interview-prep-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    text-decoration: none;
    border: 1px solid #2E75B6;
    color: #2E75B6;
    background: white;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.interview-prep-btn:hover { background: #2E75B6; color: white; }
.interview-prep-btn.in-progress {
    border-color: #f0a500; color: #7a5800; background: #fff8e1;
}
.interview-prep-btn.in-progress:hover { background: #f0a500; color: white; }
.interview-prep-btn.results {
    border-color: #2e7d32; color: #2e7d32; background: #e8f5e9;
}
.interview-prep-btn.results:hover { background: #2e7d32; color: white; }

/* =================================================================
   NOTIFICATIONS
================================================================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h2 { color: #1a1a2e; font-size: 22px; }
.page-header p  { color: #666; font-size: 14px; margin-top: 4px; }

.notif-list { display: flex; flex-direction: column; gap: 16px; }

.notif-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #ddd;
    transition: box-shadow 0.15s;
    overflow: hidden;
}
.notif-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.notif-card.auto_run_complete { border-left-color: #2E75B6; }
.notif-card.low_credits       { border-left-color: #e64a19; }
.notif-card.system            { border-left-color: #43a047; }

.notif-header {
    padding: 18px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.notif-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.notif-body { flex: 1; }
.notif-title { font-size: 15px; font-weight: bold; color: #1a1a2e; margin-bottom: 4px; }
.notif-message { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 6px; }
.notif-time { font-size: 12px; color: #aaa; }

/* ── Inline job results ──────────────────────────────────────── */
.notif-jobs {
    border-top: 1px solid #f0f4ff;
    padding: 0 22px 18px;
}
.notif-jobs-title {
    font-size: 12px;
    font-weight: 700;
    color: #2E75B6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 0 10px;
}
.job-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8fbff;
    border: 1px solid #e0eaf7;
    margin-bottom: 7px;
    gap: 12px;
    flex-wrap: wrap;
}
.job-row:last-child { margin-bottom: 0; }
.job-info { flex: 1; min-width: 0; }
.job-title-text {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.job-meta { font-size: 11px; color: #888; }
.job-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    background: #e8f0fb;
    color: #2E75B6;
    white-space: nowrap;
    margin-right: 6px;
}
.job-apply-btn {
    background: #2E75B6;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.job-apply-btn:hover { background: #1a5a9a; color: white; }

/* No results state */
.notif-no-results {
    padding: 20px 22px;
    border-top: 1px solid #f0f4ff;
    background: #f8fbff;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.notif-no-results strong { color: #1a1a2e; }

/* Low credits action */
.notif-action { padding: 0 22px 16px; }

.empty-state {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 50px 30px;
    text-align: center;
}
.empty-state .icon { font-size: 40px; margin-bottom: 14px; }
.empty-state h3 { color: #1a1a2e; margin-bottom: 8px; }
.empty-state p  { color: #888; font-size: 14px; }

.btn-clear {
    background: white;
    color: #e53935;
    border: 1px solid #e53935;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-clear:hover { background: #ffebee; }

@media (max-width: 600px) {
    .job-row { flex-direction: column; align-items: flex-start; }
}

/* =================================================================
   PAYMENT CANCEL
================================================================= */
.cancel-container {
    max-width: 520px;
    margin: 60px auto;
    text-align: center;
}
.cancel-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}
.cancel-container h2 {
    color: #1a1a2e;
    font-size: 24px;
    margin-bottom: 12px;
}
.cancel-container p {
    color: #666;
    font-size: 15px;
    margin-bottom: 8px;
}
.action-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}
.btn-primary-action {
    background: #2E75B6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-primary-action:hover {
    background: #1a5c9a;
    color: white;
    text-decoration: none;
}
.btn-secondary-action {
    background: white;
    color: #555;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary-action:hover {
    background: #f5f5f5;
    text-decoration: none;
}

/* =================================================================
   PAYMENT SUCCESS
================================================================= */
.success-container {
    max-width: 560px;
    margin: 60px auto;
    text-align: center;
}
.success-icon {
    font-size: 72px;
    margin-bottom: 20px;
    display: block;
    animation: celebratePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes celebratePop {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(8deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes confettiFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(120px) rotate(360deg); opacity: 0; }
}
.confetti-wrap {
    position: relative;
    height: 0;
    overflow: visible;
    pointer-events: none;
}
.confetti-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall 1.4s ease forwards;
}
.success-container h2 {
    color: #1a1a2e;
    font-size: 26px;
    margin-bottom: 12px;
}
.success-container p {
    color: #555;
    font-size: 15px;
    margin-bottom: 8px;
}
.credits-awarded {
    background: #f0f7ff;
    border: 2px solid #2E75B6;
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
}
.credits-awarded .amount {
    font-size: 52px;
    font-weight: bold;
    color: #2E75B6;
    line-height: 1;
    margin-bottom: 6px;
}
.credits-awarded .label {
    color: #555;
    font-size: 15px;
}
.credits-awarded .pack-name {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}
.action-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}
.btn-primary-action {
    background: #2E75B6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-primary-action:hover {
    background: #1a5c9a;
    color: white;
    text-decoration: none;
}
.btn-secondary-action {
    background: white;
    color: #2E75B6;
    border: 2px solid #2E75B6;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary-action:hover {
    background: #f0f7ff;
    text-decoration: none;
}

/* =================================================================
   RESEND VERIFICATION
================================================================= */
.form-container { max-width:480px; margin:60px auto; }
.form-container h2 { color:#1a1a2e; font-size:22px; margin-bottom:8px; }
.form-container p { color:#666; font-size:14px; margin-bottom:24px; }
.form-group { margin-bottom:20px; }
.form-group label { display:block; color:#444; font-size:14px; font-weight:bold; margin-bottom:6px; }
.form-group input { width:100%; padding:11px 14px; border:1px solid #ddd; border-radius:8px; font-size:14px; box-sizing:border-box; }
.form-group input:focus { outline:none; border-color:#2E75B6; box-shadow:0 0 0 3px rgba(46,117,182,0.1); }
.btn-submit { width:100%; background:#2E75B6; color:white; border:none; border-radius:8px; padding:13px; font-size:15px; font-weight:bold; cursor:pointer; }
.btn-submit:hover { background:#1a5c9a; }
.back-link { text-align:center; margin-top:16px; font-size:14px; color:#888; }
.back-link a { color:#2E75B6; text-decoration:none; }

/* =================================================================
   RESET PASSWORD
================================================================= */
.form-container { max-width:480px; margin:60px auto; }
.form-container h2 { color:#1a1a2e; font-size:22px; margin-bottom:8px; }
.form-container p { color:#666; font-size:14px; margin-bottom:24px; }
.form-group { margin-bottom:20px; }
.form-group label { display:block; color:#444; font-size:14px; font-weight:bold; margin-bottom:6px; }
.form-group input { width:100%; padding:11px 14px; border:1px solid #ddd; border-radius:8px; font-size:14px; box-sizing:border-box; }
.form-group input:focus { outline:none; border-color:#2E75B6; box-shadow:0 0 0 3px rgba(46,117,182,0.1); }
.password-rules { background:#f8f9fa; border-radius:8px; padding:14px 16px; margin-bottom:20px; font-size:13px; color:#666; }
.password-rules ul { margin:8px 0 0; padding-left:18px; }
.password-rules li { margin-bottom:4px; }
.btn-submit { width:100%; background:#2E75B6; color:white; border:none; border-radius:8px; padding:13px; font-size:15px; font-weight:bold; cursor:pointer; }
.btn-submit:hover { background:#1a5c9a; }

/* =================================================================
   RESULTS
================================================================= */
.page-title    { color: #1a1a2e; font-size: 22px; margin-bottom: 5px; }
.page-subtitle { color: #666; font-size: 14px; margin-bottom: 20px; }
.selection-bar { background: white; padding: 15px 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.counter       { color: #444; font-size: 14px; }
.counter span  { color: #2E75B6; font-weight: bold; }
.job-card      { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; transition: box-shadow 0.2s; }
.job-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.job-checkbox  { margin-top: 4px; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.job-info      { flex: 1; }
.job-title     { color: #1a1a2e; font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.job-company   { color: #2E75B6; font-size: 14px; margin-bottom: 6px; }
.job-meta      { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.job-meta span { color: #666; font-size: 13px; }
.job-description { color: #555; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.job-url a     { color: #2E75B6; font-size: 13px; text-decoration: none; }
.job-url a:hover { text-decoration: underline; }
.badge         { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: bold; }
.badge-Remote  { background: #e8f5e9; color: #2e7d32; }
.badge-Hybrid  { background: #fff3e0; color: #e65100; }
.badge-On-site { background: #e3f2fd; color: #1565c0; }
.no-results    { background: white; padding: 40px; border-radius: 8px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.no-results h3 { color: #1a1a2e; margin-bottom: 10px; }
.no-results p  { color: #666; margin-bottom: 20px; }
.pagination    { display: flex; justify-content: center; gap: 8px; margin-top: 25px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid #ddd; background: white; border-radius: 8px; font-size: 14px; color: #444; text-decoration: none; }
.pagination a:hover  { background: #f0f4ff; }
.pagination .active  { background: #2E75B6; color: white; border-color: #2E75B6; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }
.cache-notice  { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f0f7ff; border: 1px solid #c2d9f5; border-radius: 8px; padding: 10px 16px; margin-bottom: 16px; font-size: 0.875rem; color: #3b5a8a; }
.btn-refresh   { background: #2E75B6; color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.btn-refresh:hover { background: #1a5a9a; }

/* ── Paste JD button ── */
.btn-paste-jd {
    background: white;
    color: #2E75B6;
    border: 2px solid #2E75B6;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.btn-paste-jd:hover  { background: #f0f4ff; }
.btn-paste-jd:disabled { opacity: 0.4; cursor: not-allowed; background: white; }

/* ── Manually-added job card ── */
.job-card.manual-card { border-left: 4px solid #2E75B6; }
.manual-badge {
    display: inline-block;
    background: #e8f0fb;
    color: #2E75B6;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}
.manual-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
    margin-top: 2px;
}
.manual-remove:hover { color: #c0392b; }

/* ── Modal overlay ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
    background: white;
    border-radius: 8px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-title  { color: #1a1a2e; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modal-sub    { color: #666; font-size: 13px; margin-bottom: 20px; }
.modal-close  {
    position: absolute;
    top: 16px; right: 18px;
    background: none; border: none;
    font-size: 22px; color: #999; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #333; }

.form-group   { margin-bottom: 16px; }
.form-label   { display: block; color: #333; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-label .req { color: #c0392b; margin-left: 2px; }
.form-input   { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; color: #333; box-sizing: border-box; transition: border-color 0.15s; }
.form-input:focus { outline: none; border-color: #2E75B6; box-shadow: 0 0 0 3px rgba(46,117,182,0.12); }
.form-input.error { border-color: #c0392b; }
.form-textarea { min-height: 140px; resize: vertical; font-family: inherit; line-height: 1.5; }
.field-error  { color: #c0392b; font-size: 12px; margin-top: 4px; display: none; }
.field-error.show { display: block; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.btn-modal-cancel {
    background: white; color: #666; border: 1px solid #ddd;
    border-radius: 8px; padding: 10px 20px; font-size: 14px; cursor: pointer;
}
.btn-modal-cancel:hover { background: #f5f5f5; }
.btn-modal-add {
    background: #2E75B6; color: white; border: none;
    border-radius: 8px; padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.btn-modal-add:hover { background: #1a5a9a; }

/* ── Paste-only prompt (shown when no search results) ── */
.paste-only-prompt {
    background: white;
    border: 2px dashed #c2d9f5;
    border-radius: 8px;
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 20px;
}
.paste-only-prompt h3 { color: #1a1a2e; margin-bottom: 8px; font-size: 17px; }
.paste-only-prompt p  { color: #666; font-size: 14px; margin-bottom: 20px; }


/* ── Mobile sticky generate button ── */
.mobile-generate-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #2E75B6; color: white;
    padding: 14px 20px; font-size: 15px; font-weight: 700;
    text-align: center; cursor: pointer; border: none;
    z-index: 200; box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    transition: background 0.15s;
}
.mobile-generate-bar:hover { background: #1a5a9a; }
.mobile-generate-bar:disabled { background: #888; cursor: not-allowed; }

@media (max-width: 700px) {
    .mobile-generate-bar { display: block; }
    /* Add bottom padding so last job card isn't hidden behind sticky button */
    .page-bottom-pad { padding-bottom: 70px; }
    /* Make whole job card tappable */
    .job-card { cursor: pointer; }
}

/* =================================================================
   SEARCH
================================================================= */
.page-title    { color: #1a1a2e; font-size: 22px; margin-bottom: 5px; }
.page-subtitle { color: #666; font-size: 14px; margin-bottom: 20px; }

/* ── Form card ───────────────────────────────────────────────────────────── */
.form-card       { background: white; padding: 28px 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.form-card-title { color: #1a1a2e; font-size: 18px; font-weight: 700; margin: 0 0 16px 0; }
.form-group      { margin-bottom: 20px; }
label            { display: block; color: #444; font-size: 14px; font-weight: bold; margin-bottom: 6px; }
.required        { color: #e53935; }
select, input[type="text"], input[type="time"] {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd;
    font-size: 14px; color: #333; background: white;
    box-sizing: border-box; height: 42px; font-family: Arial, sans-serif;
}
select:focus, input[type="text"]:focus, input[type="time"]:focus {
    outline: none; border-color: #2E75B6;
}
select:disabled { background: #f5f5f5; color: #999; }
.city-loading    { color: #999; font-size: 12px; margin-top: 4px; }

/* ── Two-column row ──────────────────────────────────────────────────────── */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

/* ── Section labels ──────────────────────────────────────────────────────── */
.section-label {
    color: #1a1a2e; font-size: 15px; font-weight: bold;
    margin-bottom: 15px; padding-bottom: 8px;
    border-bottom: 2px solid #f0f4ff;
}
.section-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 15px; padding-bottom: 8px;
    border-bottom: 2px solid #f0f4ff;
}
.section-header-row .section-label { margin: 0; padding: 0; border: none; }
.section-header-row .auto-label    { font-size: 13px; color: #555; font-weight: 600; }

.divider { border: none; border-top: 1px solid #eee; margin: 20px 0; }

/* ── Radio / checkbox groups ─────────────────────────────────────────────── */
.radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.radio-group label {
    display: flex; align-items: center; gap: 8px;
    font-weight: normal; cursor: pointer; color: #444; font-size: 14px;
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.checkbox-group label {
    display: flex; align-items: center; gap: 6px;
    font-weight: normal; cursor: pointer; color: #444;
}

/* ── Job boards list ─────────────────────────────────────────────────────── */
.board-list      { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.board-item      {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: #444; cursor: pointer;
}
.board-item input[type="checkbox"] { flex-shrink: 0; accent-color: #2E75B6; width: 15px; height: 15px; }
.board-item.disabled-board         { color: #aaa; cursor: default; }
.board-badge {
    display: inline-block; background: #ff8f00; color: white;
    font-size: 11px; font-weight: 700; padding: 1px 7px;
    border-radius: 10px; margin-left: 4px;
}
.board-soon { font-size: 12px; color: #bbb; margin-left: 2px; }

/* ── Pill toggle ─────────────────────────────────────────────────────────── */
.pill-toggle { position: relative; width: 44px; height: 24px; cursor: pointer; flex-shrink: 0; }
.pill-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.pill-track { position: absolute; inset: 0; background: #ccc; border-radius: 999px; transition: background 0.25s; }
.pill-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
                     background: white; border-radius: 50%; transition: transform 0.25s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.pill-toggle input:checked + .pill-track              { background: #22c55e; }
.pill-toggle input:checked + .pill-track::after       { transform: translateX(20px); }

/* ── Search button ───────────────────────────────────────────────────────── */
.search-btn {
    display: inline-block; width: auto;
    background: #2E75B6; color: white; padding: 13px 32px;
    border: none; border-radius: 8px; font-size: 15px; cursor: pointer;
    transition: background 0.15s; margin-top: 4px;
}
.search-btn:hover { background: #1a5a9a; }

/* ── Session bar ─────────────────────────────────────────────────────────── */
.session-bar { background-color: #1a1a2e; color: white; padding: 10px 20px; margin-bottom: 16px;
               display: flex; align-items: center; justify-content: space-between;
               font-size: 13px; gap: 12px; flex-wrap: wrap; }
.session-bar-label { color: rgba(255,255,255,0.6); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.session-bar-query { font-weight: 600; }
.session-bar-link  { color: #7ab3e0; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.session-bar-link:hover { color: white; }
@media (max-width: 600px) { .session-bar { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* =================================================================
   UPLOAD RESUME
================================================================= */
.page-title    { color: #1a1a2e; font-size: 22px; margin-bottom: 5px; }
.page-subtitle { color: #666; font-size: 14px; margin-bottom: 25px; }
.form-card     { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.form-group    { margin-bottom: 20px; }
label          { display: block; color: #444; font-size: 14px; font-weight: bold; margin-bottom: 6px; }
select         { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; color: #333; background: white; }
select:focus   { outline: none; border-color: #2E75B6; }
select:disabled { background: #f5f5f5; color: #999; }
.required      { color: #e53935; }
.divider       { border: none; border-top: 1px solid #eee; margin: 20px 0; }
.section-label { color: #1a1a2e; font-size: 15px; font-weight: bold; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #f0f4ff; }
.tip           { background: #e8f4fd; border-left: 4px solid #2E75B6; padding: 12px 16px; border-radius: 8px; font-size: 13px; color: #444; margin-bottom: 20px; }
.row           { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.upload-area   { border: 2px dashed #2E75B6; border-radius: 8px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s; background: #f8fbff; }
.upload-area:hover, .upload-area.dragover { background: #e8f4fd; border-color: #1a5a9a; }
.upload-icon   { font-size: 48px; margin-bottom: 10px; }
.upload-text   { color: #444; font-size: 15px; margin-bottom: 5px; }
.upload-hint   { color: #999; font-size: 13px; }
.upload-input  { display: none; }
.selected-file { margin-top: 15px; padding: 10px 15px; background: #e8f5e9; border-radius: 8px; color: #2e7d32; font-size: 13px; display: none; }
.upload-btn    { background: #2E75B6; color: white; padding: 12px 30px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; width: 100%; margin-top: 10px; transition: background 0.15s; }
.upload-btn:hover { background: #1a5a9a; }

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

/* =================================================================
   VERIFY EMAIL SENT
================================================================= */
.verify-container { max-width:520px; margin:60px auto; text-align:center; }
.verify-icon { font-size:72px; margin-bottom:20px; display:block; }
.verify-container h2 { color:#1a1a2e; font-size:24px; margin-bottom:12px; }
.verify-container p { color:#555; font-size:15px; line-height:1.6; margin-bottom:10px; }
.info-box { background:#f0f7ff; border:2px solid #c2d9f5; border-radius:10px; padding:20px 24px; margin:24px 0; text-align:left; }
.info-box p { color:#444; font-size:14px; margin:0 0 8px; }
.info-box p:last-child { margin:0; }
.btn-resend { display:inline-block; background:white; color:#2E75B6; border:2px solid #2E75B6; border-radius:8px; padding:11px 24px; font-size:14px; font-weight:bold; text-decoration:none; margin-top:20px; }
.btn-resend:hover { background:#f0f7ff; text-decoration:none; }

/* =================================================================
   VERIFY PHONE
================================================================= */
.auth-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef9f0 100%);
  }
  .auth-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  }
  .auth-icon {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  .auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 0.4rem;
  }
  .auth-sub {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-bottom: 1.8rem;
    line-height: 1.5;
  }
  .auth-sub strong { color: #1a1a2e; }
  .form-group { margin-bottom: 1.2rem; }
  .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
  }
  .otp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    text-align: center;
    color: #1a1a2e;
    box-sizing: border-box;
    transition: border-color 0.15s;
  }
  .otp-input:focus {
    outline: none;
    border-color: #f0a500;
    box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
  }
  .btn-verify {
    width: 100%;
    padding: 13px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.5rem;
  }
  .btn-verify:hover { background: #2a2a4e; }
  .divider {
    text-align: center;
    color: #aaa;
    font-size: 0.82rem;
    margin: 1.2rem 0;
    position: relative;
  }
  .divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #e0e0e0;
  }
  .divider::before { left: 0; }
  .divider::after  { right: 0; }
  .resend-form { text-align: center; }
  .btn-resend {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 0.88rem;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
  }
  .btn-resend:hover { border-color: #f0a500; color: #1a1a2e; }
  .back-link {
    display: block;
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: #888;
  }
  .back-link a { color: #1a1a2e; text-decoration: underline; }
  .tip {
    background: #fffbf0;
    border-left: 3px solid #f0a500;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 1.4rem;
    line-height: 1.5;
  }
  .alert { padding: 10px 14px; margin-bottom: 1rem; font-size: 0.88rem; border-radius: 8px; }
  .alert-error   { background: #fdecea; color: #7b0000; border-left: 3px solid #e53935; }
  .alert-success { background: #e8f5e9; color: #1b5e20; border-left: 3px solid #43a047; }
  .alert-info    { background: #e8f0fb; color: #0c3547; border-left: 3px solid #1a73e8; }

/* =================================================================
   INTERVIEW PREP — QUESTIONS
================================================================= */
.ip-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.ip-back-link { font-size: 13px; color: #2E75B6; text-decoration: none; }
.ip-back-link:hover { text-decoration: underline; }
.ip-credit-notice { font-size: 12px; color: #888; text-align: right; }

.ip-job-context { margin-bottom: 20px; }
.ip-job-context h2 { font-size: 18px; font-weight: bold; color: #2E75B6; margin: 0 0 2px 0; }
.ip-job-context p  { font-size: 13px; color: #888; margin: 0; }

.ip-progress-section { margin-bottom: 20px; }
.ip-progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ip-progress-label { font-size: 15px; font-weight: bold; color: #2E75B6; }
.ip-progress-pct   { font-size: 14px; font-weight: bold; color: #2E75B6; }
.ip-progress-track { height: 6px; background: #e8edf2; }
.ip-progress-fill  { height: 6px; background: #2E75B6; transition: width 0.3s ease; }

/* Section divider between new and old questions */
.ip-section-divider {
    background: #f0f4ff; border: 1px solid #c8dff8;
    padding: 10px 16px; margin-bottom: 0;
    font-size: 12px; font-weight: bold; color: #2E75B6;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.ip-question-card {
    background: white; border: 1px solid #e0e7ef;
    padding: 24px; margin-bottom: 16px; border-radius: 8px;
}
.ip-type-badge {
    display: inline-block; font-size: 11px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 3px 10px; margin-bottom: 14px;
}
.ip-badge-behavioral  { background: #e8f4fd; color: #1565c0; }
.ip-badge-technical   { background: #e8f5e9; color: #2e7d32; }
.ip-badge-situational { background: #fff8e1; color: #7a5800; }
.ip-badge-cultural    { background: #f3e5f5; color: #6a1b9a; }
.ip-badge-general     { background: #f5f5f5; color: #555; }
.ip-badge-previous    { background: #fafafa; color: #aaa; border: 1px solid #e0e0e0; }

.ip-question-text { font-size: 20px; font-weight: bold; color: #2E75B6; line-height: 1.5; }
@media (max-width: 700px) { .ip-question-text { font-size: 16px; } }

.ip-answer-area {
    background: white; border: 1px solid #e0e7ef;
    padding: 20px; margin-bottom: 12px;
}
.ip-answer-label { font-size: 13px; font-weight: bold; color: #2E75B6; margin-bottom: 10px; }
.ip-textarea {
    width: 100%; min-height: 160px; padding: 12px;
    border: 1px solid #d0d8e4; font-size: 14px;
    font-family: Arial, sans-serif; line-height: 1.6;
    color: #1a1a2e; resize: vertical; border-radius: 8px;
    box-sizing: border-box; transition: border-color 0.15s;
}
.ip-textarea:focus { outline: none; border-color: #2E75B6; }
.ip-char-row { display: flex; justify-content: flex-end; margin-top: 6px; }
.ip-char-counter { font-size: 12px; color: #aaa; }
.ip-char-counter.near { color: #f0a500; }
.ip-char-counter.over { color: #e53935; font-weight: bold; }

.ip-empty-warning {
    display: none; background: #fff8e1; border: 1px solid #ffe082;
    border-left: 4px solid #f0a500; padding: 10px 16px;
    margin-bottom: 12px; font-size: 13px; color: #7a5800;
}
.ip-empty-warning.show { display: block; }

.ip-autosave-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f0f7ff; border: 1px solid #c8dff8;
    padding: 12px 16px; margin-bottom: 20px;
    font-size: 13px; color: #1a5a9a;
}

.ip-nav {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px; margin-bottom: 20px;
}
.ip-prev-btn {
    background: white; border: 1px solid #d0d8e4; color: #444;
    padding: 12px 24px; font-size: 14px; cursor: pointer; transition: border-color 0.15s;
}
.ip-prev-btn:hover { border-color: #2E75B6; color: #2E75B6; }
.ip-next-btn {
    background: #2E75B6; border: none; color: white;
    padding: 12px 32px; font-size: 14px; font-weight: bold;
    cursor: pointer; transition: background 0.15s; border-radius: 8px;
}
.ip-next-btn:hover { background: #1a5a9a; }
.ip-submit-btn {
    background: #2E75B6; border: none; color: white;
    padding: 12px 28px; font-size: 14px; font-weight: bold;
    cursor: pointer; transition: background 0.15s; border-radius: 8px;
}
.ip-submit-btn:disabled { background: #aaa; cursor: not-allowed; }
.ip-draft-saved { font-size: 12px; color: #2e7d32; display: none; margin-left: 8px; }
.ip-draft-saved.show { display: inline; }

/* Blank modal */
.ip-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
    align-items: center; justify-content: center;
}
.ip-modal-overlay.active { display: flex; }
.ip-modal-box { background: white; padding: 28px; max-width: 420px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.2); border-radius: 12px; }
.ip-modal-box h3 { font-size: 18px; color: #1a1a2e; margin: 0 0 10px 0; }
.ip-modal-box p  { font-size: 14px; color: #555; line-height: 1.6; margin: 0 0 20px 0; }
.ip-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.ip-modal-confirm { background: #2E75B6; border: none; color: white; padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: bold; text-align: center; width: 100%; border-radius: 8px; }
.ip-modal-cancel  { background: white; border: 1px solid #d0d8e4; color: #666; padding: 14px 16px; cursor: pointer; font-size: 14px; text-align: center; width: 100%; border-radius: 8px; }
.ip-modal-confirm:hover { background: #1a5a9a; }
.ip-modal-cancel:hover  { border-color: #aaa; }

/* Loading overlay */
.ip-loading-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.88); z-index: 2000;
    align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.ip-loading-overlay.active { display: flex; }
.ip-spinner { width: 40px; height: 40px; border: 4px solid #e0e7ef; border-top-color: #2E75B6; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ip-loading-text { font-size: 15px; color: #1a1a2e; font-weight: bold; }
.ip-loading-sub  { font-size: 13px; color: #888; text-align: center; }

@media (max-width: 700px) {
    .ip-nav { flex-direction: column; align-items: stretch; }
    .ip-prev-btn, .ip-next-btn, .ip-submit-btn { text-align: center; padding: 14px; }
}
#submit-form { display: none; }

/* =================================================================
   INTERVIEW PREP — RESULTS
================================================================= */
.ip-results-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.ip-back-link { font-size: 13px; color: #2E75B6; text-decoration: none; }
.ip-back-link:hover { text-decoration: underline; }
.ip-download-btn {
    background: white; border: 1px solid #2E75B6; color: #2E75B6;
    padding: 8px 16px; font-size: 13px; font-weight: bold;
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.15s; border-radius: 8px;
}
.ip-download-btn:hover { background: #f0f7ff; }

.ip-results-header { margin-bottom: 24px; }
.ip-results-header h2 { font-size: 22px; font-weight: bold; color: #1a1a2e; margin: 0 0 6px 0; }
.ip-results-meta {
    font-size: 13px; color: #888;
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.ip-results-meta .sep { color: #ccc; }

/* Accordion */
.ip-q-card {
    background: white; border: 1px solid #e0e7ef;
    margin-bottom: 12px; overflow: hidden; border-radius: 12px;
}
.ip-q-header {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 20px; cursor: pointer;
    user-select: none; transition: background 0.1s;
}
.ip-q-header:hover { background: #f8fbff; }
.ip-q-num { font-size: 13px; font-weight: bold; color: #888; white-space: nowrap; padding-top: 2px; }
.ip-q-header-center { flex: 1; }
.ip-q-badge {
    display: inline-block; font-size: 10px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 2px 8px; margin-bottom: 6px;
}
.ip-badge-behavioral  { background: #e8f4fd; color: #1565c0; }
.ip-badge-technical   { background: #e8f5e9; color: #2e7d32; }
.ip-badge-situational { background: #fff8e1; color: #7a5800; }
.ip-badge-cultural    { background: #f3e5f5; color: #6a1b9a; }
.ip-badge-general     { background: #f5f5f5; color: #555; }
.ip-badge-skipped     { background: #fafafa; color: #aaa; }

.ip-q-text-preview { font-size: 14px; color: #1a1a2e; font-weight: 500; line-height: 1.5; }
.ip-q-chevron { color: #aaa; font-size: 18px; flex-shrink: 0; transition: transform 0.2s; padding-top: 2px; }
.ip-q-card.open .ip-q-chevron { transform: rotate(180deg); }

.ip-q-body { display: none; border-top: 1px solid #f0f0f0; }
.ip-q-card.open .ip-q-body { display: block; }

/* Side by side columns */
.ip-answer-cols { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #f0f0f0; }
@media (max-width: 768px) { .ip-answer-cols { grid-template-columns: 1fr; } }

.ip-answer-col { padding: 20px; }
.ip-answer-col + .ip-answer-col { border-left: 1px solid #f0f0f0; }
@media (max-width: 768px) {
    .ip-answer-col + .ip-answer-col { border-left: none; border-top: 1px solid #f0f0f0; }
}
.ip-col-label {
    font-size: 12px; font-weight: bold; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.ip-col-label.yours   { color: #888; }
.ip-col-label.coached { color: #2e7d32; }
.ip-answer-text { font-size: 14px; line-height: 1.7; color: #333; white-space: pre-wrap; }
.ip-answer-text.empty   { color: #bbb; font-style: italic; }
.ip-answer-text.skipped { color: #bbb; font-style: italic; }
.ip-coached-col { background: #fafffe; }

/* Skipped full-width state */
.ip-skipped-notice {
    padding: 20px; color: #aaa; font-size: 13px; font-style: italic;
    border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 8px;
}

/* Coaching notes */
.ip-coaching-notes { padding: 16px 20px; background: #f8fbff; }
.ip-coaching-notes-label {
    font-size: 12px; font-weight: bold; color: #1a1a2e;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.ip-notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; }
@media (max-width: 600px) { .ip-notes-grid { grid-template-columns: 1fr; } }
.ip-note-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444; }
.ip-note-check { color: #2e7d32; font-weight: bold; flex-shrink: 0; }

/* Bottom actions */
.ip-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 700px) {
    .ip-actions { flex-direction: column; }
    .ip-actions .btn, .ip-actions .btn-outline { text-align: center; }
}

@media print {
    .ip-results-topbar { display: none; }
    .ip-q-body { display: block !important; }
    .ip-q-card { break-inside: avoid; }
}

/* =================================================================
   INTERVIEW PREP — START
================================================================= */
.ip-header-row {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 20px; gap: 16px;
}
.ip-header-row h1 { font-size: 24px; color: #1a1a2e; margin: 0 0 4px 0; }
.ip-header-row p  { color: #888; font-size: 14px; margin: 0; }
.ip-credits-badge {
    background: #f0f7ff; border: 1px solid #c8dff8;
    padding: 10px 16px; text-align: right; white-space: nowrap; flex-shrink: 0;
}
.ip-credits-badge .lbl { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.ip-credits-badge .val { font-size: 20px; font-weight: bold; color: #2E75B6; }

/* Job info card */
.ip-job-card {
    background: white; border: 1px solid #e0e7ef;
    padding: 20px; margin-bottom: 20px;
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 20px;
}
.ip-job-card-label { font-size: 11px; font-weight: bold; color: #2E75B6; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.ip-job-title   { font-size: 18px; font-weight: bold; color: #1a1a2e; margin-bottom: 4px; }
.ip-job-company { font-size: 14px; color: #666; }
.ip-job-card-right { text-align: right; flex-shrink: 0; }
.ip-job-stat-val { font-size: 22px; font-weight: bold; color: #1a1a2e; }
.ip-job-stat-lbl { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.3px; }
.ip-job-stat-sub { font-size: 12px; color: #888; margin-top: 6px; }

/* Tailored resume display (Mode A) */
.ip-resume-display {
    background: white; border: 1px solid #e0e7ef;
    padding: 16px 20px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 14px;
}
.ip-resume-icon {
    width: 36px; height: 44px; background: #2E75B6;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: bold; color: white;
    letter-spacing: 0.5px; flex-shrink: 0;
}
.ip-resume-display-info .lbl  { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.ip-resume-display-info .name { font-size: 14px; font-weight: bold; color: #1a1a2e; }
.ip-resume-display-info .sub  { font-size: 12px; color: #888; }

/* Mode B form fields */
.ip-field { margin-bottom: 16px; }
.ip-field label { display: block; font-size: 13px; font-weight: bold; color: #444; margin-bottom: 6px; }
.ip-input {
    width: 100%; padding: 10px 12px; border: 1px solid #d0d8e4;
    font-size: 14px; color: #1a1a2e; border-radius: 8px;
    box-sizing: border-box; transition: border-color 0.15s;
}
.ip-input:focus { outline: none; border-color: #2E75B6; }
.ip-select {
    width: 100%; padding: 10px 12px; border: 1px solid #d0d8e4;
    font-size: 14px; color: #1a1a2e; border-radius: 8px;
    box-sizing: border-box; background: white; cursor: pointer;
    transition: border-color 0.15s;
}
.ip-select:focus { outline: none; border-color: #2E75B6; }
.ip-textarea-jd {
    width: 100%; min-height: 140px; padding: 10px 12px;
    border: 1px solid #d0d8e4; font-size: 13px;
    font-family: Arial, sans-serif; line-height: 1.5;
    color: #1a1a2e; resize: vertical; border-radius: 8px;
    box-sizing: border-box; transition: border-color 0.15s;
}
.ip-textarea-jd:focus { outline: none; border-color: #2E75B6; }

/* Credits summary */
.ip-credits-summary {
    background: white; border: 1px solid #e0e7ef;
    padding: 16px 20px; margin-bottom: 20px;
}
.ip-credits-summary-label {
    font-size: 12px; font-weight: bold; color: #2e7d32;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.ip-credits-math {
    display: flex; align-items: center;
    justify-content: space-around;
    width: 100%;
}
.ip-credits-item { text-align: center; }
.ip-credits-item .val { font-size: 22px; font-weight: bold; color: #1a1a2e; }
.ip-credits-item .lbl { font-size: 11px; color: #888; }
.ip-credits-operator  { font-size: 22px; color: #ccc; font-weight: bold; }

/* Insufficient */
.ip-insufficient {
    background: #ffebee; border-left: 4px solid #e53935;
    padding: 12px 16px; margin-bottom: 16px;
    font-size: 13px; color: #c62828;
}
.ip-insufficient strong { display: block; margin-bottom: 4px; }

/* Continue banner */
.ip-continue-banner {
    background: #e8f5e9; border-left: 4px solid #43a047;
    padding: 14px 18px; margin-bottom: 20px;
    display: flex; justify-content: space-between;
    align-items: center; gap: 16px; flex-wrap: wrap;
}
.ip-continue-banner strong { display: block; color: #2e7d32; margin-bottom: 2px; }
.ip-continue-banner p { font-size: 13px; color: #555; margin: 0; }

/* Modal */
.ip-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
    align-items: center; justify-content: center;
}
.ip-modal-overlay.active { display: flex; }
.ip-modal-box {
    background: white; padding: 28px; max-width: 420px; width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); border-radius: 12px;
}
.ip-modal-box h3 { font-size: 18px; color: #1a1a2e; margin: 0 0 12px 0; }
.ip-modal-box p  { font-size: 14px; color: #555; line-height: 1.6; margin: 0 0 20px 0; }
.ip-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}
.ip-modal-confirm {
    background: #2E75B6; border: none; color: white;
    padding: 14px 16px; cursor: pointer; font-size: 14px;
    font-weight: bold; text-align: center; width: 100%; border-radius: 8px;
}
.ip-modal-cancel  {
    background: white; border: 1px solid #d0d8e4; color: #666;
    padding: 14px 16px; cursor: pointer; font-size: 14px;
    text-align: center; width: 100%; border-radius: 8px;
}
.ip-modal-cancel:hover  { border-color: #aaa; }
.ip-modal-confirm:hover { background: #1a5a9a; }

/* Loading overlay */
.ip-loading-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2000;
    align-items: center; justify-content: center;
}
.ip-loading-overlay.active { display: flex; }
.ip-loading-box {
    background: white; padding: 40px; max-width: 440px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    text-align: center; border-radius: 12px;
}
.ip-spinner { width: 40px; height: 40px; border: 4px solid #e0e7ef; border-top-color: #2E75B6; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-6px); opacity: 1; } }
.ip-loading-text { font-size: 15px; color: #1a1a2e; font-weight: bold; }
.ip-loading-sub  { font-size: 13px; color: #888; text-align: center; }

@media (max-width: 700px) {
    .ip-header-row { flex-direction: column; }
    .ip-job-card   { flex-direction: column; }
    .ip-job-card-right { text-align: left; }
    .ip-credits-math { gap: 10px; }
}

/* =================================================================
   RECRUITERS
================================================================= */
.recruiters-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px 0; }
.page-header p { color: #666; font-size: 14px; margin: 0; }
.summary-bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: #f0f6ff; border: 1px solid #d0e4f7; margin-bottom: 20px; font-size: 14px; color: #1a1a2e; flex-wrap: wrap; border-radius: 8px; }
.summary-bar .count { font-weight: 700; font-size: 16px; }
.summary-bar .high { color: #e65100; font-weight: 600; }
.summary-divider { color: #bbb; }
.recruiter-list { display: flex; flex-direction: column; gap: 12px; }
.recruiter-card { background: white; border: 1px solid #e0eaf7; padding: 20px 24px; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: start; transition: box-shadow 0.2s; border-radius: 12px; }
.recruiter-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.recruiter-card.contacted { opacity: 0.7; border-color: #c8e6c9; background: #f9fff9; }
.recruiter-avatar { width: 48px; height: 48px; background: linear-gradient(135deg, #2E75B6, #1a1a2e); color: white; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 8px; }
.recruiter-info { min-width: 0; }
.recruiter-name { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0 0 2px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.score-badge { font-size: 13px; font-weight: 700; padding: 2px 10px; white-space: nowrap; border-radius: 4px; }
.score-high { background: #e8f5e9; color: #1b5e20; border-left: 3px solid #2e7d32; }
.score-good { background: #e3f2fd; color: #0d47a1; border-left: 3px solid #1565c0; }
.score-ok { background: #fff8e1; color: #6d4c00; border-left: 3px solid #f9a825; }
.score-low { background: #f5f5f5; color: #616161; border-left: 3px solid #9e9e9e; }
.score-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; flex-shrink: 0; }
.dot-high { background: #2e7d32; }
.dot-good { background: #1565c0; }
.dot-ok { background: #f9a825; }
.dot-low { background: #9e9e9e; }
.recruiter-title { font-size: 13px; color: #555; margin: 0 0 4px 0; }
.recruiter-company { font-size: 13px; color: #2E75B6; font-weight: 600; margin: 0 0 8px 0; }
.recruiter-location { font-size: 12px; color: #888; margin: 0 0 10px 0; }
.why-matched { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.why-tag { font-size: 11px; padding: 3px 8px; background: #f0f6ff; color: #2E75B6; border: 1px solid #d0e4f7; border-radius: 4px; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.contact-item { display: flex; align-items: center; gap: 4px; color: #555; }
.contact-item a { color: #2E75B6; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.recruiter-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.btn-contact { background: #2E75B6; color: white; border: none; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; white-space: nowrap; border-radius: 8px; }
.btn-contact:hover { background: #1a5fa0; }
.btn-mark { background: none; border: 1px solid #ccc; color: #666; padding: 6px 14px; font-size: 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; border-radius: 8px; }
.btn-mark:hover { border-color: #2e7d32; color: #2e7d32; }
.btn-mark.done { border-color: #2e7d32; color: #2e7d32; background: #f1f8f1; }
.contacted-badge { font-size: 11px; color: #2e7d32; font-weight: 600; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: white; width: 100%; max-width: 480px; padding: 28px; position: relative; margin: 20px; border-radius: 12px; }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }
.modal-name { font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px 0; }
.modal-subtitle { font-size: 13px; color: #666; margin: 0 0 20px 0; }
.modal-score { font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.modal-section { margin-bottom: 20px; }
.modal-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #888; margin-bottom: 10px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-btn { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #e0eaf7; background: #fafbff; text-decoration: none; color: #1a1a2e; font-size: 14px; cursor: pointer; transition: background 0.2s; border-radius: 8px; }
.modal-btn:hover { background: #f0f6ff; border-color: #2E75B6; }
.modal-btn .icon { font-size: 18px; }
.modal-btn .label { font-weight: 600; }
.modal-btn .sublabel { font-size: 12px; color: #888; margin-top: 2px; }
.error-msg { background: #fff3f3; border: 1px solid #ffcdd2; color: #c62828; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; border-radius: 8px; }
@media (max-width: 768px) {
    .recruiter-card { grid-template-columns: 48px 1fr; border-radius: 12px; }
    .recruiter-actions { flex-direction: row; flex-wrap: wrap; align-items: center; grid-column: 1/-1; }
}

/* --- Recruiter filters --- */
.recruiter-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px; padding: 16px 20px; background: #f8faff; border: 1px solid #e0eaf7; border-radius: 10px; }
.recruiter-filters .filter-group { display: flex; flex-direction: column; gap: 4px; }
.recruiter-filters label { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.04em; }
.recruiter-filters select,
.recruiter-filters input[type="text"] { padding: 7px 12px; border: 1px solid #cdd8e8; border-radius: 7px; font-size: 13px; color: #1a1a2e; background: white; min-width: 160px; }
.recruiter-filters select:focus,
.recruiter-filters input[type="text"]:focus { outline: none; border-color: #2E75B6; }
.recruiter-filters .filter-actions { display: flex; gap: 8px; align-items: flex-end; }
.btn-filter-apply { background: #2E75B6; color: white; border: none; padding: 8px 18px; font-size: 13px; font-weight: 600; border-radius: 7px; cursor: pointer; }
.btn-filter-apply:hover { background: #1a5fa0; }
.btn-filter-clear { background: none; border: 1px solid #ccc; color: #666; padding: 8px 14px; font-size: 13px; border-radius: 7px; cursor: pointer; }
.btn-filter-clear:hover { border-color: #999; color: #333; }
.filter-results-count { font-size: 13px; color: #666; margin-bottom: 12px; }

/* --- Recruiter pagination --- */
.recruiter-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.recruiter-pagination a,
.recruiter-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid #e0eaf7; color: #2E75B6; background: white; transition: all 0.15s; }
.recruiter-pagination a:hover { background: #f0f6ff; border-color: #2E75B6; }
.recruiter-pagination span.current { background: #2E75B6; color: white; border-color: #2E75B6; }
.recruiter-pagination span.disabled { color: #bbb; border-color: #eee; cursor: default; }

@media (max-width: 768px) {
    .recruiter-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
    .recruiter-filters .filter-group { min-width: 0; }
    .recruiter-filters select,
    .recruiter-filters input[type="text"] { min-width: 0; width: 100%; box-sizing: border-box; }
    .recruiter-filters .filter-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
    .btn-filter-apply { flex: 1; text-align: center; }
    .btn-filter-clear { flex: 1; text-align: center; }
}

/* =================================================================
   FORM ELEMENTS — scoped to .container only
================================================================= */
.container input[type="text"],
.container input[type="email"],
.container input[type="password"],
.container input[type="tel"],
.container input[type="number"],
.container input[type="search"],
.container input[type="url"],
.container textarea,
.container select {
    border-radius: 8px;
    border: 1px solid #d0d7e2;
    padding: 9px 12px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
    background: white;
    color: #1a1a2e;
}
.container input[type="text"]:focus,
.container input[type="email"]:focus,
.container input[type="password"]:focus,
.container input[type="tel"]:focus,
.container input[type="number"]:focus,
.container input[type="search"]:focus,
.container input[type="url"]:focus,
.container textarea:focus,
.container select:focus {
    outline: none;
    border-color: #2E75B6;
    box-shadow: 0 0 0 3px rgba(46,117,182,0.12);
}
.container select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ── Admin Feature Flags ─────────────────────────────────────────────────── */
.ff-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.ff-header { margin-bottom: 24px; }
.ff-header h1 { font-size: 24px; color: #1a1a2e; margin: 0 0 6px 0; }
.ff-header p { color: #555; margin: 0; font-size: 14px; }
.ff-list { display: flex; flex-direction: column; gap: 16px; }
.ff-card { background: white; border: 1px solid #e0eaf7; padding: 20px 24px; }
.ff-card-top { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.ff-name { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px 0; }
.ff-key { font-size: 12px; color: #888; font-family: monospace; margin: 0 0 8px 0; }
.ff-desc { font-size: 13px; color: #555; margin: 0; }
.ff-state-form { display: flex; gap: 6px; align-items: center; }
.ff-state-btn { padding: 6px 14px; font-size: 12px; font-weight: 600; border: 1px solid #e0eaf7; background: white; color: #555; cursor: pointer; text-transform: uppercase; letter-spacing: 0.4px; }
.ff-state-btn:hover { background: #f5f8fc; }
.ff-state-btn.active.off { background: #888; color: white; border-color: #888; }
.ff-state-btn.active.beta { background: #f0a020; color: white; border-color: #f0a020; }
.ff-state-btn.active.on { background: #2e7d32; color: white; border-color: #2e7d32; }
.ff-testers-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.ff-testers-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.ff-testers-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ff-tester-chip { display: inline-flex; align-items: center; gap: 8px; background: #f5f8fc; border: 1px solid #e0eaf7; padding: 4px 6px 4px 12px; font-size: 12px; color: #1a1a2e; }
.ff-tester-chip form { margin: 0; display: inline; }
.ff-tester-chip-remove { background: none; border: none; color: #c33; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; }
.ff-tester-chip-remove:hover { color: #900; }
.ff-tester-empty { font-size: 12px; color: #888; font-style: italic; }
.ff-add-tester-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ff-add-tester-form input[type=email] { flex: 1; padding: 7px 10px; font-size: 13px; border: 1px solid #e0eaf7; }
.ff-add-tester-form button { padding: 7px 14px; font-size: 12px; font-weight: 600; background: #2E75B6; color: white; border: none; cursor: pointer; }
.ff-add-tester-form button:hover { background: #1f5a91; }
@media (max-width: 600px) { .ff-card-top { grid-template-columns: 1fr; } .ff-state-form { flex-wrap: wrap; } }


/* ── Resume Enhancer ─────────────────────────────────────────────────────── */
.enhancer-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.enhancer-header { margin-bottom: 24px; }
.enhancer-header h2 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px 0; }
.enhancer-header p { color: #555; font-size: 14px; margin: 0; }
.enhancer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.enhancer-panel { background: white; border: 1px solid #e0eaf7; border-radius: 12px; overflow: hidden; }
.panel-header { padding: 16px 20px; border-bottom: 1px solid #e0eaf7; display: flex; align-items: center; justify-content: space-between; }
.panel-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0; }
.panel-step { font-size: 11px; font-weight: 700; color: #2E75B6; background: #eef4fc; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px; }
.panel-body { padding: 20px; }
.resume-tabs { display: flex; gap: 0; margin-bottom: 16px; border: 1px solid #e0eaf7; border-radius: 8px; overflow: hidden; }
.resume-tab { flex: 1; padding: 9px 12px; font-size: 13px; font-weight: 600; color: #555; background: white; border: none; cursor: pointer; transition: background 0.15s, color 0.15s; text-align: center; }
.resume-tab:first-child { border-right: 1px solid #e0eaf7; }
.resume-tab.active { background: #2E75B6; color: white; }
.resume-tab:hover:not(.active) { background: #f5f8fc; }
.saved-resumes { display: flex; flex-direction: column; gap: 8px; }
.resume-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #e0eaf7; border-radius: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.resume-card:hover { border-color: #2E75B6; background: #f8fbff; }
.resume-card.selected { border-color: #2E75B6; background: #eef4fc; }
.resume-card-icon { width: 36px; height: 36px; background: #eef4fc; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #2E75B6; font-size: 18px; flex-shrink: 0; }
.resume-card-info { flex: 1; min-width: 0; }
.resume-card-name { font-size: 13px; font-weight: 600; color: #1a1a2e; margin: 0 0 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-card-meta { font-size: 11px; color: #888; margin: 0; }
.resume-card-check { width: 18px; height: 18px; border-radius: 50%; background: #2E75B6; color: white; display: flex; align-items: center; justify-content: center; font-size: 11px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
.resume-card.selected .resume-card-check { opacity: 1; }
.upload-zone { border: 2px dashed #c0d4ee; border-radius: 8px; padding: 32px 20px; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.upload-zone:hover, .upload-zone.dragover { border-color: #2E75B6; background: #f8fbff; }
.upload-zone-icon { font-size: 28px; color: #2E75B6; margin-bottom: 8px; }
.upload-zone-text { font-size: 14px; color: #555; margin: 0 0 4px 0; }
.upload-zone-hint { font-size: 12px; color: #888; margin: 0; }
.upload-zone input[type=file] { display: none; }
.upload-filename { margin-top: 12px; font-size: 13px; color: #2E75B6; font-weight: 600; display: none; }
.jd-textarea { width: 100%; min-height: 320px; padding: 14px; font-size: 13px; color: #1a1a2e; border: 1px solid #e0eaf7; border-radius: 8px; resize: vertical; font-family: inherit; line-height: 1.6; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; }
.jd-textarea:focus { outline: none; border-color: #2E75B6; box-shadow: 0 0 0 3px rgba(46,117,182,0.12); }
.jd-hint { font-size: 11px; color: #888; margin: 8px 0 0 0; }
.enhancer-bottom { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 24px 0; }
.enhancer-bottom-hint { font-size: 13px; color: #555; }
.enhancer-bottom-hint span { color: #2E75B6; font-weight: 600; }
.btn-enhance-now { background: #2E75B6; color: white; border: none; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s, transform 0.15s, box-shadow 0.15s; }
.btn-enhance-now:hover { background: #1f5a91; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(46,117,182,0.3); }
.btn-enhance-now:active { transform: translateY(1px) scale(0.98); box-shadow: none; }
.btn-enhance-now:disabled { background: #a8c8e8; cursor: not-allowed; transform: none; box-shadow: none; }
.resume-card { transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s; }
.resume-card:hover { border-color: #2E75B6; background: #f8fbff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(46,117,182,0.12); }
.enhancer-panel { transition: box-shadow 0.2s; }
.enhancer-panel:hover { box-shadow: 0 4px 16px rgba(46,117,182,0.1); }
.no-resumes-hint { text-align: center; padding: 24px; color: #888; font-size: 13px; }
.no-resumes-hint a { color: #2E75B6; }
@media (max-width: 768px) { .enhancer-grid { grid-template-columns: 1fr; } }

/* ── Resume Enhancer — Processing Page ───────────────────────────────────── */
.processing-wrap { max-width: 640px; margin: 0 auto; padding: 60px 20px; text-align: center; }
.processing-icon { font-size: 48px; margin-bottom: 24px; animation: processingPulse 2s ease-in-out infinite; }
@keyframes processingPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } }
.processing-title { font-size: 22px; font-weight: 700; color: #1a1a2e; margin: 0 0 8px 0; }
.processing-subtitle { font-size: 14px; color: #555; margin: 0 0 40px 0; }
.progress-track { background: #e0eaf7; border-radius: 999px; height: 10px; width: 100%; margin-bottom: 12px; overflow: hidden; }
.progress-fill-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2E75B6, #5ba3e0); transition: width 0.8s ease; width: 0%; }
.progress-stage-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.progress-stage-msg { font-size: 14px; color: #2E75B6; font-weight: 600; text-align: left; }
.progress-pct { font-size: 13px; color: #888; }
.stage-msg-wrap { margin-bottom: 32px; min-height: 28px; }
.stage-msg-single { font-size: 15px; color: #2E75B6; font-weight: 600; animation: stageFade 0.5s ease; }
@keyframes stageFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.processing-note { font-size: 12px; color: #aaa; }

/* ── Resume Enhancer — Processing Modal ──────────────────────────────────── */
.enhancer-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.enhancer-modal-overlay.active { opacity: 1; pointer-events: all; }
.enhancer-modal { background: white; border-radius: 16px; padding: 40px 32px; max-width: 480px; width: 90%; text-align: center; transform: translateY(20px); transition: transform 0.3s; }
.enhancer-modal-overlay.active .enhancer-modal { transform: translateY(0); }
.enhancer-modal-icon { font-size: 48px; margin-bottom: 16px; animation: processingPulse 2s ease-in-out infinite; }
.enhancer-modal-title { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 8px 0; }
.enhancer-modal-subtitle { font-size: 13px; color: #555; margin: 0 0 28px 0; }
.enhancer-modal-note { font-size: 11px; color: #aaa; margin-top: 20px; }
.enhancer-modal-error { font-size: 14px; color: #e53935; font-weight: 600; margin-top: 12px; display: none; }
.enhancer-modal-error.show { display: block; }

/* Resume Enhancer Preview Page */
.preview-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.preview-header { margin-bottom: 24px; }
.preview-header h2 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px 0; }
.preview-header p { color: #555; font-size: 14px; margin: 0; }
.score-banner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background: white; border: 1px solid #e0eaf7; border-radius: 12px; padding: 20px 28px; margin-bottom: 24px; }
.score-block { text-align: center; }
.score-block-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #888; margin: 0 0 8px 0; }
.score-block-value { font-size: 36px; font-weight: 700; margin: 0; }
.score-block-value.original { color: #888; }
.score-block-value.enhanced { color: #2e7d32; }
.score-arrow { font-size: 28px; color: #2E75B6; text-align: center; }
.score-delta { font-size: 13px; color: #2e7d32; font-weight: 600; margin: 4px 0 0 0; }
.improve-nudge { background: #eef4fc; border: 1px solid #c0d4ee; border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.improve-nudge-text { flex: 1; font-size: 13px; color: #1a1a2e; }
.improve-nudge-text strong { color: #2E75B6; }
.improve-nudge-btn { font-size: 12px; font-weight: 700; color: #2E75B6; background: white; border: 1px solid #2E75B6; border-radius: 6px; padding: 6px 14px; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.improve-nudge-btn:hover { background: #eef4fc; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.preview-panel { background: white; border: 1px solid #e0eaf7; border-radius: 12px; overflow: hidden; }
.preview-panel-header { padding: 14px 20px; border-bottom: 1px solid #e0eaf7; display: flex; align-items: center; justify-content: space-between; }
.preview-panel-title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0; }
.preview-panel-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.badge-original { background: #f5f5f5; color: #888; }
.badge-enhanced { background: #e8f5e9; color: #2e7d32; }
.preview-panel-body { padding: 20px; max-height: 500px; overflow-y: auto; }
.resume-text { font-size: 12px; line-height: 1.7; color: #333; white-space: pre-wrap; font-family: monospace; }
.preview-actions { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: white; border: 1px solid #e0eaf7; border-radius: 12px; }
.preview-actions-left { font-size: 13px; color: #555; }
.btn-proceed { background: #2E75B6; color: white; border: none; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s; text-decoration: none; }
.btn-proceed:hover { background: #1f5a91; color: white; }
.missing-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kw-chip { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }

.btn-rescore { background: white; color: #2E75B6; border: 2px solid #2E75B6; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.btn-rescore:hover { background: #eef4fc; }
.btn-rescore:disabled { border-color: #ccc; color: #ccc; cursor: not-allowed; }

.improve-nudge-icon { font-size: 20px; }
.enhanced-textarea { width: 100%; height: 460px; border: none; outline: none; resize: vertical; background: transparent; box-sizing: border-box; display: block; }
#confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; }

/* ── Preview page — score dial ───────────────────────────────────────────── */
.preview-score-wrap { display: flex; justify-content: center; margin-bottom: 24px; }

/* --- Preview page — xlarge dial wrapper --- */
.preview-score-center { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.preview-score-label { font-size: 13px; color: #555; font-weight: 500; }

/* --- Missing keyword pills --- */
.missing-kw-section { margin-bottom: 24px; }
.missing-kw-title { font-size: 13px; font-weight: 700; color: #1a1a2e; margin: 0 0 10px 0; }
.missing-kw-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: default; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.3s ease; }
.kw-pill:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.kw-pill.kw-required { background: #fff0f0; color: #c62828; border: 1px solid #ffcdd2; }
.kw-pill.kw-preferred { background: #f3f0ff; color: #5e35b1; border: 1px solid #d1c4e9; }
.kw-pill-badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.kw-pill.kw-required .kw-pill-badge { background: #ffcdd2; color: #c62828; }
.kw-pill.kw-preferred .kw-pill-badge { background: #d1c4e9; color: #5e35b1; }
.kw-pill.kw-found { opacity: 0; pointer-events: none; transform: scale(0.85); }

/* --- Single panel enhanced resume --- */
.preview-single-panel { background: white; border: 1px solid #e0eaf7; border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.preview-single-panel-header { padding: 14px 20px; border-bottom: 1px solid #e0eaf7; display: flex; align-items: center; justify-content: space-between; }
.preview-single-panel-title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0; }
.preview-single-panel-body { padding: 20px; }
.enhanced-textarea { width: 100%; min-height: 420px; border: none; outline: none; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.6; color: #1a1a2e; resize: vertical; box-sizing: border-box; }

@media (max-width: 768px) {
    .missing-kw-pills { gap: 6px; }
    .kw-pill { font-size: 11px; padding: 5px 10px; }
}
.preview-dial-before { opacity: 0; transition: opacity 0.3s; }
.preview-dial-before.visible { opacity: 1; }

/* ── Generate Page — Progress Overlay ───────────────────────────────────── */
.gen-progress-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26,26,46,0.88); z-index: 1000; justify-content: center; align-items: center; }
.gen-progress-box { background: white; padding: 40px; border-radius: 8px; max-width: 440px; width: 90%; text-align: center; }
.gen-progress-icon { font-size: 52px; margin-bottom: 15px; animation: pulse 1.5s infinite; }
.gen-progress-title { color: #1a1a2e; margin-bottom: 8px; font-size: 20px; font-weight: 700; }
.gen-progress-subtitle { color: #666; font-size: 13px; margin-bottom: 25px; line-height: 1.5; }
.gen-progress-bar-track { background: #f0f4ff; border-radius: 8px; height: 14px; margin-bottom: 18px; overflow: hidden; }
.gen-progress-bar-fill { background: linear-gradient(90deg,#2E75B6,#5ba3e0,#2E75B6); background-size: 200% 100%; height: 100%; width: 5%; border-radius: 8px; transition: width 1s ease; animation: shimmer 2s infinite; }
.gen-progress-counter { color: #999; font-size: 12px; margin-bottom: 6px; }
.gen-progress-status { color: #2E75B6; font-size: 15px; font-weight: bold; margin-bottom: 6px; }
.gen-progress-detail { color: #888; font-size: 13px; line-height: 1.4; }
.gen-progress-dots { margin-top: 20px; display: flex; justify-content: center; gap: 6px; }
.gen-progress-dot { width: 8px; height: 8px; background: #2E75B6; border-radius: 50%; }
.gen-progress-dot:nth-child(1) { animation: bounce 1.2s infinite 0s; }
.gen-progress-dot:nth-child(2) { animation: bounce 1.2s infinite 0.2s; }
.gen-progress-dot:nth-child(3) { animation: bounce 1.2s infinite 0.4s; }

/* ── Generate Page — Enrichment Banner ──────────────────────────────────── */
.enrich-banner { background: #fff8e1; border: 1px solid #ffe082; border-left: 4px solid #f9a825; border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.enrich-banner-body { flex: 1; min-width: 200px; }
.enrich-banner-title { color: #5d4037; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.enrich-banner-desc { color: #795548; font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.enrich-banner-links { display: flex; gap: 8px; flex-wrap: wrap; }
.enrich-banner-link { display: inline-block; background: #f9a825; color: white; text-decoration: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; transition: background 0.15s; }
.enrich-banner-link:hover { background: #f57f17; color: white; }

/* ── Generate Page — Choice labels ──────────────────────────────────────── */
.choice-credit-hint { color: #666; font-size: 12px; }
.choice-format-label { margin-top: 10px; }

/* ── Generate Page — Download ready section ─────────────────────────────── */
.download-ready-section { text-align: center; padding: 48px 20px; }
.download-ready-icon { font-size: 52px; color: #2e7d32; margin-bottom: 16px; }
.download-ready-title { font-size: 22px; font-weight: 700; color: #1a1a2e; margin: 0 0 8px 0; }
.download-ready-sub { font-size: 14px; color: #555; margin: 0 0 32px 0; }
.download-all-btn-big { display: inline-block; background: #2E75B6; color: white; padding: 14px 36px; border-radius: 8px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.download-all-btn-big:hover { background: #1f5a91; color: white; }
.download-ready-back { display: block; margin-top: 16px; font-size: 13px; color: #888; text-decoration: none; }
.download-ready-back:hover { color: #555; }

.credit-balance-hint { font-size: 12px; color: #888; margin: 4px 0 0 0; }

/* ── Download Ready Section ──────────────────────────────────────────────── */
.download-ready-section { padding: 48px 20px; max-width: 600px; margin: 0 auto; }
.dr-success-ring { width: 80px; height: 80px; border-radius: 50%; background: #e8f5e9; border: 3px solid #a5d6a7; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; animation: drPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275) both; }
@keyframes drPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dr-success-icon { font-size: 36px; color: #2e7d32; }
.dr-title { font-size: 22px; font-weight: 700; color: #1a1a2e; text-align: center; margin: 0 0 6px; }
.dr-sub { font-size: 14px; color: #555; text-align: center; margin: 0 0 1.5rem; }
.dr-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 1.5rem; }
.dr-stat { background: #f5f8fc; border-radius: 8px; padding: 12px; text-align: center; }
.dr-stat-val { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 2px; }
.dr-stat-lbl { font-size: 11px; color: #888; margin: 0; }
.dr-file-card { background: white; border: 1px solid #e0eaf7; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; animation: drSlide 0.3s ease both; }
.dr-file-card:nth-child(1) { animation-delay: 0.1s; }
.dr-file-card:nth-child(2) { animation-delay: 0.2s; }
@keyframes drSlide { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.dr-file-icon-wrap { width: 44px; height: 44px; border-radius: 8px; background: #eef4fc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; color: #2E75B6; }
.dr-file-info { flex: 1; }
.dr-file-name { font-size: 14px; font-weight: 600; color: #1a1a2e; margin: 0 0 2px; }
.dr-file-meta { font-size: 12px; color: #888; margin: 0; }
.dr-file-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: #e8f5e9; color: #2e7d32; font-weight: 600; }
.dr-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 1.5rem; }
.dr-download-btn { display: flex; align-items: center; gap: 8px; background: #2E75B6; color: white; padding: 14px 36px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.dr-download-btn:hover { background: #1f5a91; color: white; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(46,117,182,0.3); }
.dr-download-btn:active { transform: translateY(0); box-shadow: none; }
.dr-back-link { font-size: 13px; color: #888; text-decoration: none; transition: color 0.15s; }
.dr-back-link:hover { color: #555; }

.btn-proceed:active { transform: translateY(1px) scale(0.98); }
.btn-rescore:active { transform: translateY(1px) scale(0.98); }
.dr-download-btn:active { transform: translateY(1px) scale(0.98); box-shadow: none; }
.generate-btn:active { transform: translateY(1px) scale(0.98); }
.enhance-hint { font-size: 12px; color: #888; text-align: right; margin-top: 8px; min-height: 16px; transition: opacity 0.2s; }

/* ── Results page ────────────────────────────────────────────────────────── */
.no-results-wrap { max-width: 540px; margin: 60px auto; text-align: center; }
.no-results-number { font-size: 48px; font-weight: 700; color: #2E75B6; margin-bottom: 18px; }
.no-results-title { color: #1a1a2e; font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.no-results-desc { color: #666; font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.no-results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.paste-only-bar-hidden { display: none; }
.manual-job-description { margin-top: 6px; }
.search-tips-list { text-align: left; margin: 15px 0 20px 20px; color: #666; font-size: 14px; }

.job-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.job-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.10); }

/* ── Disabled button shake ───────────────────────────────────────────────── */
@keyframes btnShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
.btn-shake { animation: btnShake 0.4s ease; }
.enhance-hint { font-size: 12px; color: #e53935; text-align: right; margin-top: 8px; min-height: 16px; transition: opacity 0.2s; }

/* ── Dashboard cards ─────────────────────────────────────────────────────── */
.dash-resume-count { color: #999; font-size: 12px; margin-bottom: 10px; }
.dash-no-resumes { color: #888; font-size: 13px; margin-bottom: 12px; }
.dash-max-resumes { color: #aaa; font-size: 12px; }
.dash-enriched-badge { font-size: 11px; color: #2e7d32; font-weight: 600; background: #e8f5e9; padding: 1px 6px; margin-top: 3px; display: inline-block; }
.dash-draft-badge { font-size: 11px; color: #f9a825; font-weight: 600; margin-top: 3px; display: inline-block; }
.dash-doc-grid { display: flex; gap: 10px; margin-bottom: 12px; }
.dash-doc-stat { flex: 1; padding: 12px; text-align: center; }
.dash-doc-stat.blue { background: #e8f4fd; }
.dash-doc-stat.green { background: #e8f5e9; }
.dash-doc-stat-num { font-size: 22px; font-weight: bold; }
.dash-doc-stat.blue .dash-doc-stat-num { color: #1565c0; }
.dash-doc-stat.green .dash-doc-stat-num { color: #2e7d32; }
.dash-doc-stat-lbl { font-size: 11px; color: #888; margin-top: 2px; }
.dash-doc-recent { color: #888; font-size: 12px; }
.dash-no-docs { color: #888; font-size: 13px; line-height: 1.6; }
.dash-card-footer-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-disabled-dashboard { font-size: 13px; padding: 8px 18px; background: #b0bcc9; color: #555; cursor: not-allowed; pointer-events: none; opacity: 0.8; display: inline-block; border-radius: 8px; text-decoration: none; }

.dash-session-btn { font-size: 13px; padding: 8px 18px; }
.dash-session-btn-disabled { font-size: 13px; padding: 8px 18px; background: #b0bcc9; color: #555; cursor: pointer; border: none; border-radius: 8px; opacity: 0.8; }
.dash-session-hint { font-size: 12px; color: #e53935; margin: 6px 0 0 0; }
.resume-item-info { flex: 1; min-width: 0; }

/* =================================================================
   GUEST PREVIEW PAGE
================================================================= */
.preview-signin-hint { font-size: 13px; color: #888; margin-top: 6px; }
.preview-signin-hint a { color: #2E75B6; text-decoration: none; }
.preview-signin-hint a:hover { text-decoration: underline; }

.preview-email-block,
.preview-success-block {
    max-width: 680px;
    margin: 32px auto 0;
    background: #fff;
    border: 1px solid #dde3ee;
    border-top: 3px solid #2E75B6;
    border-radius: 12px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(46,117,182,0.08);
}
.preview-email-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.preview-email-icon { font-size: 40px; }
.preview-email-title { font-size: 22px; font-weight: 700; color: #1a1a2e; margin: 0; }
.preview-email-subtitle { font-size: 15px; color: #555; margin: 0; max-width: 480px; line-height: 1.6; }
.preview-email-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    margin-top: 8px;
}
.preview-email-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #dde3ee;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.2s;
}
.preview-email-input:focus { border-color: #2E75B6; box-shadow: 0 0 0 3px rgba(46,117,182,0.12); }
.preview-email-btn {
    background: #2E75B6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}
.preview-email-btn:hover { background: #1a5a9a; transform: translateY(-1px); }
.preview-email-btn:disabled { background: #aaa; cursor: not-allowed; transform: none; }
.preview-email-error { font-size: 13px; color: #e53935; min-height: 18px; margin: 0; }
.preview-email-error a { color: #2E75B6; }
.preview-email-fine-print { font-size: 12px; color: #aaa; margin: 0; max-width: 460px; line-height: 1.5; }
.preview-email-fine-print a { color: #2E75B6; text-decoration: none; }
.preview-register-btn {
    display: inline-block;
    background: #2E75B6;
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}
.preview-register-btn:hover { background: #1a5a9a; transform: translateY(-1px); }

@media (max-width: 600px) {
    .preview-email-row { flex-direction: column; }
    .preview-email-block, .preview-success-block { padding: 28px 20px; }
}

/* =================================================================
   LANDING PAGE — "See It In Action" section
================================================================= */
.landing-preview-section {
    background: #f0f4ff;
    padding: 80px 5%;
    text-align: center;
    border-top: 1px solid #dde3ee;
}
.landing-preview-section h2 {
    font-size: clamp(24px, 3vw, 36px);
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 700;
}
.landing-preview-section p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.preview-glow-btn-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.preview-glow-btn-wrap .glow-bg {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    background: linear-gradient(to right, #6366f1, #ec4899, #eab308);
    border-radius: 12px;
    filter: blur(10px);
    transition: opacity 0.2s;
}
.preview-glow-btn-wrap:hover .glow-bg { opacity: 1; }
.preview-glow-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #111827;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.preview-glow-btn:hover { background: #1f2937; transform: translateY(-2px); }
.preview-glow-btn svg { transition: transform 0.2s; }
.preview-glow-btn:hover svg { transform: translateX(3px); }

/* Upload success row — filename + change button inline */
.upload-success-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f0f7ff;
    border: 1.5px solid #c2d9f5;
    border-radius: 8px;
    margin-top: 8px;
}
.upload-success-name {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-change-resume {
    background: transparent;
    border: 1.5px solid #2E75B6;
    color: #2E75B6;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.btn-change-resume:hover {
    background: #2E75B6;
    color: #fff;
}

/* Modal close button */
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.modal-close-btn:hover { color: #555; background: #f0f0f0; }
.enhancer-modal { position: relative; }
