
.puter-key-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.puter-key-status {
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.puter-key-status.ok   { color: var(--success); }
.puter-key-status.warn { color: #ffaa44; }
.puter-key-status.empty { color: var(--text-dim); }

.puter-key-link {
  font-size: 12px;
  color: var(--text-link);
  text-decoration: none;
}

.puter-key-link:hover {
  text-decoration: underline;
}


/* Puter Account */
.puter-resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 10px 0 6px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.puter-resource-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.puter-resource-row span:last-child {
  font-size: 15px;
  color: var(--text-link);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

#proBalanceData .puter-resource-row span:last-child {
  color: #ffffff;
}

.puter-resources > div:not(.puter-resource-row) {
  grid-column: 1 / -1;
}

.stats-panel .puter-resources {
  grid-template-columns: 1fr;
  gap: 8px;
}

.stats-panel .puter-resource-row {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.stats-panel .puter-resource-row span:first-child {
  flex-shrink: 0;
}

.stats-panel .puter-resource-row span:last-child {
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.history-static-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 2px 0 4px;
}

.history-static-pair {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.history-static-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 11.5px;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
}
.history-static-link:hover {
  color: var(--neon-cyan);
}

.history-static-link-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-notif-badge {
  position: absolute;
  top: -9px;
  right: -20px;
  background: var(--neon-red);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(12, 18, 32, 0.95);
}

.stats-panel #puterStatus {
  display: none;
}

.puter-privacy-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  padding-left: 2px;
}

.puter-credits-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.puter-credits-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.credits-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.credits-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.credits-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.credits-bar-row .credits-bar,
.credits-bar-row .puter-credits-bar { margin-top: 0; }
.credits-bar-pct {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tx-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tx-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tx-type {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.tx-type--purchase, .tx-amount--purchase,
.tx-type--topup,    .tx-amount--topup      { color: #39ff14; }
.tx-type--bonus,    .tx-amount--bonus      { color: #ffd700; }
.tx-type--adjustment, .tx-amount--adjustment { color: #9aa4b8; }
.tx-type--refund,   .tx-amount--refund     { color: #ff1744; }
.tx-type--merge,    .tx-amount--merge      { color: #00e5ff; }
.tx-date {
  font-size: 12px;
  color: var(--text-dim);
}
.tx-amount {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tx-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.tx-note--under-amount { text-align: right; }
.tx-section-title {
  margin: 16px 0 2px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

#statsStrip .stats-strip-btn.has-news {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.6);
  animation: user-panel-news-glow 1.6s ease-in-out infinite;
}
.bonus-news {
  text-align: center;
  padding: 28px 24px 22px;
}
.bonus-news-icon svg {
  width: 44px;
  height: 44px;
  color: #ffd700;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.55));
}
.bonus-news-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
}
.bonus-news-sub {
  margin-top: 2px;
  color: var(--text-muted);
}
.bonus-news-amount {
  margin: 14px 0 6px;
  font-size: 30px;
  font-weight: 800;
  color: #ffd700;
  font-variant-numeric: tabular-nums;
}
.bonus-news-sub { margin-bottom: 14px; }
.bonus-news-item {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bonus-news-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bonus-news-date {
  font-size: 12px;
  color: var(--text-dim);
}
.bonus-news-note {
  margin: 8px auto 0;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  background: rgba(255, 215, 0, 0.07);
  color: #ffe680;
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}
.bonus-news-ok {
  margin-top: 16px;
  min-width: 120px;
  justify-content: center;
}

@keyframes user-panel-news-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 0, 0); }
  50%      { box-shadow: 0 0 16px rgba(255, 215, 0, 0.55); }
}

.is-hidden {
  display: none !important;
}

.btn-locked {
  opacity: 0.45;
  filter: grayscale(0.3);
  pointer-events: none;
  cursor: not-allowed;
}

