/* Dashboard — Modern SaaS / Crypto Dark Theme */

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

:root {
  --bg-base: #0a0f1a;
  --bg-surface: #111827;
  --bg-card: rgba(17,24,39,0.7);
  --bg-sidebar: #080c16;
  --border: rgba(56,68,90,0.4);
  --border-glow: rgba(59,130,246,0.3);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-label: #64748b;
  --accent: #3b82f6;
  --accent-glow: rgba(59,130,246,0.12);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.25), 0 0 1px rgba(255,255,255,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 220px;
  --right-panel-w: 280px;
  --topbar-h: 48px;
  --footer-h: 32px;
  --font-stack: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ── Main grid layout ─────────────────────────────────────────────── */

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--right-panel-w);
  grid-template-rows: var(--topbar-h) 1fr var(--footer-h);
  grid-template-areas:
    "sidebar topbar  rightpanel"
    "sidebar content rightpanel"
    "sidebar footer  rightpanel";
  height: 100vh;
  height: 100dvh;
}

/* ── Top bar ──────────────────────────────────────────────────────── */

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(10,15,26,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  z-index: 10;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-brand { font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.topbar-page { color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-time { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ── Sidebar ──────────────────────────────────────────────────────── */

.sidebar {
  grid-area: sidebar;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 12px rgba(59,130,246,0.04);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-brand {
  padding: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.sidebar-nav { display: flex; flex-direction: column; padding: 8px 0; }

.nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-link:hover {
  background: rgba(30,41,59,0.35);
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  border-left-color: var(--accent);
  background: var(--accent-glow);
}

/* ── Main content ─────────────────────────────────────────────────── */

.main-content {
  grid-area: content;
  overflow-y: auto;
  padding: 16px;
}

/* ── Card grid ────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), 0 0 20px rgba(59,130,246,0.06);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.card-body {
  padding: 14px 16px;
  font-size: 0.8rem;
}

/* ── Card body helpers ────────────────────────────────────────────── */

.kv-list { display: flex; flex-direction: column; gap: 4px; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kv-row .label, .label { color: var(--text-label); font-size: 0.75rem; font-weight: 500; }
.section-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.04em; }

.compact-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.compact-list li { font-size: 0.78rem; padding: 2px 0; border-bottom: 1px solid rgba(56,68,90,0.35); }
.compact-list li:last-child { border-bottom: none; }

.task-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-count-item { display: flex; align-items: center; gap: 4px; }
.task-count-item .count { margin-left: auto; font-weight: 600; }

.muted { color: var(--text-muted); }

/* ── Right panel (feed) ───────────────────────────────────────────── */

.right-panel {
  grid-area: rightpanel;
  background: rgba(8,12,22,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s;
}

.right-panel.collapsed { width: 0; overflow: hidden; border: none; }

.right-panel-header {
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.feed-item {
  font-size: 0.72rem;
  padding: 4px 0 4px 8px;
  border-bottom: 1px solid rgba(30,41,59,0.5);
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  animation: slide-in 0.3s ease-out;
}

.feed-time { color: var(--text-label); margin-right: 4px; font-size: 0.65rem; }

.feed-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.7rem;
  transition: color 0.15s, border-color 0.15s;
}

.feed-toggle-btn:hover { color: var(--text); border-color: var(--border-glow); }

/* ── Footer ───────────────────────────────────────────────────────── */

.footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(10,15,26,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-label);
}

/* ── Page placeholder ─────────────────────────────────────────────── */

.page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  color: var(--text-muted);
}

.page-placeholder h2 { margin-bottom: 8px; font-size: 1.1rem; }

/* ── Progress bars ───────────────────────────────────────────────── */

progress,
.progress-bar {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  height: 6px;
  background: rgba(56,68,90,0.3);
}

progress::-webkit-progress-bar {
  background: rgba(56,68,90,0.3);
  border-radius: 6px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  box-shadow: 0 0 8px rgba(59,130,246,0.3);
  border-radius: 6px;
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  box-shadow: 0 0 8px rgba(59,130,246,0.3);
  border-radius: 6px;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  box-shadow: 0 0 8px rgba(59,130,246,0.3);
  border-radius: 6px;
  height: 100%;
}

/* ── Neural Graph Card ───────────────────────────────────────────── */

.card-neural-graph {
  grid-column: 1 / -1;
}

.card-neural-graph .card-body {
  padding: 0;
  height: 480px;
  position: relative;
}

.card-neural-graph canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Animations ──────────────────────────────────────────────────── */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.7; box-shadow: 0 0 0 3px transparent; }
}

.status-dot-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Utility color classes ───────────────────────────────────────── */

.text-green, .status-green { color: var(--green); }
.text-red, .status-red { color: var(--red); }
.text-yellow, .status-yellow { color: var(--yellow); }
.text-accent { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .app-layout {
    grid-template-columns: var(--sidebar-w) 1fr 0;
  }
  .right-panel { display: none; }
}

@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 0 1fr 0;
  }
  .sidebar { display: none; }
  .right-panel { display: none; }
  .card-neural-graph { grid-column: 1 / -1; }
  .card-neural-graph .card-body { height: 320px; }
}

/* ── Updates page ────────────────────────────────────────────────── */

.updates-page {
  max-width: 720px;
  padding: 0 4px;
}

.updates-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.updates-date-group {
  margin: 24px 0 10px;
}

.updates-date-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.update-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.update-card:hover {
  border-color: var(--border-glow);
}

.update-card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.update-left {
  flex-shrink: 0;
  width: 42px;
  padding-top: 2px;
}

.update-time {
  font-size: 0.7rem;
  color: var(--text-label);
  font-variant-numeric: tabular-nums;
}

.update-right {
  flex: 1;
  min-width: 0;
}

.update-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.update-category {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.update-affects {
  font-size: 0.65rem;
  color: var(--text-label);
}

.update-headline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}

.update-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.update-chevron {
  flex-shrink: 0;
  font-size: 0.6rem;
  color: var(--text-label);
  padding-top: 4px;
  transition: transform 0.2s;
}

.update-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px 0 70px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.update-detail.open {
  max-height: 300px;
  padding: 0 16px 16px 70px;
}

/* ── Data table ──────────────────────────────────────────────────── */

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 8px 12px; font-size: 0.7rem; text-transform: uppercase; color: var(--text-label); border-bottom: 1px solid var(--border); }
.data-table td { padding: 8px 12px; font-size: 0.8rem; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr.expandable { cursor: pointer; }

/* ── Filter tabs ─────────────────────────────────────────────────── */

.filter-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.filter-tab { padding: 6px 14px; font-size: 0.75rem; border-radius: var(--radius-sm); cursor: pointer; background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.filter-tab.active { background: var(--accent-glow); color: var(--accent); border-color: rgba(59,130,246,0.2); }

/* ── Search input ────────────────────────────────────────────────── */

.search-input { width: 100%; padding: 8px 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.8rem; margin-bottom: 12px; }

/* ── Stat row ────────────────────────────────────────────────────── */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }

/* ── Detail expand ───────────────────────────────────────────────── */

.detail-expand { padding: 12px 16px; background: rgba(0,0,0,0.15); border-top: 1px solid var(--border); font-size: 0.78rem; display: none; }
.detail-expand.open { display: block; }

/* ── Page headers ────────────────────────────────────────────────── */

.page-header { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.page-header-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Fact list ───────────────────────────────────────────────────── */

.fact-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.fact-item { padding: 8px 12px; font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--border); line-height: 1.5; }

/* ── Vault layout ────────────────────────────────────────────────── */

.vault-layout { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.folder-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.folder-item { padding: 6px 10px; font-size: 0.78rem; cursor: pointer; border-radius: var(--radius-sm); color: var(--text-muted); }
.folder-item.active { background: var(--accent-glow); color: var(--accent); }
.folder-count { float: right; color: var(--text-label); }

/* ── Headline stats ─────────────────────────────────────────────── */

.headline-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 16px; }
.headline-stat { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-align: center; transition: border-color 0.2s; }
.headline-stat:hover { border-color: var(--border-glow); }
.headline-stat .stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1; }
.headline-stat .stat-label { font-size: 0.65rem; color: var(--text-label); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; }

