/* =========================================
   V3 DASHBOARD - COMPLETE STYLES
   Landing page quality, modern, zarif
   ========================================= */

/* Dashboard Container */
.dashboard-v3 {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 0;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.welcome-text h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
}

@media (max-width: 1024px) {
    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-actions {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }

    .dashboard-actions::-webkit-scrollbar {
        display: none;
    }

    .dashboard-actions .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Stats Grid - Modern, dengeli tasarım */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
    margin-top: 0.25rem;
}

.stat-icon.success {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.stat-icon.info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    display: block;
    min-height: 2.4em;
    line-height: 1.2em;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.625rem;
    text-align: left;
}

.stat-change {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: auto;
}

.stat-change i {
    font-size: 0.75rem;
}

.stat-change.positive {
    color: #10b981;
}

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

/* Setup Panel */
.setup-panel {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(36, 129, 204, 0.08));
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 0;
}

.setup-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.setup-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: var(--warning);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.setup-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem;
    display: block !important;
}

.setup-title p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.setup-body .setup-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.setup-action {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Setup Close Button */
.setup-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1.125rem;
    opacity: 1;
}

.setup-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    transform: rotate(90deg);
}

body.dark .setup-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Dashboard Container (Feature Cards Grid) */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03), rgba(36, 129, 204, 0.03));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-title {
    flex: 1;
}

.feature-title h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: block !important;
    letter-spacing: -0.02em;
}

.feature-title p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

.feature-body {
    position: relative;
    z-index: 1;
}

.feature-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.feature-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.feature-stat {
    flex: 1;
}

.feature-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.feature-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.feature-badge.pro {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

body.dark .btn-secondary {
    background: #1f2937;
    border-color: #374151;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

body.dark .btn-secondary:hover {
    background: #374151;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-v3 {
        gap: 2rem;
    }

    .dashboard-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-v3 {
        gap: 1.75rem;
    }

    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-text h1 {
        font-size: 1.875rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-text h1 {
        font-size: 1.625rem;
    }

    .setup-panel {
        padding: 1.5rem;
    }

    .setup-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   CRYPTO TEK AI TV SECTION - V3 DESIGN
   Modern, Dashboard-aligned styling
   ========================================= */

.tv-section {
    margin-top: 0;
}

/* TV Card Container */
.tv-card-v3 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.tv-card-v3:hover {
    box-shadow: var(--shadow-md);
}

/* TV Card Header */
.tv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.tv-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tv-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(36, 129, 204, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.tv-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.tv-title-group p {
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    margin: 0;
}

/* Add Button */
.tv-add-btn {
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.tv-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.tv-add-btn i {
    font-size: 0.875rem;
}

/* Coins Grid */
.tv-coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

/* Coin Card */
.tv-coin-card-v3 {
    background: var(--bg-page);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tv-coin-card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #2481cc);
    opacity: 0;
    transition: opacity 0.3s;
}

.tv-coin-card-v3:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tv-coin-card-v3:hover::before {
    opacity: 1;
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
}

.coin-symbol {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}

.coin-exchange {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    background: rgba(255, 107, 53, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.coin-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 0.625rem;
    line-height: 1;
}

.coin-change {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

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

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

.change-icon {
    font-size: 0.75rem;
}

/* Empty & Loading States */
.tv-empty-state,
.tv-loading-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.tv-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.tv-empty-state h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem;
}

.tv-empty-state p {
    font-size: 0.9375rem;
    color: var(--text-secondary) !important;
    margin-bottom: 1.5rem;
}

.tv-loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.tv-loading-state p {
    color: var(--text-secondary) !important;
}

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

/* TV Popup Modal */
.tv-popup-wrapper {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.tv-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.tv-popup-container {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.tv-popup-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(36, 129, 204, 0.1));
}

.tv-popup-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 0;
}

.tv-popup-close {
    background: rgba(255, 107, 53, 0.1);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary) !important;
    padding: 0.5rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tv-popup-close:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: rotate(90deg);
}

.tv-popup-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.tv-popup-section {
    margin-bottom: 1.5rem;
}

.tv-popup-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary) !important;
    letter-spacing: 0.5px;
}

.tv-popup-section select,
.tv-popup-section input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-primary) !important;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tv-popup-section select:focus,
.tv-popup-section input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.tv-popup-section select:disabled,
.tv-popup-section input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tv-select,
.tv-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-primary) !important;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.tv-search-results {
    margin-top: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.tv-current-list {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
}

.tv-empty-message,
.tv-loading-message {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-primary) !important;
}

