/* ================================================
   CAREER PAGE STYLES
   ================================================ */

/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
    --career-primary: #4092cc;
    --career-primary-dark: #357abd;
    --career-success: #22c55e;
    --career-success-dark: #16a34a;
    --career-warning: #f59e0b;
    --career-danger: #ef4444;
    --career-gray: #64748b;
    --career-light: #f8fafc;
    --career-border: #e2e8f0;
}

/* ================================================
   BASE LAYOUT (from dashboard.css)
   ================================================ */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 4rem 4rem 4rem;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-header h1 {
    color: var(--career-primary);
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dashboard-header h1 i {
    color: var(--career-primary);
}

.dashboard-header p {
    color: var(--career-gray);
    margin: 0;
}

/* Section headings */
.content-card h2,
.career-section h2 {
    font-size: 1.1rem;
    color: var(--career-primary);
    margin: 0 0 1rem 0;
}

.content-card h2 i,
.career-section h2 i {
    margin-right: 0.5rem;
}

.content-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Dark mode base layout */
body.dark-mode .content-wrapper {
    background-color: #1a1a1c;
}

body.dark-mode .content-card {
    background: #2c2c2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dashboard-header h1,
body.dark-mode .dashboard-header h1 i {
    color: #5ab0e8;
}

body.dark-mode .dashboard-header p {
    color: #a0a0a0;
}

body.dark-mode .content-card h2,
body.dark-mode .career-section h2 {
    color: #5ab0e8;
    border-bottom-color: #5ab0e8;
}

/* Responsive layout */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .dashboard-container {
        padding: 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-card,
    .career-section {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ================================================
   TESTING WARNING BANNER
   ================================================ */
.testing-warning-banner {
    background: #f59e0b;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.update-announcement-banner {
    background: #3b82f6;
    color: #fff;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.update-announcement-banner i {
    font-size: 1rem;
}

.testing-warning-banner i {
    font-size: 1.1rem;
    animation: pulse-warning 2s ease-in-out infinite;
}

.career-guide-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.career-guide-link:hover {
    background: rgba(255, 255, 255, 0.35);
}

.career-guide-link i {
    animation: none;
    margin-right: 0.3rem;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ================================================
   LOADING STATE
   ================================================ */
.career-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--career-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    font-size: 0.95rem;
}

.loading-message i {
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   SECTION STYLING
   ================================================ */
.career-section {
    animation: fadeIn 0.3s ease-out;
    box-sizing: border-box;
}

.section-subtitle {
    color: #666;
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Remove any border/line after h3 */
h3::after,
.career-info-card h3::after,
.sidebar-card h3::after {
    display: none !important;
    content: none !important;
}

.career-info-card h3 {
    border: none;
    padding-bottom: 0;
}

.sidebar-subtitle {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* ================================================
   CAREER INFO ROW - 2 Card Layout
   ================================================ */
.career-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    background: #1a1a2e;
    padding: 3px 5px;
    border-radius: 3px;
    height: 16px;
    min-width: 35px;
    margin-bottom: 0;
}

.rank-stripe {
    width: 4px;
    height: 10px;
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
    border-radius: 1px;
}

/* Sidebar Stats */
.stats-sidebar .stats-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stats-sidebar .stats-row:last-child {
    margin-bottom: 0;
}

.stats-sidebar .stats-row.single {
    justify-content: center;
}

.stats-sidebar .stats-row.single .stat {
    flex: 0 1 auto;
    min-width: 80px;
}

.stats-sidebar .stat {
    flex: 1;
    text-align: center;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 0.4rem;
}

.stats-sidebar .stat .num {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--career-primary);
}

.stats-sidebar .stat .label {
    font-size: 0.65rem;
    color: var(--career-gray);
    text-transform: uppercase;
}

.stats-sidebar .stat.highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
}

.stats-sidebar .stat.highlight .num {
    color: var(--career-success);
}

/* Dark mode additions */
body.dark-mode .rank-badge {
    background: #0d0d1a;
}

body.dark-mode .stats-sidebar .stat {
    background: #1c1c1e;
}

body.dark-mode .stats-sidebar .stat.highlight {
    background: linear-gradient(135deg, #14532d 0%, #1c1c1e 100%);
}

/* Finance Sidebar */
.finance-sidebar .finance-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.finance-sidebar .finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-radius: 0.4rem;
}

.finance-sidebar .finance-row.highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
}

.finance-sidebar .finance-row.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
}

.finance-sidebar .finance-label {
    font-size: 0.8rem;
    color: var(--career-gray);
}

.finance-sidebar .finance-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.finance-sidebar .finance-row.highlight .finance-value {
    color: var(--career-success);
}

.finance-sidebar .finance-row.pending .finance-value {
    color: var(--career-warning);
}

.finance-sidebar .finance-value.income {
    color: var(--career-success);
}

.finance-sidebar .finance-value.expense {
    color: var(--career-danger);
}

.finance-sidebar .finance-divider {
    height: 1px;
    background: var(--career-border);
    margin: 0.25rem 0;
}

/* Finance dark mode */
body.dark-mode .finance-sidebar .finance-row {
    background: #1c1c1e;
}

body.dark-mode .finance-sidebar .finance-row.highlight {
    background: linear-gradient(135deg, #14532d 0%, #1c1c1e 100%);
}

body.dark-mode .finance-sidebar .finance-row.pending {
    background: linear-gradient(135deg, #78350f 0%, #1c1c1e 100%);
}

body.dark-mode .finance-sidebar .finance-value {
    color: #e5e5e5;
}

body.dark-mode .finance-sidebar .finance-divider {
    background: #333;
}

/* Leaderboard Sidebar */
.leaderboard-sidebar .leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: #f8fafc;
    border-radius: 0.4rem;
    font-size: 0.85rem;
}

.leaderboard-item.current-user {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid #93c5fd;
}

.leaderboard-rank {
    font-weight: 700;
    color: #64748b;
    min-width: 1.5rem;
    text-align: center;
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    color: #eab308;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    color: #94a3b8;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    color: #cd7f32;
}

.leaderboard-name {
    flex: 1;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-stats {
    display: flex;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
    flex-shrink: 0;
}

.leaderboard-stats span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    width: 3.5rem;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}

.leaderboard-stats i {
    font-size: 0.65rem;
    flex-shrink: 0;
}

.leaderboard-separator {
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 0.15rem 0;
    letter-spacing: 2px;
}

.leaderboard-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 1rem;
}

/* Leaderboard dark mode */
body.dark-mode .leaderboard-item {
    background: #1c1c1e;
}

body.dark-mode .leaderboard-item.current-user {
    background: linear-gradient(135deg, #1e3a5a 0%, #1c1c1e 100%);
    border-color: #3b82f6;
}

body.dark-mode .leaderboard-name {
    color: #e5e5e5;
}

body.dark-mode .leaderboard-stats {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .career-info-row {
        grid-template-columns: 1fr;
    }
}

.career-info-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--career-border);
}

.career-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.career-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.career-card-header h3 i {
    color: var(--career-primary);
}

/* Employer Card */
.employer-card {
    border-left: 4px solid var(--career-success);
}

.employer-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.employer-card .airline-logo-display {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.employer-card .airline-logo-display img {
    max-width: 120%;
    max-height: 100%;
    object-fit: contain;
}

.employer-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.employer-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.employer-detail .detail-label {
    min-width: 50px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--career-gray);
}

.detail-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

.detail-value-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.employment-status-badge {
    display: inline-block;
    background: var(--career-success);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Contract Card */
.contract-card {
    border-left: 4px solid var(--career-primary);
}

.contract-card .career-card-header {
    margin-bottom: 0.5rem;
}

.contract-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.contract-detail {
    display: flex;
    align-items: center;
    padding: 0.05rem 0;
    gap: 0.5rem;
}

.contract-detail .detail-label {
    min-width: 90px;
}

.contract-detail.highlight {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    margin: 0.25rem -0.75rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.pending-amount {
    color: var(--career-success);
}

/* Stats Card */
.stats-card {
    border-left: 4px solid var(--career-warning);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: var(--career-light);
    border-radius: 0.5rem;
}

.stat-item .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--career-primary);
}

.stat-item .stat-label {
    font-size: 0.7rem;
    color: var(--career-gray);
    text-align: center;
}

.stat-item.highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
}

.stat-item.highlight .stat-value {
    color: var(--career-success);
}

/* Responsive: Stack cards on smaller screens */
@media (max-width: 768px) {
    .career-info-row {
        grid-template-columns: 1fr;
    }
}

/* Legacy styles kept for backward compatibility */
.current-employment-card {
    display: none; /* Hidden - replaced by career-info-row */
}

.contract-info h4 {
    color: #0c4a6e;
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
}

.contract-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

.contract-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #0c4a6e;
}

/* ================================================
   MAIN GRID LAYOUT (Jobs + Sidebar)
   ================================================ */
.career-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.career-main-column {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
}

.career-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    color: #1e293b;
    font-size: 1rem;
    margin: 0 0 .5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card h3::after {
    display: none;
}

.sidebar-card h3 i {
    color: var(--career-primary);
}

/* ================================================
   CAREER STATS SIDEBAR CARD
   ================================================ */

.stats-grid-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-item-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.5rem;
    background: var(--career-light);
    border-radius: 0.5rem;
    text-align: center;
}

.stat-item-sidebar .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--career-primary);
}

.stat-item-sidebar .stat-label {
    font-size: 0.7rem;
    color: var(--career-gray);
    margin-top: 0.15rem;
}

.stat-item-sidebar.highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
}

.stat-item-sidebar.highlight .stat-value {
    color: var(--career-success);
}

body.dark-mode .stat-item-sidebar {
    background: #1c1c1e;
}

body.dark-mode .stat-item-sidebar .stat-label {
    color: #94a3b8;
}

body.dark-mode .stat-item-sidebar.highlight {
    background: linear-gradient(135deg, #14532d 0%, #1c1c1e 100%);
}


/* ================================================
   POSITION WITH RANK STRIPES
   ================================================ */
.position-with-rank {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rank-stripes-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    background: #1a1a2e;
    border-radius: 3px;
    padding: 2px 6px;
    gap: 3px;
}

.rank-stripes-small > .stripe {
    display: block;
    height: 10px;
    width: 4px;
    background-color: #ffd700 !important;
    border-radius: 1px;
    flex-shrink: 0;
}

body.dark-mode .rank-stripes-small {
    background: #0d0d1a;
}

/* ================================================
   CAREER TIMELINE
   ================================================ */
.career-timeline {
    position: relative;
    padding-left: 1.25rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
    padding-left: 1rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.1rem;
    top: 0.4rem;
    width: 2px;
    height: calc(100% + 0.5rem);
    background: var(--career-border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -1.45rem;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--career-primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--career-primary);
}

.timeline-item.current::after {
    background: var(--career-success);
    box-shadow: 0 0 0 2px var(--career-success);
}

.timeline-item.relocation::after {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #f59e0b;
}

.timeline-base {
    margin-top: 0.15rem;
}

.timeline-base i {
    margin-right: 0.2rem;
}

.timeline-date {
    font-size: 0.7rem;
    color: var(--career-gray);
    font-weight: 600;
}

.timeline-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
    margin: 0.15rem 0;
}

.timeline-details {
    font-size: 0.75rem;
    color: var(--career-gray);
}

.timeline-airline-logo {
    height: 30px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.15rem;
    transform: translateX(-0.25rem);
}

/* ================================================
   CAREER ADVISOR
   ================================================ */
.advisor-tip {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
}

.advisor-tip:last-child {
    margin-bottom: 0;
}

.advisor-tip h4 {
    font-size: 0.8rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.advisor-tip p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.advisor-tip.recommended {
    background: #f0f9ff;
    border-color: var(--career-primary);
}

.advisor-tip.recommended h4 {
    color: var(--career-primary);
}

.advisor-tip.recommended p {
    color: #0c4a6e;
}

.advisor-tip.market {
    background: #fefce8;
    border-color: var(--career-warning);
}

.advisor-tip.market h4 {
    color: #ca8a04;
}

.advisor-tip.market p {
    color: #713f12;
}

.advisor-tip.training {
    background: #f0fdf4;
    border-color: var(--career-success);
}

.advisor-tip.training h4 {
    color: var(--career-success);
}

.advisor-tip.training p {
    color: #166534;
}

/* ================================================
   HIRED AIRCRAFT LIST (Sidebar)
   ================================================ */
.hired-aircraft-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hired-aircraft-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--career-light);
    border-radius: 0.5rem;
}

.hired-aircraft-item i {
    color: var(--career-primary);
}

.hired-aircraft-code {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.hired-aircraft-rating {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
}

.hired-aircraft-rating.rated {
    background: rgba(34, 197, 94, 0.1);
    color: var(--career-success);
}

.hired-aircraft-rating.not-rated {
    background: rgba(245, 158, 11, 0.1);
    color: var(--career-warning);
}

/* ================================================
   TYPE RATINGS LIST (Sidebar)
   ================================================ */
.type-ratings-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.type-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--career-success);
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-rating-badge i {
    font-size: 0.7rem;
}

.type-rating-badge .type-rating-hours {
    margin-left: 0.25rem;
    padding-left: 0.4rem;
    border-left: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 0.75rem;
    opacity: 0.85;
}

.no-ratings-message {
    color: var(--career-gray);
    font-size: 0.85rem;
    font-style: italic;
}

.type-rating-badge.training-in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: var(--career-warning);
}

.type-rating-badge.training-in-progress i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hired-aircraft-rating.training {
    background: rgba(245, 158, 11, 0.1);
    color: var(--career-warning);
}

.hired-aircraft-item.not-rated-item {
    opacity: 0.7;
}

.hired-aircraft-item.not-rated-item .hired-aircraft-code {
    color: var(--career-gray);
}

/* ================================================
   BASE RELOCATION
   ================================================ */
.base-relocation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.base-relocation p {
    margin: 0;
    font-size: 0.9rem;
    color: #1e293b;
}

.base-select {
    padding: 0.5rem;
    border-radius: 0.4rem;
    border: 1px solid var(--career-border);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
}

.base-select:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.relocation-status {
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 0.4rem;
}

.relocation-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--career-warning);
}

.relocation-status.approved {
    background: rgba(34, 197, 94, 0.1);
    color: var(--career-success);
}

.relocation-status.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--career-danger);
}

/* Relocation Enhanced UI */
.relocation-fee-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--career-light);
    border-radius: 0.4rem;
    font-size: 0.85rem;
}

.relocation-fee-info span {
    color: var(--career-gray);
}

.relocation-fee-info strong {
    color: var(--career-success);
}

.relocation-fee-info strong.insufficient {
    color: var(--career-danger);
}

.relocation-cooldown-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 0.4rem;
    font-size: 0.8rem;
    color: var(--career-warning);
}

.relocation-cooldown-notice i {
    font-size: 0.9rem;
}

.relocation-warning-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.4rem;
    font-size: 0.8rem;
    color: var(--career-danger);
}

.relocation-warning-notice i {
    font-size: 0.9rem;
}

.relocation-pending-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(64, 146, 204, 0.1) 0%, rgba(64, 146, 204, 0.15) 100%);
    border: 1px solid var(--career-primary);
    border-radius: 0.5rem;
}

.relocation-pending-notice i {
    font-size: 1.25rem;
    color: var(--career-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

.relocation-pending-notice strong {
    color: #1e293b;
    display: block;
    font-size: 0.9rem;
}

.relocation-pending-notice p {
    font-size: 0.8rem;
    color: var(--career-gray);
    margin: 0.25rem 0 0;
}

.relocation-error {
    font-size: 0.8rem;
    color: var(--career-danger);
    margin: 0.5rem 0 0;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.relocation-available-bases {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.available-bases-label {
    font-size: 0.8rem;
    color: var(--career-success);
    font-weight: 500;
}

.available-bases-label i {
    margin-right: 0.25rem;
}

.relocation-no-openings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--career-light);
    border-radius: 0.5rem;
    text-align: center;
    gap: 0.25rem;
}

.relocation-no-openings i {
    font-size: 1.5rem;
    color: var(--career-gray);
    opacity: 0.5;
}

.relocation-no-openings span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--career-gray);
}

.relocation-no-openings p {
    font-size: 0.75rem;
    color: var(--career-gray);
    opacity: 0.7;
    margin: 0;
}

/* Dark mode relocation */
body.dark-mode .relocation-fee-info {
    background: #3a3a3c;
}

body.dark-mode .relocation-fee-info span {
    color: #a0a0a0;
}

body.dark-mode .base-relocation p {
    color: #e5e5e7;
}

body.dark-mode .relocation-fee-info strong {
    color: #4ade80;
}

body.dark-mode .relocation-fee-info strong.insufficient {
    color: #f87171;
}

body.dark-mode .relocation-no-openings {
    background: #3a3a3c;
}

