/* ═══════════════════════════════════════════════════════════════
   CRYPTO TEK AI - AI PROBABILITY ENGINE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   CUSTOM TOAST STYLES
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 10000;
    pointer-events: none;
}

.custom-toast {
    background: linear-gradient(135deg, #1f1f2e 0%, #2a2a3e 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    pointer-events: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-toast.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.1) 0%,
        rgba(127, 29, 29, 0.1) 100%);
}

.custom-toast.with-button {
    padding-bottom: 12px;
}

/* Toast animations removed */

.custom-toast.fade-out {
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.toast-icon {
    font-size: 24px;
    line-height: 1;
}

.toast-text {
    flex: 1;
}

.toast-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.toast-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
}

.toast-upgrade-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8B66 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toast-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.toast-upgrade-btn:active {
    transform: translateY(0);
}

.toast-upgrade-btn i {
    font-size: 16px;
    color: #FFD700;
}

/* ═══════════════════════════════════════════════════════════════
   PROBABILITY CARD (Trade sayfasındaki mini kart - Full Width)
   ═══════════════════════════════════════════════════════════════ */

.probability-card {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.12) 0%,
        rgba(59, 130, 246, 0.08) 50%,
        rgba(139, 92, 246, 0.12) 100%);
    border: none;
    border-top: 1px solid rgba(139, 92, 246, 0.25);
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 0;
    padding: 20px 16px;
    margin: 0 0 16px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible; /* Allow dropdown to overflow */
}

.probability-card::before {
    display: none;
}

.probability-card:active {
    transform: scale(0.98);
}

.probability-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.probability-card-icon {
    font-size: 48px;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.5));
    flex-shrink: 0;
}

.probability-card-title {
    flex: 1;
}

.probability-card-title h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.probability-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.probability-card-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 8px;
}

.probability-card-desc {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.probability-card-cta {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.probability-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.probability-card-cta:active {
    transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════
   PROBABILITY PAGE
   ═══════════════════════════════════════════════════════════════ */

.probability-page {
    padding-bottom: 100px;
    min-height: 100vh;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.05) 0%, 
        rgba(0, 0, 0, 0) 50%);
}

/* Header */
.probability-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.2) 0%,
        rgba(59, 130, 246, 0.15) 100%);
    border-radius: 0 0 24px 24px;
    margin-bottom: 16px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.probability-header-content h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.probability-header-content p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Section */
.probability-section {
    padding: 0 16px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
}

/* Exchange Buttons */
.exchange-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.exchange-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 8px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exchange-btn:active {
    transform: scale(0.95);
}

.exchange-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    border-color: #8b5cf6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.exchange-icon {
    font-size: 20px;
}

.exchange-name {
    font-size: 12px;
    font-weight: 600;
}

/* Search */
.probability-search-container {
    position: relative;
}

.probability-search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
    transition: all 0.3s ease;
}

