:root {
    --bg-deep: #030614;
    --bg-card: rgba(8, 20, 36, 0.75);
    --accent-primary: #0a84ff;
    --accent-secondary: #00e5ff;
    --accent-glow: rgba(10, 132, 255, 0.4);
    --border-light: rgba(30, 100, 200, 0.25);
    --text-bright: #ffffff;
    --text-soft: #b0c7e9;
    --call: #10b981;
    --put: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-deep);
    color: var(--text-bright);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0a84ff, #0044aa);
    top: -200px;
    right: -100px;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00e5ff, #0066aa);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}
.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7b2ff7, #2a0a4a);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Glassmorphism */
.glass-nav, .glass-card, .modal-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 180, 255, 0.1) inset;
}
.glass-card {
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent-glow) inset;
}

/* Layout */
.app-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}
.main-content {
    min-height: calc(100vh - 160px);
    margin: 20px 0;
}

/* Navigation */
.navbar {
    border-radius: 60px;
    padding: 8px 20px;
    margin-bottom: 20px;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    color: var(--accent-secondary);
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--accent-secondary));
}
.logo-highlight {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 12px;
}
.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a i {
    font-size: 1.1rem;
}
.nav-links a:hover {
    background: rgba(10, 132, 255, 0.15);
    color: white;
}
.nav-links a.active {
    background: var(--accent-primary);
    color: white;
}
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    color: white;
    font-size: 1.5rem;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
}
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 20px;
    right: 20px;
    z-index: 100;
    padding: 20px;
    border-radius: 28px;
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-menu-links a {
    color: var(--text-soft);
    text-decoration: none;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
}

/* Buttons */
.btn-primary, .btn-outline, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(145deg, #0a2a44, #001a30);
    border: 1.5px solid var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(10, 132, 255, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(145deg, #1a3a5c, #00284d);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-primary);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-light);
    color: var(--text-soft);
}
.btn-outline:hover {
    border-color: var(--accent-secondary);
    color: white;
    background: rgba(10, 132, 255, 0.1);
}
.btn-block {
    display: flex;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(5, 15, 25, 0.6);
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
input:focus, select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}
input::placeholder {
    color: #6a8ab0;
}

/* Signal Display */
.signal-card {
    text-align: center;
    padding: 30px 20px;
}
.signal-pair {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 15px;
}
.signal-direction {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: 8px;
    text-transform: uppercase;
}
.direction-call {
    color: var(--call);
    text-shadow: 0 0 30px var(--call);
    animation: pulse-glow 2s infinite;
}
.direction-put {
    color: var(--put);
    text-shadow: 0 0 30px var(--put);
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    text-align: center;
    padding: 20px;
}
.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-secondary);
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-label {
    color: var(--text-soft);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}
.history-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
}
.history-table th, .admin-table th {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.history-table td, .admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(30, 100, 200, 0.1);
}
.history-table tr:hover, .admin-table tr:hover {
    background: rgba(10, 132, 255, 0.05);
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.search-box input {
    flex: 1;
}
.search-box button {
    padding: 14px 24px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.pagination button {
    padding: 8px 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: white;
    cursor: pointer;
}
.pagination button.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-card {
    max-width: 450px;
    width: 90%;
    border-radius: 32px;
    padding: 30px;
}
.modal-icon {
    font-size: 3rem;
    color: #229ED9;
    margin-bottom: 10px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 14px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    animation: slideIn 0.3s;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; gap: 15px; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .logo { font-size: 1.4rem; }
    .signal-direction { font-size: 3.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
}