.grimbot-panel {
  max-width: 100%;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--grim-border, #2a2a2a);
  border-radius: 0.75rem;
  background: var(--grim-surface, #141414);
  color: var(--grim-text, #e8e8e8);
}

.grimbot-heading {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--grim-purple, #9d4edd);
}

.grimbot-lead {
  margin: 0 0 1rem;
  color: var(--grim-text-muted, #888);
}

.grimbot-muted {
  color: var(--grim-text-muted, #888);
  font-size: 0.95rem;
}

.grimbot-notice {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--grim-surface-alt, #1a1a1a);
  border: 1px solid var(--grim-border, #2a2a2a);
}

.grimbot-notice--error {
  border-color: #7f1d1d;
  color: #fca5a5;
}

.grimbot-success {
  color: var(--grim-green, #39ff14);
}

.grimbot-error {
  color: #fca5a5;
  margin-top: 1rem;
}

.grimbot-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--grim-purple, #9d4edd);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.grimbot-btn:hover {
  background: var(--grim-purple-muted, #6b2d9e);
}

.grimbot-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.grimbot-btn--secondary {
  background: #444;
}

.grimbot-btn--secondary:hover {
  background: #555;
}

.grimbot-steps {
  margin: 0 0 1rem 1.25rem;
  color: var(--grim-text, #e8e8e8);
}

.grimbot-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  background: var(--grim-bg, #000);
  border: 1px solid var(--grim-border, #2a2a2a);
  border-radius: 0.5rem;
  word-break: break-all;
  color: var(--grim-green, #39ff14);
}

.grimbot-code-label {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.grimbot-status {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--grim-text-muted, #888);
}

.grimbot-buds__name {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.grimbot-buds__balance {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.grimbot-buds__amount {
  font-weight: 700;
  color: var(--grim-green, #39ff14);
}

.grimbot-stats-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--grim-text-muted, #888);
}

.grimbot-stats-inline li + li {
  margin-top: 0.35rem;
}

.grimbot-market__list,
.grimbot-purchases__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.grimbot-market__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--grim-border, #2a2a2a);
}

.grimbot-market__item-name {
  display: block;
  font-weight: 600;
}

.grimbot-market__item-cost,
.grimbot-market__item-stock {
  display: block;
  font-size: 0.9rem;
  color: var(--grim-text-muted, #888);
}

.grimbot-purchases__list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--grim-border, #2a2a2a);
}

.grimbot-market__balance {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--grim-green-muted, #22c55e);
}

.grimbot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.grimbot-table th,
.grimbot-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--grim-border, #2a2a2a);
}

.grimbot-table th {
  color: var(--grim-purple, #9d4edd);
  font-weight: 700;
}

.grimbot-stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.grimbot-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--grim-text-muted, #888);
}

.grimbot-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grim-green, #39ff14);
}

.grimbot-nav-discord > a,
a.grimbot-nav-discord {
  color: #5865f2 !important;
  font-weight: 700;
}

.grimbot-nav-login > a,
a.grimbot-nav-login {
  font-weight: 700;
}

.grimbot-nav-register > a,
a.grimbot-nav-register {
  color: var(--grim-green, #39ff14) !important;
  font-weight: 700;
}

.grimbot-nav-my-stats > a,
a.grimbot-nav-my-stats {
  color: var(--grim-green, #39ff14) !important;
  font-weight: 700;
}

.grimbot-my-stats__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.grimbot-my-stats__identity {
  margin-bottom: 0;
}

.grimbot-period-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.grimbot-period-picker__link {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 0.4rem;
  border: 1px solid var(--grim-border, #2a2a2a);
  color: var(--grim-text-muted, #888);
  text-decoration: none;
  font-size: 0.85rem;
}

.grimbot-period-picker__link.is-active,
.grimbot-period-picker__link:hover {
  border-color: var(--grim-purple, #9d4edd);
  color: var(--grim-purple, #9d4edd);
}

.grimbot-emote-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.85rem;
}

.grimbot-emote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--grim-border, #2a2a2a);
  border-radius: 0.5rem;
  background: var(--grim-bg, #000);
  text-align: center;
}

.grimbot-emote-card__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.grimbot-emote-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.grimbot-emote-card__count {
  font-size: 0.8rem;
  color: var(--grim-text-muted, #888);
}

.grimbot-welcome__hero--success {
  border-color: var(--grim-green-muted, #22c55e);
}

.grimbot-welcome__steps {
  margin-top: 0.5rem;
}

.grimbot-welcome__quicklinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.grimbot-welcome__quicklinks .btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  background: var(--grim-purple, #9d4edd);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.grimbot-welcome__quicklinks .btn:hover {
  background: var(--grim-purple-muted, #6b2d9e);
  color: #fff;
}

.grimbot-welcome__quicklinks .btn--discord {
  background: #5865f2;
}

.grimbot-welcome__quicklinks .btn--discord:hover {
  background: #4752c4;
}

.grimbot-register-form__form {
  margin-top: 1rem;
}

.grimbot-form-field {
  margin: 0 0 1rem;
}

.grimbot-form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--grim-text, #e8e8e8);
}

.grimbot-input {
  width: 100%;
  max-width: 28rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--grim-border, #2a2a2a);
  border-radius: 0.5rem;
  background: var(--grim-bg, #000);
  color: var(--grim-text, #e8e8e8);
  font-size: 1rem;
}

.grimbot-input:focus {
  outline: 2px solid var(--grim-purple, #9d4edd);
  outline-offset: 1px;
}

.grimbot-register-form__note {
  margin: 0 0 1rem;
}

.grimbot-register-form__footer {
  margin: 1.25rem 0 0;
}
