/* ==================== TG GIFTS MARKET — STYLES ==================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0B0F19;
  --bg2: #0d1220;
  --card: #111827;
  --card2: #141e2e;
  --border: #1E2A3A;
  --border2: #253347;
  --text: #E5E7EB;
  --text2: #9CA3AF;
  --text3: #4B5563;
  --accent: #22C55E;
  --accent2: #16a34a;
  --accent-dim: #22C55E22;
  --red: #EF4444;
  --red-dim: #EF444422;
  --yellow: #F59E0B;
  --yellow-dim: #F59E0B22;
  --blue: #3B82F6;
  --blue-dim: #3B82F622;
  --sidebar-w: 240px;
  --topbar-h: 56px;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===== LAYOUT ===== */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-dim);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.2;
}
.logo-sub {
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-section {
  padding: 8px 16px 4px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text);
  background: var(--card2);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}

.nav-icon {
  font-size: 14px;
  width: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.8;
}

.nav-badge {
  margin-left: auto;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-badge.red { background: var(--red-dim); color: var(--red); }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.sidebar-status {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-text { font-size: 10px; color: var(--text3); }
.version-text { font-size: 9px; color: var(--text3); }

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

.topbar-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.topbar-search span {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 14px;
  pointer-events: none;
}
.topbar-search input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px 7px 34px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.topbar-search input::placeholder { color: var(--text3); }
.topbar-search input:focus { border-color: var(--accent); }

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

.topbar-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text2);
}
.topbar-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.topbar-btn {
  width: 34px; height: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
  position: relative;
}
.topbar-btn:hover { border-color: var(--accent); color: var(--accent); }

.notif-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 50%;
  font-size: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
}

.wallet-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.03em;
}
.wallet-btn:hover { background: var(--accent); color: #000; }

/* ===== CONTENT ===== */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content.no-pad { padding: 0; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 4px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.page-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* ===== STAT CARDS ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border2); }
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  line-height: 1;
}
.stat-unit { font-size: 13px; color: var(--text2); margin-left: 3px; }
.stat-change {
  margin-top: 8px;
  font-size: 11px;
}
.stat-change.up { color: var(--accent); }
.stat-change.down { color: var(--red); }
.stat-icon {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 22px;
  opacity: 0.3;
}

/* ===== CARDS / SECTIONS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.card-title-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.card-actions { display: flex; gap: 8px; }

.card-body { padding: 20px; }

/* ===== TABS ===== */
.tabs {
  display: flex; gap: 2px;
  background: var(--bg2);
  border-radius: 4px;
  padding: 2px;
}
.tab {
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text3);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.tab:hover { color: var(--text2); }
.tab.active { background: var(--card2); color: var(--accent); }

/* ===== CHART CONTAINERS ===== */
.chart-wrap {
  height: 200px;
  position: relative;
  padding: 4px 0;
}
.chart-wrap.tall { height: 260px; }
.chart-wrap.short { height: 80px; }

/* ===== DATA TABLE ===== */
.dt-wrapper { width: 100%; }

.dt-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.dt-search-wrap {
  position: relative;
  flex: 1;
  max-width: 280px;
}
.dt-search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 14px;
}
.dt-search {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px 6px 30px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}
.dt-search::placeholder { color: var(--text3); }
.dt-search:focus { border-color: var(--accent); }
.dt-info { font-size: 11px; color: var(--text3); }

.dt-scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky; top: 0;
  background: var(--card);
  z-index: 2;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--text2); }

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle;
}

.tr-hover { transition: background 0.12s; }
.tr-hover:hover { background: var(--card2); cursor: pointer; }

.empty-row {
  text-align: center;
  color: var(--text3);
  padding: 40px !important;
}

.dt-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 14px;
  border-top: 1px solid var(--border);
}

.pg-btn {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 32px;
  text-align: center;
}
.pg-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.pg-btn:disabled { opacity: 0.3; cursor: default; }

/* ===== SIGNAL BADGES ===== */
.signal {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.signal-green { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent)44; }
.signal-yellow { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow)44; }
.signal-red { background: var(--red-dim); color: var(--red); border: 1px solid var(--red)44; }

