/* ================================================
   ALPHA LINK PRO — Dashboard Components v3
   Theme: Blue · Requires: apex.css (design tokens)
   ================================================ */

/* ── Layout ── */
.dashboard-wrapper {
  display: flex; min-height: 100vh; background: transparent;
  font-family: var(--f-body); position: relative; z-index: 1;
}

body { background: #040710 !important; }

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar {
  width: 252px; flex-shrink: 0; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  background: rgba(7,9,20,0.92);
  backdrop-filter: blur(24px);
  border-right: 1px solid rgba(79,124,255,0.12);
  display: flex; flex-direction: column;
}

.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(79,124,255,0.1);
  display: flex; align-items: center; gap: 12px;
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue) 0%, #2a52cc 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 900;
  box-shadow: 0 4px 18px var(--blue-glow);
  font-family: var(--f-head); flex-shrink: 0;
}
.logo-text { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--text); }
.logo-text span { color: var(--blue); }

.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.sidebar-nav-label {
  font-size: 9.5px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1.8px;
  padding: 10px 10px 5px; margin-top: 4px;
  font-family: var(--f-mono);
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--r); margin-bottom: 1px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: var(--ease); position: relative;
  border-left: 2px solid transparent;
}
.sidebar-link:hover {
  color: var(--text);
  background: rgba(79,124,255,0.07);
  border-left-color: rgba(79,124,255,0.3);
}
.sidebar-link.active {
  color: var(--text); font-weight: 600;
  background: linear-gradient(90deg, rgba(79,124,255,0.16) 0%, rgba(79,124,255,0.03) 100%);
  border-left-color: var(--blue);
}
.sidebar-link.active i { color: var(--blue); }
.sidebar-link i { font-size: 15px; width: 18px; flex-shrink: 0; color: var(--text-3); transition: color 0.2s; }
.sidebar-link:hover i { color: var(--blue); }
.sidebar-link .badge, .sidebar-badge {
  margin-left: auto; background: var(--blue); color: #fff;
  font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }

.sidebar-bottom { padding: 10px 10px 14px; border-top: 1px solid rgba(79,124,255,0.1); }
.sidebar-user {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px;
  border-radius: var(--r); transition: var(--ease); cursor: pointer; margin-bottom: 4px;
  background: rgba(79,124,255,0.06); border: 1px solid rgba(79,124,255,0.1);
}
.sidebar-user:hover { background: rgba(79,124,255,0.1); }
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2a52cc);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 10px var(--blue-glow);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-plan { font-size: 10px; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-family: var(--f-mono); }

/* ══════════════════════════════════════
   MAIN AREA
══════════════════════════════════════ */
.dash-main { flex: 1; margin-left: 252px; display: flex; flex-direction: column; min-height: 100vh; }

/* ── Topbar ── */
.dash-topbar {
  height: 60px; position: sticky; top: 0; z-index: 50;
  background: rgba(4,7,16,0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(79,124,255,0.1);
  display: flex; align-items: center; padding: 0 26px; gap: 14px;
}
.dash-topbar-title {
  font-size: 15px; font-weight: 700; color: var(--text); flex: 1;
  display: flex; align-items: center; gap: 9px; font-family: var(--f-head);
}
.dash-topbar-title i { color: var(--blue) !important; font-size: 14px; }
.dash-topbar-actions { display: flex; align-items: center; gap: 10px; }
.dash-notif-btn {
  width: 36px; height: 36px; border-radius: var(--r);
  background: rgba(79,124,255,0.07); border: 1px solid rgba(79,124,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 14px; cursor: pointer; transition: var(--ease); position: relative;
}
.dash-notif-btn:hover { background: rgba(79,124,255,0.14); color: var(--blue); }
.notif-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.dash-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2a52cc);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 10px var(--blue-glow); transition: transform 0.2s;
}
.dash-avatar-btn:hover { transform: scale(1.07); }

