:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --border: #2a2e3b;
  --text: #e6e8ec;
  --muted: #9aa0ad;
  --accent: #4f7cff;
  --accent-hover: #3d68e8;
  --urgent: #ff5c5c;
  --important: #ffb84f;
  --ignorable: #6b7280;
  --ok: #3ecf8e;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1040px; margin: 0 auto; padding: 24px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.logo { font-weight: 700; font-size: 1.25rem; }
.logo span { color: var(--accent); }
.btn {
  background: var(--accent); color: #fff; border: none;
  padding: 11px 20px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { background: var(--card); }
.btn.sm { padding: 7px 13px; font-size: 0.85rem; }
.btn.danger { background: var(--urgent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Landing */
.hero { text-align: center; padding: 80px 24px 60px; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg,#4f7cff,#8f5cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.features { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; margin: 50px 0; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; margin: 40px 0; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.plan.featured { border-color: var(--accent); position: relative; }
.plan.featured::before { content: "RECOMENDADO"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.plan h3 { font-size: 1.2rem; }
.plan .price { font-size: 2.2rem; font-weight: 700; margin: 12px 0; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; text-align: left; margin: 18px 0; }
.plan li { padding: 6px 0; color: var(--muted); }
.plan li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Auth & cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-wrap h2 { margin-bottom: 6px; }
.auth-wrap .sub { color: var(--muted); margin-bottom: 22px; }
label { display: block; font-size: .85rem; color: var(--muted); margin: 14px 0 6px; }
input, select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 11px 13px; border-radius: 8px; font-size: .95rem;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
.full-btn { width: 100%; margin-top: 22px; }
.switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.error { color: var(--urgent); font-size: .85rem; margin-top: 10px; }
.success { color: var(--ok); font-size: .85rem; margin-top: 10px; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }
.section-title { font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.status-pill { font-size: .75rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.status-pill.on { background: rgba(62,207,142,.15); color: var(--ok); }
.status-pill.off { background: rgba(255,92,92,.15); color: var(--urgent); }
.metric-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.metric-row:last-child { border: none; }
.sender-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-align: center; }
.stat .n { font-size: 1.6rem; font-weight: 700; }
.stat .l { font-size: .75rem; color: var(--muted); }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.muted { color: var(--muted); font-size: .9rem; }
