* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: #0b0e11; color: #eaecef; }
a { color: #f0b90b; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn { padding: 10px 22px; border-radius: 4px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-primary { background: #f0b90b; color: #000; }
.btn-primary:hover { background: #d4a50a; }
.btn-outline { background: transparent; color: #f0b90b; border: 1px solid #f0b90b; }
.btn-outline:hover { background: #f0b90b22; }
.btn-green { background: #0ecb81; color: #fff; }
.btn-green:hover { background: #0b9b63; }
.btn-red { background: #f6465d; color: #fff; }
.btn-red:hover { background: #c73347; }
.btn-gray { background: #2b3139; color: #eaecef; border: 1px solid #474d57; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; }

/* Nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; border-bottom: 1px solid #2b3139; background: #161a1e; }
.logo { font-size: 22px; font-weight: 700; color: #f0b90b; }
.logo span { color: #eaecef; font-weight: 400; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: #848e9c; text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: #f0b90b; }

/* Hero */
.hero { text-align: center; padding: 100px 24px 80px; background: radial-gradient(ellipse at center, #1a1f27 0%, #0b0e11 70%); }
.hero h1 { font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero h1 em { color: #f0b90b; font-style: normal; }
.hero p { font-size: 18px; color: #848e9c; max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.live-ticker { background: #0ecb8122; border: 1px solid #0ecb8144; border-radius: 6px; padding: 8px 20px; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; font-family: monospace; }
.live-dot { width: 8px; height: 8px; background: #0ecb81; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.stats { display: flex; justify-content: center; gap: 60px; padding: 60px 24px; border-top: 1px solid #2b3139; border-bottom: 1px solid #2b3139; background: #161a1e; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 32px; color: #f0b90b; font-family: monospace; }
.stat-item span { font-size: 13px; color: #848e9c; text-transform: uppercase; letter-spacing: 1px; }

.features { padding: 80px 48px; max-width: 1100px; margin: 0 auto; }
.features h2 { text-align: center; font-size: 32px; margin-bottom: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: #161a1e; border: 1px solid #2b3139; border-radius: 8px; padding: 28px; }
.feature-card .icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: 14px; color: #848e9c; line-height: 1.6; }
footer { text-align: center; padding: 32px; border-top: 1px solid #2b3139; color: #474d57; font-size: 13px; }

/* Auth */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container { width: 100%; max-width: 420px; padding: 24px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 { font-size: 28px; color: #f0b90b; }
.auth-logo p { color: #848e9c; font-size: 14px; margin-top: 6px; }
.card { background: #161a1e; border: 1px solid #2b3139; border-radius: 8px; padding: 32px; }
.tabs { display: flex; margin-bottom: 28px; border-bottom: 1px solid #2b3139; }
.tab { flex: 1; text-align: center; padding: 10px; cursor: pointer; color: #848e9c; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.tab.active { color: #f0b90b; border-bottom-color: #f0b90b; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; color: #848e9c; text-transform: uppercase; margin-bottom: 8px; }
.form-group input, .form-group select { width: 100%; background: #2b3139; border: 1px solid #474d57; border-radius: 4px; padding: 12px 14px; color: #fff; font-size: 15px; outline: none; }
.form-group input:focus { border-color: #f0b90b; }
.error-msg { background: #f6465d22; border: 1px solid #f6465d; color: #f6465d; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 16px; display: none; }
.demo-box { background: #21262c; border: 1px solid #363c4e; border-radius: 6px; padding: 12px 16px; margin-top: 20px; font-size: 12px; color: #848e9c; }
.demo-box strong { color: #f0b90b; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: #848e9c; }

/* Terminal */
.terminal-body { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 64px; background: #161a1e; border-right: 1px solid #2b3139; display: flex; flex-direction: column; align-items: center; padding: 20px 0; gap: 25px; }
.sidebar .logo { color: #f0b90b; font-weight: bold; font-size: 22px; margin-bottom: 15px; }
.nav-icon { width: 36px; height: 36px; border-radius: 8px; background: #2b3139; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #909294; transition: all 0.2s; }
.nav-icon:hover { background: #f0b90b; color: #000; }
.main-content { flex: 1; display: flex; flex-direction: column; }
.header { height: 65px; background: #161a1e; border-bottom: 1px solid #2b3139; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.pair-title { font-size: 18px; font-weight: 600; color: #fff; }
.pair-price { font-size: 20px; font-weight: 700; color: #0ecb81; font-family: monospace; }
.user-badge { font-size: 13px; color: #848e9c; }
.user-badge strong { color: #f0b90b; }
.wallet-section { display: flex; align-items: center; gap: 16px; }
.balance-box { background: #21262c; padding: 6px 16px; border-radius: 6px; border: 1px solid #363c4e; min-width: 150px; }
.balance-box span { font-size: 11px; color: #848e9c; display: block; text-transform: uppercase; }
.balance-box strong { font-size: 16px; color: #f0b90b; font-family: monospace; }
.workspace { flex: 1; display: flex; }
.chart-area { flex: 1; display: flex; flex-direction: column; background: #0b0e11; border-right: 1px solid #2b3139; }
.chart-placeholder { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; border-bottom: 1px solid #2b3139; background: radial-gradient(circle, #161a1e 10%, #0b0e11 90%); }
.mock-grid { position: absolute; width: 100%; height: 100%; background-size: 40px 40px; background-image: linear-gradient(to right, #1f2226 1px, transparent 1px), linear-gradient(to bottom, #1f2226 1px, transparent 1px); opacity: 0.3; }
.live-line { font-size: 28px; font-weight: bold; color: #3b424c; z-index: 1; font-family: monospace; }
.bottom-panel { height: 240px; background: #161a1e; padding: 16px; overflow-y: auto; }
.panel-tabs { display: flex; gap: 24px; border-bottom: 1px solid #2b3139; padding-bottom: 8px; margin-bottom: 12px; font-size: 14px; color: #848e9c; }
.panel-tabs .tab { cursor: pointer; padding-bottom: 6px; }
.panel-tabs .tab.active { color: #f0b90b; border-bottom: 2px solid #f0b90b; font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.position-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.position-table th { color: #848e9c; padding: 10px 8px; font-weight: 400; border-bottom: 1px solid #2b3139; }
.position-table td { padding: 12px 8px; border-bottom: 1px solid #21262c; font-family: monospace; }
.order-panel { width: 320px; background: #161a1e; padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.panel-title { font-size: 16px; font-weight: 600; border-bottom: 1px solid #2b3139; padding-bottom: 10px; text-transform: uppercase; }
.input-wrapper { display: flex; background: #2b3139; border-radius: 4px; padding: 10px; align-items: center; border: 1px solid #474d57; }
.input-wrapper input { background: transparent; border: none; color: #fff; width: 100%; font-size: 16px; outline: none; font-family: monospace; }
.input-wrapper span { color: #848e9c; font-size: 13px; font-weight: 600; }
.order-buttons { display: flex; gap: 12px; margin-top: 10px; }
.btn-trade { flex: 1; padding: 14px; border: none; border-radius: 4px; font-weight: bold; font-size: 16px; cursor: pointer; color: #fff; }
.btn-buy { background: #0ecb81; }
.btn-sell { background: #f6465d; }

/* Admin */
.admin-login-screen { width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-box { background: #161a1e; border: 1px solid #2b3139; border-radius: 8px; padding: 40px; width: 400px; }
.admin-layout { display: none; width: 100%; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #161a1e; border-right: 1px solid #2b3139; padding: 24px 0; display: flex; flex-direction: column; min-height: 100vh; flex-shrink: 0; }
.sidebar-logo { padding: 0 24px 24px; border-bottom: 1px solid #2b3139; margin-bottom: 16px; }
.sidebar-logo h2 { color: #f0b90b; font-size: 20px; }
.sidebar-logo span { font-size: 12px; color: #848e9c; }
.nav-item { padding: 12px 24px; cursor: pointer; color: #848e9c; font-size: 14px; display: flex; align-items: center; gap: 10px; transition: all 0.2s; }
.nav-item:hover, .nav-item.active { background: #2b3139; color: #f0b90b; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 60px; background: #161a1e; border-bottom: 1px solid #2b3139; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.admin-content { flex: 1; padding: 28px; overflow-y: auto; }
.page { display: none; }
.page.active { display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #161a1e; border: 1px solid #2b3139; border-radius: 8px; padding: 20px; }
.stat-card .label { font-size: 12px; color: #848e9c; text-transform: uppercase; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #f0b90b; font-family: monospace; }
.stat-card .value.green { color: #0ecb81; }
.stat-card .value.red { color: #f6465d; }
.table-wrap { background: #161a1e; border: 1px solid #2b3139; border-radius: 8px; overflow: hidden; }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #2b3139; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 12px 16px; color: #848e9c; font-weight: 400; border-bottom: 1px solid #2b3139; background: #1a1f27; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #21262c; font-family: monospace; }
.data-table tr:hover td { background: #1a1f27; }
.badge { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; font-family: 'Segoe UI', sans-serif; }
.badge-open, .badge-active, .badge-success { background: #0ecb8122; color: #0ecb81; }
.badge-closed { background: #848e9c22; color: #848e9c; }
.badge-suspended { background: #f6465d22; color: #f6465d; }
.modal-overlay { display: none; position: fixed; inset: 0; background: #00000088; z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: #161a1e; border: 1px solid #2b3139; border-radius: 8px; padding: 28px; width: 420px; }
.modal h3 { margin-bottom: 20px; color: #f0b90b; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    nav { padding: 16px 20px; }
    .order-panel { width: 100%; }
    .workspace { flex-direction: column; }
    .wallet-section { flex-wrap: wrap; }
}
