:root {
  --primary: #00E676;
  --secondary: #111827;
  --bg: #0B0F19;
  --text: #FFFFFF;
  --accent: #FACC15;
  --muted: #94A3B8;
  --line: rgba(255,255,255,.1);
}

* { letter-spacing: 0; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--primary); text-decoration: none; }
.app-nav { background: rgba(11,15,25,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.navbar-brand span, .eyebrow { color: var(--primary); }
.glow-btn { box-shadow: 0 0 28px rgba(0,230,118,.28); }
.hero { min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 84px 0 52px; background: radial-gradient(circle at 20% 20%, rgba(0,230,118,.16), transparent 32%), linear-gradient(135deg, #0B0F19 0%, #111827 58%, #07130F 100%); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; font-weight: 800; max-width: 720px; }
.lead, .text-secondary { color: var(--muted) !important; }
.terminal-panel, .feature-card, .price-card, .tool-panel, .stat-card, .auth-card, .glass, .opportunity { background: rgba(17,24,39,.82); border: 1px solid var(--line); border-radius: 8px; }
.terminal-panel { padding: 24px; min-height: 420px; box-shadow: 0 24px 90px rgba(0,0,0,.38); }
.terminal-header { display: flex; gap: 8px; margin-bottom: 20px; }
.terminal-header span { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.terminal-header span:nth-child(2) { background: var(--accent); }
.terminal-header span:nth-child(3) { background: #EF4444; }
.market-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.chart-bars { height: 190px; display: flex; align-items: end; gap: 14px; padding-top: 24px; }
.chart-bars i { flex: 1; background: linear-gradient(180deg, var(--primary), rgba(0,230,118,.08)); border-radius: 6px 6px 0 0; }
.chart-bars i:nth-child(1) { height: 35%; } .chart-bars i:nth-child(2) { height: 55%; } .chart-bars i:nth-child(3) { height: 40%; } .chart-bars i:nth-child(4) { height: 70%; } .chart-bars i:nth-child(5) { height: 62%; } .chart-bars i:nth-child(6) { height: 88%; } .chart-bars i:nth-child(7) { height: 78%; }
.section { padding: 86px 0; }
.section.alt { background: #080C14; }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-title span { color: var(--primary); text-transform: uppercase; font-size: .8rem; font-weight: 800; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; }
.feature-card, .price-card, .tool-panel, .stat-card, .auth-card, .opportunity { padding: 24px; }
.feature-card h3, .tool-panel h2 { font-size: 1.15rem; }
.grid-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-list div { border: 1px solid var(--line); padding: 18px; border-radius: 8px; background: rgba(255,255,255,.03); }
.price { font-size: 2.8rem; font-weight: 800; color: var(--primary); }
.price-card.featured { border-color: rgba(0,230,118,.45); }
.accordion-item, .accordion-button { background: var(--secondary); color: var(--text); border-color: var(--line); }
.accordion-button:not(.collapsed) { background: rgba(0,230,118,.12); color: var(--text); }
.footer { background: #070A11; border-top: 1px solid var(--line); }
.auth-wrap { min-height: 72vh; display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: min(100%, 460px); }
.form-control, .form-select { background: #080C14; border-color: var(--line); color: var(--text); }
.form-control:focus, .form-select:focus { background: #080C14; color: var(--text); border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0,230,118,.15); }
.app-shell { min-height: 75vh; }
.sidebar { background: #070A11; border-right: 1px solid var(--line); padding: 24px; }
.sidebar a { display: block; padding: 12px 14px; color: var(--text); border-radius: 8px; }
.sidebar a:hover { background: rgba(0,230,118,.1); color: var(--primary); }
.content-panel { padding: 30px; }
.dashboard-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.dashboard-head h1, .content-panel h1 { font-weight: 800; }
.fear-greed { border: 1px solid rgba(250,204,21,.4); border-radius: 8px; padding: 14px 18px; min-width: 170px; }
.fear-greed b { color: var(--accent); display: block; }
.stat-card span { color: var(--muted); display: block; }
.stat-card strong { font-size: 1.8rem; }
.tv-box { height: 520px; }
.signal-result { color: var(--muted); }
.signal-top, .levels { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.signal-top strong { display: block; font-size: 1.8rem; color: var(--primary); }
.levels span { background: #080C14; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.signal-buy, .signal-long { background: var(--primary); color: #04110A; }
.signal-sell, .signal-short { background: #EF4444; }
.signal-neutral { background: var(--accent); color: #1F1600; }
.loading-line { height: 6px; width: 100%; background: linear-gradient(90deg, transparent, var(--primary), transparent); animation: loading 1.1s infinite; }
.max-form { max-width: 760px; }
.opportunity { margin-bottom: 12px; }
.opportunity p { margin: 10px 0 0; color: var(--muted); }
.pro-dashboard-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.pro-dashboard-head h1 { font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 850; line-height: 1; margin: 6px 0 8px; }
.pro-dashboard-head p, .panel-help, .chart-note { color: var(--muted); }
.dashboard-actions { display: flex; gap: 14px; align-items: center; }
.user-chip { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: linear-gradient(135deg, #7F1D1D, #111827); font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.metric-card { min-height: 126px; display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; align-items: center; background: linear-gradient(145deg, rgba(17,24,39,.96), rgba(15,23,42,.88)); }
.metric-card span, .metric-card small { grid-column: 2; }
.metric-card strong { grid-column: 2; line-height: 1; }
.metric-icon { grid-row: 1 / span 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 900; }
.metric-icon.green { background: rgba(0,230,118,.14); color: var(--primary); }
.metric-icon.blue { background: rgba(56,189,248,.14); color: #38BDF8; }
.metric-icon.red { background: rgba(239,68,68,.14); color: #EF4444; }
.metric-icon.purple { background: rgba(168,85,247,.16); color: #A855F7; }
.dashboard-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.dashboard-left, .dashboard-right { display: grid; gap: 14px; }
.compact-panel { padding: 20px; }
.compact-panel h2, .chart-panel h2, .gauge-panel h2 { font-size: 1rem; margin-bottom: 16px; font-weight: 800; }
.coin-input-wrap { display: flex; align-items: center; gap: 8px; background: #080C14; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
.coin-input-wrap span { color: var(--accent); }
.coin-input-wrap .form-control { border: 0; padding-left: 0; }
.quick-stat { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.quick-stat b { color: var(--text); }
.chart-panel { padding: 16px; }
.chart-titlebar, .chart-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-titlebar { margin-bottom: 12px; }
.chart-toolbar { justify-content: flex-start; padding: 8px 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.tf-btn { border: 0; color: var(--muted); background: transparent; padding: 6px 10px; border-radius: 6px; }
.tf-btn.active, .tf-btn:hover { color: var(--text); background: rgba(255,255,255,.12); }
.ema-key { font-size: .82rem; color: var(--muted); }
.ema-key::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 99px; margin-right: 6px; vertical-align: middle; }
.ema-key.ema9::before { background: var(--accent); }
.ema-key.ema20::before { background: #38BDF8; }
.ema-key.ema50::before { background: #A855F7; }
.live-dot { color: var(--primary); }
.chart-note { font-size: .82rem; margin-top: 10px; }
.pro-result { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(17,24,39,.82); }
.gauge { width: 190px; height: 100px; margin: 10px auto; border-radius: 190px 190px 0 0; background: conic-gradient(from 270deg, #EF4444, #F97316, #FACC15, #84CC16, #00E676 180deg, transparent 180deg); position: relative; overflow: hidden; }
.gauge::after { content: ""; position: absolute; inset: 16px 16px 0; background: #111827; border-radius: 180px 180px 0 0; }
.gauge .needle { position: absolute; width: 66px; height: 4px; background: #fff; right: 44px; bottom: 26px; transform: rotate(-38deg); transform-origin: right center; z-index: 2; border-radius: 99px; }
.gauge span { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--primary); font-weight: 800; }
.admin-user-actions { display: grid; grid-template-columns: 110px repeat(5, max-content); gap: 8px; align-items: center; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (max-width: 991px) {
  .hero { min-height: auto; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-head { align-items: stretch; flex-direction: column; }
  .content-panel { padding: 22px 14px; }
  .grid-list { grid-template-columns: 1fr; }
  .tv-box { height: 420px; }
  .metric-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .pro-dashboard-head, .dashboard-actions { flex-direction: column; align-items: stretch; }
  .admin-user-actions { grid-template-columns: 1fr 1fr; }
}