body.dark-mode .relocation-pending-notice {
    background: linear-gradient(135deg, rgba(90, 176, 232, 0.1) 0%, rgba(90, 176, 232, 0.15) 100%);
    border-color: #5ab0e8;
}

body.dark-mode .relocation-pending-notice strong {
    color: #e5e5e7;
}

body.dark-mode .relocation-pending-notice i {
    color: #5ab0e8;
}

/* ================================================
   QUICK ACTIONS
   ================================================ */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-secondary {
    background: var(--career-light);
    color: #1e293b;
    border: 1px solid var(--career-border);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger-outline {
    background: transparent;
    color: var(--career-danger);
    border: 1px solid var(--career-danger);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
}

.starter-refresh-timer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--career-gray);
    margin-bottom: 0.75rem;
}

.starter-refresh-timer i {
    margin-right: 0.25rem;
}

/* ================================================
   STARTER REGION SELECTOR
   ================================================ */
.starter-region-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.region-btn {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 2px solid var(--career-border);
    background: var(--career-light);
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.region-btn:hover {
    border-color: #007AFF;
    color: #007AFF;
}

.region-btn.active {
    background: var(--career-primary);
    border-color: var(--career-primary);
    color: white;
}

body.dark-mode .region-btn {
    background: #3a3a3c;
    border-color: #48484a;
    color: #e5e5e7;
}

body.dark-mode .region-btn:hover {
    border-color: #007AFF;
    color: #007AFF;
}

body.dark-mode .region-btn.active {
    background: var(--career-primary);
    border-color: var(--career-primary);
    color: white;
}

/* ================================================
   STARTER AIRLINES GRID
   ================================================ */
.starter-airlines-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.starter-airlines-grid .starter-airline-card {
    flex: 0 1 280px;
    max-width: 320px;
}

.starter-airline-card {
    background: var(--career-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.starter-airline-card:hover {
    border-color: var(--career-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(64, 146, 204, 0.2);
}

.starter-airline-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.starter-airline-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.starter-airline-tier {
    display: block;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    background: rgba(64, 146, 204, 0.1);
    color: var(--career-primary);
    margin: 0 auto 0.5rem auto;
    width: fit-content;
}

.starter-airline-salary {
    font-size: 0.85rem;
    color: var(--career-success);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Route counts display (for starter airlines and job offers) */
.route-counts-display {
    background: rgba(64, 146, 204, 0.08);
    border: 1px solid rgba(64, 146, 204, 0.2);
    border-radius: 0.4rem;
    padding: 0.5rem 0.6rem;
    margin: 0.5rem 0;
    text-align: center;
}

.route-counts-total {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--career-primary);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.route-counts-total i {
    font-size: 0.7rem;
}

.route-counts-breakdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.6rem;
}

.route-count-item {
    font-size: 0.7rem;
    color: #666;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

.route-aircraft {
    font-weight: 600;
    color: #333;
}

.route-count-empty {
    font-size: 0.75rem;
    color: var(--career-gray);
    font-style: italic;
}

.route-count-num.more {
    color: #16a34a;
}

.route-count-num.less {
    color: #dc2626;
}

body.dark-mode .route-count-num.more {
    color: #4ade80;
}

body.dark-mode .route-count-num.less {
    color: #f87171;
}

/* Dark mode route counts */
body.dark-mode .route-counts-display {
    background: rgba(90, 176, 232, 0.1);
    border-color: rgba(90, 176, 232, 0.25);
}

body.dark-mode .route-counts-total {
    color: #5ab0e8;
}

body.dark-mode .route-counts-breakdown {
    color: #a0a0a0;
}

body.dark-mode .route-count-item {
    background: rgba(0, 0, 0, 0.2);
    color: #a0a0a0;
}

body.dark-mode .route-aircraft {
    color: #e5e5e7;
}

/* Current Base Routes Banner (shown once above cards) */
.current-base-routes-banner {
    background: rgba(64, 146, 204, 0.06);
    border: 1px solid rgba(64, 146, 204, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
}

.current-base-routes-label {
    font-size: 0.75rem;
    color: var(--career-gray);
}

.current-base-routes-label strong {
    color: #1e3a5f;
    font-family: monospace;
    font-size: 0.8rem;
}

.current-base-routes-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.current-base-routes-total {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--career-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.current-base-routes-total i {
    font-size: 0.65rem;
}

.current-base-routes-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
}

.current-base-routes-breakdown .route-count-item {
    font-size: 0.65rem;
}

/* Route diff badge (inline in each card) */
.route-diff-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 0.2rem;
    margin-left: 0.3rem;
}

.route-diff-badge.positive {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
}

.route-diff-badge.negative {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

/* Dark mode */
body.dark-mode .current-base-routes-banner {
    background: rgba(90, 176, 232, 0.08);
    border-color: rgba(90, 176, 232, 0.2);
}

body.dark-mode .current-base-routes-label strong {
    color: #93c5fd;
}

body.dark-mode .route-diff-badge.positive {
    background: rgba(34, 197, 94, 0.15);
}

body.dark-mode .route-diff-badge.negative {
    background: rgba(239, 68, 68, 0.15);
}

.starter-airline-aircraft {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.35rem;
}

.starter-airline-base {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.35rem;
}

.starter-select-btn {
    background: var(--career-primary);
    color: white;
    border: none;
    margin-top: 0.6rem;
    padding: 0.4rem 1.25rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s;
}

.starter-select-btn:hover {
    background: var(--career-primary-dark);
}

/* ================================================
   JOB CENTER SECTIONS
   ================================================ */
.job-center-section {
    margin-bottom: 2rem;
}

.job-center-section:last-child {
    margin-bottom: 0;
}

.section-toggle-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    justify-content: center;
}

.section-toggle-header:hover {
    opacity: 0.8;
}

.section-toggle-chevron {
    position: absolute;
    right: 0;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: var(--career-gray);
}

.section-toggle-header.collapsed .section-toggle-chevron {
    transform: rotate(-90deg);
}

#hiring-airlines-body {
    overflow: hidden;
    transition: opacity 0.2s ease;
}

#hiring-airlines-body.collapsed {
    display: none;
}

#pilot-shop-body {
    overflow: hidden;
    transition: opacity 0.2s ease;
}

#pilot-shop-body.collapsed {
    display: none;
}

.job-center-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--career-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--career-border);
}

.job-center-section h3 i {
    color: var(--career-primary);
}

/* ================================================
   JOB OFFERS LIST
   ================================================ */
.job-offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-offer-card {
    background: var(--career-light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--career-border);
    position: relative;
    transition: all 0.2s;
}

.job-offer-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.job-offer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-offer-logo {
    height: 50px;
    width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.job-offer-info {
    flex: 1;
}

.job-offer-airline {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.job-offer-position {
    font-size: 0.9rem;
    color: var(--career-primary);
    font-weight: 500;
}

.job-offer-expiry {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--career-warning);
}

/* Promotion Offer Styles */
.job-offer-card.promotion-offer {
    border: 2px solid #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.job-offer-card.promotion-offer:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.job-offer-expiry.promotion {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-offer-expiry.promotion .expires-in {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Base Transfer Opportunity Styles */
.job-offer-card.base-transfer-opportunity {
    border: 2px solid #0ea5e9;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0.02) 100%);
}

.job-offer-card.base-transfer-opportunity:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.job-offer-expiry.base-transfer {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-offer-expiry.base-transfer .expires-in {
    font-size: 0.75rem;
    opacity: 0.8;
}

.job-offer-detail strong.positive {
    color: var(--career-success);
}

.job-offer-detail strong.negative {
    color: var(--career-danger);
}

.job-offer-detail strong.free {
    color: var(--career-success);
}

.job-offer-detail .strike-penalty {
    font-size: 0.75rem;
    color: var(--career-danger);
    font-weight: normal;
}

/* Base transfer card specific styles */
.job-offer-card.base-transfer-opportunity .job-offer-details.base-transfer-details {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    justify-items: center;
}

.job-offer-card.base-transfer-opportunity .base-transfer-details .job-offer-detail {
    justify-content: flex-start;
    gap: 0.35rem;
}

.job-offer-card.base-transfer-opportunity .job-offer-actions.base-transfer-actions {
    justify-content: center;
    margin-top: 0.5rem;
}

.job-offer-card.base-transfer-opportunity .base-transfer-actions .job-offer-btn {
    flex: none;
    min-width: 100px;
    max-width: 140px;
}

/* Cross-Training Opportunity Styles */
.job-offer-card.cross-training-offer {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.job-offer-card.cross-training-offer:hover {
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.job-offer-expiry.cross-training {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-offer-expiry.cross-training .expires-in {
    font-size: 0.75rem;
    opacity: 0.8;
}

.job-offer-card.cross-training-offer .job-offer-actions.cross-training-actions {
    justify-content: center;
    margin-top: 0.5rem;
}

.job-offer-card.cross-training-offer .cross-training-actions .job-offer-btn {
    flex: none;
    white-space: nowrap;
}

.job-offer-card.cross-training-offer .job-offer-detail {
    gap: 2rem;
}

.job-offer-card.cross-training-offer .info-box.warning {
    text-align: center;
}

.job-offer-card.cross-training-offer .job-offer-routes {
    text-align: center;
}

.job-offer-card.cross-training-offer .job-offer-routes .route-counts-display {
    display: inline-block;
}

/* Contract Renewal Offer Styles */
.job-offer-card.contract-renewal-offer {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.job-offer-card.contract-renewal-offer:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.job-offer-expiry.contract-renewal {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-offer-expiry.contract-renewal .expires-in {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Relocation approval info */
.relocation-approval-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--career-border);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--career-gray);
}

.relocation-approval-info strong {
    color: #0ea5e9;
}

.relocation-approval-info i {
    margin-right: 0.25rem;
}

/* Sick Day Button */
.btn-sick-day {
    padding: 0.35rem 0.6rem;
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 0.35rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.btn-sick-day:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.actions-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Sick Flights Pool Styles */
.sick-flights-pool {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--career-border);
}

.sick-flights-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sick-flight-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: #dc2626;
    border-width: 2px;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.25);
    margin-top: 0.5rem;
    padding: 1.25rem 1.25rem 1rem;
}

.sick-flight-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sick-flight-badge i {
    font-size: 0.6rem;
}

.sick-flight-pay-badge {
    position: absolute;
    top: -10px;
    left: 7rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}


.sick-flight-expires {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 500;
}

.sick-flight-pilot {
    font-size: 0.8rem;
    color: #b91c1c;
    font-weight: 500;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
}

.sick-flight-pilot i {
    margin-right: 0.25rem;
}

body.dark-mode .sick-flight-pilot {
    color: #fca5a5;
}

.btn-claim-flight {
    display: block;
    margin: 0.5rem auto 0;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-claim-flight:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-claim-flight i {
    margin-right: 0.35rem;
}

/* Dark mode for sick flights */
body.dark-mode .sick-flight-route .airport-code {
    color: #f1f5f9;
}

body.dark-mode .sick-flight-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.04) 100%);
}

/* ================================================
   FERRY FLIGHT STYLES
   ================================================ */
.ferry-flight-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--career-border);
}

.ferry-flight-card {
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid #3b82f6;
    border-radius: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.ferry-flight-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ferry-flight-badge i {
    font-size: 0.6rem;
}

.ferry-flight-pay-badge {
    position: absolute;
    top: -10px;
    left: 7.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}

.ferry-flight-expires {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 500;
}

.ferry-flight-route {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.ferry-flight-route .airport-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    font-family: monospace;
}

.ferry-flight-route .airport-name {
    font-size: 0.75rem;
    color: #64748b;
    margin-right: 0.25rem;
}

.ferry-flight-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #2563eb;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.ferry-flight-details i {
    margin-right: 0.2rem;
}

.ferry-flight-status {
    font-size: 0.85rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ferry-flight-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.btn-accept-ferry {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.4rem 1.25rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s;
}

.btn-accept-ferry:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-decline-ferry {
    background: transparent;
    color: var(--career-gray);
    border: 1px solid var(--career-border);
    padding: 0.35rem 0.85rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-decline-ferry:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #2563eb;
}

/* Dark mode for ferry flights */
body.dark-mode .ferry-flight-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
}

body.dark-mode .ferry-flight-route .airport-code {
    color: #93c5fd;
}

body.dark-mode .ferry-flight-route .airport-name {
    color: #a0a0a0;
}

body.dark-mode .ferry-flight-details {
    color: #60a5fa;
}

body.dark-mode .ferry-flight-status {
    color: #e5e5e7;
}

body.dark-mode .ferry-flight-expires {
    color: #60a5fa;
}

body.dark-mode .btn-decline-ferry {
    border-color: #48484a;
    color: #a0a0a0;
}

body.dark-mode .btn-decline-ferry:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
    color: #60a5fa;
}

/* Ferry flight mobile responsive */
@media (max-width: 576px) {
    .ferry-flight-card {
        padding: 0.75rem 1rem;
    }

    .ferry-flight-route .airport-code {
        font-size: 1rem;
    }

    .ferry-flight-details {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .ferry-flight-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-accept-ferry,
    .btn-decline-ferry {
        width: 100%;
        justify-content: center;
    }
}

.job-offer-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.job-offer-detail {
    display: flex;
    justify-content: space-between;
    color: var(--career-gray);
}

.job-offer-detail strong {
    color: #1e293b;
}

.job-offer-routes {
    margin-top: 0.5rem;
}

.job-offer-routes .route-counts-display {
    margin: 0;
}

.job-offer-actions {
    display: flex;
    gap: 0.75rem;
}

.job-offer-btn {
    flex: 1;
    padding: 0.4rem 0.85rem;
    border-radius: 0.4rem;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.job-offer-btn.accept {
    background: var(--career-success);
    color: white;
}

.job-offer-btn.accept:hover {
    background: var(--career-success-dark);
}

.job-offer-btn.decline {
    background: #e5e7eb;
    color: #374151;
}

.job-offer-btn.decline:hover {
    background: #d1d5db;
}

.no-offers-message {
    text-align: center;
    color: var(--career-gray);
    padding: 0 2rem 0rem 2rem;
}

.no-offers-message i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Success icons always green */
.no-offers-message i.fa-check-circle {
    color: var(--career-success) !important;
    opacity: 1;
}

.no-offers-message p {
    margin: 0.5rem 0 0.25rem;
    font-weight: 500;
}

.no-offers-message small {
    font-size: 0.8rem;
}

/* ================================================
   JOB COMPARISON (in modals)
   ================================================ */
.job-comparison {
    background: var(--career-light);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.job-comparison h4 {
    color: #1e293b;
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--career-border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row .label {
    color: var(--career-gray);
}

.comparison-row .improvement {
    color: var(--career-success);
    font-weight: 600;
}

.comparison-row .decline {
    color: var(--career-danger);
    font-weight: 600;
}

.comparison-row .neutral {
    color: var(--career-gray);
}

.comparison-row.training-bond-note {
    color: #d97706;
    font-weight: 500;
}

.comparison-row.training-bond-note .label {
    color: #d97706;
}

body.dark-mode .comparison-row.training-bond-note {
    color: #fbbf24;
}

body.dark-mode .comparison-row.training-bond-note .label {
    color: #fbbf24;
}

/* ================================================
   APPLY TO AIRLINES SECTION
   ================================================ */
.apply-section {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 0.5rem;
}

.cooldown-timer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--career-warning);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--career-warning);
    font-size: 0.9rem;
}

.apply-airlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.apply-airline-card {
    max-width: 320px;
    width: 100%;
    background: var(--career-light);
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--career-border);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    box-sizing: border-box;
}

.apply-airline-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.apply-airline-header {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.apply-airline-logo {
    height: 50px;
    width: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.apply-airline-info {
    -webkit-flex: none;
    flex: none;
}

.apply-airline-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.apply-airline-tier {
    font-size: 0.75rem;
    color: var(--career-gray);
}

.apply-airline-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.75rem;
    padding: 0.4rem 0;
    border-top: 1px solid var(--career-border);
    border-bottom: 1px solid var(--career-border);
    margin: 0.25rem 0;
    width: 100%;
}

.apply-detail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--career-gray);
}

.apply-detail i {
    width: 14px;
    color: var(--career-primary);
    font-size: 0.75rem;
}

