/* =========================================================
   HYPERLIQUID LIVE DESK — PREMIUM DARK THEME
========================================================= */
:root {
  --bg-main: #0a0d14;
  --bg-card: #111622;
  --bg-card-hover: #161c2b;
  --bg-input: #182030;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 230, 118, 0.4);

  --btc-gold: #f7931a;
  --btc-gold-glow: rgba(247, 147, 26, 0.25);
  --neon-green: #00e676;
  --neon-green-glow: rgba(0, 230, 118, 0.25);
  --neon-red: #ff3b5c;
  --neon-red-glow: rgba(255, 59, 92, 0.25);
  --neon-cyan: #00d2ff;
  --neon-cyan-glow: rgba(0, 210, 255, 0.25);

  --text-main: #f0f4f8;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.app-header {
  background: rgba(17, 22, 34, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 24px;
  background: linear-gradient(135deg, #f7931a, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--btc-gold-glow));
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-live-pulse {
  background: rgba(0, 230, 118, 0.15);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  box-shadow: 0 0 10px var(--neon-green-glow);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}

.logo-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.account-pill {
  background: rgba(24, 32, 48, 0.7);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-dot.online {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.acc-label {
  color: var(--text-dim);
}

.acc-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--neon-cyan);
}

.signer-tag {
  background: rgba(0, 230, 118, 0.1);
  color: var(--neon-green);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.autotrading-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 32, 48, 0.7);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
}

.toggle-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-toggle .toggle-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.btn-toggle.active {
  background: rgba(0, 230, 118, 0.2);
  color: var(--neon-green);
}
.btn-toggle.active .toggle-indicator {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.btn-toggle.paused {
  background: rgba(255, 179, 71, 0.2);
  color: #ffb347;
}
.btn-toggle.paused .toggle-indicator {
  background: #ffb347;
}

.btn-emergency {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-emergency:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--neon-red-glow);
}

/* ── TOP METRICS BAR ── */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.2s ease;
}

.metric-card.highlight-border {
  border-color: rgba(247, 147, 26, 0.3);
}

.metric-card.highlight-border-gold {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.05);
}

.m-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.m-val-group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.m-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}

