@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #0b0e14; color: #ffffff; overflow-x: hidden; }

/* Utilities */
.glass-effect, .glass-panel, .glass-effect-btn { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.08); }
.glass-panel { border-radius: 12px; padding: 20px; }
.glass-effect-btn { border-radius: 8px; padding: 12px 15px; color: white; cursor: pointer; transition: 0.3s; font-weight: 600; }
.glass-effect-btn:hover { background: rgba(255, 255, 255, 0.1); }
.glass-input { width: 100%; padding: 14px; border-radius: 8px; color: white; outline: none; margin-top: 5px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); }

/* Premium Lock Utilities */
.blurred-text { filter: blur(6px); user-select: none; pointer-events: none; }

.green { color: #00b894 !important; }
.red { color: #ff4757 !important; }
.text-center { text-align: center; }
.muted-text { color: #8b8b93; font-size: 0.85rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.btn-primary { background: #6c5ce7; border: none; }
.btn-dark { background: #1a1b26; border: none; }

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; position: sticky; top: 0; z-index: 100; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 20px; }
.logo { font-size: 1.5rem; font-weight: bold; color: #6c5ce7; }
.desktop-nav a { color: #8b8b93; text-decoration: none; font-weight: 600; font-size: 0.9rem; margin-right: 15px;}
.desktop-nav a.active, .desktop-nav a:hover { color: white; }
.menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Profile Dropdown */
.profile-menu-container { position: relative; display: inline-block; }
.profile-icon { border: none; font-size: 1.2rem; padding: 10px 15px;}
.profile-dropdown { display: none; position: absolute; right: 0; top: 55px; min-width: 220px; border-radius: 12px; overflow: hidden; z-index: 300; background: #13141b; border: 1px solid rgba(255,255,255,0.1); }
.profile-dropdown.show { display: block; }
.profile-dropdown a { color: white; padding: 12px 16px; text-decoration: none; display: block; font-size: 0.9rem; }
.profile-dropdown a i { margin-right: 8px; width: 15px; text-align: center; }
.profile-dropdown a:hover { background: rgba(255, 255, 255, 0.1); }
.user-info-box { padding: 15px; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: white; word-break: break-all; }
.dropdown-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 0; }
.logout-text { color: #ff4757 !important; }
.logout-text:hover { background: rgba(255, 71, 87, 0.1) !important; }

/* =========================================
   STRONG ANTI-SQUISH GRID (Mobile Fix)
   ========================================= */
.trading-container { display: flex; flex-wrap: wrap; gap: 15px; padding: 15px; align-items: flex-start; }
.order-book { flex: 1 1 250px; min-width: 250px; max-width: 100%; }
.center-content { flex: 3 1 450px; min-width: 320px; display: flex; flex-direction: column; gap: 15px; max-width: 100%; }
.right-content { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; gap: 15px; max-width: 100%; }

/* Interface Elements */
.section-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.order-book .row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; }
.red-list .row span:first-child { color: #ff4757; }
.green-list .row span:first-child { color: #00b894; }
.current-price { margin: 15px 0; text-align: center; font-size: 1.5rem;}
.chart-area { padding: 10px; }
.order-tabs { display: flex; gap: 10px; margin-bottom: 20px; background: rgba(0,0,0,0.3); padding: 5px; border-radius: 8px; }
.order-tabs .tab { flex: 1; background: transparent; padding: 8px; }
.order-tabs .tab.active { background: #6c5ce7; }
.btn-confirm { width: 100%; background: #6c5ce7; padding: 15px; margin-top: 10px; }

/* Open Orders */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 10px; margin-bottom: 15px; }
.active-tab { color: #6c5ce7; font-weight: bold; border-bottom: 2px solid #6c5ce7; padding-bottom: 10px; margin-bottom: -11px; }
.order-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.order-card { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; display: inline-block; margin: 8px 0; }
.badge.red { background: rgba(255, 71, 87, 0.1); color: #ff4757; }
.badge.green { background: rgba(0, 184, 148, 0.1); color: #00b894; }
.order-details p { font-size: 0.85rem; color: #8b8b93; margin-bottom: 5px; }
.order-details strong { color: white; }

/* Premium Signals */
.premium-signals { padding: 20px; max-width: 1200px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.pricing-card { text-align: center; }
.pricing-card h2 { margin: 15px 0; font-size: 2rem; }
.signal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.signal-card { text-align: left; background: #13141b; border: 1px solid rgba(255,255,255,0.05);}
.signal-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.btn-upgrade { width: 100%; margin-top: 20px; background: #6c5ce7; display: flex; justify-content: center; align-items: center; gap: 10px;}

/* Custom Alert & Login Modal */
.custom-alert-box { background: #13141b; width: 90%; max-width: 350px; margin: auto; text-align: center; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 40px rgba(0,0,0,0.8); position: relative; animation: zoomIn 0.3s ease-out; }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); justify-content: center; align-items: center; }
.new-login-modal { background: #0d1116; width: 90%; max-width: 420px; margin: auto; border-radius: 16px; position: relative; animation: slideDown 0.3s ease-out; box-shadow: 0 10px 40px rgba(0,0,0,0.9); }
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { color: #fff; position: absolute; right: 15px; top: 10px; font-size: 28px; cursor: pointer; z-index: 10; font-weight: 300; }
.login-top-box { position: relative; height: 110px; background: #1a1c23; margin: 15px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.login-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.login-top-content { position: relative; z-index: 2; padding: 15px; }
.login-top-content h2 { font-size: 1.3rem; color: white; margin-bottom: 5px; font-weight: 700;}
.login-top-content p { font-size: 0.8rem; color: #a0a0a0; }
.login-body { padding: 10px 25px 30px 25px; text-align: center; }
.login-logo { color: #6c5ce7; font-size: 1.6rem; font-weight: bold; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;}
.security-text { font-size: 0.85rem; color: #8b8b93; margin: 15px 0 25px 0; line-height: 1.5; }
.divider { display: flex; align-items: center; text-align: center; margin: 25px 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1); }
.divider span { padding: 0 15px; color: #6b6b75; font-size: 0.85rem; }
.login-body .input-group { text-align: left; margin-bottom: 15px; }
.login-body .input-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: #6b6b75; }
.new-input { background: #161822; border: 1px solid rgba(255,255,255,0.05); }
.new-input:focus { border: 1px solid #6c5ce7; }
.btn-manual { background: transparent; color: white; width: 100%; padding: 14px; margin-top: 10px; border-radius: 8px; font-weight: 600; font-size: 1rem; border: 1px solid #6c5ce7; cursor: pointer; transition: 0.3s; }
.btn-manual:hover { background: rgba(108, 92, 231, 0.1); }

/* Mobile Sidebar */
.sidebar { height: 100%; width: 0; position: fixed; top: 0; left: 0; z-index: 200; overflow-x: hidden; transition: 0.3s; padding-top: 60px; background: rgba(11, 14, 20, 0.95); }
.sidebar a { padding: 15px 25px; text-decoration: none; font-size: 1.2rem; color: #8b8b93; display: block; }
.sidebar a.active, .sidebar a:hover { color: white; border-left: 4px solid #6c5ce7;}
.sidebar .closebtn { position: absolute; top: 10px; right: 25px; font-size: 36px; }

/* Responsive Adjustments (Fix for squished UI) */
@media screen and (max-width: 1024px) {
    .trading-container { flex-direction: column; }
    .order-book { display: none; } 
    .center-content, .right-content { width: 100%; flex: auto; } 
}
@media screen and (max-width: 768px) {
    .desktop-nav, .crypto-stats { display: none; }
    .menu-btn { display: block; }
    .signal-grid { grid-template-columns: 1fr; } 
}