/* Search results info messages */
.tv-search-info {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-primary) !important;
}

.tv-search-error {
    padding: 1.25rem;
    text-align: center;
    color: #ef4444 !important;
}

/* TV Search Result Item */
.tv-search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.tv-search-result-item:hover {
    border-color: #FF6B35;
    transform: translateY(-2px);
}

.tv-search-result-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tv-search-result-symbol {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary) !important;
}

.tv-search-result-exchange {
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 107, 53, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tv-add-coin-btn {
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    transition: all 0.2s;
}

.tv-add-coin-btn:hover {
    transform: scale(1.1);
}

/* TV Watchlist Item */
.tv-watchlist-item {
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.tv-watchlist-item:hover {
    border-color: rgba(255, 107, 53, 0.5);
}

.tv-watchlist-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tv-watchlist-symbol {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary) !important;
}

.tv-watchlist-exchange {
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(36, 129, 204, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tv-remove-btn {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}

.tv-remove-btn:hover {
    transform: scale(1.05);
}

/* TV Coin List Items */
.tv-coin-item {
    padding: 0.875rem;
    margin: 0.5rem 0;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tv-coin-item:hover {
    border-color: #FF6B35;
    transform: translateY(-2px);
}

.tv-coin-item span {
    color: var(--text-primary) !important;
}

/* =========================================
   MARKET WEATHER V3 STYLES
   Zarif, ince, V3 tasarımına uygun
   ========================================= */

.market-weather-card-v3 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    margin-bottom: 0;
}

.market-weather-card-v3:hover {
    box-shadow: var(--shadow-md);
}

/* Header */
.market-weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.market-weather-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-icon-large {
    font-size: 1.75rem;
    opacity: 0.9;
}

.market-weather-title-group h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Content */
.market-weather-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Desktop: Sentiment + AI Reason side by side */
.market-weather-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.market-weather-top-row .weather-sentiment {
    margin: 0;
}

.market-weather-top-row .weather-reason {
    margin: 0;
    display: flex;
    align-items: flex-start;
}

/* Sentiment Overview - Kompakt ve zarif */
.weather-sentiment {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.sentiment-indicator {
    font-size: 2rem;
    line-height: 1;
}

.sentiment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sentiment-trend {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sentiment-score {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
}

.score-label {
    color: var(--text-secondary);
}

.score-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.volatility-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    color: var(--warning);
    font-weight: 600;
    font-size: 0.75rem;
    min-width: 3.5rem;
}

.volatility-badge span:first-child {
    font-size: 0.6875rem;
    opacity: 0.8;
    text-transform: uppercase;
}

/* AI Reason - İnce ve minimal */
.weather-reason {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-left: 2px solid var(--info);
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.reason-icon {
    font-size: 1rem;
    margin-top: 0.125rem;
    color: var(--info);
}

.weather-reason p {
    margin: 0;
    flex: 1;
    color: var(--text-primary);
}

/* Mode Badges - Daha küçük ve zarif */
.weather-modes {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8125rem;
    border: 1px solid;
    transition: all var(--transition);
    white-space: nowrap;
}

.mode-badge.enter {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.mode-badge.wait {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.mode-badge.avoid {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.mode-badge.neutral {
    background: rgba(107, 114, 128, 0.08);
    border-color: rgba(107, 114, 128, 0.3);
    color: var(--text-secondary);
}

.mode-icon {
    font-size: 0.875rem;
}

/* Mode Commentaries - Daha kompakt */
.mode-commentaries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.mode-commentary {
    padding: 0.875rem 1rem;
    background: var(--bg-page);
    border-radius: var(--radius);
    border-left: 2px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.mode-commentary:hover {
    border-left-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.commentary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.commentary-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.commentary-icon {
    font-size: 0.875rem;
}

.commentary-mode {
    color: var(--text-primary);
}

.commentary-status {
    font-size: 0.875rem;
}

.commentary-meta {
    display: flex;
    gap: 0.875rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.commentary-reason {
    padding: 0.625rem 0.875rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-primary);
    flex: 1;
}

body.dark .commentary-reason {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

/* Loading State */
.market-weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 0.75rem;
}

.market-weather-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.market-weather-loading p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Empty State */
.market-weather-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tv-coins-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .market-weather-card-v3 {
        padding: 1.25rem;
    }

    .market-weather-top-row {
        grid-template-columns: 1fr;
    }

    .mode-commentaries {
        grid-template-columns: 1fr;
    }

    .weather-sentiment {
        gap: 0.875rem;
    }

    .commentary-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .market-weather-card-v3 {
        padding: 1rem;
    }

    .market-weather-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .weather-modes {
        gap: 0.5rem;
    }

    .mode-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .tv-card-v3 {
        padding: 1.25rem;
    }

    .tv-card-header {
        margin-bottom: 1.25rem;
    }

    .tv-title-group h3 {
        font-size: 1.125rem;
    }

    .tv-title-group p {
        font-size: 0.8125rem;
    }

    .tv-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .tv-add-btn span {
        display: none;
    }

    .tv-add-btn {
        padding: 0.75rem;
        border-radius: 50%;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    .tv-coins-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .tv-coin-card-v3 {
        padding: 1rem;
    }

    .coin-symbol {
        font-size: 1rem;
    }

    .coin-price {
        font-size: 1.25rem;
    }

    /* Popup Responsive */
    .tv-popup-container {
        width: 95%;
        max-height: 90vh;
    }

    .tv-popup-header {
        padding: 1.25rem;
    }

    .tv-popup-header h3 {
        font-size: 1.125rem;
    }

    .tv-popup-body {
        padding: 1.25rem;
    }

    .tv-search-results {
        max-height: 150px;
    }

    .tv-current-list {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .tv-coins-grid {
        grid-template-columns: 1fr;
    }

    .tv-card-v3 {
        padding: 1rem;
    }

    .tv-empty-state {
        padding: 2rem 1rem;
    }

    .tv-empty-state .empty-icon {
        font-size: 3rem;
    }
}

/* =========================================
   SETUP MODAL STYLES
   Mini app stiline uygun, küçük ve zarif
   ========================================= */

.setup-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: 10000;
    animation: fadeIn 0.2s ease-out;
    padding: 1rem;
}

.setup-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 450px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.setup-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.setup-modal-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.setup-section {
    margin-bottom: 1.25rem;
}

.setup-section label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.setup-section input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.setup-section input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.setup-options-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.setup-preset-option {
    padding: 0.625rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
}

.setup-preset-option:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.setup-preset-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.setup-risk-modes {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.setup-risk-mode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9375rem;
    text-align: left;
}

.risk-mode-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.risk-mode-name {
    font-weight: 600;
}

.risk-mode-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
    padding-left: 2.25rem;
    opacity: 0.8;
}

.setup-risk-mode:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.setup-risk-mode.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.setup-risk-mode.selected .risk-mode-desc {
    color: var(--primary);
    opacity: 0.7;
}

.risk-icon {
    font-size: 1.5rem;
}

/* Exchange Grid (inside modal) */
.setup-exchange-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.setup-exchange-card {
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.8125rem;
    text-align: center;
}

.setup-exchange-card:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.setup-exchange-card.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.setup-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.setup-actions .btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.setup-actions .btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    color: white;
}

.setup-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.setup-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--bg-page);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.setup-actions .btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Responsive Setup Modal */
@media (max-width: 768px) {
    .setup-modal-content {
        max-width: 95%;
        padding: 1.25rem;
    }

    .setup-modal-header h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .setup-modal-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .setup-preset-option {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .setup-risk-mode {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* =========================================
   SETUP BALANCE MODE TOGGLE
   Manual / Exchange Connect tabs
   ========================================= */

.setup-balance-mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0.75rem;
    background: var(--bg-page);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid var(--border);
}

.setup-balance-tab {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.setup-balance-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.setup-balance-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 107, 53, 0.08);
}

.setup-balance-tab i {
    font-size: 0.75rem;
}

.setup-balance-panel {
    transition: all 0.3s;
}

.setup-exchange-connect-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setup-exchange-connect-info {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
}

.setup-exchange-connect-info i {
    color: var(--info);
    margin-top: 0.125rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.setup-exchange-connect-info p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.setup-exchange-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(255, 107, 53, 0.06);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
}

.setup-exchange-loading i {
    color: var(--primary);
    font-size: 1.125rem;
}

.setup-exchange-loading span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.setup-exchange-connected {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
}

.setup-exchange-connected i {
    color: #10b981;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.setup-exchange-connected span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.setup-exchange-balance {
    margin-left: auto;
    font-size: 1.125rem;
    font-weight: 700;
    color: #10b981 !important;
}

.setup-connect-exchange-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
}

/* =========================================
   DIAMOND DETECTOR - PREMIUM DESKTOP DESIGN
   Two-section card with features + exchanges
   ========================================= */

.dd-card {
    background: linear-gradient(145deg, rgba(88, 28, 135, 0.9), rgba(49, 10, 82, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(88, 28, 135, 0.25),
        0 0 0 1px rgba(168, 85, 247, 0.08) inset;
}

/* Decorative background glow */
.dd-bg-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.dd-bg-pattern {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.dd-card.dd-locked {
    opacity: 0.88;
}

/* ---- HEADER ---- */
.dd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    z-index: 1;
}

.dd-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.dd-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dd-icon-diamond {
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.dd-header-info {
    min-width: 0;
}

.dd-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.dd-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.dd-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Status badge */
.dd-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(107, 114, 128, 0.15);
    border: 1px solid rgba(107, 114, 128, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    transition: all 0.3s;
}

.dd-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6b7280;
    flex-shrink: 0;
    transition: all 0.3s;
}

.dd-status.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.dd-status.active .dd-status-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: dd-pulse 2s ease-in-out infinite;
}

@keyframes dd-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); }
}

/* Main toggle - wider with ON/OFF labels */
.dd-toggle {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
}

.dd-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.dd-toggle-track {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dd-toggle-track::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.dd-toggle-label-off,
.dd-toggle-label-on {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1;
    transition: opacity 0.25s;
}

.dd-toggle-label-off {
    right: 8px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.dd-toggle-label-on {
    left: 10px;
    color: #fff;
    opacity: 0;
}

.dd-toggle input:checked + .dd-toggle-track {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.dd-toggle input:checked + .dd-toggle-track::before {
    transform: translateX(32px);
}

.dd-toggle input:checked + .dd-toggle-track .dd-toggle-label-off {
    opacity: 0;
}

.dd-toggle input:checked + .dd-toggle-track .dd-toggle-label-on {
    opacity: 1;
}

/* Upgrade button (locked state) */
.dd-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: linear-gradient(135deg, #9C27B0, #673AB7);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.dd-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

.dd-upgrade-btn i {
    font-size: 0.7rem;
}

/* ---- BODY (Features + Exchanges) ---- */
.dd-body {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 1;
}

/* Feature highlights */
.dd-features {
    flex: 1;
    display: flex;
    gap: 1.25rem;
    min-width: 0;
}

.dd-feature-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 14px;
    transition: all 0.25s;
}

.dd-feature-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

.dd-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c084fc;
    font-size: 0.9rem;
}

.dd-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.dd-feature-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.dd-feature-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
}

/* Exchanges panel */
.dd-exchanges-panel {
    flex-shrink: 0;
    width: 320px;
    padding-left: 2rem;
    border-left: 1px solid rgba(139, 92, 246, 0.15);
    transition: opacity 0.3s;
    position: relative;
    z-index: 1;
}

.dd-exchanges-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dd-exchanges-title i {
    color: #a78bfa;
    font-size: 0.85rem;
}

.dd-exchanges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* Exchange item with mini toggle */
.dd-exchange-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dd-exchange-item:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}

.dd-exchange-item.selected {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.dd-exchange-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Mini toggle track for exchanges */
.dd-ex-toggle-track {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.dd-ex-toggle-track::before {
    content: "";
    position: absolute;
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dd-exchange-item input:checked + .dd-ex-toggle-track {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.dd-exchange-item input:checked + .dd-ex-toggle-track::before {
    transform: translateX(13px);
}

.dd-ex-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.dd-ex-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- RESPONSIVE ---- */

/* When inside dashboard grid column - card is narrower, stack vertically */
.dashboard-col-left .dd-body,
.dashboard-col-right .dd-body {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
}

.dashboard-col-left .dd-exchanges-panel,
.dashboard-col-right .dd-exchanges-panel {
    width: 100%;
    padding-left: 0;
    border-left: none;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.dashboard-col-left .dd-exchanges-grid,
.dashboard-col-right .dd-exchanges-grid {
    grid-template-columns: repeat(3, 1fr);
}

.dashboard-col-left .dd-features,
.dashboard-col-right .dd-features {
    flex-wrap: wrap;
}

.dashboard-col-left .dd-feature-item,
.dashboard-col-right .dd-feature-item {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 120px;
}

/* Header compact in grid column */
.dashboard-col-left .dd-header,
.dashboard-col-right .dd-header {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.dashboard-col-left .dd-status,
.dashboard-col-right .dd-status {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
}

/* Tablet */
@media (max-width: 1100px) {
    .dd-body {
        flex-direction: column;
        gap: 1.25rem;
    }

    .dd-exchanges-panel {
        width: 100%;
        padding-left: 0;
        border-left: none;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(139, 92, 246, 0.15);
    }

    .dd-exchanges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dd-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.25rem;
    }

    .dd-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .dd-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .dd-icon-diamond {
        font-size: 1.3rem;
    }

    .dd-title {
        font-size: 0.95rem;
    }

    .dd-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .dd-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .dd-feature-item {
        padding: 0.75rem;
    }

    .dd-exchanges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .dd-exchanges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dd-title {
        font-size: 0.88rem;
    }

    .dd-features {
        gap: 0.5rem;
    }
}

/* ==================== QUICK SETUP BANNER ==================== */

.quick-setup-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(247, 147, 30, 0.08));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quick-setup-banner-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.quick-setup-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-setup-banner-icon i {
    font-size: 20px;
    color: #fff;
}

.quick-setup-banner-title-wrap {
    flex: 1;
    min-width: 0;
}

.quick-setup-banner-title-wrap h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.quick-setup-banner-title-wrap p {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.quick-setup-banner-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quick-setup-banner-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.quick-setup-banner-body {
    padding: 0 20px 20px;
    max-height: 400px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.quick-setup-banner.collapsed .quick-setup-banner-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.quick-setup-banner-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px;
}

.quick-setup-banner-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-setup-banner-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.quick-setup-banner-benefits li i {
    color: #FF6B35;
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.quick-setup-banner-cta {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.quick-setup-banner-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.45);
}

.quick-setup-banner-cta:active {
    transform: translateY(0);
}

/* ==================== END QUICK SETUP BANNER ==================== */

/* ============================================================
   WATCHLIST OPPORTUNITIES (Elite, Scalping, Swing)
   ============================================================ */

.watchlist-opportunities-section {
    margin-bottom: 20px;
}

/* Card frame for dashboard grid columns */
.dashboard-col-right .watchlist-opportunities-section {
    background: var(--bg-card, rgba(17, 24, 39, 0.7));
    border: 1px solid var(--border, rgba(75, 85, 99, 0.3));
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 0;
}

.dashboard-col-right .watchlist-opportunities-section .wl-section-header {
    padding: 0;
    margin-bottom: 16px;
}

/* Grid layout for opportunity cards inside dashboard columns */
@media (min-width: 1200px) {
    .dashboard-col-right .wl-cards-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
        flex-wrap: nowrap;
    }

    .dashboard-col-right .wl-opp-card {
        flex: none;
        min-width: 0 !important;
        max-width: none !important;
        width: 100%;
        padding: 14px;
        gap: 10px;
    }

    /* Header: stack vertically so badges don't overflow */
    .dashboard-col-right .wl-opp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .dashboard-col-right .wl-opp-symbol-row {
        gap: 6px;
    }

    .dashboard-col-right .wl-opp-symbol {
        font-size: 15px;
    }

    .dashboard-col-right .wl-opp-direction {
        font-size: 11px;
        padding: 2px 6px;
    }

    .dashboard-col-right .wl-opp-badges {
        gap: 5px;
    }

    .dashboard-col-right .wl-mode-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .dashboard-col-right .wl-confidence-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Body rows compact */
    .dashboard-col-right .wl-opp-row {
        padding: 4px 8px;
    }

    .dashboard-col-right .wl-opp-label {
        font-size: 11px;
        white-space: nowrap;
    }

    .dashboard-col-right .wl-opp-value {
        font-size: 13px;
    }

    /* Footer compact */
    .dashboard-col-right .wl-opp-footer {
        gap: 5px;
    }

    .dashboard-col-right .wl-opp-tf,
    .dashboard-col-right .wl-opp-exchange {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Detail button compact */
    .dashboard-col-right .wl-detail-btn {
        font-size: 12px;
        padding: 8px 10px;
        gap: 5px;
    }
}

/* Loading state for watchlist sections */
.wl-loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    color: var(--text-secondary, #9ca3af);
}

/* Empty state for watchlist sections */
.wl-empty-state {
    text-align: center;
    padding: 20px 16px;
    color: var(--text-secondary, #9ca3af);
    font-size: 14px;
    background: var(--bg-card, rgba(31, 41, 55, 0.5));
    border-radius: 12px;
    border: 1px dashed var(--border, rgba(75, 85, 99, 0.3));
}

.wl-empty-state p {
    margin: 0;
}

/* Section Header */
.wl-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 4px;
}

.wl-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wl-section-icon {
    font-size: 20px;
}

.wl-section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.wl-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.wl-view-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary, #aaa);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wl-view-all-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary, #fff);
}

/* Cards Scroll Container */
.wl-cards-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.wl-cards-scroll::-webkit-scrollbar {
    display: none;
}

/* Opportunity Card */
.wl-opp-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
    position: relative;
}

.wl-opp-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.wl-opp-card.buy {
    border-left: 3px solid #4CAF50;
}

.wl-opp-card.sell {
    border-left: 3px solid #f44336;
}

/* Card Header */
.wl-opp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.wl-opp-symbol-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wl-opp-symbol {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.wl-opp-direction {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.wl-opp-direction.buy {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.wl-opp-direction.sell {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.wl-opp-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.wl-mode-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}

.wl-mode-badge.elite-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.wl-confidence-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    color: #fff;
}

.wl-ai-score {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* TF Badge */
.wl-tf-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.wl-tf-badge.multi {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.wl-tf-badge.single {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #FFC107;
}

/* Card Body */
.wl-opp-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wl-opp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.wl-opp-row.entry-row {
    background: rgba(59, 130, 246, 0.1);
}

.wl-opp-label {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
}

.wl-opp-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.wl-opp-value.tp { color: #4CAF50; }
.wl-opp-value.sl { color: #f44336; }
.wl-opp-value.entry { color: #3b82f6; font-weight: 700; }

/* Card Footer */
.wl-opp-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wl-opp-tf {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #aaa);
}

.wl-opp-exchange {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #aaa);
}

/* Expiry Badge */
.wl-expiry-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.wl-expiry-badge.green { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.wl-expiry-badge.yellow { background: rgba(255, 193, 7, 0.2); color: #FFC107; }
.wl-expiry-badge.red { background: rgba(244, 67, 54, 0.2); color: #f44336; }

/* Detail Button */
.wl-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: var(--text-primary, #fff);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wl-detail-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
}

.wl-detail-btn.elite-detail-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.25);
    color: #FFD700;
}

/* Elite Card Specific */
.wl-elite-exchange {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
}

.wl-elite-tp-section {
    background: rgba(34, 197, 94, 0.08);
    padding: 8px;
    border-radius: 8px;
}

.wl-elite-tp-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    color: var(--text-secondary, #aaa);
}

.wl-tp-pct {
    color: #4CAF50;
    font-weight: 700;
}

.wl-elite-sl-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 8px;
    color: var(--text-secondary, #aaa);
}

.wl-sl-pct {
    color: #f44336;
    font-weight: 700;
}

.wl-elite-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary, #aaa);
    padding: 4px 0;
}

/* ============================================================
   DIAMOND DETECTOR ALERT CARD
   ============================================================ */

.dd-alert-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.dd-alert-card.dd-locked-card {
    opacity: 0.85;
}

.dd-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dd-alert-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
}

.dd-alert-icon-wrap.pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    animation: dd-pulse 2s ease-in-out infinite;
}

@keyframes dd-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.06); }
}

.dd-alert-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dd-alert-title-section h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.dd-alert-locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #EF4444;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}

.dd-alert-status.active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    width: fit-content;
}

.dd-status-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: live-blink 1.5s ease-in-out infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.dd-alert-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    width: fit-content;
}

.dd-alert-type-badge.scalping {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
}

.dd-alert-type-badge.swing {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

/* Scanning Animation */
.dd-scanning {
    text-align: center;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.dd-scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
    animation: dd-scan 3s ease-in-out infinite;
}

@keyframes dd-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.dd-scanning p {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    font-weight: 500;
}

/* Alert Body */
.dd-alert-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dd-alert-symbol-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dd-alert-symbol {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dd-symbol-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary, #fff);
}

.dd-symbol-exchange {
    font-size: 12px;
    color: var(--text-secondary, #aaa);
}

.dd-alert-meta {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dd-alert-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.dd-alert-direction.buy {
    background: rgba(76, 175, 80, 0.12);
    color: #4CAF50;
}

.dd-alert-direction.sell {
    background: rgba(244, 67, 54, 0.12);
    color: #f44336;
}

.dd-alert-levels {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dd-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.dd-level.entry {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: #3b82f6;
}

.dd-level.tp {
    background: rgba(76, 175, 80, 0.08);
    border-left-color: #4CAF50;
}

.dd-level.sl {
    background: rgba(244, 67, 54, 0.08);
    border-left-color: #f44336;
}

.dd-level-label {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
}

.dd-level-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

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

.dd-view-detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.dd-upgrade-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dd-alert-card .dd-upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(103, 126, 234, 0.4);
}

/* ============================================================
   DETAIL MODALS (V3)
   ============================================================ */

.v3-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.v3-detail-modal.active {
    opacity: 1;
    pointer-events: all;
}

.v3-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.v3-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: var(--bg-primary, #1a1a2e);
    border-radius: 20px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.v3-modal-content.elite-modal {
    max-width: 560px;
}

.v3-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #fff;
}

.v3-modal-header.buy { background: linear-gradient(135deg, #2d6a2e, #1a4a1b); }
.v3-modal-header.sell { background: linear-gradient(135deg, #6a2d2d, #4a1b1b); }

.v3-modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.v3-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    transition: background 0.2s;
    z-index: 2;
}

.v3-modal-close:hover { background: rgba(255, 255, 255, 0.3); }

/* Direction Banner */
.v3-modal-direction-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.v3-modal-dir-icon { font-size: 40px; }
.v3-modal-dir-text { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.v3-modal-confidence { font-size: 14px; opacity: 0.9; }

/* Modal Body */
.v3-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.v3-modal-section h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.v3-modal-ai-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
}

.v3-modal-ai-decision {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.v3-modal-ai-reason {
    font-size: 13px;
    opacity: 0.85;
    color: var(--text-secondary, #aaa);
}

/* Targets */
.v3-modal-targets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v3-target-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 10px;
    border-left: 3px solid #10b981;
    font-size: 13px;
    color: var(--text-primary, #fff);
}

.v3-target-row.highlight {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #FFD700;
}

.v3-target-val {
    font-weight: 700;
}

.v3-target-val em {
    font-style: normal;
    color: #10b981;
    margin-left: 4px;
    font-size: 12px;
}

.v3-sl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 10px;
    border-left: 3px solid #ef4444;
    font-size: 13px;
    color: var(--text-primary, #fff);
    margin-top: 6px;
}

.v3-sl-val {
    font-weight: 700;
    color: #ef4444;
}

.v3-sl-val em {
    font-style: normal;
    margin-left: 4px;
    font-size: 12px;
}

/* Indicators */
.v3-modal-indicators {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #aaa);
}

/* Disclaimer */
.v3-modal-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.6;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #aaa);
}

/* Elite Hero */
.v3-elite-hero {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 24px 20px;
    color: #fff;
    position: relative;
}

.v3-elite-hero-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.v3-elite-hero-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.v3-elite-hero-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1px;
}

.v3-elite-hero-symbol {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 4px;
}

.v3-elite-hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.v3-elite-quality,
.v3-elite-ai-score {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

/* Elite Metrics */
.v3-elite-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.v3-metric-card {
    padding: 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v3-metric-card.green {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.v3-metric-card.red {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.v3-metric-label {
    font-size: 12px;
    color: var(--text-secondary, #aaa);
}

.v3-metric-value {
    font-size: 20px;
    font-weight: 700;
}

.v3-metric-card.green .v3-metric-value { color: #10b981; }
.v3-metric-card.red .v3-metric-value { color: #ef4444; }

/* Elite Info Grid */
.v3-elite-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(103, 126, 234, 0.06);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(103, 126, 234, 0.15);
}

.v3-elite-info-grid > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v3-info-label {
    font-size: 11px;
    color: var(--text-secondary, #aaa);
    opacity: 0.7;
}

.v3-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

/* Quality Text */
.v3-modal-quality-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary, #aaa);
    background: rgba(245, 158, 11, 0.06);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Modal Footer */
.v3-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.v3-modal-close-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v3-modal-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(103, 126, 234, 0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .wl-opp-card {
        flex: 0 0 280px;
    }

    .v3-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
    }

    .v3-elite-hero-symbol {
        font-size: 24px;
    }
}

@media (min-width: 769px) {
    .wl-cards-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .wl-opp-card {
        flex: 1 1 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
        min-width: 280px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP 2-COLUMN DASHBOARD GRID
   ═══════════════════════════════════════════════════════════════ */

/* Mobile first - single column */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-col-left,
.dashboard-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Desktop: 2 columns */
@media (min-width: 1200px) {
    .dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
    }

    .dashboard-col-left,
    .dashboard-col-right {
        min-width: 0;
        gap: 24px;
    }
}

/* Large desktop: slightly weighted left column for AI Advisor */
@media (min-width: 1600px) {
    .dashboard-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 32px;
    }
}

/* Constrain dashboard for readability on wide screens */
@media (min-width: 1200px) {
    .dashboard-v3 {
        max-width: 1400px;
        margin: 0 auto;
    }
}
