/* ══════════════════════════════════════════════════════
   AuthShield AI — Premium Dark Theme v2
   ══════════════════════════════════════════════════════ */

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

:root {
  --bg: #080d19;
  --bg2: #0d1526;
  --sidebar: #0a1020;
  --card: #101827;
  --card2: #182035;
  --border: #1c2d4a;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --orange: #f97316;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #3d5068;
  --radius: 10px;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

html,
body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Auth Page ────────────────────────────────────────── */
.auth-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--bg);
}

.auth-page.hidden {
  display: none;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  animation: float 10s ease-in-out infinite;
}

.orb1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -120px;
  left: -80px;
  animation-delay: 0s;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  bottom: -60px;
  right: 300px;
  animation-delay: 4s;
}

.orb3 {
  width: 280px;
  height: 280px;
  background: var(--cyan);
  top: 40%;
  left: 35%;
  animation-delay: 7s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

/* Brand column */
.auth-brand {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
  border-right: 1px solid var(--border);
}

.brand-logo {
  font-size: 60px;
  margin-bottom: 20px;
}

.brand-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.brand-tagline {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 32px;
}

.brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-features li {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.brand-note {
  font-size: 11px;
  color: var(--text3);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.05);
}

/* Form column */
.auth-card {
  position: relative;
  z-index: 1;
  width: 460px;
  min-width: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  overflow-y: auto;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text2);
  padding: 9px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--accent);
  color: white;
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.input-wrap input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px 11px 38px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Remember me */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.checkbox-label input:checked+.checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked+.checkmark::after {
  content: '✓';
  color: white;
  font-size: 10px;
  font-weight: 700;
}

/* Errors / success */
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fca5a5;
  font-size: 13px;
}

.auth-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #6ee7b7;
  font-size: 13px;
}

/* Buttons */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-auth:hover {
  background: var(--accent2);
}

.btn-auth:active {
  transform: scale(0.98);
}

.btn-auth:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-signup {
  background: linear-gradient(135deg, var(--purple), var(--accent));
}

.btn-signup:hover {
  opacity: 0.9;
}

.auth-switch-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text3);
}

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--card2);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px 6px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
  color: var(--text2);
}

.role-btn:hover {
  border-color: var(--text3);
}

.role-btn.active {
  border-color: var(--accent);
  color: var(--text);
}

.role-btn span {
  font-size: 22px;
}

.role-btn strong {
  font-size: 12px;
  font-weight: 700;
}

.role-btn small {
  font-size: 10px;
  color: var(--text3);
}

/* Password strength */
.strength-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s, background 0.3s;
}

.strength-label {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Dashboard Layout ─────────────────────────────────── */
.dashboard {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 16px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

/* Sidebar user card */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 8px 8px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
}

.sidebar-user-role {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.menu-item:hover {
  background: var(--card);
  color: var(--text);
}

.menu-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent2);
}

.menu-icon {
  font-size: 16px;
}

.menu-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.menu-badge.new {
  background: var(--accent);
  color: white;
}

.menu-badge.frozen-badge {
  background: rgba(6, 182, 212, 0.2);
  color: var(--cyan);
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.connected {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

#server-status-text {
  font-size: 12px;
  color: var(--text2);
  flex: 1;
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── Main Content ─────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  gap: 16px;
}

.topbar-left h2 {
  font-size: 18px;
  font-weight: 700;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text2);
  display: block;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.threshold-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
}

.threshold-bar label {
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
}

.threshold-bar input {
  width: 56px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 6px;
  color: var(--text);
  font-size: 12px;
  text-align: center;
  outline: none;
}

.btn-save {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Topbar user */
.topbar-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px 6px 8px;
}

.topbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
}

.topbar-user-info span:first-child {
  font-size: 13px;
  font-weight: 600;
}

.topbar-role {
  font-size: 10px;
  color: var(--accent2);
  font-weight: 600;
  text-transform: uppercase;
}

/* ── Tabs ─────────────────────────────────────────────── */
.tab-content {
  display: none;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 24px;
}

.tab-content.active {
  display: flex;
}

