/* Video Lab Card Overlay Fix */
.media-lab-card-video-wrap {
  position: relative;
}
.media-lab-card video {
  width: 100%;
  display: block;
  z-index: 1;
}
.media-lab-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}
.media-lab-card-actions {
  display: flex;
  gap: 8px;
  margin: 12px;
  pointer-events: auto;
  z-index: 3;
}
.media-lab-card-action {
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.15s;
}
.media-lab-card-action:hover {
  background: rgba(200,255,0,0.8);
  color: #222;
}
.media-lab-card-action--delete {
  background: rgba(255, 95, 87, 0.8);
  color: #fff;
}
.media-lab-card-action--delete:hover {
  background: #ff5f57;
  color: #fff;
}
.media-lab-card {
  position: relative;
  overflow: hidden;
}
@import url('./css/chat.css');
@import url('./css/features.css');
@import url('./css/agents.css');
@import url('./css/trading.css');
@import url('./css/live-trades.css');
@import url('./css/launch.css');

/* ─── Status Banner ─── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  animation: none;
}
.status-banner--minor { background: rgba(234, 179, 8, 0.08); color: #eab308; border-color: rgba(234, 179, 8, 0.2); }
.status-banner--major { background: rgba(249, 115, 22, 0.08); color: #f97316; border-color: rgba(249, 115, 22, 0.2); }
.status-banner--critical { background: rgba(239, 68, 68, 0.08); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
.status-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-banner-text { flex: 1; }
.status-banner-link {
  color: currentColor;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.status-banner-link:hover { opacity: 1; }
.status-banner-close {
  background: none; border: none; color: currentColor;
  font-size: 18px; cursor: pointer; padding: 0 4px;
  opacity: 0.5; line-height: 1;
}
.status-banner-close:hover { opacity: 1; }

/* ─── Layout ─── */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.app.connect-mode {
  grid-template-columns: 1fr;
}

/* ─── Ambient Background ─── */
.main {
  position: relative;
}

.main::before {
  content: '';
  position: fixed;
  top: 0; right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 20s ease-in-out infinite;
}

.main::after {
  content: '';
  position: fixed;
  bottom: -200px; left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 25s ease-in-out infinite reverse;
}

.main > * {
  position: relative;
  z-index: 1;
  animation: tabFadeIn 0.2s ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  33% { transform: translate(-30px, 20px) scale(1.1); opacity: 1; }
  66% { transform: translate(20px, -10px) scale(0.95); opacity: 0.8; }
}

/* ─── Sidebar ─── */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  background-image: linear-gradient(to bottom, var(--surface), rgba(10, 10, 10, 0.95));
}

.sidebar-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo .inf { font-size: 22px; }

.sidebar-nav { flex: 1; overflow-y: auto; }

.nav-group-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 28px;
}

.nav-group-label:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: rgba(200, 255, 0, 0.06);
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  box-shadow: inset 20px 0 40px -20px rgba(200, 255, 0, 0.04);
}
.nav-item .icon { font-size: 14px; width: 20px; text-align: center; }

.sidebar-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.sidebar-socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-social-link {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 6px 0;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.wallet-info {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.wallet-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg);
  padding: 8px 12px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.wallet-addr:hover { border-color: var(--accent); }
.wallet-addr .copy { color: var(--accent); font-size: 10px; }

/* ─── Main ─── */
.main {
  padding: 40px;
  overflow-y: auto;
}

.main.chat-mode {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.main.chat-mode::before,
.main.chat-mode::after {
  display: none;
}

.page-header { margin-bottom: 40px; }

.page-title {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-sub {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 300;
}

/* ─── Stats ─── */
.stats-row { margin-bottom: 40px; }

.stat-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 255, 0, 0.05),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.stat-card:hover::after { opacity: 1; }

.stat-card .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card .value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-card .value.accent { color: var(--accent); text-shadow: 0 0 30px rgba(200, 255, 0, 0.2); }
.stat-card .value.green { color: var(--green); text-shadow: 0 0 30px rgba(40, 200, 64, 0.2); }

.stat-card .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Dashboard Card Glow Override ─── */
.main .tool-card {
  position: relative;
  transition: all 0.3s, transform 0.2s;
}

.main .tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(200, 255, 0, 0.15);
}

.main .tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 255, 0, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.main .tool-card:hover::after { opacity: 1; }

.main .tool-card .tool-launch {
  transition: transform 0.2s, letter-spacing 0.2s;
}

.main .tool-card:hover .tool-launch {
  letter-spacing: 2px;
  transform: translateX(4px);
}

.main .tool-card .tool-status:not(.coming) {
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.3);
}

