/* PRO UI - DEGEN FILTER STYLES - SOFT SOLANA EDITION */
:root {
    --solana-purple: #9945FF;
    --solana-green: #14F195;
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --soft-radius: 12px;
    --input-radius: 8px;
}

    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}

.filter-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
}

/* Custom Scrollbar - Softer */
.filter-scroll-container::-webkit-scrollbar {
    width: 4px;
}
.filter-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.filter-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.filter-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(153, 69, 255, 0.5);
}

/* Headers - Softer Typography */
.degen-header {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    /* Subtle glow instead of harsh shadow */
    text-shadow: 0 0 20px rgba(153, 69, 255, 0.3);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--solana-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 28px 0 12px 0;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(20, 241, 149, 0.2) 0%, transparent 100%);
}

/* Input Grid */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 11px;
    color: #8890a0;
    font-weight: 500;
}

/* Pro Inputs - Softer & Glassy */
.pro-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--input-radius);
    padding: 10px 12px;
    color: #fff;
    font-family: 'Inter', sans-serif; /* Cleaner font than Mono for inputs */
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.pro-input:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.pro-input:focus {
    outline: none;
    border-color: var(--solana-purple);
    background: rgba(153, 69, 255, 0.08);
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.15);
    transform: translateY(-1px);
}

.pro-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

/* Checkboxes - Softer Style */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.pro-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #b0b0b0;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 20px; /* Pill shape */
    border: 1px solid transparent;
}

.pro-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.pro-checkbox input {
    appearance: none;
    width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px; /* Softer checkbox */
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
}

.pro-checkbox input:checked {
    background: var(--solana-green);
    border-color: var(--solana-green);
    box-shadow: 0 0 10px rgba(20, 241, 149, 0.3);
}

.pro-checkbox input:checked::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    left: 5px;
    top: 2px;
    transform: rotate(45deg);
}

/* Bottom Action Bar - Floating Effect */
.action-bar {
    padding: 20px;
    /* Gradient fade-out background */
    background: linear-gradient(0deg, #000000 0%, rgba(0,0,0,0.8) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
}

.btn-run {
    flex: 1;
    /* Solana Gradient */
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border: none;
    padding: 14px;
    border-radius: var(--soft-radius);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(20, 241, 149, 0.2);
}

.btn-run:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(153, 69, 255, 0.4);
}

.btn-run:active {
    transform: translateY(1px);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 0 18px;
    border-radius: var(--soft-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Metrics Overlay - Glass Card */
.session-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--soft-radius);
    padding: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow accent for the stats card */
.session-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--solana-purple), var(--solana-green));
    opacity: 0.7;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label { 
    color: #8890a0;
    font-weight: 500;
}
.stat-val { 
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    background: rgba(20, 241, 149, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--solana-green);
}

/* Animation for focus */
@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(153, 69, 255, 0.2); }
    50% { box-shadow: 0 0 15px rgba(153, 69, 255, 0.4); }
    100% { box-shadow: 0 0 5px rgba(153, 69, 255, 0.2); }
}

/* =============================================
   NEW: TEST ENGINE LAYOUT (55/45 split)
   ============================================= */

/* =============================================
   TEST ENGINE 3-COLUMN LAYOUT
   ============================================= */
.test-engine-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 16px !important;
    min-height: 100vh;
    height: calc(100vh - 40px) !important;
    background: radial-gradient(circle at top, #10192a 0, #04070c 55%, #000 100%);
    width: 100%;
    padding: 16px !important;
    box-sizing: border-box !important;
    transition: width 0.3s ease;
    position: relative;
}

/* When main sidebar is VISIBLE, constrain Test Engine width */
.main-content.sidebar-visible .test-engine-layout {
    width: calc(100vw - 280px);
}

.test-engine-sidebar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.95), rgba(5, 8, 18, 0.98));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.test-engine-sidebar.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Test Card Info Panel */
.test-card-info-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(153, 69, 255, 0.12) 0%, rgba(20, 241, 149, 0.05) 40%, #080808 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
    will-change: transform, opacity;
}

.test-card-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.test-card-info-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
    margin-left: auto;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
}

.test-card-info-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.test-card-info-content::-webkit-scrollbar {
    width: 6px;
}

.test-card-info-content::-webkit-scrollbar-track {
    background: transparent;
}

.test-card-info-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.test-card-info-content::-webkit-scrollbar-thumb:hover {
    background: rgba(153, 69, 255, 0.5);
}

