:root {
  --azul-950: #0f172a;
  --azul-900: #14213d;
  --azul-800: #1e3a8a;
  --azul-700: #1d4ed8;
  --azul-600: #2563eb;
  --azul-100: #eaf2ff;
  --verde-600: #059669;
  --cinza-950: #111827;
  --cinza-700: #374151;
  --cinza-500: #6b7280;
  --cinza-200: #e5e7eb;
  --branco: #ffffff;
  --sombra: 0 16px 40px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cinza-950);
  background: #f6f7fb;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.dashboard-topbar .container {
  width: 100%;
  padding: 0 12px;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(135deg, var(--azul-800), var(--azul-600));
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.dashboard-navbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 0;
  text-decoration: none;
}

.brand-logo img {
  width: 148px;
  height: 45px;
  object-fit: contain;
}

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  display: none;
  margin-left: auto;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--branco);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-option:hover,
.language-option:focus,
.language-option.is-active {
  background: var(--branco);
  color: var(--azul-700);
  text-decoration: none;
}

.flag-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--branco);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.20);
}

.flag-br {
  background: #16a34a;
}

.flag-br::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: #facc15;
  transform: rotate(45deg);
}

.flag-br::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d4ed8;
}

.flag-us {
  background: repeating-linear-gradient(
    to bottom,
    #dc2626 0,
    #dc2626 2px,
    #ffffff 2px,
    #ffffff 4px
  );
}

.flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 8px;
  background: #1d4ed8;
}

.flag-es {
  background: linear-gradient(
    to bottom,
    #b91c1c 0,
    #b91c1c 25%,
    #facc15 25%,
    #facc15 75%,
    #b91c1c 75%,
    #b91c1c 100%
  );
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 7px;
}

.dashboard-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.28),
    0 2px 0 rgba(15, 23, 42, 0.22),
    0 8px 14px rgba(15, 23, 42, 0.32);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-icon {
  display: none;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label-mobile {
  display: none;
}

.nav-card-footer {
  display: none;
}

.dashboard-nav a:hover,
.dashboard-nav a:focus {
  background: rgba(255, 255, 255, 0.18);
  color: var(--branco);
  transform: translateY(-1px);
}

.dashboard-nav a.is-current {
  background: rgba(255, 255, 255, 0.24);
  color: var(--branco);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.dashboard-page {
  width: 100%;
}

.dashboard-hero {
  padding: 34px 0 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #eef6f0 100%);
  border-bottom: 1px solid var(--cinza-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 26px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.dashboard-title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--azul-900);
  overflow-wrap: anywhere;
}

.dashboard-subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--cinza-500);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn-dashboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-dashboard:hover,
.btn-dashboard:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary-dashboard {
  background: var(--azul-700);
  color: var(--branco);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

.btn-primary-dashboard:hover,
.btn-primary-dashboard:focus {
  color: var(--branco);
  background: #1e40af;
}

.btn-outline-dashboard {
  background: var(--branco);
  color: var(--cinza-950);
  border-color: var(--cinza-200);
}

.btn-outline-dashboard:hover,
.btn-outline-dashboard:focus {
  color: var(--azul-700);
  border-color: #bfdbfe;
  background: var(--azul-100);
}

.btn-blue-3d,
.btn-red-3d,
.btn-yellow-3d {
  position: relative;
  border: 0;
  color: var(--branco);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.30);
}

.btn-blue-3d {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow:
    0 5px 0 #1e3a8a,
    0 16px 28px rgba(29, 78, 216, 0.32);
}

.btn-red-3d {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow:
    0 5px 0 #7f1d1d,
    0 16px 28px rgba(185, 28, 28, 0.30);
}

.btn-yellow-3d {
  background: linear-gradient(180deg, #facc15 0%, #d97706 100%);
  color: #1f2937;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
  box-shadow:
    0 5px 0 #92400e,
    0 16px 28px rgba(217, 119, 6, 0.28);
}

.btn-blue-3d:hover,
.btn-blue-3d:focus,
.btn-red-3d:hover,
.btn-red-3d:focus,
.btn-yellow-3d:hover,
.btn-yellow-3d:focus {
  transform: translateY(2px);
  text-decoration: none;
}

.btn-blue-3d:hover,
.btn-blue-3d:focus {
  color: var(--branco);
  box-shadow:
    0 3px 0 #1e3a8a,
    0 10px 22px rgba(29, 78, 216, 0.30);
}

.btn-red-3d:hover,
.btn-red-3d:focus {
  color: var(--branco);
  box-shadow:
    0 3px 0 #7f1d1d,
    0 10px 22px rgba(185, 28, 28, 0.28);
}

.btn-yellow-3d:hover,
.btn-yellow-3d:focus {
  color: #1f2937;
  box-shadow:
    0 3px 0 #92400e,
    0 10px 22px rgba(217, 119, 6, 0.26);
}

.poster-panel {
  overflow: hidden;
  border: 1px solid var(--cinza-200);
  border-radius: 8px;
  background: var(--branco);
  box-shadow: var(--sombra);
}

.poster-panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.dashboard-content {
  padding: 28px 0 40px;
}

.page-highlight {
  padding: 24px 0 0;
  background: #f6f7fb;
}

.page-highlight-title {
  margin: 0;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #dbeafe 100%);
  color: var(--azul-900);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.10);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--cinza-950);
  letter-spacing: 0;
}