/* ── Content ── */
.dash-content { flex: 1; padding: 24px 26px; }

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.dash-card {
  background: rgba(11,13,28,0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.dash-card:hover { border-color: rgba(79,124,255,0.22); box-shadow: 0 8px 40px rgba(79,124,255,0.07); }
.dash-card-header {
  padding: 16px 22px; border-bottom: 1px solid rgba(79,124,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
}
.dash-card-header h3 { font-size: 14px; font-weight: 700; color: var(--text); font-family: var(--f-head); display: flex; align-items: center; gap: 8px; }
.dash-card-header h3 i { color: var(--blue); font-size: 13px; }
.dash-card-body { padding: 20px 22px; }

/* ── Stat Cards ── */
.stat-cards-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: rgba(11,13,28,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r-md); padding: 20px;
  position: relative; overflow: hidden; transition: var(--ease);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,124,255,0.3), transparent);
}
.stat-card:hover { border-color: rgba(79,124,255,0.25); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(79,124,255,0.1); }
.stat-card-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.stat-card-icon.red    { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(232,25,44,0.2); }
.stat-card-icon.green  { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,214,143,0.2); }
.stat-card-icon.gold   { background: var(--gold-dim);  color: var(--gold);  border: 1px solid rgba(212,175,55,0.2); }
.stat-card-icon.blue   { background: var(--blue-dim);  color: var(--blue);  border: 1px solid rgba(79,124,255,0.2); }
.stat-card-icon.yellow { background: var(--gold-dim);  color: var(--gold);  border: 1px solid rgba(212,175,55,0.2); }
.stat-card-value { font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 4px; letter-spacing: -0.03em; font-family: var(--f-head); }
.stat-card-label { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.stat-card-change { font-size: 11.5px; margin-top: 9px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat-card-change.up   { color: var(--green); }
.stat-card-change.down { color: var(--red); }

/* ── KPI Row ── */
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.kpi-card {
  background: rgba(11,13,28,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r-md); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px; transition: var(--ease);
}
.kpi-card:hover { border-color: rgba(79,124,255,0.25); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,124,255,0.08); }
.kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.kpi-icon.red    { background: var(--red-dim);   color: var(--red); }
.kpi-icon.green  { background: var(--green-dim); color: var(--green); }
.kpi-icon.gold   { background: var(--gold-dim);  color: var(--gold); }
.kpi-icon.blue   { background: var(--blue-dim);  color: var(--blue); }
.kpi-value  { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -0.02em; font-family: var(--f-head); }
.kpi-label  { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.kpi-change { font-size: 11px; margin-top: 5px; font-weight: 600; }

/* ══════════════════════════════════════
   PANELS
══════════════════════════════════════ */
.mid-row    { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.bottom-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.dash-panel {
  background: rgba(11,13,28,0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r-md); overflow: hidden;
}
.panel-header {
  padding: 15px 20px; border-bottom: 1px solid rgba(79,124,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title    { font-size: 14px; font-weight: 700; color: var(--text); font-family: var(--f-head); }
.panel-subtitle { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ── Bot Status ── */
.bot-status-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.bot-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: rgba(79,124,255,0.04);
  border: 1px solid rgba(79,124,255,0.09); border-radius: var(--r);
  transition: var(--ease); text-decoration: none; cursor: pointer;
}
.bot-row:hover { border-color: rgba(79,124,255,0.22); background: rgba(79,124,255,0.08); }
.bot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-md); flex-shrink: 0; }
.bot-dot.active { background: var(--green); box-shadow: 0 0 8px rgba(0,214,143,0.5); animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 0%,100%{opacity:1;} 50%{opacity:.45;} }
.bot-row-info { flex: 1; }
.bot-row-name   { font-size: 13px; font-weight: 700; color: var(--text); font-family: var(--f-head); }
.bot-row-market { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.bot-row-right { text-align: right; }
.bot-row-exp  { font-size: 12px; font-weight: 700; }
.bot-row-days { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }

/* ── License Banner ── */
.license-banner { padding: 14px 18px; border-top: 1px solid rgba(79,124,255,0.08); }
.lb-label { font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; font-family: var(--f-mono); }
.lb-bar-track { height: 4px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; margin-bottom: 7px; }
.lb-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), #7aa4ff); border-radius: 10px; transition: width 1s ease; }
.lb-info { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.lb-info .highlight { color: var(--blue); font-weight: 600; }

/* ── Account Row ── */
.account-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid rgba(79,124,255,0.07); font-size: 13px;
}
.account-row:last-child { border-bottom: none; }
.ar-label { color: var(--text-3); font-weight: 500; }
.ar-value { color: var(--text); font-weight: 600; text-align: right; }

/* ══════════════════════════════════════
   TABLES
══════════════════════════════════════ */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table thead tr { border-bottom: 1px solid rgba(79,124,255,0.1); }
.dash-table th {
  padding: 11px 16px; text-align: left; font-size: 10.5px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 1px;
  font-family: var(--f-mono);
}
.dash-table td { padding: 13px 16px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid rgba(79,124,255,0.05); }
.dash-table tbody tr:hover { background: rgba(79,124,255,0.04); }
.dash-table .profit { color: var(--green); font-weight: 600; }
.dash-table .loss   { color: var(--red);   font-weight: 600; }
.badge-pill { padding: 3px 10px; border-radius: 20px; font-size: 10.5px; font-weight: 700; white-space: nowrap; font-family: var(--f-mono); }
.badge-won     { background: var(--green-dim); color: var(--green); }
.badge-lost    { background: var(--red-dim);   color: var(--red); }
.badge-pending { background: var(--gold-dim);  color: var(--gold); }
.badge-active  { background: var(--blue-dim);  color: var(--blue); }
.badge-expired { background: rgba(255,255,255,0.05); color: var(--text-3); }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.dash-form-group { margin-bottom: 18px; }
.dash-form-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--text-3);
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: .7px;
  font-family: var(--f-mono);
}
.dash-form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid rgba(79,124,255,0.12);
  border-radius: var(--r); font-size: 13.5px; color: var(--text);
  background: rgba(79,124,255,0.05); transition: var(--ease);
  font-family: var(--f-body);
}
.dash-form-control:focus { border-color: var(--blue); background: rgba(79,124,255,0.09); outline: none; box-shadow: 0 0 0 3px rgba(79,124,255,0.12); }
.dash-form-control::placeholder { color: var(--text-3); }
.dash-form-control option { background: var(--surface-2); color: var(--text); }
.dash-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.dash-form-control { resize: vertical; min-height: 110px; }