.test-dashboard-main {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid rgba(20, 241, 149, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.95), rgba(5, 8, 18, 0.98));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Third Panel: Test Details */
.test-details-panel {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    overflow: hidden;
    border: 1px solid rgba(65, 243, 255, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.95), rgba(5, 8, 18, 0.98));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.test-details-panel .panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.test-details-panel .panel-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: 0.05em;
}

.test-details-panel .panel-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.test-details-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Test Details Prompt */
.test-details-prompt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.test-details-prompt .prompt-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.test-details-prompt h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.test-details-prompt p {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.5;
    max-width: 200px;
}

/* =============================================
   TRIGGER CONDITIONS
   ============================================= */

.trigger-condition {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.trigger-condition:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.trigger-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    min-width: 140px;
    flex-shrink: 0;
}

.trigger-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 8px 10px;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    transition: all 0.2s ease;
    width: 100%;
}

.trigger-input:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.trigger-input:focus {
    outline: none;
    border-color: var(--solana-purple);
    background: rgba(153, 69, 255, 0.08);
    box-shadow: 0 0 12px rgba(153, 69, 255, 0.15);
}

.trigger-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.trigger-unit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    min-width: 30px;
    text-align: right;
}

.trigger-info-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin: 16px 0 24px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 2px solid var(--solana-green);
}

/* Info icon + tooltip */
.trigger-info-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(20, 241, 149, 0.1);
    border: 1px solid rgba(20, 241, 149, 0.3);
    color: var(--solana-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    cursor: help;
    margin-left: 8px;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1;
}

.trigger-info-btn:hover {
    background: rgba(20, 241, 149, 0.2);
    border-color: var(--solana-green);
    transform: scale(1.1);
}

.trigger-info-btn .trigger-tooltip {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    max-width: 260px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    white-space: normal;
}

.trigger-info-btn .trigger-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.95);
}

.trigger-info-btn:hover .trigger-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.trigger-validation {
    font-size: 11px;
    color: #ff4b81;
    margin-top: 8px;
    display: none;
}

.trigger-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    font-style: italic;
}

/* =============================================
   DASHBOARD HEADER (RIGHT SIDE)
   ============================================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-title h2 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(153, 69, 255, 0.3);
}

.dashboard-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.test-count {
    font-size: 12px;
    color: var(--solana-green);
    background: rgba(20, 241, 149, 0.1);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-new-test {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(20, 241, 149, 0.2);
}

.btn-new-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(153, 69, 255, 0.3);
}

.btn-new-test span {
    font-size: 14px;
}

/* =============================================
   COMPACT TEST CARDS
   ============================================= */

.tests-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.test-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--soft-radius);
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--solana-purple), var(--solana-green));
    opacity: 0.7;
}

.test-card:hover::before {
    opacity: 1;
}

.test-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 69, 255, 0.12);
}

.test-card.running {
    /* Green accent already handled by ::before */
}

.test-card.completed {
    opacity: 0.9;
}

.test-card.selected {
    border-color: var(--solana-green) !important;
    background: rgba(20, 241, 149, 0.05) !important;
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.2);
}

.test-card.selected::before {
    background: var(--solana-green);
    opacity: 1;
}

/* Test Detail Header in Third Panel */
.test-detail-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.test-detail-header-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* =============================================
   TEST CARD HEADER
   ============================================= */

.test-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.test-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.3px;
}

.test-status-badge {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-status-badge.running {
    background: rgba(20, 241, 149, 0.15);
    color: var(--solana-green);
    animation: pulseGlow 2s ease-in-out infinite;
}

.test-status-badge.completed {
    background: rgba(153, 69, 255, 0.15);
    color: var(--solana-purple);
}

.test-card-timing {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

/* =============================================
   PROGRESS BAR
   ============================================= */

.test-progress-section {
    margin-bottom: 14px;
}

.progress-bar-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--solana-purple), var(--solana-green));
    border-radius: 8px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* =============================================
   TEST STATS GRID
   ============================================= */

.test-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.test-stat {
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.test-stat:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.test-stat .stat-label {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.test-stat .stat-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    color: #fff;
}

.test-stat .stat-value.success {
    color: var(--solana-green);
}

.test-stat .stat-value.warning {
    color: #FFD700;
}

.test-stat .stat-value.danger {
    color: #ff4b81;
}

/* =============================================
   TRIGGER TAGS
   ============================================= */

.trigger-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
    max-height: 32px;
    overflow: hidden;
}