/* ─── Model Mobile Labels ─── */
.model-mobile-label { display: none; }
.model-header-row { background: transparent; border-color: transparent; }

@media (max-width: 600px) {
  .model-header-row { display: none !important; }
  .model-mobile-label {
    display: inline;
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 1px;
  }
  .model-row .model-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
  }
}

/* ─── Sections ─── */
.section { margin-bottom: 40px; }

.section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
}

.section-title::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 8px rgba(200, 255, 0, 0.4);
}

.api-key-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.api-key-box:hover { border-color: var(--border-light); }

.api-key-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.api-key-value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  padding: 14px 18px;
  border: 1px solid var(--border);
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-key-actions { display: flex; gap: 8px; }

.api-key-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.api-key-hint code {
  background: var(--bg);
  padding: 2px 6px;
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-dim);
}

/* ─── Usage Bar ─── */
.usage-bar-container {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.usage-count {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}

.usage-count span { color: var(--text-muted); }

.usage-bar-track {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.usage-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 1s ease-out;
  box-shadow: 0 0 8px rgba(200, 255, 0, 0.4), 0 0 20px rgba(200, 255, 0, 0.15);
  position: relative;
}

.usage-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: usagePulse 2s ease-in-out infinite;
}

@keyframes usagePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.usage-bar-fill.warning { background: #febc2e; }
.usage-bar-fill.danger {
  background: var(--red);
  animation: overviewUsagePulse 1.5s ease-in-out infinite;
}
.usage-bar-fill.danger::after { display: none; }

@keyframes overviewUsagePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.usage-warn-inline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  margin-top: 12px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 8px;
}

.usage-warn-inline.warning {
  color: #febc2e;
  border-color: rgba(254, 188, 46, 0.3);
  background: rgba(254, 188, 46, 0.05);
}

.usage-warn-inline.danger {
  color: var(--red);
  border-color: rgba(255, 95, 87, 0.3);
  background: rgba(255, 95, 87, 0.05);
}

.usage-legend { display: flex; gap: 24px; }

.usage-legend-item {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.usage-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ─── Connections ─── */
.connections-grid {
  display: grid;
  gap: 16px;
  max-width: 700px;
}

.connection-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.connection-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.connection-info {
  flex: 1;
  min-width: 0;
}

.connection-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.connection-desc {
  font-size: 13px;
}

.connection-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.connection-status.connected {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.connection-card.coming-soon {
  opacity: 0.5;
}

.coming-soon-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* ─── Connect Screen ─── */
.connect-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(200, 255, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 0, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
}

.connect-screen::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.06) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: connectPulse 6s ease-in-out infinite;
}

.connect-screen::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 0, 0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: connectRing 8s ease-in-out infinite;
}

@keyframes connectPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