/* ══════════════════════════════════════
   LOCKED / EMPTY STATES
══════════════════════════════════════ */
.locked-state { text-align: center; padding: 56px 24px; }
.locked-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(79,124,255,0.07); border: 1px solid rgba(79,124,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--blue); margin: 0 auto 16px;
}
.locked-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; font-family: var(--f-head); }
.locked-sub   { font-size: 12.5px; color: var(--text-3); line-height: 1.65; margin-bottom: 22px; max-width: 280px; margin-left: auto; margin-right: auto; }
.locked-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.2);
  color: #25d366; padding: 10px 20px; border-radius: var(--r);
  font-size: 13px; font-weight: 700; text-decoration: none; transition: var(--ease);
}
.locked-cta:hover { background: rgba(37,211,102,0.17); }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state i { font-size: 42px; color: var(--text-3); opacity: 0.3; margin-bottom: 14px; display: block; }
.empty-state h4 { font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; font-family: var(--f-head); }
.empty-state p  { font-size: 13px; color: var(--text-3); }

/* ══════════════════════════════════════
   PROFILE
══════════════════════════════════════ */
.profile-avatar-section { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-avatar-large {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2a52cc);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 4px 22px var(--blue-glow); border: 2px solid rgba(79,124,255,0.3);
  font-family: var(--f-head);
}
.profile-avatar-info h4 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 3px; font-family: var(--f-head); }
.profile-avatar-info p  { font-size: 12.5px; color: var(--text-3); }