.section-heading span {
  color: var(--cinza-500);
  font-size: 13px;
  font-weight: 700;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 184px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
  color: var(--cinza-950);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.action-card:hover,
.action-card:focus {
  color: var(--cinza-950);
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 18px 42px rgba(29, 78, 216, 0.18);
}

.card-tom-1 { background: linear-gradient(145deg, #ffffff 0%, #dbeafe 100%); }
.card-tom-2 { background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 100%); }
.card-tom-3 { background: linear-gradient(145deg, #ffffff 0%, #dbeafe 52%, #eff6ff 100%); }
.card-tom-4 { background: linear-gradient(145deg, #ffffff 0%, #bfdbfe 100%); }
.card-tom-5 { background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 48%, #dbeafe 100%); }
.card-tom-6 { background: linear-gradient(145deg, #ffffff 0%, #eff6ff 30%, #bfdbfe 100%); }
.card-tom-7 { background: linear-gradient(145deg, #ffffff 0%, #dbeafe 45%, #c7d2fe 100%); }
.card-tom-8 { background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 40%, #bae6fd 100%); }

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--azul-700);
  box-shadow:
    inset 0 0 0 1px rgba(29, 78, 216, 0.12),
    0 10px 20px rgba(29, 78, 216, 0.10);
}

.action-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--cinza-950);
  letter-spacing: 0;
}

.action-card p {
  margin: 0;
  color: var(--cinza-500);
  font-size: 13px;
  line-height: 1.45;
}

.action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--azul-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: #25d366;
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(37, 211, 102, 0.38);
}

.whatsapp-float img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.dashboard-footer {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--azul-900);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: 12px;
}

.dashboard-footer a {
  color: #bfdbfe;
  font-weight: 700;
}

.scroll-to-top {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 34;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--azul-700);
  color: var(--branco);
  font-size: 11px;
  font-weight: 800;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.26);
}

@media (max-width: 1199px) {
  .dashboard-navbar {
    flex-wrap: wrap;
  }

  .language-switcher {
    order: 2;
    margin-left: auto;
  }

  .menu-button {
    order: 3;
  }

  .dashboard-nav {
    order: 4;
    flex-basis: 100%;
    padding-bottom: 12px;
  }

  .actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
  }

  .dashboard-nav {
    display: none;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 0 0 16px;
  }

  .menu-toggle:checked ~ .dashboard-nav {
    display: grid;
  }

  .dashboard-nav a {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 134px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    color: var(--cinza-950);
    text-align: left;
    justify-content: flex-start;
    font-size: 13px;
    line-height: 1.25;
    text-shadow: none;
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.12);
    overflow: hidden;
  }

  .dashboard-nav a:nth-child(1) { background: linear-gradient(145deg, #ffffff 0%, #dbeafe 100%); }
  .dashboard-nav a:nth-child(2) { background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 100%); }
  .dashboard-nav a:nth-child(3) { background: linear-gradient(145deg, #ffffff 0%, #dbeafe 52%, #eff6ff 100%); }
  .dashboard-nav a:nth-child(4) { background: linear-gradient(145deg, #ffffff 0%, #bfdbfe 100%); }
  .dashboard-nav a:nth-child(5) { background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 48%, #dbeafe 100%); }
  .dashboard-nav a:nth-child(6) { background: linear-gradient(145deg, #ffffff 0%, #eff6ff 30%, #bfdbfe 100%); }
  .dashboard-nav a:nth-child(7) { background: linear-gradient(145deg, #ffffff 0%, #dbeafe 45%, #c7d2fe 100%); }
  .dashboard-nav a:nth-child(8) { background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 40%, #bae6fd 100%); }

  .dashboard-nav a.is-current {
    border-color: var(--azul-700);
    background: linear-gradient(145deg, #ffffff 0%, #bfdbfe 58%, #93c5fd 100%);
    color: var(--cinza-950);
    box-shadow:
      inset 0 0 0 1px rgba(29, 78, 216, 0.20),
      0 18px 42px rgba(29, 78, 216, 0.20);
  }

  .nav-card-footer {
    display: block;
    margin-top: auto;
    padding-top: 8px;
    color: var(--azul-700);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  .dashboard-nav a:hover,
  .dashboard-nav a:focus {
    color: var(--cinza-950);
    border-color: #60a5fa;
    box-shadow: 0 18px 42px rgba(29, 78, 216, 0.18);
  }

  .menu-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--azul-700);
    box-shadow:
      inset 0 0 0 1px rgba(29, 78, 216, 0.12),
      0 10px 20px rgba(29, 78, 216, 0.10);
  }

  .label-desktop {
    display: none;
  }

  .label-mobile {
    display: block;
    font-weight: 800;
    text-transform: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-title {
    font-size: 28px;
  }

  .scroll-to-top {
    display: block;
  }
}

@media (max-width: 575px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .dashboard-topbar .container {
    width: 100%;
    padding: 0 8px;
  }

  .dashboard-navbar {
    gap: 8px;
    min-height: 66px;
  }

  .brand-logo img {
    width: 112px;
    height: auto;
  }

  .menu-button {
    min-height: 36px;
    padding: 9px 10px;
  }

  .language-switcher {
    order: 2;
    flex-basis: auto;
    justify-content: flex-end;
    margin-left: auto;
    padding: 3px;
    gap: 3px;
  }

  .language-option {
    flex: 0 0 29px;
    width: 29px;
    height: 28px;
  }

  .flag-icon {
    width: 21px;
    height: 14px;
  }

  .dashboard-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-nav a {
    min-height: 122px;
    padding: 12px;
  }

  .dashboard-hero {
    padding-top: 24px;
  }

  .dashboard-title {
    font-size: 24px;
  }

  .page-highlight-title {
    padding: 14px;
    font-size: 22px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-dashboard {
    width: 100%;
  }

  .actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .action-card {
    min-height: 164px;
    padding: 14px;
  }

  .action-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
  }

  .action-card h3 {
    font-size: 14px;
  }

  .action-card p {
    font-size: 12px;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
  }

  .whatsapp-float img {
    width: 42px;
    height: 42px;
  }
}

