/**
 * AYIO Jobs - Complete Stylesheet
 * Design tokens defined in design-system.css (loaded first)
 */

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold-dark);
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent long words/URLs from breaking layout */
p, li, td, th, label, span, dd {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive tables */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

/* ==================== Container ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ==================== Header ==================== */
.site-header {
    background: linear-gradient(135deg, #0f2040 0%, #1e3d6e 100%);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header--scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    background: rgba(8,21,42,0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.site-header .container {
    position: relative;
    max-width: 1280px;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    min-height: 64px;
    gap: 2rem;
}

/* Text logo — matches Sales "AYIO·Sales" pattern */
.site-logo {
    display: inline-flex;
    align-items: baseline;
    font-size: 24px;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 400;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo .logo-ayio {
    font-weight: 800;
    letter-spacing: 0.5px;
}

.site-logo .logo-product {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gold);
}

.site-logo:hover { color: var(--white); text-decoration: none; }

.site-logo .logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: super;
    margin: 0 3px 0 2px;
    flex-shrink: 0;
}

/* Legacy img logo fallback */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo span {
    color: var(--gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--gold);
    background: rgba(255,255,255,0.06);
}

.main-nav a.active {
    color: var(--gold);
    position: relative;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

/* Nav search icon */
.nav-search-btn {
    color: rgba(255,255,255,0.7);
    padding: 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.nav-search-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

/* Sign In pill button — !important needed to override .btn base border */
.btn.btn-signin {
    color: var(--white);
    font-weight: 600;
    padding: 6px 16px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    min-height: auto;
    box-shadow: none;
}

.btn-signin:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(240,165,0,0.08);
}

/* CTA pill button (header) */
.btn-cta {
    border-radius: var(--radius-full);
    padding: 0 22px;
    height: 44px;
    min-height: 44px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(240,165,0,0.25);
}

.btn-cta:hover {
    box-shadow: 0 4px 16px rgba(240,165,0,0.4);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    margin-left: auto;
    transition: background 0.2s ease;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255,255,255,0.15);
    -webkit-touch-callout: none;
    user-select: none;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
    will-change: transform, opacity;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: mobile-drawer is inline flex wrapper */
.mobile-drawer {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-overlay.active {
    display: block;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    gap: 0.5rem;
    min-height: 44px;
}

/* Accessibility: Focus states */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    z-index: 10000;
    text-decoration: none;
}
.skip-link:focus {
    top: 10px;
}

.btn-primary {
    background: var(--gold);
    color: var(--secondary-navy);
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(240,165,0,0.35);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--secondary-navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(240,165,0,0.4);
}

.btn-secondary {
    background: var(--secondary-navy);
    color: var(--white);
    border-color: var(--secondary-navy);
    box-shadow: 0 4px 14px rgba(15,31,61,0.25);
}

.btn-secondary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15,31,61,0.35);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(240,165,0,0.35);
}