/* ══════════════════════════════════════
   BILLING / SUBSCRIPTION
══════════════════════════════════════ */
.subscription-card {
  background: linear-gradient(135deg, rgba(79,124,255,0.12) 0%, rgba(79,124,255,0.03) 100%);
  border: 1px solid rgba(79,124,255,0.22); border-radius: var(--r-md);
  padding: 24px; margin-bottom: 20px; position: relative; overflow: hidden;
}
.subscription-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,124,255,0.12), transparent 70%);
  pointer-events: none;
}
.sub-plan   { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1.3px; margin-bottom: 4px; font-family: var(--f-mono); }
.sub-name   { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 4px; font-family: var(--f-head); }
.sub-expiry { font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; }
.sub-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.sub-progress { height: 4px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.sub-progress-bar { height: 100%; background: linear-gradient(90deg, var(--blue), #7aa4ff); border-radius: 10px; transition: width 1s ease; }

/* ══════════════════════════════════════
   MARKETPLACE
══════════════════════════════════════ */
.marketplace-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.market-card {
  background: rgba(9,11,26,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r-md); padding: 24px 20px; display: flex; flex-direction: column;
  transition: var(--ease); position: relative; overflow: hidden;
}
.market-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,124,255,0.4), transparent);
}
.market-card:hover { border-color: rgba(79,124,255,0.28); transform: translateY(-3px); box-shadow: 0 16px 50px rgba(79,124,255,0.12); }
.market-card.owned { border-color: rgba(0,214,143,0.28); }
.market-card.owned::before { background: linear-gradient(90deg, transparent, rgba(0,214,143,0.5), transparent); }
.market-card.recommended { border-color: rgba(79,124,255,0.35); }
.market-card.recommended::before { background: linear-gradient(90deg, transparent, rgba(79,124,255,0.7), transparent); }
.market-plan-label { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1.1px; margin-bottom: 5px; font-family: var(--f-mono); }
.market-plan-name  { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 12px; font-family: var(--f-head); }
.market-plan-price { font-size: 36px; font-weight: 900; color: var(--text); margin-bottom: 18px; line-height: 1; letter-spacing: -0.03em; font-family: var(--f-head); }
.market-plan-price span { font-size: 14px; font-weight: 400; color: var(--text-3); }
.market-features { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.market-features li { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 9px; }
.market-features li i.fa-check { color: var(--green); font-size: 11px; }
.market-features li i.fa-xmark { color: rgba(255,255,255,0.15); font-size: 11px; }
.market-features li.locked { color: var(--text-3); }
.market-badge-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.badge-owned       { background: var(--green-dim); color: var(--green); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; font-family: var(--f-mono); }
.badge-recommended { background: var(--blue-dim);  color: var(--blue);  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; font-family: var(--f-mono); }
.btn-contact {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px; border-radius: var(--r);
  background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.2);
  color: #25D366; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: var(--ease); cursor: pointer; font-family: var(--f-body);
}
.btn-contact:hover { background: rgba(37,211,102,0.17); border-color: rgba(37,211,102,0.4); }
.btn-current {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px; border-radius: var(--r);
  background: var(--green-dim); border: 1px solid rgba(0,214,143,0.2);
  color: var(--green); font-size: 13px; font-weight: 700; cursor: default; font-family: var(--f-body);
}
.notice-bar {
  background: rgba(79,124,255,0.07); border: 1px solid rgba(79,124,255,0.16);
  border-radius: var(--r); padding: 13px 18px; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.notice-bar i { color: var(--blue); flex-shrink: 0; }
.signal-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); gap: 12px; }
.signal-card {
  background: rgba(79,124,255,0.05); border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r); padding: 18px; text-align: center; transition: var(--ease);
}
.signal-card:hover { border-color: rgba(79,124,255,0.25); transform: translateY(-2px); }
.signal-card.featured { background: rgba(79,124,255,0.1); border-color: rgba(79,124,255,0.25); }
.signal-tier   { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; margin-bottom: 5px; font-family: var(--f-mono); }
.signal-price  { font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 2px; font-family: var(--f-head); }
.signal-period { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }

