/* ── SolSuite · style.css ── */

/* ── Tokens ── */
:root {
  --accent:        #534AB7;
  --accent-light:  #7B74D4;
  --accent-bright: #9D98E8;
  --accent-dim:    rgba(83, 74, 183, 0.18);
  --accent-glow:   rgba(123, 116, 212, 0.35);

  --bg-base:     #0E0C2A;
  --bg-surface:  rgba(255, 255, 255, 0.04);
  --bg-elevated: rgba(255, 255, 255, 0.07);
  --bg-hover:    rgba(255, 255, 255, 0.06);
  --bg-active:   rgba(123, 116, 212, 0.16);

  --border-dim:    rgba(255, 255, 255, 0.07);
  --border-mid:    rgba(255, 255, 255, 0.11);
  --border-accent: rgba(123, 116, 212, 0.45);
  --border-glow:   rgba(123, 116, 212, 0.25);

  --text-primary:   rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted:     rgba(255, 255, 255, 0.28);
  --text-accent:    #9D98E8;

  --green: #22d77a;
  --amber: #f5a623;
  --red:   #ff5c5c;

  --sidebar-w: 228px;
  --tabbar-h:  46px;
  --topbar-h:  54px;
  --footer-h:  42px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --font: 'Inter', sans-serif;
  --ease: 150ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; opacity: 0.85; }

/* ── Background gradient ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%,    rgba(72, 60, 160, 0.60) 0%, transparent 55%),
    radial-gradient(ellipse 70%  60% at 100% 100%, rgba(50, 40, 120, 0.50) 0%, transparent 55%),
    radial-gradient(ellipse 60%  50% at 55%  20%,  rgba(83, 74, 183, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #0E0C2A 0%, #0C0B20 45%, #090817 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── App grid ── */
#app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) var(--tabbar-h) 1fr var(--footer-h);
  height: 100vh;
}

/* ── Top bar ── */
#topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding: 0 20px 0 0;
  border-bottom: 0.5px solid var(--border-dim);
  background: rgba(14, 12, 42, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar-brand {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-right: 0.5px solid var(--border-dim);
  height: 100%;
}

.brand-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #534AB7, #3C3489);
  box-shadow: 0 0 16px rgba(83,74,183,0.5), 0 0 4px rgba(83,74,183,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.9); }
.brand-name {
  font-size: 16px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.02em;
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.net-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
  padding: 5px 12px;
  border: 0.5px solid var(--border-dim);
  border-radius: 20px;
  background: var(--bg-surface);
}
.net-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

.topbar-link { font-size: 14px; color: var(--text-muted); transition: color var(--ease); }
.topbar-link:hover { color: var(--text-secondary); text-decoration: none; }

#ae-badge-anchor { display: flex; align-items: center; }

/* ── Sidebar ── */
#sidebar {
  grid-row: 2 / 4;
  grid-column: 1;
  border-right: 0.5px solid var(--border-dim);
  background: rgba(14, 12, 42, 0.60);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  padding: 14px 10px;
  gap: 2px;
  overflow-y: auto;
}

.sb-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px 5px;
  margin-top: 6px;
}
.sb-label:first-child { margin-top: 0; }

.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 15px; font-weight: 450;
  transition: all var(--ease);
  user-select: none;
  position: relative;
}
.sb-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sb-item.active {
  background: var(--bg-active);
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: inset 0 0 0 0.5px var(--border-accent);
}
.sb-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2.5px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 0 8px var(--accent-glow);
}

.sb-orb {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--ease);
}
.sb-orb svg { width: 14px; height: 14px; }
.sb-item:not(.active) .sb-orb {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--border-dim);
}
.sb-item:not(.active) .sb-orb svg { opacity: 0.5; }
.sb-item.active .sb-orb, .sb-item:hover .sb-orb {
  background: linear-gradient(135deg, rgba(123,116,212,0.35), rgba(83,74,183,0.2));
  border: 0.5px solid var(--border-accent);
  box-shadow: 0 0 12px rgba(123,116,212,0.3);
}
.sb-item.active .sb-orb svg, .sb-item:hover .sb-orb svg { opacity: 1; }

