@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #030614;
    --bg-card: rgba(8, 20, 36, 0.7);
    --accent-blue: #0a84ff;
    --accent-cyan: #00e5ff;
    --border-glow: rgba(10, 132, 255, 0.3);
    --text-primary: #edf2fb;
    --text-secondary: #a0bbd9;
    --call-color: #10b981;
    --put-color: #ef4444;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at 20% 20%, #0a1120, #02040a);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 180, 255, 0.1) inset;
    padding: 24px;
    margin-bottom: 24px;
}

/* Navbar */
.navbar {
    margin-bottom: 30px;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(5, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    border: 1px solid #1e3a5f;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-icon {
    margin-right: 6px;
}
.logo-pro {
    background: linear-gradient(135deg, #0a84ff, #00e5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s;
}
.nav-links a:hover {
    background: rgba(10, 132, 255, 0.15);
    color: white;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(145deg, #0a2a44, #001a30);
    border: 1.5px solid #1e6f9f;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 14px rgba(0, 80, 160, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    background: linear-gradient(145deg, #1a3a5c, #00284d);
    border-color: #3b9bff;
    box-shadow: 0 0 20px #1e6f9f;
    transform: translateY(-2px);
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid #2a5f7a;
    color: #b0d4f0;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: #4fa6e0;
    color: white;
    background: rgba(30, 100, 200, 0.1);
}

/* Forms */
input, select {
    background: #0a1622;
    border: 1.5px solid #1e3a5f;
    color: white;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border 0.2s;
}
input:focus, select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px #1e4f8a;
}
.form-group {
    margin-bottom: 20px;
}

/* Signal Display */
.signal-result {
    text-align: center;
    padding: 20px;
}
.signal-pair {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.signal-direction {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 6px;
}
.direction-call {
    color: var(--call-color);
    text-shadow: 0 0 30px var(--call-color);
}
.direction-put {
    color: var(--put-color);
    text-shadow: 0 0 30px var(--put-color);
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}
.profile-avatar {
    font-size: 4rem;
}
.role-badge {
    background: #102a44;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #2a5f8a;
    color: #c6e2ff;
}
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    text-align: center;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 10px;
}
.history-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
}
.history-table th, .admin-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #2a4a6a;
    color: var(--text-secondary);
}
.history-table td, .admin-table td {
    padding: 12px;
    border-bottom: 1px solid #1e3045;
}

/* 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%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    border-radius: 32px;
    padding: 30px;
}
.hidden {
    display: none !important;
}

/* Utilities */
.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%; }

.error-message {
    color: #f87171;
    margin-top: 10px;
    font-size: 0.9rem;
}
.success-message {
    color: #34d399;
}