/**
 * Red/Blue Team Mode Styles
 * Attack vs Defense simulation interface
 * Glassmorphism treatment applied
 */

/* ===== Page Header ===== */
.rb-page-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(18, 18, 26, 0.6) 50%, rgba(14, 165, 233, 0.1) 100%);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.rb-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, transparent);
}

.rb-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0ea5e9);
}

.rb-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.rb-header-icons {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.rb-icon-red {
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

.rb-icon-blue {
    color: #0ea5e9;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.4));
}

.rb-header-text h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.rb-header-text h1 .title-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #ef4444, #0ea5e9);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 0.75rem;
}

.rb-header-text p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
}

/* ===== Scenarios Grid ===== */
.rb-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rb-scenario-card {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.6) 0%, rgba(18, 18, 26, 0.3) 100%);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    position: relative;
    overflow: hidden;
}

.rb-scenario-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%));
    pointer-events: none;
}

.rb-scenario-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--neon-purple-sm, 0 0 15px rgba(168, 85, 247, 0.1));
}

.rb-scenario-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.rb-scenario-category.network_defense {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.rb-scenario-category.web_defense {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.rb-scenario-category.incident_response {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rb-scenario-category.threat_hunting {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.rb-scenario-category.malware_defense {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.rb-scenario-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.rb-scenario-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.rb-scenario-difficulty {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.rb-scenario-difficulty.easy { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.rb-scenario-difficulty.medium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.rb-scenario-difficulty.hard { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.rb-scenario-meta {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.rb-scenario-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rb-scenario-meta-item i {
    font-size: 0.8rem;
    color: var(--primary);
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.4));
}

/* Role Selection */
.rb-role-buttons {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.rb-role-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    background: transparent;
}

.rb-role-btn.red {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.rb-role-btn.red:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.rb-role-btn.blue {
    border-color: rgba(14, 165, 233, 0.3);
    color: #0ea5e9;
}

.rb-role-btn.blue:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

/* ===== Simulation View ===== */
.rb-simulation {
    animation: fadeIn 0.3s ease;
}

.rb-sim-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.6) 0%, rgba(18, 18, 26, 0.3) 100%);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.rb-sim-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%));
    pointer-events: none;
}

.rb-sim-back {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    position: relative;
    z-index: 1;
}

.rb-sim-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.rb-sim-title {
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    position: relative;
    z-index: 1;
}

.rb-sim-round {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.rb-sim-score {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.rb-role-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.rb-role-badge.red_team {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rb-role-badge.blue_team {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Main Simulation Layout */
.rb-sim-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

/* Network Topology Panel */
.rb-network-panel {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.6) 0%, rgba(18, 18, 26, 0.3) 100%);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.rb-network-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%));
    pointer-events: none;
}

.rb-network-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.rb-network-title i {
    color: var(--primary);
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.4));
}

.rb-network-map {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    min-height: 200px;
    position: relative;
    z-index: 1;
}

.rb-node {
    width: 90px;
    height: 90px;
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    position: relative;
}

.rb-node i {
    font-size: 1.5rem;
}

.rb-node span {
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-muted);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rb-node.safe {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.rb-node.safe i { color: #00ff88; }

.rb-node.compromised {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
    animation: rbCompromisePulse 2s ease-in-out infinite;
}

.rb-node.compromised i { color: #ef4444; }

@keyframes rbCompromisePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
}

.rb-node.isolated {
    border-color: rgba(245, 158, 11, 0.5);
    border-style: dashed;
    opacity: 0.7;
}

.rb-node.isolated i { color: #f59e0b; }

.rb-node-status {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(18, 18, 26, 0.6);
}

.rb-node-status.safe { background: #00ff88; }
.rb-node-status.compromised { background: #ef4444; }
.rb-node-status.isolated { background: #f59e0b; }

/* Action Panel */
.rb-action-panel {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.6) 0%, rgba(18, 18, 26, 0.3) 100%);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

.rb-action-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%));
    pointer-events: none;
    border-radius: var(--radius-lg, 16px);
}

.rb-action-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.rb-action-title.red { color: #ef4444; }
.rb-action-title.blue { color: #0ea5e9; }

.rb-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.rb-action-item {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rb-action-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: var(--neon-purple-sm, 0 0 15px rgba(168, 85, 247, 0.1));
}

.rb-action-item.used {
    opacity: 0.5;
    cursor: not-allowed;
    border-style: dashed;
}

.rb-action-item.executing {
    border-color: var(--primary);
    animation: rbActionPulse 1s ease-in-out;
}

@keyframes rbActionPulse {
    0% { box-shadow: 0 0 0 rgba(0, 255, 136, 0); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.3); }
    100% { box-shadow: 0 0 0 rgba(0, 255, 136, 0); }
}

.rb-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rb-action-icon.attack {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.rb-action-icon.defense {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

.rb-action-info {
    flex: 1;
    min-width: 0;
}

.rb-action-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.rb-action-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-action-cost {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.rb-action-cost.damage {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.rb-action-cost.defense-cost {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

/* Phase Indicator */
.rb-phase-bar {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.rb-phase-step {
    flex: 1;
    height: 4px;
    background: var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: 2px;
    transition: background 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.rb-phase-step.completed { background: var(--primary); }
.rb-phase-step.active { background: #f59e0b; animation: rbPhasePulse 1.5s ease-in-out infinite; }

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

.rb-phase-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rb-phase-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rb-phase-label.active { color: #f59e0b; font-weight: 600; }
.rb-phase-label.completed { color: var(--primary); }

/* Activity Log */
.rb-log-panel {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.6) 0%, rgba(18, 18, 26, 0.3) 100%);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 1.25rem;
    max-height: 250px;
    position: relative;
    overflow: hidden;
}

.rb-log-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%));
    pointer-events: none;
}

.rb-log-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.rb-log-title i { color: var(--text-muted); }

.rb-log-entries {
    max-height: 180px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.rb-log-entries::-webkit-scrollbar {
    width: 4px;
}

.rb-log-entries::-webkit-scrollbar-track {
    background: transparent;
}

.rb-log-entries::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.15);
    border-radius: 2px;
}

.rb-log-entries::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.3);
}

.rb-log-entry {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.rb-log-time {
    color: var(--text-muted);
    font-size: 0.7rem;
    white-space: nowrap;
    min-width: 55px;
}

.rb-log-icon {
    width: 16px;
    text-align: center;
}

.rb-log-icon.attack { color: #ef4444; }
.rb-log-icon.defense { color: #0ea5e9; }
.rb-log-icon.success { color: #00ff88; }
.rb-log-icon.fail { color: #f59e0b; }
.rb-log-icon.info { color: var(--text-muted); }

.rb-log-text {
    color: var(--text);
    flex: 1;
}

.rb-log-text .highlight { color: var(--primary); font-weight: 600; }
.rb-log-text .danger { color: #ef4444; font-weight: 600; }
.rb-log-text .info { color: #0ea5e9; }

/* ===== Results Screen ===== */
.rb-results {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.7) 0%, rgba(18, 18, 26, 0.4) 100%);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.rb-results::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass, linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%));
    pointer-events: none;
}

.rb-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.rb-results-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.rb-results-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.rb-results-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    position: relative;
    z-index: 1;
}

.rb-results-stat {
    text-align: center;
}

.rb-results-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
}

.rb-results-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rb-results-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.rb-results-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.rb-results-btn.primary {
    background: var(--gradient);
    border: none;
    color: var(--dark);
}

.rb-results-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--neon-green-sm, 0 0 15px rgba(0, 255, 136, 0.08));
}

.rb-results-btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    color: var(--text);
}

.rb-results-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Loading/Empty ===== */
.rb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.rb-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .rb-header-content {
        flex-direction: column;
        text-align: center;
    }

    .rb-scenarios-grid {
        grid-template-columns: 1fr;
    }

    .rb-sim-header {
        flex-wrap: wrap;
    }

    .rb-sim-body {
        grid-template-columns: 1fr;
    }

    .rb-role-buttons {
        flex-direction: column;
    }

    .rb-network-map {
        gap: 0.5rem;
    }

    .rb-node {
        width: 70px;
        height: 70px;
    }

    .rb-node i {
        font-size: 1.2rem;
    }

    .rb-results-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@supports not (backdrop-filter: blur(1px)) {
    .rb-page-header { background: rgba(18, 18, 26, 0.95); }
    .rb-scenario-card { background: rgba(18, 18, 26, 0.95); }
    .rb-sim-header { background: rgba(18, 18, 26, 0.95); }
    .rb-results { background: rgba(18, 18, 26, 0.95); }
}
