:root {
  --bg: #fff8fd;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-light: rgba(255,255,255,0.86);
  --text: #402d57;
  --muted: #7b6a92;
  --primary: #ff7fc6;
  --secondary: #7dd9ff;
  --accent: #ffd86f;
  --danger: #ff7aa8;
  --success: #53c89d;
  --border: rgba(151, 111, 194, 0.18);
  --shadow: 0 20px 60px rgba(186, 126, 195, .16);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 194, 231, 0.95) 0%, rgba(255, 248, 253, 0.95) 34%, rgba(240, 251, 255, 0.96) 70%, rgba(255, 250, 239, 0.96) 100%);
  color: var(--text);
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
body { position: relative; overflow-x: hidden; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.page-space { padding: 30px 0 60px; }
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
}
.glass-light {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.72));
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
}
.site-header { position: sticky; top: 12px; z-index: 10; margin: 12px auto 0; width: min(1180px, calc(100% - 32px)); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white;
  box-shadow: 0 10px 30px rgba(255,127,198,.22);
}
.brand small { display: block; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 14px;
  font-weight: 700; border: 1px solid transparent; transition: .25s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 10px 14px; font-size: .95rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white;
  box-shadow: 0 12px 28px rgba(255,127,198,.22);
}
.btn-outline { background: rgba(255,255,255,.52); border-color: rgba(151,111,194,.20); color: var(--text); }
.hero { display: grid; grid-template-columns: 1.4fr .95fr; gap: 24px; padding: 32px; min-height: 420px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.04; margin: 12px 0 14px; }
.hero p, .muted, .card p { color: var(--muted); line-height: 1.7; }
.badge {
  display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: .82rem; letter-spacing: .03em;
  text-transform: uppercase; font-weight: 700; background: rgba(255,127,198,.13);
  border: 1px solid rgba(255,127,198,.24); color: #b84f8e;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-panel { padding: 24px; position: relative; overflow: hidden; }
.identity-ring {
  width: 170px; height: 170px; border-radius: 999px; margin-bottom: 20px;
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  filter: blur(.2px); position: relative;
}
.identity-ring::after { content: ''; position: absolute; inset: 18px; background: rgba(255,255,255,.88); border-radius: inherit; }
.section-gap { margin-top: 26px; }
.grid-3, .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card, .stat-card { padding: 24px; }
.card h2, .card h3, .stat-card strong { margin-top: 0; }
.feature-list { margin: 0; padding-left: 18px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-balanced { align-items: stretch; }
.auth-wrap { display: flex; justify-content: center; padding-top: 32px; }
.auth-card { width: min(680px, 100%); padding: 28px; }
.form-grid { display: grid; gap: 18px; margin-top: 18px; }
.form-grid label { display: grid; gap: 8px; }
.form-grid .full-row { grid-column: 1 / -1; }
input, textarea {
  width: 100%; border-radius: 14px; padding: 14px 15px; color: var(--text);
  background: rgba(255,255,255,.75); border: 1px solid rgba(151,111,194,.16); outline: none;
}
input:focus, textarea:focus { border-color: rgba(125,217,255,.75); box-shadow: 0 0 0 4px rgba(125,217,255,.18); }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; border: 1px solid; }
.alert-success { background: rgba(87,211,155,.10); border-color: rgba(87,211,155,.25); }
.alert-error { background: rgba(255,122,168,.10); border-color: rgba(255,122,168,.25); }
.dashboard-top { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.status-chip { padding: 12px 14px; border-radius: 999px; background: rgba(87,211,155,.14); border: 1px solid rgba(87,211,155,.25); font-weight: 700; }
.stat-card span { display: block; color: var(--muted); margin-bottom: 10px; }
.stat-card strong { display: block; font-size: 1.25rem; }
.profile-mini { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.avatar-fallback {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.35rem;
  font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid rgba(151,111,194,.12); }
th { color: #6d5689; }
.pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.pill-success, .pill-register { background: rgba(87,211,155,.14); }
.pill-failed { background: rgba(255,122,168,.14); }
.pill-logout { background: rgba(255,255,255,.6); }
.site-footer { padding-bottom: 28px; }
.footer-card { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-card p { color: var(--muted); margin-bottom: 0; }
.footer-mini { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.bg-orb { position: fixed; width: 360px; height: 360px; border-radius: 999px; filter: blur(100px); opacity: .3; pointer-events: none; }
.orb-a { background: #ff9fd6; top: -80px; left: -120px; }
.orb-b { background: #8edfff; bottom: -100px; right: -100px; }
.fade-soft { opacity: .5; transition: opacity .6s ease; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.section-head h2 { margin: 10px 0 0; }
.info-stack { display: flex; flex-direction: column; justify-content: center; }
.mini-kpis { display: grid; gap: 14px; }
.mini-kpis > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(151,111,194,.12);
}
.mini-kpis strong { display: block; margin-bottom: 4px; }
.mini-kpis span { color: var(--muted); font-size: .95rem; }
.feature-strong {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.66));
}
.soft-highlight {
  background:
    radial-gradient(circle at top right, rgba(255, 216, 111, .28), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.68));
}
.quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.quick-link {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(151,111,194,.14);
  transition: .2s ease;
}
.quick-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(186,126,195,.12); }
.quick-link strong { display: block; margin-bottom: 6px; }
.quick-link span { color: var(--muted); font-size: .95rem; }
.quick-link-static { cursor: default; }
.quick-link-static:hover { transform: none; box-shadow: none; }
.pastel-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.66));
}
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at top left, rgba(255,127,198,.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(125,217,255,.16), transparent 30%),
    rgba(255,255,255,.72);
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-head, .cta-banner { grid-template-columns: 1fr; display: grid; }
  .quick-links-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero, .grid-3, .split, .stats-grid, .footer-card, .dashboard-top { grid-template-columns: 1fr; display: grid; }
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  .site-header { position: static; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 22px; }
  .card, .stat-card, .footer-card, .dashboard-top { padding: 20px; }
}
