/* ============================================
   TRADE CONTROL v2.0 - Complete Styles
   ============================================ */

/* ===== OVERLAY & PANEL BASE ===== */
.trade-control-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trade-control-overlay.show {
    opacity: 1;
    visibility: visible;
}

.trade-control-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    height: 100vh;
    background: linear-gradient(145deg, #1a2332 0%, #0f1724 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.trade-control-panel::-webkit-scrollbar {
    width: 8px;
}

.trade-control-panel::-webkit-scrollbar-track {
    background: transparent;
}

.trade-control-panel::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

.trade-control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

.trade-control-panel.open {
    right: 0;
}

/* ===== HEADER ===== */
.tc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.tc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tc-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tc-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.tc-close-btn,
.tc-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
}

.tc-close-btn:hover,
.tc-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.05);
}

/* ===== CONTENT ===== */
.tc-content {
    padding: 24px;
}

.tc-section {
    margin-bottom: 24px;
}

.tc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== SESSION CONFIG ===== */
.session-config {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.config-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-row label {
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
}

.config-row input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.config-row input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

/* ===== SCORE DISPLAY ===== */
.tc-score-section {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1f2937, #111827);
    border: 3px solid;
    position: relative;
    flex-shrink: 0;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, transparent 0%, currentColor 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.score-display.safe .score-circle {
    border-color: #10b981;
    color: #10b981;
}

.score-display.caution .score-circle {
    border-color: #f59e0b;
    color: #f59e0b;
}

.score-display.danger .score-circle {
    border-color: #ef4444;
    color: #ef4444;
}

.score-number {
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.score-max {
    font-size: 12px;
    color: #6b7280;
}

.score-info {
    flex: 1;
}

.score-status {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-display.safe .score-status {
    color: #10b981;
}

.score-display.caution .score-status {
    color: #f59e0b;
}

.score-display.danger .score-status {
    color: #ef4444;
}

.score-message {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.4;
}

/* ===== AI ANALYSIS BUTTON ===== */
.tc-ai-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.tc-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.tc-ai-btn:active {
    transform: translateY(0);
}

/* ===== CHECKLIST ===== */
.tc-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
}

.checklist-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    border-color: #a855f7;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    flex: 1;
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.4;
}

.required-badge {
    font-size: 11px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

/* ===== POSITION CALCULATOR ===== */
.position-calculator {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.calc-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

.calc-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-row.full-width {
    grid-column: 1 / -1;
}

.calc-row label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
}

.calc-hint {
    font-size: 11px;
    color: #6b7280;
    font-weight: normal;
}

.calc-sync-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    color: #3b82f6;
    transition: all 0.2s ease;
}

.calc-sync-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.calc-row input,
.calc-row select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.calc-row select option {
    background: #1a2332;
    color: white;
    padding: 8px;
}

.calc-row input:focus,
.calc-row select:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.calc-row input::placeholder {
    color: #6b7280;
}

.calc-calculate-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.calc-calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== CALCULATOR RESULT ===== */
.calc-result {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-result.hidden {
    display: none;
}

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

.result-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.result-invalid {
    font-size: 11px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.result-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-item.highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.3);
}

.result-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.result-item.highlight .result-value {
    font-size: 24px;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-item small {
    font-size: 11px;
    color: #6b7280;
}

.result-warnings {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.warning-item {
    font-size: 12px;
    color: #fca5a5;
    margin-bottom: 6px;
}

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

.result-actions {
    display: flex;
    gap: 8px;
}

.result-copy-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.result-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #a855f7;
}

/* ===== READY TO TRADE BUTTON ===== */
.tc-ready-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tc-ready-btn:not(.disabled) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tc-ready-btn:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.tc-ready-btn.disabled {
    background: #374151;
    color: #6b7280;
    cursor: not-allowed;
}

.tc-hint {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
}

/* ===== AI ANALYSIS MODE ===== */
.tc-ai-content {
    min-height: 400px;
}

.tc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.tc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.tc-loading p {
    color: #9ca3af;
    font-size: 14px;
}

.tc-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    text-align: center;
}

.tc-error p {
    color: #9ca3af;
    font-size: 16px;
    margin: 0;
}

.tc-error p:first-child {
    color: #ef4444;
    font-size: 18px;
    font-weight: 600;
}

.ai-recommendation {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.ai-recommendation.favorable {
    border-color: #10b981;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.ai-recommendation.caution {
    border-color: #f59e0b;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.ai-recommendation.danger {
    border-color: #ef4444;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.ai-rec-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.ai-rec-content {
    flex: 1;
}

.ai-rec-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
}

.ai-confidence {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-confidence span {
    font-size: 13px;
    color: #9ca3af;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7 0%, #3b82f6 100%);
    transition: width 0.5s ease;
}

/* ===== PAIRS ANALYSIS ===== */
.ai-pairs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ai-pair-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid;
    border-radius: 12px;
    padding: 16px;
}

.ai-pair-card.best {
    border-color: #10b981;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.ai-pair-card.worst {
    border-color: #ef4444;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.03) 100%);
}

.pair-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ai-pair-card.best .pair-badge {
    color: #10b981;
}

.ai-pair-card.worst .pair-badge {
    color: #ef4444;
}

.ai-pair-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
}

.pair-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.pair-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.pair-reason {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
    margin: 0;
}

/* ===== DAY ANALYSIS ===== */
.day-analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.day-analysis-card.above_average {
    border-color: #10b981;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.day-analysis-card.below_average {
    border-color: #ef4444;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.03) 100%);
}

.day-wr-display {
    flex-shrink: 0;
    text-align: center;
}

.day-wr-main {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.day-wr-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
}

.day-comparison {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #d1d5db;
}

.comparison-item strong {
    font-weight: 700;
}

.comparison-item .positive {
    color: #10b981;
}

.comparison-item .negative {
    color: #ef4444;
}

/* ===== TIME ANALYSIS ===== */
.time-analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.time-optimal {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.time-optimal.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid #10b981;
}

.time-optimal svg {
    width: 32px;
    height: 32px;
    color: #a855f7;
}

.time-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
}

