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

:root {
    --bg-base: #0F0F12;
    --bg-surface: #1B1D27;
    --bg-elevated: #232633;
    --pump-green: #86EFAC;
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --border: rgba(255, 255, 255, 0.08);
    --font-ui: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-base); color: var(--text-primary); font-family: var(--font-ui); overflow-x: hidden; }

.text-pump-green { color: var(--pump-green); }
.text-red-400 { color: #f87171; }

/* Layout Grid */
.app-layout { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar { width: 220px; background: var(--bg-base); padding: 20px 12px; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.sidebar-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 30px; padding: 0 12px; text-decoration: none; color: var(--text-primary); letter-spacing: -0.5px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: 13px; transition: 0.15s; }
.side-nav a:hover, .side-nav a.active { color: var(--text-primary); background: var(--bg-surface); }
.side-nav i { font-size: 18px; }

/* Call to Action Buttons */
.btn-create { background: var(--text-primary); color: #000; border: none; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px; transition: 0.2s; margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-create:hover { background: var(--pump-green); box-shadow: 0 0 15px rgba(134, 239, 172, 0.2); }

/* Main Content */
.main-content { flex-grow: 1; display: flex; flex-direction: column; overflow-y: auto; background: var(--bg-base); }
.topbar { padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: var(--bg-base); position: sticky; top: 0; z-index: 20; }
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--bg-surface); padding: 8px 12px; border-radius: 8px; width: 350px; border: 1px solid var(--border); }
.search-bar input { background: none; border: none; color: var(--text-primary); outline: none; width: 100%; font-family: var(--font-ui); font-size: 13px; }
.search-bar kbd { background: var(--bg-elevated); padding: 2px 6px; border-radius: 4px; font-size: 10px; color: var(--text-secondary); font-weight: 600; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.btn-icon { background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-primary); padding: 8px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; transition: background 0.2s; }
.btn-icon:hover { background: var(--bg-elevated); }
.btn-signin { background: var(--text-primary); color: #000; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 13px; transition: opacity 0.2s; }
.btn-signin:hover { opacity: 0.9; }

/* Tabs & Feed Wrapper */
.content-wrapper { max-width: 1400px; margin: 0 auto; width: 100%; padding: 24px; }
.tabs-container { margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.tabs { display: flex; gap: 8px; }
.tab { background: transparent; border: none; color: var(--text-secondary); font-size: 13px; font-weight: 600; padding: 6px 12px; cursor: pointer; border-radius: 6px; transition: 0.2s; }
.tab:hover { background: var(--bg-surface); color: var(--text-primary); }
.tab.active { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border); }

.feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.feed-header h2 { font-size: 18px; font-weight: 700; }
.btn-icon-small { background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: color 0.2s; }
.btn-icon-small:hover { color: var(--text-primary); }

/* The Grid Container */
.pump-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* --- NEW PRO TERMINAL CARDS --- */
.pump-card { 
    background: var(--bg-surface); 
    border: 1px solid var(--border); 
    padding: 16px; 
    border-radius: 12px;
    transition: transform 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
}
.pump-card:hover { 
    transform: translateY(-3px); 
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Card Header (Image + Title) */
.card-header { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.card-avatar { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.card-title-group { display: flex; flex-direction: column; overflow: hidden; }
.card-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.card-ticker { font-size: 12px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }

/* Card Metrics (Players & Velocity) */
.card-metrics { display: flex; justify-content: space-between; margin-bottom: 16px; }
.metric-group { display: flex; flex-direction: column; gap: 4px; }
.text-right { text-align: right; align-items: flex-end; }
.metric-label { font-size: 10px; font-weight: 800; color: var(--text-secondary); letter-spacing: 0.5px; text-transform: uppercase; }
.metric-value { font-size: 16px; font-weight: 700; }

/* Sparkline Chart Container */
.card-chart { height: 40px; border-bottom: 1px solid var(--border); margin-bottom: 12px; padding-bottom: 8px; }
.sparkline-container { display: flex; align-items: flex-end; gap: 3px; height: 100%; width: 100%; }
.spark-bar { flex: 1; background: var(--pump-green); border-radius: 2px 2px 0 0; opacity: 0.8; transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.sparkline-empty { font-size: 11px; color: var(--text-secondary); text-align: center; line-height: 32px; width: 100%; }

/* Card Footer (Revenue Tag) */
.card-footer { display: flex; justify-content: flex-end; }
.revenue-tag { 
    font-size: 11px; 
    font-weight: 800; 
    color: #fbbf24; /* Golden Yellow */
    background: rgba(251, 191, 36, 0.1); 
    padding: 4px 8px; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    gap: 4px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Mobile Setup */
.mobile-nav { display: none; background: var(--bg-base); border-top: 1px solid var(--border); padding: 12px 24px; justify-content: space-between; align-items: center; position: fixed; bottom: 0; width: 100%; z-index: 50; }
.mobile-nav a { color: var(--text-secondary); font-size: 24px; }
.mobile-nav a.active { color: var(--text-primary); }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .topbar { padding: 12px 16px; }
    .search-bar { display: none; }
    .pump-grid { grid-template-columns: repeat(1, 1fr); gap: 12px; padding-bottom: 60px; } /* Prevent footer overlap */
    .content-wrapper { padding: 16px; }
    .mobile-nav { display: flex; }
}