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

:root {
    --bg:        #f4f6f9;
    --surface:   #ffffff;
    --primary:   #2563eb;
    --primary-h: #1d4ed8;
    --danger:    #dc2626;
    --danger-h:  #b91c1c;
    --success:   #16a34a;
    --warning:   #d97706;
    --text:      #1e293b;
    --muted:     #64748b;
    --border:    #e2e8f0;
    --radius:    10px;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Auth pages ---- */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.auth-card .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.auth-card h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    color: var(--muted);
}

/* ---- Form elements ---- */
.form-group { margin-bottom: 1.1rem; }

.form-hint {
    display: block;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .25rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    margin-top: .25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    font-weight: normal;
    color: var(--text);
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--purple);
}

label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: .35rem;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: .6rem .85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color .15s;
    font-family: inherit;
}

textarea { resize: vertical; min-height: 100px; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: .6rem 1.2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    text-align: center;
    text-decoration: none;
}

.btn:hover { background: var(--primary-h); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-sm {
    padding: .3rem .75rem;
    font-size: .82rem;
    font-weight: 500;
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-ghost:hover { background: rgba(37,99,235,.06); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: var(--danger-h); }

.btn-success { background: var(--success); }
.btn-success:hover { background: #15803d; }

/* ---- Alerts ---- */
.alert {
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .9rem;
    margin-bottom: 1.25rem;
}

.alert-error   { background: #fee2e2; color: var(--danger);  border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: var(--success); border: 1px solid #86efac; }
.alert-info    { background: #dbeafe; color: #1e40af;        border: 1px solid #93c5fd; }

/* ---- Auth footer link ---- */
.auth-card .switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .88rem;
    color: var(--muted);
}

.auth-card .switch a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-card .switch a:hover { text-decoration: underline; }

/* ======================================================
   APP CHROME
   ====================================================== */

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.topbar-links {
    display: flex;
    gap: .25rem;
}

.topbar-links .nav-link {
    padding: .4rem .85rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: background .12s, color .12s;
}

.topbar-links .nav-link:hover  { background: var(--bg); color: var(--text); }
.topbar-links .nav-link.active { background: rgba(37,99,235,.1); color: var(--primary); }

.topbar .user-info {
    font-size: .85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.topbar .user-info a { color: var(--primary); text-decoration: none; font-weight: 500; }

.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 7rem; }

/* ---- Generic card ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.empty-state p { margin-bottom: 1rem; font-size: .95rem; }

/* ======================================================
   SEARCH BAR
   ====================================================== */

.search-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 160px;
}

.search-bar .form-group label {
    font-size: .8rem;
}

/* ======================================================
   JOB CARDS
   ====================================================== */

.job-grid {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem 1rem;
    transition: box-shadow .15s, border-color .15s;
    text-decoration: none;
    color: inherit;
}

.job-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border-color: #c7d2fe;
}

.job-card-main { grid-column: 1; }
.job-card-actions { grid-column: 2; display: flex; align-items: flex-start; gap: .5rem; }

.job-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .2rem;
}

.job-meta {
    font-size: .85rem;
    color: var(--muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .35rem;
}

.job-snippet {
    font-size: .88rem;
    color: var(--muted);
    margin-top: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-compensation {
    font-size: .85rem;
    font-weight: 600;
    color: var(--success);
    margin-top: .3rem;
}

/* ======================================================
   STATUS BADGES
   ====================================================== */

.status-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-saved        { background: #dbeafe; color: #1e40af; }
.status-applied      { background: #fef3c7; color: #92400e; }
.status-interviewing { background: #d1fae5; color: #065f46; }
.status-rejected     { background: #fee2e2; color: #991b1b; }
.status-offer        { background: #dcfce7; color: #166534; }

/* ======================================================
   TRACKER PAGE
   ====================================================== */

.tracker-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tracker-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.tracker-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: .3rem;
}

.tracker-stat-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

/* ======================================================
   ALERTS PAGE
   ====================================================== */

.alert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.alert-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.alert-card-meta {
    font-size: .83rem;
    color: var(--muted);
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
}

.alert-card-actions { display: flex; gap: .5rem; flex-shrink: 0; }

.badge-inactive { opacity: .5; }

/* ======================================================
   JOB DETAIL PAGE
   ====================================================== */

.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.job-description {
    font-size: .93rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.generated-content {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    font-size: .9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: .75rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}

/* ======================================================
   PROFILE / ACCOUNT PAGE
   ====================================================== */

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.profile-section { margin-bottom: 1.5rem; }

.profile-hint {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .3rem;
}

/* ======================================================
   MODAL
   ====================================================== */

/* ---- Login inspiration lightbox ---- */
@keyframes lightbox-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes lightbox-card-in {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes lightbox-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.login-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    padding: 1.5rem;
    animation: lightbox-in .35s ease both;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.login-lightbox-overlay.login-lightbox--closing {
    animation: lightbox-out .4s ease both;
}

.login-lightbox-box {
    position: relative;
    background: #141414;
    border: 1px solid rgba(124,58,237,.35);
    border-radius: 20px;
    padding: 3rem 3.5rem 2.75rem;
    max-width: 640px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    animation: lightbox-card-in .45s cubic-bezier(.22,1,.36,1) .1s both;
}

.login-lightbox-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 260px;
    background: radial-gradient(ellipse at center, rgba(124,58,237,.35) 0%, transparent 70%);
    pointer-events: none;
}

.login-lightbox-greeting {
    font-size: .95rem;
    font-weight: 500;
    color: rgba(124,58,237,.9);
    letter-spacing: .03em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

.login-lightbox-quote {
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.45;
    color: #f0f0f0;
    margin: 0 0 2.25rem;
    quotes: none;
}

.login-lightbox-btn {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .85rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    letter-spacing: .01em;
}

.login-lightbox-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .login-lightbox-box  { padding: 2.25rem 1.75rem 2rem; }
    .login-lightbox-quote { font-size: 1.25rem; }
}

/* ---- Standard modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 1rem;
}

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

.modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.1rem; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    padding: 0 .25rem;
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 1.5rem; }

.modal-footer {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ======================================================
   LANDING PAGE
   ====================================================== */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f4f6f9 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: .75rem;
    line-height: 1.15;
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: left;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.feature-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.5;
}

.landing-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.landing-nav-links { display: flex; gap: .75rem; }

/* ======================================================
   AI LOADING OVERLAY
   ====================================================== */

.ai-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(3px);
    z-index: 900;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.ai-loading-overlay.active {
    display: flex;
}

.ai-loading-label {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
}

.ai-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text);
    max-width: 520px;
    text-align: center;
    line-height: 1.55;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .35s ease;
}

.ai-quote.fade-out { opacity: 0; }

.ai-loading-sublabel {
    font-size: .875rem;
    color: var(--muted);
    margin-top: -.75rem;
}

.progress-track {
    width: 320px;
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), #818cf8, var(--primary));
    background-size: 200% 100%;
    animation: progress-slide 1.6s ease-in-out infinite;
}

@keyframes progress-slide {
    0%   { background-position: 200% 0; width: 45%; margin-left: -45%; }
    50%  { background-position: 0% 0;   width: 60%; margin-left: 80%;  }
    100% { background-position: -200% 0; width: 45%; margin-left: 110%; }
}

/* ======================================================
   ONBOARDING OVERLAY
   ====================================================== */

.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 700;
    padding: 1.5rem;
}

.onboarding-overlay[hidden] { display: none; }

.onboarding-box {
    background: var(--surface);
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 32px 80px rgba(0,0,0,.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: modal-rise .4s cubic-bezier(.22,1,.36,1) both;
}

.onboarding-header {
    padding: 2rem 2rem 1.25rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
}

.onboarding-eyebrow {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.55);
    margin-bottom: .4rem;
}

.onboarding-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}

.onboarding-desc {
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    line-height: 1.55;
}

.onboarding-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.onboarding-footer {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    gap: 1rem;
}

/* ======================================================
   FLAWS CONFIDENCE MODAL
   ====================================================== */

.flaws-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 600;
    padding: 1.5rem;
    animation: modal-fade-in .25s ease both;
}

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

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.flaws-modal-box {
    background: var(--surface);
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    overflow: hidden;
    animation: modal-rise .35s cubic-bezier(.22,1,.36,1) both;
}

@keyframes modal-rise {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.flaws-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem 1.75rem 1.25rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
}

.flaws-modal-eyebrow {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.6);
    margin-bottom: .3rem;
}

