/* ===== DylPredict - Premium UI/UX ===== */
:root {
    --navy-deep: #0a1929;
    --slate-blue: #1e3a5f;
    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.05);
    --neon-green: #00ff9d;
    --neon-red: #ff4d4d;
    --soft-blue: #4d8eff;
    --purple-accent: #9d4dff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(10, 25, 41, 0.75);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--navy-deep), var(--slate-blue));
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* ===== 3D Robot Glow Effect ===== */
.robot-glow {
    position: fixed;
    top: 50%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 142, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ===== Glassmorphism Cards ===== */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card {
    padding: 24px;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 255, 157, 0.1);
    border-color: rgba(0, 255, 157, 0.2);
}

/* ===== Header ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-green), var(--soft-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--navy-deep);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    transition: var(--transition-smooth);
}

.logo-icon:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff, var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 400;
    -webkit-text-fill-color: white;
}

.tagline {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Symbol Selector - UPDATED with Custom Input ===== */
.symbol-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.custom-input-group {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 280px;
}

#customSymbolInput {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    flex: 1;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

#customSymbolInput:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

#customSymbolInput:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

#customSymbolInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.glass-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    outline: none;
    transition: var(--transition-smooth);
    min-width: 140px;
}

.glass-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.glass-select option {
    background: var(--navy-deep);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-green), var(--soft-blue));
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: var(--navy-deep);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.full-width {
    grid-column: 1 / -1;
}

/* ===== Signal Card ===== */
.signal-card {
    position: relative;
    overflow: hidden;
}

.signal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.signal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.signal-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.signal-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: monospace;
}

.opinion-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 20px;
    margin-right: 12px;
    transition: var(--transition-smooth);
}

.confidence-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.price-container {
    margin: 24px 0;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-value span:first-child {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.price-change {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.price-change.positive {
    color: var(--neon-green);
    background: rgba(0, 255, 157, 0.1);
}

.price-change.negative {
    color: var(--neon-red);
    background: rgba(255, 77, 77, 0.1);
}

.signal-reason {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.liquidation-alert {
    font-size: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--neon-green);
    font-weight: 500;
}

/* ===== Robot Mascot ===== */
.robot-mascot {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.robot-3d {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--soft-blue), var(--purple-accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    position: relative;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(77, 142, 255, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.robot-eye-left,
.robot-eye-right {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 25px;
    animation: blink 3s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.robot-eye-left {
    left: 20px;
}

.robot-eye-right {
    right: 20px;
}

/* ===== Gauge Chart ===== */
.gauge-container {
    position: relative;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.gauge-value {
    position: absolute;
    text-align: center;
}

.gauge-value span:first-child {
    font-size: 32px;
    font-weight: 700;
    display: block;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.bias-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Premium Display ===== */
.premium-display {
    text-align: center;
    margin: 20px 0;
}

.big-number {
    font-size: 42px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.premium-bias {
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 500;
}

.premium-bias.neon-green {
    background: rgba(0, 255, 157, 0.15);
    color: var(--neon-green);
}

.premium-bias.neon-red {
    background: rgba(255, 77, 77, 0.15);
    color: var(--neon-red);
}

.funding-rate {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 16px;
}

.funding-value {
    font-weight: 600;
}

/* ===== Trade Flow ===== */
.flow-bar {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flow-buy {
    background: linear-gradient(90deg, var(--neon-green), #00c48c);
    color: black;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

.flow-sell {
    background: linear-gradient(90deg, var(--neon-red), #ff3333);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

.flow-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.flow-stats strong {
    color: var(--text-primary);
}

/* ===== Liquidation Zones ===== */
.zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zone-item:last-child {
    border-bottom: none;
}

.zone-label {
    font-weight: 600;
}

.long-liq {
    color: var(--neon-red);
}

.short-liq {
    color: var(--neon-green);
}

.zone-distance {
    font-weight: 700;
    font-family: monospace;
}

.zone-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

/* ===== Patterns ===== */
.patterns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    min-height: 32px;
}

.pattern-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.pattern-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pattern-badge.warning {
    background: rgba(255, 77, 77, 0.15);
    color: #ff9999;
    border-left: 2px solid var(--neon-red);
}

.pattern-badge.success {
    background: rgba(0, 255, 157, 0.15);
    color: var(--neon-green);
    border-left: 2px solid var(--neon-green);
}

.breakdown-status {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-item span:first-child {
    font-size: 12px;
    color: var(--text-secondary);
}

.status-item span:last-child {
    font-weight: 600;
}

/* ===== Summary Card ===== */
.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.summary-text {
    flex: 1;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.action-btn {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Inter', sans-serif;
}

.action-btn.analyze {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.action-btn.analyze:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-btn.trade {
    background: linear-gradient(135deg, var(--neon-green), var(--soft-blue));
    color: var(--navy-deep);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2);
}

.action-btn.trade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 157, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

/* ===== Pro Footer ===== */
.pro-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    margin-top: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.pro-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.pro-text i {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.pro-features {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.pro-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.pro-features span:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.pro-features i {
    margin-right: 6px;
    color: var(--soft-blue);
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 64px;
    color: var(--neon-green);
    margin-bottom: 24px;
    animation: spin 2s linear infinite;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

.loading-spinner p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .symbol-selector {
        flex-direction: column;
    }
    
    .custom-input-group {
        min-width: 100%;
    }
    
    .glass-select {
        width: 100%;
    }
    
    .btn-primary {
        justify-content: center;
    }
    
    .summary-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pro-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .pro-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .robot-mascot {
        display: none;
    }
    
    .price-value span:first-child {
        font-size: 28px;
    }
    
    .big-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .card {
        padding: 20px;
    }
    
    .price-value span:first-child {
        font-size: 24px;
    }
    
    .big-number {
        font-size: 32px;
    }
    
    .gauge-value span:first-child {
        font-size: 28px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* ===== Neon Accents ===== */
.neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.neon-red {
    color: var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--soft-blue);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* ===== Selection Style ===== */
::selection {
    background: rgba(0, 255, 157, 0.2);
    color: var(--neon-green);
}

::-moz-selection {
    background: rgba(0, 255, 157, 0.2);
    color: var(--neon-green);
}