.attacksuite-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #110a0a;
    color: #ddbfbf;
    font-size: 12px;
    font-family: "Cascadia Code", "Fira Code", monospace;
}

/* ── Header ── */
.attacksuite-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: linear-gradient(180deg, #1e0e0e 0%, #1a0d0d 100%);
    border-bottom: 1px solid #3a1a1a;
    flex-shrink: 0;
}

.attacksuite-title {
    font-size: 14px;
    font-weight: 700;
    color: #ff4444;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(255, 68, 68, 0.3);
}

.attacksuite-status-bar {
    font-size: 10px;
    color: #664444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attacksuite-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #1a0d0d;
    border: 1px solid #3a1a1a;
}

.attacksuite-stats-badge .as-win { color: #3fb950; }
.attacksuite-stats-badge .as-fail { color: #f85149; }
.attacksuite-stats-badge .as-sep { color: #3a1a1a; }

/* ── Body layout ── */
.attacksuite-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.attacksuite-left {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid #3a1a1a;
    display: flex;
    flex-direction: column;
    background: #1a0d0d;
    overflow-y: auto;
}

.attacksuite-section {
    padding: 10px;
    border-bottom: 1px solid #3a1a1a;
}

.attacksuite-section-label {
    font-size: 10px;
    color: #664444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* ── Target select ── */
.attacksuite-select {
    width: 100%;
    background: #110a0a;
    border: 1px solid #3a1a1a;
    color: #ff8888;
    font-size: 11px;
    font-family: inherit;
    padding: 5px 6px;
    border-radius: 3px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.attacksuite-select:focus {
    border-color: #ff4444;
    box-shadow: 0 0 4px rgba(255, 68, 68, 0.2);
}

/* ── Attack type tabs ── */
.attacksuite-attack-tabs {
    display: flex;
    flex-shrink: 0;
    gap: 2px;
}

.attacksuite-attack-tab {
    flex: 1;
    padding: 7px 4px;
    border: none;
    background: transparent;
    color: #664444;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    text-align: center;
    transition: color 0.15s, background 0.15s;
    border-radius: 3px 3px 0 0;
}

.attacksuite-attack-tab:hover {
    color: #ddbfbf;
    background: rgba(255, 68, 68, 0.05);
}
.attacksuite-attack-tab.active {
    color: #ff4444;
    border-bottom-color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
}

/* ── Engage area ── */
.attacksuite-engage-area {
    padding: 10px;
    margin-top: auto;
}

.attacksuite-engage-btn {
    width: 100%;
    padding: 10px;
    background: #2a0a0a;
    border: 2px solid #ff4444;
    color: #ff4444;
    font-size: 14px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 2px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.attacksuite-engage-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 68, 68, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s;
}

.attacksuite-engage-btn:hover:not(:disabled) {
    background: #3a1010;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.4), inset 0 0 12px rgba(255, 68, 68, 0.1);
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}
.attacksuite-engage-btn:hover:not(:disabled)::before { opacity: 1; }

.attacksuite-engage-btn:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
}
.attacksuite-engage-btn.running {
    animation: attacksuite-pulse 0.8s ease-in-out infinite;
    background: #3a1010;
}

/* Visual pulse burst on engage click */
.attacksuite-engage-btn.engage-flash {
    animation: attacksuite-engage-flash 0.4s ease-out;
}

@keyframes attacksuite-engage-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(255, 68, 68, 0.4);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 4px rgba(255, 68, 68, 0.2);
        transform: scale(1);
    }
}

@keyframes attacksuite-pulse {
    0%, 100% { box-shadow: 0 0 4px #ff4444; }
    50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.6), inset 0 0 8px rgba(255, 68, 68, 0.15); }
}

/* ── Progress bar ── */
.attacksuite-progress {
    margin-top: 8px;
    height: 6px;
    background: #3a1a1a;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.attacksuite-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444 0%, #ff6644 50%, #ff4444 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.2s ease-out;
    position: relative;
}

.attacksuite-progress-fill.active {
    animation: attacksuite-progress-shimmer 1.5s linear infinite;
}

@keyframes attacksuite-progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.attacksuite-progress-fill.complete {
    background: #3fb950;
    transition: width 0.15s, background 0.3s;
}

.attacksuite-progress-fill.failed {
    background: #f85149;
    transition: width 0.15s, background 0.3s;
}

/* ── Tool info ── */
.attacksuite-tool-info {
    font-size: 10px;
    color: #664444;
    margin-top: 6px;
    line-height: 1.4;
}

/* ── Results panel ── */
.attacksuite-right {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    scroll-behavior: smooth;
}

.attacksuite-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #3a1a1a;
    padding-bottom: 6px;
}