/* Mobile keyboard focus state */
.probability-search-input-wrapper:focus-within {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Ensure search section stays visible when keyboard opens */
.probability-section.search-focused {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg,
        rgba(20, 20, 35, 1) 0%,
        rgba(20, 20, 35, 0.95) 100%);
    padding-top: 16px;
    padding-bottom: 16px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.probability-search-input-wrapper i {
    color: rgba(255, 255, 255, 0.5);
}

.probability-search-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.probability-search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-loader {
    width: 20px;
    height: 20px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Results */
.probability-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(20, 20, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-height: calc(100vh - 350px);
    min-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(139, 92, 246, 0.15);
}

.result-info {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.result-symbol {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.result-pair {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.result-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.result-price {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.result-change {
    font-size: 11px;
    font-weight: 600;
}

.result-change.positive { color: #22c55e; }
.result-change.negative { color: #ef4444; }

.no-results {
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.no-results i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* Selected Symbol Card */
.selected-symbol-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.symbol-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.symbol-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.symbol-exchange {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.analyze-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Analysis Loading */
.analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-animation {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    display: none;
}

/* Pulse animations removed */

.loading-icon {
    font-size: 40px;
    z-index: 1;
}

.analysis-loading p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   ANALYSIS RESULTS
   ═══════════════════════════════════════════════════════════════ */

/* Market Direction Card */
.market-direction-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
}

/* Reanalyze Button */
.reanalyze-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.reanalyze-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.reanalyze-btn:active {
    transform: scale(0.95);
}

.reanalyze-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.reanalyze-btn:hover i {
    transform: rotate(180deg);
}

/* Full Width Reanalyze Button (separate section) */
.reanalyze-btn-full {
    width: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.reanalyze-btn-full:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(99, 102, 241, 0.35));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.reanalyze-btn-full:active {
    transform: scale(0.98);
}

.reanalyze-btn-full i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.reanalyze-btn-full:hover i {
    transform: rotate(180deg);
}

.market-direction-card.bullish {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.3);
}

.market-direction-card.bearish {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
}

.market-direction-card.neutral {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15), rgba(156, 163, 175, 0.05));
    border-color: rgba(156, 163, 175, 0.3);
}

.direction-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.direction-symbol {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.direction-icon {
    font-size: 32px;
}

.direction-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.direction-probs {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.prob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.prob-item span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.prob-item.up span:last-child { color: #22c55e; }
.prob-item.down span:last-child { color: #ef4444; }

/* Probability Bars Card */
.probability-bars-card,
.strategy-scores-card,
.trend-graph-card,
.ai-comments-card,
.indicators-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.probability-bars-card h4,
.strategy-scores-card h4,
.trend-graph-card h4,
.ai-comments-card h4,
.indicators-card h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Probability Bars */
.probability-bar-item {
    margin-bottom: 14px;
}

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

.bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.bar-value {
    font-weight: 700;
    color: #fff;
}

.bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

/* Strategy Scores */
.strategy-score-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
}

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

.score-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.score-icon {
    font-size: 18px;
}

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

.score-gauge {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.score-value {
    font-size: 14px;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
}

.score-value.high { color: #22c55e; }
.score-value.medium { color: #f59e0b; }
.score-value.low { color: #ef4444; }

/* Trend Graph */
.trend-graph {
    padding: 10px 0;
}

.trend-svg {
    width: 100%;
    height: auto;
}

.trend-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trend-price {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.trend-change {
    font-size: 14px;
    font-weight: 600;
}

.trend-change.positive { color: #22c55e; }
.trend-change.negative { color: #ef4444; }

.no-data {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* AI Comments */
.ai-comment {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.ai-comment:last-child {
    margin-bottom: 0;
}

.ai-comment p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Indicators Grid */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.indicator-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.indicator-icon {
    font-size: 18px;
}

.indicator-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.indicator-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.indicator-item.bullish {
    border-bottom: 2px solid #22c55e;
}

.indicator-item.bearish {
    border-bottom: 2px solid #ef4444;
}

.indicator-item.neutral {
    border-bottom: 2px solid #6b7280;
}

.indicator-item.high {
    border-bottom: 2px solid #f59e0b;
}

.indicator-item.strong,
.indicator-item.very_strong {
    border-bottom: 2px solid #22c55e;
}

.indicator-item.weak {
    border-bottom: 2px solid #ef4444;
}

.indicator-item.moderate {
    border-bottom: 2px solid #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
    .exchange-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

.probability-search-results::-webkit-scrollbar {
    width: 6px;
}

.probability-search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.probability-search-results::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.probability-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   WATCHLIST CTA SECTION
   ═══════════════════════════════════════════════════════════════ */

.probability-watchlist-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}

.watchlist-cta-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.watchlist-cta-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.watchlist-cta-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.watchlist-cta-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.watchlist-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.watchlist-cta-btn:active {
    transform: translateY(0);
}

.watchlist-cta-btn i {
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   WATCHLIST MODAL
   ═══════════════════════════════════════════════════════════════ */

.probability-watchlist-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

.probability-watchlist-modal-overlay.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.probability-watchlist-modal {
    background: linear-gradient(180deg, #1e1e2e, #13131d);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.watchlist-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.watchlist-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.watchlist-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.watchlist-modal-body {
    padding: 20px;
}

.watchlist-modal-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 20px;
}

/* Category Items */
.watchlist-category-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watchlist-category-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.watchlist-category-item input[type="checkbox"] {
    display: none;
}

.category-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.watchlist-category-item input[type="checkbox"]:checked + .category-checkbox {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-color: #FF6B35;
}

.watchlist-category-item input[type="checkbox"]:checked + .category-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.category-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Add Button */
.watchlist-add-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.watchlist-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.watchlist-add-btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   🔮 AI PROBABILITY POPUP (Scalp/Swing Card Quick Analysis)
   ═══════════════════════════════════════════════════════════════ */

/* Overlay */
.ai-probability-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-probability-popup-overlay.visible {
    opacity: 1;
}

/* Popup Container - Full Screen */
.ai-probability-popup {
    background: linear-gradient(180deg, #1e1e2e 0%, #13131d 100%);
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.ai-probability-popup-overlay.visible .ai-probability-popup {
    transform: translateY(0);
}

/* Header */
.ai-probability-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

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

.popup-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.popup-title-group h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.popup-exchange {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Content */
.ai-probability-popup-content {
    padding: 20px;
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding-bottom: 100px;
}

/* Loading State */
.ai-probability-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.ai-probability-loading .loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-probability-loading .loading-icon {
    font-size: 36px;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    }
}

.ai-probability-loading p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Market Direction */
.ai-prob-direction {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-prob-direction.bullish {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.3);
}

.ai-prob-direction.bearish {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
}

.ai-prob-direction.neutral {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15), rgba(156, 163, 175, 0.05));
    border-color: rgba(156, 163, 175, 0.3);
}

.ai-prob-direction .direction-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.ai-prob-direction .direction-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.ai-prob-direction .direction-probs {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
}

.ai-prob-direction .prob-up { color: #22c55e; }
.ai-prob-direction .prob-down { color: #ef4444; }
.ai-prob-direction .prob-side { color: #9ca3af; }

/* Sections */
.ai-prob-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.ai-prob-section h4 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Probability Bars */
.ai-prob-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prob-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prob-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.prob-bar-value {
    font-weight: 700;
    color: #fff;
}

.prob-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.prob-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

/* Strategy Scores */
.ai-prob-strategies {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.strategy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.strategy-icon {
    font-size: 16px;
}

.strategy-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.strategy-gauge {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.strategy-gauge .gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.strategy-value {
    font-size: 14px;
    font-weight: 700;
    color: #a78bfa;
    min-width: 40px;
    text-align: right;
}

/* Disclaimer */
.ai-prob-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    line-height: 1.4;
}

/* Error State */
.ai-prob-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.ai-prob-error .error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ai-prob-error p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.error-retry-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-retry-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Limit Reached State */
.ai-prob-limit-reached {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.ai-prob-limit-reached .limit-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ai-prob-limit-reached h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.ai-prob-limit-reached p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

.limit-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
}

.limit-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.limit-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 3px;
}

.limit-progress span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.limit-upgrade-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.limit-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.limit-upgrade-btn i {
    color: #FFD700;
}

/* Scrollbar for popup content */
.ai-probability-popup-content::-webkit-scrollbar {
    width: 4px;
}

.ai-probability-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.ai-probability-popup-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 2px;
}

.ai-probability-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* ═══════════════════════════════════════════════════════════════
   UP/DOWN/SIDE DIRECTION BARS
   ═══════════════════════════════════════════════════════════════ */

.ai-prob-direction-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.direction-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.direction-bar-label {
    font-size: 13px;
    font-weight: 600;
    min-width: 80px;
    color: rgba(255, 255, 255, 0.8);
}

.direction-bar-item.up .direction-bar-label { color: #22c55e; }
.direction-bar-item.down .direction-bar-label { color: #ef4444; }
.direction-bar-item.side .direction-bar-label { color: #9ca3af; }

.direction-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.direction-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.direction-bar-item.up .direction-bar-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.direction-bar-item.down .direction-bar-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.direction-bar-item.side .direction-bar-fill {
    background: linear-gradient(90deg, #9ca3af, #6b7280);
}

.direction-bar-value {
    font-size: 14px;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
}

.direction-bar-item.up .direction-bar-value { color: #22c55e; }
.direction-bar-item.down .direction-bar-value { color: #ef4444; }
.direction-bar-item.side .direction-bar-value { color: #9ca3af; }

/* ═══════════════════════════════════════════════════════════════
   AI ASSESSMENTS
   ═══════════════════════════════════════════════════════════════ */

.ai-prob-assessments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assessment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    border-radius: 0 10px 10px 0;
}

.assessment-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.assessment-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   INDICATORS GRID
   ═══════════════════════════════════════════════════════════════ */

.ai-prob-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.indicator-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.indicator-card .indicator-icon {
    font-size: 18px;
}

.indicator-card .indicator-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.indicator-card .indicator-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* Indicator States */
.indicator-card.bullish {
    border-bottom-color: #22c55e;
}

.indicator-card.bullish .indicator-value {
    color: #22c55e;
}

.indicator-card.bearish {
    border-bottom-color: #ef4444;
}

.indicator-card.bearish .indicator-value {
    color: #ef4444;
}

.indicator-card.neutral {
    border-bottom-color: #6b7280;
}

.indicator-card.oversold {
    border-bottom-color: #22c55e;
}

.indicator-card.oversold .indicator-value {
    color: #22c55e;
}

.indicator-card.overbought {
    border-bottom-color: #ef4444;
}

.indicator-card.overbought .indicator-value {
    color: #ef4444;
}

.indicator-card.strong {
    border-bottom-color: #22c55e;
}

.indicator-card.strong .indicator-value {
    color: #22c55e;
}

.indicator-card.moderate {
    border-bottom-color: #f59e0b;
}

.indicator-card.moderate .indicator-value {
    color: #f59e0b;
}

.indicator-card.weak {
    border-bottom-color: #ef4444;
}

.indicator-card.weak .indicator-value {
    color: #ef4444;
}

.indicator-card.high {
    border-bottom-color: #f59e0b;
}

.indicator-card.high .indicator-value {
    color: #f59e0b;
}

.indicator-card.low {
    border-bottom-color: #6b7280;
}

.indicator-card.normal {
    border-bottom-color: #22c55e;
}

.indicator-card.normal .indicator-value {
    color: #22c55e;
}

/* ═══════════════════════════════════════════════════════════════
   PRICE SECTION
   ═══════════════════════════════════════════════════════════════ */

.ai-prob-price-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.ai-prob-price-chart {
    margin-bottom: 12px;
}

.price-mini-chart {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.price-mini-chart svg {
    display: block;
}

.ai-prob-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.price-change {
    font-size: 14px;
    font-weight: 600;
}

.price-change.positive {
    color: #22c55e;
}

.price-change.negative {
    color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════
   WATCHLIST SECTION
   ═══════════════════════════════════════════════════════════════ */

.ai-prob-watchlist-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.watchlist-promo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.watchlist-promo-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.watchlist-promo p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.ai-prob-watchlist-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.ai-prob-watchlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

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

.ai-prob-watchlist-btn.added {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    cursor: default;
}

.ai-prob-watchlist-btn.added:hover {
    transform: none;
    box-shadow: none;
}

.ai-prob-watchlist-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.watchlist-btn-icon {
    font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
    .ai-prob-indicators {
        grid-template-columns: repeat(2, 1fr);
    }

    .direction-bar-label {
        min-width: 70px;
        font-size: 12px;
    }

    .strategy-header {
        min-width: 120px;
    }

    .strategy-label {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   INLINE PROBABILITY CARD (Trade Page Integrated)
   ═══════════════════════════════════════════════════════════════ */

.probability-card-inline {
    cursor: default;
}

.probability-card-inline:active {
    transform: none;
}

/* Inline Search */
.probability-inline-search {
    position: relative;
    margin-bottom: 12px;
    z-index: 100; /* Ensure search container is above other elements */
}

.probability-inline-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    gap: 10px;
    transition: all 0.3s ease;
}

.probability-inline-search-wrapper:focus-within {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.probability-inline-search-wrapper i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.probability-inline-search-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.probability-inline-search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Inline Search Results */
.probability-inline-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: rgba(20, 20, 35, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999; /* High z-index to appear above all cards */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.inline-search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.inline-search-result-item:last-child {
    border-bottom: none;
}

.inline-search-result-item:hover {
    background: rgba(139, 92, 246, 0.15);
}

.inline-result-symbol {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.inline-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.inline-no-results i {
    font-size: 18px;
}

/* Inline Selected Symbol */
.probability-inline-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.inline-selected-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inline-selected-symbol {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.inline-selected-exchange {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inline-clear-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.inline-clear-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* Inline Analyze Button */
.probability-inline-analyze-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.probability-inline-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.probability-inline-analyze-btn:active {
    transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════
   FULL-SCREEN ANALYSIS POPUP
   ═══════════════════════════════════════════════════════════════ */

.probability-analysis-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.probability-analysis-popup-overlay.visible {
    opacity: 1;
}

.probability-analysis-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.probability-analysis-popup-overlay.visible .probability-analysis-popup {
    transform: translateY(0);
}

/* Popup Header */
.probability-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
}

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

.probability-popup-header .popup-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.popup-title-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.popup-title-info .popup-exchange {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.probability-popup-header .popup-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.probability-popup-header .popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Popup Content */
.probability-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
}

/* Popup Loading */
.probability-popup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.probability-popup-loading .loading-animation {
    margin-bottom: 16px;
}

.probability-popup-loading .loading-icon {
    font-size: 48px;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.probability-popup-loading p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Popup Market Direction */
.popup-market-direction {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.popup-market-direction.bullish {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.3);
}

.popup-market-direction.bearish {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
}

.popup-market-direction.neutral {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15), rgba(156, 163, 175, 0.05));
    border-color: rgba(156, 163, 175, 0.3);
}

.direction-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.direction-main .direction-icon {
    font-size: 36px;
}

.direction-main .direction-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.direction-probs-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.prob-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.prob-chip.up span:last-child { color: #22c55e; }
.prob-chip.down span:last-child { color: #ef4444; }
.prob-chip.side span:last-child { color: #9ca3af; }

/* Popup Sections */
.popup-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.popup-section h4 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Popup Strategy Scores */
.popup-strategy-scores {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.strategy-score-row .strategy-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
}

.strategy-score-row .strategy-icon {
    font-size: 16px;
}

.strategy-score-row .strategy-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.strategy-score-row .strategy-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.strategy-score-row .strategy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.strategy-score-row .strategy-value {
    font-size: 14px;
    font-weight: 700;
    color: #a78bfa;
    min-width: 45px;
    text-align: right;
}

/* Popup Probability Bars */
.popup-probability-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-prob-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prob-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.prob-bar-percent {
    font-weight: 700;
    color: #fff;
}

.popup-prob-bar-item .prob-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.popup-prob-bar-item .prob-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

/* Popup AI Comments */
.popup-ai-comments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    border-radius: 0 8px 8px 0;
}

.ai-comment-item .comment-bullet {
    color: #8b5cf6;
    font-size: 14px;
    font-weight: 700;
    margin-top: 1px;
}

.ai-comment-item p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Popup Indicators Grid */
.popup-indicators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.popup-indicator-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-bottom: 2px solid transparent;
}

.popup-indicator-item .indicator-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

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

.popup-indicator-item.bullish {
    border-bottom-color: #22c55e;
}

.popup-indicator-item.bullish .indicator-value {
    color: #22c55e;
}

.popup-indicator-item.bearish {
    border-bottom-color: #ef4444;
}

.popup-indicator-item.bearish .indicator-value {
    color: #ef4444;
}

.popup-indicator-item.warning {
    border-bottom-color: #f59e0b;
}

.popup-indicator-item.warning .indicator-value {
    color: #f59e0b;
}

.popup-indicator-item.neutral {
    border-bottom-color: #6b7280;
}

/* Popup Watchlist CTA */
.popup-watchlist-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.popup-watchlist-cta .watchlist-cta-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.popup-watchlist-cta p {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.watchlist-cta-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.watchlist-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Popup Reanalyze Button */
.popup-reanalyze-btn {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.popup-reanalyze-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.popup-reanalyze-btn i {
    transition: transform 0.3s ease;
}

.popup-reanalyze-btn:hover i {
    transform: rotate(180deg);
}

/* Popup Disclaimer */
.popup-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    line-height: 1.4;
}

/* Popup Error State */
.popup-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.popup-error .error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.popup-error p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.popup-error .error-retry-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.popup-error .error-retry-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Popup Limit Reached State */
.popup-limit-reached {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: 20px;
}

.popup-limit-reached .limit-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.popup-limit-reached h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.popup-limit-reached p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

.popup-limit-reached .limit-progress-bar {
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.popup-limit-reached .limit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 3px;
}

.popup-limit-reached .limit-progress-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 20px;
}

.popup-limit-reached .limit-upgrade-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.popup-limit-reached .limit-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.popup-limit-reached .limit-upgrade-btn i {
    color: #FFD700;
}

/* Popup Content Scrollbar */
.probability-popup-content::-webkit-scrollbar {
    width: 4px;
}

.probability-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.probability-popup-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 2px;
}

.probability-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Responsive for Popup */
@media (max-width: 360px) {
    .popup-indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strategy-score-row .strategy-info {
        min-width: 110px;
    }

    .strategy-score-row .strategy-name {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   POPUP TREND GRAPH
   ═══════════════════════════════════════════════════════════════ */

.popup-trend-graph {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.popup-trend-svg {
    width: 100%;
    height: 120px;
    display: block;
}

.popup-trend-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.popup-trend-price {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.popup-trend-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.popup-trend-change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.popup-trend-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.popup-no-data {
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   POPUP WATCHLIST MODAL (Inside Popup)
   ═══════════════════════════════════════════════════════════════ */

.probability-analysis-popup .probability-watchlist-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.probability-analysis-popup .probability-watchlist-modal-overlay.visible {
    opacity: 1;
}

.probability-analysis-popup .probability-watchlist-modal {
    background: linear-gradient(180deg, #1e1e3a 0%, #1a1a2e 100%);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.probability-analysis-popup .probability-watchlist-modal-overlay.visible .probability-watchlist-modal {
    transform: scale(1);
}

.probability-analysis-popup .watchlist-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.probability-analysis-popup .watchlist-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.probability-analysis-popup .watchlist-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.probability-analysis-popup .watchlist-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
}

.probability-analysis-popup .watchlist-modal-body {
    padding: 20px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

.probability-analysis-popup .watchlist-modal-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.probability-analysis-popup .watchlist-category-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.probability-analysis-popup .watchlist-category-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.probability-analysis-popup .watchlist-category-item input[type="checkbox"] {
    display: none;
}

.probability-analysis-popup .category-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.probability-analysis-popup .watchlist-category-item input[type="checkbox"]:checked + .category-checkbox {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: #8b5cf6;
}

.probability-analysis-popup .watchlist-category-item input[type="checkbox"]:checked + .category-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.probability-analysis-popup .category-info {
    flex: 1;
}

.probability-analysis-popup .category-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.probability-analysis-popup .category-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.probability-analysis-popup .watchlist-add-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.probability-analysis-popup .watchlist-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.probability-analysis-popup .watchlist-add-btn:active {
    transform: scale(0.98);
}

/* Watchlist Modal Disclaimer */
.probability-analysis-popup .watchlist-modal-disclaimer {
    margin-top: 16px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    font-size: 11px;
    color: rgba(245, 158, 11, 0.9);
    text-align: center;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   WATCHLIST ADDED NOTIFICATION (Slide-in from right)
   ═══════════════════════════════════════════════════════════════ */

.watchlist-added-notification {
    position: fixed;
    top: 80px;
    right: -350px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

.watchlist-added-notification.visible {
    right: 16px;
}

.watchlist-added-notification .notification-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.watchlist-added-notification .notification-icon i {
    font-size: 20px;
    color: #fff;
    animation: starPulse 0.6s ease-out;
}

@keyframes starPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.watchlist-added-notification .notification-content {
    flex: 1;
    min-width: 0;
}

.watchlist-added-notification .notification-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.watchlist-added-notification .notification-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watchlist-added-notification .notification-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.watchlist-added-notification .notification-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.watchlist-added-notification .notification-close i {
    font-size: 12px;
    color: #fff;
}

/* Mobile responsive */
@media (max-width: 400px) {
    .watchlist-added-notification {
        width: calc(100vw - 32px);
        right: -100vw;
    }

    .watchlist-added-notification.visible {
        right: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   UPGRADE SCREEN - PREMIUM DESIGN
   ═══════════════════════════════════════════════════════════════ */

.popup-upgrade-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    min-height: 400px;
}

/* Crown Icon with Glow Effect */
.upgrade-icon-container {
    position: relative;
    margin-bottom: 24px;
}

.upgrade-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle,
        rgba(255, 193, 7, 0.4) 0%,
        rgba(255, 152, 0, 0.2) 40%,
        transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

.upgrade-icon {
    font-size: 64px;
    display: block;
    position: relative;
    z-index: 1;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Title */
.upgrade-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.upgrade-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 280px;
}

/* Usage Indicator */
.upgrade-usage-indicator {
    width: 100%;
    max-width: 240px;
    margin-bottom: 28px;
}

.usage-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.usage-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Benefits List */
.upgrade-benefits {
    width: 100%;
    max-width: 280px;
    margin-bottom: 28px;
}

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

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
}

.benefit-icon {
    font-size: 20px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    font-weight: 500;
}

/* CTA Button */
.upgrade-cta-btn {
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border: none;
    border-radius: 14px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

.upgrade-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 193, 7, 0.4);
}

.upgrade-cta-btn:active {
    transform: translateY(0);
}

.upgrade-cta-btn i {
    font-size: 18px;
}

/* Hint Text */
.upgrade-hint {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 240px;
}

/* Mobile Responsive */
@media (max-width: 360px) {
    .popup-upgrade-screen {
        padding: 24px 16px;
    }

    .upgrade-icon {
        font-size: 56px;
    }

    .upgrade-title {
        font-size: 20px;
    }

    .upgrade-description {
        font-size: 13px;
    }

    .benefit-item {
        padding: 10px 14px;
    }

    .benefit-text {
        font-size: 12px;
    }

    .upgrade-cta-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}



/* ═══════════════════════════════════════════════════════════════
   MOBILE KEYBOARD SCROLL FIX - Inline Search
   ═══════════════════════════════════════════════════════════════ */

/* When search is focused, make sure it stays visible above keyboard */
.probability-card-inline.search-focused {
    /* Ensure the card is visible when keyboard opens */
    z-index: 1000;
}

.probability-card-inline.search-focused .probability-inline-search {
    /* Ensure search stays at the top of visible area */
    position: relative;
    z-index: 1001;
}

/* Smooth scroll behavior for keyboard appearance */
@supports (height: 100dvh) {
    .probability-card-inline.search-focused {
        scroll-margin-top: 16px;
    }
}
