/**
 * Attack Chains - Multi-Step Attack Simulation Styles
 * Terminal-based progressive attack scenarios
 * Glassmorphism treatment applied
 */

/* ===== Custom Scrollbar ===== */
.ac-terminal-output::-webkit-scrollbar,
.ac-discovery-panel::-webkit-scrollbar,
.ac-phase-progress::-webkit-scrollbar {
    width: 4px;
}

.ac-terminal-output::-webkit-scrollbar-track,
.ac-discovery-panel::-webkit-scrollbar-track,
.ac-phase-progress::-webkit-scrollbar-track {
    background: transparent;
}

.ac-terminal-output::-webkit-scrollbar-thumb,
.ac-discovery-panel::-webkit-scrollbar-thumb,
.ac-phase-progress::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.15);
    border-radius: 2px;
}

.ac-terminal-output::-webkit-scrollbar-thumb:hover,
.ac-discovery-panel::-webkit-scrollbar-thumb:hover,
.ac-phase-progress::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.25);
}

/* ===== Page Header ===== */
.ac-page-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(239, 68, 68, 0.05) 50%, rgba(0, 255, 136, 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;
}

.ac-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #ef4444, #00ff88, #a855f7);
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ac-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ac-header-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(239, 68, 68, 0.2));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4));
}

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

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

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

/* ===== Chain Cards Grid ===== */
.ac-chains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ac-chain-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;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    position: relative;
    overflow: hidden;
}

.ac-chain-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-3px);
    box-shadow: var(--neon-purple-sm, 0 0 15px rgba(168, 85, 247, 0.1)), 0 8px 25px rgba(168, 85, 247, 0.15);
}

.ac-chain-card.in-progress {
    border-color: rgba(245, 158, 11, 0.4);
}

.ac-chain-card.in-progress::after {
    content: 'NE PROGRES';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f59e0b;
    color: var(--dark);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.ac-chain-card.completed {
    border-color: rgba(0, 255, 136, 0.3);
}

.ac-chain-card.completed::after {
    content: '\f00c  PERFUNDUAR';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #00ff88;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: var(--radius-full);
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
}

.ac-chain-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: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.ac-chain-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ac-chain-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ac-chain-meta {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
}

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

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

.ac-chain-progress {
    margin-top: 0.75rem;
}

.ac-chain-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.ac-chain-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.3);
}

.ac-chain-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

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

/* Top Bar */
.ac-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;
}

.ac-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));
}

.ac-sim-back:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
}

.ac-sim-title {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
}

.ac-sim-phase {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ac-sim-step {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.3rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
}

/* Phase Progress */
.ac-phase-progress {
    display: flex;
    gap: 0.5rem;
    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;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ac-phase-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    position: relative;
}

.ac-phase-node::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 55%;
    right: -50%;
    height: 2px;
    background: var(--glass-border, rgba(255, 255, 255, 0.06));
    z-index: 0;
}

.ac-phase-node:last-child::after {
    display: none;
}

.ac-phase-node.completed::after {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.ac-phase-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 1;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.ac-phase-node.completed .ac-phase-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4), 0 0 24px rgba(0, 255, 136, 0.15);
}

.ac-phase-node.active .ac-phase-dot {
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), 0 0 24px rgba(245, 158, 11, 0.15);
    animation: acPhasePulse 2s ease-in-out infinite;
}

@keyframes acPhasePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.3), 0 0 16px rgba(245, 158, 11, 0.1); }
    50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.5), 0 0 32px rgba(245, 158, 11, 0.2); }
}

.ac-phase-name {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.ac-phase-node.completed .ac-phase-name {
    color: var(--primary);
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
}

.ac-phase-node.active .ac-phase-name {
    color: #f59e0b;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Main Layout */
.ac-sim-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
}

/* Discovery Panel (Left) */
.ac-discovery-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;
}

.ac-discovery-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.ac-discovery-title i {
    color: #f59e0b;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

.ac-discovery-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ac-discovery-item {
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    font-size: 0.8rem;
    box-shadow: -3px 0 8px rgba(0, 255, 136, 0.1);
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.ac-discovery-item .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.ac-discovery-item .value {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.8rem;
    word-break: break-all;
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
}

/* Objective & Hints */
.ac-objective {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(168, 85, 247, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius);
}

.ac-objective-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a855f7;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.ac-objective-text {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.4;
}

.ac-hint-buttons {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.4rem;
}

.ac-hint-btn {
    flex: 1;
    padding: 0.4rem;
    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);
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    text-align: center;
}

.ac-hint-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.ac-hint-btn.unlocked {
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.ac-hint-content {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(245, 158, 11, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--text);
}

/* Terminal Panel (Right) */
.ac-terminal-panel {
    background: rgba(0, 0, 0, 0.85);
    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);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ac-terminal-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 136, 0.012) 2px, rgba(0, 255, 136, 0.012) 4px);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.ac-terminal-header {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.ac-terminal-dots {
    display: flex;
    gap: 0.3rem;
}

.ac-terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ac-terminal-dots .red { background: #ef4444; }
.ac-terminal-dots .yellow { background: #f59e0b; }
.ac-terminal-dots .green { background: #00ff88; }

.ac-terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
    position: relative;
    z-index: 2;
}

.ac-terminal-status {
    font-size: 0.7rem;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    position: relative;
    z-index: 2;
}

.ac-terminal-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
    animation: termDotBlink 2s ease-in-out infinite;
}

@keyframes termDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ac-terminal-output {
    flex: 1;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.ac-terminal-line {
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 2;
}

.ac-terminal-line .prompt {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.ac-terminal-line .command {
    color: var(--text);
}

.ac-terminal-line .output {
    color: var(--text-muted);
    white-space: pre-wrap;
}

.ac-terminal-line .success {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.ac-terminal-line .error {
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.ac-terminal-line .flag {
    color: #f59e0b;
    font-weight: 700;
    animation: acFlagReveal 1s ease;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes acFlagReveal {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.ac-terminal-input-line {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06));
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.ac-terminal-input-line .prompt {
    color: #00ff88;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-right: 0.5rem;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.ac-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    caret-color: var(--primary);
    position: relative;
    z-index: 2;
}

.ac-terminal-input::placeholder {
    color: rgba(113, 113, 122, 0.5);
}

/* ===== Results ===== */
.ac-results {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.6) 0%, rgba(18, 18, 26, 0.3) 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: 2.5rem;
    text-align: center;
    max-width: 650px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.ac-results::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    pointer-events: none;
    border-radius: inherit;
}

.ac-results-badge {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.ac-results h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.ac-results p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.ac-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: 2;
}

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

.ac-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));
}

.ac-results-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

.ac-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));
}

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

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

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

.ac-results-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-shadow: var(--neon-green-text, 0 0 20px rgba(0, 255, 136, 0.4));
}

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

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

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

    .ac-chains-grid {
        grid-template-columns: 1fr;
    }

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

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

    .ac-phase-progress {
        overflow-x: auto;
    }

    .ac-phase-name {
        font-size: 0.55rem;
    }

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

@supports not (backdrop-filter: blur(1px)) {
    .ac-page-header { background: rgba(18, 18, 26, 0.95); }
    .ac-chain-card { background: rgba(18, 18, 26, 0.95); }
    .ac-terminal-panel { background: rgba(0, 0, 0, 0.97); }
    .ac-results { background: rgba(18, 18, 26, 0.95); }
}