.attacksuite-results-title {
    font-size: 11px;
    color: #664444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.attacksuite-results-count {
    font-size: 9px;
    color: #664444;
    padding: 1px 5px;
    border: 1px solid #3a1a1a;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* ── Result cards ── */
.attacksuite-result-card {
    background: #1a0d0d;
    border: 1px solid #3a1a1a;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    animation: attacksuite-card-enter 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.attacksuite-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 6px 0 0 6px;
}

.attacksuite-result-card.success {
    border-color: #2d6a3e;
    background: linear-gradient(135deg, #0d1a10 0%, #1a0d0d 40%);
}
.attacksuite-result-card.success::before { background: #3fb950; }

.attacksuite-result-card.failure {
    border-color: #4a2020;
}
.attacksuite-result-card.failure::before { background: #f85149; }

@keyframes attacksuite-card-enter {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.attacksuite-result-status {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.attacksuite-result-status.success { color: #3fb950; }
.attacksuite-result-status.failure { color: #f85149; }

/* ── ASCII progress bars in results ── */
.attacksuite-ascii-bar {
    font-family: monospace;
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.attacksuite-ascii-bar.success { color: #3fb950; }
.attacksuite-ascii-bar.failure { color: #f85149; }

/* ── Result metadata ── */
.attacksuite-result-meta {
    font-size: 11px;
    color: #998888;
    line-height: 1.6;
}

.attacksuite-result-meta .label { color: #664444; }
.attacksuite-result-meta .val-good { color: #3fb950; font-weight: 600; }
.attacksuite-result-meta .val-bad { color: #f85149; font-weight: 600; }
.attacksuite-result-meta .val-xp { color: #58a6ff; font-weight: 600; }

/* ── Loot and alert boxes ── */
.attacksuite-loot-box {
    background: #0a1a0a;
    border: 1px solid #3fb950;
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 11px;
    color: #3fb950;
    box-shadow: 0 0 6px rgba(63, 185, 80, 0.1);
}

.attacksuite-alert-box {
    background: #2a0a0a;
    border: 1px solid #f85149;
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 11px;
    color: #f85149;
    animation: attacksuite-alert-flash 0.6s ease-out;
    box-shadow: 0 0 6px rgba(248, 81, 73, 0.15);
}

@keyframes attacksuite-alert-flash {
    0% { background: rgba(248, 81, 73, 0.15); }
    100% { background: #2a0a0a; }
}

.attacksuite-target-info {
    background: #1a0d0d;
    border: 1px solid #3a1a1a;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
}

.attacksuite-target-ip {
    font-size: 16px;
    font-weight: 700;
    color: #ff8888;
    margin-bottom: 4px;
}

/* ── Vulnerability list ── */
.attacksuite-vuln-list {
    margin-top: 8px;
}

.attacksuite-vuln-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    font-size: 11px;
    border-left: 2px solid transparent;
    margin-bottom: 1px;
}

.attacksuite-vuln-item:hover {
    background: #2a1a1a;
    border-left-color: #664444;
}
.attacksuite-vuln-item.selected {
    background: #2a0a0a;
    border-left-color: #ff4444;
}

.attacksuite-vuln-name {
    color: #ff8888;
    font-weight: 700;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attacksuite-vuln-diff {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    background: #2a1a00;
    color: #d29922;
    flex-shrink: 0;
}
.attacksuite-vuln-diff.easy { background: #0a1a0a; color: #3fb950; }
.attacksuite-vuln-diff.hard { background: #2a0a0a; color: #f85149; }

/* ── Tool compatibility badges ── */
.attacksuite-compat-primary {
    color: #3fb950;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.2);
    flex-shrink: 0;
}
.attacksuite-compat-secondary {
    color: #d29922;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.2);
    flex-shrink: 0;
}
.attacksuite-compat-none {
    color: #f85149;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.15);
    flex-shrink: 0;
}

/* ── Placeholder ── */
.attacksuite-placeholder {
    text-align: center;
    color: #444;
    padding: 40px 20px;
}

.attacksuite-placeholder-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.4;
    animation: attacksuite-placeholder-pulse 3s ease-in-out infinite;
}

@keyframes attacksuite-placeholder-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

/* ── Scrollbar styling (results panel) ── */
.attacksuite-right::-webkit-scrollbar { width: 6px; }
.attacksuite-right::-webkit-scrollbar-track { background: transparent; }
.attacksuite-right::-webkit-scrollbar-thumb {
    background: #3a1a1a;
    border-radius: 3px;
}
.attacksuite-right::-webkit-scrollbar-thumb:hover { background: #664444; }

.attacksuite-left::-webkit-scrollbar { width: 5px; }
.attacksuite-left::-webkit-scrollbar-track { background: transparent; }
.attacksuite-left::-webkit-scrollbar-thumb {
    background: #3a1a1a;
    border-radius: 3px;
}

/* ── Tier-up banner ── */
.attacksuite-tier-box {
    background: linear-gradient(135deg, #1a1a00 0%, #1a0d0d 60%);
    border: 1px solid #d29922;
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 11px;
    color: #d29922;
    box-shadow: 0 0 8px rgba(210, 153, 34, 0.15);
    animation: attacksuite-card-enter 0.3s ease-out;
}