.flaws-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.flaws-modal-header .modal-close {
    color: rgba(255,255,255,.6);
    font-size: 1.6rem;
    margin-top: -.1rem;
    flex-shrink: 0;
}

.flaws-modal-header .modal-close:hover { color: #fff; }

.flaws-modal-body {
    padding: 1.25rem 1.75rem 1.5rem;
    max-height: 58vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flaw-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.flaw-item-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: .35rem;
}

.flaw-item-arrow {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: .35rem;
    line-height: 1;
}

.flaw-item-strength {
    font-size: .93rem;
    line-height: 1.65;
    color: var(--text);
}

.flaws-modal-footer {
    padding: 1rem 1.75rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

/* ======================================================
   QUOTE FOOTER
   ====================================================== */

.quote-footer {
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    padding: 1.75rem 2rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    overflow: hidden;
}

.quote-footer--new {
    animation: footer-rise .7s cubic-bezier(.22, 1, .36, 1) .2s both;
}

@keyframes footer-rise {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Giant decorative opening quote mark */
.quote-footer::before {
    content: '\201C';
    position: absolute;
    top: -.5rem;
    left: 1.75rem;
    font-size: 9rem;
    color: rgba(255,255,255,.06);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.quote-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.quote-footer--new .quote-footer-inner {
    animation: quote-fade-up .6s cubic-bezier(.22, 1, .36, 1) .75s both;
}

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

.quote-footer-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,.92);
    font-style: italic;
    letter-spacing: .02em;
    line-height: 1.65;
    font-family: Georgia, 'Times New Roman', serif;
}

.quote-footer--new .quote-footer-text {
    animation: quote-glow 1.4s ease 1.3s both;
}

@keyframes quote-glow {
    0%   { text-shadow: none; }
    40%  { text-shadow: 0 0 22px rgba(255,255,255,.55), 0 0 8px rgba(255,255,255,.3); }
    100% { text-shadow: none; }
}

/* ======================================================
   UTILITY
   ====================================================== */

.text-muted { color: var(--muted); }
.text-sm    { font-size: .875rem; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-0  { margin-bottom: 0; }
.flex  { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ======================================================
   SOURCE TOGGLE (Adzuna / Indeed)
   ====================================================== */

.source-toggle {
    display: flex;
    gap: .25rem;
    margin-bottom: .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .25rem;
    width: fit-content;
}

.source-toggle-btn {
    padding: .35rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.source-toggle-btn:hover {
    color: var(--text);
}

.source-toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 768px) {
    .job-detail-grid  { grid-template-columns: 1fr; }
    .profile-grid     { grid-template-columns: 1fr; }
    .tracker-stats    { grid-template-columns: repeat(3, 1fr); }
    .feature-grid     { grid-template-columns: 1fr; }
    .topbar-links     { display: none; }
    .hero h1          { font-size: 2rem; }
}

@media (max-width: 480px) {
    .tracker-stats { grid-template-columns: 1fr 1fr; }
    .search-bar    { flex-direction: column; }
    .container     { padding: 1.25rem .75rem; }
}