.m-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.m-badge-compounding {
  background: rgba(0, 210, 255, 0.15);
  color: var(--neon-cyan);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.text-gold { color: var(--btc-gold); }
.text-cyan { color: var(--neon-cyan); }
.text-green { color: var(--neon-green); }
.text-danger { color: var(--neon-red); }
.font-mono { font-family: var(--font-mono); }

/* ── MAIN WORKSPACE ── */
.main-workspace {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  padding: 0 24px 16px 24px;
  flex: 1;
}

@media (max-width: 1080px) {
  .main-workspace {
    grid-template-columns: 1fr;
  }
}

/* CHART PANEL */
.chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coin-badge {
  background: rgba(247, 147, 26, 0.15);
  color: var(--btc-gold);
  border: 1px solid rgba(247, 147, 26, 0.4);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.tf-badge {
  background: var(--bg-input);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.strat-badge {
  background: rgba(0, 230, 118, 0.1);
  color: var(--neon-green);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.gold-gram-badge {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.5);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.thc-gold-gram {
  font-size: 11px;
  color: #ffd700;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(255, 215, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: 2px;
  display: inline-block;
}

.trend-indicator {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.trend-indicator.bullish {
  background: rgba(0, 230, 118, 0.15);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}
.trend-indicator.bearish {
  background: rgba(255, 59, 92, 0.15);
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
}

.btn-icon {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  background: var(--bg-card-hover);
}

.chart-container {
  height: 520px;
  width: 100%;
  position: relative;
}

.chart-legend {
  padding: 8px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.legend-dot.green { background: #00e676; }
.legend-dot.red { background: #ff3b5c; }

.legend-line {
  width: 14px;
  height: 2px;
}
.legend-line.green { background: #00e676; }
.legend-line.red { background: #ff3b5c; }
.legend-line.cyan { background: #00d2ff; }

.legend-signal { font-weight: 800; font-size: 12px; }
.legend-signal.buy { color: #00e676; }
.legend-signal.sell { color: #ff3b5c; }

/* SIDEBAR */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-side {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.card-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-side-header h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.pos-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}
.pos-status-badge.flat {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.pos-status-badge.long {
  background: rgba(0, 230, 118, 0.2);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}
.pos-status-badge.short {
  background: rgba(255, 59, 92, 0.2);
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
}

.pos-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.pos-row:last-child {
  border-bottom: none;
}

.pos-row.pnl-highlight {
  padding-top: 6px;
  font-weight: 700;
  font-size: 13px;
}

.pos-lbl {
  color: var(--text-dim);
}

.engine-status-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 12px;
}

.status-text {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
}

.engine-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
}

.spec-item strong {
  color: var(--text-main);
}

.manual-orders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-action {
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-action.long {
  background: linear-gradient(135deg, #00b060, #00e676);
  color: #0b1510;
}
.btn-action.long:hover {
  box-shadow: 0 0 12px var(--neon-green-glow);
  transform: translateY(-1px);
}

.btn-action.short {
  background: linear-gradient(135deg, #d32f2f, #ff3b5c);
  color: #ffffff;
}
.btn-action.short:hover {
  box-shadow: 0 0 12px var(--neon-red-glow);
  transform: translateY(-1px);
}

/* ── HISTORY TABLE ── */
.history-section {
  padding: 0 24px 32px 24px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.history-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-header h2 {
  font-size: 15px;
  font-weight: 700;
}

.history-badge {
  background: rgba(0, 210, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.table-responsive {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.live-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.live-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.live-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.empty-cell {
  text-align: center;
  padding: 32px !important;
  color: var(--text-muted);
}

.tag-dir {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.tag-dir.buy { background: rgba(0, 230, 118, 0.15); color: var(--neon-green); }
.tag-dir.sell { background: rgba(255, 59, 92, 0.15); color: var(--neon-red); }

.tag-link {
  color: var(--neon-cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
}
.tag-link:hover {
  text-decoration: underline;
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.25s ease;
}

.toast.success { border-color: var(--neon-green); }
.toast.error { border-color: var(--neon-red); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── MULTI-TOKEN NAVIGATION TABS ── */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(24, 32, 48, 0.6);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-left: 18px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: var(--bg-card);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

/* ── HUB PANORAMICA VIEW ── */
.hub-container {
  padding: 0 24px 32px 24px;
  flex: 1;
}

.hub-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.hub-intro h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hub-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.token-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.token-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.token-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.token-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f7931a, #00d2ff);
  opacity: 0.6;
}

.thc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thc-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thc-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.thc-name {
  font-size: 16px;
  font-weight: 800;
}

.thc-symbol {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.thc-price-group {
  text-align: right;
}

.thc-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
}

.thc-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.thc-box {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thc-box-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.thc-box-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.thc-box-sub {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.thc-strategy-row {
  background: rgba(24, 32, 48, 0.5);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.thc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-open-desk {
  flex: 1;
  background: linear-gradient(135deg, #182030, #222d42);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-open-desk:hover {
  background: rgba(0, 210, 255, 0.15);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.btn-quick-buy, .btn-quick-sell {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}
.btn-quick-buy {
  background: rgba(0, 230, 118, 0.15);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}
.btn-quick-sell {
  background: rgba(255, 59, 92, 0.15);
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
}

/* ── MANUAL ORDER MARGIN INPUT ── */
.margin-input-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.margin-input-group label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.input-with-quick {
  display: flex;
  gap: 6px;
}

.input-with-quick input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  outline: none;
}
.input-with-quick input:focus {
  border-color: var(--neon-cyan);
}

.quick-margin-btns {
  display: flex;
  gap: 4px;
}

.btn-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.history-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.select-coin {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  outline: none;
}

/* KDP SPONSOR & REEL STUDIO EXTENSIONS */
.special-kdp-tab {
  background: linear-gradient(135deg, rgba(246, 211, 101, 0.15), rgba(253, 160, 133, 0.15)) !important;
  color: #f6d365 !important;
  border: 1px solid rgba(246, 211, 101, 0.35) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700 !important;
}
.special-kdp-tab:hover {
  background: linear-gradient(135deg, rgba(246, 211, 101, 0.25), rgba(253, 160, 133, 0.25)) !important;
  transform: translateY(-1px);
}

.btn-sponsor-preview {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-sponsor-preview:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #f6d365;
  color: #f6d365;
}

/* BANNER OVERLAY FLUTTUANTE LIVE STREAM */
.live-sponsor-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 480px;
  max-width: calc(100vw - 48px);
  background: rgba(13, 17, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(246, 211, 101, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(246, 211, 101, 0.15);
  z-index: 999;
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  overflow: hidden;
}

.live-sponsor-card.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sponsor-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(246, 211, 101, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sponsor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sponsor-tag {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #f6d365;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-close-sponsor {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.btn-close-sponsor:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sponsor-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sponsor-book-cover-wrap {
  width: 64px;
  height: 92px;
  perspective: 500px;
  flex-shrink: 0;
}

.sponsor-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 
    6px 8px 18px rgba(0, 0, 0, 0.6),
    inset 0 0 4px rgba(255, 255, 255, 0.3);
  transform: rotateY(-18deg) rotateX(4deg);
  transition: transform 0.3s ease;
}

.sponsor-details {
  flex: 1;
  min-width: 0;
}

.sponsor-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsor-author {
  font-size: 11px;
  color: #f6d365;
  font-weight: 600;
  margin-bottom: 4px;
}

.sponsor-highlights {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-stars {
  font-size: 11px;
  color: #ffb703;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sponsor-prime-badge {
  background: #00a8e8;
  color: #0b1510;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.sponsor-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sponsor-qr-box {
  width: 68px;
  height: 68px;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sponsor-scan-lbl {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