/* ── Neural map page ────────────────────────────────────────────── */

.neural-map-page { display: flex; height: calc(100vh - var(--topbar-h) - var(--footer-h) - 8px); position: relative; overflow: hidden; }
.neural-map-canvas { flex: 1; position: relative; overflow: hidden; }
.neural-map-canvas canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.neural-map-header { position: absolute; top: 12px; left: 16px; z-index: 10; display: flex; gap: 12px; align-items: center; pointer-events: none; }
.neural-map-stats { font-size: 0.75rem; color: var(--text-muted); }
.node-detail-panel { width: 280px; flex-shrink: 0; background: var(--bg-sidebar); border-left: 1px solid var(--border); padding: 16px; overflow-y: auto; transition: width 0.2s, padding 0.2s; }
.node-detail-panel.hidden { width: 0; padding: 0; overflow: hidden; border: none; }

@media (max-width: 768px) {
  .neural-map-page { flex-direction: column; }
  .node-detail-panel { width: 100%; height: 200px; border-left: none; border-top: 1px solid var(--border); }
  .node-detail-panel.hidden { height: 0; }
}

/* ── Hero toggle ────────────────────────────────────────────────── */

.hero-toggle { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.hero-toggle-btn { padding: 5px 14px; font-size: 0.72rem; border-radius: var(--radius-sm); cursor: pointer; background: transparent; color: var(--text-muted); border: 1px solid transparent; font-family: inherit; transition: background 0.15s, color 0.15s; }
.hero-toggle-btn.active { background: var(--accent-glow); color: var(--accent); border-color: rgba(59,130,246,0.2); }
.hero-theme-select { font-size: 0.7rem; background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; margin-left: 8px; font-family: inherit; }

/* ── Hero theme container ───────────────────────────────────────── */

.hero-theme-container { position: relative; width: 100%; height: 500px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; background: #0a0a1a; }
.hero-theme-container canvas, .hero-theme-container iframe { width: 100%; height: 100%; display: block; border-radius: inherit; }

/* ── KPI overlay ────────────────────────────────────────────────── */

.hero-kpi-overlay { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 16px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 8px; padding: 8px 16px; z-index: 10; }
.hero-kpi { text-align: center; }
.hero-kpi .kpi-value { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-kpi .kpi-label { display: block; font-size: 0.55rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* ── Agents page ────────────────────────────────────────────────── */

.agents-layout { display: grid; grid-template-columns: 1fr 380px; gap: 16px; min-height: 500px; }
.agent-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: calc(100vh - 160px); }
.agent-card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; transition: border-color 0.2s, background 0.15s; }
.agent-card:hover { border-color: var(--border-glow); }
.agent-card.selected { border-color: var(--accent); background: var(--accent-glow); }
.agent-card-top { display: flex; justify-content: space-between; align-items: center; }
.agent-card-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.agent-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.agent-card-meta { display: flex; gap: 12px; margin-top: 6px; font-size: 0.7rem; color: var(--text-label); }

.agent-detail-panel { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow-y: auto; max-height: calc(100vh - 160px); }
.agent-detail-header { margin-bottom: 16px; }
.agent-detail-name { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0; }
.agent-detail-role { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; font-style: italic; }
.agent-detail-section { margin-bottom: 16px; }
.agent-detail-section-title { font-size: 0.7rem; font-weight: 600; color: var(--text-label); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.agent-detail-summary { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .agents-layout { grid-template-columns: 1fr; }
  .agent-detail-panel { max-height: none; }
}

/* ── Scrollbar styling ────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

.main-content {
  scrollbar-width: none; /* Firefox */
}
.main-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ── Lounge ──────────────────────────────────────────────── */

.lounge-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: -0.5rem 0 1rem 0;
}

.lounge-chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.lounge-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 1rem;
  font-style: italic;
}

