:root {
    --primary: #00B4A6;
    --primary-deep: #1B4D8C;
    --primary-glow: rgba(0, 180, 166, 0.35);
    --accent-2: #1B4D8C;
    --bg: #0B1628;
    --card-bg: rgba(16, 28, 50, 0.75);
    --text: #f8fafc;
    --text-dim: #A8B4C4;
    --glass-border: rgba(255, 255, 255, 0.10);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    /* Shared column for CV upload + Job Search / Profile / etc. */
    --dashboard-width: 800px;
}

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

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

body {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
}

.glass-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(27, 77, 140, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 30%, rgba(0, 180, 166, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(11, 22, 40, 0.9) 0%, var(--bg) 65%);
    z-index: -1;
    animation: rotate 28s linear infinite;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2rem;
    flex: 1 0 auto;
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    overflow: visible;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 480px) {
    .logo-img {
        height: 44px;
    }
}

.logo span {
    background: linear-gradient(120deg, var(--primary), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.35rem;
}

.nav-links a.nav-link {
    position: relative;
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    padding: 0.25rem 0 0.55rem;
    border-bottom: none;
    transition: color 0.3s, font-weight 0.3s;
}

.nav-links a.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 1px;
    background: transparent;
    transition: background 0.2s ease;
}

.nav-links a.nav-link:hover {
    color: var(--text);
}

.nav-links a.nav-link.active {
    color: var(--text);
    font-weight: 600;
}

.nav-links a.nav-link.active::after {
    background: var(--text);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(to right, #00B4A6, #1B4D8C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Upload Section — same width/alignment as Job Search card */
.upload-section {
    width: 100%;
    max-width: var(--dashboard-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 0 0.85rem;
    box-sizing: border-box;
}

@keyframes revealSoft {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-zone {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: var(--card-bg);
    border: 1.5px dashed var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    min-height: 0;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.upload-zone:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: none;
}

.upload-zone.is-uploading {
    cursor: default;
    pointer-events: none;
    border-style: solid;
    border-color: rgba(0, 180, 166, 0.45);
}

.icon-pulse {
    margin-bottom: 0.45rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.75; }
    100% { transform: scale(1); opacity: 1; }
}

.upload-content p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.upload-content p span {
    color: var(--primary);
    font-weight: 600;
}

.upload-content small {
    color: var(--text-dim);
    font-size: 0.78rem;
}

/* Upload progress */
.upload-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    padding: 0.35rem 0.25rem;
}

.upload-progress.hidden {
    display: none;
}

.upload-progress-ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.upload-progress-ring svg {
    transform: rotate(-90deg);
}

.upload-progress-track {
    fill: none;
    stroke: rgba(148, 163, 184, 0.25);
    stroke-width: 4;
}

.upload-progress-value {
    fill: none;
    stroke: #00B4A6;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 0.15s linear;
}

.upload-progress-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text);
}

.upload-progress-meta {
    flex: 1;
    min-width: 0;
    max-width: 22rem;
}

.upload-progress-file {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.upload-progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1B4D8C, #34d399);
    transition: width 0.15s linear;
}

.upload-progress-label {
    margin: 0;
    font-size: 0.75rem;
}

/* File Uploaded State */
.file-uploaded-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.file-info span {
    font-weight: 600;
    font-size: 0.88rem;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.file-actions .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

.remove-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
}

.apply-auto-block {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.apply-auto-block--ready {
    background: rgba(0, 180, 166, 0.1);
    border-color: rgba(0, 180, 166, 0.45);
}

.apply-auto-block--manual {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(120, 53, 15, 0.18);
}

.apply-auto-block--applied {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(20, 83, 45, 0.28);
}

.job-apply-status-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 0.22rem 0.55rem;
    margin-bottom: 0.55rem;
}

.job-apply-status-badge--applied {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.28);
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.job-applied-state {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.job-applied-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.22);
    border: 1px solid rgba(74, 222, 128, 0.45);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
}

.job-cv-strip {
    margin: 0.35rem 0 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.job-cv-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0;
    font-size: 0.88rem;
}

