* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.25), transparent 35%),
    linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.card, .app-card, .stat {
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
}

.form-card {
  width: 100%;
  max-width: 520px;
  padding: 34px;
}

.center {
  width: 100%;
  max-width: 480px;
  padding: 42px;
  text-align: center;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,.18);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

h1, h2, h3 {
  margin: 0 0 12px;
}

.muted {
  color: #94a3b8;
  margin-top: 0;
}

label {
  display: block;
  margin: 16px 0 6px;
  color: #cbd5e1;
  font-size: 14px;
}

input, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(2,6,23,.75);
  color: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  font-size: 15px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button, .logout {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
}

form button {
  width: 100%;
  margin-top: 20px;
}

.alert {
  background: rgba(239,68,68,.15);
  color: #fecaca;
  border: 1px solid rgba(239,68,68,.35);
  padding: 12px;
  border-radius: 14px;
  margin: 14px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #052e16;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 18px;
}

.dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat {
  padding: 20px;
}

.stat b {
  font-size: 32px;
  display: block;
}

.stat span {
  color: #94a3b8;
}

.app-card {
  padding: 22px;
  margin: 14px 0;
}

.app-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.experience {
  background: rgba(2,6,23,.45);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.flags span, .risk {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.risk.high, .flags span {
  background: rgba(245,158,11,.16);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,.35);
}

.risk.clean {
  background: rgba(34,197,94,.16);
  color: #86efac;
  border: 1px solid rgba(34,197,94,.35);
}

.actions {
  display: flex;
  gap: 10px;
}

.actions form {
  flex: 1;
}

.actions button {
  margin-top: 0;
}

.ok {
  background: #22c55e;
  color: #052e16;
}

.warn {
  background: #f59e0b;
  color: #451a03;
}

.danger {
  background: #ef4444;
}

.empty {
  color: #94a3b8;
}

@media (max-width: 800px) {
  .stats, .grid {
    grid-template-columns: 1fr;
  }

  .topbar, .app-head, .actions {
    flex-direction: column;
  }
}
.wide {
  max-width: 100%;
  margin-bottom: 28px;
}

code {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(2,6,23,.7);
  color: #93c5fd;
  word-break: break-all;
}

.actions input {
  margin: 0;
  height: 42px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.tab-btn {
  width: auto;
  margin: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .9);
  border: 1px solid rgba(255,255,255,.12);
  color: #94a3b8;
}

.tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border-color: transparent;
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}
