:root{
  --primary:#00AEEF;
  --secondary:#2D51A4;
  --bg:#f6f7fb;
  --text:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --border:rgba(15, 23, 42, .10);
  --shadow:0 10px 30px rgba(2, 6, 23, .08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar__inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:16px;
  justify-content:space-between;
}

.brand{display:flex;gap:10px;align-items:center}
.brand__dot{
  width:36px;height:36px;border-radius:12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:0 10px 20px rgba(0, 174, 239, .25);
}
.brand__name{font-weight:800;letter-spacing:-.02em}
.brand__sub{font-size:12px;color:var(--muted)}

.nav{display:flex;gap:10px;flex-wrap:wrap}
.nav__link{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
}
.nav__link:hover{background:rgba(0,0,0,.04)}
.nav__link--disabled{opacity:.55;pointer-events:none}

.user{display:flex;gap:12px;align-items:center}
.user__name{font-size:14px;color:var(--muted)}
.user__logout{
  text-decoration:none;
  color:#fff;
  background:var(--secondary);
  padding:8px 12px;
  border-radius:12px;
  font-weight:700;
  font-size:13px;
}

.container{max-width:1100px;margin:0 auto;padding:18px 16px 40px}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
}

.h1{font-size:24px;margin:0 0 10px;letter-spacing:-.02em}
.p{margin:0;color:var(--muted);line-height:1.4}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  font-size:14px;
}
.btn--primary{background:var(--primary);color:#01202a}
.btn--secondary{background:var(--secondary);color:#fff}
.btn--ghost{background:rgba(15, 23, 42, .05); color:var(--text)}
.btn:active{transform:translateY(1px)}

.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  font-weight:800;
  padding:0 10px 6px;
}
.table td{
  background:#fff;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:12px 10px;
  font-size:14px;
}
.table tr td:first-child{
  border-left:1px solid var(--border);
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
}
.table tr td:last-child{
  border-right:1px solid var(--border);
  border-top-right-radius:12px;
  border-bottom-right-radius:12px;
}

.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(0,174,239,.12);
  color:#01506d;
  border:1px solid rgba(0,174,239,.20);
}

.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.label{font-size:12px;color:var(--muted);font-weight:800}
.input, .select, .textarea{
  border:1px solid rgba(15, 23, 42, .16);
  border-radius:12px;
  padding:11px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
}
.input:focus, .select:focus, .textarea:focus{
  border-color:rgba(0,174,239,.9);
  box-shadow:0 0 0 4px rgba(0,174,239,.12);
}
.textarea{min-height:92px;resize:vertical}

.alert{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  margin-bottom:12px;
  background:#fff;
}
.alert--success{border-color:rgba(16,185,129,.25);background:rgba(16,185,129,.08)}
.alert--error{border-color:rgba(239,68,68,.25);background:rgba(239,68,68,.08)}

/* ===== Drawer (mobile) ===== */
.drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:30;
}
.drawer{
  position:fixed;
  left:0;
  top:0;
  height:100%;
  width:min(86vw, 340px);
  background:#fff;
  border-right:1px solid var(--border);
  box-shadow: 0 20px 50px rgba(2,6,23,.25);
  transform:translateX(-102%);
  transition:transform .22s ease;
  z-index:31;
  display:flex;
  flex-direction:column;
}
.drawer__header{
  padding:14px 14px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid var(--border);
}
.drawer__brand{
  display:flex;
  gap:10px;
  align-items:center;
}
.drawer__brandtext{display:flex;flex-direction:column}
.drawer__brandname{font-weight:900;letter-spacing:-.02em}
.drawer__brandsub{font-size:12px;color:var(--muted)}
.drawer__close{
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:900;
}
.drawer__nav{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.drawer__link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  text-decoration:none;
  color:var(--text);
  font-weight:800;
  background:rgba(15,23,42,.03);
}
.drawer__link .ico{width:22px;display:inline-flex;justify-content:center}
.drawer__link.is-active{
  background:rgba(0,174,239,.12);
  border-color:rgba(0,174,239,.28);
  color:#014a63;
}
.drawer__link.is-disabled{
  opacity:.55;
  pointer-events:none;
}
.drawer__link .soon{
  margin-left:auto;
  font-size:11px;
  font-weight:900;
  opacity:.65;
}
.drawer__footer{
  padding:12px;
  margin-top:auto;
  border-top:1px solid var(--border);
}

/* When open */
body.drawer-open .drawer{ transform:translateX(0); }
body.drawer-open .drawer-backdrop{ opacity:1; pointer-events:auto; }
body.drawer-open{ overflow:hidden; }

/* ===== Mobile header/menu button ===== */
.menu-toggle{
  display:none;
  align-items:center;
  gap:8px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:900;
  font-size:14px;
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}
.menu-ico{
  width:16px;
  height:2px;
  background:var(--text);
  position:relative;
  display:inline-block;
  border-radius:2px;
}
.menu-ico::before,
.menu-ico::after{
  content:"";
  position:absolute;
  left:0;
  width:16px;
  height:2px;
  background:var(--text);
  border-radius:2px;
}
.menu-ico::before{ top:-6px; }
.menu-ico::after{ top:6px; }

/* Desktop-only / Mobile-only helpers */
.desktop-only{ display:block; }
.mobile-only{ display:none; }

@media (max-width: 860px){
  .nav--desktop{ display:none; }
  .user--desktop{ display:none; }
  .menu-toggle{ display:inline-flex; }
  .desktop-only{ display:none; }
  .mobile-only{ display:block; }
}

/* ===== Mobile Services Cards (no horizontal scroll) ===== */
.svc-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.svc-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.svc-card summary{
  list-style:none;
  cursor:pointer;
  padding:14px;
  display:flex;
  align-items:center;
  gap:10px;
}
.svc-card summary::-webkit-details-marker{ display:none; }
.svc-title{
  font-weight:900;
  letter-spacing:-.01em;
}
.svc-sub{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.svc-meta{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
}
.svc-arrow{
  width:26px;height:26px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background:rgba(15,23,42,.03);
  font-weight:900;
}
.svc-card[open] .svc-arrow{ transform:rotate(180deg); }

.svc-body{
  border-top:1px solid var(--border);
  padding:12px 14px 14px;
}
.svc-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ===== Bullets (subtópicos) - PROFISSIONAL ===== */
.bm-line-row{
  display:grid;
  grid-template-columns: 78px 1fr 140px; /* badge + input + remover */
  gap:10px;
  align-items:center;
}

/* badge exclusivo dos bullets (1,2,3...) */
.bullet-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 70px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  background: rgba(0,174,239,.14);
  border: 1px solid rgba(0,174,239,.28);
  color:#014a63;
}

.bm-line-row .input{
  padding: 12px 14px;
  font-size: 15px;
}

@media (max-width: 860px){
  .bm-line-row{
    grid-template-columns: 72px 1fr; /* badge + input */
  }

  .bullet-badge{
    min-width: 64px;
    height: 40px;
    font-size: 14px;
  }

  .bm-line-row .input{
    padding: 13px 14px;
    font-size: 16px;
  }

  /* botão remover cai pra baixo */
  .bm-line-row .btn{
    grid-column: 1 / -1;
    justify-content:center;
    padding: 12px 12px;
    font-size: 14px;
    border-radius: 14px;
  }
}

