@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #0028E6;
  --cyan: #00E5FF;
  --magenta: #D10073;
  --navy: #0C0040;
  --white: #FFFFFF;
  --ink: #14103A;
  --paper: #F6F7FC;
  --line: #E2E4F1;
  --sidebar-w: 264px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Layout shell ---------- */
.shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 32px 20px;
  z-index: 100;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sidebar__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar__logo-text {
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.15;
}

.sidebar__logo-text small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar__nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar__nav a svg { flex-shrink: 0; opacity: 0.85; }

.sidebar__nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.sidebar__nav a.active {
  background: var(--blue);
  color: var(--white);
}

.sidebar__spacer { flex: 1; }

.sidebar__footer {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: center;
}

.sidebar__footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

/* ---------- Main content ---------- */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

.topbar {
  display: none;
}

.page {
  padding: 48px 56px 80px;
  max-width: 1180px;
}

/* ---------- Hero ---------- */
.hero-frame {
  border-radius: 27px;
  padding: 7px;
  background: linear-gradient(135deg, var(--magenta), var(--blue) 55%, var(--cyan));
  margin-bottom: 44px;
}

.hero {
  position: relative;
  border-radius: 21px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  display: flex;
  min-height: 320px;
}

.hero--simple {
  flex-direction: column;
  padding: 40px 48px;
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}

.hero__left {
  position: relative;
  flex: 1.3;
  padding: 48px 20px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero__right {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}

.hero__rings {
  position: absolute;
  overflow: visible;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
}

.hero__logo {
  position: relative;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,0.4));
}

.hero__eyebrow {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.hero h1 {
  position: relative;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
}

.hero p {
  position: relative;
  font-size: 15.5px;
  color: rgba(255,255,255,0.72);
  max-width: 440px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.hero__actions {
  position: relative;
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: var(--white);
}

.btn--ghost {
  background: linear-gradient(90deg, var(--magenta), #7A1FB0);
  color: var(--white);
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.section-head a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--magenta);
}

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(12, 0, 64, 0.08);
  transform: translateY(-2px);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon--a { background: rgba(0,40,230,0.1); color: var(--blue); }
.card__icon--b { background: rgba(209,0,115,0.1); color: var(--magenta); }

.card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--paper);
  color: #6A6E8F;
}

.card__tag--pink { background: rgba(209,0,115,0.1); color: var(--magenta); }
.card__tag--blue { background: rgba(0,40,230,0.1); color: var(--blue); }

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.card p {
  font-size: 13.5px;
  color: #62648A;
  line-height: 1.55;
  margin: 0 0 20px;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #8688A8;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.progress-track {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  margin-right: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--magenta), var(--blue));
}

/* ---------- Mini stats row (home) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
}

.stat b.pink { color: var(--magenta); }

.stats--2 { grid-template-columns: repeat(2, 1fr); }

.stat span {
  font-size: 12.5px;
  color: #8688A8;
}

/* ---------- Sidebar brand secondary (Bluefit mark) ---------- */
.sidebar__brand-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.sidebar__brand-secondary .mark-img {
  height: 13px;
  width: auto;
  opacity: 0.85;
}

.sidebar__brand-secondary span:last-child {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

/* ---------- Banner (topo da Início) ---------- */
.banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 180px;
  margin-bottom: 32px;
}

.banner__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.6s ease;
  color: var(--white);
}

.banner__slide.active { opacity: 1; }

.banner__slide--1 { background: linear-gradient(120deg, var(--blue), #1440EE 60%, var(--cyan)); }
.banner__slide--2 { background: linear-gradient(120deg, var(--magenta), #7A0E5C 60%, var(--navy)); }
.banner__slide--3 { background: linear-gradient(120deg, var(--navy), #241170 60%, var(--magenta)); }

.banner__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 6px;
}

.banner__slide h4 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 4px;
}

.banner__slide p {
  font-size: 13px;
  margin: 0;
  opacity: 0.85;
}

.banner__dots {
  position: absolute;
  bottom: 14px;
  left: 40px;
  display: flex;
  gap: 6px;
}

.banner__dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}

.banner__dots button.active { background: var(--white); width: 18px; border-radius: 4px; }

/* ---------- Search bar ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 28px;
  max-width: 420px;
}

.search-bar svg { flex-shrink: 0; color: #9496B8; }

.search-bar input {
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  width: 100%;
  color: var(--ink);
  background: transparent;
}

.search-bar input::placeholder { color: #9496B8; }

.no-results {
  display: none;
  color: #8688A8;
  font-size: 13.5px;
  padding: 20px 4px;
}
@media (max-width: 860px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    top: auto;
    bottom: 0;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    z-index: 200;
  }
  .sidebar__logo, .sidebar__footer, .sidebar__spacer { display: none; }
  .sidebar__nav {
    margin-top: 0;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
  }
  .sidebar__nav a {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--navy);
    color: var(--white);
  }
  .topbar .sidebar__logo-mark { width: 32px; height: 32px; }
  .topbar .sidebar__logo-mark span { width: 22px; height: 22px; font-size: 10px; }
  .topbar-text { font-weight: 700; font-size: 14.5px; }

  .main { margin-left: 0; padding-bottom: 70px; }
  .page { padding: 24px 18px 40px; }
  .hero { flex-direction: column; }
  .hero__left { padding: 32px 24px 8px; }
  .hero h1 { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero__right { padding: 24px; min-width: 0; }
  .hero__logo { width: 110px; height: 110px; }
  .hero__rings { width: 220px; height: 220px; }
}