/* ===== RARITY ===== */
.rarity-legendary { color: #F59E0B; font-weight: 700; }
.rarity-epic { color: #A855F7; font-weight: 600; }
.rarity-rare { color: #3B82F6; font-weight: 600; }
.rarity-common { color: var(--text2); }

/* ===== TON VALUES ===== */
.ton-val { color: var(--text); font-weight: 600; }
.ton-unit { color: var(--text3); font-size: 11px; }
.green { color: var(--accent); font-weight: 600; }
.red { color: var(--red); font-weight: 600; }
.yellow { color: var(--yellow); font-weight: 600; }

/* ===== ACTION BUTTONS ===== */
.btn {
  padding: 5px 12px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-sm { padding: 4px 9px; font-size: 10px; }

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent2); box-shadow: 0 0 8px var(--accent)66; }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }

.btn-outline-green {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent)44;
}
.btn-outline-green:hover { background: var(--accent); color: #000; }

.btn-icon { padding: 5px 8px; }

/* ===== COLLECTION GRID ===== */
.coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.coll-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.coll-card:hover {
  border-color: var(--accent);
  background: var(--card2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #00000040;
}

.coll-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.coll-logo {
  width: 44px; height: 44px;
  background: var(--bg2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.coll-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.coll-supply { font-size: 10px; color: var(--text3); margin-top: 2px; }

.coll-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.coll-stat-label { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }
.coll-stat-value { font-size: 13px; color: var(--text); font-weight: 600; margin-top: 2px; }

/* ===== NFT IMAGE PLACEHOLDER ===== */
.nft-img {
  width: 40px; height: 40px;
  background: var(--bg2);
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.nft-cell {
  display: flex; align-items: center; gap: 10px;
}
.nft-cell-name { font-size: 13px; color: var(--text); font-weight: 500; }
.nft-cell-id { font-size: 10px; color: var(--text3); margin-top: 1px; }

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: #00000080;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.2s;
}
.popup-overlay.visible { opacity: 1; }

.popup-box {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 10px;
  width: 400px;
  max-width: 95vw;
  overflow: hidden;
  box-shadow: 0 24px 64px #000000AA;
  transform: translateY(10px);
  transition: transform 0.2s;
}
.popup-overlay.visible .popup-box { transform: translateY(0); }

.popup-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.popup-title { display: flex; align-items: center; gap: 12px; }
.popup-emoji { font-size: 30px; }
.popup-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.popup-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.popup-close {
  background: none; border: none; color: var(--text3);
  font-size: 16px; cursor: pointer; padding: 4px;
  transition: color 0.15s;
}
.popup-close:hover { color: var(--text); }

.popup-body { padding: 20px; }
.popup-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.popup-row.total { margin-top: 4px; }
.popup-label { font-size: 12px; color: var(--text3); }
.popup-value { font-size: 13px; font-weight: 600; }
.popup-value.accent { color: var(--accent); }
.popup-value.green { color: var(--accent); }
.popup-value.lg { font-size: 18px; }
.popup-divider { border-top: 1px solid var(--border); margin: 10px 0; }

.popup-actions {
  padding: 0 20px 20px;
  display: flex; gap: 10px;
}
.btn-secondary {
  flex: 1;
  padding: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.btn-secondary:hover { border-color: var(--text2); color: var(--text); }

.btn-buy {
  flex: 2;
  padding: 10px 16px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #000;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: 0.03em;
}
.btn-buy:hover:not(:disabled) { background: var(--accent2); box-shadow: 0 0 16px var(--accent)66; }
.btn-buy:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-arrow { font-size: 16px; }

.popup-note {
  padding: 8px 20px 14px;
  font-size: 10px;
  color: var(--text3);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ===== SPINNER ===== */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid #00000040;
  border-top-color: #000;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== DASHBOARD GRID ===== */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.dash-full { grid-column: 1 / -1; }

/* ===== COLLECTION PAGE ===== */
.coll-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex; gap: 24px;
  align-items: flex-start;
}
.coll-hero-logo {
  width: 80px; height: 80px;
  background: var(--bg2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.coll-hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 4px;
}
.coll-hero-desc { font-size: 13px; color: var(--text2); margin-bottom: 16px; max-width: 500px; }
.coll-hero-stats {
  display: flex; gap: 24px;
  flex-wrap: wrap;
}
.hero-stat-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-stat-value { font-size: 18px; font-weight: 700; color: var(--text); margin-top: 2px; }
.hero-stat-value.accent { color: var(--accent); }

/* ===== GIFT PAGE ===== */
.gift-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.gift-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.gift-big-img {
  width: 180px; height: 180px;
  background: linear-gradient(135deg, #1a2035 0%, #0d1220 100%);
  border-radius: 12px;
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  margin: 0 auto 16px;
  box-shadow: inset 0 0 40px #22C55E08, 0 4px 20px #00000040;
}
.gift-big-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 4px;
}
.gift-big-coll { font-size: 12px; color: var(--text3); }

.attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.attr-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.attr-label { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }
.attr-value { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 2px; }

.price-analytics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pa-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}
.pa-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.pa-value { font-size: 20px; font-weight: 700; color: var(--text); }
.pa-value .ton-unit { font-size: 12px; }

/* ===== ALERTS ===== */
.alert-list { display: flex; flex-direction: column; gap: 1px; }
.alert-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.alert-item:hover { background: var(--card2); }
.alert-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.alert-dot.green { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.alert-dot.yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.alert-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.alert-logo { font-size: 20px; }
.alert-content { flex: 1; }
.alert-title { font-size: 13px; font-weight: 600; color: var(--text); }
.alert-desc { font-size: 11px; color: var(--text3); margin-top: 2px; }
.alert-time { font-size: 10px; color: var(--text3); flex-shrink: 0; }

/* ===== PORTFOLIO ===== */
.portfolio-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--card);
}
.filter-select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--accent); }
.filter-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1440px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-grid { grid-template-columns: 2fr 1fr; }
}
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .gift-layout { grid-template-columns: 1fr; }
  .coll-hero { flex-direction: column; }
}

/* ===== MINI TICKER ===== */
.ticker-bar {
  display: flex; align-items: center;
  gap: 0;
  overflow: hidden;
  height: 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.ticker-label {
  padding: 0 12px;
  font-size: 9px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex; align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg2);
  z-index: 2;
}
.ticker-track {
  display: flex; align-items: center; gap: 32px;
  animation: ticker 30s linear infinite;
  padding: 0 32px;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text2);
}
.ticker-name { font-weight: 600; }
.ticker-price { color: var(--text3); }
.ticker-change.up { color: var(--accent); }
.ticker-change.down { color: var(--red); }

/* ===== LOADING STATE ===== */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease infinite;
  border-radius: 4px;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text3); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border2); }

/* ===== SCROLLABLE CONTENT AREA ===== */
.full-table-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}
.full-table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: var(--card);
}
.full-table-body {
  flex: 1;
  overflow-y: auto;
}