@keyframes connectRing {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.connect-box {
  text-align: center;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: connectEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.connect-box > * {
  opacity: 0;
  animation: connectItemEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.connect-box > *:nth-child(1) { animation-delay: 0.1s; }
.connect-box > *:nth-child(2) { animation-delay: 0.2s; }
.connect-box > *:nth-child(3) { animation-delay: 0.35s; }
.connect-box > *:nth-child(4) { animation-delay: 0.5s; }
.connect-box > *:nth-child(5) { animation-delay: 0.6s; }
.connect-box > *:nth-child(6) { animation-delay: 0.7s; }

@keyframes connectEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes connectItemEnter {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.connect-box .logo {
  font-family: var(--font-display);
  font-size: 56px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 28px;
  line-height: 1;
  text-shadow: 0 0 60px rgba(200, 255, 0, 0.3), 0 0 120px rgba(200, 255, 0, 0.1);
}

.connect-box h1 {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.connect-box p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.7;
}

.connect-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 48px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.connect-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.connect-btn:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(200, 255, 0, 0.25);
}

.connect-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.connect-btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}

.connect-wallets { margin-bottom: 20px; }

.connect-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  padding: 12px 16px;
  border: 1px solid rgba(255, 95, 87, 0.3);
  background: rgba(255, 95, 87, 0.05);
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: left;
}

.connect-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ─── Card Glow (all interactive cards) ─── */
.main .connection-card,
.main .api-card,
.main .recipe-card,
.main .agent-card {
  position: relative;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.main .connection-card:hover,
.main .api-card:hover,
.main .recipe-card:hover,
.main .agent-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.main .connection-card::after,
.main .api-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(200, 255, 0, 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.main .connection-card:hover::after,
.main .api-card:hover::after {
  opacity: 1;
}

/* ─── Sidebar Logo Glow ─── */
.sidebar-logo {
  text-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
}

/* ─── Toast Upgrade ─── */
.toast {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── Responsive ─── */

/* Tablet & small laptop */
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .chat-input-area { max-width: 100%; padding: 12px 16px; }
  .image-prompt-area { flex-direction: column; }
  .video-controls { grid-template-columns: 1fr; }
  .bot-layout { grid-template-columns: 1fr; height: auto; max-height: none; }
  .bot-sidebar { display: none; }
  .bot-main { max-height: none; }
  .agent-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: 1fr; }
  .future-apis-grid { grid-template-columns: 1fr; }
  .main { padding: 24px; -webkit-overflow-scrolling: touch; }
  .page-title { font-size: clamp(24px, 6vw, 36px); }
  .chat-header { padding: 12px 16px; }
  .chat-messages { padding: 16px; }
  .chat-message { gap: 10px; }
  .connect-screen { padding: 24px; }
  .connect-box h1 { font-size: 28px; }
  .agent-notif-panel { width: min(380px, calc(100vw - 32px)); right: -60px; }
  .chat-with-sidebar { flex-direction: column; }
  .chat-qa-sidebar { display: none; }

  /* Better touch targets for all interactive elements */
  .nav-item { min-height: 44px; }
  .btn-sm { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .tool-toggle { min-height: 44px; }
  .future-apis-tab { min-height: 40px; }
  .recipe-tab { min-height: 44px; }
}

/* Mobile — 600px */
@media (max-width: 600px) {
  /* Toast */
  .toast-container { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: 100%; }
  .chat-message { max-width: 100%; }

  /* Layout */
  .main { padding: 16px; }
  .page-header { margin-bottom: 24px; }
  .page-title { font-size: 24px; }
  .page-sub { font-size: 13px; }
  .section { margin-bottom: 24px; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .stat-card .value { font-size: 22px; }
  .stat-card { padding: 16px; }

  /* API Keys */
  .api-key-box { padding: 16px; }
  .api-key-display { flex-direction: column; gap: 8px; }
  .api-key-value { font-size: 11px; padding: 10px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
  .api-key-actions { flex-wrap: wrap; gap: 6px; }
  .api-key-hint code { word-break: break-all; }

  /* Usage */
  .usage-bar-container { padding: 16px; }
  .usage-legend { flex-direction: column; gap: 8px; }

  /* Tool cards */
  .tools-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .tool-card { padding: 20px 16px; }
  .tool-card .tool-desc { font-size: 12px; }

  /* Models */
  .model-row { grid-template-columns: 1fr !important; gap: 6px; padding: 12px; }

  /* Chat */
  .chat-input { font-size: 16px; padding: 10px 14px; min-height: 44px; }
  .chat-send-btn { width: 44px; height: 44px; }
  .chat-upload-btn { width: 44px; height: 44px; }
  .chat-empty-title { font-size: 22px; }
  .chat-empty { min-height: 200px; }

  /* Images */
  .image-gallery { grid-template-columns: 1fr; }
  .image-prompt-area { flex-direction: column; }
  .image-gen-btn { width: 100%; }

  /* Trading */
  .bot-main { padding: 16px; }
  .bot-positions-grid { grid-template-columns: 1fr; }

  /* Connections */
  .connections-grid { gap: 12px; }
  .connection-card { padding: 16px; flex-wrap: wrap; gap: 12px; }
  .connection-icon { width: 40px; height: 40px; font-size: 14px; }
  .connection-action { width: 100%; justify-content: flex-end; }

  /* Portfolio */
  .portfolio-summary { grid-template-columns: repeat(2, 1fr); }

  /* Agents */
  .agent-stats-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .agent-stat-item { padding: 14px; }
  .agent-stat-value { font-size: 22px; }
  .agent-template-card { padding: 20px 16px; }
  .agent-wizard-step-title { font-size: 20px; }

  /* Future APIs */
  .future-apis-grid { grid-template-columns: 1fr !important; }
  .api-card { flex-direction: column; gap: 12px; }
  .api-card-logo { width: 40px; height: 40px; }
  .api-card-logo img { width: 32px; height: 32px; }
  .api-card-header { flex-wrap: wrap; gap: 6px; }

}

/* iOS zoom prevention — 16px minimum for inputs */
@media (max-width: 1024px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .main { padding: 12px; }
  .page-title { font-size: 20px; }
  .page-sub { font-size: 12px; }
  .stat-card .value { font-size: 18px; }
  .stat-card .label { font-size: 9px; letter-spacing: 1px; }
  .stat-card { padding: 12px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .connect-screen { padding: 16px; }
  .connect-box { max-width: 100%; }
  .connect-box .logo { font-size: 40px; margin-bottom: 20px; }
  .connect-box h1 { font-size: 22px; }
  .connect-box p { font-size: 13px; margin-bottom: 24px; }
  .connect-btn { font-size: 11px; padding: 14px 20px; letter-spacing: 1px; }
  .api-key-actions { flex-wrap: wrap; }
  .api-key-value { font-size: 10px; padding: 8px 10px; }
  .chat-input-area { gap: 8px; padding: 10px 12px; }
  .chat-msg-avatar { width: 28px; height: 28px; font-size: 11px; }
  .chat-msg-content { font-size: 13px; }
  .chat-msg-content pre { font-size: 11px; padding: 12px; }
  .portfolio-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .portfolio-stat-card .val { font-size: 14px; }
  .bot-wallet-actions { grid-template-columns: 1fr; }
  .agent-stats-bar { grid-template-columns: 1fr 1fr; }
  .agent-notif-panel { width: calc(100vw - 24px); right: -12px; left: 12px; }
  .future-apis-tabs { gap: 4px; flex-wrap: wrap; }
  .future-apis-tab { padding: 6px 10px; font-size: 9px; }
  .video-tier-gate { padding: 40px 20px; }
  .video-tier-gate h3 { font-size: 20px; }
  .section-title { font-size: 10px; letter-spacing: 2px; }
  .tool-card .tool-name { font-size: 16px; }
  .tool-card .tool-desc { font-size: 11px; }
  .api-card-desc { font-size: 11px; }
  .api-card-name { font-size: 12px; }
  .usage-header { flex-direction: column; gap: 4px; }
  .mobile-header { padding: 10px 12px; }
  .mobile-logo { font-size: 11px; }
}

/* ─── Treasury Page ─── */
.treasury-fee-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.fee-bar-container { display: flex; flex-direction: column; gap: 20px; }

.fee-bar {
  display: flex;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.fee-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--bg);
  transition: filter 0.2s;
}

.fee-segment:hover { filter: brightness(1.15); }
.treasury-seg { background: var(--accent); }
.dev-seg { background: var(--text-dim); }
.community-seg { background: var(--green); }

.fee-legend { display: flex; flex-direction: column; gap: 12px; }

.fee-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fee-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 3px;
}

.fee-legend-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.fee-legend-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.treasury-wallet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
}

.treasury-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.treasury-wallet-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.treasury-wallet-addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  padding: 10px 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  word-break: break-all;
  transition: border-color 0.2s;
}

.treasury-wallet-addr:hover { border-color: var(--accent); }
.treasury-wallet-addr .copy {
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.treasury-verify-btn { white-space: nowrap; flex-shrink: 0; }

.treasury-wallet-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.treasury-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.treasury-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.treasury-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.treasury-table td {
  padding: 12px 16px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.treasury-table td.mono { font-variant-numeric: tabular-nums; }
.treasury-table td.accent { color: var(--accent); font-weight: 600; }

.treasury-table tbody tr:last-child td { border-bottom: none; }
.treasury-table tbody tr:hover { background: rgba(200, 255, 0, 0.02); }

.health-row-active {
  background: rgba(200, 255, 0, 0.04);
}

.health-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--bg);
}

.health-current {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.treasury-impact-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .treasury-wallet-row { flex-direction: column; align-items: stretch; }
  .treasury-verify-btn { width: 100%; text-align: center; }
  .fee-bar { height: 28px; }
  .fee-segment { font-size: 9px; }
  .treasury-table { font-size: 11px; }
  .treasury-table th, .treasury-table td { padding: 10px 12px; }
}

/* ─── Compliance ─── */
.compliance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 10px;
  padding: 6px 0;
  cursor: default;
}

.compliance-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}