.apply-detail span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apply-airline-requirements {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.apply-airline-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.requirement-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.requirement-badge.met {
    background: rgba(34, 197, 94, 0.1);
    color: var(--career-success);
}

.requirement-badge.not-met {
    background: rgba(239, 68, 68, 0.1);
    color: var(--career-danger);
}

/* Sponsored Training - Provided badge (teal) */
.requirement-badge.provided {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.requirement-badge.provided i {
    margin-right: 0.25rem;
}

/* Training Provided badge on job card */
.training-provided-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    width: fit-content;
}

.training-provided-badge i {
    font-size: 0.65rem;
}

/* Training-provided card accent */
.apply-airline-card.training-provided {
    border-left: 3px solid #14b8a6;
}

/* Training bond warning note */
.training-bond-note {
    font-size: 0.7rem;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
}

.training-bond-note i {
    font-size: 0.65rem;
    color: #f59e0b;
}

/* Contract extension note */
.contract-extension-note {
    color: #14b8a6;
    font-style: italic;
    font-size: 0.7rem;
}

/* Dark mode variants */
body.dark-mode .training-provided-badge {
    background: rgba(45, 212, 191, 0.15);
    color: #2dd4bf;
}

body.dark-mode .requirement-badge.provided {
    background: rgba(45, 212, 191, 0.15);
    color: #2dd4bf;
}

body.dark-mode .apply-airline-card.training-provided {
    border-left-color: #2dd4bf;
}

/* Flow-through card (regional pilot → parent airline mainline) */
.apply-airline-card.flow-through {
    border-left: 3px solid #8b5cf6;
    position: relative;
}

.flow-through-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    text-align: center;
    margin-bottom: 0.3rem;
}

body.dark-mode .apply-airline-card.flow-through {
    border-left-color: #a78bfa;
}

body.dark-mode .flow-through-badge {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.2);
}

body.dark-mode .training-bond-note {
    color: #fbbf24;
}

body.dark-mode .training-bond-note i {
    color: #fbbf24;
}

body.dark-mode .contract-extension-note {
    color: #2dd4bf;
}

.apply-btn {
    background: var(--career-primary);
    color: white;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
}

.apply-btn:hover {
    background: var(--career-primary-dark);
}

.apply-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* ================================================
   TRAINING CATALOG GRID
   ================================================ */
.training-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
    gap: 1rem;
    justify-content: center;
}

.training-catalog-grid .training-item-card {
    max-width: 350px;
}

.training-item-card {
    background: var(--career-light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--career-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.training-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.training-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.training-item-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(64, 146, 204, 0.1);
    color: var(--career-primary);
    flex-shrink: 0;
}

.training-item-description {
    font-size: 0.85rem;
    color: var(--career-gray);
    line-height: 1.4;
}

.training-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.training-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--career-success);
}

.training-buy-btn {
    background: var(--career-success);
    color: white;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s;
}

.training-buy-btn:hover {
    background: var(--career-success-dark);
}

.training-buy-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.training-buy-btn.owned {
    background: #e2e8f0;
    color: var(--career-gray);
    cursor: default;
}

.no-training-message,
.training-catalog-grid .no-offers-message {
    grid-column: 1 / -1;
    text-align: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--career-gray);
    padding: 1rem 2rem;
    width: 100%;
}

/* Training Sections */
.training-section {
    margin-bottom: 2rem;
}

.training-section:last-child {
    margin-bottom: 0;
}

.training-section h3 {
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.training-section h3::after {
    display: none;
}

.training-section h3 i {
    color: var(--career-primary);
}

/* Airline branding for training section icons */
body.airline-branding .training-section h3 i {
    color: var(--airline-color, #4092cc);
}

body.dark-mode.airline-branding .training-section h3 i {
    color: var(--airline-color-light, #6ba5d4);
}

/* ================================================
   PILOT SHOP
   ================================================ */
.shop-section {
    margin-bottom: 2rem;
}

.shop-section:last-child {
    margin-bottom: 0;
}

.shop-section h3 {
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.shop-section h3::after {
    display: none;
}

.shop-section h3 i {
    color: var(--career-primary);
}

body.airline-branding .shop-section h3 i {
    color: var(--airline-color, #4092cc);
}

body.dark-mode.airline-branding .shop-section h3 i {
    color: var(--airline-color-light, #6ba5d4);
}

body.dark-mode .shop-section h3 {
    color: #e5e5e7;
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    justify-items: center;
}

.shop-items-grid .no-offers-message {
    grid-column: 1 / -1;
}

.shop-items-grid > :only-child {
    max-width: 350px;
    width: 100%;
    grid-column: 1 / -1;
}

.shop-item-card {
    background: var(--career-light);
    border: 1px solid var(--career-border);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-item-card.disabled {
    opacity: 0.5;
}

.shop-item-card--active-tier {
    border-color: var(--career-accent, #4092cc);
    box-shadow: 0 0 0 2px rgba(64, 146, 204, 0.2);
}

.shop-subsection-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin: 1.25rem 0 0.6rem;
}

.shop-subsection-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--career-text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-subsection-title i {
    margin-right: 0.35rem;
}

.shop-subsection-desc {
    font-size: 0.8rem;
    color: var(--career-text-secondary, #aaa);
}

body.dark-mode .shop-item-card {
    background: #2c2c2e;
    border-color: #48484a;
}

.shop-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(64, 146, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--career-primary);
}

.shop-item-info {
    flex: 1;
    min-width: 0;
}

.shop-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

body.dark-mode .shop-item-name {
    color: #e5e5e7;
}

.shop-item-desc {
    font-size: 0.75rem;
    color: var(--career-gray);
    line-height: 1.3;
    margin-top: 0.15rem;
}

.shop-item-badge {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
}

.shop-item-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.shop-item-badge.info {
    background: rgba(64, 146, 204, 0.1);
    color: var(--career-primary);
}

.shop-item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.shop-item-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--career-success);
}

.shop-buy-btn {
    background: var(--career-success);
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s;
}

.shop-buy-btn:hover:not(:disabled) {
    background: var(--career-success-dark);
}

.shop-buy-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.fatigue-shop-link {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(64, 146, 204, 0.08);
    border: 1px solid rgba(64, 146, 204, 0.2);
    border-radius: 0.5rem;
    color: var(--career-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.fatigue-shop-link:hover {
    background: rgba(64, 146, 204, 0.15);
    border-color: var(--career-primary);
}

body.dark-mode .fatigue-shop-link {
    background: rgba(64, 146, 204, 0.12);
    border-color: rgba(64, 146, 204, 0.3);
}

@media (max-width: 768px) {
    .shop-items-grid {
        grid-template-columns: 1fr;
    }

    .shop-item-card {
        padding: 0.75rem;
    }
}

/* Airline Sponsored Training Card */
.training-item-card.airline-sponsored {
    border: 2px solid var(--career-success);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.1) 100%);
}

/* Discount Pricing */
.training-item-price .price-original {
    text-decoration: line-through;
    color: var(--career-gray);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.training-item-price .price-discounted {
    color: var(--career-success);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Dark mode training sections */
body.dark-mode .training-section h3 {
    color: #e5e5e7;
}

body.dark-mode .training-item-card.airline-sponsored {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.15) 100%);
}

/* ================================================
   MODAL STYLES
   ================================================ */
.career-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.career-modal {
    background: white;
    border-radius: 0.75rem;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 1rem;
}

/* General modal content padding */
.career-modal > h3 {
    padding: 1.25rem 1.5rem 0.5rem;
    margin: 0;
    color: var(--career-primary);
    font-size: 1.1rem;
    text-align: center;
}

.career-modal > #modal-message {
    padding: 0.5rem 1.5rem 1rem;
    margin: 0;
    color: #475569;
    text-align: center;
    line-height: 1.5;
    white-space: pre-line;
}

.career-modal > #modal-extra-content {
    padding: 0 1.5rem;
}

.career-modal-wide {
    max-width: 600px;
}

.modal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--career-border);
}

.modal-header-bar h3,
.modal-header-bar .modal-title {
    color: var(--career-primary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--career-gray);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #1e293b;
    background: none;
    transform: none;
    box-shadow: none;
}

.offer-modal-content {
    padding: 1.5rem;
}

.offer-airline-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.offer-airline-header img {
    height: 70px;
    width: 110px;
    object-fit: contain;
}

.offer-airline-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.offer-airline-header p {
    margin: 0.25rem 0 0;
    color: var(--career-gray);
    font-size: 0.9rem;
}

.resignation-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.resignation-warning h4 {
    color: var(--career-danger);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resignation-warning ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--career-gray);
    font-size: 0.85rem;
}

.resignation-warning li {
    margin-bottom: 0.25rem;
}

.info-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #0c4a6e;
}

.info-notice i {
    color: var(--career-primary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.info-notice p {
    margin: 0;
    line-height: 1.4;
}

.aircraft-selection h4 {
    color: #1e293b;
    font-size: 0.9rem;
    margin: 1rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aircraft-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.aircraft-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--career-border);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.aircraft-option:hover {
    border-color: var(--career-primary);
}

.aircraft-option.selected {
    border-color: var(--career-primary);
    background: rgba(64, 146, 204, 0.1);
    color: var(--career-primary);
    font-weight: 600;
}

.career-modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--career-border);
    justify-content: center;
}

.career-modal-btn {
    padding: 0.45rem 1rem;
    border-radius: 0.4rem;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.career-modal-btn.cancel {
    background: #e5e7eb;
    color: #374151;
}

.career-modal-btn.cancel:hover {
    background: #d1d5db;
}

.career-modal-btn.confirm {
    background: var(--career-primary);
    color: white;
}

.career-modal-btn.confirm:hover {
    background: var(--career-primary-dark);
}

.career-modal-btn.confirm.success {
    background: var(--career-success);
}

.career-modal-btn.confirm.success:hover {
    background: var(--career-success-dark);
}

/* SimBrief OFP Modal */
.simbrief-modal {
    max-width: 360px;
}

.simbrief-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    border-bottom: none;
}

.simbrief-header .modal-title {
    color: white;
}

.simbrief-header .modal-close-btn {
    color: rgba(255,255,255,0.7);
}

.simbrief-header .modal-close-btn:hover {
    color: white;
}

.simbrief-modal-content {
    padding: 1rem 1.25rem;
}

.simbrief-route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.simbrief-route {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.simbrief-airport {
    font-size: 1.1rem;
    color: #1e293b;
}

.simbrief-route i {
    color: var(--career-gray);
    font-size: 0.8rem;
}

.simbrief-fltnum {
    font-size: 0.8rem;
    color: var(--career-gray);
}

.simbrief-dest-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--career-gray);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--career-border);
}

.simbrief-dest-info i {
    font-size: 0.7rem;
}

.simbrief-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.simbrief-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simbrief-option-row label {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
}

.simbrief-value {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 500;
}

.simbrief-select,
.simbrief-input {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--career-border);
    border-radius: 0.3rem;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    background: white;
    min-width: 140px;
}

.simbrief-input {
    width: 80px;
    min-width: 80px;
    text-align: right;
}

.simbrief-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--career-border);
    border-bottom: 1px solid var(--career-border);
    margin-bottom: 1rem;
}

.simbrief-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simbrief-toggle-row span {
    font-size: 0.85rem;
    color: #374151;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--career-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.simbrief-direct-link {
    text-align: center;
}

.simbrief-direct-link a {
    font-size: 0.8rem;
    color: var(--career-primary);
    text-decoration: none;
}

.simbrief-direct-link a:hover {
    text-decoration: underline;
}

.simbrief-generate {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%) !important;
}

