/* ============================================
   FICHAJES.CSS
   Estilos específicos para la página de fichajes
   (Base styles in basestyles.css)
   ============================================ */

/* ============================================
   LOGIN REDIRECT SECTION
   ============================================ */
.login-section {
    padding: var(--space-3xl) 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-redirect {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-3xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
}

.redirect-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
}

.redirect-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.redirect-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* ============================================
   FICHAJES SECTION
   ============================================ */
.fichajes-section {
    padding: var(--space-3xl) 0;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.page-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    margin-bottom: var(--space-lg);
}

.page-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.title-line {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.title-highlight {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--color-text), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ============================================
   BUDGET SECTION
   ============================================ */
.budget-section {
    margin-bottom: var(--space-2xl);
}

.budget-compact {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-lg);
}

.budget-compact-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.budget-compact-content svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.budget-compact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.budget-compact-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.budget-compact-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-success);
}

.budget-compact-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.budget-compact-refresh:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.tab-navigation {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -1px;
}

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

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   PILOTS CATEGORY SECTIONS
   ============================================ */
.pilots-category-section {
    margin-bottom: var(--space-3xl);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-border);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 8px;
    text-transform: uppercase;
}

.f1-badge {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid #ff0000;
}

.f2-badge {
    background: rgba(0, 100, 255, 0.1);
    color: #0064ff;
    border: 1px solid #0064ff;
}

.category-count {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(0, 212, 255, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

/* ============================================
   PILOTS & ENGINEERS GRID
   ============================================ */
.pilots-grid,
.engineers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-3xl);
    color: var(--color-text-muted);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Pilot/Engineer Cards */
.pilot-card,
.engineer-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pilot-card:hover,
.engineer-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.engineer-card {
    cursor: default;
}

.engineer-card:hover {
    cursor: default;
}

/* Pilot Card Specific */
.pilot-card-header {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
}

.pilot-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 var(--space-lg) 0;
}

.pilot-card-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.pilot-card-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.pilot-card-stats .stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pilot-card-stats .stat-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.pilot-card-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-sign-pilot {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: var(--color-primary);
    color: var(--color-bg);
}

.btn-sign-pilot:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.btn-sign-pilot:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Pilot Card Avatar */
.pilot-card-avatar-container {
    width: calc(100% + (var(--space-lg) * 2));
    margin-left: calc(var(--space-lg) * -1);
    margin-right: calc(var(--space-lg) * -1);
    margin-top: calc(var(--space-lg) * -1);
    margin-bottom: var(--space-lg);
    height: 180px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid var(--color-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pilot-card-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(0, 212, 255, 0.05);
    margin: 0;
    padding: 0;
}

.pilot-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    margin: 0;
    padding: 0;
}

/* Engineer Card Avatar (si se usa) */
.card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.15);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    overflow: hidden;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-xs);
}

.card-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-md);
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.card-stat {
    text-align: center;
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.card-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.card-stat-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.card-actions {
    display: flex;
    gap: var(--space-sm);
}

.card-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.card-btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
}

.card-btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.card-btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.card-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

/* ============================================
   MODALS
   ============================================ */
.pilot-modal,
.offer-modal,
.contract-modal {
    max-width: 600px;
}

.profile-section {
    margin-bottom: var(--space-xl);
}

.profile-section h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.profile-field {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-field label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.profile-field span {
    font-weight: 500;
    color: var(--color-text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.contract-intro {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.contract-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contract-option {
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-option:hover {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

.contract-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.contract-option-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text);
}

.contract-option-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-success);
}

.contract-option-details {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================
   ENGINEER CARD SPECIFIC STYLES
   ============================================ */
.engineer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.engineer-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.team-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.engineer-card-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.engineer-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.engineer-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    min-width: 100px;
}

.engineer-stat-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Stat Bar Container */
.stat-bar-container {
    position: relative;
    flex: 1;
    height: 28px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.stat-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 14px;
    transition: width 0.5s ease;
    min-width: 3px;
}

.stat-bar.positive {
    background: linear-gradient(90deg, var(--color-success), rgba(0, 255, 136, 0.9));
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.stat-bar.negative {
    background: linear-gradient(90deg, var(--color-secondary), rgba(255, 45, 85, 0.9));
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.4);
}

.stat-bar-value {
    position: relative;
    z-index: 10;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    padding: 0 var(--space-xs);
}

.engineer-card-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-sign-engineer {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: var(--color-primary);
    color: var(--color-bg);
}

.btn-sign-engineer:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.btn-sign-engineer:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .title-highlight {
        font-size: 2rem;
    }

    .pilots-grid,
    .engineers-grid {
        grid-template-columns: 1fr;
    }

    .budget-compact-content {
        flex-wrap: wrap;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 0;
    }

    .tab-btn {
        border-bottom: 1px solid var(--color-border);
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-left-color: var(--color-primary);
        border-bottom-color: var(--color-border);
    }

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

    .engineer-stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .engineer-stat-label {
        min-width: auto;
    }

    .stat-bar-container {
        width: 100%;
        min-width: auto;
    }
}

/* ============================================
   TUTORIAL PANEL
   ============================================ */
.tutorial-panel {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: var(--space-2xl);
    margin-bottom: var(--space-3xl);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), 0 10px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.tutorial-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), rgba(0, 212, 255, 0.5), var(--color-primary));
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.tutorial-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
}