.trigger-tag {
    font-size: 9px;
    background: rgba(153, 69, 255, 0.08);
    color: var(--solana-purple);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(153, 69, 255, 0.15);
    font-weight: 600;
    white-space: nowrap;
}

/* =============================================
   TEST ACTION BUTTONS
   ============================================= */

.test-actions {
    display: flex;
    justify-content: center;
}

.btn-test-action {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    min-width: 120px;
}

.btn-test-action.view {
    background: rgba(20, 241, 149, 0.1);
    border-color: rgba(20, 241, 149, 0.3);
    color: var(--solana-green);
}

.btn-test-action.view:hover {
    background: rgba(20, 241, 149, 0.15);
    border-color: var(--solana-green);
}

.btn-test-action.stop {
    background: rgba(255, 75, 129, 0.1);
    border-color: rgba(255, 75, 129, 0.3);
    color: #ff4b81;
}

.btn-test-action.stop:hover {
    background: rgba(255, 75, 129, 0.15);
    border-color: #ff4b81;
}

.btn-test-action.rerun {
    background: rgba(153, 69, 255, 0.1);
    border-color: rgba(153, 69, 255, 0.3);
    color: var(--solana-purple);
}

.btn-test-action.rerun:hover {
    background: rgba(153, 69, 255, 0.15);
    border-color: var(--solana-purple);
}

/* Sniper Button Style */
.btn-test-action.sniper {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    font-size: 10px;
    padding: 6px 12px;
    min-width: 100px;
}

.btn-test-action.sniper:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
}

/* =============================================
   SNIPER PANEL STYLES
   ============================================= */

.sniper-layout {
    display: flex;
    width: 100%;
    height: calc(100vh - 20px);
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.sniper-strategies-panel {
    width: 40%;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.95), rgba(5, 10, 20, 0.98));
    border: 1px solid rgba(65, 243, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sniper-config-panel {
    width: 60%;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.95), rgba(5, 10, 20, 0.98));
    border: 1px solid rgba(153, 69, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sniper-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.sniper-panel-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: 0.05em;
}

.sniper-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.sniper-strategies-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Sniper Strategy Card */
.sniper-strategy-card {
    background: rgba(20, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sniper-strategy-card:hover {
    border-color: rgba(65, 243, 255, 0.4);
    background: rgba(25, 35, 60, 0.7);
    box-shadow: 0 4px 20px rgba(65, 243, 255, 0.1);
}

.sniper-strategy-card.selected {
    border-color: var(--solana-green);
    background: rgba(20, 241, 149, 0.05);
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.15);
}

.sniper-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sniper-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.sniper-card-origin {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

.sniper-card-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sniper-filter-tag {
    font-size: 10px;
    padding: 4px 8px;
    background: rgba(65, 243, 255, 0.1);
    border: 1px solid rgba(65, 243, 255, 0.2);
    border-radius: 4px;
    color: var(--accent-cyan);
}

.sniper-card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sniper-stat {
    text-align: center;
}

.sniper-stat-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 2px;
}

.sniper-stat-value {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.sniper-stat-value.success {
    color: var(--solana-green);
}

.sniper-stat-value.highlight {
    color: var(--accent-cyan);
}

/* Sniper Card Status Indicator */
.sniper-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.status-dot.active {
    background: var(--solana-green);
    box-shadow: 0 0 8px var(--solana-green);
    animation: pulse 1.5s infinite;
}

.status-dot.paper {
    background: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.status-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Empty State */
.sniper-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.sniper-empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.sniper-empty-state h3 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 8px 0;
}

.sniper-empty-state p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 20px 0;
}

.btn-go-test-engine {
    background: linear-gradient(135deg, rgba(65, 243, 255, 0.2), rgba(153, 69, 255, 0.2));
    border: 1px solid rgba(65, 243, 255, 0.3);
    color: var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-go-test-engine:hover {
    background: linear-gradient(135deg, rgba(65, 243, 255, 0.3), rgba(153, 69, 255, 0.3));
    box-shadow: 0 0 20px rgba(65, 243, 255, 0.2);
}

/* Sniper Config Content */
.sniper-config-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.sniper-select-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.sniper-select-prompt .prompt-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.sniper-select-prompt h3 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 8px 0;
}

.sniper-select-prompt p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Sniper Config Form */
.sniper-config-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sniper-config-form.hidden {
    display: none;
}

.sniper-strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.strategy-info .strategy-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.strategy-info .strategy-origin {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.strategy-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.strategy-status-badge.active {
    background: rgba(20, 241, 149, 0.15);
    color: var(--solana-green);
}

.strategy-status-badge.paper {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

/* Sniper Section */
.sniper-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-header .section-icon {
    font-size: 16px;
}

.section-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}

.readonly-badge {
    font-size: 9px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.4);
}

/* Filter Snapshot */
.filter-snapshot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-performance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.perf-stat {
    text-align: center;
}

.perf-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 4px;
}

