/* ================================================================
   🔥 InFlames Corporation Onboarding Portal - Sci-Fi Styling
   ================================================================ */

:root {
    --bg-dark: #080a0f;
    --bg-card: rgba(18, 22, 30, 0.85);
    --bg-card-hover: rgba(26, 32, 44, 0.95);
    --border-color: rgba(255, 85, 0, 0.2);
    --border-glow: rgba(255, 85, 0, 0.5);
    --primary: #ff5500;
    --primary-glow: rgba(255, 85, 0, 0.4);
    --primary-hover: #ff7700;
    --accent-gold: #ffaa00;
    --blue-ally: #00b4d8;
    --blue-glow: rgba(0, 180, 216, 0.35);
    --text-main: #f0f3f6;
    --text-muted: #8b949e;
    --text-dim: #555e6d;
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-heading: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 68, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(0, 150, 255, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #090b10 0%, #050608 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

/* Header */
.header {
    background: rgba(10, 13, 20, 0.9);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.flame-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(255, 85, 0, 0.7));
    animation: flamePulse 2.5s infinite alternate;
}

@keyframes flamePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 85, 0, 0.5)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 16px rgba(255, 120, 0, 0.9)); }
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

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

.brand-text p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Language selector */
.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Safe mode badge in header */
.safe-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stepper Navigation */
.stepper-wrapper {
    margin: 32px 0 24px 0;
}

.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    list-style: none;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111520;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    max-width: 140px;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: #1a0f08;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

.step-item.active .step-label {
    color: #fff;
    font-weight: 700;
}

.step-item.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 0 12px var(--success-glow);
}

.step-item.completed .step-label {
    color: var(--success);
}

/* Card Container */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 36px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-card.active {
    display: block;
}

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

.step-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 6px;
}

/* Step 1: Auth Grid */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.auth-box {
    background: rgba(12, 16, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.auth-box:hover {
    border-color: var(--border-glow);
    background: rgba(16, 20, 30, 0.85);
}

.auth-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-box-icon {
    font-size: 28px;
}

.auth-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.auth-box-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Profile Card inside Auth Box */
.pilot-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 85, 0, 0.3);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px;
}

.pilot-avatar {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    object-fit: cover;
}

.pilot-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.pilot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-corp {
    background: rgba(255, 85, 0, 0.2);
    border: 1px solid var(--primary);
    color: #ffaa55;
}

.badge-blue {
    background: rgba(0, 180, 216, 0.2);
    border: 1px solid var(--blue-ally);
    color: #90e0ef;
}

.badge-guest {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ccc;
}

.badge-sec {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

/* Role Result Banner */
.role-result-banner {
    background: rgba(14, 18, 26, 0.9);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.role-result-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.role-badge-large {
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff5500, #ff7700);
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6600, #ff8800);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.6);
    transform: translateY(-1px);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #4752c4;
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(255, 85, 0, 0.1);
}

/* Nav Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Step 2: SeAT Guide */
.guide-card {
    background: rgba(12, 16, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.step-box-item {
    background: rgba(20, 26, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 18px;
    border-top: 3px solid var(--blue-ally);
}

.step-box-item h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 8px;
}

.step-box-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
    padding: 14px 18px;
    border-radius: 6px;
    color: #fde68a;
    font-size: 13px;
    margin: 16px 0;
}

/* Step 4: Rules Accordion */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rule-group {
    background: rgba(12, 16, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.rule-group-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-item {
    margin-bottom: 16px;
    background: rgba(18, 24, 34, 0.6);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.rule-item.blue {
    border-left-color: var(--blue-ally);
}

.rule-item h5 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.rule-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.contacts-card {
    background: rgba(255, 85, 0, 0.06);
    border: 1px dashed var(--primary);
    border-radius: 10px;
    padding: 16px;
    margin-top: 18px;
}

.contacts-card h5 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 10px;
}

.contacts-card p {
    font-size: 13px;
    color: #ddd;
    margin-bottom: 4px;
}

/* Step 5: Checklist */
.checklist {
    list-style: none;
    margin: 24px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(14, 18, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #fff;
}

.checklist-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid var(--success);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.final-card {
    text-align: center;
    padding: 36px 20px;
    background: radial-gradient(circle at center, rgba(255, 85, 0, 0.12) 0%, rgba(14, 18, 28, 0.9) 70%);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    margin-top: 24px;
}

.final-card h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: #fff;
    margin-bottom: 10px;
}

.final-card p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 24px auto;
}

/* Demo simulation buttons */
.demo-bar {
    margin-top: 20px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.demo-buttons {
    display: flex;
    gap: 8px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 6px;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-grid, .rules-grid {
        grid-template-columns: 1fr;
    }
    .stepper::before {
        display: none;
    }
    .stepper {
        flex-wrap: wrap;
        gap: 12px;
    }
    .step-label {
        font-size: 11px;
    }
    .header-inner {
        flex-direction: column;
        gap: 14px;
    }
    .demo-bar {
        flex-direction: column;
        gap: 10px;
    }
}