.time-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.time-wr {
    font-size: 13px;
    color: #9ca3af;
}

.time-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #d1d5db;
}

.time-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.time-badge.optimal {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.time-badge.suboptimal {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* ===== STREAK ANALYSIS ===== */
.streak-analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.streak-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.streak-icon {
    font-size: 36px;
}

.streak-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
}

.streak-count {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.streak-pattern {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.5;
}

.streak-pattern strong {
    color: white;
    font-weight: 600;
}

.streak-recommendation {
    font-size: 13px;
    color: #9ca3af;
}

.streak-recommendation strong {
    color: white;
    font-weight: 600;
}

/* ===== INSIGHTS ===== */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.insight-item svg {
    color: #a855f7;
    flex-shrink: 0;
    margin-top: 2px;
}

.insight-item p {
    margin: 0;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.5;
}

/* ===== SECONDARY BUTTON ===== */
.tc-secondary-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tc-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #a855f7;
}

/* ===== SESSION PANEL (IN-SESSION MODE) ===== */
.session-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    width: 280px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.98);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.session-panel.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
    user-select: none;
}

.session-header:active {
    cursor: grabbing;
}

.session-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    pointer-events: none;
}

.session-header button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: all 0.2s ease;
}

.session-header button svg {
    width: 16px;
    height: 16px;
}

.session-header button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.session-header button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.session-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.stat-box {
    background: #0f172a;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.stat-value {
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.stat-value.profit {
    color: #10b981;
}

.stat-value.loss {
    color: #ef4444;
}

.progress-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.5s ease;
}

.progress-fill.loss {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.eval-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eval-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ===== TOAST NOTIFICATIONS ===== */
.tc-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 20000;
    transition: bottom 0.3s ease;
}

.tc-toast.show {
    bottom: 30px;
}

.tc-toast.success {
    background: #10b981;
}

.tc-toast.error {
    background: #ef4444;
}

.tc-toast.warning {
    background: #f59e0b;
}

.tc-toast.info {
    background: #3b82f6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .trade-control-panel {
        width: 100%;
        right: -100%;
    }

    .ai-pairs-grid {
        grid-template-columns: 1fr;
    }

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

    .session-panel {
        width: calc(100% - 40px);
        left: 50%;
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.98);
    }

    .session-panel.show {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===== TRADE CONTROL BUTTON (IN JOURNAL) ===== */
.trade-control-btn {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.trade-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.trade-control-btn svg {
    width: 20px;
    height: 20px;
}

.trade-control-btn.hidden {
    display: none !important;
}
