/* Techno Matic Cloaker — Customer PWA extra styles (on top of /assets/app.css) */

/* impersonation banner */
.impersonate-banner {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.impersonate-banner a {
  color: #fff;
  text-decoration: underline;
  margin-left: 8px;
}

/* suspended banner */
.suspended-banner {
  background: #ef4444;
  color: #fff;
  padding: 12px 14px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

/* usage bars */
.usage-bar {
  height: 8px;
  background: var(--bg-2, #1a2347);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.usage-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary, #6366f1), var(--primary-2, #22d3ee));
  transition: width .3s ease;
}
.usage-bar.warn > span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.usage-bar.danger > span { background: linear-gradient(90deg, #ef4444, #f87171); }

/* must-change-password modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-card {
  background: var(--bg-1, #11163a); border: 1px solid var(--border, #232c54);
  border-radius: 12px; padding: 24px; max-width: 460px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.modal-card h3 { margin-top: 0; }

/* tokens table */
.token-row {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border, #232c54);
}
.token-row:last-child { border-bottom: 0; }
.token-row .tk-name { flex: 1; font-weight: 500; }
.token-row .tk-meta { font-size: 11px; color: var(--text-dim, #9aa3c7); }
.token-row .tk-secret {
  font-family: ui-monospace, Menlo, monospace;
  background: var(--bg-2, #0e1330);
  padding: 4px 8px; border-radius: 4px; font-size: 11px;
  user-select: all;
}

/* billing row */
.billing-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border, #232c54);
  font-size: 13px; align-items: center;
}
.billing-row:last-child { border-bottom: 0; }
.billing-row .bl-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.billing-row .bl-status.paid { background: #10b98133; color: #34d399; }
.billing-row .bl-status.pending { background: #f59e0b33; color: #fbbf24; }
.billing-row .bl-status.submitted { background: #3b82f633; color: #60a5fa; }
.billing-row .bl-status.failed,
.billing-row .bl-status.cancelled { background: #ef444433; color: #f87171; }

/* referral box */
.ref-box {
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(34,211,238,.15));
  border: 1px solid var(--primary, #6366f1);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}
.ref-code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-2, #22d3ee);
}

/* plan upgrade cards */
.plan-card {
  background: var(--bg-1, #11163a);
  border: 2px solid var(--border, #232c54);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.plan-card.current { border-color: var(--primary, #6366f1); }
.plan-card:hover { transform: translateY(-2px); border-color: var(--primary-2, #22d3ee); }
.plan-card h3 { margin: 0 0 4px 0; }
.plan-card .price { font-size: 28px; font-weight: 800; color: var(--primary-2, #22d3ee); }
.plan-card .price small { font-size: 12px; color: var(--text-dim, #9aa3c7); font-weight: 400; }
.plan-card ul { padding-left: 18px; margin: 12px 0; font-size: 13px; }
.plan-card ul li { margin: 4px 0; }

/* TOTP card */
.totp-qr {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bg-2, #0e1330); padding: 16px; border-radius: 8px;
}
.totp-qr img { width: 160px; height: 160px; background: #fff; padding: 4px; border-radius: 6px; }
.totp-secret {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px; letter-spacing: 1px; user-select: all;
}

@media (max-width: 600px) {
  .billing-row { grid-template-columns: 1fr; gap: 4px; }
  .billing-row .bl-status { justify-self: start; }
}