.simbrief-generate:hover {
    background: linear-gradient(135deg, #2d4a6f 0%, #3d5a7f 100%) !important;
}

/* Dark mode SimBrief modal */
body.dark-mode .simbrief-airport {
    color: #e5e7eb;
}

body.dark-mode .simbrief-option-row label,
body.dark-mode .simbrief-toggle-row span {
    color: #d1d5db;
}

body.dark-mode .simbrief-select,
body.dark-mode .simbrief-input {
    background: #3a3a3c;
    border-color: #4a4a4c;
    color: #e5e7eb;
}

/* Payroll & Transactions Modal Content */
.payroll-modal-content,
.transactions-modal-content {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.payroll-record,
.transaction-record {
    padding: 1rem;
    background: var(--career-light);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--career-success);
}

.payroll-record:last-child,
.transaction-record:last-child {
    margin-bottom: 0;
}

.transaction-record.debit {
    border-left-color: var(--career-danger);
}

.record-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.record-date {
    font-size: 0.8rem;
    color: var(--career-gray);
}

.record-amount {
    font-weight: 600;
    font-size: 1rem;
}

.record-amount.credit {
    color: var(--career-success);
}

.record-amount.debit {
    color: var(--career-danger);
}

.record-amount.expense {
    color: var(--career-danger);
}

.record-timestamp {
    font-size: 0.75rem;
    color: var(--career-gray);
    margin-top: 0.35rem;
    opacity: 0.8;
}

.record-details {
    font-size: 0.85rem;
    color: var(--career-gray);
}

.record-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.flight-pay {
    color: var(--career-success);
    line-height: 1.5;
}

.landing-fpm {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.landing-fpm.excellent {
    background: rgba(168, 85, 247, 0.15);
    color: #9333ea;
}

.landing-fpm.good {
    background: rgba(20, 184, 166, 0.15);
    color: #0d9488;
}

.landing-fpm.normal {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.landing-fpm.hard {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.landing-gforce {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.landing-gforce.excellent {
    background: rgba(168, 85, 247, 0.15);
    color: #9333ea;
}

.landing-gforce.good {
    background: rgba(20, 184, 166, 0.15);
    color: #0d9488;
}

.landing-gforce.normal {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.landing-gforce.hard {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.no-records-message {
    text-align: center;
    color: var(--career-gray);
    padding: 2rem;
    font-style: italic;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .career-main-grid {
        grid-template-columns: 1fr;
    }

    .career-sidebar-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pilot-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contract-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .current-employment-card {
        padding: 1rem 1.25rem;
    }

    .employment-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .employment-left {
        align-items: center;
    }

    .employment-header .airline-logo-display {
        width: 100px;
        height: 100px;
    }

    .pilot-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .career-sidebar-column {
        grid-template-columns: 1fr;
    }

    .starter-airlines-grid {
        grid-template-columns: 1fr;
    }

    .starter-region-selector {
        gap: 0.35rem;
    }

    .region-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    .apply-airlines-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .apply-airline-card {
        max-width: 100%;
    }

    .training-catalog-grid {
        grid-template-columns: 1fr;
    }

    .job-offer-details {
        grid-template-columns: 1fr;
    }

    .job-offer-card.base-transfer-opportunity .job-offer-details.base-transfer-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pilot-stats-grid {
        grid-template-columns: 1fr;
    }

    .career-modal-actions {
        flex-direction: column;
    }

    .career-modal-btn {
        width: 100%;
        justify-content: center;
    }

    .apply-airline-details {
        grid-template-columns: 1fr 1fr;
        gap: 0.2rem 0.5rem;
    }

    .apply-airline-logo {
        height: 40px;
        width: 80px;
    }

    .apply-airline-name {
        font-size: 0.85rem;
    }

    .apply-detail {
        font-size: 0.72rem;
    }
}

/* ================================================
   STANDBY SECTION
   ================================================ */
.standby-inactive {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.standby-duration-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.standby-duration-row label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    text-align: center;
}

.standby-duration-row select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--career-border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

.standby-btn {
    background: var(--career-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s;
}

.standby-btn:hover {
    background: var(--career-primary-dark);
}

.standby-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.standby-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    padding: 1rem 3rem;
    border-radius: 0.75rem;
    border: 1px solid #86efac;
}

.standby-status-icon {
    font-size: 1.5rem;
    color: var(--career-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.standby-status-info {
    display: flex;
    flex-direction: column;
}

.standby-label {
    font-weight: 600;
    color: #166534;
    font-size: 0.9rem;
}

.standby-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #15803d;
    font-family: monospace;
}

.standby-message {
    font-size: 0.9rem;
    color: var(--career-gray);
    text-align: center;
}

.standby-flights {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.standby-flight-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 1px solid #fcd34d;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.standby-flight-card + .standby-flight-card {
    margin-top: 0.75rem;
}

.standby-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.standby-flight-badge {
    background: #f59e0b;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.standby-flight-route {
    font-size: 1.1rem;
    font-weight: 600;
    color: #92400e;
}

.standby-flight-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #a16207;
}

.standby-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.standby-accept-btn {
    background: var(--career-success);
    color: white;
    border: none;
    padding: 0.4rem 1.25rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s;
}

.standby-accept-btn:hover {
    background: #059669;
}

.standby-cancel-btn {
    background: transparent;
    color: var(--career-gray);
    border: 1px solid var(--career-border);
    padding: 0.35rem 0.85rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.standby-cancel-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ================================================
   THIS WEEK'S SCHEDULE (Career Calendar)
   ================================================ */
.career-week-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.career-week-header h2 {
    margin-bottom: 0;
}

.career-week-cal-link {
    position: absolute;
    right: 0;
    font-size: 0.75rem;
    color: var(--career-primary);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    transition: all 0.2s;
}

.career-week-cal-link:hover {
    background: #ebf5ff;
    color: var(--career-primary-dark);
}

.career-week-cal-link i {
    margin-right: 0.25rem;
}

/* ── Current Location Card (Concept 01 — Pill Clusters) ─────── */

/* Header row */
.cloc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.cloc-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cloc-icao-badge {
    background: var(--career-primary);
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.cloc-title-block { min-width: 0; }

.cloc-airport-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cloc-airport-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 3px;
}

.cloc-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* FR24 badge — amber pill */
.cloc-fr24-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.cloc-fr24-badge:hover { background: #fde68a; }
.cloc-fr24-badge i { margin-right: 4px; }

/* Category badge — pill, tinted (concept 01 style) */
.cloc-category-badge {
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.cloc-category-badge.vfr  { background: #d1fae5; color: #065f46; }
.cloc-category-badge.mvfr { background: #dbeafe; color: #1e40af; }
.cloc-category-badge.ifr  { background: #fee2e2; color: #991b1b; }
.cloc-category-badge.lifr { background: #f3e8ff; color: #6b21a8; }

/* Time — pill */
.cloc-times-block {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 999px;
    white-space: nowrap;
}
.cloc-local, .cloc-zulu { color: #475569; }
.cloc-sep { color: #94a3b8; font-weight: 400; }

/* Body: condition panel left, stats block right */
.cloc-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: stretch;
}

/* Left: condition card */
.cloc-conditions-left {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}

.cloc-weather-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.cloc-weather-text {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.cloc-weather-sub {
    font-size: 14px;
    color: #64748b;
    margin-top: 2px;
}

.cloc-wind-line {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

/* Right: stats block */
.cloc-stats-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 4-column pill grid */
.cloc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cloc-stat {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 14px 18px;
}

.cloc-stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cloc-stat-label i { color: #94a3b8; font-size: 9px; }

.cloc-stat-value {
    font-size: 20px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.1;
}

.cloc-stat-unit {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 2px;
}

.cloc-stat-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
}

/* METAR strip */
.cloc-metar-strip {
    background: #f8fafc;
    border-radius: 12px;
    padding: 11px 16px;
    font-family: 'Courier New', monospace;
    font-size: 10.5px;
    color: #94a3b8;
    word-break: break-all;
    line-height: 1.5;
    margin-top: 4px;
}
.cloc-metar-strip b {
    color: #0ea5e9;
    margin-right: 4px;
    font-family: inherit;
}

/* Dark mode */
body.dark-mode .cloc-airport-name,
body.dark-mode .cloc-weather-text,
body.dark-mode .cloc-stat-value {
    color: #e0e0e0;
}
body.dark-mode .cloc-airport-sub,
body.dark-mode .cloc-weather-sub,
body.dark-mode .cloc-wind-line,
body.dark-mode .cloc-stat-label,
body.dark-mode .cloc-stat-sub,
body.dark-mode .cloc-stat-label i {
    color: #555;
}
body.dark-mode .cloc-stat-unit { color: #555; }
body.dark-mode .cloc-stat { background: #1c1c1e; }
body.dark-mode .cloc-conditions-left { background: #1c1c1e; }
body.dark-mode .cloc-times-block {
    background: #2a2a2c;
    color: #aaa;
}
body.dark-mode .cloc-local,
body.dark-mode .cloc-zulu,
body.dark-mode .cloc-sep { color: #aaa; }
body.dark-mode .cloc-metar-strip {
    background: #1c1c1e;
    color: #555;
}
body.dark-mode .cloc-metar-strip b { color: #5ab0e8; }
/* Runway label */
.cloc-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding-top: 2px;
}

/* Runway section — inline pill bar */
.cloc-runways {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
body.dark-mode .cloc-runways { background: #1c1c1e; }
.rwy-wind-label {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--career-gray);
    margin-left: 0.5rem;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.rwy-wi-sock {
    width: 2.2rem;
    height: 2.2rem;
    vertical-align: middle;
    flex-shrink: 0;
}
.rwy-wi-compass {
    width: 2.2rem;
    height: 2.2rem;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}
.rwy-wi-bf {
    width: 2.2rem;
    height: 2.2rem;
    flex-shrink: 0;
}
.rwy-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.rwy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}
.rwy-row-best .rwy-ends {
    color: #16a34a;
}
body.dark-mode .rwy-row-best .rwy-ends {
    color: #4ade80;
}
.rwy-ends {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.rwy-end {
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
body.dark-mode .rwy-end {
    color: #e2e8f0;
}
.rwy-end-preferred {
    color: #16a34a;
}
body.dark-mode .rwy-end-preferred {
    color: #4ade80;
}
.rwy-sep {
    color: #94a3b8;
    font-weight: 400;
}
.rwy-wind-badge {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 1px 4px;
    border-radius: 4px;
    white-space: nowrap;
}
.rwy-hw-pos {
    background: #dcfce7;
    color: #15803d;
}
.rwy-hw-neg {
    background: #fee2e2;
    color: #dc2626;
}
.rwy-hw-zero {
    background: #f1f5f9;
    color: #64748b;
}
body.dark-mode .rwy-hw-pos { background: #052e16; color: #4ade80; }
body.dark-mode .rwy-hw-neg { background: #450a0a; color: #f87171; }
body.dark-mode .rwy-hw-zero { background: #1e293b; color: #94a3b8; }
.rwy-meta {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.7rem;
    color: var(--career-gray);
    white-space: nowrap;
}
.rwy-length { }
.rwy-surface {
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.65rem;
}
body.dark-mode .rwy-surface {
    background: #334155;
    color: #94a3b8;
}

/* Airline branding */
body.airline-branding .cloc-icao-badge {
    background: var(--airline-color, #4092cc);
}
body.dark-mode.airline-branding .cloc-metar-strip b {
    color: var(--airline-color-light, #6ba5d4);
}

.career-location-content {
    font-size: 0.875rem;
    line-height: 1.6;
}

.career-location-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.career-location-icao {
    font-weight: 700;
    color: var(--career-primary);
}

.career-location-name {
    color: #333;
}

.career-location-sep {
    color: #ccc;
}

.career-location-weather {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.career-location-condition {
    font-weight: 500;
}

.career-location-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    margin-left: 0.25rem;
}

.career-location-badge.vfr { background: #22c55e; }
.career-location-badge.mvfr { background: #3b82f6; }
.career-location-badge.ifr { background: #ef4444; }
.career-location-badge.lifr { background: #9333ea; }

.career-location-times {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--career-gray);
    white-space: nowrap;
    margin-left: auto;
}

.career-location-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.career-location-metar {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--career-gray);
    word-break: break-all;
}

.career-location-fr24 {
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    background: #F8C024;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.career-location-fr24:hover {
    background: #ffb84d;
    transform: translateY(-1px);
}

.career-location-fr24 i {
    margin-right: 0.2rem;
}

.career-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
}

.career-week-day {
    border: 1px solid var(--career-border);
    border-radius: 0.5rem;
    background: white;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.career-week-date {
    background: #f8f9fa;
    padding: 0.5rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid var(--career-border);
    font-weight: 500;
    font-size: 0.8rem;
}

.career-week-date.current {
    background: var(--career-primary);
    color: white;
}

.career-week-content {
    padding: 0.375rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
}

.career-week-flight {
    background: #ebf5ff;
    padding: 0.4rem;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
    overflow: hidden;
    min-width: 0;
}

.career-week-flight .week-flight-number {
    color: var(--career-primary);
    font-weight: 600;
    display: block;
}

.career-week-flight .week-flight-route {
    color: var(--career-gray);
    display: block;
    font-size: 0.7rem;
}

.career-week-flight .week-flight-detail {
    color: #555;
    display: block;
    font-size: 0.65rem;
}

.career-week-flight.completed {
    opacity: 0.7;
}

.career-week-flight.completed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px solid #ef4444;
    transform: rotate(-5deg);
}

.career-week-rest {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--career-gray);
    font-size: 0.8rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .career-week-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cloc-body {
        flex-wrap: wrap;
    }
    .cloc-conditions-left {
        flex: 1 1 100%;
    }
    .cloc-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .career-week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cloc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================
   OVERTIME ASSIGNMENTS SECTION
   ================================================ */
.overtime-none {
    text-align: center;
    color: var(--career-gray);
    padding: 0 2rem;
}

.overtime-none i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.overtime-none p {
    margin: 0.5rem 0 0.25rem;
    font-weight: 500;
}

.overtime-none small {
    font-size: 0.8rem;
}

.overtime-offer {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.overtime-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.overtime-badge i {
    font-size: 0.6rem;
}

.overtime-multiplier {
    position: absolute;
    top: -10px;
    left: 7rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}

.overtime-expires {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 500;
}

.overtime-flights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.overtime-flight-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.overtime-flight-card:last-child {
    border-bottom: none;
}

.overtime-flight-route {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.overtime-flight-route .airport-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
    font-family: monospace;
}

.overtime-flight-route .airport-name {
    font-size: 0.75rem;
    color: #64748b;
    margin-right: 0.25rem;
}

.overtime-flight-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #a16207;
    flex-wrap: wrap;
}

.overtime-flight-details i {
    margin-right: 0.2rem;
}

.overtime-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.overtime-accept-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.4rem 1.25rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s;
}

.overtime-accept-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.overtime-decline-btn {
    background: transparent;
    color: var(--career-gray);
    border: 1px solid var(--career-border);
    padding: 0.35rem 0.85rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.overtime-decline-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Overtime & Standby Mobile Responsive */
@media (max-width: 576px) {
    .overtime-offer {
        padding: 0.75rem 1rem;
    }

    .overtime-flight-route .airport-code {
        font-size: 1rem;
    }

    .overtime-flight-details {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .overtime-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .overtime-accept-btn,
    .overtime-decline-btn {
        width: 100%;
        justify-content: center;
    }

    .standby-flight-card {
        min-width: 0;
        padding: 0.75rem 1rem;
    }

    .standby-flight-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .standby-flight-route {
        font-size: 1rem;
    }

    .standby-flight-details {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .standby-status {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
}

/* ================================================
   DARK MODE
   ================================================ */
body.dark-mode {
    --career-light: #3a3a3c;
    --career-border: #48484a;
    --career-gray: #94a3b8;
}

body.dark-mode .career-loading {
    color: #a0a0a0;
}

body.dark-mode .loading-spinner {
    border-color: #48484a;
    border-top-color: #5ab0e8;
}

body.dark-mode .section-subtitle,
body.dark-mode .sidebar-subtitle {
    color: #a0a0a0;
}

body.dark-mode .current-employment-card {
    background: #2c2c2e;
    border-color: var(--career-success);
}

/* Dark mode - Career Info Cards */
body.dark-mode .career-info-card {
    background: #2c2c2e;
    border-color: #48484a;
}


body.dark-mode .career-card-header h3 {
    color: #e5e5e7;
}

body.dark-mode .detail-label {
    color: #94a3b8;
}

body.dark-mode .detail-value {
    color: #e5e5e7;
}

body.dark-mode .employer-card .airline-logo-display {
    background: #f0f0f2;
    border-radius: 8px;
}

body.dark-mode .stat-item {
    background: #1c1c1e;
}

body.dark-mode .stat-item .stat-label {
    color: #94a3b8;
}

body.dark-mode .contract-detail.highlight {
    background: linear-gradient(135deg, #1e3a5f 0%, #1c1c1e 100%);
}

body.dark-mode .stat-item.highlight {
    background: linear-gradient(135deg, #14532d 0%, #1c1c1e 100%);
}

body.dark-mode .employment-position span,
body.dark-mode .sidebar-card h3,
body.dark-mode .job-center-section h3,
body.dark-mode .timeline-title,
body.dark-mode .advisor-tip h4,
body.dark-mode .job-offer-airline,
body.dark-mode .starter-airline-name,
body.dark-mode .apply-airline-name,
body.dark-mode .training-item-name,
body.dark-mode .hired-aircraft-code,
body.dark-mode .employment-base-aircraft span {
    color: #e5e5e7;
}

body.dark-mode .job-center-section h3 {
    border-color: #48484a;
}

body.dark-mode .employment-details,
body.dark-mode .stat-label,
body.dark-mode .contract-detail,
body.dark-mode .timeline-date,
body.dark-mode .timeline-details,
body.dark-mode .job-offer-detail,
body.dark-mode .starter-airline-aircraft,
body.dark-mode .starter-airline-base,
body.dark-mode .apply-airline-tier,
body.dark-mode .training-item-description,
body.dark-mode .no-offers-message,
body.dark-mode .no-ratings-message {
    color: #a0a0a0;
}

body.dark-mode .stat-card,
body.dark-mode .sidebar-card,
body.dark-mode .content-card,
body.dark-mode .job-offer-card,
body.dark-mode .starter-airline-card,
body.dark-mode .apply-airline-card,
body.dark-mode .training-item-card,
body.dark-mode .hired-aircraft-item {
    background: #3a3a3c;
    border-color: #48484a;
}

body.dark-mode .stat-value {
    color: #5ab0e8;
}

body.dark-mode .apply-airline-details {
    border-color: #48484a;
}

body.dark-mode .apply-detail {
    color: #a0a0a0;
}

body.dark-mode .apply-detail i {
    color: #5ab0e8;
}

body.dark-mode .contract-info {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c4a6e 100%);
}

body.dark-mode .contract-info h4,
body.dark-mode .contract-detail {
    color: #bae6fd;
}

body.dark-mode .advisor-tip.recommended {
    background: rgba(64, 146, 204, 0.15);
}

body.dark-mode .advisor-tip.recommended p {
    color: #bae6fd;
}

body.dark-mode .advisor-tip.market {
    background: rgba(245, 158, 11, 0.15);
}

body.dark-mode .advisor-tip.market p {
    color: #fcd34d;
}

body.dark-mode .career-modal {
    background: #2c2c2e;
}

body.dark-mode .career-modal > h3 {
    color: #5ab0e8;
}

body.dark-mode .career-modal > p {
    color: #a0a0a0;
}

body.dark-mode .modal-header-bar {
    border-color: #48484a;
}

body.dark-mode .modal-header-bar h3,
body.dark-mode .modal-header-bar .modal-title {
    color: #5ab0e8;
}

body.dark-mode .career-modal-actions {
    border-color: #48484a;
}

body.dark-mode .career-modal-btn.cancel {
    background: #48484a;
    color: #e5e5e7;
}

body.dark-mode .career-modal-btn.cancel:hover {
    background: #5a5a5c;
}

body.dark-mode .job-comparison {
    background: #3a3a3c;
}

body.dark-mode .job-comparison h4 {
    color: #e5e5e7;
}

body.dark-mode .resignation-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

body.dark-mode .info-notice {
    background: rgba(64, 146, 204, 0.15);
    border-color: rgba(64, 146, 204, 0.3);
    color: #bae6fd;
}

/* Dark mode - Additional text fixes for readability */
body.dark-mode .detail-value-group {
    color: #e5e5e7;
}

body.dark-mode .btn-secondary {
    background: #3a3a3c;
    color: #e5e5e7;
    border-color: #48484a;
}

body.dark-mode .btn-secondary:hover {
    background: #4a4a4c;
}

body.dark-mode .job-offer-btn.decline {
    background: #3a3a3c;
    color: #e5e5e7;
}

body.dark-mode .job-offer-btn.decline:hover {
    background: #4a4a4c;
}

body.dark-mode .modal-close-btn:hover {
    color: #e5e5e7;
}

body.dark-mode .offer-airline-header h4 {
    color: #e5e5e7;
}

body.dark-mode .aircraft-option {
    background: #3a3a3c;
    border-color: #48484a;
    color: #e5e5e7;
}

body.dark-mode .aircraft-option:hover,
body.dark-mode .aircraft-option.selected {
    border-color: #5ab0e8;
}

body.dark-mode .aircraft-option.selected {
    background: rgba(90, 176, 232, 0.15);
    color: #5ab0e8;
}

body.dark-mode .base-select {
    background: #3a3a3c;
    border-color: #48484a;
    color: #e5e5e7;
}

body.dark-mode .base-select:disabled {
    background: #2c2c2e;
}

body.dark-mode .payroll-record,
body.dark-mode .transaction-record {
    background: #3a3a3c;
}

/* Dark mode - Standby Section */
body.dark-mode .standby-duration-row label {
    color: #a0a0a0;
}

body.dark-mode .standby-duration-row select {
    background: #3a3a3c;
    border-color: #48484a;
    color: #e5e5e7;
}

body.dark-mode .standby-status {
    background: linear-gradient(135deg, #14532d 0%, #1c1c1e 100%);
    border-color: #22c55e;
}

body.dark-mode .standby-label {
    color: #86efac;
}

body.dark-mode .standby-timer {
    color: #4ade80;
}

body.dark-mode .standby-message {
    color: #a0a0a0;
}

body.dark-mode .standby-flight-card {
    background: linear-gradient(135deg, #78350f 0%, #1c1c1e 100%);
    border-color: #f59e0b;
}

body.dark-mode .standby-flight-badge {
    background: #d97706;
}

body.dark-mode .standby-flight-route {
    color: #fcd34d;
}

body.dark-mode .standby-flight-details {
    color: #fbbf24;
}

body.dark-mode .standby-cancel-btn {
    border-color: #48484a;
    color: #a0a0a0;
}

body.dark-mode .standby-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #f87171;
    color: #f87171;
}

/* Dark mode - This Week's Schedule */
body.dark-mode .career-location-name {
    color: #e0e0e0;
}

body.dark-mode .career-location-sep {
    color: #555;
}

body.dark-mode .career-location-metar {
    color: #888;
}

body.dark-mode .career-location-fr24 {
    color: white;
    background: #F8C024;
}

body.dark-mode .career-location-fr24:hover {
    background: #ffb84d;
}

body.dark-mode .career-week-cal-link {
    color: #6bb5e8;
}

body.dark-mode .career-week-cal-link:hover {
    background: rgba(64, 146, 204, 0.15);
    color: #8cc8f0;
}

body.dark-mode .career-week-day {
    background: #1c1c1e;
    border-color: #48484a;
}

body.dark-mode .career-week-date {
    background: #2c2c2e;
    border-color: #48484a;
    color: #e0e0e0;
}

body.dark-mode .career-week-date.current {
    background: var(--career-primary);
    color: white;
}

body.dark-mode .career-week-flight {
    background: rgba(64, 146, 204, 0.15);
}

body.dark-mode .career-week-flight .week-flight-number {
    color: #6bb5e8;
}

body.dark-mode .career-week-flight .week-flight-route {
    color: #a0a0a0;
}

body.dark-mode .career-week-flight .week-flight-detail {
    color: #a0a0a0;
}

body.dark-mode .career-week-rest {
    color: #a0a0a0;
}

/* Dark mode - Premium Open Time Section */
body.dark-mode .overtime-none {
    color: #a0a0a0;
}

body.dark-mode .overtime-offer {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
}

body.dark-mode .overtime-expires {
    color: #fbbf24;
}

body.dark-mode .overtime-flight-card {
    border-color: rgba(245, 158, 11, 0.2);
}

body.dark-mode .overtime-flight-route .airport-code {
    color: #fcd34d;
}

body.dark-mode .overtime-flight-route .airport-name {
    color: #a0a0a0;
}

body.dark-mode .overtime-flight-details {
    color: #fbbf24;
}

body.dark-mode .overtime-decline-btn {
    border-color: #48484a;
    color: #a0a0a0;
}

body.dark-mode .overtime-decline-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #f87171;
    color: #f87171;
}

/* ================================================
   CAREER SCHEDULE GENERATOR
   ================================================ */
.career-schedule-form {
    padding: 1rem 0;
}

.schedule-info-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem 1rem;
    background: var(--career-light);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.schedule-info-bar span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--career-gray);
}

.schedule-info-bar strong {
    color: var(--career-primary);
}

.schedule-form-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-width: 80px;
}

.schedule-form-group-aircraft {
    flex: 1 1 200px;
    min-width: 160px;
    max-width: 280px;
}

/* Multi-select Aircraft Dropdown */
.schedule-aircraft-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: white;
    border: 1px solid var(--career-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.multiselect-display:hover {
    border-color: var(--career-primary);
}

.multiselect-display.open {
    border-color: var(--career-primary);
    box-shadow: 0 0 0 3px rgba(64, 146, 204, 0.1);
    border-radius: 6px 6px 0 0;
}

.multiselect-placeholder {
    color: #666;
    font-size: 0.9rem;
}

.multiselect-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    flex: 1;
    overflow: hidden;
}

.multiselect-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.4rem;
    background: var(--career-primary);
    color: white;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.multiselect-tag-remove {
    cursor: pointer;
    opacity: 0.8;
    font-size: 0.65rem;
}

.multiselect-tag-remove:hover {
    opacity: 1;
}

.multiselect-more {
    font-size: 0.75rem;
    color: var(--career-gray);
    white-space: nowrap;
}

.multiselect-arrow {
    color: #888;
    font-size: 0.75rem;
    transition: transform 0.2s;
    margin-left: 0.5rem;
}

.multiselect-display.open .multiselect-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--career-primary);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.multiselect-dropdown.show {
    display: block;
}

.multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.9rem;
}

.multiselect-option:hover {
    background: var(--career-light);
}

.multiselect-option.selected {
    background: rgba(64, 146, 204, 0.08);
}

.multiselect-option .option-check {
    width: 16px;
    color: var(--career-primary);
    opacity: 0;
    transition: opacity 0.15s;
}

.multiselect-option.selected .option-check {
    opacity: 1;
}

.multiselect-divider {
    height: 1px;
    background: var(--career-border);
    margin: 0.3rem 0;
}

.schedule-form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    text-align: center;
}

.schedule-form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--career-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.schedule-form-group select:focus {
    outline: none;
    border-color: var(--career-primary);
    box-shadow: 0 0 0 3px rgba(64, 146, 204, 0.1);
}

.flight-time-group {
    min-width: 70px;
    max-width: 100px;
}

.time-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.time-input-wrapper input[type="number"] {
    width: 70px;
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--career-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    text-align: center;
}

.time-input-wrapper input[type="number"]:focus {
    outline: none;
    border-color: var(--career-primary);
    box-shadow: 0 0 0 3px rgba(64, 146, 204, 0.1);
}

.time-input-wrapper input[type="number"]::-webkit-outer-spin-button,
.time-input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.time-unit {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

body.dark-mode .time-input-wrapper input[type="number"] {
    background: #3a3a3c;
    border-color: #48484a;
    color: #e5e5e7;
}

body.dark-mode .time-unit {
    color: #a1a1aa;
}

/* Dark mode for multiselect */
body.dark-mode .multiselect-display {
    background: #3a3a3c;
    border-color: #48484a;
    color: #e5e5e7;
}

body.dark-mode .multiselect-display:hover,
body.dark-mode .multiselect-display.open {
    border-color: var(--career-primary);
}

body.dark-mode .multiselect-placeholder {
    color: #a1a1aa;
}

body.dark-mode .multiselect-dropdown {
    background: #3a3a3c;
    border-color: var(--career-primary);
}

body.dark-mode .multiselect-option:hover {
    background: #48484a;
}

body.dark-mode .multiselect-option.selected {
    background: rgba(64, 146, 204, 0.15);
}

body.dark-mode .multiselect-divider {
    background: #48484a;
}

/* Schedule form responsive */
@media (max-width: 576px) {
    .schedule-form-row {
        gap: 0.75rem 1rem;
    }

    .schedule-form-group {
        flex: 1 1 45%;
        min-width: 70px;
    }

    .schedule-form-group-aircraft {
        flex: 1 1 100%;
        max-width: none;
    }

    .multiselect-tag {
        font-size: 0.7rem;
        padding: 0.1rem 0.35rem;
    }
}

.generate-schedule-btn {
    width: auto;
    padding: 0.5rem 1.5rem;
    margin: 0 auto;
    background: var(--career-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.generate-schedule-btn:hover:not(:disabled) {
    background: var(--career-primary-dark);
    transform: translateY(-1px);
}

.generate-schedule-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.career-schedule-form.schedule-locked .schedule-form-row {
    opacity: 0.5;
    pointer-events: none;
}

.generated-schedule {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--career-border);
}

.generated-schedule h4 {
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-legs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.schedule-leg {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--career-light);
    border-radius: 8px;
    border-left: 3px solid var(--career-primary);
}

.leg-number {
    width: 28px;
    height: 28px;
    background: var(--career-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 1rem;
}

.leg-route {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.leg-route .airport {
    font-family: monospace;
    font-size: 1rem;
    color: #333;
}

.leg-route .arrow {
    color: var(--career-gray);
}

.leg-info {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--career-gray);
}

.leg-info span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.schedule-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.schedule-actions .btn-primary {
    padding: 0.65rem 1.25rem;
    background: var(--career-success);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-actions .btn-primary:hover {
    background: var(--career-success-dark);
}

.schedule-actions .btn-secondary {
    padding: 0.65rem 1.25rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .schedule-info-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .schedule-form-row {
        flex-direction: column;
        align-items: center;
    }

    .schedule-actions {
        flex-direction: column;
    }

    .schedule-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Schedule leg cards - stack on mobile */
    .schedule-leg {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .leg-number {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }

    .leg-route {
        width: 100%;
        justify-content: flex-start;
    }

    .leg-info {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .schedule-leg {
        padding: 0.6rem;
    }

    .leg-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .leg-route {
        gap: 0.5rem;
    }

    .leg-route .airport {
        font-size: 0.9rem;
    }

    .leg-info {
        gap: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .generated-schedule h4 {
        font-size: 1rem;
    }
}

/* Dark mode */
body.dark-mode .schedule-info-bar {
    background: #3a3a3c;
}

body.dark-mode .schedule-info-bar span {
    color: #a1a1aa;
}

body.dark-mode .schedule-form-group label {
    color: #e5e5e7;
}

body.dark-mode .schedule-form-group select {
    background: #3a3a3c;
    border-color: #48484a;
    color: #e5e5e7;
}

body.dark-mode .schedule-leg {
    background: #3a3a3c;
}

body.dark-mode .leg-route .airport {
    color: #e5e5e7;
}

body.dark-mode .generated-schedule h4 {
    color: #e5e5e7;
}

/* Starter airline details */
.starter-airline-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--career-gray);
    margin: 0.5rem 0;
}

.starter-airline-details span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.starter-airline-details i {
    color: var(--career-primary);
    font-size: 0.8rem;
}

body.dark-mode .starter-airline-details {
    color: #a1a1aa;
}

/* ================================================
   SCHEDULED FLIGHTS
   ================================================ */
.scheduled-flights-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.no-flights-message {
    text-align: center;
    color: var(--career-gray);
    padding: 2rem;
}

.no-flights-message i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.no-flights-message p {
    margin: 0.5rem 0 0.25rem;
    font-weight: 500;
}

.no-flights-message small {
    font-size: 0.8rem;
}

.scheduled-flight-card {
    background: var(--career-light);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--career-border);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    transition: all 0.2s;
}

.scheduled-flight-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scheduled-flight-card.next-flight {
    border-color: var(--career-primary);
    border-width: 2px;
    background: linear-gradient(135deg, rgba(64, 146, 204, 0.05) 0%, rgba(64, 146, 204, 0.1) 100%);
}

.scheduled-flight-card:not(.next-flight) {
    padding: 0.65rem 1rem;
}

.scheduled-flight-card:not(.next-flight) .flight-route {
    margin-bottom: 0;
    padding-top: 0;
}

.scheduled-flight-card:not(.next-flight) .flight-inline-details {
    margin-top: 0.1rem;
}

.flight-inline {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    line-height: 1.2;
}

.flight-inline .airport-code {
    font-weight: 600;
    color: var(--career-text);
}

.flight-inline .route-arrow {
    color: var(--career-muted);
}

.flight-inline-details {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    color: var(--career-gray);
    width: 100%;
    margin-top: 0.35rem;
}

.flight-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.flight-inline-details span {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.flight-inline-details i {
    font-size: 0.75rem;
    color: var(--career-primary);
}

.flight-details-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    margin-top: 0.75rem;
}

.flight-details-row .flight-card-actions {
    flex-shrink: 0;
}

.next-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: var(--career-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}

/* Premium Open Time Flight Styling */
.scheduled-flight-card.overtime-flight {
    border-color: #dc2626;
    border-width: 2px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(220, 38, 38, 0.1) 100%);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.25);
}

.scheduled-flight-card .overtime-badge {
    position: absolute;
    top: -10px;
    left: 5.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* When overtime but not next, badge goes to left */
.scheduled-flight-card.overtime-flight:not(.next-flight) .overtime-badge {
    left: 1rem;
}

.scheduled-flight-card .overtime-badge i {
    font-size: 0.55rem;
}

.scheduled-flight-card .overtime-pay-badge {
    position: absolute;
    top: -10px;
    left: 12rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}

/* When overtime but not next, pay badge moves left too */
.scheduled-flight-card.overtime-flight:not(.next-flight) .overtime-pay-badge {
    left: 7rem;
}

/* Ferry Flight Styling in Schedule */
.scheduled-flight-card.ferry-flight {
    border-color: #3b82f6;
    border-width: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.scheduled-flight-card .ferry-badge {
    position: absolute;
    top: -10px;
    left: 5.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.scheduled-flight-card.ferry-flight:not(.next-flight) .ferry-badge {
    left: 1rem;
}

.scheduled-flight-card .ferry-badge i {
    font-size: 0.55rem;
}

.scheduled-flight-card .ferry-pay-badge {
    position: absolute;
    top: -10px;
    left: 10rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}

.scheduled-flight-card.ferry-flight:not(.next-flight) .ferry-pay-badge {
    left: 5.5rem;
}

body.dark-mode .scheduled-flight-card.ferry-flight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.flight-card-main {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    padding-top: 0.3rem;
    width: 100%;
}

.flight-route .airport-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    font-family: monospace;
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.flight-route .route-arrow {
    color: var(--career-gray);
    font-size: 1rem;
    align-self: flex-start;
    margin-top: 0.2rem;
}

.flight-route .airport-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}


.flight-route .airport-name {
    font-size: 0.7rem;
    color: var(--career-gray);
    font-weight: 400;
    line-height: 1.2;
    padding-top: 0.15rem;
}

.flight-route .route-inline {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    width: 100%;
}

.flight-route .route-inline .route-arrow {
    margin: 0 0.5rem;
    align-self: center;
}


.flight-details {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--career-gray);
}

.flight-details span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.flight-details i {
    font-size: 0.75rem;
    color: var(--career-primary);
}

.flight-card-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flight-card-actions-centered {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
}

.flight-card-actions-centered .actions-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flight-inline .airport-name {
    font-size: 0.8rem;
    color: var(--career-muted);
    margin-left: 0.25rem;
}

.btn-simbrief {
    background: #1a5276;
    color: white;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-simbrief:hover {
    background: #2471a3;
    transform: translateY(-1px);
}

.btn-fr24 {
    background: #F8C024;
    color: white;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-fr24:hover {
    background: #ffb84d;
    transform: translateY(-1px);
}

.btn-flightaware {
    background: #00a0e2;
    color: white;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-flightaware:hover {
    background: #33b3e8;
    transform: translateY(-1px);
}

.btn-complete-flight {
    background: var(--career-success);
    color: white;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.btn-complete-flight:hover {
    background: var(--career-success-dark);
    transform: translateY(-1px);
}

/* Dark mode */
body.dark-mode .scheduled-flight-card {
    background: #2c2c2e;
    border: 1px solid #48484a;
}

body.dark-mode .scheduled-flight-card.next-flight {
    background: linear-gradient(135deg, rgba(90, 176, 232, 0.1) 0%, rgba(90, 176, 232, 0.15) 100%);
    border-color: #5ab0e8;
}

body.dark-mode .scheduled-flight-card.overtime-flight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

body.dark-mode .flight-route .airport-code {
    color: #e5e5e7;
}

body.dark-mode .flight-route .airport-name {
    color: #a0a0a0;
}

body.dark-mode .no-flights-message {
    color: #a0a0a0;
}

/* ================================================
   LIVE FLIGHT INFO STYLES
   ================================================ */

.live-flight-info {
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.live-flight-info.live-flight-loading {
    background: rgba(107, 114, 128, 0.08);
    border-color: rgba(107, 114, 128, 0.2);
}

.live-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 10px;
}

.live-info-header i {
    font-size: 0.9rem;
}

.flight-status {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.flight-status.status-scheduled {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.flight-status.status-en-route,
.flight-status.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.flight-status.status-landed {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.flight-status.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.live-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.live-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-info-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-info-value {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--career-gray);
}

.live-info-grid-centered {
    justify-content: center;
    margin-bottom: 12px;
}

.live-info-item.live-info-delayed .live-info-value {
    color: #f59e0b;
}

.live-info-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

.live-info-loading i {
    color: #3b82f6;
}

.live-flight-info.live-flight-unavailable {
    background: rgba(107, 114, 128, 0.08);
    border-color: rgba(107, 114, 128, 0.2);
}

.live-info-unavailable {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

.live-info-unavailable i {
    color: #9ca3af;
}

/* Dark mode live flight info */
body.dark-mode .live-flight-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

body.dark-mode .live-flight-info.live-flight-loading {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
}

body.dark-mode .live-info-header {
    color: #34d399;
}

body.dark-mode .live-info-label {
    color: #9ca3af;
}

body.dark-mode .live-info-value {
    color: #e5e5e7;
}

body.dark-mode .live-info-loading {
    color: #9ca3af;
}

body.dark-mode .live-flight-info.live-flight-unavailable {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
}

body.dark-mode .live-info-unavailable {
    color: #9ca3af;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .scheduled-flight-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        overflow: visible;
    }

    /* Reposition badges so they don't overflow on small screens */
    .scheduled-flight-card .overtime-badge,
    .scheduled-flight-card.overtime-flight:not(.next-flight) .overtime-badge {
        left: 1rem;
    }

    .scheduled-flight-card .overtime-pay-badge,
    .scheduled-flight-card.overtime-flight:not(.next-flight) .overtime-pay-badge {
        left: auto;
        right: 1rem;
    }

    .scheduled-flight-card .ferry-badge,
    .scheduled-flight-card.ferry-flight:not(.next-flight) .ferry-badge {
        left: 1rem;
    }

    .scheduled-flight-card .ferry-pay-badge,
    .scheduled-flight-card.ferry-flight:not(.next-flight) .ferry-pay-badge {
        left: auto;
        right: 1rem;
    }

    .flight-details-row {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .flight-card-main {
        width: 100%;
    }

    .flight-inline {
        font-size: 0.8rem;
    }

    .flight-inline .airport-name {
        display: none;
    }

    .flight-inline-details {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.5rem;
        gap: 0.75rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .flight-card-actions {
        width: 100%;
        flex-direction: column;
        margin-top: 0.75rem;
    }

    .flight-card-actions-centered {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .flight-card-actions-centered .actions-left {
        flex-wrap: wrap;
        width: 100%;
    }

    .flight-card-actions-centered .actions-right {
        width: 100%;
        justify-content: center;
    }

    .btn-complete-flight,
    .btn-simbrief,
    .btn-fr24,
    .btn-flightaware,
    .btn-sick-day {
        width: 100%;
        justify-content: center;
    }

    .live-flight-info {
        padding: 10px 12px;
    }

    .live-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .live-info-item {
        font-size: 0.8rem;
    }

    .live-info-header {
        font-size: 0.8rem;
    }
}

/* ================================================
   BID STATUS STYLES
   ================================================ */

.bid-status-container {
    margin-bottom: 1.5rem;
}

.bid-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.bid-status.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
}

.bid-status.pending i {
    color: #f59e0b;
    font-size: 1.2rem;
}

.bid-status.approved {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.bid-status.approved i {
    color: #22c55e;
    font-size: 1.2rem;
}

.bid-status.denied {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

.bid-status.denied i {
    color: #ef4444;
    font-size: 1.2rem;
}

.bid-status .bid-timer {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.bid-status button {
    margin-left: auto;
    background: white;
    border: 1px solid currentColor;
    color: inherit;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.bid-status button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode bid status */
body.dark-mode .bid-status.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: #fbbf24;
}

body.dark-mode .bid-status.approved {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.2) 100%);
    color: #4ade80;
}

body.dark-mode .bid-status.denied {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.2) 100%);
    color: #f87171;
}

body.dark-mode .bid-status button {
    background: #2c2c2e;
    border-color: currentColor;
}

/* ================================================
   BIDDING SECTION STYLES
   ================================================ */

.bidding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.bidding-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0%, rgba(100, 116, 139, 0.12) 100%);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    grid-column: 1 / -1;
}

.bidding-notice i {
    color: #64748b;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.bidding-notice-content {
    flex: 1;
}

.bidding-notice-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
}

.bidding-notice-content p {
    margin: 0.25rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.bidding-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.bidding-card:hover {
    border-color: var(--career-primary);
    box-shadow: 0 4px 12px rgba(64, 146, 204, 0.15);
}

.bidding-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bidding-family-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.bidding-approval-chance {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bidding-card-body {
    margin-bottom: 1rem;
}

.bidding-card-body p {
    margin: 0.25rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.bidding-seniority {
    font-style: italic;
}

.bidding-submit-btn {
    width: 100%;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--career-primary) 0%, var(--career-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.bidding-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 146, 204, 0.3);
}

/* Dark mode bidding */
body.dark-mode .bidding-notice {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.15) 0%, rgba(100, 116, 139, 0.2) 100%);
    border-color: rgba(100, 116, 139, 0.3);
}

body.dark-mode .bidding-notice-content strong {
    color: #cbd5e1;
}

body.dark-mode .bidding-notice-content p {
    color: #94a3b8;
}

body.dark-mode .bidding-card {
    background: #2c2c2e;
    border-color: #48484a;
}

body.dark-mode .bidding-family-name {
    color: #e5e5e7;
}

/* ================================================
   SETTINGS TOGGLE
   ================================================ */
.settings-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.setting-label span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.setting-label small {
    font-size: 0.75rem;
    color: #64748b;
}

body.dark-mode .setting-label span {
    color: #e5e5e7;
}

body.dark-mode .setting-label small {
    color: #94a3b8;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--airline-color, #4092cc);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

body.dark-mode .toggle-slider {
    background-color: #48484a;
}

/* ================================================
   AIRLINE BRANDING (when enabled)
   ================================================ */

/* Employer card border uses airline color */
body.airline-branding .employer-card {
    border-left: 4px solid var(--airline-color, #22c55e);
}

/* Employment status badge uses airline color */
body.airline-branding .employment-status-badge {
    background: var(--airline-color, #22c55e);
}

/* Contract card border uses airline color */
body.airline-branding .contract-card {
    border-left: 4px solid var(--airline-color, #4092cc);
}

/* Stats card border uses airline color light */
body.airline-branding .stats-card {
    border-left: 4px solid var(--airline-color-light, #f59e0b);
}

/* Career card header icons use airline color */
body.airline-branding .career-card-header h3 i {
    color: var(--airline-color, #4092cc);
}

/* Base and Aircraft values use airline color */
body.airline-branding #base-airport,
body.airline-branding #primary-aircraft {
    color: var(--airline-color, #4092cc);
}

/* Primary buttons */
body.airline-branding .btn-primary,
body.airline-branding .generate-schedule-btn,
body.airline-branding #accept-schedule-btn,
body.airline-branding .standby-btn {
    background: linear-gradient(135deg, var(--airline-color, #4092cc) 0%, var(--airline-color-dark, #357abd) 100%);
}

body.airline-branding .btn-primary:hover,
body.airline-branding .generate-schedule-btn:hover,
body.airline-branding #accept-schedule-btn:hover,
body.airline-branding .standby-btn:hover {
    background: linear-gradient(135deg, var(--airline-color-dark, #357abd) 0%, var(--airline-color, #4092cc) 100%);
}

/* Content card headers */
body.airline-branding .content-card h2 {
    color: var(--airline-color, #1e3a5f);
}

body.airline-branding .content-card h2::after {
    background: var(--airline-color, #4092cc) !important;
}

body.airline-branding .content-card h2 i {
    color: var(--airline-color, #4092cc);
}

/* Sidebar card headers */
body.airline-branding .sidebar-card h3 {
    color: var(--airline-color, #1e3a5f);
}

body.airline-branding .sidebar-card h3 i {
    color: var(--airline-color, #4092cc);
}

/* Dashboard header */
body.airline-branding .dashboard-header {
    border-bottom-color: var(--airline-color, #4092cc);
}

body.airline-branding .dashboard-header h1 i {
    color: var(--airline-color, #4092cc);
}

/* Training buy button */
body.airline-branding .training-buy-btn:not(.disabled) {
    background: linear-gradient(135deg, var(--airline-color, #4092cc) 0%, var(--airline-color-dark, #357abd) 100%);
}

body.airline-branding .training-buy-btn:not(.disabled):hover {
    background: linear-gradient(135deg, var(--airline-color-dark, #357abd) 0%, var(--airline-color, #4092cc) 100%);
}

/* Contract info header */
body.airline-branding .contract-info h4 {
    color: var(--airline-color, #1e3a5f);
}

/* Page title */
body.airline-branding .header-content h1 {
    color: var(--airline-color, #1e3a5f);
}

/* Schedule leg elements */
body.airline-branding .schedule-leg {
    border-left-color: var(--airline-color, #4092cc);
}

body.airline-branding .leg-number {
    background: var(--airline-color, #4092cc);
}

/* Aircraft multiselect */
body.airline-branding .multiselect-tag {
    background: var(--airline-color, #4092cc);
}

body.airline-branding .multiselect-display:hover,
body.airline-branding .multiselect-display.open {
    border-color: var(--airline-color, #4092cc);
}

body.airline-branding .multiselect-display.open {
    box-shadow: 0 0 0 3px rgba(var(--airline-color-rgb, 64, 146, 204), 0.1);
}

body.airline-branding .multiselect-dropdown {
    border-color: var(--airline-color, #4092cc);
}

body.airline-branding .multiselect-option.selected {
    background: rgba(var(--airline-color-rgb, 64, 146, 204), 0.08);
}

body.airline-branding .multiselect-option .option-check {
    color: var(--airline-color, #4092cc);
}

/* Schedule form focus states */
body.airline-branding .schedule-form-group select:focus {
    border-color: var(--airline-color, #4092cc);
    box-shadow: 0 0 0 3px rgba(var(--airline-color-rgb, 64, 146, 204), 0.1);
}

body.airline-branding .time-input-wrapper input[type="number"]:focus {
    border-color: var(--airline-color, #4092cc);
    box-shadow: 0 0 0 3px rgba(var(--airline-color-rgb, 64, 146, 204), 0.1);
}

/* Stat values */
body.airline-branding .stat-item .stat-value {
    color: var(--airline-color, #4092cc);
}

/* Timeline dots */
body.airline-branding .timeline-item::before {
    background: var(--airline-color, #4092cc);
    box-shadow: 0 0 0 2px var(--airline-color, #4092cc);
}

/* Advisor tips */
body.airline-branding .advisor-tip.recommended {
    border-color: var(--airline-color, #4092cc);
}

body.airline-branding .advisor-tip.recommended h4 {
    color: var(--airline-color, #4092cc);
}

/* Relocation notice */
body.airline-branding .relocation-pending-notice {
    border-color: var(--airline-color, #4092cc);
    background: linear-gradient(135deg, rgba(var(--airline-color-rgb, 64, 146, 204), 0.1) 0%, rgba(var(--airline-color-rgb, 64, 146, 204), 0.15) 100%);
}

body.airline-branding .relocation-pending-notice i {
    color: var(--airline-color, #4092cc);
}

/* Starter airline cards */
body.airline-branding .starter-airline-card:hover {
    border-color: var(--airline-color, #4092cc);
    box-shadow: 0 4px 12px rgba(var(--airline-color-rgb, 64, 146, 204), 0.2);
}

body.airline-branding .starter-airline-tier {
    background: rgba(var(--airline-color-rgb, 64, 146, 204), 0.1);
    color: var(--airline-color, #4092cc);
}

body.airline-branding .starter-select-btn {
    background: var(--airline-color, #4092cc);
}

body.airline-branding .starter-select-btn:hover {
    background: var(--airline-color-dark, #357abd);
}

/* Apply button */
body.airline-branding .apply-btn {
    background: var(--airline-color, #4092cc);
}

body.airline-branding .apply-btn:hover {
    background: var(--airline-color-dark, #357abd);
}

/* Training item type badge */
body.airline-branding .training-item-type {
    background: rgba(var(--airline-color-rgb, 64, 146, 204), 0.1);
    color: var(--airline-color, #4092cc);
}

/* Aircraft option selection */
body.airline-branding .aircraft-option:hover {
    border-color: var(--airline-color, #4092cc);
}

body.airline-branding .aircraft-option.selected {
    border-color: var(--airline-color, #4092cc);
    background: rgba(var(--airline-color-rgb, 64, 146, 204), 0.1);
    color: var(--airline-color, #4092cc);
}

/* Modal confirm button */
body.airline-branding .career-modal-btn.confirm {
    background: var(--airline-color, #4092cc);
}

body.airline-branding .career-modal-btn.confirm:hover {
    background: var(--airline-color-dark, #357abd);
}

/* Toggle switches */
body.airline-branding .toggle-switch input:checked + .toggle-slider {
    background-color: var(--airline-color, #4092cc);
}

/* Links */
body.airline-branding .simbrief-direct-link a {
    color: var(--airline-color, #4092cc);
}

/* Stats sidebar numbers */
body.airline-branding .stats-sidebar .stat .num {
    color: var(--airline-color, #4092cc);
}

body.airline-branding .stat-item-sidebar .stat-value {
    color: var(--airline-color, #4092cc);
}

/* Hired aircraft icon */
body.airline-branding .hired-aircraft-item i {
    color: var(--airline-color, #4092cc);
}

/* Job center section icons */
body.airline-branding .job-center-section h3 i {
    color: var(--airline-color, #4092cc);
}

/* Job offer position text */
body.airline-branding .job-offer-position {
    color: var(--airline-color, #4092cc);
}

/* Training section icon */
body.airline-branding .training-section-header i {
    color: var(--airline-color, #4092cc);
}

/* Scheduled flights */
body.airline-branding .scheduled-flight-card {
    border-left-color: var(--airline-color, #4092cc);
}

body.airline-branding .scheduled-flight-card:hover {
    border-color: var(--airline-color, #4092cc);
}

/* Progress bars and indicators */
body.airline-branding .progress-fill {
    background: var(--airline-color, #4092cc);
}

/* Flight actions button */
body.airline-branding .flight-action-btn.primary {
    background: var(--airline-color, #4092cc);
}

body.airline-branding .flight-action-btn.primary:hover {
    background: var(--airline-color-dark, #357abd);
}

/* Dark mode adjustments for airline branding */
body.dark-mode.airline-branding .content-card h2,
body.dark-mode.airline-branding .sidebar-card h3,
body.dark-mode.airline-branding .contract-info h4,
body.dark-mode.airline-branding .header-content h1 {
    color: var(--airline-color-light, #6ba5d4);
}

body.dark-mode.airline-branding .content-card h2 i,
body.dark-mode.airline-branding .sidebar-card h3 i,
body.dark-mode.airline-branding .dashboard-header h1 i {
    color: var(--airline-color-light, #6ba5d4);
}

/* Dark mode schedule & multiselect branding */
body.dark-mode.airline-branding .leg-number {
    background: var(--airline-color, #4092cc);
}

body.dark-mode.airline-branding .schedule-leg {
    border-left-color: var(--airline-color, #4092cc);
}

body.dark-mode.airline-branding .multiselect-tag {
    background: var(--airline-color, #4092cc);
}

body.dark-mode.airline-branding .multiselect-option .option-check {
    color: var(--airline-color-light, #6ba5d4);
}

body.dark-mode.airline-branding .multiselect-option.selected {
    background: rgba(var(--airline-color-rgb, 64, 146, 204), 0.15);
}

/* Dark mode stat values */
body.dark-mode.airline-branding .stat-item .stat-value,
body.dark-mode.airline-branding .stat-item-sidebar .stat-value,
body.dark-mode.airline-branding .stats-sidebar .stat .num {
    color: var(--airline-color-light, #6ba5d4);
}

/* Dark mode timeline */
body.dark-mode.airline-branding .timeline-item::before {
    background: var(--airline-color, #4092cc);
    box-shadow: 0 0 0 2px var(--airline-color, #4092cc);
}

/* Dark mode advisor tips */
body.dark-mode.airline-branding .advisor-tip.recommended {
    border-color: var(--airline-color, #4092cc);
}

body.dark-mode.airline-branding .advisor-tip.recommended h4 {
    color: var(--airline-color-light, #6ba5d4);
}

/* Dark mode icons */
body.dark-mode.airline-branding .hired-aircraft-item i,
body.dark-mode.airline-branding .job-center-section h3 i,
body.dark-mode.airline-branding .training-section-header i {
    color: var(--airline-color-light, #6ba5d4);
}

/* Dark mode job offer position */
body.dark-mode.airline-branding .job-offer-position {
    color: var(--airline-color-light, #6ba5d4);
}

/* Dark mode links */
body.dark-mode.airline-branding .simbrief-direct-link a {
    color: var(--airline-color-light, #6ba5d4);
}

/* ================================================
   AIRLINE CREW CHAT
   ================================================ */
.chat-sidebar {
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
    min-height: 150px;
    padding: 0.5rem;
    background: var(--career-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.dark-mode .chat-messages {
    background: #1e293b;
}

.chat-message {
    padding: 0.5rem 0.75rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.dark-mode .chat-message {
    background: #334155;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.chat-username {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--career-primary);
}

body.dark-mode .chat-username {
    color: #60a5fa;
}

.chat-time {
    font-size: 0.7rem;
    color: var(--career-gray);
}

.chat-message-text {
    font-size: 0.85rem;
    color: #334155;
    word-wrap: break-word;
}

body.dark-mode .chat-message-text {
    color: #e2e8f0;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--career-border);
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

#chat-input:focus {
    border-color: var(--career-primary);
}

#chat-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

body.dark-mode #chat-input {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode #chat-input:disabled {
    background: #0f172a;
}

.chat-send-btn {
    padding: 0.4rem 0.6rem;
    background: var(--career-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--career-primary-dark);
}

.chat-send-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.chat-username-prompt {
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 8px;
    text-align: center;
    margin-top: 0.5rem;
}

body.dark-mode .chat-username-prompt {
    background: #422006;
}

.chat-username-prompt p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #92400e;
}

body.dark-mode .chat-username-prompt p {
    color: #fcd34d;
}

.chat-username-prompt input {
    padding: 0.4rem 0.6rem;
    border: 1px solid #d97706;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 120px;
    margin-right: 0.5rem;
}

body.dark-mode .chat-username-prompt input {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #f59e0b;
}

.chat-username-prompt button {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.chat-empty {
    text-align: center;
    color: var(--career-gray);
    font-size: 0.85rem;
    padding: 2rem 0;
}

.chat-loading {
    text-align: center;
    color: var(--career-gray);
    font-size: 0.85rem;
    padding: 1rem 0;
}

/* ================================================
   CONTRACT SYSTEM
   ================================================ */

.contract-locked-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 0.35rem;
    padding: 0.6rem 1.25rem;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    max-width: 100%;
}

body.dark-mode .contract-locked-message {
    background: #78350f;
    border-color: #f59e0b;
}

.contract-locked-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contract-locked-title i {
    font-size: 1rem;
    color: #d97706;
}

body.dark-mode .contract-locked-title i {
    color: #fbbf24;
}

.contract-locked-title strong {
    font-size: 0.95rem;
    color: #92400e;
}

body.dark-mode .contract-locked-title strong {
    color: #fef3c7;
}

.contract-locked-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem 0.4rem;
}

.contract-locked-details span {
    font-size: 0.8rem;
    color: #a16207;
}

body.dark-mode .contract-locked-details span {
    color: #fde68a;
}

.contract-locked-details em {
    font-style: normal;
    opacity: 0.8;
}

@media (max-width: 576px) {
    .contract-locked-details {
        flex-direction: column;
        gap: 0.15rem;
    }
    .contract-locked-details span:nth-child(2) {
        display: none;
    }
}

.contract-buyout-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 6px;
    margin: 0 auto 1rem auto;
    width: fit-content;
}

body.dark-mode .contract-buyout-warning {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.contract-buyout-warning i {
    font-size: 0.9rem;
    color: #d97706;
    flex-shrink: 0;
}

body.dark-mode .contract-buyout-warning i {
    color: #fbbf24;
}

.contract-buyout-warning span {
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 500;
}

body.dark-mode .contract-buyout-warning span {
    color: #fef3c7;
}

/* Contract notice on starter cards */
.contract-notice {
    font-size: 0.75rem;
    color: var(--career-gray);
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.contract-notice i {
    font-size: 0.7rem;
}

body.dark-mode .contract-notice {
    color: #94a3b8;
}

/* Contract info notice in modals */
.contract-info-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid #0ea5e9;
    margin-top: 1rem;
}

body.dark-mode .contract-info-notice {
    background: #0c4a6e;
    border-color: #38bdf8;
}

.contract-info-notice i {
    color: #0ea5e9;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

body.dark-mode .contract-info-notice i {
    color: #38bdf8;
}

.contract-info-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: #0369a1;
    line-height: 1.4;
}

body.dark-mode .contract-info-notice p {
    color: #bae6fd;
}

.contract-info-notice strong {
    color: #0c4a6e;
}

body.dark-mode .contract-info-notice strong {
    color: #f0f9ff;
}

/* Starter modal details */
.starter-modal-details {
    text-align: left;
}

.starter-modal-logo {
    text-align: center;
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--career-border);
}

.starter-modal-logo img {
    max-width: 200px;
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: -10px auto -4px;
}

/* Wider modal for Start Your Career flow */
.career-modal.career-modal-starter {
    max-width: 560px;
    width: 92%;
}

/* Tighten spacing specific to starter modal */
.career-modal.career-modal-starter > h3 {
    padding-top: 0.5rem;
    padding-bottom: 0.15rem;
}

.career-modal.career-modal-starter > #modal-message {
    padding-top: 0;
    padding-bottom: 0;
}

.career-modal.career-modal-starter .career-modal-actions {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (max-width: 600px) {
    .career-modal.career-modal-starter {
        width: 96%;
        margin: 0.5rem;
    }
}

/* Signature pad */
.signature-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--career-border);
}

.signature-label {
    font-size: 0.8rem;
    color: var(--career-text-muted);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.signature-canvas-wrap {
    height: 90px;
    border: 1.5px solid var(--career-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--career-bg-card);
    cursor: crosshair;
}

#signature-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.signature-clear-btn {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--career-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.signature-clear-btn:hover {
    color: var(--career-primary);
}

.starter-modal-tier {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 0.25rem;
    background: rgba(64, 146, 204, 0.1);
    color: var(--career-primary);
    line-height: 1.4;
}

body.dark-mode .starter-modal-tier {
    background: rgba(64, 146, 204, 0.2);
}

.starter-modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.starter-modal-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f1f5f9;
}

body.dark-mode .starter-modal-info .info-row {
    border-bottom-color: #334155;
}

.starter-modal-info .info-row:last-child {
    border-bottom: none;
}

.starter-modal-info .info-row span {
    color: var(--career-gray);
    font-size: 0.9rem;
}

.starter-modal-info .info-row strong {
    color: #1e293b;
    font-size: 0.9rem;
}

body.dark-mode .starter-modal-info .info-row strong {
    color: #f1f5f9;
}

/* ================================================
   FATIGUE SYSTEM STYLES
   ================================================ */

#fatigue-section {
    background: #fff;
}

body.dark-mode #fatigue-section {
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
}

.fatigue-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Fatigue Meter */
.fatigue-meter-container {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

body.dark-mode .fatigue-meter-container {
    background: #1c1c1e;
    border: 1px solid #3a3a3c;
}

.fatigue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.fatigue-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fatigue-status i {
    font-size: 1.25rem;
}

.fatigue-label {
    font-weight: 600;
    font-size: 1rem;
}

.fatigue-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--career-primary);
}

.fatigue-bar-track {
    position: relative;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: visible;
}

body.dark-mode .fatigue-bar-track {
    background: #334155;
}

body.dark-mode .fatigue-label {
    color: #e5e5e7;
}

body.dark-mode .fatigue-stats {
    color: #a0a0a0;
}

.fatigue-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease, background 0.3s ease;
}

.fatigue-threshold {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 20px;
    background: #ef4444;
    border-radius: 2px;
    transform: translateX(-50%);
}

.fatigue-threshold::after {
    content: '85%';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #ef4444;
    font-weight: 600;
}

.fatigue-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--career-gray);
}

.fatigue-stats span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Fully rested check always green */
.fatigue-stats i.fa-check-circle {
    color: var(--career-success) !important;
}

.fatigue-warning {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Vacation Options */
.vacation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.vacation-option {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .vacation-option {
    background: #2c2c2e;
    border-color: #48484a;
}

body.dark-mode .vacation-option:hover:not(.disabled) {
    background: #3a3a3c;
}

.vacation-option:hover:not(.disabled) {
    border-color: var(--career-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vacation-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vacation-option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--career-heading);
}

.vacation-option-header i {
    color: var(--career-primary);
}

.vacation-option-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.vacation-time {
    color: var(--career-gray);
}

.vacation-cost {
    color: var(--career-success);
    font-weight: 600;
}

/* Vacation Active State */
.fatigue-vacation-active {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 12px;
    color: white;
    box-sizing: border-box;
    overflow: hidden;
}

.vacation-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.vacation-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
}

.vacation-type {
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.vacation-countdown {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 576px) {
    .vacation-options {
        grid-template-columns: 1fr;
    }

    .fatigue-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .fatigue-vacation-active {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================
   FLIGHT SAFETY SECTION
   ================================================ */
.safety-sidebar {
    /* Uses default sidebar-card styles */
}

.safety-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.safety-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.safety-status.status-good {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.safety-status.status-caution {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.safety-status.status-warning {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.safety-status.status-grounded {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.safety-strikes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.strike-label {
    font-size: 0.75rem;
    color: var(--career-gray);
}

.strike-indicators {
    display: flex;
    gap: 0.35rem;
}

.strike-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e5e7;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
}

.strike-dot.filled {
    background: #ef4444;
    border-color: #dc2626;
}

.safety-info {
    text-align: center;
    padding: 0.5rem 0;
}

.safety-info small {
    color: var(--career-gray);
    font-size: 0.8rem;
}

.safety-reset-info {
    text-align: center;
    margin-top: 0.75rem;
    color: var(--career-gray);
    font-size: 0.75rem;
}

.safety-grounded-notice,
.safety-training-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.safety-grounded-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.safety-grounded-notice > i {
    color: #ef4444;
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.safety-training-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.safety-training-notice > i {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.grounded-message strong,
.training-message strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #1f2937;
    font-size: 0.95rem;
}

.grounded-message p,
.training-message p {
    margin: 0 0 0.25rem 0;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

.training-countdown {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}

.safety-training-action {
    text-align: center;
}

.safety-pay-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.safety-training-action small {
    display: block;
    margin-top: 0.5rem;
    color: var(--career-gray);
    font-size: 0.8rem;
}

.safety-violations {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e5e7;
}

.violations-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f59e0b;
}

.violations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.violation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 6px;
    font-size: 0.8rem;
}

.violation-route {
    font-weight: 600;
    color: #1f2937;
}

.violation-type {
    color: #f59e0b;
    font-weight: 500;
}

.violation-date {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Dark mode - Flight Safety */
body.dark-mode .safety-status.status-good {
    background: rgba(34, 197, 94, 0.2);
}

body.dark-mode .safety-status.status-caution {
    background: rgba(245, 158, 11, 0.2);
}

body.dark-mode .safety-status.status-warning {
    background: rgba(249, 115, 22, 0.2);
}

body.dark-mode .safety-status.status-grounded {
    background: rgba(239, 68, 68, 0.2);
}

body.dark-mode .strike-dot {
    background: #48484a;
    border-color: #5a5a5c;
}

body.dark-mode .strike-dot.filled {
    background: #ef4444;
    border-color: #dc2626;
}

body.dark-mode .safety-grounded-notice {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

body.dark-mode .safety-training-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .grounded-message strong,
body.dark-mode .training-message strong {
    color: #e5e5e7;
}

body.dark-mode .grounded-message p,
body.dark-mode .training-message p {
    color: #a0a0a0;
}

body.dark-mode .safety-violations {
    border-color: #48484a;
}

body.dark-mode .violation-item {
    background: rgba(245, 158, 11, 0.15);
}

body.dark-mode .violation-route {
    color: #e5e5e7;
}

body.dark-mode .violation-date {
    color: #6b7280;
}

/* ================================================
   SICK TIME SECTION
   ================================================ */
.sick-time-sidebar {
    /* Uses default sidebar-card styles */
}

.sick-time-sidebar h3 {
    /* Uses default sidebar-card h3 color (#1e293b) */
}

.sick-time-sidebar h3 i {
    /* Uses default sidebar-card h3 i color (var(--career-primary) blue) */
}

.sick-time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sick-time-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sick-time-status.status-good {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.sick-time-status.status-low {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.sick-time-status.status-depleted {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.sick-time-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.sick-time-label {
    font-size: 0.75rem;
    color: var(--career-gray);
}

.sick-time-dots {
    display: flex;
    gap: 0.35rem;
}

.sick-day-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sick-day-dot.available {
    background: transparent;
    border: 2px solid #d1d5db;
}

.sick-day-dot.used {
    background: #f59e0b;
    border: 2px solid #d97706;
}

.sick-time-reset {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--career-gray);
}

/* Dark mode */
body.dark-mode .sick-time-status.status-good {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

body.dark-mode .sick-time-status.status-low {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

body.dark-mode .sick-time-status.status-depleted {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

body.dark-mode .sick-day-dot.available {
    background: transparent;
    border-color: #48484a;
}

body.dark-mode .sick-day-dot.used {
    background: #fbbf24;
    border-color: #f59e0b;
}

/* ================================================
   JOB APPLICATION SYSTEM STYLES
   ================================================ */

/* Job expiration badge */
.job-expires-badge {
    color: var(--career-gray);
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

/* Pending application card */
.pending-application-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: inline-block;
    width: auto;
    max-width: 620px;
    text-align: center;
}

.pending-app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.pending-app-header i {
    color: #f59e0b;
}

.pending-app-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pending-app-logo {
    height: 65px;
    width: 100px;
    object-fit: contain;
}

.pending-app-info {
    flex: 1;
}

.pending-app-airline {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.pending-app-position {
    font-size: 0.8rem;
    color: var(--career-gray);
}

.pending-app-rate {
    font-size: 0.85rem;
    color: var(--career-primary);
    font-weight: 500;
}

.pending-app-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #92400e;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.pending-app-note {
    font-size: 0.75rem;
    color: #78716c;
    font-style: italic;
}

/* Application notice in modal */
.application-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #92400e;
}

.application-notice i {
    color: #f59e0b;
}

/* Application result modal */
.application-result-modal {
    text-align: center;
    padding: 1rem;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-icon.accepted {
    color: var(--career-success);
}

.result-icon.rejected {
    color: var(--career-danger);
}

.application-result-modal h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.result-airline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-airline img {
    height: 35px;
    width: 55px;
    object-fit: contain;
}

.result-airline span {
    font-weight: 600;
    color: #1e293b;
}

.result-details {
    background: var(--career-light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.result-details > div {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.result-encouragement {
    color: var(--career-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Dark mode styles */
body.dark-mode .pending-application-card {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    border-color: #92400e;
}

body.dark-mode .pending-app-header {
    color: #fde68a;
}

body.dark-mode .pending-app-airline {
    color: #e5e5e7;
}

body.dark-mode .pending-app-timer {
    background: rgba(0, 0, 0, 0.2);
    color: #fde68a;
}

body.dark-mode .pending-app-note {
    color: #a0a0a0;
}

body.dark-mode .job-expires-badge {
    background: rgba(100, 116, 139, 0.2);
}

body.dark-mode .application-notice {
    background: #451a03;
    color: #fde68a;
}

body.dark-mode .application-result-modal h3 {
    color: #e5e5e7;
}

body.dark-mode .result-airline span {
    color: #e5e5e7;
}

body.dark-mode .result-details {
    background: #3a3a3c;
}

body.dark-mode .result-encouragement {
    color: #a0a0a0;
}

/* ================================================
   SCHEDULED FLIGHTS ROUTE MAP
   ================================================ */
.scheduled-flights-map-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--career-border);
}

.career-route-map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
}

.career-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 4px;
    border: 1px solid #4092cc;
    color: #1e3a5f;
}

.career-map-marker.airport span {
    font-family: 'Poppins', sans-serif;
}

.career-route-label {
    background: #1e3a5f;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.map-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Dark mode */
body.dark-mode .scheduled-flights-map-container {
    border-color: #3a3a3c;
}

body.dark-mode .map-unavailable {
    background: #2a2a2c;
    color: #a0a0a0;
}

body.dark-mode .career-map-marker {
    background: #2a2a2c;
    color: #e5e5e7;
    border-color: #4092cc;
}

body.dark-mode .career-route-label {
    background: #4092cc;
}

/* ================================================
   FINAL MOBILE RESPONSIVE FIXES
   ================================================ */
@media (max-width: 768px) {
    /* Sidebar cards on mobile */
    .sidebar-card {
        padding: 1rem;
    }

    .sidebar-card h3 {
        font-size: 0.9rem;
    }

    /* Route map on tablet */
    .career-route-map {
        height: 300px;
    }

    /* Job offer cards */
    .job-offer-details {
        grid-template-columns: 1fr;
    }

    /* Fatigue section */
    .fatigue-bar-container {
        flex-direction: column;
        align-items: stretch;
    }

    /* Chat section */
    .crew-chat-messages {
        max-height: 200px;
    }

    /* Warning banner stacks on tablet */
    .testing-warning-banner {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }

    /* Employer card - stack logo and details */
    .employer-content {
        flex-direction: column;
        text-align: center;
    }

    .employer-card .airline-logo-display {
        width: 80px;
        height: 80px;
    }

    .employer-detail {
        justify-content: center;
    }

    /* Contract content - reduce padding */
    .contract-content {
        padding: 0 0.5rem;
    }

    /* Standby status - reduce padding */
    .standby-status {
        padding: 0.75rem 1rem;
    }

    /* Standby flight details - wrap */
    .standby-flight-details {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Overtime badges - adjust positioning */
    .overtime-multiplier {
        left: auto;
        right: 0.5rem;
    }
}

@media (max-width: 576px) {
    /* Further reduce padding on very small screens */
    .sidebar-card {
        padding: 0.75rem;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Route counts compact on mobile */
    .route-counts-display {
        padding: 0.4rem 0.5rem;
        margin: 0.35rem 0;
    }

    .route-counts-total {
        font-size: 0.75rem;
    }

    .route-counts-breakdown {
        gap: 0.2rem 0.4rem;
    }

    .route-count-item {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }

    /* Current base routes banner compact on mobile */
    .current-base-routes-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.4rem 0.6rem;
    }

    /* Stats grid */
    .stats-sidebar .stats-row {
        flex-direction: column;
        gap: 0.35rem;
    }

    .stats-sidebar .stat {
        padding: 0.4rem;
    }

    .stats-sidebar .stat .num {
        font-size: 0.9rem;
    }

    .stats-sidebar .stat .label {
        font-size: 0.6rem;
    }

    /* Finance sidebar */
    .finance-sidebar .finance-row {
        padding: 0.4rem 0.6rem;
    }

    .finance-sidebar .finance-label {
        font-size: 0.75rem;
    }

    .finance-sidebar .finance-value {
        font-size: 0.85rem;
    }

    /* Route map on mobile - keep usable height */
    .career-route-map {
        height: 280px;
    }

    /* Leaderboard compact */
    .leaderboard-entry {
        padding: 0.4rem 0;
        font-size: 0.8rem;
    }

    /* Contract info */
    .contract-info-item {
        font-size: 0.8rem;
    }

    /* Employment card */
    .employment-position {
        font-size: 1.1rem;
    }

    .employment-details span {
        font-size: 0.8rem;
    }

    /* Base transfer details - stack on mobile */
    .job-offer-card.base-transfer-opportunity .job-offer-details.base-transfer-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* Fatigue vacation active */
    .fatigue-vacation-active {
        gap: 0.75rem;
        padding: 1rem;
    }

    .vacation-icon {
        font-size: 2rem;
    }

    /* Warning banner - fully stacked on small screens */
    .testing-warning-banner {
        flex-direction: column;
        font-size: 0.78rem;
        padding: 0.5rem 0.6rem;
        gap: 0.35rem;
    }

    .career-guide-text {
        font-size: 0.78rem;
    }

    .career-guide-link {
        font-size: 0.78rem;
        padding: 0.25rem 0.6rem;
    }

    /* Employer card - full stack */
    .employer-card .airline-logo-display {
        width: 70px;
        height: 70px;
    }

    .employer-details {
        width: 100%;
    }

    /* Contract content - minimal padding */
    .contract-content {
        padding: 0;
    }

    .contract-detail {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .contract-detail .detail-label {
        min-width: 70px;
    }

    /* Standby section */
    .standby-status {
        flex-direction: column;
        padding: 0.75rem;
        text-align: center;
    }

    .standby-timer {
        font-size: 1.25rem;
    }

    .standby-actions {
        flex-direction: column;
        width: 100%;
    }

    .standby-accept-btn,
    .standby-cancel-btn {
        width: 100%;
        justify-content: center;
    }

    /* Standby flight details */
    .standby-flight-details {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Schedule info bar */
    .schedule-info-bar {
        gap: 0.5rem;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Fatigue stats */
    .fatigue-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .fatigue-percentage {
        font-size: 1.25rem;
    }

    /* Overtime section */
    .overtime-offer {
        padding: 1rem 0.75rem 0.75rem;
    }

    .overtime-badge {
        font-size: 0.6rem;
    }

    .overtime-multiplier {
        left: auto;
        right: 0.5rem;
        font-size: 0.6rem;
    }

    .overtime-expires {
        position: static;
        text-align: right;
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .overtime-flight-route {
        flex-wrap: wrap;
    }

    .overtime-actions {
        flex-direction: column;
    }

    .overtime-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Week header - stack calendar link below title */
    .career-week-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .career-week-cal-link {
        position: static;
    }

    /* Career week day cells */
    .career-week-day {
        min-height: 70px;
    }

    .career-week-date {
        padding: 0.3rem;
        font-size: 0.7rem;
    }

    .career-week-content {
        padding: 0.25rem;
    }

    .career-week-flight {
        padding: 0.25rem;
        font-size: 0.65rem;
    }

    .career-week-flight .week-flight-route {
        font-size: 0.6rem;
    }

    .career-week-flight .week-flight-detail {
        font-size: 0.55rem;
    }

    /* Global overflow prevention - scoped to avoid breaking positioned elements */
    .content-card,
    .career-section,
    .career-main-column,
    .career-sidebar-column,
    .career-info-row,
    .fatigue-content,
    .fatigue-meter-container,
    .career-week-grid,
    .standby-active,
    .standby-flights,
    .overtime-offer,
    .overtime-flights {
        max-width: 100%;
        box-sizing: border-box;
    }

    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}


/* ============================================================
   CAREER PAGE UI OVERHAUL — NEW STYLES
   ============================================================ */

/* ── App Bar ─────────────────────────────────────────── */
.career-app-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1.25rem;
    background: var(--card-bg, #fff);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.app-bar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}
.app-bar-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-bar-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}
.app-bar-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.app-bar-name {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary, #1e293b);
}
.app-bar-position {
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}
.app-bar-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.app-bar-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}
.app-bar-stat i {
    color: #22c55e;
    font-size: 0.78rem;
}
.app-bar-fatigue-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.3s, color 0.3s;
}
.app-bar-fatigue-pill.good    { background: #dcfce7; color: #166534; }
.app-bar-fatigue-pill.caution { background: #fef9c3; color: #854d0e; }
.app-bar-fatigue-pill.warning { background: #ffedd5; color: #9a3412; }
.app-bar-fatigue-pill.danger  { background: #fee2e2; color: #991b1b; }

/* ── Tab Navigation ──────────────────────────────────── */
.career-tab-nav {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--card-bg, #fff);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 57px;
    z-index: 100;
}
.career-tab-nav::-webkit-scrollbar { display: none; }

.career-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    flex-shrink: 0;
}
.career-tab-btn i { font-size: 0.9rem; }
.career-tab-btn.active {
    background: var(--accent-light, #eff6ff);
    color: var(--accent, #3b82f6);
    font-weight: 600;
}
.career-tab-btn:active { transform: scale(0.97); }
.career-tab-btn:hover:not(.active) { background: var(--hover-bg, #f1f5f9); }

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Tab Panels ──────────────────────────────────────── */
.career-tab-content {
    min-height: 400px;
}
.career-tab-panel {
    display: none;
    padding: 1rem 0;
}
.career-tab-panel.active { display: block; }

/* Two-column layout within Overview tab */
.tab-two-col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1rem;
    align-items: start;
}
.tab-main-col { min-width: 0; }
.tab-sidebar-col { min-width: 0; }

@media (max-width: 900px) {
    .tab-two-col {
        grid-template-columns: 1fr;
    }
}

/* ── Skeleton Loader ─────────────────────────────────── */
.career-skeleton-screen {
    padding: 1rem 0;
}
.skeleton-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.skeleton-card {
    flex: 1;
    height: 120px;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-card.tall { height: 180px; }
.skeleton-tab-bar {
    height: 48px;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 1rem;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ── Fatigue Radial Gauge ────────────────────────────── */
.fatigue-gauge-wrap {
    position: relative;
    width: 160px;
    margin: 0 auto 0.75rem;
}
.fatigue-gauge {
    width: 100%;
    height: auto;
    overflow: visible;
}
.gauge-arc {
    transition: stroke-dashoffset 0.8s ease-out, stroke 0.4s;
}
.fatigue-gauge-label {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    text-align: center;
}

/* ── Toast ───────────────────────────────────────────── */
.career-toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    width: min(calc(100vw - 2rem), 520px);
}
.career-toast {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s;
    line-height: 1.4;
}
.career-toast.show { opacity: 1; transform: translateY(0); }
.career-toast.toast-warning {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    color: #78350f;
}
.career-toast.toast-info {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    color: #1e3a5f;
}
.career-toast.toast-success {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    color: #14532d;
}
.career-toast i { flex-shrink: 0; }
.career-toast span { flex: 1; }
.career-toast button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 0 0.25rem;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
    font-size: 1rem;
    flex-shrink: 0;
}
.career-toast button:hover { opacity: 1; }
.career-toast a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ── Floating Action Button ──────────────────────────── */
.career-fab {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 500;
    border: none;
}
.career-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}
.career-fab:active { transform: scale(0.95); }

@media (max-width: 768px) {
    .career-fab {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }
    .career-toast-container {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ── Mobile Bottom Navigation ────────────────────────── */
.career-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--card-bg, #fff);
    border-top: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 1000;
    align-items: stretch;
    justify-content: space-around;
}
@media (max-width: 768px) {
    .career-bottom-nav { display: flex; }
    .career-tab-nav { top: 0; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

.bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: transparent;
    font-size: 0.62rem;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: color 0.15s;
}
.bottom-nav-btn i { font-size: 1.1rem; line-height: 1; }
.bottom-nav-btn.active { color: var(--accent, #3b82f6); }
.bottom-nav-btn .tab-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 14px);
}

/* ── Tab Enter Animation ─────────────────────────────── */
@keyframes tabEnter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tab-enter {
    animation: tabEnter 0.25s ease-out both;
}

/* ── Pulse Dot ───────────────────────────────────────── */
@keyframes pulse-dot {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
    margin-right: 4px;
}

/* ── Micro-Animations ────────────────────────────────── */
.btn-primary:active,
.career-tab-btn:active { transform: scale(0.97); }

.content-card {
    transition: box-shadow 0.2s, transform 0.2s;
}
.content-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}

/* ── Employer Card Gradient Header ───────────────────── */
.employer-card-header {
    background: linear-gradient(135deg, #1a4a7a 0%, #4092cc 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}
.employer-card-header #current-airline-logo img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* ── Finance Card Gradient Header ────────────────────── */
.finance-card-header {
    background: linear-gradient(135deg, #064e3b 0%, #22c55e 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1rem 1.5rem;
    margin: -1rem -1rem 1rem -1rem;
    color: #fff;
}
.finance-card-header h3 { margin: 0; color: #fff; }

/* ── Airline Logo Glow ───────────────────────────────── */
#current-airline-logo img {
    filter: drop-shadow(0 0 12px rgba(64,146,204,0.4));
}

/* ── Dark Mode Support ───────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .career-app-bar {
        background: #1e293b;
        border-bottom-color: #334155;
    }
    .career-tab-nav {
        background: #1e293b;
        border-bottom-color: #334155;
    }
    .career-tab-btn.active {
        background: rgba(59,130,246,0.15);
    }
    .skeleton-card,
    .skeleton-tab-bar {
        background: linear-gradient(90deg, #1e293b 25%, #2d3e50 50%, #1e293b 75%);
        background-size: 200% 100%;
    }
    .career-bottom-nav {
        background: #1e293b;
        border-top-color: #334155;
    }
    .career-toast.toast-warning {
        background: #422006;
        border-color: #d97706;
        color: #fde68a;
    }
    .career-toast.toast-info {
        background: #1e3a5f;
        border-color: #3b82f6;
        color: #bfdbfe;
    }
    .app-bar-fatigue-pill.good    { background: #14532d; color: #86efac; }
    .app-bar-fatigue-pill.caution { background: #713f12; color: #fde68a; }
    .app-bar-fatigue-pill.warning { background: #7c2d12; color: #fdba74; }
    .app-bar-fatigue-pill.danger  { background: #7f1d1d; color: #fca5a5; }
}

body.dark-mode .career-app-bar,
[data-theme="dark"] .career-app-bar {
    background: #1e293b;
    border-bottom-color: #334155;
}
body.dark-mode .career-tab-nav,
[data-theme="dark"] .career-tab-nav {
    background: #1e293b;
    border-bottom-color: #334155;
}
body.dark-mode .career-bottom-nav,
[data-theme="dark"] .career-bottom-nav {
    background: #1e293b;
    border-top-color: #334155;
}

/* ── Tab panel spacing for sidebar cards used in tabs ─── */
.career-tab-panel .sidebar-card {
    margin-bottom: 1rem;
}

/* ── Responsive: hide top tab nav on mobile ──────────── */
@media (max-width: 768px) {
    .career-tab-nav {
        display: none;
    }
}

/* ================================================
   CONTRACT TIER SELECTION
   ================================================ */

.contract-tier-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.contract-tier-options.contract-tier-compact {
    gap: 0.5rem;
}

@media (max-width: 560px) {
    .contract-tier-options {
        grid-template-columns: 1fr;
    }
}

.contract-tier-card {
    border: 2px solid var(--career-border);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    background: var(--career-surface);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    user-select: none;
}

.contract-tier-card:hover {
    border-color: var(--career-primary);
    box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}

.contract-tier-card.selected {
    border-color: var(--career-primary);
    background: rgba(99,102,241,0.07);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.contract-tier-compact .contract-tier-card {
    padding: 0.75rem 0.5rem;
    gap: 0.3rem;
}

.tier-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.2rem;
}

.tier-label-a {
    background: rgba(100,116,139,0.15);
    color: #64748b;
}

.tier-label-b {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

.tier-label-c {
    background: rgba(234,179,8,0.15);
    color: #ca8a04;
}

.tier-stars {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin: 0.1rem 0 0.2rem;
}

.tier-stars .fa-star { color: #f59e0b; }

.contract-tier-compact .tier-stars {
    font-size: 0.9rem;
}

.tier-days {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--career-text);
    line-height: 1.1;
}

.contract-tier-compact .tier-days {
    font-size: 0.9rem;
}

.tier-training-note {
    font-size: 0.72rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tier-rate {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--career-text);
}

.tier-multiplier {
    font-size: 0.75rem;
    font-weight: 400;
    color: #10b981;
}

.tier-bonus {
    font-size: 0.8rem;
    font-weight: 600;
}

.tier-bonus.positive {
    color: #10b981;
}

.tier-bonus.neutral {
    color: var(--career-text-muted);
    font-weight: 400;
}

.tier-buyout {
    font-size: 0.7rem;
    color: var(--career-text-muted);
}

.tier-modal-intro {
    padding: 0.75rem 0 0.25rem;
    font-size: 0.9rem;
    color: var(--career-text-secondary);
    text-align: center;
}

.apply-tier-section {
    border-top: 1px solid var(--career-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.apply-tier-section h4 {
    font-size: 0.9rem;
    color: var(--career-text-secondary);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contract-info-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #065f46;
}

.contract-info-notice i {
    color: #10b981;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.contract-info-notice p {
    margin: 0;
    line-height: 1.4;
}

/* Renewal tier cards inside job-offer-card */
.renewal-tier-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.75rem 0;
}

@media (max-width: 480px) {
    .renewal-tier-options {
        grid-template-columns: 1fr;
    }
}

.renewal-tier-card {
    border: 2px solid var(--career-border);
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: var(--career-surface);
    user-select: none;
}

.renewal-tier-card:hover {
    border-color: #10b981;
    background: rgba(16,185,129,0.06);
}

.renewal-tier-card .tier-label {
    font-size: 0.65rem;
}

.renewal-tier-card .tier-days {
    font-size: 0.82rem;
}

.renewal-tier-card .tier-rate {
    font-size: 0.82rem;
}

.renewal-tier-card .tier-bonus {
    font-size: 0.75rem;
}

/* Dark mode */
body.dark-mode .contract-tier-card {
    background: var(--career-surface);
    border-color: var(--career-border);
}

body.dark-mode .contract-tier-card.selected {
    background: rgba(99,102,241,0.12);
    border-color: var(--career-primary);
}

body.dark-mode .tier-label-a {
    background: rgba(100,116,139,0.25);
    color: #94a3b8;
}

body.dark-mode .tier-label-b {
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
}

body.dark-mode .tier-label-c {
    background: rgba(234,179,8,0.2);
    color: #fbbf24;
}

body.dark-mode .contract-info-notice {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.3);
    color: #a7f3d0;
}

body.dark-mode .renewal-tier-card {
    background: var(--career-surface);
    border-color: var(--career-border);
}

/* ── Starter Career Pages (slide navigation) ─────────────── */
.career-start-viewport {
    width: 100%;
}

.career-start-rail {
    width: 100%;
}

/* Pages hidden by default; shown when .cs-active */
.career-start-page {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.career-start-page.cs-active {
    display: block;
}


.career-start-page-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.career-start-page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.career-start-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--border-color, #cbd5e1);
    background: transparent;
    color: var(--text-primary, #1e293b);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}

.career-start-back-btn:hover {
    background: var(--bg-secondary, #f1f5f9);
    border-color: var(--text-muted, #94a3b8);
}

.career-start-page-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

body.dark-mode .career-start-back-btn {
    border-color: var(--career-border);
    color: var(--career-text);
}

body.dark-mode .career-start-back-btn:hover {
    background: var(--career-surface);
}

body.dark-mode .career-start-page-nav,
body.dark-mode .career-start-page-actions {
    border-color: var(--career-border);
}

/* Constrain pages 2 & 3 to a readable width */
#career-start-page-2 .content-card,
#career-start-page-3 .content-card {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Center the tier selection content on page 2 */
#career-start-page-2 .content-card {
    text-align: center;
}

#career-start-page-2 .career-start-page-nav,
#career-start-page-3 .career-start-page-nav {
    justify-content: center;
    text-align: left;
    position: relative;
}

#career-start-page-2 .career-start-page-nav .career-start-back-btn,
#career-start-page-3 .career-start-page-nav .career-start-back-btn {
    position: absolute;
    left: 0;
}

#starter-page-intro {
    text-align: center;
    margin-bottom: 1.25rem;
}

#starter-page-tier-options {
    max-width: 640px;
    margin: 0 auto;
}

#career-start-page-2 .career-start-page-actions,
#career-start-page-3 .career-start-page-actions {
    justify-content: center;
}