.compliance-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-top: 8px;
}

.compliance-notice-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-notice-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

/* ─── Toast Notifications ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
  max-width: 360px;
}

.toast.error {
  border-color: var(--red);
  color: var(--red);
}

.toast.warning {
  border-color: #febc2e;
  color: #febc2e;
}

.toast-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.toast-msg { flex: 1; line-height: 1.4; }

.toast-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  transition: opacity 0.2s;
}

.toast-dismiss:hover { opacity: 1; }

.toast.exiting { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ─── Sidebar Usage Bar ─── */
.sidebar-usage {
  margin-bottom: 12px;
}

.sidebar-usage-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.sidebar-usage-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar-usage-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.sidebar-usage-track {
  height: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 4px;
}

.sidebar-usage-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.8s ease-out;
  box-shadow: 0 0 6px rgba(200, 255, 0, 0.4);
}

.sidebar-usage-fill.warning {
  background: #febc2e;
  box-shadow: 0 0 6px rgba(254, 188, 46, 0.4);
}
.sidebar-usage-fill.danger {
  background: var(--red);
  box-shadow: 0 0 6px rgba(255, 95, 87, 0.4);
  animation: usagePulse 1.5s ease-in-out infinite;
}

@keyframes usagePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.sidebar-usage-reset {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
}

