/* style.css */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #121212; margin: 0; padding: 0; color: #e0e0e0; }
.top-nav { background: #1a1a1a; padding: 15px 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 15px; }
.nav-links a { color: #aaa; text-decoration: none; font-weight: bold; text-transform: uppercase; font-size: 13px; padding: 8px 12px; border-radius: 5px; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { background: #2962ff; color: #fff; }
.sys-info { display: flex; gap: 20px; align-items: center; }
.info-box { background: #252525; padding: 6px 12px; border-radius: 6px; font-size: 12px; border: 1px solid #333; }
.info-box span { color: #00e676; font-family: monospace; font-weight: bold; font-size: 14px; margin-left: 5px; }

.container { max-width: 1400px; margin: 20px auto; padding: 0 20px; }
.traffic-container { display: flex; gap: 20px; margin-bottom: 25px; }
.traffic-box { display: flex; align-items: center; gap: 12px; background: #1e1e1e; padding: 12px 18px; border-radius: 8px; border: 1px solid #333; }
.light-bulb { width: 16px; height: 16px; border-radius: 50%; background: #444; transition: 0.3s; }
.light-bulb.green { background: #00e676; box-shadow: 0 0 12px #00e676; }
.light-bulb.red { background: #ff1744; box-shadow: 0 0 12px #ff1744; }
.light-text { display: flex; flex-direction: column; }
.light-label { font-size: 11px; color: #888; text-transform: uppercase; font-weight: bold; }
.light-val { font-size: 16px; font-weight: bold; color: #fff; }
.light-limit { font-size: 11px; color: #666; margin-top: 2px; }

.card { background: #1e1e1e; border-radius: 10px; padding: 20px; margin-bottom: 20px; border: 1px solid #333; }
h3 { margin-top: 0; border-bottom: 1px solid #333; padding-bottom: 12px; margin-bottom: 20px; color: #fff; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 5px; text-decoration: none; font-weight: bold; cursor: pointer; border: none; color: white; transition: 0.2s; font-size: 12px; text-transform: uppercase; }
.btn-blue { background: #2962ff; } .btn-blue:hover { background: #1565c0; }
.btn-green { background: #00c853; color: #000; } .btn-green:hover { background: #00e676; }
.btn-red { background: #d50000; } .btn-red:hover { background: #ff1744; }
.btn-gray { background: #424242; } .btn-gray:hover { background: #616161; }

table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #333; }
th { background: #252525; color: #aaa; text-transform: uppercase; font-size: 11px; }
tr:hover td { background: #252525; }

.badge { padding: 4px 8px; border-radius: 4px; font-weight: bold; font-size: 0.8em; text-transform: uppercase; }
.badge-none { background: #333; color: #aaa; }
.badge-buy { background: rgba(0, 200, 83, 0.2); color: #00e676; border: 1px solid rgba(0, 200, 83, 0.4); }
.badge-warning { background: rgba(255, 171, 0, 0.2); color: #ffab00; border: 1px solid rgba(255, 171, 0, 0.4); }
.badge-sell { background: rgba(213, 0, 0, 0.2); color: #ff1744; border: 1px solid rgba(213, 0, 0, 0.4); }
.badge-purple { background: rgba(170, 0, 255, 0.2); color: #e040fb; border: 1px solid rgba(170, 0, 255, 0.4); }
.badge-sim { background: rgba(255, 109, 0, 0.2); color: #ff6d00; border: 1px solid rgba(255, 109, 0, 0.4); }
.badge-real { background: rgba(0, 200, 83, 0.2); color: #00e676; border: 1px solid rgba(0, 200, 83, 0.4); }

.portfolio-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.portfolio-box { background: #1e1e1e; padding: 20px; border-radius: 10px; border: 1px solid #333; border-left: 5px solid #2962ff; }
.portfolio-box.usdt { border-left-color: #00c853; }
.portfolio-box.bnb { border-left-color: #ffab00; }
.portfolio-box h4 { margin: 0 0 8px 0; color: #888; font-size: 12px; text-transform: uppercase; }
.portfolio-box .value { font-size: 24px; font-weight: bold; color: #fff; margin-bottom: 5px; }

.cost-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.cost-box { background: #1a1a1a; padding: 20px; border-radius: 8px; border: 1px solid #333; display: flex; flex-direction: column; }
.cost-box h4 { color: #aaa; font-size: 13px; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 10px; margin-top: 0; margin-bottom: 15px;}
.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; flex-grow: 1;}
.cost-item { background: #252525; padding: 15px; border-radius: 6px; border-left: 3px solid #666; display: flex; flex-direction: column; justify-content: center;}
.cost-item.gas { border-left-color: #2962ff; } .cost-item.slip { border-left-color: #ff1744; }
.cost-val { font-weight: bold; font-size: 18px; color: #fff; margin-bottom: 4px;}
.cost-sub { font-size: 11px; color: #888; text-transform: uppercase; }

.proj-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.proj-row span:first-child { color: #888; }
.proj-row span:last-child { font-weight: bold; font-family: monospace; font-size: 15px; }
.proj-divider { height: 1px; background: #333; margin: 12px 0; }
.proj-total { font-size: 16px; margin-top: 10px; }
.proj-total span:first-child { color: #fff; text-transform: uppercase; font-weight: bold; font-size: 14px; }
.proj-total span:last-child { font-size: 20px; }

.text-green { color: #00e676 !important; } .text-red { color: #ff1744 !important; } .text-white { color: #fff !important; }
.fade-update { animation: flashUpdate 1s ease-out; }
@keyframes flashUpdate { 0% { background-color: rgba(0, 230, 118, 0.1); } 100% { background-color: transparent; } }

.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; background: #121212; }
.login-form { background: #1e1e1e; padding: 40px; border-radius: 10px; border: 1px solid #333; text-align: center; width: 320px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.login-form h2 { color: #fff; margin-top: 0; margin-bottom: 25px; }
.login-form input { width: 90%; padding: 12px; margin-bottom: 20px; background: #252525; color: #fff; border: 1px solid #444; border-radius: 5px; outline: none; }
.login-form input:focus { border-color: #2962ff; }
.login-form button { width: 100%; }