/* ═══════════════════════════════════════════════
   CR PesaPro Keygen — Custom Styles
   Bootstrap 5 dark-mode augmentation only.
   No !important overrides.
   ═══════════════════════════════════════════════ */

/* ── FONTS ── */
body { font-family: 'Inter', sans-serif; font-size: .9rem; }

/* ── CUSTOM TOKENS ── */
:root {
  --cr-accent:     #3b82f6;
  --cr-accent-d:   #2563eb;
  --cr-accent-g:   rgba(59,130,246,.20);
  --cr-success:    #22c55e;
  --cr-danger:     #ef4444;
  --cr-warning:    #f59e0b;
  --cr-radius:     14px;
  --cr-radius-sm:  8px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar               { width: 5px; height: 5px; }
::-webkit-scrollbar-track         { background: transparent; }
::-webkit-scrollbar-thumb         { background: var(--bs-border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover   { background: var(--bs-secondary-color); }

/* ── NAVBAR BRAND LOGO ── */
.cr-brand-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cr-accent), #6366f1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem;
  box-shadow: 0 2px 12px var(--cr-accent-g);
  flex-shrink: 0;
}

/* ── LOGIN ICON ── */
.cr-login-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--cr-accent), #6366f1);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; margin: 0 auto 1.25rem;
  box-shadow: 0 0 32px var(--cr-accent-g);
}

/* ── ACCENT BUTTON ── */
.btn-accent {
  background: linear-gradient(135deg, var(--cr-accent), var(--cr-accent-d));
  border: none; color: #fff;
  box-shadow: 0 4px 20px var(--cr-accent-g);
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-accent:hover:not(:disabled) {
  color: #fff; opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--cr-accent-g);
}
.btn-accent:active  { transform: none; }
.btn-accent:disabled { opacity: .45; cursor: not-allowed; }

/* ── STAT CARDS ── */
.cr-stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.cr-si-blue   { background: rgba(59,130,246,.15); color: var(--cr-accent); }
.cr-si-green  { background: rgba(34,197,94,.15);  color: var(--cr-success); }
.cr-si-amber  { background: rgba(245,158,11,.15); color: var(--cr-warning); }
.cr-stat-val  { font-size: 1.65rem; font-weight: 800; line-height: 1; }
.cr-stat-lbl  { font-size: .72rem; color: var(--bs-secondary-color); margin-top: .15rem; }

/* ── TOKEN RESULT BOX ── */
.token-result {
  background: #0d1b2e;
  border: 1px solid rgba(59,130,246,.35);
  border-radius: var(--cr-radius-sm);
  padding: 1rem 1.1rem;
  font-family: 'Courier New', monospace;
  font-size: .72rem;
  word-break: break-all;
  color: #60a5fa;
  line-height: 1.7;
  box-shadow: inset 0 0 20px rgba(59,130,246,.06);
  min-height: 60px;
}

/* ── RESULT SECTION TOGGLE ── */
.result-section        { display: none; }
.result-section.visible{ display: block; }

/* ── TOKEN META ── */
.token-meta { font-size: .72rem; color: var(--bs-secondary-color); margin-top: .5rem; }

/* ── SECTION LABEL ── */
.label-xs {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--bs-secondary-color);
  margin-bottom: .4rem; display: block;
}

/* ── CARD HEADER CUSTOM ── */
.cr-card-header {
  padding: 1.1rem 1.25rem .85rem;
  border-bottom: 1px solid var(--bs-border-color);
  display: flex; align-items: center; gap: .65rem;
}
.cr-card-header .ch-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--cr-accent-g);
  display: flex; align-items: center; justify-content: center;
  color: var(--cr-accent); font-size: .95rem; flex-shrink: 0;
}
.cr-card-header h2 {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--bs-secondary-color); margin: 0;
}

/* ── HISTORY TABLE ── */
.cr-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.cr-table thead th {
  padding: .55rem .85rem;
  font-size: .67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--bs-secondary-color);
  border-bottom: 1px solid var(--bs-border-color);
  white-space: nowrap;
}
.cr-table tbody tr {
  border-bottom: 1px solid var(--bs-border-color);
  transition: background .15s;
}
.cr-table tbody tr:hover { background: var(--bs-tertiary-bg); }
.cr-table tbody td { padding: .6rem .85rem; vertical-align: middle; }
.cr-table td.dim  { color: var(--bs-secondary-color); font-size: .75rem; }
.cr-table td.mono { font-family: monospace; font-size: .7rem; color: var(--bs-secondary-color); }

/* ── TYPE BADGES ── */
.btype { border-radius: 6px; padding: .18rem .55rem; font-size: .67rem; font-weight: 700; }
.bt-15 { background: rgba(245,158,11,.12); color: var(--cr-warning); }
.bt-1m { background: rgba(59,130,246,.12); color: var(--cr-accent); }
.bt-1y { background: rgba(34,197,94,.12);  color: var(--cr-success); }
.bt-lt { background: rgba(139,92,246,.12); color: #a78bfa; }

/* ── INLINE ALERTS ── */
.ac-danger {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  border-radius: var(--cr-radius-sm);
  padding: .7rem 1rem; font-size: .83rem;
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
}
.ac-success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #86efac;
  border-radius: var(--cr-radius-sm);
  padding: .7rem 1rem; font-size: .83rem;
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
}

/* ── SPINNER ── */
.spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cr-rot .65s linear infinite;
  display: inline-block; vertical-align: middle;
}
@keyframes cr-rot { to { transform: rotate(360deg); } }

/* ── TOASTS ── */
#toasts {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999; display: flex; flex-direction: column; gap: .5rem;
}
.toast-msg {
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--cr-radius-sm);
  padding: .65rem 1rem;
  display: flex; align-items: center; gap: .55rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  font-size: .82rem; min-width: 210px;
  animation: cr-slideup .22s ease;
}
@keyframes cr-slideup { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
.toast-msg.s { border-color: rgba(34,197,94,.4);  color: var(--cr-success); }
.toast-msg.e { border-color: rgba(239,68,68,.4);  color: var(--cr-danger);  }

/* ── ADMIN BADGE ── */
.badge-admin {
  background: rgba(59,130,246,.15);
  color: var(--cr-accent);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 20px;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .65rem;
}

/* ── LOGO IMAGE (login screen) ── */
.logo-img { max-height: 60px; }

/* ── TABLE SCROLL CONTAINER ── */
.table-scroll-wrap { overflow: auto; max-height: 560px; }

/* ── MAIN CONTAINER ── */
.container-main { max-width: 1280px; margin: 0 auto; }

/* ── SUCCESS LABEL COLOR ── */
.label-success { color: var(--cr-success); }

/* ── LOGIN CARD WIDTH ── */
.login-card-width { width: 100%; max-width: 420px; }
