:root {
  --bg: #07080c;
  --bg-soft: #0f1117;
  --card: rgba(17, 24, 39, 0.78);
  --line: rgba(255,255,255,.08);
  --text: #f8fafc;
  --muted: #a1a1aa;
  --primary: #dc2626;
  --primary-2: #991b1b;
  --accent: #e5e7eb;
  --shadow: 0 20px 45px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(220,38,38,.16), transparent 20%),
    radial-gradient(circle at left, rgba(153,27,27,.18), transparent 18%),
    linear-gradient(180deg, #050507, #0b0b0f 40%, #07080c 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(3, 5, 9, .76); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand strong { display: block; font-size: 1.05rem; }
.brand span { color: var(--muted); font-size: .92rem; }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 14px; padding: 14px 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #7f1d1d); color: #fff; box-shadow: var(--shadow); }
.btn-secondary { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.hero { padding: 72px 0 40px; }
.hero-grid, .two-col { display: grid; grid-template-columns: 1.2fr .9fr; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; padding: 8px 12px; border-radius: 999px; background: rgba(220,38,38,.14); border: 1px solid rgba(220,38,38,.25); color: #fecaca; font-size: .85rem; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.04em; }
.hero h1 span { color: #fca5a5; }
.hero-copy { font-size: 1.05rem; color: #cbd5e1; max-width: 760px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.glass-card, .info-card, .metric-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.glass-card { padding: 24px; backdrop-filter: blur(18px); }
.hero-panel .panel-header, .card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.status-dot { color: #86efac; font-size: .92rem; }
.stats-grid, .metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stats-grid article, .metric-card { padding: 18px; background: rgba(255,255,255,.03); border-radius: 18px; border: 1px solid rgba(255,255,255,.06); }
.stats-grid strong, .metric-card strong { display: block; font-size: 1.55rem; margin-bottom: 8px; }
.stats-grid span, .metric-card span { color: var(--muted); }
.mini-bars { display: flex; align-items: end; gap: 10px; height: 170px; margin: 24px 0 16px; }
.mini-bars div { flex: 1; border-radius: 999px 999px 10px 10px; background: linear-gradient(180deg, #ef4444, #7f1d1d); }
.feature-pills, .tag-row, .socials { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-pills span, .tag-row span { padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .92rem; }
.demo-box { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.03); border: 1px solid var(--line); max-width: 760px; }
.demo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.demo-grid div, .demo-credentials { background: rgba(255,255,255,.03); padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.demo-grid span, .demo-grid small, .demo-credentials span, .demo-credentials p { display: block; color: #cbd5e1; margin-top: 6px; }
.section { padding: 52px 0; }
.section.alt { background: rgba(255,255,255,.02); }
.section-title { margin-bottom: 22px; }
.section-title h2 { font-size: clamp(1.8rem, 3vw, 3rem); margin: 0; }
.cards-grid { display: grid; gap: 18px; }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 22px; }
.info-card h3, .panel-preview h3 { margin-top: 0; }
.info-card p, .panel-preview ul, .checklist ul, .footer p, .dashboard-top p { color: #cbd5e1; }
.panel-preview ul, .checklist ul, .list-clean { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.checklist { padding: 26px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 46px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.footer-grid h4 { margin-top: 0; }
.footer-grid a { display: block; color: #d4d4d8; margin: 8px 0; }
.footer-brand img { width: 54px; height: 54px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 800; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: var(--shadow); font-weight: 900; z-index: 30; }
.login-body, .dashboard-body { min-height: 100vh; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.login-card { width: min(520px, 100%); }
.center-brand { justify-content: center; margin-bottom: 14px; }
.center-brand img { width: 76px; height: 76px; }
.form-grid { display: grid; gap: 14px; }
label span { display: block; margin-bottom: 8px; color: #d4d4d8; }
input { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; border-radius: 14px; padding: 14px 16px; }
.alert { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.3); color: #fecaca; }
.full { width: 100%; }
.dashboard-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { padding: 24px; border-right: 1px solid var(--line); background: rgba(2,6,12,.84); position: sticky; top: 0; height: 100vh; }
.sidebar-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.sidebar-brand img { width: 64px; height: 64px; object-fit: contain; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav a { padding: 12px 14px; border-radius: 14px; color: #e2e8f0; }
.sidebar-nav a.active, .sidebar-nav a:hover { background: rgba(220,38,38,.14); border: 1px solid rgba(220,38,38,.25); }
.dashboard-main { padding: 26px; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.user-photo { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.08); }
.metrics-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.metric-card { padding: 18px; }
.dashboard-panels { display: grid; gap: 18px; margin-bottom: 18px; }
.two-up { grid-template-columns: 1.3fr .9fr; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.dashboard-card { min-height: 100%; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); color: #e2e8f0; }
.data-table th { color: #94a3b8; font-weight: 600; }
.routine-box { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
@media (max-width: 980px) {
  .hero-grid, .two-col, .dashboard-layout, .cards-grid.three, .footer-grid, .metrics-grid, .three-up, .two-up, .demo-grid { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-links { display: none; }
  .dashboard-top { flex-direction: column; align-items: flex-start; }
}