.sidebar-usage-warn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 6px 8px;
  margin-top: 6px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-usage-warn.warning {
  color: #febc2e;
  border-color: rgba(254, 188, 46, 0.3);
  background: rgba(254, 188, 46, 0.05);
}

.sidebar-usage-warn.danger {
  color: var(--red);
  border-color: rgba(255, 95, 87, 0.3);
  background: rgba(255, 95, 87, 0.05);
}

.sidebar-usage-warn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── Connection Status Dot ─── */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
}

.status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green), 0 0 12px rgba(40, 200, 64, 0.3); }
.status-dot.offline { background: var(--red); }
.status-dot.checking {
  background: var(--text-muted);
  animation: agentPulse 1.5s ease-in-out infinite;
}

/* ─── Skeleton Loading ─── */
.skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.03), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
  height: 14px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.skeleton-value {
  height: 28px;
  width: 80px;
  border-radius: 3px;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Button Loading State ─── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  top: 50%;
  left: 50%;
  margin: -6px 0 0 -6px;
}

/* ─── Mobile Nav ─── */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-tier {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mobile-hamburger {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-hamburger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mobile-nav-overlay.open { display: block; }

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(280px, 85vw);
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 201;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Mobile Nav Account Info ─── */
.mobile-nav-account {
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav-account .wallet-info {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mobile-nav-account .wallet-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg);
  padding: 8px 12px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.mobile-nav-account .wallet-addr:hover { border-color: var(--accent); }

/* ─── Holder Gate ─── */

.holder-gate {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 60px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.holder-gate-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}

.holder-gate-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.6;
}

.holder-gate-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.holder-gate-tier {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px 12px;
  transition: border-color 0.2s;
}

.holder-gate-tier.accent {
  border-color: var(--accent);
}

.holder-gate-tier-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.holder-gate-tier-req {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}

.holder-gate-tier-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.holder-gate-btn {
  margin-top: 4px;
}

.holder-gate-balance {
  font-size: 13px;
  color: var(--text-dim);
}

/* ─── Trial Banner ─── */

.trial-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.10));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.trial-banner-label {
  background: rgba(99, 102, 241, 0.2);
  color: #a78bfa;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.trial-banner-count {
  color: var(--text-dim);
  flex: 1;
}

.trial-banner .btn-sm {
  white-space: nowrap;
}

/* ─── Free Access Banner ─── */

.free-access-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.12), rgba(200, 255, 0, 0.04));
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  animation: freeAccessPulse 3s ease-in-out infinite;
}

@keyframes freeAccessPulse {
  0%, 100% { border-color: rgba(200, 255, 0, 0.3); }
  50% { border-color: rgba(200, 255, 0, 0.6); }
}

.free-access-banner-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.free-access-banner-text {
  color: var(--text-dim);
  flex: 1;
}

.free-access-banner-text strong {
  color: var(--accent);
}

.free-access-banner-hint {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.free-access-banner-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}

.free-access-banner-btn:hover { background: #fff; }

@media (max-width: 768px) {
  .free-access-banner { flex-wrap: wrap; gap: 8px; }
  .free-access-banner-hint { display: none; }
  .free-access-banner-btn { width: 100%; text-align: center; }
}

/* ─── Wallet Connect Modal ─── */

.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

.wallet-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: slideUp 0.25s;
}

.wallet-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.wallet-modal-close:hover {
  color: var(--text);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Sidebar Connect CTA ─── */

.sidebar-connect-cta {
  text-align: center;
  padding: 12px 0;
}

.sidebar-connect-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sidebar-connect-btn {
  width: 100%;
  padding: 10px;
  font-size: 11px;
}

.mobile-connect-btn {
  font-size: 11px;
  padding: 6px 14px;
}

/* ─── Holder Gate Responsive ─── */

@media (max-width: 600px) {
  .holder-gate { padding: 40px 20px; }
  .holder-gate-tiers { grid-template-columns: 1fr; gap: 8px; }
  .holder-gate-tier { padding: 12px; }
  .wallet-modal { padding: 28px 20px; }
  .trial-banner { flex-wrap: wrap; gap: 8px; }
  .trial-banner .btn-sm { width: 100%; text-align: center; }
}