.lounge-message {
  padding: 0.6rem 0.8rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

.lounge-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.lounge-agent {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lounge-time {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: monospace;
}

/* ── Mint Factory Public Header ──────────────────────────── */

.mint-header {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.mint-title {
  font-size: 2rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 1px;
  margin: 0;
}

.mint-subtitle {
  font-size: 0.9rem;
  color: #3fb950;
  margin: 0.25rem 0 0;
  letter-spacing: 0.5px;
}

.mint-intro {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0.75rem auto 0;
}

.mint-description {
  max-width: 700px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  text-align: center;
}

.mint-description p {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.mint-techstack {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  text-align: center;
}

.mint-techstack-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 1rem;
}

.mint-techstack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .mint-techstack-grid { grid-template-columns: repeat(2, 1fr); }
}

.tech-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 0.4rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid #1e293b;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.tech-chip:hover {
  border-color: #334155;
}

.tech-icon {
  font-size: 1.2rem;
}

.tech-name {
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
}

.tech-role {
  color: #64748b;
  font-size: 0.65rem;
}

.mint-author {
  text-align: center;
  padding: 1.5rem 0 2rem;
  color: #475569;
  font-size: 0.8rem;
}

.mint-author-name {
  color: #e2e8f0;
  font-weight: 600;
}

/* ── Mint Factory Fullscreen ─────────────────────────────── */

.mint-fullscreen-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.mint-fullscreen-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}

.mint-fs-exit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 15;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.mint-fs-exit:hover {
  background: rgba(30, 41, 59, 0.95);
}

.mint-fullscreen {
  background: #000 !important;
  border-radius: 0 !important;
}

.mint-fullscreen video,
.mint-fullscreen img {
  border-radius: 0 !important;
  object-fit: contain !important;
}

.mint-fullscreen canvas {
  border-radius: 0 !important;
}

.mint-fullscreen .hero-kpi-overlay {
  bottom: 12px;
  left: 12px;
}

/* ── Mobile Responsive ───────────────────────────────────── */

/* Simulated fullscreen (iOS fallback) */
.mint-simulated-fs {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  background: #000 !important;
}

/* ── Mobile Rotate Prompt ────────────────────────────────── */

.mint-rotate-prompt {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 15, 25, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate-content {
  text-align: center;
  color: #e2e8f0;
}

.rotate-icon {
  font-size: 3rem;
  animation: rotatePhone 2s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes rotatePhone {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(90deg); }
  50% { transform: rotate(90deg); }
  75% { transform: rotate(0deg); }
}

.rotate-text {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.rotate-dismiss {
  background: none;
  border: 1px solid #334155;
  color: #64748b;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.rotate-dismiss:hover {
  color: #e2e8f0;
  border-color: #475569;
}

@media (max-width: 768px) {
  .mint-header { padding: 1rem 0 0.25rem; }
  .mint-title { font-size: 1.4rem; }
  .mint-subtitle { font-size: 0.8rem; }
  .mint-description { margin: 1rem auto; }
  .mint-description p { font-size: 0.8rem; }
  .hero-theme-container { min-height: 200px; }
  .card-grid { grid-template-columns: 1fr !important; }
}

.lounge-msg-body {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.4;
}