.job-cv-file-name {
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

.job-cv-file-status {
    font-size: 0.72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86efac;
}

.job-cv-missing {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
}

.job-results-skeleton-label {
    margin: 0 0 0.75rem;
}

.job-skeleton-card {
    pointer-events: none;
    min-height: 7.5rem;
    margin-bottom: 0.85rem;
}

.skel-line {
    display: block;
    height: 0.7rem;
    border-radius: 6px;
    margin-bottom: 0.65rem;
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.12) 0%,
        rgba(148, 163, 184, 0.22) 50%,
        rgba(148, 163, 184, 0.12) 100%
    );
    background-size: 200% 100%;
    animation: skelShimmer 1.2s ease-in-out infinite;
}

.skel-line--title { width: 68%; height: 1rem; }
.skel-line--sub { width: 42%; }
.skel-line--meta { width: 55%; }
.skel-line--block { width: 100%; height: 2.2rem; margin-bottom: 0; }

@keyframes skelShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.job-apply-status-badge--ready {
    color: #b2dfdb;
    background: rgba(0, 180, 166, 0.28);
    border: 1px solid rgba(0, 180, 166, 0.4);
}

.job-apply-status-badge--pending {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.job-apply-status-badge--searching {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.job-apply-status-badge--missing {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.apply-btn--manual {
    opacity: 0.85;
    font-size: 0.82rem;
}

.apply-email-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin: 0 0 0.35rem;
}

.apply-email-value {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-all;
}

.job-contact-emails {
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.job-contact-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.job-contact-type {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    min-width: 7.5rem;
}

.job-contact-email {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.job-contact-email:hover {
    text-decoration: underline;
}

.job-contact-validation {
    font-size: 0.72rem;
    width: 100%;
    margin-left: 0;
}

.job-attribution {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.source-category-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.job-remote-tag,
.job-freshness {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.job-remote-tag {
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
}

.job-freshness--active {
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.35);
}

.job-freshness--closed {
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.4);
}

.job-freshness--unverified,
.job-freshness--error {
    color: var(--text-dim);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.job-source-refs {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.apply-email-missing {
    margin-bottom: 0.35rem;
}

.apply-email-empty {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.apply-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.45;
    margin: 0 0 0.75rem;
}

.apply-hint-actions {
    margin: 0 0 0.75rem;
}

.apply-inline-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.apply-inline-link:hover {
    text-decoration: underline;
}

.btn-send-cv-auto {
    margin-top: 0.25rem;
}

.btn-send-cv-auto:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.job-actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* Temporarily hidden nav items / phase modules (keep markup for later re-enable) */
.nav-link.phase-hidden,
.phase-hidden[hidden] {
    display: none !important;
}


/* Animations */
.animate-up {
    animation: fadeInUp 0.35s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.auth-ui {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.btn-google {
    background: #fff;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-google img {
    width: 18px;
}

.btn-google:hover {
    background: #f1f1f1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.logout-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
}

.logout-link:hover {
    color: var(--primary);
}

/* Dashboard Components — shared width with CV upload bar */
.dashboard-focus {
    width: 100%;
    max-width: var(--dashboard-width);
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 3.5rem;
    box-sizing: border-box;
}

.job-search-centric {
    width: 100%;
}

.glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.55));
    backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.job-search-shell {
    position: relative;
    overflow: hidden;
}

.job-search-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 280px at 10% -20%, rgba(27, 77, 140, 0.1), transparent 60%);
    pointer-events: none;
}

.search-hero {
    position: relative;
    margin-bottom: 1rem;
}

.search-hero h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.search-sub {
    color: var(--text-dim);
    font-size: 0.86rem;
    max-width: 36rem;
    line-height: 1.45;
    margin: 0;
}

.search-controls-premium {
    position: relative;
    gap: 0.85rem;
}

.field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

.search-inputs-primary {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.search-inputs-primary input {
    font-size: 0.98rem;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.search-inputs-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.email-finder-inputs {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 900px) {
    .email-finder-inputs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .search-inputs-secondary {
        grid-template-columns: 1fr;
    }
}

.field-group {
    flex: 1;
    min-width: 0;
}

.btn-search-cta {
    align-self: auto;
    width: fit-content;
    min-width: 7.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 12px;
    font-size: 0.92rem;
    background: linear-gradient(135deg, var(--primary-deep), #134178);
    box-shadow: 0 8px 28px rgba(27, 77, 140, 0.32);
}

.btn-search-cta:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 12px 36px rgba(27, 77, 140, 0.42);
}

.search-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.btn-import-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.btn-import-toggle[aria-expanded="true"] {
    border-color: rgba(0, 180, 166, 0.55);
    color: var(--text);
}

.btn-import-chevron {
    font-size: 0.75rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.btn-import-toggle[aria-expanded="true"] .btn-import-chevron {
    transform: rotate(180deg);
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.25);
}

.search-opt-in {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.1rem 0 0.15rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-dim);
    cursor: pointer;
    max-width: 40rem;
}

.search-opt-in input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.import-panel {
    margin: 0.35rem 0 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    animation: revealSoft 0.3s var(--ease-out) both;
}

.import-panel.hidden,
.import-panel[hidden] {
    display: none !important;
}

.import-panel-title {
    margin: 0.1rem 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.import-panel-sub {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.import-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.85rem;
}

.import-field-full {
    grid-column: 1 / -1;
}

.import-fields textarea {
    width: 100%;
    resize: vertical;
    min-height: 4rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.45);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
}

.import-actions {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

#import-status {
    margin-top: 0.75rem;
}

.job-imported-badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.35);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.search-mode-pill {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 180, 166, 0.4);
    color: #b2dfdb;
    vertical-align: middle;
}

@media (max-width: 720px) {
    .import-fields {
        grid-template-columns: 1fr;
    }
}

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.results-toolbar-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.btn-add-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-add-cv:hover {
    background: rgba(0, 180, 166, 0.18);
    border-color: rgba(0, 180, 166, 0.45);
    transform: translateY(-1px);
}

.btn-add-cv:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-add-cv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(0, 180, 166, 0.2);
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: #334155;
}

.status-badge.processing { background: #1e3a8a; color: #60a5fa; animation: blink 1.5s infinite; }
.status-badge.complete { background: #064e3b; color: #34d399; }
.status-badge.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.status-badge.error { background: #7f1d1d; color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.4); }

@keyframes blink {
    50% { opacity: 0.6; }
}

.skill-tag {
    background: rgba(0, 180, 166, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin: 0.3rem;
    display: inline-block;
}

.exp-item {
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.exp-item h4 { margin-bottom: 0.3rem; }
.exp-item small { color: var(--text-dim); display: block; margin-bottom: 0.5rem; }

.raw-text {
    background: #000;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

/* Search Controls */
.search-controls {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.search-inputs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.search-inputs input, .glass-select {
    flex: 1;
    min-width: 150px;
}

.glass-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.glass-select option {
    background: var(--bg);
}

input[type="text"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: #fff;
    width: 100%;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.02);
}

/* Job Cards */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    padding: 1.5rem !important;
    background: rgba(15, 23, 42, 0.5) !important;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.source-badge {
    font-size: 0.7rem;
    background: #475569;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.source-linkedin { background: #0077b5; }
.source-indeed { background: #2164f3; }
.source-wellfound { background: #ff4d4d; }
.source-weworkremotely { background: #ff5a5f; }
.source-remoteok { background: #ff4742; }
.source-glassdoor { background: #0caa41; }
.source-comparably { background: #1B4D8C; }
.source-blind { background: #1e293b; }
.source-kununu { background: #e11d48; }
.source-inhersight { background: #db2777; }
.source-careerbliss { background: #0891b2; }
.source-rozee { background: #be123c; }
.source-upwork { background: #14a800; }
.source-rozee { background: #e11d48; }
.source-dice { background: #1a73e8; }
.source-remotive { background: #3c6e71; }
.source-flexjobs { background: #5a3e85; }
.source-justremote { background: #0ea5e9; }
.source-workingnomads { background: #f97316; }
.source-remotelyjobs { background: #22c55e; }
.source-remote4me { background: #a855f7; }
.source-nodesk { background: #64748b; }
.source-freelancerin { background: #0b65c2; }
.source-remoteco { background: #14b8a6; }
.source-web { background: #475569; }

.company { color: var(--text-dim); font-size: 0.9rem; }
.location { font-size: 0.8rem; margin: 0.5rem 0; }

.apply-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.apply-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.job-platform-apply-badge {
    display: none; /* replaced by job-apply-status-badge — keep class for old cached HTML */
}
.posted-date {
    font-size: 0.75rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.search-info-bar {
    background: rgba(0, 180, 166, 0.1);
    border: 1px solid var(--primary);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.search-info-bar p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.search-info-bar .search-email-note {
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.search-policy-note {
    margin-top: 0.25rem;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.search-timing-note {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.search-timing-note code {
    font-size: 0.8em;
}

.source-breakdown {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.source-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Review Specific Styles */
.review-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.review-container--hub {
    display: block;
}

.review-hub-main {
    width: 100%;
}

.review-hub-intro {
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 180, 166, 0.25) !important;
    background: rgba(15, 23, 42, 0.45) !important;
}

.review-hub-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.review-hub-steps {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.review-hub-steps strong {
    color: var(--text);
}

.review-section-heading {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-dim);
    font-weight: 700;
}

.review-source-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: -0.5rem 0 0.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-source-banner-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.review-source-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.review-source-site {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.review-kind-pill {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: rgba(0, 180, 166, 0.15);
    border: 1px solid rgba(0, 180, 166, 0.35);
    color: #b2dfdb;
}

.review-kind-expl {
    font-size: 0.8rem;
    margin: 0 0 1rem;
    line-height: 1.45;
}

.review-hub-empty {
    margin-bottom: 1.25rem;
}

.review-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 6rem;
}

.review-main {
    flex: 1;
}

#review-summary-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: min(72vh, 28rem);
    overflow-y: auto;
    padding-right: 0.35rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-card .source {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
}

.summary-card .count {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.review-card {
    padding: 2rem !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border-left: 4px solid var(--primary);
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateX(5px);
    background: rgba(15, 23, 42, 0.8) !important;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.rating-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.review-meta-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.review-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

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

.review-snippet {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1rem;
}

.review-source-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.review-source-link:hover {
    text-decoration: underline;
}

.review-sidebar-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin: 0 0 0.5rem;
}

.review-sidebar-link {
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s, border-color 0.2s;
}

.review-sidebar-link:hover {
    background: rgba(0, 180, 166, 0.12);
    border-color: rgba(0, 180, 166, 0.4);
}

.review-preview-note {
    margin: 0 0 1rem;
    font-size: 0.88rem;
}

.review-external-card {
    margin-top: 0.5rem;
    padding: 1.25rem 1.5rem !important;
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(0, 180, 166, 0.25) !important;
}

.review-external-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.review-external-sub {
    margin: 0 0 1rem;
    font-size: 0.8rem;
}

.review-external-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.review-external-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(27, 77, 140, 0.25), rgba(0, 180, 166, 0.1));
    border: 1px solid rgba(0, 180, 166, 0.35);
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.review-external-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 180, 166, 0.55);
}

/* Active underline: see .nav-links a.nav-link.active::after above */

.label-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-dim);
    font-size: 0.65rem;
}

#review-panel .review-container {
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .review-container {
        flex-direction: column;
    }
    .review-sidebar {
        position: relative;
        top: auto;
        flex: 1 1 auto;
        width: 100%;
    }
    #review-summary-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Email finder — matches dashboard glass / gradient language */
.email-finder-head {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.email-finder-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: linear-gradient(145deg, rgba(27, 77, 140, 0.25), rgba(0, 180, 166, 0.12));
    border: 1px solid rgba(0, 180, 166, 0.35);
    box-shadow: 0 8px 32px rgba(27, 77, 140, 0.2);
}

.email-finder-hero-text {
    margin-bottom: 0;
}

.email-finder-hero-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.email-finder-card .search-controls-premium {
    margin-bottom: 1.5rem;
}

.email-finder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.btn-suggest-sites {
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
}

.suggested-websites {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.45);
}

.suggested-websites.hidden {
    display: none;
}

.suggested-label {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text);
}

.suggested-empty {
    margin: 0;
    font-size: 0.9rem;
}

.suggested-site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.suggested-site-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.4);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.suggested-site-card--picked {
    border-color: rgba(0, 180, 166, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 180, 166, 0.2);
}

.suggested-site-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.suggested-site-host {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-all;
}

.btn-site-use {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
}

.btn-find-emails-site {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
}

#email-status.email-status-slot {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.email-container-rich {
    position: relative;
    z-index: 1;
}

#email-results-section {
    scroll-margin-top: 5.5rem;
    scroll-margin-bottom: 2rem;
}

.jobtide-snackbar {
    position: fixed;
    bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    z-index: 10050;
    max-width: min(34rem, calc(100vw - 1.75rem));
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.jobtide-snackbar--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.jobtide-snackbar-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.jobtide-snackbar-text {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.45;
    color: var(--text);
    font-weight: 500;
}

.jobtide-snackbar--loading .jobtide-snackbar-inner {
    border-color: rgba(0, 180, 166, 0.5);
}

.jobtide-snackbar--success .jobtide-snackbar-inner {
    border-color: rgba(34, 197, 94, 0.5);
}

.jobtide-snackbar--error .jobtide-snackbar-inner {
    border-color: rgba(248, 113, 113, 0.55);
}

.jobtide-snackbar--info .jobtide-snackbar-inner {
    border-color: rgba(148, 163, 184, 0.35);
}

.jobtide-snackbar-indicator {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.08rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
}

.jobtide-snackbar--loading .jobtide-snackbar-indicator {
    animation: jobtide-snack-spin 0.7s linear infinite;
}

.jobtide-snackbar:not(.jobtide-snackbar--loading) .jobtide-snackbar-indicator {
    display: none;
}

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

.email-results-grid {
    gap: 1rem;
}

.email-result-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.5rem !important;
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}

.email-result-card:hover {
    border-color: rgba(0, 180, 166, 0.35);
    transform: translateY(-2px);
}

.email-result-main {
    flex: 1;
    min-width: 0;
}

.email-result-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

.email-result-address {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

.email-result-meta {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
}

.btn-email-compose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-deep), #134178);
    box-shadow: 0 8px 24px rgba(27, 77, 140, 0.35);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.btn-email-compose:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(27, 77, 140, 0.45);
}


.email-source-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.email-source-link:hover {
    text-decoration: underline;
}

.privacy-consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 17, 32, 0.96);
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(12px);
}

.privacy-consent-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.privacy-consent-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.privacy-consent-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-dim);
    max-width: 42rem;
}

.privacy-consent-bar.hidden {
    display: none;
}

.profile-search-hint {
    margin: -0.25rem 0 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.profile-completeness {
    margin: 0 0 1.25rem;
}

.profile-completeness-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.profile-completeness-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #34d399, #1B4D8C);
    transition: width 0.35s ease;
}

.profile-completeness-label {
    margin: 0;
    font-size: 0.85rem;
}

.profile-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.profile-block--wide {
    grid-column: 1 / -1;
}

.profile-role-primary {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}

.profile-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    min-width: 5.5rem;
}

.profile-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.profile-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(0, 180, 166, 0.15);
    border: 1px solid rgba(0, 180, 166, 0.25);
    color: var(--text);
}

.profile-skills-categorized {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-skill-category-title {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.profile-block {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.profile-block > .field-group {
    margin: 0;
}

.profile-block > .field-group .field-label {
    margin-bottom: 0.45rem;
}

.profile-block > #profile-save-basics {
    margin-top: 0.35rem;
    align-self: flex-start;
}

.profile-block-title {
    margin: 0;
    font-size: 1rem;
}

.profile-block-sub {
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 28rem;
    overflow: auto;
}

.profile-skill-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.profile-skill-row.is-verified {
    border-color: rgba(134, 239, 172, 0.35);
    background: rgba(22, 101, 52, 0.15);
}

.profile-skill-name {
    font-weight: 600;
    display: block;
}

.profile-skill-meta {
    font-size: 0.72rem;
}

.profile-skill-evidence {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
}

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

/* Phase 4: explainable match */
.job-match {
    margin: 0.85rem 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
}

.job-match--strong {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(6, 78, 59, 0.25);
}

.job-match--good {
    border-color: rgba(0, 180, 166, 0.4);
}

.job-match--partial {
    border-color: rgba(251, 191, 36, 0.35);
}

.job-match--weak,
.job-match--ineligible {
    border-color: rgba(248, 113, 113, 0.35);
    opacity: 0.92;
}

.job-match-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.55rem;
}

.job-match-score {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.job-match-band {
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.2);
}

.job-match--strong .job-match-band {
    background: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}

.job-match-summary {
    flex: 1 1 12rem;
    font-size: 0.8rem;
    line-height: 1.35;
}

.job-match-bars {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.job-match-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
}

.job-match-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--w, 0%);
    background: #00B4A6;
    border-radius: inherit;
}

.job-match-bar--exp::after {
    background: #34d399;
}

.job-match-bar--pref::after {
    background: #fbbf24;
}

.match-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.match-chip-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-right: 0.15rem;
}

.match-chip {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.match-chip--strong {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.35);
}

.match-chip--partial {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.35);
}

.match-chip--missing {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
}

.job-match-flags {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.job-match-flags .match-hard {
    color: #fca5a5;
}

/* Phase 5: Applications pipeline */
.app-pipeline-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
}

.app-count-pill {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.45);
    color: var(--text-dim);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.app-count-pill:hover {
    border-color: rgba(0, 180, 166, 0.45);
    color: var(--text);
}

.app-count-n {
    font-weight: 700;
    color: var(--text);
    margin-right: 0.2rem;
}

.app-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.app-filter-row .field-label {
    margin-bottom: 0;
}

.app-filter-row .glass-select {
    min-width: 9rem;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.app-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.4);
}

.app-card.is-selected {
    border-color: rgba(0, 180, 166, 0.5);
}

.app-card h4 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
}

.app-card .company {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.app-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    align-items: center;
    font-size: 0.78rem;
}

.app-status {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(148, 163, 184, 0.2);
}

.app-status--saved { background: rgba(0, 180, 166, 0.22); color: #b2dfdb; }
.app-status--preparing { background: rgba(251, 191, 36, 0.2); color: #fde68a; }
.app-status--ready { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }
.app-status--applied { background: rgba(34, 197, 94, 0.25); color: #86efac; }
.app-status--rejected { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }
.app-status--discovered { background: rgba(148, 163, 184, 0.18); }

.app-match-pill {
    font-size: 0.72rem;
    color: #80cbc4;
}

.application-detail {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 180, 166, 0.3);
    background: rgba(15, 23, 42, 0.55);
}

.application-detail.hidden {
    display: none;
}

.app-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.app-detail-head h3 {
    margin: 0.15rem 0 0.25rem;
    font-size: 1.15rem;
}

.app-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 1rem;
}

.app-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .app-detail-grid {
        grid-template-columns: 1fr;
    }
}

.app-jd {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-dim);
    max-height: 12rem;
    overflow: auto;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.app-note-form {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.app-note-form input {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.45);
    color: var(--text);
}

.app-notes-list,
.app-history-list,
.app-contact-list {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.app-snapshot-badge {
    margin: 0.4rem 0 0;
    font-size: 0.72rem;
    color: #86efac;
}

.app-docs-panel {
    margin: 0 0 1.1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.35);
}

.app-docs-panel--empty {
    border-style: dashed;
}

.app-docs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.65rem;
}

.app-docs-head .profile-block-title {
    margin: 0;
}

.app-docs-meta {
    margin: 0;
    font-size: 0.72rem;
}

.app-docs-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.app-docs-evidence {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem 1rem;
    margin-bottom: 0.65rem;
}

@media (max-width: 720px) {
    .app-docs-evidence {
        grid-template-columns: 1fr;
    }
}

.app-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.app-chip {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: var(--text);
    background: rgba(15, 23, 42, 0.55);
}

.app-chip--verified {
    border-color: rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
}

.app-blocked-list,
.app-changes-list {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-dim);
}

.app-blocked-list strong,
.app-changes-list strong {
    color: var(--text);
    font-weight: 600;
}

.app-docs-missing {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: #fbbf24;
}

.app-docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 720px) {
    .app-docs-grid {
        grid-template-columns: 1fr;
    }
}

.app-doc-block h5 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.app-doc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.app-doc-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-dim);
    max-height: 14rem;
    overflow: auto;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.job-contact-legend {
    margin: 0.15rem 0 0.45rem;
    font-size: 0.7rem;
}

.job-contact-cat {
    margin-left: 0.25rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.75;
}

.job-risk-banner {
    margin: 0.65rem 0 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.25);
}

.job-risk-banner--medium {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(120, 53, 15, 0.28);
}

.job-risk-banner--low {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.45);
}

.job-risk-title {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.job-risk-list {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--text-dim);
}

.risk-sev {
    display: inline-block;
    min-width: 3.2rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fecaca;
}

.risk-sev--medium {
    color: #fde68a;
}

.risk-sev--low {
    color: #cbd5e1;
}

.company-profile-card {
    margin: 0.5rem 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.3);
}

.company-profile-title {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.company-profile-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.78rem;
    line-height: 1.45;
}

.company-profile-list li {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.35rem;
}

.company-profile-list a {
    color: var(--accent, #93c5fd);
}

.app-contact-cards .job-contact-line {
    margin-bottom: 0.35rem;
}

.app-detail-match {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0 0 0.5rem;
}

.app-guided-apply {
    margin: 0.75rem 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.28);
}

.app-guided-apply .profile-block-title {
    margin-top: 0;
}

.app-mode3-apply {
    margin: 0.75rem 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px dashed rgba(251, 191, 36, 0.35);
    background: rgba(69, 26, 3, 0.18);
}

.app-mode3-apply .profile-block-title {
    margin-top: 0;
}

.app-mode3-result {
    margin: 0.55rem 0 0;
    padding: 0.55rem 0.65rem;
    max-height: 12rem;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.45);
}

#app-mode3-grant:not(.hidden),
#app-guided-token:not(.hidden) {
    display: block;
    width: 100%;
    margin-top: 0.45rem;
    box-sizing: border-box;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.5);
    color: var(--text);
    font-size: 0.75rem;
}

.profile-mode3-prefs {
    margin: 0.85rem 0 1rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.profile-mode3-note {
    font-size: 0.78rem;
    margin: 0 0 0.55rem;
}

.field-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    margin-bottom: 0.55rem;
    cursor: pointer;
}

.field-check input {
    width: auto;
}

.apply-sent-ok {
    color: #34d399;
    font-weight: 600;
    margin: 0;
}

.app-follow-up {
    margin: 0.75rem 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.35);
}

.app-follow-up--pending {
    border-color: rgba(251, 191, 36, 0.35);
}

.app-last-sent {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
}

.apply-approve-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.apply-approve-modal.hidden {
    display: none;
}

.apply-approve-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
}

.apply-approve-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    padding: 1.1rem 1.15rem 1.25rem;
}

.apply-approve-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.apply-approve-head h3 {
    margin: 0.15rem 0 0;
    font-size: 1.15rem;
}

.apply-approve-scope {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
}

.apply-approve-warnings {
    margin-bottom: 0.75rem;
}

.apply-approve-warnings ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    color: #fde68a;
}

.apply-approve-label {
    display: block;
    margin: 0.55rem 0 0.25rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.apply-approve-panel input,
.apply-approve-panel textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.5);
    color: var(--text);
    font: inherit;
}

.apply-approve-panel textarea {
    resize: vertical;
    min-height: 10rem;
    line-height: 1.45;
}

.apply-approve-attachments,
.apply-approve-followup {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
}

.apply-approve-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.75rem 0 0.5rem;
    font-size: 0.82rem;
}

.apply-approve-check.hidden {
    display: none;
}

.apply-approve-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

#apply-approve-status {
    margin-top: 0.65rem;
}

