/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
}

/* DARK TEMA ZORUNLU - BEYAZ TEMA KALDIRILDI */
body.light-theme {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #e2e8f0 !important;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mono {
    font-family: 'Courier New', monospace;
}

/* INPUTS */
input, select, textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    outline: none;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* BUTTONS */
.scan-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* LIVE POSITIONS PANEL */
.live-positions-panel {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 340px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 1000;
}

/* MOBILE NAV */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 8px;
    z-index: 9998;
    justify-content: space-around;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.nav-btn:active {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(0.95);
}

/* BURGER MENU */
.burger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    padding: 20px;
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
}

.burger-menu.active {
    right: 0;
}

.burger-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.burger-overlay.active {
    display: block;
    opacity: 1;
}

/* BURGER MENU SCROLLBAR */
.burger-menu::-webkit-scrollbar {
    width: 6px;
}

.burger-menu::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
}

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

.burger-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* SYSTEM HEALTH BAR */
.system-health-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    z-index: 9997;
    animation: slideDown 0.3s ease;
}

.health-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.health-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.health-red {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
    color: #fff;
}

.ticker-text {
    display: inline-block;
    animation: ticker 15s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    z-index: 9996;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100%); }
    to { transform: translateX(-50%) translateY(0); }
}

/* DAILY SUMMARY CARD */
.daily-summary-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 16px;
}

/* LOGIN PRICING CARDS */
.login-pricing-card {
    transition: all 0.3s;
}

.login-pricing-card:hover {
    transform: translateY(-4px);
}

.login-pricing-card.gold:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.login-pricing-card.cyan:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.login-performance-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
}

/* BTC WARNING */
.btc-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border: 2px solid rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding-right: 0 !important;
        padding-bottom: 80px;
    }
    
    .live-positions-panel {
        display: none;
    }
    
    .mobile-nav-bar {
        display: flex;
    }
    
    #mobileGoalTracker {
        display: block !important;
    }
    
    .modal-content {
        max-width: 95vw;
        padding: 16px;
    }
    
    .burger-menu {
        width: 85vw;
        max-width: 320px;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.7);
}

/* UTILITY */
.hidden {
    display: none !important;
}

.text-emerald {
    color: #10b981;
}

.text-rose {
    color: #f43f5e;
}

.text-amber {
    color: #f59e0b;
}

.text-cyan {
    color: #06b6d4;
}

.text-purple {
    color: #8b5cf6;
}

/* BURGER MENU BUTTON HOVER EFFECTS */
.burger-menu button {
    transition: all 0.2s ease;
}

.burger-menu button:hover {
    transform: translateX(4px);
    opacity: 0.9;
}

.burger-menu button:active {
    transform: translateX(2px) scale(0.98);
}

/* SMOOTH TRANSITIONS */
* {
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-user-select: none;
    user-select: none;
}