/* ── Stat cards ───────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.stat-value.green {
  color: var(--green);
}

.stat-value.red {
  color: var(--red);
}

.stat-value.blue {
  color: var(--accent2);
}

.stat-label {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

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

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.btn-sm {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-sm:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ── Tables ───────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

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

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 45, 74, 0.5);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

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

.data-table .empty {
  text-align: center;
  color: var(--text2);
  padding: 32px;
  font-family: 'Inter', sans-serif;
}

/* Role badges */
.role-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

.role-admin {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.role-analyst {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent2);
}

.role-viewer {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}

.badge-ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.badge-frozen {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
}

.badge-auth0 {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent2);
}

.badge-chain {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

.badge-sus {
  background: rgba(245, 158, 11, 0.15);
  color: var(--yellow);
}

/* ── Demo Tab ─────────────────────────────────────────── */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.demo-control h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.demo-desc {
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.demo-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.3s, background 0.3s;
}

.demo-step.active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
}

.demo-step.done {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.05);
}

.demo-step.error {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.05);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-step.done .step-num {
  background: var(--green);
  color: white;
}

.demo-step.active .step-num {
  background: var(--accent);
  color: white;
}

.demo-step strong {
  font-size: 13px;
}

.demo-step p {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

.step-status {
  margin-left: auto;
  font-size: 18px;
}

.demo-actions {
  display: flex;
  gap: 12px;
}

.btn-attack {
  flex: 1;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-attack:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-attack:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-freeze-all {
  flex: 1;
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-freeze-all:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-freeze-all:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-feed-card {
  display: flex;
  flex-direction: column;
}

.attack-feed {
  flex: 1;
  min-height: 300px;
  max-height: 480px;
  overflow-y: auto;
  background: #06080f;
  border-radius: 8px;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
}

.feed-line {
  color: var(--text2);
}

.feed-line.legit {
  color: var(--green);
}

.feed-line.bot {
  color: var(--red);
}

.feed-line.info {
  color: var(--accent2);
}

.feed-line.warn {
  color: var(--yellow);
}

.feed-line.head {
  color: var(--cyan);
  font-weight: 700;
}

.feed-line.frozen-confirm {
  color: var(--cyan);
}

.freeze-result {
  border: 1px solid var(--cyan) !important;
  background: rgba(6, 182, 212, 0.05) !important;
}

.freeze-result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.freeze-result-icon {
  font-size: 40px;
}

.freeze-result-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan);
}

.freeze-result-header p {
  font-size: 13px;
  color: var(--text2);
}

.freeze-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frozen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* ── Clusters ─────────────────────────────────────────── */
.cluster-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.cluster-card h4 {
  color: var(--red);
  font-size: 14px;
  margin-bottom: 6px;
}

.cluster-meta {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 8px;
}

.cluster-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cluster-member {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Blockchain ───────────────────────────────────────── */
.bchain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.bchain-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 2.2;
  margin-bottom: 12px;
}

.bchain-info span.val {
  color: var(--accent2);
}

.bchain-info span.green {
  color: var(--green);
}

.bchain-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.bchain-action-card {
  background: var(--card2);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bchain-action-card h4 {
  font-size: 12px;
  font-weight: 600;
}

.bchain-action-card.red {
  border-top: 2px solid var(--red);
}

.bchain-action-card.green {
  border-top: 2px solid var(--green);
}

.bchain-action-card.blue {
  border-top: 2px solid var(--accent);
}

.bchain-action-card.purple {
  border-top: 2px solid var(--purple);
}

.bchain-action-card input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  width: 100%;
}

.bchain-result {
  margin-top: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text2);
  max-height: 200px;
  overflow-y: auto;
}

.wallet-result {
  margin-top: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text2);
  word-break: break-all;
  line-height: 1.8;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}

.btn-danger {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}

.btn-success {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}

.btn-freeze {
  background: var(--cyan);
  color: #080d19;
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}

.btn-unfreeze {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
}

.btn-unfreeze:hover {
  border-color: var(--green);
  color: var(--green);
}

.text-dim {
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* bchain-actions-card spacing */
.bchain-actions-card h3 {
  margin-bottom: 16px;
}