@import url(https://fonts.bunny.net/css?family=ibm-plex-mono:400,600);

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

:root {
  --bg-base: #0a0b0e;
  --bg-surface: #111318;
  --bg-card: #161920;
  --bg-card-hover: #1c2028;
  --bg-input: #0e1015;
  --border: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(232, 54, 45, 0.15);
  --border-btn-secondary: rgba(255, 255, 255, 0.2);
  --text-primary: #e8eaf0;
  --text-secondary: #9aa0b0;
  --text-on-accent: #fff;
  --text-muted: #565b6b;
  --accent: #e8362d;
  --accent-soft: #d32f2f;
  --accent-dim: rgba(232, 54, 45, 0.08);
  --accent-glow: rgba(232, 54, 45, 0.035);
  --green: #68d391;
  --green-dim: rgba(104, 211, 145, 0.15);
  --orange: #f6ad55;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(232, 54, 45, 0.1);
  white-space: nowrap;
}
.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: 0 0 28px rgba(232, 54, 45, 0.15);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-btn-secondary);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}
.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.button-icon {
  width: 1em;
  height: 1em;
  transform: translateY(-0.06em);
}

/* Terminal Lines */
.terminal-line {
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: fadeLine 0.4s ease forwards;
}
.terminal-line.prompt { color: var(--green); }
.terminal-line.output { color: var(--text-secondary); }
.terminal-line.info   { color: var(--accent-soft); }
.terminal-line.warn   { color: var(--orange); }

@keyframes fadeLine {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Platform Icons */
.platform-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.platform-icon.tg {
  background: #0088cc;
  color: #fff;
}
.platform-icon.lark {
  background: #3370ff;
  color: #fff;
}