.sb-count {
  margin-left: auto;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 0.5px solid var(--border-dim);
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 22px; text-align: center;
}
.sb-item.active .sb-count {
  color: var(--accent-bright);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

.sb-divider { height: 0.5px; background: var(--border-dim); margin: 8px 12px; }

/* ── Tab bar ── */
#tabbar {
  grid-column: 2;
  display: flex; align-items: center;
  padding: 0 22px; gap: 2px;
  border-bottom: 0.5px solid var(--border-dim);
  background: rgba(14,12,42,0.40);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tab-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 0.5px solid transparent;
  font-family: var(--font);
  font-size: 14.5px; font-weight: 450;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--ease);
  white-space: nowrap;
  position: relative;
}
.tab-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.tab-btn.active {
  color: var(--text-primary);
  background: var(--bg-active);
  border-color: var(--border-accent);
  font-weight: 500;
  box-shadow: 0 0 12px rgba(123,116,212,0.15);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 14px; right: 14px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent-glow);
}
.tab-pip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent-glow);
  opacity: 0; transition: opacity var(--ease);
}
.tab-btn.active .tab-pip { opacity: 1; }
.tab-divider { width: 0.5px; height: 16px; background: var(--border-dim); margin: 0 5px; }

/* ── Content ── */
#content {
  grid-column: 2;
  overflow-y: auto;
  padding: 28px 28px 40px;
  scroll-behavior: smooth;
}

/* ── Footer ── */
#footer {
  grid-column: 1 / -1;
  border-top: 0.5px solid var(--border-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted);
  background: rgba(14,12,42,0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: 0.02em;
}

/* ── Panels ── */
.panel { display: none; }
.panel.active { display: flex; flex-direction: column; gap: 22px; }

/* ── Panel header ── */
.panel-header { display: flex; flex-direction: column; gap: 5px; }
.panel-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-bright); opacity: 0.8;
}
.panel-title {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text-primary); line-height: 1.1;
}
.panel-desc {
  font-size: 15px; color: var(--text-secondary);
  max-width: 560px; line-height: 1.6;
}

/* ── Glow card ── */
.glow-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative; overflow: hidden;
}
.glow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,116,212,0.4), transparent);
}

/* ── Stat grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
  transition: border-color var(--ease);
}
.stat-card:hover { border-color: var(--border-glow); }
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,116,212,0.25), transparent);
}

.stat-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}
.stat-value {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text-primary);
  line-height: 1;
}
.stat-value.green { color: var(--green); }
.stat-value.amber { color: var(--amber); }
.stat-value.red   { color: var(--red); }
.stat-sub {
  font-size: 13px; color: var(--text-secondary);
}

/* ── Input row ── */
.input-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.sol-input {
  flex: 1; min-width: 200px;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px; color: var(--text-primary);
  outline: none;
  transition: border-color var(--ease);
}
.sol-input::placeholder { color: var(--text-muted); }
.sol-input:focus { border-color: var(--border-accent); }

.sol-select {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px; color: var(--text-primary);
  outline: none; cursor: pointer;
  transition: border-color var(--ease);
}
.sol-select:focus { border-color: var(--border-accent); }

.sol-btn {
  background: var(--accent);
  border: none; border-radius: var(--r-md);
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 14px; font-weight: 600;
  color: #fff; cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}
.sol-btn:hover { background: var(--accent-light); }
.sol-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sol-btn.secondary {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-mid);
  color: var(--text-primary);
}
.sol-btn.secondary:hover { border-color: var(--border-accent); }

/* ── Data table ── */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  text-align: left; padding: 10px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 0.5px solid var(--border-dim);
}
.data-table td {
  padding: 12px 12px;
  border-bottom: 0.5px solid var(--border-dim);
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }
.data-table .mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; }
.data-table .bright { color: var(--text-primary); }
.data-table .green  { color: var(--green); }
.data-table .amber  { color: var(--amber); }
.data-table .red    { color: var(--red); }
.data-table .accent { color: var(--accent-bright); }

/* ── Mini bar chart ── */
.chart-wrap {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--r-md);
  padding: 16px;
}
.chart-bars {
  display: flex; align-items: flex-end;
  gap: 4px; height: 100px;
}
.chart-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(123,116,212,0.75), rgba(83,74,183,0.25));
  transition: opacity var(--ease);
  cursor: default;
}
.chart-bar:hover { opacity: 0.8; }
.chart-label-row {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-size: 11px; color: var(--text-muted);
}