.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(240,165,0,0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
    padding: 0.625rem 1.375rem;
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.btn-dashboard {
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(240,165,0,0.35);
}

.btn-dashboard:hover {
    background: var(--gold-dark);
    color: var(--navy);
    border-color: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(240,165,0,0.4);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
}

/* Button active (press) states */
.btn:active { transform: translateY(0); }
.btn-primary:active { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: 0 2px 8px rgba(240,165,0,0.25); }
.btn-secondary:active { background: #0f172a; border-color: #0f172a; box-shadow: 0 2px 8px rgba(15,31,61,0.2); }
.btn-outline:active { background: #0f172a; color: var(--white); }
.btn-dashboard:active { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-danger:active { background: #b91c1c; border-color: #b91c1c; }

/* Reusable loading spinner for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
    cursor: wait;
}
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Block button fix - ensure red background with white text even with btn-outline */
a.btn-outline.btn-danger,
button.btn-outline.btn-danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

a.btn-outline.btn-danger:hover,
button.btn-outline.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
    border-color: #dc2626;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    min-height: 44px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
}

.form-group small {
    display: block;
    margin-top: 0.375rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Form utility classes */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-input[type="text"],
.form-input[type="email"],
.form-input[type="password"],
.form-input[type="tel"],
.form-input[type="number"],
.form-input[type="date"],
.form-input[type="url"],
.form-input select,
.form-input textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    min-height: 44px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-input select:focus,
.form-input textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.form-section {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.form-section h2 {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
}

.form-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.checkbox-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}

.section-note {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* ==================== Alerts ==================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-search {
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-box .btn {
    border-radius: 0;
    padding: 1rem 2rem;
}

.hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-tags span {
    color: rgba(255,255,255,0.7);
}

.hero-tags a {
    padding: 0.375rem 0.875rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    transition: background 0.2s;
}

.hero-tags a:hover {
    background: rgba(255,255,255,0.2);
    color: var(--gold);
}

/* ==================== Jobs Section ==================== */
.jobs-section {
    padding: 3rem 0;
}

.jobs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
}

.filters-sidebar {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filter-group {
    margin-bottom: var(--space-6);
}

.filter-group h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.filter-group select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.jobs-main {
    min-width: 0;
}

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

.jobs-header h2 {
    font-size: 1.25rem;
}

.jobs-count {
    color: var(--gray-500);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-info {
    color: var(--gray-500);
}

/* ==================== CTA Section ==================== */
.cta-section {
    padding: 3rem 0;
    background: var(--gray-100);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cta-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.cta-card h3 {
    margin-bottom: 0.75rem;
}

.cta-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ==================== Job Detail ==================== */
.job-detail {
    padding: 2rem 0;
}

.job-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.job-detail-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.job-detail-header {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-detail-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.job-detail-company {
    display: flex;
    gap: 1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.job-detail-company .company-name {
    font-weight: 500;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9375rem;
}

.meta-item strong {
    color: var(--gray-500);
    font-weight: 500;
}

.job-detail-licenses {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.job-detail-salary {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--success);
    font-weight: 600;
}

.job-detail-description h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.description-content {
    color: var(--gray-700);
    line-height: 1.7;
}

.job-detail-section {
    margin-top: 2rem;
}

.job-detail-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.job-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.apply-card,
.company-card,
.share-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.apply-card h3,
.company-card h3,
.share-card h3 {
    margin-bottom: 1rem;
}

.apply-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-stats {
    display: flex;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.similar-jobs {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.similar-jobs h2 {
    margin-bottom: 1.5rem;
}

/* ==================== Apply Page ==================== */
.apply-section {
    padding: 2rem 0;
}

.apply-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.apply-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.apply-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.back-link:hover {
    color: var(--navy);
}

.apply-header h1 {
    font-size: 1.5rem;
}

.apply-company {
    color: var(--gray-600);
}

.profile-summary {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.profile-summary h3 {
    margin-bottom: 1rem;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-row {
    display: flex;
    gap: 0.5rem;
}

.profile-row .label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.profile-row .value {
    font-weight: 500;
}

.resume-note {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.apply-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.apply-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-summary-card,
.tips-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.job-summary-card h3,
.tips-card h3 {
    margin-bottom: 1rem;
}

.job-summary-card h4 {
    margin-bottom: 0.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-top: 1px solid var(--gray-100);
}

.tips-card ul {
    list-style: none;
}

.tips-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
}

.tips-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

.success-card {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.success-card h1 {
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==================== Auth Pages ==================== */
.auth-page {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-200) 100%);
    overflow-x: hidden;
}

.auth-page .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-box-wide {
    max-width: 600px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    display: inline-block;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

.auth-logo span {
    color: var(--gold);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.user-type-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.toggle-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.toggle-option input {
    display: none;
}

.toggle-option span {
    display: block;
    padding: 0.625rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.toggle-option input:checked + span {
    background: var(--navy);
    color: var(--white);
}

.register-type-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 2rem;
    background: #e8eaed;
    padding: 4px;
    border-radius: 12px;
}

.register-type-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 0.85rem 1rem;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.register-type-tabs .tab:hover:not(.active) {
    color: var(--navy);
    background: rgba(255,255,255,0.6);
}

.register-type-tabs .tab.active {
    background: #f0a500;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(240,165,0,0.3);
}


.auth-form .forgot-link {
    text-align: right;
    margin-top: 5px;
}

.auth-form .forgot-link a {
    font-size: 0.8125rem;
    color: var(--gold);
    font-weight: 500;
}

.auth-form .forgot-link a:hover {
    color: var(--gold-dark);
}

.auth-message {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-500);
}

/* Password reset form */
.password-requirements {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 5px;
}

.password-requirements.valid {
    color: var(--success);
}

.password-match {
    font-size: 0.8125rem;
    margin-top: 5px;
}

.password-match.match {
    color: var(--success);
}

.password-match.no-match {
    color: var(--error);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--navy);
    font-weight: 500;
}

/* ==================== Dashboard ==================== */
.dashboard {
    padding: 2rem 0;
}

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

.welcome h1 {
    margin-bottom: 0.25rem;
}

.welcome p {
    color: var(--gray-500);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    display: block;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.card-header h2 {
    font-size: 1.125rem;
}

.card-body {
    padding: 1.5rem;
}

.applications-list,
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-item,
.job-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.application-item.unread {
    background: #eff6ff;
    border-left: 3px solid var(--navy);
}

.application-info,
.job-info {
    flex: 1;
}

.application-info strong,
.job-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.application-info .job-title,
.application-info .time {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.job-stats {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.score {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.score.high {
    background: #d1fae5;
    color: #065f46;
}

.score.medium {
    background: #fef3c7;
    color: #92400e;
}

.score.low {
    background: #fee2e2;
    color: #991b1b;
}

.quick-actions {
    margin-top: 2rem;
}

.quick-actions h2 {
    margin-bottom: 1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    will-change: transform;
}

.action-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.action-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.action-label {
    font-weight: 500;
    color: var(--gray-700);
}

/* ==================== Profile Completion ==================== */
.profile-completion-card {
    background: #f0f7ff;
    color: #1a2744;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid #d0e2f7;
}

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

.completion-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.completion-bar {
    height: 8px;
    background: #d0e2f7;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.completion-progress {
    height: 100%;
    background: var(--gold);
    border-radius: 50px;
    transition: width 0.3s;
}

.profile-completion-card p {
    margin-bottom: 1rem;
    color: #3b5068;
}

.profile-suggestions {
    margin: 10px 0;
    padding-left: 20px;
    font-size: 0.875rem;
    color: #4a6580;
}

.profile-completion-card--success {
    background: #f0fdf4;
    color: var(--gray-800);
    border: 1px solid #86efac;
}

.profile-completion-card--success h3 {
    color: #166534;
}

.profile-completion-card--success .completion-percent {
    color: #166534;
    font-size: 1rem;
}

.profile-completion-card--success .completion-bar {
    background: #dcfce7;
}

.profile-completion-card--success .completion-progress {
    background: #22c55e;
}

.profile-completion-card--success p,
.profile-completion-card--success ul {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.profile-completion-card--success ul {
    margin: 10px 0;
    padding-left: 20px;
}

.profile-completion-bar {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.profile-completion-bar .completion-bar {
    background: var(--gray-200);
    margin-bottom: 0;
}

.profile-completion-bar .completion-progress {
    background: var(--success);
}

/* ==================== Tables ==================== */
.table-container {
    overflow-x: auto;
}

.data-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td,
.admin-table th,
.admin-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th,
.admin-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: var(--gray-50);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ==================== Status Badges ==================== */
.status {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-paused {
    background: #fef3c7;
    color: #92400e;
}

.status-suspended {
    background: #fee2e2;
    color: #991b1b;
}

.status-new {
    background: #dbeafe;
    color: #1e40af;
}

.status-reviewing {
    background: #fef3c7;
    color: #92400e;
}

.status-shortlisted {
    background: #d1fae5;
    color: #065f46;
}

.status-interview {
    background: #ede9fe;
    color: #5b21b6;
}

.status-offered {
    background: var(--gold);
    color: var(--navy);
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-featured {
    background: var(--gold);
    color: var(--navy);
}

/* ==================== Applications Grid ==================== */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.application-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.application-card.unread {
    border-left: 3px solid var(--navy);
}

.application-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.candidate-name h3 {
    font-size: 1.125rem;
}

.new-badge {
    background: var(--navy);
    color: var(--white);
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.application-card-job {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.application-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.application-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.licenses {
    display: flex;
    gap: 0.375rem;
}

/* ==================== Application Detail ==================== */
.application-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.candidate-card,
.cover-letter-card,
.answers-card,
.notes-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.candidate-info .info-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.candidate-info .label {
    width: 100px;
    color: var(--gray-500);
}

.resume-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.cover-letter-card h3,
.answers-card h3,
.notes-card h3 {
    margin-bottom: 1rem;
}

.cover-letter-content {
    color: var(--gray-700);
    line-height: 1.7;
}

.answer-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.notes-list {
    margin-bottom: 1rem;
}

.note-item {
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.note-time {
    color: var(--gray-500);
    font-size: 0.8125rem;
}

.add-note-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.add-note-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    resize: vertical;
}

.status-card,
.job-card,
.actions-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.status-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
}

.messages-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    text-align: center;
    padding: 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==================== Applications Timeline ==================== */
.applications-timeline {
    max-width: 800px;
}

.application-timeline-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gray-300);
    flex-shrink: 0;
    margin-top: 0.25rem;
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 24px);
    background: var(--gray-200);
}

.application-timeline-item:last-child .timeline-marker::after {
    display: none;
}

.timeline-marker.status-new { background: var(--navy); }
.timeline-marker.status-reviewing { background: var(--warning); }
.timeline-marker.status-shortlisted { background: var(--success); }
.timeline-marker.status-interview { background: var(--navy); }
.timeline-marker.status-offered { background: var(--gold); }
.timeline-marker.status-rejected { background: var(--error); }

.timeline-content {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

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

.timeline-header .job-info h3 {
    font-size: 1.125rem;
}

.timeline-header .company,
.timeline-header .location {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.timeline-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.viewed-badge {
    color: var(--success);
}

.cover-letter-preview {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.cover-letter-preview strong {
    display: block;
    margin-bottom: 0.5rem;
}

.status-message {
    color: var(--gray-600);
    font-style: italic;
}

/* ==================== Filters Bar ==================== */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.filter-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ==================== Empty States ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-state h3 {
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.empty-state-small {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-500);
}

.empty-state-small p {
    margin-bottom: 1rem;
}

/* ==================== Admin ==================== */
.admin-dashboard {
    padding: 2rem 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.75rem;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
}

.admin-nav a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.2s;
}

.admin-nav a:hover {
    background: var(--gray-100);
}

.admin-nav a.active {
    background: var(--navy);
    color: var(--white);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stats .stat-card {
    flex-direction: column;
    text-align: center;
}

.admin-stats .stat-sub {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

/* ==================== Footer ==================== */
body .site-footer {
    display: block;
    visibility: visible;
    background: var(--navy-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    border-top: 2px solid rgba(240,165,0,0.2);
}

.footer-logo {
    font-size: 22px;
    display: inline-flex;
    margin-bottom: 12px;
}

.footer-logo .logo-dot {
    width: 7px;
    height: 7px;
    margin: 0 2px 0 1px;
}

.footer-logo .logo-product {
    font-weight: 600;
}

.footer-dashboard-cta {
    text-align: center;
    margin-bottom: 30px;
}

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

.footer-brand .logo {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand .logo img {
    height: 50px;
    width: auto;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.9375rem;
}

.footer-links h4 {
    color: var(--gold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(240,165,0,0.15);
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-legal {
    margin-top: 0.75rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--gold);
}

.footer-company {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

/* ==================== Recommended Section ==================== */
.recommended-section {
    margin-top: 2rem;
}

.recommended-section h2 {
    margin-bottom: 1.5rem;
}

/* ==================== Current Resume ==================== */
.current-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* ==================== Account Info ==================== */
.account-info {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius);
}

.account-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.account-info .info-row:last-child {
    border-bottom: none;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .jobs-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .job-detail-layout,
    .apply-layout,
    .application-detail-layout {
        grid-template-columns: 1fr;
    }

    .job-detail-sidebar,
    .apply-sidebar {
        order: -1;
    }

    .dashboard-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .messages-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .threads-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .threads-list {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }

    body .logo img {
        height: 40px;
        width: auto;
    }

    body .footer-brand .logo img {
        height: 40px;
        width: auto;
    }

    .mobile-drawer {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-dark, #08152a);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        z-index: 998;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }

    .mobile-drawer.active {
        max-height: 600px;
        opacity: 1;
    }

    .main-nav {
        display: block;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 0.9rem 1.5rem;
        color: #ffffff;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 1rem;
        transition: background 0.15s;
    }

    .main-nav a:hover {
        background: rgba(255,255,255,0.08);
    }

    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .header-actions .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box .btn {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .stats-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .application-timeline-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .timeline-marker::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   TRANSPORT-SPECIFIC STYLES
   ================================================================= */

/* License Badges & Tags */
.license-badge,
.license-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-badge {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

/* License Colors - MC (highest) to C (lowest) */
.license-mc, .license-tag.license-mc {
    background: linear-gradient(135deg, var(--gold) 0%, #f5a623 100%);
    color: var(--navy);
}

.license-hc, .license-tag.license-hc {
    background: linear-gradient(135deg, var(--navy-light) 0%, #4f46e5 100%);
    color: white;
}

.license-hr, .license-tag.license-hr {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.license-mr, .license-tag.license-mr {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.license-lr, .license-tag.license-lr {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.license-c, .license-tag.license-c {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

/* Match Score Display */
.match-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.match-card h3 {
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.match-score-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.match-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.match-circle.good {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    border: 3px solid #22c55e;
}

.match-circle.fair {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 3px solid #f59e0b;
}

.match-circle.low {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 3px solid #ef4444;
}

.match-details {
    flex: 1;
}

.match-details h4 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.match-details p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

/* Profile Summary in Application */
.profile-summary-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-summary-card h3 {
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    font-weight: 600;
}

.summary-item span {
    color: var(--navy);
    font-weight: 500;
}

/* Collapsible Form Sections */
.form-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.form-section > .section-header:first-child {
    border-radius: 12px 12px 0 0;
}
.form-section.collapsed > .section-header:first-child {
    border-radius: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.section-header:hover {
    background: #f1f5f9;
}

.section-icon {
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.section-header h3,
.section-header h2 {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    color: var(--navy);
}

.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: transform 0.2s;
}

/* toggle-icon content is managed by JS (+/−), no CSS ::after needed */

.form-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.section-content {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.form-section.collapsed .section-content {
    display: none;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.checkbox-grid label:hover {
    background: #f1f5f9;
}

.checkbox-grid input[type="checkbox"]:checked + span,
.checkbox-grid label:has(input:checked) {
    background: rgba(37, 99, 235, 0.1);
}

.checkbox-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

/* Quick Info Cards (Job Detail Page) */
.quick-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-info-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.quick-info-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-info-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    display: block;
    margin-bottom: 0.25rem;
}

.quick-info-card .value {
    font-weight: 600;
    color: var(--navy);
}

/* Endorsement Tags */
.endorsement-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.endorsement-tag,
.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.endorsement-tag.required {
    background: #fef3c7;
    color: #92400e;
}

/* Pay Display */
.pay-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pay-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
}

.pay-type {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.negotiable-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Profile Completion Bar */
.profile-completion {
    margin-bottom: 1.5rem;
}

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

.completion-header span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.completion-header strong {
    font-size: 1rem;
    color: var(--navy);
}

.completion-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.completion-fill.low {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.completion-fill.medium {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.completion-fill.high {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

/* Job Requirements Section */
.requirements-section {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.requirements-section h3 {
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-list {
    display: grid;
    gap: 0.75rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.requirement-item .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.requirement-item.met .icon {
    color: #16a34a;
}

.requirement-item.not-met .icon {
    color: #dc2626;
}

/* Benefits List */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f0fdf4;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: #166534;
}

.benefit-item::before {
    content: '✓';
    font-weight: bold;
}

/* Form Inline Group */
.form-inline-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #1e40af;
}

.info-box.warning {
    background: #fefce8;
    border-color: #fde047;
    color: #854d0e;
}

.info-box.success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* Job Detail Enhancements */
.job-detail-header .license-badge {
    margin-bottom: 1rem;
}

.job-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.job-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-meta-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
}

.job-meta-item .value {
    font-weight: 600;
    color: var(--navy);
}

/* Similar Jobs Enhancement */
.similar-job-card .match-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

/* Responsive Adjustments for Transport Styles */
@media (max-width: 768px) {
    .match-score-display {
        flex-direction: column;
        text-align: center;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .form-inline-group {
        grid-template-columns: 1fr;
    }
}

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

    .quick-info-cards {
        grid-template-columns: 1fr;
    }

    .section-header {
        padding: 0.75rem 1rem;
    }

    .section-content {
        padding: 1rem;
    }

    .match-circle {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}

/* =================================================================
   ABN LOOKUP STYLES
   ================================================================= */

/* ABN Field Wrapper */
.abn-field-wrapper {
    margin-bottom: 1.5rem;
}

.abn-input-group {
    display: flex;
    gap: 10px;
}

.abn-input {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
    letter-spacing: 1px;
}

.abn-input.abn-verified {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.abn-input.abn-format-valid {
    border-color: #fde047;
    background-color: #fefce8;
}

.abn-verify-btn {
    white-space: nowrap;
    min-width: 80px;
}

.abn-result {
    margin-top: 8px;
}

/* ABN Success Display */
.abn-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 12px 16px;
    border-radius: 8px;
    color: #166534;
}

.abn-business-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.abn-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.875rem;
}

.abn-entity-type {
    color: #15803d;
}

.abn-location {
    color: #166534;
}

.abn-status-active {
    color: #16a34a;
    font-weight: 500;
}

.abn-status-inactive {
    color: #dc2626;
    font-weight: 500;
}

.abn-gst {
    color: #0369a1;
}

/* ABN Error & Loading */
.abn-error {
    color: #dc2626;
    font-size: 0.875rem;
}

.abn-error a {
    color: #2563eb;
    text-decoration: underline;
}

.abn-loading {
    color: #6b7280;
    font-style: italic;
    font-size: 0.875rem;
}

/* ABN Warning - Format valid but lookup failed */
.abn-warning {
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 12px 16px;
    color: #854d0e;
}

.abn-warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #854d0e;
}

.abn-warning-header svg {
    flex-shrink: 0;
}

.abn-warning-text {
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: #a16207;
}

.abn-warning-link {
    font-size: 0.875rem;
}

.abn-warning-link a {
    color: #ca8a04;
    text-decoration: underline;
}

/* ABN Search */
.abn-search-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.abn-search-group {
    display: flex;
    gap: 10px;
}

.abn-search-input {
    flex: 1;
}

.abn-search-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.abn-search-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.15s;
}

.abn-search-item:hover {
    background: #f3f4f6;
}

.abn-search-item:last-child {
    border-bottom: none;
}

.abn-search-item-name {
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 2px;
}

.abn-search-item-details {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.abn-search-item-type {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

/* Auto-filled highlight animation */
.auto-filled {
    animation: autoFillPulse 0.5s ease;
}

@keyframes autoFillPulse {
    0% { background-color: #fef3c7; }
    100% { background-color: white; }
}

/* =================================================================
   AI SCORING STYLES
   ================================================================= */

/* AI Score Circle */
.ai-score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}

.ai-score-circle.large {
    width: 80px;
    height: 80px;
    font-size: 1.25rem;
}

.ai-score-excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
}

.ai-score-strong {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.ai-score-good {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.25);
}

.ai-score-partial {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.25);
}

.ai-score-poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

.ai-score-pending {
    background: #9ca3af;
    box-shadow: none;
}

/* AI Score Card */
.ai-score-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.ai-score-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-score-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--navy);
}

.ai-score-recommendation {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.ai-score-summary {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* AI Score Breakdown */
.ai-score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.ai-score-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ai-score-item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
}

.ai-score-item-value {
    font-weight: 600;
    color: var(--navy);
}

.ai-score-item-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.ai-score-item-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* AI Strengths & Gaps */
.ai-strengths-gaps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.ai-strengths, .ai-gaps {
    padding: 1rem;
    border-radius: 8px;
}

.ai-strengths {
    background: #f0fdf4;
}

.ai-gaps {
    background: #fef2f2;
}

.ai-strengths h4 {
    color: #16a34a;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ai-gaps h4 {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ai-strengths ul, .ai-gaps ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.ai-strengths li {
    color: #166534;
}

.ai-gaps li {
    color: #991b1b;
}

/* AI Score Button */
.ai-score-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.ai-score-btn:hover {
    background: #e5e7eb;
}

.ai-score-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* AI Score in Table */
.ai-score-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-score-mini {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
}

/* =================================================================
   FORM ENHANCEMENTS
   ================================================================= */

/* Three-column form row */
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

/* Two-column checkbox grid */
.checkbox-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 480px) {
    .checkbox-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Single checkbox item (standalone) */
.checkbox-single {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0;
    background: none;
}

.checkbox-single input[type="checkbox"] {
    margin-top: 0.25rem;
}

/* Required field marker */
.required {
    color: #dc2626;
}

/* Form hint text */
.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Large submit button */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Section number badge */
.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-500);
}

.auth-links a {
    color: var(--gold);
    text-decoration: none;
}

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

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

@media (max-width: 768px) {
    .abn-input-group {
        flex-direction: column;
    }

    .abn-verify-btn {
        width: 100%;
    }

    .abn-search-group {
        flex-direction: column;
    }

    .abn-details {
        flex-direction: column;
        gap: 4px;
    }

    .ai-strengths-gaps {
        grid-template-columns: 1fr;
    }

    .ai-score-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ai-score-breakdown {
        grid-template-columns: 1fr;
    }
}

/* ==================== Phase 2: Core Features Styles ==================== */

/* Status Tabs */
.status-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.status-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.status-tab:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.status-tab.active {
    background: var(--navy);
    color: var(--white);
}

.status-tab .count {
    background: rgba(255,255,255,0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.status-tab.active .count {
    background: rgba(255,255,255,0.3);
}

/* Bulk Actions */
.bulk-actions {
    margin-left: auto;
}

.bulk-actions form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-checkbox {
    display: flex;
    margin-right: 0.5rem;
}

.bulk-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#bulk-status-select:disabled,
#bulk-apply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status Summary */
.status-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.status-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
}

.status-summary-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.status-summary-item .status-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.status-summary-item .status-name {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-summary-item.status-hired {
    background: linear-gradient(135deg, var(--success), #059669);
}

.status-summary-item.status-hired .status-count,
.status-summary-item.status-hired .status-name {
    color: var(--white);
}

/* Status History */
.status-history {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.status-history h4 {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.status-history-list {
    list-style: none;
}

.status-history-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-400);
}

.status-dot.status-new { background: var(--gray-400); }
.status-dot.status-viewed { background: #3b82f6; }
.status-dot.status-shortlisted { background: var(--gold); }
.status-dot.status-interview { background: var(--navy); }
.status-dot.status-offered { background: var(--success); }
.status-dot.status-hired { background: #059669; }
.status-dot.status-rejected { background: var(--error); }

.status-time {
    margin-left: auto;
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* Saved Jobs */
.save-job-btn {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.save-job-btn .save-icon {
    font-size: 1.25rem;
}

.save-job-btn.saved {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.saved-jobs-count {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.job-card-expired {
    opacity: 0.6;
}

.expired-badge {
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.applied-badge {
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
}

.inline-form {
    display: inline;
}

/* Job Alerts */
.alerts-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.alert-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
}

.alert-form-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.alerts-list-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.alert-item.alert-paused {
    opacity: 0.6;
}

.alert-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.alert-criteria {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.alert-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.status-paused {
    color: var(--warning);
    font-weight: 600;
}

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

.preview-section {
    margin-top: 2rem;
}

.preview-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Messages */
.messages-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.message-item:hover {
    background: var(--gray-50);
}

.message-item.unread {
    background: #f0f9ff;
}

.message-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message-info strong {
    color: var(--navy);
}

.message-job {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.message-preview {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.message-meta .time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Dashboard Cards Full Width */
.dashboard-card-full {
    grid-column: 1 / -1;
}

/* Stat Cards with Alerts */
.stat-card.stat-alert {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.stat-card.stat-alert .stat-value,
.stat-card.stat-alert .stat-label {
    color: var(--white);
}

.stat-card.stat-highlight {
    border: 2px solid var(--gold);
}

/* Quick Actions Badge */
.action-card.has-badge {
    position: relative;
}

.action-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Search Improvements */
.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.jobs-header-left h2 {
    margin-bottom: 0.25rem;
}

.jobs-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-form label {
    font-size: 0.875rem;
    color: var(--gray-600);
    white-space: nowrap;
}

.sort-form select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.salary-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.salary-range-inputs input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.salary-range-inputs span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Improved Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--navy);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: var(--gray-100);
    border-color: var(--navy);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-page:hover {
    background: var(--gray-100);
}

.pagination-page.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.pagination-ellipsis {
    color: var(--gray-500);
    padding: 0 0.5rem;
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Responsive Alerts */
@media (max-width: 768px) {
    .alerts-layout {
        grid-template-columns: 1fr;
    }

    .alert-item {
        flex-direction: column;
        align-items: stretch;
    }

    .alert-actions {
        margin-top: 1rem;
        justify-content: flex-end;
    }

    .status-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.75rem;
    }

    .status-tab {
        white-space: nowrap;
    }

    .jobs-header {
        flex-direction: column;
    }

    .jobs-header-right {
        width: 100%;
    }

    .sort-form {
        width: 100%;
    }

    .sort-form select {
        flex: 1;
    }
}

/* ==================== Tier Badges & Upgrade Prompts ==================== */

.tier-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-badge.tier-basic { background: #e0f2fe; color: var(--secondary-navy); }
.tier-badge.tier-premium { background: #f0f9ff; color: var(--navy-light); }
.tier-badge.tier-gold { background: #fef3c7; color: var(--gold-dark); }

.upgrade-prompt {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.upgrade-prompt h3 {
    margin: 0 0 0.5rem;
    color: var(--navy);
}

.upgrade-prompt p {
    color: #64748b;
    margin: 0 0 1rem;
}

.upgrade-badge {
    display: inline-block;
    background: #ede9fe;
    color: #6d28d9;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.upgrade-prompt-large {
    padding: 2.5rem;
}

.upgrade-prompt-large h2 {
    margin: 0 0 0.75rem;
    color: var(--navy);
}

.upgrade-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.upgrade-tier {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.upgrade-tier.featured {
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}

.upgrade-tier h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.upgrade-tier ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-tier ul li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #475569;
}

.upgrade-tier ul li::before {
    content: "\2713 ";
    color: var(--success);
    font-weight: 700;
}

.upgrade-prompt-inline {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #92400e;
    text-align: center;
}

/* Locked info rows */
.info-row.info-locked .locked-value {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.85rem;
}

/* Tier notices */
.tier-notice {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.tier-notice-inline {
    color: #9ca3af;
    font-size: 0.8rem;
    font-style: italic;
}

/* Message limit bar */
.message-limit-bar {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.message-limit-bar .limit-warning {
    color: #dc2626;
    font-weight: 600;
}

/* Contact filter notice */
.contact-filter-notice {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    color: #92400e;
}

/* Message limit reached */
.message-limit-reached {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    color: #991b1b;
}

/* Filter notice in messages */
.filter-notice {
    color: #92400e;
}

/* Status history timeline */
.status-history-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    color: #9ca3af;
    font-size: 0.8rem;
}

.timeline-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Thread contact name */
.thread-contact {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Export actions */
.export-actions {
    display: flex;
    align-items: center;
}

.export-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.export-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

/* Text muted helper */
.text-muted {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .upgrade-tiers {
        grid-template-columns: 1fr;
    }
}

/* ==================== Pricing & Membership V2 ==================== */

/* --- Pricing Hero --- */
.pricing-hero-v2 {
    position: relative;
    padding: 5rem 2rem 4rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.pricing-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4c1d95 100%);
    z-index: 0;
}
.pricing-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99,102,241,0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139,92,246,0.15) 0%, transparent 50%);
}
.pricing-hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.pricing-hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.pricing-hero-v2 h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.pricing-hero-v2 p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 2rem;
    line-height: 1.6;
}

/* --- Billing Toggle --- */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 6px 20px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
}
.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
    cursor: pointer;
}
.toggle-label.toggle-active { color: #fff; }
.toggle-save {
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
}
.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle-switch.active { background: var(--gold-dark); }
.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.active .toggle-knob { transform: translateX(20px); }

/* --- Pricing Cards --- */
.pricing-cards-section { padding: 3rem 0; background: #f8fafc; }
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.p-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: visible;
}
.p-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.p-card-free { border-color: #d1d5db; }
.p-card-basic { border-color: #bfdbfe; }
.p-card-basic:hover { border-color: #2563eb; }
.p-card-premium { border-color: #c4b5fd; }
.p-card-premium:hover { border-color: var(--gold-dark); }
.p-card-featured {
    border-color: var(--gold-dark);
    box-shadow: 0 8px 30px rgba(124,58,237,0.15);
    transform: scale(1.03);
    z-index: 2;
}
.p-card-featured:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 16px 50px rgba(124,58,237,0.2);
}
.p-card-gold {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 40%);
}
.p-card-gold:hover { border-color: #d97706; }
.p-card-current-plan {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16,185,129,0.2), 0 4px 20px rgba(0,0,0,0.05);
}

.p-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--gold-dark), #6d28d9);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}
.p-badge-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.p-badge-current {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

.p-card-header { padding: 2rem 1.5rem 1rem; text-align: center; }
.p-card-tier {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.p-card-free .p-card-tier { color: #6b7280; }
.p-card-basic .p-card-tier { color: #2563eb; }
.p-card-premium .p-card-tier { color: var(--gold-dark); }
.p-card-gold .p-card-tier { color: #d97706; }

.p-card-price { margin: 0.5rem 0 0; }
.p-price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
}
.p-price-period { font-size: 0.95rem; color: #6b7280; font-weight: 400; }
.p-card-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.75rem 0 0;
    line-height: 1.5;
}

.p-card-body { padding: 0.5rem 1.5rem 1rem; flex: 1; }
.p-features { list-style: none; padding: 0; margin: 0; }
.p-features li {
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}
.p-features li:last-child { border-bottom: none; }
.p-feat-icon {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}
.p-feat-icon.yes { color: #10b981; }
.p-feat-icon.no { color: #d1d5db; }
.p-feat-no { color: #9ca3af; }
.p-card-footer { padding: 0.75rem 1.5rem 1.75rem; }

/* --- Pricing Buttons --- */
.p-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 2px solid transparent;
}
.p-btn-outline {
    background: #fff;
    border-color: #d1d5db;
    color: #374151;
}
.p-btn-outline:hover { border-color: #9ca3af; background: #f9fafb; }
.p-btn-blue { background: var(--navy-light); color: var(--white); }
.p-btn-blue:hover { background: #1d4ed8; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.p-btn-purple { background: var(--gold-dark); color: var(--white); }
.p-btn-purple:hover { background: var(--navy-light); box-shadow: 0 4px 14px rgba(26,52,96,0.3); }
.p-btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.p-btn-gold:hover { background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 4px 14px rgba(245,158,11,0.3); }
.p-btn-white { background: var(--white); color: var(--secondary-navy); font-weight: 700; }
.p-btn-white:hover { background: #f1f5f9; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.p-btn-outline-white {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.p-btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.p-btn-disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: default;
    border-color: #e5e7eb;
    width: 100%;
    text-align: center;
    display: block;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Section Headings --- */
.section-heading {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.section-subheading {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 2rem;
}

/* --- Comparison Table V2 --- */
.pricing-compare-section { padding: 3rem 0; }
.comparison-table-wrapper { overflow-x: auto; }
.comparison-table-v2 {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.comparison-table-v2 th {
    padding: 14px 18px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}
.comparison-table-v2 th:first-child { text-align: left; }
.comparison-table-v2 th.col-highlight { color: var(--gold-dark); }
.comparison-table-v2 th.col-gold { color: #d97706; }
.comparison-table-v2 td {
    padding: 13px 18px;
    text-align: center;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.comparison-table-v2 td:first-child { text-align: left; font-weight: 500; color: #0f172a; }
.comparison-table-v2 tr:hover td { background: #fafbfc; }
.comparison-table-v2 .col-highlight { background: #faf5ff; }
.comparison-table-v2 .col-gold { background: #fffbeb; }
.cmp-yes { color: #10b981; font-weight: 700; font-size: 1.1rem; }
.cmp-no { color: #d1d5db; font-size: 1.1rem; }

/* --- Resume Builder Promo --- */
.pricing-resume-promo { padding: 3rem 0; }
.resume-promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border: 2px solid #c4b5fd;
    border-radius: 16px;
    padding: 2.5rem;
}
.resume-promo-content { flex: 1; }
.resume-promo-label {
    display: inline-block;
    background: var(--gold-dark);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.resume-promo-card h2 { margin: 0 0 0.5rem; color: #0f172a; font-size: 1.4rem; }
.resume-promo-card p { color: #6b7280; margin: 0 0 1rem; font-size: 0.95rem; }
.resume-promo-features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.resume-promo-features li { color: #374151; font-size: 0.88rem; }
.resume-promo-cta { text-align: center; flex-shrink: 0; }
.resume-promo-price { margin-bottom: 1rem; }
.resume-price-amount { font-size: 2.2rem; font-weight: 800; color: var(--gold-dark); }
.resume-price-label { display: block; color: #6b7280; font-size: 0.85rem; }

/* --- FAQ Accordion --- */
.pricing-faq-section { padding: 3rem 0; background: #f8fafc; }
.faq-accordion { max-width: 720px; margin: 0 auto; }
.faq-item-v2 {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.faq-item-v2:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.faq-item-v2.open { border-color: var(--gold-dark); box-shadow: 0 4px 16px rgba(124,58,237,0.08); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    font-family: inherit;
}
.faq-question:hover { color: var(--gold-dark); }
.faq-chevron {
    font-size: 1.2rem;
    color: #9ca3af;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item-v2.open .faq-chevron { transform: rotate(180deg); color: var(--gold-dark); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
}
.faq-item-v2.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { color: #6b7280; font-size: 0.9rem; margin: 0; line-height: 1.7; }

/* --- CTA Section --- */
.pricing-cta-section { padding: 3rem 0 4rem; }
.pricing-cta-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: #fff;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pricing-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(124,58,237,0.3) 0%, transparent 60%);
}
.pricing-cta-card h2 { position: relative; font-size: 2rem; font-weight: 800; margin: 0 0 0.75rem; }
.pricing-cta-card p { position: relative; font-size: 1.1rem; color: rgba(255,255,255,0.8); margin: 0 0 1.5rem; }
.pricing-cta-buttons {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.pricing-cta-buttons .p-btn { width: auto; display: inline-block; padding: 14px 32px; }

/* ==================== Blog ==================== */
/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
    color: var(--white);
    padding: 60px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}
.blog-hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.blog-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; font-weight: 700; color: var(--gold); }
.blog-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin: 0; }

/* Blog Section */
.blog-section { padding: 60px 0; }

/* Filter Bar */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.category-pill {
    padding: 8px 18px;
    border-radius: 24px;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.category-pill:hover { background: var(--gray-200); color: var(--navy); }
.category-pill.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.blog-filter-active {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}
.clear-filter { color: var(--error); text-decoration: none; font-weight: 500; }
.clear-filter:hover { text-decoration: underline; }

/* Category Tag (legacy compat) */
.category-tag { padding: 6px 16px; border-radius: 20px; background: var(--gray-100); color: var(--gray-700); text-decoration: none; font-size: 0.85rem; transition: all 0.2s; }
.category-tag:hover, .category-tag.active { background: var(--gold); color: var(--white); }

/* Featured Post */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.blog-featured-image { min-height: 320px; background: var(--gray-100); }
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-placeholder { display: flex; align-items: center; justify-content: center; }
.placeholder-icon { opacity: 0.5; }
.blog-featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-label {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    width: fit-content;
}
.blog-featured-body h2 { margin: 0.5rem 0 0.75rem; font-size: 1.5rem; color: var(--navy); }
.blog-featured-body h2 a { color: inherit; text-decoration: none; }
.blog-featured-body h2 a:hover { color: var(--gold); }
.blog-featured-body p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.25rem; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.blog-card-image { height: 200px; overflow: hidden; background: var(--gray-100); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-placeholder { display: flex; align-items: center; justify-content: center; }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.8rem; align-items: center; }
.blog-category { color: var(--gold); font-weight: 600; }
.blog-date { color: var(--gray-400); }
.blog-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; line-height: 1.4; }
.blog-card h3 a { color: var(--navy); text-decoration: none; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { color: var(--gray-500); font-size: 0.9rem; margin: 0 0 1rem; line-height: 1.5; flex: 1; }
.read-more { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.read-more:hover { text-decoration: underline; }

/* Blog Empty State */
.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}
.blog-empty-icon { margin-bottom: 1rem; }
.blog-empty-state h3 { font-size: 1.3rem; color: var(--gray-700); margin: 0 0 0.5rem; }
.blog-empty-state p { color: var(--gray-500); margin: 0 0 1.5rem; }

/* Blog Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.blog-pagination-pages { display: flex; gap: 0.25rem; }
.page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.page-num:hover { background: var(--gray-100); }
.page-num.active { background: var(--gold); color: var(--navy); font-weight: 600; }

/* ---- Blog Single Post ---- */
/* Post Hero */
.blog-post-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
    color: var(--white);
    padding: 60px 2rem;
}
.blog-back-link {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.blog-back-link:hover { color: var(--white); }
.blog-post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
}
.blog-category-badge {
    background: rgba(13,148,136,0.3);
    color: #5eead4;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.blog-meta-sep { color: rgba(255,255,255,0.3); }
.blog-post-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.75rem;
    line-height: 1.2;
    max-width: 800px;
}
.blog-post-hero-excerpt {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}
.blog-post-hero-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.author-name { font-weight: 600; }

/* Featured Image */
.blog-post-featured-image {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}
.blog-post-featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Single Layout */
.blog-single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; }

/* Post Article */
.blog-post-article { min-width: 0; }
.blog-post-content {
    line-height: 1.85;
    color: var(--gray-700);
    font-size: 1.05rem;
}
.blog-post-content h2 {
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}
.blog-post-content h3 {
    color: var(--navy);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.blog-post-content p { margin-bottom: 1.25rem; }
.blog-post-content ul, .blog-post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.blog-post-content li { margin-bottom: 0.5rem; }
.blog-post-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--success-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--gray-700);
    font-style: italic;
}
.blog-post-content img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }
.blog-post-content a { color: var(--navy); text-decoration: underline; }

/* Tags */
.blog-post-tags { margin-top: 2rem; display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.tag { padding: 4px 14px; background: var(--gray-100); border-radius: 20px; font-size: 0.8rem; color: var(--gray-500); }

/* Share Section */
.blog-share-section {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.blog-share-section h4 { margin: 0 0 1rem; color: var(--navy); font-size: 1rem; }
.blog-share-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
}
.share-btn:hover { border-color: var(--gray-300); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.share-facebook:hover { background: #1877f2; color: var(--white); border-color: #1877f2; }
.share-twitter:hover { background: #0f1419; color: var(--white); border-color: #0f1419; }
.share-linkedin:hover { background: #0a66c2; color: var(--white); border-color: #0a66c2; }
.share-copy:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 1.5rem; align-self: start; }
.sidebar-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; }
.sidebar-section h4 { margin: 0 0 1rem; color: var(--navy); font-size: 0.95rem; font-weight: 700; }
.sidebar-post { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--gray-100); text-decoration: none; transition: background 0.15s; }
.sidebar-post:last-child { border: none; }
.sidebar-post:hover .sidebar-post-title { color: var(--gold); }
.sidebar-post-title { display: block; color: var(--gray-700); font-size: 0.9rem; line-height: 1.4; }
.sidebar-post-date { font-size: 0.8rem; color: var(--gray-400); }
.sidebar-category { display: block; padding: 0.35rem 0; color: var(--gold); text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.sidebar-category:hover { color: var(--navy); text-decoration: underline; }
.sidebar-cta { background: var(--success-bg); border-color: var(--success); }
.sidebar-cta h4 { color: var(--success-text); }

/* TOC */
.sidebar-toc { border-color: var(--gold); border-top: 3px solid var(--gold); }
.toc-nav { display: flex; flex-direction: column; }
.toc-link {
    display: block;
    padding: 0.35rem 0;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.15s;
}
.toc-link:hover { color: var(--gold); border-left-color: var(--gold); }
.toc-sub { padding-left: 1.5rem; font-size: 0.8rem; color: var(--gray-500); }

/* Related Articles */
.blog-related {
    padding: 60px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}
.blog-related h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--navy);
}

.btn-block { display: block; text-align: center; }


.admin-form .form-group { margin-bottom: 1rem; }
.admin-form label { display: block; font-weight: 500; margin-bottom: 0.3rem; font-size: 0.9rem; color: #374151; }
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea { width: 100%; padding: 0.6rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; }
.admin-form textarea { font-family: inherit; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form .form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.tier-select { padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.8rem; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline; }
.text-center { text-align: center; }

.btn-sm { padding: 4px 10px; font-size: 0.8rem; }
.btn-success { background: #10b981; color: #fff; border: none; border-radius: 4px; cursor: pointer; padding: 6px 12px; }
.btn-warning { background: #f59e0b; color: #fff; border: none; border-radius: 4px; cursor: pointer; padding: 6px 12px; }

/* ==================== Resume Builder ==================== */
.resume-purchase { max-width: 700px; margin: 0 auto; }
.purchase-card { background: #fff; border: 2px solid #0d9488; border-radius: 12px; padding: 2rem; text-align: center; }
.purchase-card h2 { color: var(--navy); margin-bottom: 0.5rem; }
.purchase-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; margin: 1.5rem 0; }
.purchase-feature { background: #f9fafb; border-radius: 8px; padding: 1rem; }
.purchase-feature strong { color: var(--navy); display: block; margin-bottom: 0.3rem; }
.purchase-feature p { color: #6b7280; font-size: 0.85rem; margin: 0; }
.purchase-price { margin: 1.5rem 0; }
.purchase-price .price { font-size: 2.5rem; font-weight: 700; color: #0d9488; }
.purchase-price .price-note { display: block; color: #6b7280; font-size: 0.9rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }

.resume-builder-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.resume-editor { }
.resume-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
.resume-section h3 { margin: 0 0 1rem; color: var(--navy); font-size: 1.1rem; }
.resume-entry { background: #f9fafb; border-radius: 6px; padding: 1rem; margin-bottom: 0.75rem; }
.resume-sidebar { position: sticky; top: 1rem; }
.resume-sidebar-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.resume-sidebar-card h4 { margin: 0 0 0.75rem; color: var(--navy); }
.auto-fill-list { list-style: none; padding: 0; font-size: 0.85rem; }
.auto-fill-list li { padding: 0.3rem 0; border-bottom: 1px solid #f3f4f6; }

/* AI Generate Section */
.ai-generate-section { border-color: #818cf8; border-left: 4px solid #818cf8; }
.ai-generate-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ai-generate-header h3 { margin-bottom: 0.25rem; }
.ai-generate-desc { color: #6b7280; font-size: 0.9rem; margin: 0; }
#ai-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
}
.ai-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: ai-spin 0.8s linear infinite;
}
@keyframes ai-spin {
    to { transform: rotate(360deg); }
}

/* ==================== Billing Page ==================== */
.billing-current-plan { background: #fff; border: 2px solid #0d9488; border-radius: 12px; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.plan-info h2 { margin: 0 0 0.5rem; }
.plan-price { font-size: 1.3rem; font-weight: 600; color: #0d9488; }
.plan-actions { display: flex; gap: 0.75rem; }

.billing-features { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; }
.billing-features h3 { margin: 0 0 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.feature-item { text-align: center; padding: 1rem; background: #f9fafb; border-radius: 8px; }
.feature-item strong { display: block; font-size: 1.2rem; color: var(--navy); }
.feature-item span { font-size: 0.8rem; color: #6b7280; }

.billing-history { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.5rem; }
.billing-history h3 { margin: 0 0 1rem; }
.billing-table { width: 100%; border-collapse: collapse; }
.billing-table th { text-align: left; padding: 8px 12px; font-size: 0.8rem; color: #6b7280; border-bottom: 2px solid #e5e7eb; text-transform: uppercase; }
.billing-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; }

/* ==================== Employer Jobs Management ==================== */
.job-count-badge { background: #f3f4f6; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.job-manage-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.job-manage-card.job-inactive { opacity: 0.7; }
.job-manage-info h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.job-manage-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: #6b7280; align-items: center; }
.job-manage-stats { margin-top: 0.5rem; font-size: 0.85rem; color: #6b7280; }
.job-manage-stats span { margin-right: 1rem; }
.job-manage-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.featured-badge { background: var(--accent-gold); color: var(--secondary-navy); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* ==================== Error Pages ==================== */
.error-section { padding: 4rem 0; text-align: center; min-height: 60vh; display: flex; align-items: center; }
.error-content { max-width: 500px; margin: 0 auto; }
.error-code { font-family: var(--font-heading); font-size: 6rem; font-weight: 800; color: var(--gold); opacity: 0.3; line-height: 1; }
.error-content h1 { color: var(--navy); margin: 0.5rem 0; }
.error-content p { color: var(--gray-500); margin-bottom: 1.5rem; }
.error-actions { display: flex; gap: 0.75rem; justify-content: center; }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .blog-featured-card { grid-template-columns: 1fr; }
    .blog-featured-image { min-height: 240px; }
    .pricing-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .p-card-featured { transform: scale(1); }
    .p-card-featured:hover { transform: translateY(-8px); }
    .mem-usage-grid { grid-template-columns: repeat(2, 1fr); }
    .resume-promo-card { flex-direction: column; text-align: center; }
    .resume-promo-features { justify-content: center; }
}

@media (max-width: 768px) {
    .blog-single-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .blog-hero h1 { font-size: 1.8rem; }
    .blog-post-hero h1 { font-size: 1.6rem; }
    .blog-post-hero { padding: 2rem 1rem 2rem; }
    .blog-filter-bar { gap: 0.4rem; }
    .category-pill { padding: 6px 14px; font-size: 0.8rem; }
    .blog-share-buttons { flex-direction: column; }
    .blog-share-buttons .share-btn { justify-content: center; }
    .blog-pagination { flex-direction: column; gap: 0.75rem; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-nav { display: flex; overflow-x: auto; padding: 0; }
    .admin-nav-item { white-space: nowrap; }
    .resume-builder-layout { grid-template-columns: 1fr; }
    .purchase-features { grid-template-columns: 1fr; }
    .billing-current-plan { flex-direction: column; text-align: center; }
    .plan-actions { justify-content: center; }
    .job-manage-card { flex-direction: column; }
    .pricing-hero-v2 h1 { font-size: 1.8rem; }
    .pricing-cards-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .p-card-featured { transform: none; }
    .p-card-featured:hover { transform: translateY(-8px); }
    .comparison-table-v2 { font-size: 0.8rem; }
    .comparison-table-v2 th, .comparison-table-v2 td { padding: 8px 10px; }
    .mem-current-top { flex-direction: column; text-align: center; }
    .mem-current-left { flex-direction: column; text-align: center; }
    .mem-current-actions { justify-content: center; width: 100%; }
    .mem-gold-banner { flex-direction: column; text-align: center; }
    .mem-gold-banner-content { flex-direction: column; }
    .mem-usage-grid { grid-template-columns: 1fr 1fr; }
    .modal-content { margin: 1rem; }
}

@media (max-width: 480px) {
    .pricing-hero-v2 { padding: 3rem 1rem 2.5rem; }
    .pricing-hero-v2 h1 { font-size: 1.5rem; }
    .pricing-toggle { padding: 6px 12px; gap: 0.5rem; }
    .mem-usage-grid { grid-template-columns: 1fr; }
    .mem-current-actions { flex-direction: column; }
    .mem-current-actions .p-btn { width: 100%; }
    .pricing-cta-card { padding: 2rem 1rem; }
    .pricing-cta-card h2 { font-size: 1.4rem; }
}

/* --- Membership V2 --- */
.mem-current-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}
.mem-current-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf9 0%, #f0f4ff 100%);
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}
.mem-current-left { display: flex; align-items: center; gap: 1.25rem; }
.mem-tier-badge-lg {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}
.mem-tier-free { background: #6b7280; }
.mem-tier-basic { background: #2563eb; }
.mem-tier-premium { background: var(--gold-dark); }
.mem-tier-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mem-current-details h2 { margin: 0 0 0.25rem; font-size: 1.2rem; color: #0f172a; }
.mem-price-line { margin: 0; }
.mem-price-big { font-size: 1.8rem; font-weight: 800; color: #0f172a; }
.mem-price-period { color: #6b7280; font-size: 0.9rem; }
.mem-renewal { margin: 0.25rem 0 0; font-size: 0.85rem; color: #6b7280; }
.mem-days-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
}
.mem-current-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.mem-usage-section { padding: 1.5rem 2rem; }
.mem-usage-section h3 {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.mem-usage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mem-usage-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
}
.mem-usage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.mem-usage-label { font-size: 0.8rem; font-weight: 600; color: #374151; }
.mem-usage-count { font-size: 0.75rem; color: #6b7280; font-weight: 500; }
.mem-progress-track { width: 100%; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 0.35rem; }
.mem-progress-fill { height: 100%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: 4px; transition: width 0.6s ease; }
.mem-progress-full { background: linear-gradient(90deg, #ef4444, #f87171); }
.mem-usage-warn { font-size: 0.75rem; color: #dc2626; font-weight: 600; }
.mem-usage-stat-row { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.25rem; }
.mem-stat-number { font-size: 1.6rem; font-weight: 800; color: #0f172a; }
.mem-stat-label { font-size: 0.8rem; color: #6b7280; }

.mem-gold-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.mem-gold-banner-content { display: flex; align-items: center; gap: 1rem; }
.mem-gold-banner-icon { font-size: 2rem; }
.mem-gold-banner h3 { margin: 0 0 0.25rem; color: #92400e; font-size: 1.05rem; }
.mem-gold-banner p { margin: 0; color: #78350f; font-size: 0.9rem; }

.mem-plans-section { margin-bottom: 3rem; }

.mem-billing-section { margin-bottom: 2rem; }
.mem-empty-billing {
    background: #f8fafc;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}
.mem-empty-billing p { color: #6b7280; margin: 0; }
.mem-billing-table-wrap { overflow-x: auto; }
.mem-billing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.mem-billing-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.78rem;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
}
.mem-billing-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; font-size: 0.9rem; }
.mem-pay-status { padding: 3px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; }
.mem-pay-completed { background: #dcfce7; color: var(--success); }
.mem-pay-pending { background: #fef3c7; color: var(--warning); }
.mem-pay-failed { background: #fecaca; color: var(--error); }

/* Modal V2 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.modal-close:hover { color: #374151; }
.modal-content h3 { margin: 0 0 1rem; font-size: 1.3rem; color: #0f172a; }
.modal-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.modal-warning p { margin: 0 0 0.5rem; font-size: 0.9rem; }
.modal-warning ul { margin: 0.5rem 0; padding-left: 1.2rem; font-size: 0.85rem; color: #92400e; }
.modal-warning ul li { margin-bottom: 0.25rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }

/* ==================== Phase 2: AI Job Poster ==================== */
.ai-job-generate {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.ai-btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    font-weight: 600;
}
.ai-btn-gold:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}
.ai-gold-badge {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 600;
    background: #fffbeb;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #fde68a;
}
.ai-job-generate.ai-locked {
    opacity: 0.7;
}
.ai-locked-text {
    font-size: 0.8rem;
    color: #9ca3af;
}
.ai-locked-text a {
    color: #f59e0b;
    font-weight: 600;
}
.ai-icon {
    margin-right: 4px;
}
.ai-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    flex-shrink: 0;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
#ai-job-loading, #ai-loading {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ==================== Phase 2: Messaging Improvements ==================== */
.messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.messages-header-info {
    flex: 1;
}
.messages-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.btn-danger {
    color: #ef4444;
    border-color: #ef4444;
}
.btn-danger:hover {
    background: #ef4444;
    color: #fff;
}
.thread-status-label {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 500;
}
.thread-status-blocked {
    background: #fef2f2;
    color: #ef4444;
}

/* Admin Messages */
.admin-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.filter-tabs {
    display: flex;
    gap: 0.25rem;
}
.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}
.filter-tab:hover {
    background: #f3f4f6;
    color: #374151;
}
.filter-tab.active {
    background: var(--navy);
    color: #fff;
}
.admin-search-form {
    display: flex;
    gap: 0.5rem;
}
.admin-search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    min-width: 250px;
}
.admin-table-wrapper {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
}
.admin-table th {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}
.admin-table tr:hover {
    background: #f9fafb;
}
.admin-table tr.row-warning {
    background: #fffbeb;
}
.participant-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px;
}
.participant-employer {
    background: #eff6ff;
    color: #2563eb;
}
.participant-candidate {
    background: #f0fdf4;
    color: #16a34a;
}
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-active { background: #f0fdf4; color: var(--success); }
.status-archived { background: var(--gray-100); color: var(--gray-600); }
.status-blocked { background: #fef2f2; color: var(--error); }
.status-reported { background: #fef3c7; color: var(--warning); }
.status-pending { background: #fffbeb; color: var(--warning); }
.status-resolved { background: #f0fdf4; color: var(--success); }
.status-dismissed { background: var(--gray-100); color: var(--gray-600); }
.stat-warning { border-left: 3px solid #f59e0b; }

/* Admin Message View */
.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}
.msg-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.msg-info-item strong {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.msg-participants {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}
.msg-participants strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
}
.msg-admin-actions {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.msg-reports-card h3 {
    margin: 0 0 1rem;
    color: #d97706;
}
.msg-report-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.report-pending {
    border-left: 3px solid #f59e0b;
}
.report-resolved {
    opacity: 0.6;
}
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.report-reason {
    font-weight: 600;
    color: #374151;
}
.report-details {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.5rem 0;
}
.report-meta {
    color: #9ca3af;
}
.report-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}
.msg-history-card h3 {
    margin: 0 0 1rem;
    color: #374151;
}
.msg-history {
    max-height: 600px;
    overflow-y: auto;
}
.msg-history-item {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.msg-history-item:last-child {
    border-bottom: none;
}
.msg-history-sender {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.msg-history-time {
    font-size: 0.75rem;
    color: #9ca3af;
}
.msg-unread-dot {
    font-size: 0.7rem;
    color: #3b82f6;
    font-weight: 600;
}
.msg-history-body {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
    padding-left: 0.5rem;
}

/* ==================== Phase 2: AI Resume Builder Enhancements ==================== */
.resume-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.resume-section-header h3 {
    margin: 0;
}
.resume-section-header label {
    margin: 0;
}
.ai-action-btn {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}
.ai-action-btn:hover {
    background: #fef3c7;
    color: #b45309;
}
.btn-xs {
    font-size: 0.7rem;
    padding: 3px 8px;
}
.ai-inline-loading {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.ai-suggestions {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}
.ai-suggest-label {
    font-size: 0.8rem;
    color: #92400e;
    margin: 0 0 0.5rem;
}
.ai-skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ai-skill-chip {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    background: #fff;
    border: 1px solid #fde68a;
    color: #92400e;
    cursor: pointer;
    transition: all 0.2s;
}
.ai-skill-chip:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}
.ai-skill-chip.ai-skill-added {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #86efac;
    cursor: default;
}

/* ==================== Responsive: Phase 2 ==================== */
@media (max-width: 768px) {
    .messages-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .messages-header-actions {
        width: 100%;
    }
    .admin-filters {
        flex-direction: column;
    }
    .filter-tabs {
        flex-wrap: wrap;
    }
    .admin-search-input {
        min-width: auto;
        width: 100%;
    }
    .msg-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ai-job-generate {
        flex-wrap: wrap;
    }
}

/* ========== AI WIZARD PREMIUM ========== */

.ai-wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: wizardFadeIn 0.3s ease;
}

.ai-wizard-modal {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(245, 158, 11, 0.1);
    animation: wizardSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ai-wizard-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.ai-wizard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ai-wizard-header-content {
    position: relative;
    z-index: 1;
}

.ai-wizard-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(10px);
}

.ai-wizard-main-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-wizard-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ai-wizard-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Progress */
.ai-wizard-progress-container {
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ai-wizard-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ai-wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-wizard-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
}

.step-dot.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(240,165,0,0.4);
}

.step-dot.completed {
    background: var(--navy);
    color: var(--white);
}

/* Body */
.ai-wizard-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 300px;
}

.ai-wizard-step {
    animation: stepFadeIn 0.4s ease;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ai-wizard-step h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.step-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Form Elements */
.wizard-field-group {
    margin-bottom: 1.5rem;
}

.wizard-field-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.ai-wizard-textarea {
    width: 100%;
    min-height: 140px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
    line-height: 1.6;
    box-sizing: border-box;
}

.ai-wizard-textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.ai-wizard-textarea::placeholder {
    color: #9ca3af;
}

.textarea-hint {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.ai-wizard-input, .ai-wizard-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.ai-wizard-input:focus, .ai-wizard-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

/* Chips */
.ai-wizard-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.ai-wizard-chip {
    padding: 0.625rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-wizard-chip:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ai-wizard-chip.selected {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Pay Inputs */
.pay-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pay-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    min-width: 120px;
}

.pay-input-group:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.pay-prefix {
    padding: 0.875rem;
    background: #f8fafc;
    color: #64748b;
    font-weight: 500;
}

.pay-input-group .ai-wizard-input,
.pay-input-group .ai-wizard-input.ai-wizard-input {
    border: none;
    border-radius: 0;
    padding: 0.875rem;
    box-shadow: none;
}

.pay-input-group .ai-wizard-input:focus,
.pay-input-group .ai-wizard-input.ai-wizard-input:focus {
    box-shadow: none;
}

.pay-separator {
    color: #94a3b8;
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    margin-top: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f59e0b;
}

/* Summary */
.wizard-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    padding: 0.625rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #64748b;
    width: 120px;
    flex-shrink: 0;
}

.summary-value {
    color: #1e293b;
    word-break: break-word;
}

/* Generate Button */
.ai-wizard-generate-btn {
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.ai-wizard-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Footer */
.ai-wizard-footer {
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
}

.ai-wizard-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.ai-wizard-btn-back {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.ai-wizard-btn-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ai-wizard-btn-next {
    flex: 1;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.ai-wizard-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.ai-wizard-btn-next:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Loading */
.ai-wizard-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-truck {
    font-size: 4rem;
    animation: truckDrive 1.5s ease-in-out infinite;
}

@keyframes truckDrive {
    0%, 100% { transform: translateX(-15px) rotate(-2deg); }
    50% { transform: translateX(15px) rotate(2deg); }
}

.ai-wizard-loading h3 {
    margin: 1.5rem 0 0.5rem;
    color: #1e293b;
}

.loading-message {
    color: #64748b;
    margin-bottom: 1.5rem;
    min-height: 1.5em;
}

.loading-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s linear infinite;
    width: 0%;
    transition: width 0.3s ease;
}

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

/* Success */
.ai-wizard-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.ai-wizard-success h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.ai-wizard-success p {
    color: #64748b;
    font-size: 0.9rem;
}

/* AI Filled Highlight */
input.ai-filled,
select.ai-filled,
textarea.ai-filled,
.ai-filled.ai-filled {
    animation: aiFilledPulse 0.6s ease;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
}

@keyframes aiFilledPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.2); }
    100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3); }
}

/* Btn Gold (used outside wizard) */
.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.upgrade-link {
    margin-left: 1rem;
    color: #f59e0b;
    font-weight: 500;
}

/* Wizard Animations */
@keyframes wizardFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wizardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Disclaimer - Loading */
.ai-disclaimer-loading {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.875rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Disclaimer - Success Box */
.ai-disclaimer-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    text-align: left;
    color: #92400e;
}

.ai-disclaimer-box p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.ai-disclaimer-box ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.ai-disclaimer-box li {
    margin: 0.25rem 0;
}

/* Disclaimer - Banner Above Form */
.ai-disclaimer-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #78350f;
}

.ai-disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ai-disclaimer-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #92400e;
    padding: 0 0.25rem;
    flex-shrink: 0;
}

.ai-disclaimer-close:hover {
    color: #78350f;
}

/* Mobile */
@media (max-width: 768px) {
    .ai-wizard-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .ai-wizard-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        animation: wizardSlideUpMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes wizardSlideUpMobile {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .ai-wizard-header {
        padding: 1.25rem 1.5rem;
    }

    .ai-wizard-main-title {
        font-size: 1.25rem;
    }

    .ai-wizard-body {
        padding: 1.5rem;
    }

    .ai-wizard-footer {
        padding: 1rem 1.5rem;
    }

    .pay-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .pay-separator {
        text-align: center;
    }

    .ai-wizard-chips {
        gap: 0.5rem;
    }

    .ai-wizard-chip {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==================== Resume Builder Enhancements ==================== */

/* Resume Dropzone */
.resume-dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.resume-dropzone.dragover {
    border-color: var(--gold);
    background: rgba(247, 195, 46, 0.05);
}

.dropzone-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dropzone-text {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.dropzone-or {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.dropzone-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.upload-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 3px;
    transition: width 0.2s;
}

.upload-progress-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.upload-result {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.upload-success {
    color: var(--success);
    font-weight: 500;
}

.upload-error {
    color: var(--error);
    font-weight: 500;
}

.current-resume-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.current-resume-file .file-icon {
    font-size: 1.1rem;
}

.current-resume-file .file-name {
    flex: 1;
    color: var(--gray-700);
}

/* Live Preview Panel */
.resume-preview-panel {
    position: sticky;
    top: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 1rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--navy);
    color: var(--white);
}

.preview-header h4 {
    margin: 0;
    font-size: 0.9rem;
}

.resume-preview-content {
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.preview-document {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gray-800);
}

.preview-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.25rem;
}

.preview-contact {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.preview-license {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
}

.preview-hr {
    border: none;
    border-top: 2px solid var(--navy);
    margin: 0.75rem 0;
}

.preview-section {
    margin-bottom: 0.75rem;
}

.preview-section h5 {
    font-size: 0.85rem;
    color: var(--navy);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-text {
    white-space: pre-wrap;
}

.preview-placeholder {
    color: var(--gray-400);
    font-style: italic;
    font-size: 0.75rem;
}

.preview-entry {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted var(--gray-200);
}

.preview-entry:last-child {
    border-bottom: none;
}

.preview-entry strong {
    color: var(--gray-800);
}

.preview-entry em {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.preview-entry p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.preview-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.preview-list li {
    margin-bottom: 0.15rem;
}

.preview-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.preview-skill-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--gray-100);
    border-radius: 3px;
    font-size: 0.7rem;
    color: var(--gray-700);
}

/* ==================== Quick Apply ==================== */

.quick-apply-box {
    margin-bottom: 0.75rem;
}

.quick-apply-resume-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #ecfdf5;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

.quick-apply-resume-status .resume-check {
    font-size: 1rem;
}

.quick-apply-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.apply-divider {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
}

.apply-divider::before,
.apply-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.apply-divider span {
    padding: 0 0.75rem;
    color: var(--gray-400);
    font-size: 0.8rem;
}

.resume-required-notice {
    text-align: center;
    padding: 1rem;
    background: #fef3c7;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.resume-required-notice .notice-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.resume-required-notice p {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* ==================== Radio Group (Resume Required) ==================== */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.radio-option:hover {
    border-color: var(--gold);
    background: rgba(247, 195, 46, 0.03);
}

.radio-option input[type="radio"] {
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: var(--navy);
    font-weight: 600;
}

.radio-label {
    font-weight: 500;
    color: var(--gray-700);
    display: block;
}

.radio-desc {
    font-size: 0.8rem;
    color: var(--gray-400);
    display: block;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

/* ==================== Resume Builder Layout Override ==================== */

.resume-builder-page .resume-builder-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .resume-builder-page .resume-builder-layout {
        grid-template-columns: 1fr;
    }

    .resume-preview-panel {
        position: static;
    }
}

/* ==================== Application Badges ==================== */

.quick-apply-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.resume-attached-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #ecfdf5;
    color: var(--success);
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

/* ==================== AI Resume Parse Section ==================== */

.resume-parse-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 0;
    text-align: center;
}

.parse-header h3 {
    margin: 0 0 0.5rem 0;
    color: #0369a1;
    font-size: 1.2rem;
}

.parse-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.parse-dropzone {
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.parse-dropzone:hover,
.parse-dropzone.dragover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.parse-dropzone .dropzone-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.parse-dropzone .dropzone-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: var(--gray-700);
}

.parse-dropzone .dropzone-subtext {
    color: #94a3b8;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.parse-dropzone .dropzone-formats {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 1rem;
}

/* Parse Status States */
.parse-loading {
    padding: 2rem;
    text-align: center;
}

.parse-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: parseSpin 1s linear infinite;
}

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

.parse-substatus {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.parse-success {
    padding: 2rem;
    text-align: center;
}

.parse-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.parse-success h4 {
    color: #059669;
    margin: 0 0 0.5rem 0;
}

.parse-success p {
    color: #64748b;
    margin-bottom: 1rem;
}

.parse-error {
    padding: 2rem;
    text-align: center;
}

.parse-error-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.parse-error h4 {
    color: var(--error);
    margin: 0 0 0.5rem 0;
}

.parse-error p {
    color: #64748b;
    margin-bottom: 1rem;
}

/* Parse Divider */
.parse-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.parse-divider::before,
.parse-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.parse-divider span {
    padding: 0 1rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* AI Filled Highlight Animation */
.resume-form .ai-filled {
    animation: aiParseHighlight 0.5s ease;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
    transition: box-shadow 0.5s ease;
}

@keyframes aiParseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.3); }
    100% { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); }
}

/* ==================== Quick Fill Resume Section ==================== */

.registration-quick-fill {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.registration-quick-fill::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.quick-fill-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quick-fill-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.quick-fill-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.quick-fill-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.quick-fill-dropzone {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-fill-dropzone:hover,
.quick-fill-dropzone.dragover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.quick-fill-dropzone .dropzone-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.quick-fill-dropzone .dropzone-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.quick-fill-dropzone .dropzone-hint {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.quick-fill-dropzone .btn-browse {
    background: white;
    color: #1e3a5f;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.quick-fill-dropzone .btn-browse:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading State */
.quick-fill-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quick-fill-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: qfSpin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

.quick-fill-loading-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Success State */
.quick-fill-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quick-fill-checkmark {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.2);
    border: 3px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    animation: qfPopIn 0.3s ease;
}

@keyframes qfPopIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.quick-fill-success-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quick-fill-success-hint {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-start-fresh {
    margin-top: 1rem;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-start-fresh:hover {
    background: rgba(255,255,255,0.25);
}

/* Error State */
.quick-fill-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.quick-fill-error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.quick-fill-error .error-message {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.btn-retry {
    background: white;
    color: #dc2626;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-retry:hover {
    background: #fef2f2;
}

/* Divider */
.quick-fill-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.quick-fill-divider::before,
.quick-fill-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Highlight Animation for AI-Filled Fields on Registration */
.registration-form input.ai-filled,
.registration-form select.ai-filled,
.registration-form textarea.ai-filled,
.auth-form input.ai-filled,
.auth-form select.ai-filled,
.auth-form textarea.ai-filled,
.field-highlight.field-highlight {
    animation: regFieldHighlight 2.5s ease;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
    border-color: #2563eb;
    background-color: #eff6ff;
    transition: all 0.3s ease;
}

.registration-form .checkbox-item.ai-filled.ai-filled {
    background-color: #eff6ff;
    border-radius: 6px;
    padding: 4px 8px;
}

@keyframes regFieldHighlight {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); }
    30% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.3); }
    100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .registration-quick-fill {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .quick-fill-header {
        flex-direction: column;
        text-align: center;
    }

    .quick-fill-dropzone {
        padding: 1.5rem 1rem;
    }

    .quick-fill-dropzone .dropzone-icon {
        font-size: 2.5rem;
    }
}

/* ==================== Breadcrumbs ==================== */
.breadcrumbs {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--gray-500);
}

.breadcrumb-item a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.breadcrumb-item.active span {
    color: var(--gray-800);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--gray-400);
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }

    .breadcrumb-list {
        font-size: 0.8125rem;
    }

    .breadcrumb-separator {
        margin: 0 0.375rem;
    }
}

/* ==================== Resume Parser Styles ==================== */
.resume-upload-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.resume-upload-section h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.resume-upload-section p {
    margin: 0 0 15px 0;
    font-size: 0.875rem;
    color: #64748b;
}

#resume-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

#resume-drop-zone:hover {
    border-color: var(--navy);
    background: #f8fafc;
}

#resume-drop-zone.drag-over {
    border-color: var(--navy);
    background: #eff6ff;
    transform: scale(1.01);
}

#resume-drop-zone .drop-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    color: #94a3b8;
}

#resume-drop-zone .drop-text {
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 5px;
}

#resume-drop-zone .drop-subtext {
    font-size: 0.8125rem;
    color: #94a3b8;
}

#resume-drop-zone .drop-link {
    color: var(--navy);
    font-weight: 500;
}

/* Parse Status */
.parse-status {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.parse-status-loading {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.parse-status-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.parse-status-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.parse-status svg.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* AI Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-badge svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .resume-upload-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    #resume-drop-zone {
        padding: 30px 15px;
    }

    #resume-drop-zone .drop-icon {
        width: 40px;
        height: 40px;
    }

    #resume-drop-zone .drop-text {
        font-size: 0.875rem;
    }
}

/* ==================== Analytics Dashboard ==================== */
.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-stats .stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    text-align: center;
    display: block;
    overflow: hidden;
}

.analytics-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.analytics-stats .stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.analytics-stats .stat-sub {
    color: var(--success);
    font-size: 0.75rem;
    margin-top: 4px;
    white-space: nowrap;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.analytics-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.analytics-card h3 {
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Funnel Chart */
.funnel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funnel-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.funnel-bar {
    height: 32px;
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 40px;
    transition: width 0.3s ease;
}

.funnel-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    white-space: nowrap;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table a {
    color: var(--navy);
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}

.table-responsive {
    overflow-x: auto;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-content {
    flex: 1;
}

.activity-time {
    color: var(--gray-400);
    font-size: 0.75rem;
    white-space: nowrap;
    margin-left: 15px;
}

/* Quick Links */
.analytics-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.2s ease;
}

.quick-link-card:hover {
    border-color: var(--navy);
    background: var(--gray-50);
}

.quick-link-icon {
    font-size: 1.5rem;
}

.quick-link-text {
    font-weight: 500;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-expired {
    background: #fee2e2;
    color: #991b1b;
}

.badge-closed {
    background: var(--gray-200);
    color: var(--gray-600);
}

.badge-draft {
    background: #fef3c7;
    color: #92400e;
}

/* ==================== Application Timeline ==================== */
.timeline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding: 20px 0;
    overflow-x: auto;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 100px;
    flex: 1;
}

.timeline-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gray-200);
}

.timeline-step:last-child::after {
    display: none;
}

.timeline-step.completed::after {
    background: var(--success);
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    z-index: 1;
    position: relative;
}

.timeline-step.completed .timeline-dot {
    background: var(--success);
    color: white;
}

.timeline-step.rejected .timeline-dot {
    background: var(--error);
    color: white;
}

.timeline-step.withdrawn .timeline-dot {
    background: var(--gray-400);
    color: white;
}

.timeline-step.pending .timeline-dot {
    background: var(--gray-200);
    color: var(--gray-400);
}

.timeline-content {
    text-align: center;
    margin-top: 10px;
}

.timeline-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-800);
}

.timeline-step.pending .timeline-label {
    color: var(--gray-400);
}

.timeline-date {
    font-size: 0.6875rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Timeline Visual Container */
.timeline-visual {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
}

/* Application Cards */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.application-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.application-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.application-header h3 a {
    color: var(--gray-800);
    text-decoration: none;
}

.application-header h3 a:hover {
    color: var(--navy);
}

.application-header .company {
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

.application-body {
    padding: 20px;
}

.application-footer {
    padding: 15px 20px;
    background: var(--gray-50);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-pending,
.status-new {
    background: #fef3c7;
    color: #92400e;
}

.status-viewed {
    background: #dbeafe;
    color: #1e40af;
}

.status-shortlisted {
    background: #d1fae5;
    color: #065f46;
}

.status-interview {
    background: #e0e7ff;
    color: #3730a3;
}

.status-offered {
    background: #fce7f3;
    color: #9d174d;
}

.status-hired {
    background: var(--success);
    color: white;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-withdrawn {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Empty State */
.empty-state-small {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray-500);
}

.empty-state-small p {
    margin: 0;
}

.empty-state-small a {
    color: var(--navy);
}

/* Responsive Analytics */
@media (max-width: 768px) {
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .analytics-card {
        padding: 16px;
    }

    .funnel-label {
        font-size: 0.75rem;
    }

    .timeline {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-step {
        flex-direction: row;
        min-width: auto;
        width: 100%;
        padding-left: 0;
        padding-bottom: 20px;
    }

    .timeline-step::after {
        top: 32px;
        left: 16px;
        width: 2px;
        height: calc(100% - 12px);
    }

    .timeline-content {
        text-align: left;
        margin-top: 0;
        margin-left: 15px;
    }

    .quick-link-card {
        padding: 12px 16px;
    }
}

/* ==================== Equipment/Truck Styles ==================== */

/* Equipment Badge on Job Cards */
.equipment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 12px;
    right: 12px;
    box-shadow: 0 2px 8px rgba(0, 137, 123, 0.3);
}

.equipment-badge svg {
    flex-shrink: 0;
}

.equipment-badge.compact {
    padding: 4px 10px;
    font-size: 0.6875rem;
    top: 8px;
    right: 8px;
}

.job-card.has-equipment {
    border-left: 4px solid #0d9488;
}

.job-card.featured-card.has-equipment {
    border-left: 4px solid #0d9488;
    border-top: 3px solid var(--gold);
}

/* Equipment Form Section */
.equipment-toggle-group {
    background: #f0fdf4;
    margin: 0 -20px -20px;
    padding: 20px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.equipment-toggle label {
    cursor: pointer;
}

.equipment-toggle small {
    margin-top: 4px;
}

.equipment-section {
    margin-top: 20px;
}

.equipment-form-section {
    padding: 20px;
}

.equipment-form-section .form-section-header {
    margin-bottom: 24px;
}

.equipment-form-section .form-section-header h3 {
    margin: 0;
    color: var(--navy);
}

.equipment-form-section .section-description {
    color: var(--gray-600);
    margin-top: 4px;
}

.equipment-form-section .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.equipment-form-section .pricing-fields {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius);
    margin: 16px 0;
    border: 1px solid var(--gray-200);
}

.equipment-form-section .checkbox-inline {
    display: flex;
    align-items: center;
    padding-top: 28px;
}

/* Photo Upload Zone */
.photo-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
    border-color: var(--navy);
    background: var(--gray-50);
}

.photo-upload-zone .upload-prompt {
    color: var(--gray-500);
}

.photo-upload-zone .upload-prompt svg {
    margin-bottom: 12px;
    color: var(--gray-400);
}

.photo-upload-zone .upload-prompt p {
    margin: 8px 0 4px;
    font-weight: 500;
    color: var(--gray-700);
}

.photo-upload-zone .upload-prompt span {
    font-size: 0.8125rem;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview-item .remove-photo:hover {
    background: var(--error);
}

/* Equipment Section on Job Detail Page */
.job-equipment-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #0d9488;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.equipment-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 137, 123, 0.2);
}

.equipment-section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #0f766e;
    font-size: 1.25rem;
}

.equipment-section-header h2 svg {
    color: #0d9488;
}

.equipment-availability {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.equipment-availability.availability-provided {
    background: #e0f2fe;
    color: #0369a1;
}

.equipment-availability.availability-for_sale {
    background: #fef3c7;
    color: #b45309;
}

.equipment-availability.availability-lease_to_own {
    background: #f3e8ff;
    color: var(--gold-dark);
}

.equipment-availability.availability-rent {
    background: #fce7f3;
    color: #be185d;
}

.equipment-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .equipment-details-grid {
        grid-template-columns: 1fr 300px;
    }
}

.equipment-main-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.equipment-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.equipment-year {
    color: var(--gray-500);
    font-weight: 500;
}

.equipment-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.equipment-specs .spec-item {
    background: white;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 137, 123, 0.15);
}

.equipment-specs .spec-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.equipment-specs .spec-value {
    font-weight: 600;
    color: var(--navy);
}

.equipment-pricing {
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 2px solid #0d9488;
}

.equipment-pricing .price-label {
    font-weight: 500;
    color: var(--gray-600);
}

.equipment-pricing .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f766e;
}

.equipment-pricing .negotiable-tag {
    background: var(--gold);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.equipment-pricing .lease-term,
.equipment-pricing .deposit-info {
    font-size: 0.875rem;
    color: var(--gray-600);
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.equipment-description h4,
.equipment-features h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.equipment-description p {
    color: var(--gray-700);
    line-height: 1.6;
}

.equipment-features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.equipment-features ul li {
    background: white;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.equipment-features ul li::before {
    content: "\\2713 ";
    color: #0d9488;
    font-weight: bold;
    margin-right: 4px;
}

/* Equipment Photos */
.equipment-photos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.equipment-photos .photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.equipment-photos .photo-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.equipment-photos .photo-item:hover {
    transform: scale(1.02);
}

.equipment-photos .photo-item.main-photo {
    grid-column: span 2;
}

.equipment-photos .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.equipment-photos .photo-item.main-photo img {
    aspect-ratio: 16/10;
}

/* Equipment Badge on Similar Jobs */
.jobs-grid .job-card.has-equipment {
    border-left: 3px solid #0d9488;
}

/* Responsive Equipment Styles */
@media (max-width: 768px) {
    .equipment-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .equipment-title {
        font-size: 1.25rem;
    }

    .equipment-pricing .price-value {
        font-size: 1.25rem;
    }

    .equipment-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipment-photos .photo-gallery {
        grid-template-columns: 1fr;
    }

    .equipment-photos .photo-item.main-photo {
        grid-column: span 1;
    }
}

/* ==================== Desktop-First UI Improvements ==================== */

/* Better Desktop Layout */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 32px;
    }

    /* Improved Dashboard Layout */
    .dashboard {
        padding: 40px 0;
    }

    .dashboard-header {
        margin-bottom: 32px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    /* Better Job Cards Grid */
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 24px;
    }

    .job-card {
        padding: 24px;
    }

    .job-card-title {
        font-size: 1.125rem;
    }

    /* Admin Panel Improvements */
    .admin-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }

    .admin-main {
        padding: 32px 40px;
    }

    .admin-header {
        margin-bottom: 32px;
    }

    .admin-header h1 {
        font-size: 1.75rem;
    }

    /* Form Improvements */
    .form-section {
        padding: 32px;
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .form-group label {
        font-size: 0.875rem;
        font-weight: 600;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 0.9375rem;
    }

    /* Table Improvements */
    .admin-table th,
    .admin-table td {
        padding: 16px 20px;
    }

    .admin-table th {
        font-size: 0.8125rem;
        letter-spacing: 0.5px;
    }

    /* Better Button Sizing */
    .btn {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 16px 36px;
        font-size: 1.0625rem;
    }
}

/* Enhanced Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.stat-revenue .stat-value {
    color: var(--success);
}

/* Admin Panels */
.admin-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.admin-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
}

.admin-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

/* Enhanced Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--gray-50);
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.5px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.admin-table tbody tr:hover {
    background: var(--gray-50);
}

/* Enhanced Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-new,
.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-active,
.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-shortlisted {
    background: #dbeafe;
    color: #1e40af;
}

.status-interview {
    background: #f3e8ff;
    color: var(--gold-dark);
}

.status-offered,
.status-hired {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected,
.status-inactive,
.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-changes_requested {
    background: #fef3c7;
    color: #92400e;
}

/* Enhanced Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert::before {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-success::before {
    content: '\2713';
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-error::before {
    content: '\2717';
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-warning::before {
    content: '\26A0';
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-info::before {
    content: '\2139';
}

/* Improved Admin Sidebar */
.admin-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.admin-logo span {
    color: #10b981;
}

.admin-nav {
    padding: 16px 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-nav-item.active {
    background: #10b981;
    color: white;
}

.admin-nav-item .nav-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

.admin-subnav {
    padding-left: 52px;
    margin-bottom: 8px;
}

.admin-nav-subitem {
    display: block;
    padding: 8px 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    border-radius: 6px;
    margin-bottom: 2px;
}

.admin-nav-subitem:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.admin-nav-subitem.active {
    color: #10b981;
}

.admin-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

/* Card Hover Effects */
.job-card,
.admin-panel,
.stat-card,
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Print Styles */
/* ==================== Print Styles ==================== */
@media print {
    .ecosystem-bar, .site-header, .site-footer,
    #cookie-consent, .mobile-menu-toggle, .nav-hamburger,
    .btn:not(.btn-print), .dashboard-sidebar, .sidebar-mobile-toggle,
    .sidebar-backdrop, .toast-container, [class*="ads-"],
    .ad-banner, .no-print, .hero-popular, .hero-cta { display: none !important; }
    body { font-size: 12pt; color: #000 !important; background: #fff !important; }
    a { color: #000 !important; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
    h1, h2, h3, h4 { color: #000 !important; page-break-after: avoid; }
    .card, [class*="-card"], .jc { box-shadow: none !important; border: 1px solid #ccc !important; }
    img { max-width: 100% !important; }
    table { border-collapse: collapse !important; }
    th, td { border: 1px solid #ccc !important; padding: 6px !important; }
    .admin-main, .container { padding: 0; max-width: 100%; }
    @page { margin: 2cm; }
}

/* ==================== Loading Spinner ==================== */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }

.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(15,31,61,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: var(--z-toast, 10000);
    backdrop-filter: blur(2px);
}

/* ==================== Tooltip ==================== */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: var(--z-dropdown, 100);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ==================== Badge System ==================== */
.badge-gold { background: var(--gold); color: var(--navy); }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-outline-gold { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.badge-outline-navy { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }

/* ==================== Desktop-First Form Improvements ==================== */

/* Auth Container - Desktop-wide variant for registration */
/* Base .auth-container defined in Auth Pages section above */

.auth-container.desktop-wide {
    max-width: 720px;
}

@media (min-width: 768px) {
    .auth-container.desktop-wide {
        max-width: 800px;
    }

    /* Two-column form layout on desktop */
    .auth-container .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .auth-container .form-row.single {
        grid-template-columns: 1fr;
    }
}

/* Registration Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    text-decoration: none;
}

.auth-tab:hover {
    color: var(--gray-900);
}

.auth-tab.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

/* Collapsible Form Sections */
.form-section {
    background: var(--gray-50, #f8f9fa);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: 20px;
    overflow: hidden;
}

.form-section-header {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900, #111827);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-100, #f1f3f5);
}

.form-section-header:hover {
    background: var(--gray-200, #e4e6eb);
}

.form-section-body {
    padding: 24px;
    background: var(--white, #fff);
}

/* Better Form Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700, #374151);
}

.form-group label .required {
    color: var(--error, #dc2626);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--gray-200, #e4e6eb);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white, #fff);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold, #f0a500);
    box-shadow: 0 0 0 4px rgba(247, 195, 46, 0.15);
}

.form-control:hover:not(:focus) {
    border-color: var(--gray-300, #d0d3d8);
}

.form-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--gray-200, #e4e6eb);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white, #fff);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--gold, #f0a500);
    box-shadow: 0 0 0 4px rgba(247, 195, 46, 0.15);
}

.form-select:hover:not(:focus) {
    border-color: var(--gray-300, #d0d3d8);
}

.form-help {
    font-size: 0.8125rem;
    color: var(--gray-500, #6b7280);
    margin-top: 6px;
}

/* Checkbox Grids - Better Desktop Layout */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--white, #fff);
    border: 2px solid var(--gray-200, #e4e6eb);
    border-radius: var(--radius, 8px);
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: var(--gold, #f0a500);
    background: var(--gray-50, #f8f9fa);
}

.checkbox-item input:checked + span,
.checkbox-item input:checked ~ span {
    color: var(--navy, #0f1f3d);
    font-weight: 600;
}

/* Registration Page Specific */
.registration-page {
    background: linear-gradient(135deg, var(--gray-50, #f8f9fa) 0%, var(--gray-200, #e4e6eb) 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.registration-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Desktop Form Sections Layout */
@media (min-width: 1024px) {
    .form-section .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .form-section .form-row.triple {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-section .form-row .full-width {
        grid-column: 1 / -1;
    }
}

/* Base .auth-box defined in Auth Pages section above */

/* Registration Type Selector */
.registration-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.registration-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.registration-type-option:hover {
    border-color: var(--gold);
    background: var(--gray-50);
}

.registration-type-option.active {
    border-color: var(--gold);
    background: rgba(240, 165, 0, 0.05);
}

.registration-type-option .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.registration-type-option .title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900);
}

.registration-type-option .desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Form Progress Indicator */
.form-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.form-progress-step {
    width: 40px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    transition: background var(--transition);
}

.form-progress-step.active {
    background: var(--gold);
}

.form-progress-step.completed {
    background: var(--navy);
}

/* Form Actions - Better Desktop Layout */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.form-actions .btn {
    flex: 1;
}

@media (min-width: 768px) {
    .form-actions {
        justify-content: flex-end;
    }

    .form-actions .btn {
        flex: none;
        min-width: 150px;
    }

    .form-actions .btn-primary {
        min-width: 200px;
    }
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.form-divider span {
    padding: 0 16px;
}

/* Link Styles in Forms */
.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.auth-links a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

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

/* ==================== Responsive Adjustments ==================== */

@media (max-width: 768px) {
    .auth-container.desktop-wide {
        max-width: 100%;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .auth-tab {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .form-section-header {
        padding: 14px 18px;
        font-size: 0.9375rem;
    }

    .form-section-body {
        padding: 18px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .registration-type-selector {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ==================== Additional Badge Styles ==================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-approved,
.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #ffedd5;
    color: #c2410c;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Alert Improvements — consolidated into Enhanced Alerts section above */

/* ==================== Consent System ==================== */

/* Consent Intro Text */
.consent-intro {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

/* Consent Items Container */
.consent-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Consent Item */
.consent-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.2s ease;
}

.consent-item:hover {
    border-color: var(--gray-300);
}

.consent-item.agreed {
    background: #f0fdf4;
    border-color: var(--success);
}

.consent-item.agreed .consent-checkmark::after {
    border-color: var(--success);
}

/* Must-read state (checkbox disabled until document is read) */
.consent-item.must-read {
    background: #fffbeb;
    border-color: var(--warning);
}

.consent-item.must-read .consent-checkbox-wrapper {
    opacity: 0.5;
    cursor: not-allowed;
}

.consent-item.must-read .consent-checkmark {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

/* Read status badges */
.read-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.read-status-pending {
    color: var(--warning);
    background: #fef3c7;
}

.read-status-done {
    color: var(--success);
    background: #dcfce7;
}

.read-status-fallback {
    color: #b45309;
    background: #fef3c7;
}

/* Consent Item Header */
.consent-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    overflow: hidden;
}

/* Custom Checkbox Wrapper */
.consent-checkbox-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.consent-checkmark {
    height: 22px;
    width: 22px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.consent-checkbox-wrapper:hover .consent-checkmark {
    border-color: var(--navy);
}

.consent-checkbox-wrapper input:checked ~ .consent-checkmark {
    background: var(--success);
    border-color: var(--success);
}

.consent-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-checkbox-wrapper input:checked ~ .consent-checkmark::after {
    display: block;
}

/* Consent Item Info */
.consent-item-info {
    flex: 1;
}

.consent-link {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.consent-link:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* Consent Summary */
.consent-summary {
    color: var(--gray-600);
    font-size: 0.8125rem;
    margin: 8px 0 0 34px;
    line-height: 1.5;
}

/* Consent Note */
.consent-note {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.consent-note small {
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* ==================== Consent Modal ==================== */

.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.consent-modal.open {
    opacity: 1;
    visibility: visible;
}

.consent-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.consent-modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.consent-modal.open .consent-modal-dialog {
    transform: translateY(0);
}

.consent-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.consent-modal-header h2 {
    font-size: 1.25rem;
    color: var(--navy);
    margin: 0;
}

.consent-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.consent-modal-close:hover {
    color: var(--gray-600);
}

.consent-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.consent-modal-body h1 {
    display: none;
}

.consent-modal-body h2 {
    font-size: 1.0625rem;
    color: var(--navy);
    margin: 24px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.consent-modal-body section:first-of-type h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.consent-modal-body h3 {
    font-size: 0.9375rem;
    color: var(--gray-700);
    margin: 16px 0 8px;
}

.consent-modal-body p {
    margin-bottom: 12px;
}

.consent-modal-body ul {
    margin: 8px 0 12px 20px;
}

.consent-modal-body li {
    margin-bottom: 6px;
}

.consent-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--warning);
    font-size: 0.8125rem;
    padding: 8px;
    background: #fffbeb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.scroll-icon {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.consent-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.consent-actions .btn {
    min-width: 120px;
}

.consent-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .consent-modal-dialog {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }

    .consent-modal-header {
        padding: 16px 20px;
    }

    .consent-modal-body {
        padding: 20px;
    }

    .consent-modal-footer {
        padding: 16px 20px;
    }

    .consent-actions {
        flex-direction: column;
    }

    .consent-actions .btn {
        width: 100%;
    }

    .consent-summary {
        margin-left: 0;
        margin-top: 12px;
    }

    .consent-item {
        padding: 12px;
    }
}

/* Match Badge Styles for Applications */
.match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 48px;
}

.match-badge.match-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #34d399;
}

.match-badge.match-primary {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #60a5fa;
}

.match-badge.match-warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fbbf24;
}

.match-badge.match-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast-success::before {
    background: var(--success);
}

.toast-error::before {
    background: var(--error);
}

.toast-warning::before {
    background: var(--warning);
}

.toast-info::before {
    background: var(--navy);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--error);
}

.toast-warning .toast-icon {
    color: var(--warning);
}

.toast-info .toast-icon {
    color: var(--navy);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 1.125rem;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--gray-600);
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile toast adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: 0;
        max-width: none;
    }
}

/* ===== RESUME BUILDER STYLES ===== */

/* Page container */
.resume-builder-page .container {
    max-width: 1400px;
}

/* Page header */
.resume-builder-page h1 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Purchase card styling */
.resume-builder-page .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 43, 74, 0.1);
    overflow: hidden;
}

/* Card headers - navy background with gold text */
.resume-builder-page .card-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--gold);
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.resume-builder-page .card-header h4 {
    margin: 0;
    font-size: 1.25rem;
}

/* Card body */
.resume-builder-page .card-body {
    padding: 1.5rem;
}

/* Section headers within form */
.resume-builder-page h5 {
    color: var(--navy);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    margin-top: 1.5rem;
}

/* Form labels */
.resume-builder-page label {
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* Form inputs */
.resume-builder-page .form-control,
.resume-builder-page .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    transition: all 0.2s;
}

.resume-builder-page .form-control:focus,
.resume-builder-page .form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}

/* Experience items */
.resume-builder-page .experience-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.resume-builder-page .experience-item:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(26, 43, 74, 0.08);
}

/* Button styling - Primary (navy) */
.resume-builder-page .btn-primary {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border: none;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.resume-builder-page .btn-primary:hover {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 43, 74, 0.25);
}

/* Button styling - Success (teal/green for downloads) */
.resume-builder-page .btn-success {
    background: #10b981;
    border: none;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.resume-builder-page .btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Button styling - Info (teal for Word download) */
.resume-builder-page .btn-info {
    background: #0d9488;
    border: none;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.resume-builder-page .btn-info:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Outline buttons */
.resume-builder-page .btn-outline-primary {
    border-color: var(--navy);
    color: var(--navy);
}

.resume-builder-page .btn-outline-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
}

.resume-builder-page .btn-outline-secondary {
    border-color: #6b7280;
    color: #6b7280;
}

.resume-builder-page .btn-outline-secondary:hover {
    background: #6b7280;
    border-color: #6b7280;
}

/* Resume preview panel */
.resume-builder-page #resumePreview {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 700px;
    font-family: Georgia, 'Times New Roman', serif;
    padding: 2rem;
    box-shadow: inset 0 2px 8px rgba(26, 43, 74, 0.05);
}

/* Preview card sticky positioning */
.resume-builder-page .sticky-top {
    z-index: 100;
}

/* Purchase section styling */
.resume-builder-page .fa-magic {
    color: var(--gold);
}

.resume-builder-page .display-4 {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature checkmarks */
.resume-builder-page .fa-check.text-success.text-success {
    color: #10b981;
}

/* Icon styling */
.resume-builder-page .fa-file-alt,
.resume-builder-page .fa-edit,
.resume-builder-page .fa-eye {
    margin-right: 0.5rem;
}

/* Action buttons container */
.resume-builder-page .mt-4.pt-3.border-top.border-top {
    border-top-color: var(--gold);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resume-builder-page .col-lg-5 {
        margin-top: 2rem;
    }

    .resume-builder-page #resumePreview {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .resume-builder-page h1 {
        font-size: 1.75rem;
    }

    .resume-builder-page .card-header {
        padding: 1rem;
    }

    .resume-builder-page .card-body {
        padding: 1rem;
    }

    .resume-builder-page #resumePreview {
        padding: 1rem;
        min-height: 400px;
    }

    .resume-builder-page .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ==================== Registration Forms ==================== */
.register-page {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-200) 100%);
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
}

.register-card,
.auth-card {
    background: var(--white, #fff);
    border-radius: 16px;
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.1));
    padding: 48px;
    margin-top: 20px;
}

.register-card h1,
.auth-card h1 {
    color: var(--navy, #0f1f3d);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.register-card .subtitle,
.auth-card .subtitle {
    color: var(--gray-500, #6b7280);
    text-align: center;
    margin-bottom: 32px;
    font-size: 1rem;
}

.register-card .form-group,
.auth-card .form-group {
    margin-bottom: 24px;
}

.register-card label,
.auth-card label {
    display: block;
    font-weight: 600;
    color: var(--navy, #0f1f3d);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.register-card input,
.register-card select,
.register-card textarea,
.auth-card input,
.auth-card select,
.auth-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200, #e4e6eb);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--gray-50, #f8f9fa);
}

.register-card input:focus,
.register-card select:focus,
.register-card textarea:focus,
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white, #fff);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
}

.register-card input.error,
.auth-card input.error {
    border-color: var(--error, #dc2626);
}

.register-card .error-message,
.auth-card .error-message {
    color: var(--error, #dc2626);
    font-size: 0.8125rem;
    margin-top: 6px;
}

.register-card .form-row,
.auth-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-register,
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, var(--gold, #f0a500) 0%, var(--gold-dark, #c8880a) 100%);
    color: var(--navy, #0f1f3d);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-register:hover,
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240,165,0,0.4);
}

.register-footer,
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500, #6b7280);
}

.register-footer a,
.auth-footer a {
    color: var(--navy, #0f1f3d);
    font-weight: 600;
    text-decoration: none;
}

/* Registration form specific sections */
.register-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200, #e4e6eb);
}

.register-section:last-child {
    border-bottom: none;
}

.register-section h2 {
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Checkbox groups for registration */
.register-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.register-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.register-checkbox-item:hover {
    background: #f8f9fa;
    border-color: var(--navy);
}

.register-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Terms and privacy checkboxes */
.terms-checkbox-group {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.terms-checkbox-group .checkbox-item {
    margin-bottom: 12px;
}

.terms-checkbox-group .checkbox-item:last-child {
    margin-bottom: 0;
}

/* ABN field styling */
.abn-field-wrapper {
    margin-bottom: 20px;
}

.abn-input-group {
    display: flex;
    gap: 10px;
}

.abn-input {
    flex: 1;
}

.abn-verify-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.abn-verify-btn:hover {
    background: #2a3b5a;
}

.abn-result {
    margin-top: 8px;
    font-size: 0.875rem;
}

.abn-result.success {
    color: #10b981;
}

.abn-result.error {
    color: #ef4444;
}

/* File upload styling */
.file-upload-group {
    margin-bottom: 20px;
}

.file-upload-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
}

.file-upload-preview.has-file {
    border-style: solid;
    border-color: #10b981;
    background: #f0fdf4;
}

.file-upload-preview input[type="file"] {
    display: none;
}

.file-upload-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.file-upload-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Registration type tabs */
.register-type-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 10px;
}

.register-type-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.register-type-tab.active {
    background: white;
    color: var(--navy);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.register-type-tab:hover:not(.active) {
    background: rgba(255,255,255,0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .register-page,
    .auth-page {
        padding: 20px 10px;
    }

    .register-card,
    .auth-card {
        padding: 32px 24px;
        margin: 10px;
        border-radius: 12px;
    }

    .register-card h1,
    .auth-card h1 {
        font-size: 1.625rem;
    }

    .register-card .form-row,
    .auth-card .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-card input,
    .register-card select,
    .register-card textarea,
    .auth-card input,
    .auth-card select,
    .auth-card textarea {
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .register-checkboxes {
        grid-template-columns: 1fr;
    }

    .file-upload-preview {
        flex-direction: column;
        text-align: center;
    }

    .abn-input-group {
        flex-direction: column;
    }

    .abn-verify-btn {
        width: 100%;
    }
}

/* ============================================================
   ROLE_TAXONOMY Cascade Styles
   For employer and candidate registration/profile forms
   ============================================================ */

/* Role group headers (within role checkboxes) */
.role-group-header {
    width: 100%;
    padding: 12px 16px;
    margin: 16px 0 8px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    border-left: 4px solid #3b82f6;
}

.role-group-header:first-child {
    margin-top: 0;
}

/* Industry/Role checkbox styling */
.industry-checkbox,
.hiring-role-checkbox {
    transition: all 0.2s ease;
}

.industry-checkbox:hover,
.hiring-role-checkbox:hover {
    background: #f1f5f9;
}

.industry-checkbox input:checked + span,
.hiring-role-checkbox input:checked + span {
    color: #2563eb;
    font-weight: 500;
}

/* Section description text */
.section-description {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    color: #0c4a6e;
    line-height: 1.6;
}

/* Help text */
.help-text {
    display: block;
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: #64748b;
    font-style: italic;
}

/* Step indicators in cascade forms */
.form-group label:contains("Step") {
    font-weight: 600;
    color: #1e293b;
}

/* Smooth transitions for conditional sections */
#hiring-roles-section,
#employer-roles-section {
    transition: all 0.3s ease;
}

/* Mobile responsive for cascade */
@media (max-width: 768px) {
    .role-group-header {
        font-size: 0.8125rem;
        padding: 10px 12px;
    }

    .section-description {
        font-size: 0.875rem;
        padding: 10px 12px;
    }
}

/* ==================== Dashboard Sidebar ==================== */
.dashboard-with-sidebar {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.dashboard-sidebar {
    position: sticky;
    top: 85px;
    align-self: start;
    background: var(--navy-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.sidebar-nav-item.active {
    background: rgba(240,165,0,0.1);
    color: var(--gold);
    border-left-color: var(--gold);
    font-weight: 600;
}

.sidebar-nav-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--gold);
}

.sidebar-nav-label {
    flex: 1;
}

.sidebar-nav-item.active .sidebar-nav-icon {
    color: var(--gold);
}

.sidebar-nav-badge {
    background: var(--error);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.dashboard-with-sidebar .dashboard-content {
    min-width: 0;
}

/* Mobile: hide sidebar, show toggle */
.sidebar-mobile-toggle {
    display: none;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    width: 100%;
    text-align: left;
}

@media (max-width: 768px) {
    .dashboard-with-sidebar {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 1001;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 70px;
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .sidebar-backdrop.open {
        display: block;
    }

    .sidebar-mobile-toggle {
        display: block;
    }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   WORK SOURCING
   ============================================ */

/* Badge — amber pill used on cards, detail page, nav */
.badge-work-sourcing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.badge-work-sourcing--sub {
    background: #fcd34d;
    color: #92400e;
    text-shadow: none;
    font-size: 11px;
    padding: 3px 10px;
}

/* Card-level WS info strip — shown on job cards */
.jc__ws-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding: 8px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}
.jc__ws-arrangement {
    font-weight: 600;
    color: #92400e;
}
.jc__ws-price {
    font-weight: 700;
    color: #b45309;
}
.jc__ws-vehicle {
    color: #6b7280;
    font-size: 12px;
}
.jc__ws-separator {
    color: #d1d5db;
}

/* Detail page — Work Sourcing panel */
.work-sourcing-panel {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 28px;
    margin: 28px 0;
    position: relative;
}
.work-sourcing-panel h3 {
    margin: 0 0 8px;
    color: #92400e;
    font-size: 1.25rem;
}
.work-sourcing-panel > p:first-of-type {
    color: #78350f;
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Detail items grid */
.ws-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.ws-detail-item {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 16px;
}
.ws-detail-item .label {
    font-size: 11px;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}
.ws-detail-item .value {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.ws-detail-item .value--sm {
    font-size: 16px;
}

/* Finance CTA */
.finance-referral-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
    border-radius: 10px;
    padding: 24px;
    color: #fff;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.finance-referral-cta__text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
}
.btn-finance {
    background: #f59e0b;
    color: #000;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .btn-finance {
        white-space: normal;
        text-align: center;
        font-size: 0.88rem;
        padding: 10px 16px;
    }
}
.btn-finance:hover { background: #d97706; transform: translateY(-1px); }
.btn-finance:active { transform: translateY(0); }

/* Hero-level finance CTA (work-sourcing.php hero) */
.ws-hero-finance {
    margin-top: 16px;
}
.ws-hero-search {
    margin-top: 20px;
}

/* Disclaimer */
.ws-disclaimer {
    font-size: 0.85rem;
    color: #1e40af;
    margin-top: 20px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ws-disclaimer i {
    color: #3b82f6;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Employer form — listing type cards */
.listing-type-cards { display: flex; gap: 16px; margin-bottom: 16px; }
.listing-type-card { flex: 1; border: 2px solid #e5e7eb; border-radius: 8px; padding: 16px; cursor: pointer; transition: border-color 0.2s; text-align: center; }
.listing-type-card:hover { border-color: #93c5fd; }
.listing-type-card.active { border-color: #2563eb; background: #eff6ff; }
.notice-warning { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 16px; margin-top: 12px; border-radius: 4px; }

/* Responsive */
@media (max-width: 640px) {
    .ws-details {
        grid-template-columns: 1fr 1fr;
    }
    .finance-referral-cta {
        flex-direction: column;
        text-align: center;
    }
    .work-sourcing-panel {
        padding: 20px;
    }
    .jc__ws-info {
        font-size: 12px;
        padding: 6px 10px;
    }
}
@media (max-width: 400px) {
    .ws-details {
        grid-template-columns: 1fr;
    }
}


/* AYIO-CHECKBOX-FIX 2026-05-05: override .form-group input{width:100%} for checkboxes+radios */
.form-group input[type="checkbox"],.form-group input[type="radio"]{width:auto!important;flex-shrink:0;margin:0}
.form-group label input[type="checkbox"],.form-group label input[type="radio"]{width:auto!important;flex-shrink:0}
