:root{
  --primary:#4f46e5;
  --primary2:#7c3aed;
  --dark:#0f172a;
  --muted:#64748b;
  --bg:#f8fafc;
  --card:#ffffff;
  --green:#16a34a;
  --red:#ef4444;
  --orange:#f97316;
  --blue:#2563eb;
  --radius:18px;
  --shadow:0 10px 30px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--dark)}
a{text-decoration:none}
.premium-shell{display:flex;min-height:100vh}
.premium-sidebar{width:280px;background:linear-gradient(180deg,#020617,#0f172a);color:white;padding:22px;position:fixed;inset:0 auto 0 0}
.brand{font-size:25px;font-weight:900;display:flex;align-items:center;gap:10px;margin-bottom:28px}
.brand span{background:linear-gradient(135deg,#f59e0b,#7c3aed);width:34px;height:34px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center}
.menu-title{font-size:11px;text-transform:uppercase;color:#94a3b8;margin:24px 0 10px}
.premium-nav{display:flex;flex-direction:column;gap:8px}
.premium-nav a{color:#e2e8f0;padding:12px 14px;border-radius:13px;font-weight:700;display:flex;align-items:center;gap:10px}
.premium-nav a:hover,.premium-nav a.active{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white}
.plan-card{position:absolute;left:22px;right:22px;bottom:22px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:18px}
.plan-card strong{color:#86efac}
.premium-main{margin-left:280px;width:calc(100% - 280px)}
.topbar{height:72px;background:white;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}
.topbar .user{display:flex;align-items:center;gap:10px;font-weight:800}
.avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;display:flex;align-items:center;justify-content:center}
.content{padding:30px}
.page-title{font-size:32px;margin:0 0 6px}
.page-subtitle{color:var(--muted);margin:0 0 26px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}
.card{background:white;border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;border:1px solid #eef2f7}
.metric{min-height:128px;display:flex;justify-content:space-between;align-items:flex-start}
.metric .label{color:#475569;font-weight:800}
.metric .value{font-size:34px;font-weight:900;margin-top:12px}
.metric .icon{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:26px}
.bg-blue{background:linear-gradient(135deg,#2563eb,#4f46e5);color:white}
.bg-green{background:linear-gradient(135deg,#16a34a,#22c55e);color:white}
.bg-purple{background:linear-gradient(135deg,#7c3aed,#9333ea);color:white}
.bg-orange{background:linear-gradient(135deg,#f97316,#f59e0b);color:white}
.bg-red{background:linear-gradient(135deg,#ef4444,#dc2626);color:white}
.btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;border:0;border-radius:12px;padding:12px 16px;font-weight:800;cursor:pointer}
.btn-dark{background:#0f172a;color:white}
.btn-soft{background:#eef2ff;color:#3730a3}
.btn-red{background:#dc2626;color:white}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.table-card{background:white;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;border:1px solid #eef2f7}
table{width:100%;border-collapse:collapse;background:white}
th{background:#f8fafc;color:#334155;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
td,th{padding:15px;border-bottom:1px solid #eef2f7;text-align:left}
.badge{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900}
.badge-green{background:#dcfce7;color:#166534}
.badge-red{background:#fee2e2;color:#991b1b}
.badge-orange{background:#ffedd5;color:#9a3412}
.form-card{background:white;border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;max-width:850px}
label{font-weight:800;color:#334155}
input,textarea,select{width:100%;padding:13px 14px;border:1px solid #dbe3ef;border-radius:12px;margin:7px 0 16px;background:white}
.msg{background:#ecfeff;border:1px solid #67e8f9;color:#155e75;padding:13px;border-radius:13px;margin-bottom:16px}
.home-hero{min-height:100vh;background:radial-gradient(circle at 70% 20%,#ddd6fe,transparent 35%),linear-gradient(180deg,#fff,#f8fafc);display:flex;align-items:center;justify-content:center;padding:36px}
.home-card{max-width:1120px;background:white;border-radius:32px;box-shadow:0 30px 90px rgba(15,23,42,.12);padding:56px;display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center}
.home-title{font-size:58px;line-height:1.02;margin:0}.home-title span{color:var(--primary)}
.home-text{font-size:19px;color:#475569;line-height:1.6}
.mock-phone{height:360px;border-radius:38px;background:linear-gradient(135deg,#111827,#4f46e5);box-shadow:var(--shadow);padding:28px;color:white}
.product-mini{background:rgba(255,255,255,.15);border-radius:18px;padding:16px;margin:12px 0}
.footer-note{margin-top:26px;color:#64748b;font-size:14px}
@media(max-width:900px){
 .premium-sidebar{position:relative;width:100%;inset:auto}
 .premium-shell{display:block}
 .premium-main{margin-left:0;width:100%}
 .home-card{grid-template-columns:1fr;padding:32px}
 .home-title{font-size:40px}
 .plan-card{position:static;margin-top:20px}
}

/* AREStore Loja Comercial Premium */
.store-body{background:#f8fafc;color:#0f172a}
.store-topbar{height:78px;background:white;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-between;padding:0 42px;position:sticky;top:0;z-index:20}
.store-logo{font-size:27px;font-weight:900;color:#0f172a;display:flex;align-items:center;gap:10px}
.store-logo span{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#4f46e5,#7c3aed);display:flex;align-items:center;justify-content:center;color:white}
.store-menu{display:flex;gap:24px;align-items:center}
.store-menu a{color:#334155;font-weight:800}
.store-search{flex:1;max-width:380px;margin:0 24px}
.store-search input{margin:0;border-radius:999px;background:#f8fafc}
.store-cart{background:#eef2ff;color:#3730a3;padding:12px 16px;border-radius:999px;font-weight:900}
.store-hero{background:radial-gradient(circle at 75% 15%,#ddd6fe,transparent 38%),linear-gradient(135deg,#ffffff,#f5f3ff);padding:70px 42px}
.store-hero-inner{max-width:1240px;margin:auto;display:grid;grid-template-columns:1.05fr .95fr;gap:45px;align-items:center}
.store-kicker{color:#4f46e5;font-weight:900;margin-bottom:12px}
.store-title{font-size:58px;line-height:1.02;margin:0 0 20px;font-weight:950}
.store-title span{color:#4f46e5}
.store-subtitle{font-size:19px;line-height:1.65;color:#475569;max-width:620px}
.store-hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}
.store-hero-card{height:360px;border-radius:34px;background:linear-gradient(135deg,#111827,#4f46e5);box-shadow:0 30px 90px rgba(79,70,229,.25);padding:34px;color:white;position:relative;overflow:hidden}
.store-hero-card:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12);right:-70px;bottom:-80px}
.store-mini-product{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:16px;margin:12px 0;backdrop-filter:blur(8px)}
.store-strip{max-width:1240px;margin:-30px auto 38px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;padding:0 28px}
.store-benefit{background:white;border:1px solid #eef2f7;border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(15,23,42,.06);display:flex;gap:14px;align-items:center}
.store-benefit-icon{width:42px;height:42px;border-radius:14px;background:#eef2ff;color:#4f46e5;display:flex;align-items:center;justify-content:center;font-size:22px}
.store-section{max-width:1240px;margin:0 auto;padding:26px 28px}
.store-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}
.store-section h2{font-size:28px;margin:0}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px}
.category-card{background:white;border:1px solid #eef2f7;border-radius:18px;padding:20px;text-align:center;box-shadow:0 10px 30px rgba(15,23,42,.05);font-weight:900;color:#0f172a}
.category-icon{width:50px;height:50px;border-radius:16px;background:#f5f3ff;color:#7c3aed;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;font-size:24px}
.product-grid-premium{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.product-card-premium{background:white;border:1px solid #eef2f7;border-radius:22px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.06);transition:.2s}
.product-card-premium:hover{transform:translateY(-4px);box-shadow:0 18px 50px rgba(15,23,42,.12)}
.product-image-placeholder{height:170px;background:linear-gradient(135deg,#f8fafc,#eef2ff);display:flex;align-items:center;justify-content:center;font-size:58px}
.product-info{padding:18px}
.product-title{font-size:18px;font-weight:900;margin:0 0 8px}
.product-desc{color:#64748b;min-height:44px}
.product-price{font-size:26px;font-weight:950;color:#4f46e5;margin:12px 0}
.product-actions{display:flex;gap:10px}
.store-cta{max-width:1240px;margin:28px auto;padding:0 28px}
.store-cta-inner{background:linear-gradient(135deg,#7c3aed,#2563eb);color:white;border-radius:24px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 18px 60px rgba(79,70,229,.25)}
.store-footer{background:#020617;color:#cbd5e1;margin-top:50px;padding:42px}
.store-footer-inner{max-width:1240px;margin:auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:28px}
.store-footer h3,.store-footer h4{color:white}
.whatsapp-float{position:fixed;right:24px;bottom:24px;background:#16a34a;color:white;width:62px;height:62px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:30px;box-shadow:0 18px 45px rgba(22,163,74,.35);z-index:50}
.product-detail{max-width:1180px;margin:40px auto;padding:0 28px;display:grid;grid-template-columns:.9fr 1.1fr;gap:34px}
.product-detail-image{background:white;border-radius:26px;box-shadow:0 15px 45px rgba(15,23,42,.08);min-height:430px;display:flex;align-items:center;justify-content:center;font-size:110px}
.product-detail-info{background:white;border-radius:26px;box-shadow:0 15px 45px rgba(15,23,42,.08);padding:34px}
@media(max-width:900px){
 .store-topbar{padding:0 20px}.store-menu{display:none}.store-search{display:none}
 .store-hero-inner,.product-detail{grid-template-columns:1fr}
 .store-title{font-size:40px}.store-footer-inner{grid-template-columns:1fr}
 .store-cta-inner{display:block}
}

/* AREStore Dashboard Executivo Premium */
.dashboard-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:24px;
}
.period-pill{
  background:white;
  border:1px solid #e5e7eb;
  padding:12px 16px;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
  font-weight:800;
  color:#334155;
}
.kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:16px;
  margin-bottom:22px;
}
.kpi-card{
  background:white;
  border:1px solid #eef2f7;
  border-radius:20px;
  padding:20px;
  box-shadow:0 12px 32px rgba(15,23,42,.07);
  position:relative;
  overflow:hidden;
}
.kpi-card:after{
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  right:-30px;
  bottom:-30px;
  border-radius:50%;
  background:rgba(79,70,229,.08);
}
.kpi-label{
  color:#64748b;
  font-weight:900;
  font-size:13px;
}
.kpi-value{
  font-size:28px;
  font-weight:950;
  margin:12px 0 8px;
}
.kpi-trend{
  color:#16a34a;
  font-size:12px;
  font-weight:900;
}
.dashboard-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:18px;
  margin-bottom:18px;
}
.dashboard-grid-2{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:18px;
  margin-bottom:18px;
}
.chart-card{
  background:white;
  border:1px solid #eef2f7;
  border-radius:22px;
  padding:22px;
  box-shadow:0 12px 36px rgba(15,23,42,.07);
}
.chart-title{
  margin:0 0 14px;
  font-size:20px;
}
.line-chart{
  height:250px;
  display:flex;
  align-items:end;
  gap:12px;
  padding:16px 0 4px;
  border-bottom:1px solid #e5e7eb;
}
.line-bar{
  flex:1;
  background:linear-gradient(180deg,#4f46e5,#7c3aed);
  border-radius:10px 10px 0 0;
  min-height:8px;
  position:relative;
}
.line-bar span{
  position:absolute;
  bottom:-28px;
  left:50%;
  transform:translateX(-50%);
  font-size:11px;
  color:#64748b;
}
.status-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid #eef2f7;
}
.status-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
  margin-right:8px;
}
.dot-green{background:#16a34a}
.dot-orange{background:#f97316}
.dot-red{background:#ef4444}
.finance-line{
  display:flex;
  justify-content:space-between;
  padding:14px 0;
  border-bottom:1px solid #eef2f7;
  font-weight:800;
}
.finance-line .positive{color:#16a34a}
.finance-line .negative{color:#dc2626}
.alert-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
}
.alert-card{
  border-radius:18px;
  padding:16px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  font-weight:800;
}
.alert-card.green{background:#ecfdf5;border-color:#bbf7d0}
.alert-card.blue{background:#eff6ff;border-color:#bfdbfe}
.quick-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(135px,1fr));
  gap:14px;
}
.quick-card{
  background:white;
  border:1px solid #eef2f7;
  border-radius:18px;
  padding:18px;
  text-align:center;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  font-weight:900;
  color:#0f172a;
}
.quick-card div{
  font-size:30px;
  margin-bottom:8px;
}
@media(max-width:1100px){
  .dashboard-grid,.dashboard-grid-2{grid-template-columns:1fr}
}

/* AREStore FASE 13B.3 — Dashboard Financeiro Executivo */
.finance-dashboard-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:18px;
  margin-bottom:18px;
}
.finance-chart-bars{
  height:260px;
  display:flex;
  align-items:end;
  gap:12px;
  padding:20px 0 34px;
  border-bottom:1px solid #e5e7eb;
}
.finance-chart-bar{
  flex:1;
  min-height:8px;
  border-radius:10px 10px 0 0;
  background:linear-gradient(180deg,#16a34a,#22c55e);
  position:relative;
}
.finance-chart-bar.expense{
  background:linear-gradient(180deg,#dc2626,#ef4444);
}
.finance-chart-bar span{
  position:absolute;
  bottom:-28px;
  left:50%;
  transform:translateX(-50%);
  font-size:11px;
  color:#64748b;
  white-space:nowrap;
}
.dre-line{
  display:flex;
  justify-content:space-between;
  padding:15px 0;
  border-bottom:1px solid #eef2f7;
  font-weight:800;
}
.dre-total{
  font-size:22px;
  font-weight:950;
}
.finance-positive{color:#16a34a}
.finance-negative{color:#dc2626}
.finance-neutral{color:#2563eb}
@media(max-width:1100px){
  .finance-dashboard-grid{grid-template-columns:1fr}
}