/* ══════════════════════════════════════
   API KEYS
══════════════════════════════════════ */
.api-key-card {
  background: rgba(9,11,26,0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 12px;
  transition: var(--ease);
}
.api-key-card:hover { border-color: rgba(79,124,255,0.25); }
.api-key-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.api-provider { display: flex; align-items: center; gap: 11px; }
.api-provider-icon { width: 38px; height: 38px; border-radius: var(--r); background: var(--blue-dim); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 16px; border: 1px solid rgba(79,124,255,0.18); }
.api-provider-name   { font-size: 14px; font-weight: 700; color: var(--text); font-family: var(--f-head); }
.api-provider-status { font-size: 11.5px; color: var(--text-3); }
.api-key-value {
  background: rgba(79,124,255,0.05); border-radius: var(--r); padding: 11px 14px;
  font-size: 13px; color: var(--text-2); font-family: var(--f-mono);
  border: 1px solid rgba(79,124,255,0.1); display: flex; align-items: center; justify-content: space-between;
}
.api-key-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ══════════════════════════════════════
   SUPPORT TICKETS
══════════════════════════════════════ */
.ticket-card {
  background: rgba(9,11,26,0.85); border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r); padding: 15px 20px; margin-bottom: 8px;
  transition: var(--ease); cursor: pointer;
}
.ticket-card:hover { border-color: rgba(79,124,255,0.25); background: rgba(79,124,255,0.06); }
.ticket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ticket-title  { font-size: 13.5px; font-weight: 700; color: var(--text); font-family: var(--f-head); }
.ticket-meta   { font-size: 11.5px; color: var(--text-3); }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: var(--r); font-size: 13px; font-weight: 700; text-decoration: none; transition: var(--ease); cursor: pointer; border: none; font-family: var(--f-body); }
.btn-blue  { background: var(--blue); color: #fff; box-shadow: 0 4px 16px var(--blue-glow); }
.btn-blue:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-red   { background: var(--red); color: #fff; box-shadow: 0 4px 14px var(--red-glow); }
.btn-red:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost { background: rgba(79,124,255,0.06); color: var(--text-2); border: 1px solid rgba(79,124,255,0.12); }
.btn-ghost:hover { background: rgba(79,124,255,0.12); color: var(--text); border-color: rgba(79,124,255,0.25); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,214,143,0.2); }
.btn-green:hover { background: rgba(0,214,143,0.2); }

/* ══════════════════════════════════════
   BOT CARDS
══════════════════════════════════════ */
.bot-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.bot-card {
  background: rgba(9,11,26,0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(79,124,255,0.1);
  border-radius: var(--r-md); padding: 20px; transition: var(--ease); position: relative;
}
.bot-card:hover { border-color: rgba(79,124,255,0.25); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(79,124,255,0.1); }
.bot-card.running { border-color: rgba(0,214,143,0.22); }
.bot-card.running::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg, var(--green), transparent); border-radius: var(--r-md) var(--r-md) 0 0; }
.bot-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.bot-card-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-dim); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 18px; border: 1px solid rgba(79,124,255,0.2); }
.bot-status { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; font-family: var(--f-mono); }
.bot-status.running { background: var(--green-dim); color: var(--green); }
.bot-status.stopped { background: rgba(255,255,255,0.04); color: var(--text-3); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live-pulse 2s ease-in-out infinite; }
.bot-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; font-family: var(--f-head); }
.bot-desc { font-size: 12px; color: var(--text-3); margin-bottom: 14px; line-height: 1.55; }
.bot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.bot-stat { background: rgba(79,124,255,0.05); border: 1px solid rgba(79,124,255,0.1); border-radius: var(--r); padding: 9px 12px; }
.bot-stat-val { font-size: 15px; font-weight: 800; color: var(--text); font-family: var(--f-head); }
.bot-stat-val.green  { color: var(--green); }
.bot-stat-val.red-c  { color: var(--red); }
.bot-stat-lbl { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.bot-card-actions { display: flex; gap: 6px; }
.btn-start { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,214,143,0.22); padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; transition: var(--ease); cursor: pointer; }
.btn-start:hover { background: rgba(0,214,143,0.2); }
.btn-stop  { background: var(--red-dim); color: var(--red); border: 1px solid rgba(232,25,44,0.2); padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; transition: var(--ease); cursor: pointer; }
.btn-stop:hover  { background: rgba(232,25,44,0.22); }
.btn-view-dash { background: rgba(79,124,255,0.07); color: var(--text-2); border: 1px solid rgba(79,124,255,0.12); padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; transition: var(--ease); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.btn-view-dash:hover { background: rgba(79,124,255,0.14); color: var(--text); }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes blink     { 0%,100%{opacity:1;} 50%{opacity:.5;} }
@keyframes fadeInUp  { from{opacity:0;transform:translateY(12px);} to{opacity:1;transform:translateY(0);} }
.fade-in { animation: fadeInUp 0.35s ease both; }

/* Glowing scan line on topbar */
.dash-topbar::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(79,124,255,0.5) 40%, rgba(79,124,255,0.5) 60%, transparent 100%);
  animation: scanLine 4s ease-in-out infinite;
}
@keyframes scanLine {
  0%,100% { opacity: 0.3; transform: scaleX(0.6); }
  50%     { opacity: 1;   transform: scaleX(1); }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media(max-width:1200px) {
  .stat-cards-grid { grid-template-columns: repeat(2,1fr); }
  .kpi-row { grid-template-columns: repeat(2,1fr); }
  .marketplace-grid { grid-template-columns: repeat(2,1fr); }
  .mid-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .bot-cards-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:900px) {
  .dash-form-row { grid-template-columns: 1fr; }
  .marketplace-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .stat-cards-grid { grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .bot-cards-grid { grid-template-columns: 1fr; }
  .marketplace-grid { grid-template-columns: 1fr; }
  .dash-content { padding: 16px 14px; }
}
@media(max-width:480px) {
  .stat-cards-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
  .dash-content { padding: 14px 12px; }
}