/* Site footer + legal pages — pinned to viewport bottom when content is short */
.site-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 1.75rem 1.5rem 2.25rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    width: 100%;
}

.site-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

.site-footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
}

.site-footer-links a:hover {
    color: var(--primary);
}

.site-footer-copy {
    font-size: 0.8rem;
    width: 100%;
    margin: 0;
}

@media (min-width: 720px) {
    .site-footer-copy {
        width: auto;
        margin-left: auto;
    }
}

.legal-container {
    max-width: 820px;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.legal-card {
    padding: 1.75rem 1.5rem 2rem;
}

.legal-card h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    margin: 0.25rem 0 0.5rem;
}

.legal-meta {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.legal-card h2 {
    font-size: 1.1rem;
    font-weight: 650;
    margin: 1.5rem 0 0.55rem;
    letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
    color: var(--text-dim);
    line-height: 1.65;
    font-size: 0.95rem;
}

.legal-card p {
    margin-bottom: 0.75rem;
}

.legal-card ul,
.legal-card ol {
    margin: 0.35rem 0 0.85rem 1.2rem;
}

.legal-card li {
    margin-bottom: 0.4rem;
}

.legal-card a {
    color: var(--primary);
}

.legal-card code {
    font-size: 0.82em;
    color: #b2dfdb;
    background: rgba(0, 180, 166, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.legal-related {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.privacy-consent-links {
    margin-top: 0.55rem;
    font-size: 0.82rem;
}

.privacy-consent-links a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-consent-links a:hover {
    text-decoration: underline;
}

.profile-legal-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.profile-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    margin-top: 0.45rem;
}

.profile-legal-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.profile-legal-links a:hover {
    text-decoration: underline;
}

.profile-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

#profile-account-status {
    margin-top: 0.55rem;
}

/* Interview Preparation */
.iv-prep-modes { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.iv-mode-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.iv-prep-form.hidden { display: none; }
.iv-prep-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.iv-field-full { grid-column: 1 / -1; }
.iv-prep-divider { grid-column: 1 / -1; text-align: center; color: var(--text-dim); font-size: 0.85rem; position: relative; }
.iv-prep-divider::before, .iv-prep-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--glass-border); }
.iv-prep-divider::before { left: 0; }
.iv-prep-divider::after { right: 0; }
.iv-generate-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1rem; padding: 0.75rem 1.5rem; }
.iv-prep-results { margin-top: 2rem; }
.iv-summary-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.iv-summary-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.iv-badge { background: rgba(99,102,241,0.15); color: var(--primary); padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 500; }
.iv-company-insights { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); }
.iv-company-insights h4 { margin-bottom: 0.5rem; font-size: 0.9rem; }
.iv-category { margin-bottom: 1.5rem; }
.iv-category-title { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text); }
.iv-count { color: var(--text-dim); font-weight: 400; }
.iv-question-card { padding: 1rem; margin-bottom: 0.5rem; border-radius: 0.75rem; cursor: pointer; }
.iv-question-card[open] { background: rgba(255,255,255,0.03); }
.iv-q-summary { display: flex; align-items: center; gap: 0.75rem; list-style: none; }
.iv-q-summary::-webkit-details-marker { display: none; }
.iv-q-num { min-width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 50%; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; }
.iv-q-text { flex: 1; font-weight: 500; }
.iv-q-diff { font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 0.5rem; text-transform: uppercase; font-weight: 600; }
.iv-diff-junior { background: rgba(34,197,94,0.15); color: #22c55e; }
.iv-diff-mid { background: rgba(234,179,8,0.15); color: #eab308; }
.iv-diff-senior { background: rgba(239,68,68,0.15); color: #ef4444; }
.iv-q-details { padding: 1rem 0 0 2.5rem; }
.iv-q-section { margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.5; }
.iv-q-section ul { margin: 0.25rem 0 0 1.25rem; }
.iv-q-section li { margin-bottom: 0.25rem; }
.iv-saved-preps { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); }
.iv-saved-title { font-size: 1rem; margin-bottom: 1rem; }
.iv-saved-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; margin-bottom: 0.5rem; }
.iv-saved-info { display: flex; flex-direction: column; gap: 0.25rem; }
.iv-saved-actions { display: flex; gap: 0.5rem; }
.iv-prep-fields textarea {
    width: 100%;
    resize: vertical;
    min-height: 4rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.45);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
}
.iv-prep-fields input[type="number"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: #fff;
    width: 100%;
}
@media (max-width: 640px) {
    .iv-prep-fields { grid-template-columns: 1fr; }
}
