/* BulkEmail portal — visual clone of marketing mockups */
:root {
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --navy: #0b1f4a;
  --navy-deep: #071633;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 60px rgba(37, 99, 235, 0.15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
img { max-width: 100%; height: auto; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.container-wide { width: min(1200px, 94%); margin: 0 auto; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--slate-900); font-weight: 700; font-size: 1.2rem;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.brand small {
  display: block; font-weight: 500; font-size: 0.68rem;
  color: var(--slate-500); letter-spacing: 0.01em;
}
.nav-links {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav-links a {
  color: var(--slate-700); font-weight: 500; font-size: 0.95rem;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-links a.active, .nav-links a:hover {
  color: var(--blue); border-bottom-color: var(--blue);
}
.nav-actions { display: flex; gap: 0.6rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 10px; padding: 0.7rem 1.25rem; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff !important; border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-primary:hover { background: var(--blue-600); color: #fff !important; }
.btn-outline {
  background: #fff; border-color: #bfdbfe; color: var(--blue) !important;
}
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--slate-700) !important; border-color: transparent; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 40%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 50%; height: 80%; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem;
  font-weight: 700; color: var(--blue); margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1.12;
  margin: 0 0 1rem; font-weight: 800; letter-spacing: -0.02em;
}
.hero h1 .hl { color: var(--blue); }
.hero-lead {
  color: var(--slate-600); font-size: 1.1rem; max-width: 34rem; margin: 0 0 1.5rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.checks {
  display: flex; flex-wrap: wrap; gap: 1rem 1.4rem;
  color: var(--slate-600); font-size: 0.9rem; font-weight: 500;
}
.checks span::before { content: "✓ "; color: #16a34a; font-weight: 700; }

.hero-card {
  background: #fff; border-radius: 20px; padding: 0;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(226,232,240,0.9);
  overflow: hidden;
}
.hero-card-top {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff; padding: 1rem 1.15rem; display: flex; gap: 0.5rem; align-items: center;
}
.hero-card-body { padding: 1.25rem; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat {
  background: var(--slate-100); border-radius: 12px; padding: 0.85rem;
}
.stat strong { display: block; font-size: 1.25rem; color: var(--slate-900); }
.stat span { font-size: 0.78rem; color: var(--slate-500); }

/* ========== Sections ========== */
.section { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, #f8fbff, #fff); }
.section-dark {
  background: linear-gradient(180deg, #0b1f4a, #0f2a5c);
  color: #e2e8f0; padding: 3.5rem 0;
}
.section-title {
  text-align: center; font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800; margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.section-sub {
  text-align: center; color: var(--slate-500); max-width: 36rem;
  margin: 0 auto 2.5rem; font-size: 1.05rem;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: #94a3b8; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }

.icon-tile {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center; box-shadow: 0 8px 24px rgba(15,23,42,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.icon-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-tile .ico {
  width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 0.85rem;
  display: grid; place-items: center; font-size: 1.35rem;
}
.icon-tile h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.icon-tile p { margin: 0; color: var(--slate-500); font-size: 0.88rem; }
.ico-blue { background: #dbeafe; }
.ico-green { background: #dcfce7; }
.ico-orange { background: #ffedd5; }
.ico-purple { background: #ede9fe; }
.ico-pink { background: #fce7f3; }
.ico-cyan { background: #cffafe; }

/* ========== Pricing cards ========== */
.price-card {
  background: #fff; border: 1.5px solid var(--slate-200); border-radius: 20px;
  padding: 1.75rem 1.5rem; position: relative; box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--blue); box-shadow: 0 16px 40px rgba(37,99,235,0.18);
  transform: scale(1.02);
}
.price-card .badge-top {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.3rem 0.85rem; border-radius: 999px; white-space: nowrap;
}
.plan-ico {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.25rem; margin-bottom: 0.75rem;
}
.price-card h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.price-card .plan-desc { color: var(--slate-500); font-size: 0.9rem; margin: 0 0 1rem; }
.price-amount {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 0.15rem;
}
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--slate-500); }
.price-note { font-size: 0.8rem; color: var(--slate-400); margin-bottom: 1.25rem; }
.feat-list { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.feat-list li {
  padding: 0.4rem 0; color: var(--slate-700); font-size: 0.92rem;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.feat-list li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ========== Contact ========== */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: start;
}
.contact-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 20px;
  padding: 1.75rem; box-shadow: var(--shadow);
}
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem;
}
.contact-info-item .ci {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--slate-700);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-control {
  width: 100%; padding: 0.75rem 0.95rem; border: 1.5px solid var(--slate-200);
  border-radius: 10px; font-size: 0.95rem; font-family: inherit; background: #fff;
  transition: border-color 0.15s;
}
.form-control:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.alert { padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.92rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ========== Auth (Login / Register) ========== */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(155deg, #0a1628 0%, #0b2a6e 45%, #1d4ed8 100%);
  color: #fff; padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-left::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 60%, rgba(96,165,250,0.25), transparent 55%);
  pointer-events: none;
}
.auth-left > * { position: relative; z-index: 1; }
.auth-left h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.2; font-weight: 800; margin: 0 0 1rem;
}
.auth-left h1 .hl { color: #60a5fa; }
.auth-left .lead { color: #cbd5e1; font-size: 1.05rem; max-width: 26rem; margin-bottom: 2rem; }
.auth-feature {
  display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1.1rem;
}
.auth-feature .af {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.12);
  display: grid; place-items: center; flex-shrink: 0;
}
.auth-feature strong { display: block; font-size: 0.95rem; }
.auth-feature span { font-size: 0.85rem; color: #94a3b8; }
.auth-right {
  padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
  max-width: 440px; margin: 0 auto; width: 100%;
}
.auth-right h2 { margin: 0 0 0.35rem; font-size: 1.75rem; font-weight: 800; }
.auth-right .muted { color: var(--slate-500); margin: 0 0 1.5rem; }

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(180deg, #0b1f4a, #071633);
  color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: 0;
}
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 1.75rem;
}
.footer-grid strong { color: #fff; display: block; margin-bottom: 0.75rem; font-size: 0.95rem; }
.footer-grid a { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: #94a3b8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2rem; padding-top: 1.15rem;
  font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ========== Portal shell ========== */
.portal-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.portal-side {
  background: var(--slate-900); color: #e2e8f0; padding: 1.35rem 1rem;
}
.portal-side .logo { font-weight: 700; margin-bottom: 1.25rem; padding: 0 0.5rem; }
.portal-side a {
  display: block; color: #cbd5e1; padding: 0.6rem 0.75rem; border-radius: 8px;
  margin-bottom: 0.2rem; font-size: 0.92rem;
}
.portal-side a:hover, .portal-side a.active {
  background: rgba(37,99,235,0.35); color: #fff;
}
.portal-main { padding: 1.75rem; background: var(--slate-100); }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(15,23,42,0.04); }
.table th, .table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--slate-200); text-align: left; font-size: 0.9rem; }
.table th { background: var(--slate-100); font-weight: 600; }

.trust-bar {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  padding: 2rem 0; color: var(--slate-500); font-weight: 700; font-size: 1.1rem;
}
.trust-bar span { text-align: center; }
.trust-bar small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--slate-400); }

.testimonial {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}
.testimonial p { color: var(--slate-600); font-size: 0.95rem; margin: 0 0 1rem; }
.testimonial .who { font-weight: 600; font-size: 0.9rem; }
.testimonial .role { color: var(--slate-500); font-size: 0.8rem; }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .grid-2, .contact-grid, .auth-wrap, .portal-shell, .footer-grid, .grid-6 {
    grid-template-columns: 1fr;
  }
  .auth-left { display: none; }
  .price-card.featured { transform: none; }
  .nav-links { display: none; }
  .menu-toggle { display: block; background: none; border: 1px solid var(--slate-200); border-radius: 8px; padding: 0.4rem 0.7rem; }
  .nav-links.open { display: flex; flex-direction: column; width: 100%; gap: 0.5rem; }
}
@media (min-width: 961px) {
  .menu-toggle { display: none; }
}

/* —— Index page enhancements (mockup fidelity) —— */
.hero-float-cta {
  position: absolute; right: 8%; bottom: 12%;
  background: var(--blue); color: #fff !important;
  border-radius: 999px; padding: 0.85rem 1.4rem;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(37,99,235,0.45);
  display: inline-flex; align-items: center; gap: 0.45rem;
  z-index: 2;
}
.dash-mock {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(15,23,42,0.14), 0 0 0 1px rgba(226,232,240,0.9);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center left;
}
.dash-mock-inner { display: grid; grid-template-columns: 56px 1fr; min-height: 320px; }
.dash-side {
  background: #0f172a; padding: 0.85rem 0.4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
}
.dash-side .dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: #94a3b8;
  display: grid; place-items: center; font-size: 0.75rem;
}
.dash-side .dot.on { background: rgba(37,99,235,0.5); color: #fff; }
.dash-main { padding: 0.85rem 1rem 1rem; background: linear-gradient(180deg,#f8fafc,#fff); }
.dash-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.85rem; font-size: 0.8rem; color: #64748b;
}
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.5rem; margin-bottom: 0.85rem; }
.kpi {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.55rem 0.6rem;
}
.kpi b { display: block; font-size: 0.95rem; color: #0f172a; }
.kpi span { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.03em; }
.kpi.up b { color: #2563eb; }
.chart-block {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 0.75rem; height: 120px; position: relative; overflow: hidden;
}
.chart-lines {
  position: absolute; inset: 0.75rem; display: flex; align-items: flex-end; gap: 6px;
}
.chart-lines i {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  opacity: 0.85;
}
.edition-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  max-width: 920px; margin: 0 auto;
}
.soft-blob {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.2), transparent 70%);
  pointer-events: none;
}
@media (max-width: 960px) {
  .dash-mock { transform: none; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .edition-row { grid-template-columns: 1fr; }
  .hero-float-cta { display: none; }
}

/* ========== Admin / User app shell (dashboard mockups) ========== */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f1f5f9;
}
.app-sidebar {
  background: #0b1220;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.app-sidebar .brand-row {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.35rem 0.6rem 1.1rem; color: #fff; font-weight: 700;
}
.app-sidebar .brand-row small { display: block; font-weight: 500; font-size: 0.65rem; color: #94a3b8; }
.app-nav-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  color: #64748b; padding: 0.85rem 0.75rem 0.35rem; text-transform: uppercase;
}
.app-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.75rem; border-radius: 10px;
  color: #94a3b8; font-size: 0.9rem; font-weight: 500; margin-bottom: 2px;
}
.app-nav a:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
.app-nav a.active { background: #2563eb; color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
.app-nav a .ico { width: 1.25rem; text-align: center; opacity: 0.9; }
.app-side-footer {
  margin-top: auto; padding: 0.75rem; border-radius: 12px;
  background: rgba(255,255,255,0.05); font-size: 0.82rem;
}
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  background: #fff; border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 20;
}
.app-search {
  flex: 1; max-width: 480px; position: relative;
}
.app-search input {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem; font-size: 0.9rem; background: #f8fafc;
}
.app-search::before {
  content: "⌕"; position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 1rem;
}
.app-top-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.app-user {
  display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem;
}
.app-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #2563eb; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
}
.app-content { padding: 1.5rem 1.75rem 2rem; }
.page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.35rem; flex-wrap: wrap;
}
.page-head h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { margin: 0.25rem 0 0; color: #64748b; font-size: 0.95rem; }

.kpi-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.85rem; margin-bottom: 1.25rem;
}
.kpi-row-4 { grid-template-columns: repeat(4, 1fr); }
.kpi-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 1rem 1.05rem; box-shadow: 0 4px 14px rgba(15,23,42,0.03);
}
.kpi-card .kpi-ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.1rem; margin-bottom: 0.55rem;
}
.kpi-card .label { font-size: 0.78rem; color: #64748b; font-weight: 500; }
.kpi-card .value { font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.kpi-card .delta { font-size: 0.75rem; color: #16a34a; font-weight: 600; margin-top: 0.2rem; }
.kpi-card .delta.muted { color: #64748b; font-weight: 500; }

.dash-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.dash-grid-3 { grid-template-columns: 1.4fr 0.9fr 1fr; }
.dash-grid-2 { grid-template-columns: 1.4fr 1fr; }
.dash-grid-user { grid-template-columns: 1.5fr 0.9fr 280px; }
.panel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 1.1rem 1.15rem; box-shadow: 0 4px 14px rgba(15,23,42,0.03);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.85rem;
}
.panel-head h3 { margin: 0; font-size: 0.98rem; font-weight: 700; }
.panel-head a { font-size: 0.82rem; font-weight: 600; }

/* Simple CSS charts */
.line-chart {
  height: 180px; position: relative; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: flex-end; gap: 2%; padding: 0 0.25rem;
}
.line-chart .col {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%;
}
.line-chart .bar {
  border-radius: 4px 4px 0 0; width: 100%; min-height: 2px;
}
.donut-wrap { display: flex; gap: 1.25rem; align-items: center; }
.donut {
  width: 130px; height: 130px; border-radius: 50%;
  background: conic-gradient(#22c55e 0 55%, #3b82f6 55% 68%, #f59e0b 68% 78%, #a855f7 78% 88%, #ef4444 88% 100%);
  display: grid; place-items: center; position: relative; flex-shrink: 0;
}
.donut::after {
  content: ""; width: 78px; height: 78px; border-radius: 50%; background: #fff;
  position: absolute;
}
.donut-center {
  position: relative; z-index: 1; text-align: center; font-size: 0.75rem; color: #64748b;
}
.donut-center strong { display: block; font-size: 1.35rem; color: #0f172a; }
.legend { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; }
.legend li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; color: #475569; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 0.4rem; }

.status-pill {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
}
.st-active, .st-completed, .st-operational { background: #dcfce7; color: #166534; }
.st-pending, .st-scheduled { background: #f3e8ff; color: #6b21a8; }
.st-sending, .st-progress { background: #dbeafe; color: #1e40af; }
.st-open { background: #ffedd5; color: #9a3412; }
.st-failed, .st-draft { background: #f1f5f9; color: #475569; }
.st-enterprise { background: #f3e8ff; color: #6b21a8; }
.st-professional { background: #dbeafe; color: #1d4ed8; }
.st-standard { background: #f1f5f9; color: #334155; }

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.qa-btn {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.85rem 0.6rem;
  text-align: center; background: #f8fafc; color: #334155; font-size: 0.78rem; font-weight: 600;
}
.qa-btn:hover { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.qa-btn .qico { display: block; font-size: 1.15rem; margin-bottom: 0.25rem; }

.upgrade-card {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74; border-radius: 14px; padding: 1rem;
  margin-top: 0.75rem;
}
.progress-bar {
  height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: 0.35rem;
}
.progress-bar > span { display: block; height: 100%; border-radius: 999px; background: #22c55e; }
.progress-bar > span.blue { background: #2563eb; }

.side-actions a {
  display: block; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 0.7rem 0.85rem; margin-bottom: 0.45rem; background: #fff;
  color: #334155; font-size: 0.88rem; font-weight: 600;
}
.side-actions a:hover { border-color: #93c5fd; color: #1d4ed8; }

@media (max-width: 1200px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .dash-grid-3, .dash-grid-user { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: relative; height: auto; }
  .kpi-row, .kpi-row-4 { grid-template-columns: repeat(2, 1fr); }
}