.perf-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.perf-value.success {
    color: var(--solana-green);
}

.perf-value.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(65, 243, 255, 0.5);
}

/* Config Rows */
.config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-row:last-child {
    border-bottom: none;
}

.config-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.config-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-input {
    width: 80px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    text-align: right;
}

.config-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(65, 243, 255, 0.2);
}

.config-prefix {
    font-size: 14px;
    color: #ff4b81;
    font-weight: 700;
}

.config-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 40px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch.large {
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch.large .toggle-slider:before {
    height: 24px;
    width: 24px;
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(20, 241, 149, 0.3);
    border-color: var(--solana-green);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: var(--solana-green);
    box-shadow: 0 0 10px var(--solana-green);
}

.toggle-switch.large input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Config Block */
.config-block {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-block .config-label {
    display: block;
    margin-bottom: 12px;
}

/* Take Profit Steps */
.tp-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tp-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.tp-step-1 .tp-badge {
    background: rgba(20, 241, 149, 0.2);
    color: var(--solana-green);
}

.tp-step-2 .tp-badge {
    background: rgba(65, 243, 255, 0.2);
    color: var(--accent-cyan);
}

.tp-step-3 .tp-badge {
    background: rgba(153, 69, 255, 0.2);
    color: var(--solana-purple);
}

.tp-trigger {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 50px;
}

.tp-input {
    width: 60px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    text-align: right;
}

.tp-unit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 12px;
}

.mode-option {
    flex: 1;
    cursor: pointer;
}

.mode-option input {
    display: none;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mode-option input:checked + .mode-card {
    border-color: var(--accent-cyan);
    background: rgba(65, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(65, 243, 255, 0.15);
}

.mode-option input:checked + .mode-card.live {
    border-color: var(--solana-green);
    background: rgba(20, 241, 149, 0.05);
    box-shadow: 0 0 15px rgba(20, 241, 149, 0.15);
}

.mode-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.mode-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.mode-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* Enable Row */
.enable-row {
    background: rgba(20, 241, 149, 0.03);
    border: 1px solid rgba(20, 241, 149, 0.1);
    border-radius: 10px;
    padding: 16px;
    margin-top: 8px;
}

/* Sniper Actions */
.sniper-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
}

.btn-sniper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.btn-sniper.save {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.2), rgba(20, 241, 149, 0.1));
    border-color: rgba(20, 241, 149, 0.4);
    color: var(--solana-green);
}

.btn-sniper.save:hover {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.3), rgba(20, 241, 149, 0.15));
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.2);
}

.btn-sniper.delete {
    background: rgba(255, 75, 129, 0.1);
    border-color: rgba(255, 75, 129, 0.3);
    color: #ff4b81;
}

.btn-sniper.delete:hover {
    background: rgba(255, 75, 129, 0.15);
    box-shadow: 0 0 15px rgba(255, 75, 129, 0.2);
}

/* Sniper Notification Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Sniper Responsive */
@media (max-width: 1200px) {
    .sniper-layout {
        flex-direction: column;
    }
    
    .sniper-strategies-panel,
    .sniper-config-panel {
        width: 100%;
    }
    
    .sniper-strategies-panel {
        max-height: 40vh;
    }
}

/* =============================================
   RESPONSIVE & SIDEBAR STATE ADAPTATION
   ============================================= */