/* ── Progress bar ── */
.progress-wrap {
  background: var(--bg-elevated);
  border-radius: 4px; height: 6px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 0.4s ease;
}

/* ── Status dot ── */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.status-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: blink 1.5s ease-in-out infinite; }
.status-dot.red   { background: var(--red);   box-shadow: 0 0 6px var(--red); }

/* ── Fee tier cards ── */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.fee-card {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
  transition: border-color var(--ease);
}
.fee-card:hover { border-color: var(--border-glow); }
.fee-tier { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.fee-value { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.fee-unit  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── NFT card ── */
.nft-card {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--ease);
}
.nft-card:hover { border-color: var(--border-glow); }
.nft-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
}
.nft-info { padding: 12px; }
.nft-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.nft-floor { font-size: 13px; color: var(--text-secondary); }

/* ── Faucet row ── */
.faucet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--r-md);
  transition: border-color var(--ease);
}
.faucet-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.faucet-status { font-size: 13px; color: var(--text-secondary); min-width: 90px; text-align: right; }

/* ── RPC row ── */
.rpc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-dim);
  border-radius: var(--r-md);
}
.rpc-name { flex: 1; font-size: 14px; color: var(--text-primary); }
.rpc-latency { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; min-width: 80px; text-align: right; }
.rpc-bar-wrap { width: 100px; }

/* ── Shimmer ── */
.shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: sh 1.8s infinite;
  border-radius: 4px;
}
@keyframes sh { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sh-val  { height: 28px; width: 65%; }
.sh-sub  { height: 10px; width: 50%; }
.sh-line { height: 10px; width: 100%; margin-bottom: 4px; }
.sh-line.w80 { width: 80%; }
.sh-line.w60 { width: 60%; }
.sh-line.w40 { width: 40%; }

/* ── Ad slots ── */
.ad-slot {
  border: 0.5px dashed rgba(123,116,212,0.3);
  border-radius: var(--r-lg);
  background: rgba(83,74,183,0.06);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.ad-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); opacity: 0.5; }
.ad-size  { font-size: 12px; color: var(--accent-bright); opacity: 0.4; }
.ad-leaderboard { width: 100%; max-width: 728px; height: 90px; }
.ad-rectangle   { width: 300px; height: 250px; flex-shrink: 0; }
.ad-skyscraper  { width: 160px; height: 600px; flex-shrink: 0; }

/* ── Coming-soon pill ── */
.cs-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 0.5px solid var(--border-accent);
  border-radius: 20px;
  padding: 4px 12px;
  width: fit-content;
  margin-top: 16px;
}
.cs-pip { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 6px var(--accent-glow); }

/* ── Error / empty state ── */
.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted); font-size: 14px;
}
.error-msg {
  font-size: 13px; color: var(--red);
  padding: 10px 14px;
  background: rgba(255,92,92,0.08);
  border: 0.5px solid rgba(255,92,92,0.2);
  border-radius: var(--r-md);
}

/* ── Layout helpers ── */
.with-ad   { display: flex; gap: 20px; align-items: flex-start; }
.with-ad > .glow-card { flex: 1; min-width: 0; }
.dev-layout { display: grid; grid-template-columns: 1fr 160px; gap: 20px; align-items: start; }
.flex-col   { display: flex; flex-direction: column; gap: 12px; }
.mt-16 { margin-top: 16px; }
.mt-8  { margin-top: 8px; }

/* ── Wallet chips ── */
.wallet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-mid);
  border-radius: 20px;
  font-size: 13px; font-family: 'SF Mono','Fira Code',monospace;
  color: var(--text-secondary);
}
.wallet-chip .remove-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 14px; padding: 0; line-height: 1;
}
.wallet-chip .remove-btn:hover { color: var(--red); }
.wallet-chip.active { border-color: var(--border-accent); color: var(--accent-bright); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --sidebar-w: 56px; }
  .sb-item span, .sb-count, .sb-label { display: none; }
  .sb-item { justify-content: center; padding: 8px; }
  .sb-item.active::before { display: none; }
  .brand-name { display: none; }
  .topbar-brand { justify-content: center; padding: 0; }
  .dev-layout { grid-template-columns: 1fr; }
  .ad-skyscraper { display: none; }
  .with-ad { flex-direction: column; }
  .ad-rectangle { width: 100%; height: 90px; }
}