.tutorial-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.tutorial-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-xs) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tutorial-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
    font-weight: 400;
}

.tutorial-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tutorial-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    min-height: 400px;
}

.tutorial-step {
    display: none;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    animation: slideIn 0.4s ease-out;
}

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

.tutorial-step.active {
    display: flex;
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), rgba(0, 212, 255, 0.8));
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.step-content {
    flex: 1;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-md) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-description {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 0 0 var(--space-lg) 0;
    line-height: 1.6;
    font-weight: 500;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.step-details p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
}

.step-details p strong {
    color: var(--color-text);
    font-weight: 600;
}

.step-warning {
    margin-top: var(--space-md) !important;
    padding: var(--space-md) !important;
    background: rgba(255, 193, 7, 0.1) !important;
    border-left-color: #ffc107 !important;
    border-radius: 8px !important;
    color: #ffc107 !important;
    font-weight: 600 !important;
}

.tutorial-navigation {
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: var(--space-lg);
    border-top: 2px solid rgba(0, 212, 255, 0.3);
}

.tutorial-progress {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.tutorial-progress span {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.tutorial-btn {
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tutorial-btn-next,
.tutorial-btn-prev {
    background: linear-gradient(135deg, var(--color-primary), rgba(0, 212, 255, 0.8));
    color: var(--color-bg);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.tutorial-btn-next:hover,
.tutorial-btn-prev:hover {
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.tutorial-btn-next:active,
.tutorial-btn-prev:active {
    transform: translateY(0);
}

.tutorial-btn-skip {
    background: transparent;
    color: var(--color-text-muted);
    border: 2px solid var(--color-border);
    margin-left: auto;
}

.tutorial-btn-skip:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

/* ============================================
   SEARCH AND FILTERS
   ============================================ */
.search-filters-section {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: var(--space-md);
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 45px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.filters-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.filters-box label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.filters-box select {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filters-box select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* ============================================
   CONTRACT WARNING
   ============================================ */
.contract-warning {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    border-radius: 12px;
    margin-bottom: var(--space-xl);
}

.contract-warning svg {
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    display: block;
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    font-family: var(--font-display);
}

.warning-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.contract-option.selected {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.contract-summary {
    margin-top: var(--space-lg);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.summary-item.total {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 2px solid var(--color-primary);
    font-size: 1.1rem;
}

.summary-item span {
    color: var(--color-text-muted);
}

.summary-item strong {
    color: var(--color-text);
    font-family: var(--font-display);
}

/* ============================================
   PILOT ROLE SELECTION
   ============================================ */
.pilot-role-selection {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.pilot-role-selection label {
    display: block;
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-weight: 600;
    font-family: var(--font-display);
}

#pilotRoleSelect {
    width: 100%;
    padding: var(--space-md);
    background: rgba(42, 42, 42, 1);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

#pilotRoleSelect:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

#pilotRoleSelect:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

#pilotRoleSelect option:disabled {
    color: var(--color-text-muted);
    background: rgba(0, 0, 0, 0.5);
    font-style: italic;
}

#pilotRoleNote {
    margin-top: var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ============================================
   CONFIRMATION MODAL
   ============================================ */
.confirmation-modal {
    max-width: 500px;
}

.confirmation-warning {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 45, 85, 0.1);
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
}

.confirmation-warning svg {
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.confirmation-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.confirmation-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.confirmation-detail-item.total {
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 2px solid var(--color-primary);
    font-size: 1.1rem;
}

.detail-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 600;
}

.confirmation-detail-item.total .detail-value {
    color: var(--color-success);
    font-size: 1.25rem;
}

@media (max-width: 767px) {
    .search-filters-section {
        flex-direction: column;
    }
    
    .search-box,
    .filters-box {
        width: 100%;
    }
    
    .filters-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-box select {
        width: 100%;
        min-width: auto;
    }
    
    .tutorial-panel {
        padding: var(--space-lg);
    }
    
    .tutorial-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .tutorial-icon {
        font-size: 2rem;
    }
    
    .tutorial-header h3 {
        font-size: 1.25rem;
    }
    
    .tutorial-step {
        flex-direction: column;
        padding: var(--space-lg);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step-content h4 {
        font-size: 1.25rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .step-details {
        padding: var(--space-md);
    }
    
    .step-details p {
        font-size: 0.9rem;
    }
    
    .tutorial-navigation {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .tutorial-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tutorial-progress {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   MODAL ACTIONS BUTTON
   ============================================ */
.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.modal-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-actions .btn-primary svg {
    width: 16px;
    height: 16px;
}