/* Responsive - 3 column to 2 column to 1 column */
@media (max-width: 1400px) {
    .test-engine-layout {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .test-details-panel {
        grid-column: 1 / -1;
        max-height: 300px;
    }
}

@media (max-width: 1024px) {
    .test-engine-layout {
        grid-template-columns: 1fr !important;
    }

    .test-engine-sidebar,
    .test-dashboard-main,
    .test-details-panel {
        max-height: none;
    }

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

/* =============================================
   FLYING CARD ANIMATION
   ============================================= */

.flying-card {
    position: fixed !important;
    z-index: 10000 !important;
    pointer-events: none !important;
    will-change: transform, opacity;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(153, 69, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

/* Ensure Active Tests panel stays fixed during animation */
.test-dashboard-main {
    position: relative;
    z-index: 1;
}

/* =============================================
   TEST DETAIL PANEL
   ============================================= */

.trigger-tag {
    font-size: 10px;
    background: rgba(153, 69, 255, 0.08);
    color: var(--solana-purple);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(153, 69, 255, 0.15);
    font-weight: 600;
    white-space: nowrap;
    margin-right: 6px;
    margin-bottom: 4px;
    display: inline-block;
}

.test-detail-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    z-index: 999;
    font-family: 'Inter', system-ui, sans-serif;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.test-detail-panel.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.test-detail-panel.visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    animation: slideInFromLeft 0.3s ease-out;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.test-detail-content {
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(153, 69, 255, 0.08) 0%, rgba(20, 241, 149, 0.03) 40%, #080808 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', system-ui, sans-serif;
}

.back-btn:hover {
    background: rgba(153, 69, 255, 0.2);
    border-color: var(--solana-purple);
    color: var(--solana-purple);
}

.detail-panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(153, 69, 255, 0.3);
    flex: 1;
}

.test-detail-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 24px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.test-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: 100px;
}

/* Test Summary */
.test-detail-summary {
    margin-bottom: 32px;
}

.test-summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.summary-stat {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    color: #fff;
}

.summary-value.success {
    color: var(--solana-green);
}

.test-summary-meta {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.rug-count {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.rug-label {
    color: rgba(255, 255, 255, 0.5);
}

.rug-value {
    color: #ff4b81;
    font-weight: 600;
}

.trigger-conditions-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.trigger-conditions-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 600;
}

.trigger-conditions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Live Activity */
.test-live-activity {
    margin-bottom: 32px;
}

.test-live-activity h3 {
    font-size: 14px;
    color: var(--solana-green);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.live-trigger-feed {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
}

.live-trigger-feed:empty::before {
    content: "Waiting for triggers...";
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.live-trigger-item {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.live-trigger-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.partial-results {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
}

.partial-result-item {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    padding: 4px 0;
}

/* Token List */
.test-token-list h3 {
    font-size: 14px;
    color: var(--solana-green);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.token-list-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.token-list-body {
    max-height: 400px;
    overflow-y: auto;
}

.token-list-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}

.token-list-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.token-name {
    color: #fff;
    font-weight: 600;
}

.trigger-price {
    color: rgba(255, 255, 255, 0.7);
}

.peak-roi {
    font-weight: 600;
}

.hours-to-peak {
    color: rgba(255, 255, 255, 0.6);
}

.outcome-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.outcome-pill.three-x {
    background: rgba(153, 69, 255, 0.15);
    color: var(--solana-purple);
    border: 1px solid rgba(153, 69, 255, 0.3);
}

.outcome-pill.two-x {
    background: rgba(65, 243, 255, 0.15);
    color: var(--solana-cyan);
    border: 1px solid rgba(65, 243, 255, 0.3);
}

.outcome-pill.fail {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.outcome-pill.rug {
    background: rgba(255, 75, 129, 0.15);
    color: #ff4b81;
    border: 1px solid rgba(255, 75, 129, 0.3);
}

/* Peak ROI Distribution */
.peak-roi-distribution {
    margin-top: 32px;
}

.peak-roi-distribution h3 {
    font-size: 14px;
    color: var(--solana-green);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.distribution-chart {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 16px;
}

.distribution-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: 'Roboto Mono', monospace;
}

.distribution-item:last-child {
    margin-bottom: 0;
}

.distribution-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 60px;
}

.distribution-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.distribution-fill.three-x {
    background: linear-gradient(90deg, var(--solana-purple), rgba(153, 69, 255, 0.6));
}

.distribution-fill.two-x {
    background: linear-gradient(90deg, var(--solana-cyan), rgba(65, 243, 255, 0.6));
}

.distribution-fill.under-two-x {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.distribution-fill.rugs {
    background: linear-gradient(90deg, #ff4b81, rgba(255, 75, 129, 0.6));
}

/* Actions */
.test-detail-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
}

.test-detail-actions .btn-test-action {
    min-width: 140px;
}

/* Responsive */
@media (max-width: 768px) {
    .test-detail-panel {
        width: 100%;
    }
}

