:root {
  --navy: #0B1C2D;
  --red: #C8102E;
  --navy-soft: #152a40;
  --muted: #64748b;
  --bg: #f1f5f9;
  --card: #ffffff;
  --ring: rgba(200, 16, 46, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

.fade-in { animation: fadeIn .35s ease both; }
.fade-up { animation: fadeUp .4s ease both; }
.stagger > * { animation: fadeUp .45s ease both; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); }
}

.bg-auth {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 16, 46, 0.25), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, 0.12), transparent 45%),
    linear-gradient(160deg, #07111c 0%, #0B1C2D 45%, #12253a 100%);
}

.card-glass {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,16,46,.3); }
.btn-primary:active { transform: none; }

.btn-navy {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn-navy:hover { opacity: .92; transform: translateY(-1px); }

.input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--ring);
}

.tab-btn {
  transition: all .2s ease;
}
.tab-btn.active {
  background: var(--navy) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(11,28,45,.2);
}

.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(15,23,42,.12);
}

.link-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(15,23,42,.15);
  border-color: #cbd5e1;
}

.icon-blob {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.modal-bg {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}

.progress-bar {
  height: 0.4rem;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  transition: width .4s ease;
}

.logo-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseSoft 2.5s infinite;
}

.setup-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.setup-step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.setup-step.on {
  background: var(--red);
}
.setup-step.done {
  background: #10b981;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.alert-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
