﻿@import url(../generic/_reset.css);
@import url(../generic/_animations.css);
@import url(../settings/_colors.css);
@import url(../settings/_fonts.css);
@import url(../components/_navbar.css);
@import url(../components/_modal-idioma.css);

body.user-area-page {
  min-height: 100dvh;
  margin: 0;
  background: var(--lavender-mist);
  color: var(--black);
  font-family: var(--montserrat);
}

body.user-area-page--welcome-active {
  overflow: hidden;
}

.profile-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 50010;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, #8D28FF 0%, #6F00FF 30%, #3A0073 60%, #180038 100%);
  background-size: 200% 200%;
  transition: opacity 260ms ease;
  will-change: opacity, filter, transform;
}

.profile-welcome-overlay::before,
.profile-welcome-overlay::after,
.profile-welcome-overlay__fx {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(24px);
  display: none;
}

.profile-welcome-overlay::before {
  width: min(78vw, 780px);
  height: min(78vw, 780px);
  left: -20vw;
  top: -22vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 72%);
  animation: profileWelcomeBlobA 7.6s ease-in-out infinite;
}

.profile-welcome-overlay::after {
  width: min(70vw, 680px);
  height: min(70vw, 680px);
  right: -18vw;
  bottom: -20vh;
  background: radial-gradient(circle, rgba(183, 121, 255, 0.48) 0%, rgba(111, 0, 255, 0.18) 38%, rgba(111, 0, 255, 0) 74%);
  animation: profileWelcomeBlobB 8.4s ease-in-out infinite;
}

.profile-welcome-overlay__fx {
  width: min(54vw, 560px);
  height: min(54vw, 560px);
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0) 72%);
  animation: profileWelcomePulse 2.6s ease-in-out infinite;
}

.profile-welcome-overlay.is-visible {
  opacity: 1;
  animation: none !important;
  background-position: 0% 50%;
}

.profile-welcome-overlay__content {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 36px));
  padding: clamp(24px, 4vw, 42px);
  border-radius: 24px;
  text-align: center;
  color: #ffffff;
  border: none !important;
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: translateY(26px) scale(0.98);
  opacity: 0;
}

.profile-welcome-overlay.is-visible .profile-welcome-overlay__content {
  animation: profileWelcomeContentIn 920ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile-welcome-overlay__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 700 clamp(11px, 1.05vw, 14px)/1 var(--montserrat);
  color: rgba(255, 255, 255, 0.82);
}

.profile-welcome-overlay__title {
  margin: 12px 0 0;
  font: 700 clamp(28px, 4.4vw, 56px)/1.05 var(--poppins);
  text-wrap: balance;
  text-shadow: 0 14px 30px rgba(22, 0, 52, 0.46);
}

.profile-welcome-overlay__title span {
  position: relative;
  display: inline-block;
  color: #f7e9ff;
}

.profile-welcome-overlay__title span::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  transform: scaleX(0);
  transform-origin: center;
}

.profile-welcome-overlay.is-visible .profile-welcome-overlay__title span::after {
  animation: profileWelcomeUnderline 860ms cubic-bezier(0.34, 1.56, 0.64, 1) 240ms forwards;
}

.profile-welcome-overlay__subtitle {
  margin: 16px 0 0;
  font: 500 clamp(14px, 1.3vw, 18px)/1.45 var(--montserrat);
  color: rgba(255, 255, 255, 0.9);
}

.profile-welcome-overlay.is-exiting {
  animation: profileWelcomeExit 900ms cubic-bezier(0.3, 0.02, 0.2, 1) forwards;
}

@keyframes profileWelcomeGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes profileWelcomeBlobA {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }

  50% {
    transform: translate3d(34px, 20px, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes profileWelcomeBlobB {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.74;
  }

  50% {
    transform: translate3d(-28px, -24px, 0) scale(1.1);
    opacity: 0.94;
  }
}

@keyframes profileWelcomePulse {

  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes profileWelcomeContentIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
    filter: blur(8px);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes profileWelcomeUnderline {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes profileWelcomeExit {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }

  58% {
    opacity: 1;
    filter: blur(10px);
    transform: scale(1.01);
  }

  100% {
    opacity: 0;
    filter: blur(24px);
    transform: scale(1.035);
  }
}

body.user-area-page--farewell-active {
  overflow: hidden;
}

.logout-farewell-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, #8D28FF 0%, #6F00FF 30%, #3A0073 60%, #180038 100%);
  background-size: 200% 200%;
  transition: opacity 260ms ease;
  will-change: opacity, filter, transform;
}

.logout-farewell-overlay::before,
.logout-farewell-overlay::after,
.logout-farewell-overlay__fx {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(24px);
  display: none;
}

.logout-farewell-overlay::before {
  width: min(78vw, 780px);
  height: min(78vw, 780px);
  left: -18vw;
  top: -22vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.09) 34%, rgba(255, 255, 255, 0) 72%);
  animation: farewellBlobA 7.4s ease-in-out infinite;
}

.logout-farewell-overlay::after {
  width: min(72vw, 700px);
  height: min(72vw, 700px);
  right: -20vw;
  bottom: -20vh;
  background: radial-gradient(circle, rgba(186, 129, 255, 0.5) 0%, rgba(111, 0, 255, 0.18) 38%, rgba(111, 0, 255, 0) 74%);
  animation: farewellBlobB 8.2s ease-in-out infinite;
}

.logout-farewell-overlay__fx {
  width: min(56vw, 560px);
  height: min(56vw, 560px);
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 72%);
  animation: farewellPulse 2.8s ease-in-out infinite;
}

.logout-farewell-overlay.is-visible {
  opacity: 1;
  animation: none !important;
  background-position: 0% 50%;
}

.logout-farewell-overlay__content {
  position: relative;
  z-index: 1;
  width: min(650px, calc(100% - 36px));
  padding: clamp(24px, 4vw, 42px);
  border-radius: 24px;
  text-align: center;
  color: #fff;
  border: none !important;
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: translateY(22px) scale(0.98);
  opacity: 0;
}

.logout-farewell-overlay.is-visible .logout-farewell-overlay__content {
  animation: farewellContentIn 880ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logout-farewell-overlay__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 700 clamp(11px, 1vw, 14px)/1 var(--montserrat);
  color: rgba(255, 255, 255, 0.82);
}

.logout-farewell-overlay__title {
  margin: 12px 0 0;
  font: 700 clamp(28px, 4.3vw, 56px)/1.05 var(--poppins);
  text-wrap: balance;
  text-shadow: 0 14px 30px rgba(22, 0, 52, 0.46);
}

.logout-farewell-overlay__title span {
  position: relative;
  display: inline-block;
  color: #f7e9ff;
}

.logout-farewell-overlay__title span::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  transform: scaleX(0);
}

.logout-farewell-overlay.is-visible .logout-farewell-overlay__title span::after {
  animation: farewellUnderline 840ms cubic-bezier(0.34, 1.56, 0.64, 1) 220ms forwards;
}

.logout-farewell-overlay__subtitle {
  margin: 16px 0 0;
  font: 500 clamp(14px, 1.25vw, 18px)/1.45 var(--montserrat);
  color: rgba(255, 255, 255, 0.9);
}

.logout-farewell-overlay.is-exiting {
  animation: farewellExit 900ms cubic-bezier(0.3, 0.02, 0.2, 1) forwards;
}

@keyframes farewellGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes farewellBlobA {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.86;
  }

  50% {
    transform: translate3d(30px, 22px, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes farewellBlobB {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }

  50% {
    transform: translate3d(-30px, -22px, 0) scale(1.1);
    opacity: 0.94;
  }
}

@keyframes farewellPulse {

  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.68;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes farewellContentIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(8px);
  }

  52% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes farewellUnderline {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes farewellExit {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }

  60% {
    opacity: 1;
    filter: blur(10px);
    transform: scale(1.01);
  }

  100% {
    opacity: 0;
    filter: blur(24px);
    transform: scale(1.03);
  }
}

.user-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 62px;
  background: var(--lavender-mist);
  border-bottom: 1px solid var(--alabaster-gray);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.user-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  text-decoration: none;
  font: 700 36px/1 var(--montserrat);
}

.user-topbar__logo {
  width: 30px;
  height: 30px;
}

.user-topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-topbar__item {
  border: 0;
  border-radius: 6px;
  min-height: 38px;
  padding: 6px 12px;
  background: transparent;
  color: var(--gray);
  font: 600 14px var(--montserrat);
  cursor: pointer;
}

.user-topbar__item:hover {
  background: rgba(111, 0, 255, 0.08);
  color: var(--black);
}

.user-topbar__item.is-active {
  background: linear-gradient(90deg, #6f00ff 0%, #4f13cb 100%);
  color: var(--color-on-accent);
}

.user-workspace {
  min-height: calc(100dvh - var(--navbar-height, 62px));
  display: grid;
  grid-template-columns: 154px 1fr;
  align-items: start;
}

.user-sidebar {
  border-right: 1px solid var(--alabaster-gray);
  background: var(--white);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10;
  box-sizing: border-box;
  width: min(260px, 17vw);
  min-width: 220px;
  position: sticky;
  top: calc(var(--navbar-height, 62px));
  height: calc(100dvh - var(--navbar-height, 62px));
  align-self: start;
  overflow-y: auto;
}

.user-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  margin: 0 8px 6px;
}

.user-brand__logo {
  width: 30px;
  height: 30px;
}

.user-brand span {
  font-size: 35px;
}

.user-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-nav-item {
  border: 0;
  background: transparent;
  color: var(--gray);
  border-radius: 6px;
  padding: 11px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 14px var(--montserrat);
  cursor: pointer;
  transition: background .26s ease, color .26s ease, transform .28s cubic-bezier(0.2, 0.85, 0.3, 1), box-shadow .28s cubic-bezier(0.2, 0.85, 0.3, 1);
}

.user-nav-item:hover {
  transform: translate3d(4px, 0, 0);
  background: var(--navbar-dropdown-hover-bg);
  box-shadow: none;
}

.user-nav-item__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  text-align: center;
  font-size: 13px;
  line-height: 1;
  transition: filter 0.3s ease, transform 0.2s ease;
  filter: brightness(0) contrast(1.05);
}

#btn-manage-subscription {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  transition: 0.3s;
}

#btn-cancel-subscription-profile {
  border: none;
  background-color: var(--color-on-accent);
  display: none !important;
}

#btn-downgrade-subscription {
  display: none !important;
}

#billing-plan-tier {
  font-weight: 600;
}

#btn-manage-subscription:hover {
  opacity: 0.5;
}

.img-icon-manage-subscription {
  width: 2vw;
  filter: brightness(0) invert(1) contrast(1.05);
}

.user-nav-item.is-active {
  background: linear-gradient(90deg, #6f00ff 0%, #4f13cb 100%);
  color: var(--color-on-accent);
}

/* Estado ativo: Ãcone branco */
.user-nav-item.is-active .user-nav-item__icon {
  filter: brightness(0) invert(1) contrast(1.1);
}

/* Estilo do botÃ£o ativo que vocÃª jÃ¡ tem */
.user-nav-item.is-active {
  background: linear-gradient(90deg, #6f00ff 0%, #4f13cb 100%);
  color: white;
}

.user-content-area {
  background: var(--lavender-mist);
  min-height: calc(100dvh - var(--navbar-height, 62px));
  padding: 60px 56px;
}

.user-screen {
  max-width: 920px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(0, 14px, 0);
  filter: blur(2px);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
  will-change: opacity, transform;
}

.user-screen.is-active {
  opacity: 1;
  max-height: 9999px;
  overflow: visible;
  pointer-events: auto;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.user-screen__header h1 {
  margin: 0;
  font-family: var(--montserrat);
  color: var(--black);
  font-weight: 600;
  font-size: 3.5vw;
}

.user-screen__header p {
  margin: 14px 0 0;
  font: 500 16px/1.45 var(--montserrat);
  color: var(--gray);
  max-width: 620px;
}

.profile-avatar-widget {
  position: relative;
  width: 22vw;
}

.profile-avatar-button {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid rgba(111, 0, 255, 0.12);
  background: rgba(111, 0, 255, 0.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  z-index: 10;
}

.profile-avatar-button:hover,
.profile-avatar-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(57, 0, 115, 0.14);
  border-color: rgba(111, 0, 255, 0.22);
}

.profile-avatar-preview {
  width: 20vw;
  height: 20vw;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-avatar-more {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(111, 0, 255, 0.15);
  background: var(--white);
  color: var(--black);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 15;
  padding-bottom: 3vw;
  padding-left: 1.5vw;
  padding-right: 1.5vw;
}

.profile-avatar-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--white);
  border: 1px solid rgba(111, 0, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 22px 45px rgba(46, 0, 102, 0.18);
  padding: 10px;
  display: grid;
  gap: 8px;
  z-index: 20;
}

.profile-avatar-menu[hidden] {
  display: none !important;
}

.profile-avatar-menu__button {
  width: 100%;
  font: 700 0.95rem var(--montserrat);
  color: var(--black);
  background: rgba(111, 0, 255, 0.06);
  border: 1px solid rgba(111, 0, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
}

.profile-avatar-menu__button--danger {
  background: rgba(196, 33, 47, 0.08);
  border-color: rgba(196, 33, 47, 0.16);
  color: #b42318;
}

.profile-avatar-menu__button:hover,
.profile-avatar-menu__button:focus {
  background: rgba(111, 0, 255, 0.12);
}

@media (max-width: 720px) {
  .profile-avatar-button {
    width: 44vw;
    height: 44vw;
  }

  .profile-avatar-preview {
    width: 40vw;
    height: 40vw;
  }

  .profile-avatar-more {
    width: 30px;
    height: 30px;
    right: -70px;
    bottom: -4px;
  }
}

.user-screen[data-user-screen-panel="profile"] {
  position: relative;
}

.profile-skeleton-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  padding: 2rem 0 2rem;
  background: var(--lavender-mist);
  display: grid;
  overflow: hidden;
  pointer-events: auto;
}

.profile-skeleton-overlay__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.profile-skeleton-overlay .skeleton {
  position: relative;
  overflow: hidden;
  background-color: var(--skeleton-bg);
  background-image: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.52) 35%, rgb(255, 255, 255) 50%, rgba(255,255,255,0.52) 65%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 200% 100%;
  animation: profile-skeleton-bg-shimmer 0.4s ease-in-out infinite;
}

.profile-skeleton-overlay .skeleton::after {
  display: block !important;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 42%, rgba(255,255,255,0) 100%) !important;
  animation: profile-skeleton-shimmer 0.4s ease-in-out infinite !important;
  opacity: 1;
  will-change: transform;
}

@keyframes profile-skeleton-bg-shimmer {
  0% {
    background-position: -150% 0;
  }
  100% {
    background-position: 150% 0;
  }
}

@keyframes profile-skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.profile-skeleton-header,
.profile-skeleton-actions,
.profile-skeleton-achievements,
.profile-skeleton-grid,
.profile-skeleton-panel-grid {
  display: grid;
  gap: 0.85rem;
}

.profile-skeleton-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-skeleton-card {
  border-radius: 24px;
  width: 100%;
  min-height: 170px;
}

.profile-skeleton-actions {
  grid-template-columns: repeat(3, minmax(0, max-content));
  align-items: center;
}

.profile-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-section-block {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.biling-renewal-box {
  display: flex;
  flex-direction: row;
  gap: 1.5vw;
}

.user-section-block h2 {
  margin: 0;
  font: 700 32px/1.2 var(--montserrat);
  color: var(--black);
  font-size: 1.5vw;
  font-weight: 600;
}

.user-section-block p {
  margin: 8px 0 0;
  font: 500 16px/1.45 var(--montserrat);
  color: var(--gray);
}

.user-partnership-card,
.user-support-card,
.user-history-table-wrapper,
.user-progress-grid,
.user-badges-grid {
  width: 100%;
}

.user-partnership-card,
.user-support-card {
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.user-partnership-card__label,
.user-support-card span {
  display: block;
  color: var(--gray);
  font-size: 0.95rem;
}

.user-partnership-card__status,
.user-support-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
  color: var(--black);
}

.user-partnership-card__status {
  color: var(--purple);
}

.user-partnership-coupon,
.user-partnership-stats {
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.05);
}

.user-partnership-coupon {
  margin-top: 1rem;
}

.user-partnership-coupon strong {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  color: var(--black);
}

.partner-coupon-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.partner-coupon-code-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid var(--alabaster-gray);
  background: var(--snow);
  color: var(--black);
  font: 700 1.05rem/1.2 var(--montserrat);
  letter-spacing: 0.03em;
  word-break: break-all;
}

.partner-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.partner-stats-grid > div {
  border-radius: 16px;
  padding: 18px;
  background: var(--snow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.partner-stats-label {
  color: var(--gray);
  font-size: 0.92rem;
}

.partner-stats-grid strong {
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--black);
}

.user-partnership-stats .user-help-text {
  margin-top: 1rem;
  color: var(--gray);
}

.user-partnership-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
}

.user-partnership-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--snow);
  border-radius: 14px;
  padding: 16px;
}

.user-partnership-summary__item strong {
  font-size: 0.95rem;
  color: var(--gray);
}

.user-partnership-summary__item span {
  font-size: 1rem;
  color: var(--black);
  word-break: break-word;
}

.partnership-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.partnership-steps-list li {
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.partnership-steps-list li strong {
  color: var(--purple);
}

.user-partnership-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-partnership-request-shell {
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
}

.user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.user-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gray);
}

.user-form-grid input,
.user-form-grid textarea,
.user-form-grid select {
  width: 100%;
  border: 1px solid var(--alabaster-gray);
  border-radius: 10px;
  background: var(--snow);
  padding: 12px 14px;
  font: 500 0.95rem/1.4 var(--montserrat);
  color: var(--black);
}

.user-form-grid textarea {
  resize: vertical;
}

.user-form-field {
  display: flex;
  flex-direction: column;
}

.user-form-field--full {
  grid-column: 1 / -1;
}

.chip-input {
  display: grid;
  gap: 0.85rem;
}

.chip-input__controls {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 0.85rem;
}

.chip-input__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-input__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(111, 0, 255, 0.08);
  border: 1px solid rgba(111, 0, 255, 0.18);
  color: var(--black);
  font: 500 0.92rem var(--montserrat);
}

.chip-input__chip-remove {
  border: none;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.chip-input__chip-remove:hover {
  color: var(--eletric-indigo);
}

.chip-input__chip-label {
  display: inline-block;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-partnership-request-shell {
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 16px;
  padding: 24px;
}

@media (max-width: 900px) {
  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .chip-input__controls {
    grid-template-columns: 1fr;
  }
}

.user-form-grid label[style*="grid-column"] {
  grid-column: 1 / -1;
}

.user-history-table-wrapper {
  overflow-x: auto;
}

.user-history-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 12px;
  overflow: hidden;
}

.user-history-table th,
.user-history-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-history-table th {
  font-weight: 700;
  color: var(--black);
  background: var(--lavender-mist);
}

.user-history-empty {
  text-align: center;
  color: var(--gray);
  padding: 2rem 0;
}

.user-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.progress-card {
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.progress-card strong {
  font-size: 2rem;
  color: var(--black);
}

.progress-card span {
  color: var(--gray);
}

.user-equipped-badges,
.user-badges-grid,
.user-equipped-insignias,
.user-insignias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}

.user-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.user-badge-card,
.user-equipped-badge-card,
.user-equipped-insignia-card,
.user-insignia-card,
.profile-equipped-card {
  background: rgba(111, 0, 255, 0.06);
  border: 1px solid rgba(111, 0, 255, 0.16);
  border-radius: 28px;
  padding: 1.35rem;
  text-align: left;
  font-weight: 600;
  color: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 170px;
  width: 100%;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.profile-equipped-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.35rem;
  width: 100%;
}

#profile-equipped-badges-list,
#profile-equipped-insignias-list {
  width: 100%;
  min-height: 120px;
}

.profile-equipped-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(111, 0, 255, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  padding: 1.35rem;
}

.profile-equipped-card strong {
  display: inline-flex;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: #6f00ff;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.profile-equipped-card__icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 1rem;
}

.profile-equipped-card__icon img,
.profile-equipped-card__icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-equipped-card--unlocked {
  border-color: rgba(111, 0, 255, 0.9);
}

.profile-equipped-card--empty {
  background: rgba(111, 0, 255, 0.04);
  border-color: rgba(111, 0, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-weight: 600;
  min-height: 140px;
}

.user-badge-card strong,
.user-equipped-badge-card strong,
.user-insignia-card strong {
  font-size: 1.08rem;
  display: block;
  color: var(--black);
}

.user-badge-card span,
.user-equipped-badge-card span,
.user-insignia-card span {
  color: var(--gray);
  font-size: 0.95rem;
}

.user-badge-card small,
.user-insignia-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--purple);
  font-weight: 500;
}

.user-badge-card:hover,
.user-equipped-badge-card:hover,
.user-insignia-card:hover,
.user-equipped-insignia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(111, 0, 255, 0.24);
}

.user-equipped-badge-card,
.user-equipped-insignia-card {
  background: linear-gradient(180deg, rgba(111, 0, 255, 0.12), rgba(111, 0, 255, 0.05));
  border-color: rgba(111, 0, 255, 0.24);
  min-height: 170px;
  padding: 1.35rem;
}

.insignia-svg {
  width: 96px;
  height: 96px;
  margin-bottom: 0.6rem;
  justify-self: center;
}

.user-equipped-badge-card--empty,
.user-equipped-insignia-card--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  min-height: 120px;
  text-align: center;
}

.user-equipped-badge-card strong,
.user-equipped-badge-card span {
  width: 100%;
}

.user-badge-action {
  border: 1px solid var(--violet);
  background: var(--violet);
  color: var(--white);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: 700 0.85rem/1 var(--montserrat);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
  justify-self: start;
}

.user-badge-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.user-badge-action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.user-badge-card--equipped {
  border-color: var(--green);
  background: rgba(46, 204, 113, 0.08);
}

.user-badge-card--equipped small {
  color: var(--green);
}

.user-badge-card--locked {
  opacity: 0.92;
  border-color: #e5e7eb;
  background: var(--white);
}

.user-badge-card--unlocked {
  border-color: var(--violet);
  background: rgba(111, 0, 255, 0.06);
}

.user-insignia-card {
  position: relative;
  overflow: hidden;
}

.user-insignia-card::before {
  content: '';
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  top: -20px;
  right: -20px;
  background: radial-gradient(circle at center, rgba(111, 0, 255, 0.18), transparent 55%);
}

.user-insignia-card--unlocked {
  border-color: var(--violet);
  background: rgba(111, 0, 255, 0.05);
}

.user-insignia-card--locked {
  opacity: 0.88;
}

.user-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.user-support-info {
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 14px;
  padding: 1.25rem;
}

.user-support-info strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--black);
}

.user-support-info p {
  margin: 0;
  color: var(--gray);
}

.user-support-card a {
  white-space: nowrap;
}

.user-info-row {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--alabaster-gray);
  border-radius: 6px;
  min-height: 56px;
  padding: 2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform .3s cubic-bezier(0.2, 0.85, 0.3, 1), box-shadow .3s cubic-bezier(0.2, 0.85, 0.3, 1), border-color .3s ease;
}

.user-info-row:hover {
  border-color: rgba(111, 0, 255, 0.24);
}

.billing-line {
  margin-top: 14px;
  background: rgba(111, 0, 255, 0.04);
  border: 1px solid rgba(111, 0, 255, 0.12);
  border-radius: 18px;
  min-height: 56px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.billing-line:hover {
  background: rgba(111, 0, 255, 0.06);
  border-color: rgba(111, 0, 255, 0.24);
}

#dashboard-progress-track {
  background-color: var(--white);
}

.billing-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.2rem 0 0;
}

.billing-card__hint {
  margin: 0.95rem 0 0;
  color: var(--gray);
  font: 500 0.95rem/1.6 var(--montserrat);
  max-width: 760px;
}

#btn-downgrade-subscription {
  border: 1px solid rgba(122, 28, 28, 0.18);
  background: rgba(122, 28, 28, 0.06);
  color: #7a1c1c;
  border-radius: 14px;
  min-height: 48px;
  padding: 0.95rem 1.3rem;
  font: 700 0.95rem var(--montserrat);
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

#btn-downgrade-subscription:hover {
  background: rgba(122, 28, 28, 0.12);
  border-color: rgba(122, 28, 28, 0.28);
  transform: translateY(-1px);
}

#btn-downgrade-subscription:active {
  transform: scale(0.98);
}

#btn-downgrade-subscription:focus-visible {
  outline: 2px solid rgba(122, 28, 28, 0.35);
  outline-offset: 2px;
}

.download-certified-billing {
  border: none;
  padding: 0.85rem;
  width: 44px;
  height: 44px;
  background: rgba(111, 0, 255, 0.06);
  color: var(--eletric-indigo);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}

.download-certified-billing:hover {
  background: rgba(111, 0, 255, 0.12);
  transform: translateY(-1px);
}

.user-info-row span {
  color: var(--eletric-indigo);
  font: 600 15px var(--montserrat);
  font-weight: 400;
  font-size: 1rem;
}

.billing-line span:first-child {
  color: var(--gray);
  font: 600 0.95rem/1.4 var(--montserrat);
  letter-spacing: 0.02em;
}

.biling-renewal-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.billing-chip {
  font: 500 12px var(--montserrat);
  color: #4f13cb;
  border: 1px solid rgba(111, 0, 255, 0.2);
  background: rgba(111, 0, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.billing-renewal-date {
  color: #6f6f77;
  font-size: 0.95rem;
}

#billing-plan-tier {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--eletric-indigo);
}

.billing-settings-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.billing-settings-trigger {
  position: relative;
  border: none;
  background: transparent;
  color: var(--eletric-indigo);
  font: 700 1.05rem var(--montserrat);
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 0.85rem;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.billing-settings-trigger:hover,
.billing-settings-trigger:focus-visible {
  background: rgba(111, 0, 255, 0.08);
  transform: translateY(-1px);
}

.billing-settings-trigger::after {
  content: 'Configurações';
  position: absolute;
  top: calc(100% + 0.35rem);
  left: -350%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.85rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9999;
}

.billing-settings-trigger:hover::after,
.billing-settings-trigger:focus-visible::after {
  opacity: 1;
  transform: translateX(50%) translateY(0.1rem);
}

.billing-settings-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(111, 0, 255, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  display: grid;
  gap: 0.4rem;
  z-index: 20;
}

.billing-settings-menu.hidden {
  display: none;
}

.billing-settings-menu__item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--black);
  font: 600 0.95rem var(--montserrat);
  padding: 0.95rem 1rem;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.billing-settings-menu__item:hover,
.billing-settings-menu__item:focus-visible {
  background: rgba(111, 0, 255, 0.08);
}

.billing-settings-menu__item--danger {
  color: #b91c1c;
}

.billing-settings-menu__item--danger:hover,
.billing-settings-menu__item--danger:focus-visible {
  background: rgba(185, 28, 28, 0.08);
}

.user-inline-actions--compact {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

#btn-manage-subscription {
  width: 100%;
  max-width: 360px;
}

.user-btn-primary.user-btn-primary--small {
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  min-width: auto;
}

.user-screen[data-user-screen-panel="billing"] .user-section-block + .user-section-block {
  margin-top: 1.5rem;
}

.user-screen[data-user-screen-panel="billing"] .user-section-block {
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border: 1px solid rgba(111, 0, 255, 0.08);
  border-radius: 24px;
}

.dashboard-icon-profile {
  width: 22px;
}

.user-btn-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--black);
  font: 700 15px var(--montserrat);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  transition: 0.2s;
  border-radius: 12px;
}

.user-achievements-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.user-screen.is-active {
  display: flex;
  flex-direction: column;
  gap: 5vw;
  margin-left: 4vw;
}

@media (max-width: 900px) {
  .user-content-area {
    padding: 40px 24px;
  }

  .user-screen__header h1 {
    font-size: 2.4rem;
  }

  .user-screen__header p {
    font-size: 0.98rem;
  }

  .user-section-block {
    gap: 1rem;
  }

  .billing-line {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 1rem;
    gap: 0.8rem;
  }

  .billing-line span:first-child {
    width: auto;
    flex: 0 1 auto;
    white-space: nowrap;
  }

  .billing-line span,
  .billing-line strong,
  .billing-line .billing-settings-wrapper {
    width: auto;
    flex: 0 1 auto;
  }

  .biling-renewal-box {
    justify-content: flex-end;
    width: auto;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    display: flex;
  }

  .billing-line .billing-settings-wrapper {
    flex: 0 0 auto;
  }

  .billing-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  #btn-manage-subscription {
    max-width: 100%;
  }

  .user-inline-actions--compact {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .billing-card__hint {
    max-width: 100%;
  }

  .download-certified-billing {
    width: auto;
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-screen {
    transition: none !important;
  }

  .logout-farewell-overlay,
  .profile-welcome-overlay,
  .logout-farewell-overlay::before,
  .logout-farewell-overlay::after,
  .logout-farewell-overlay__fx,
  .profile-welcome-overlay::before,
  .profile-welcome-overlay::after,
  .profile-welcome-overlay__fx,
  .logout-farewell-overlay__content,
  .profile-welcome-overlay__content,
  .logout-farewell-overlay__title span::after,
  .profile-welcome-overlay__title span::after {
    animation: none !important;
    transition: none !important;
  }
}

.user-achievements-list li {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  min-height: 48px;
  background: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--gray);
  font: 500 1rem var(--montserrat);
}

.dashboard-icon-achivement {
  filter: brightness(0);
  width: 2vw;
}

[data-theme="dark"] .user-nav-item__icon,
[data-theme="dark"] .dashboard-icon-profile,
[data-theme="dark"] .dashboard-calendar-head__btn {
  filter: brightness(0) invert(1) contrast(1.12);
}

[data-theme="dark"] .user-nav-item.is-active .user-nav-item__icon {
  filter: brightness(0) invert(1) contrast(1.2) drop-shadow(0 0 0.2rem rgba(255, 255, 255, 0.25));
}

[data-theme="dark"] .dashboard-icon-achivement {
  filter: brightness(0) invert(1) contrast(1.15);
}

.user-actions-right {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.user-btn-primary,
.user-btn-ghost {
  border: 0;
  border-radius: 6px;
  min-height: 48px;
  padding: 10px 20px;
  font: 700 15px var(--montserrat);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.26s cubic-bezier(0.2, 0.85, 0.3, 1), box-shadow 0.26s cubic-bezier(0.2, 0.85, 0.3, 1), filter 0.26s ease, background-color 0.26s ease, border-color 0.26s ease;
}

#btn-resend-confirmation {
  background-color: #6F00FF;
  font-weight: 600;
  color: white;
}

#btn-downgrade-subscription {
  border: 1px solid rgba(111, 0, 255, 0.16);
  background: rgba(111, 0, 255, 0.06);
  color: #4f13cb;
  border-radius: 14px;
  min-height: 48px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#btn-downgrade-subscription:hover {
  background: rgba(111, 0, 255, 0.12);
  border-color: rgba(111, 0, 255, 0.24);
  transform: translateY(-1px);
}

#btn-downgrade-subscription:active {
  transform: scale(0.98);
}

#btn-downgrade-subscription:focus-visible {
  outline: 2px solid rgba(111, 0, 255, 0.35);
  outline-offset: 2px;
}

#logout {
  border: none;
  background: transparent;
}

.user-btn-primary {
  background: #6F00FF;
  color: white;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.user-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(106deg, rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0) 78%);
  transform: translateX(-140%);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.user-btn-primary:hover,
.user-btn-ghost:hover,
.user-btn-link:hover {
  transform: translate3d(0, -2px, 0);
  background: var(--navbar-dropdown-hover-bg);
}

.user-btn-primary:hover::after,
.user-btn-primary:focus-visible::after {
  transform: translateX(140%);
}

.user-btn-ghost:hover {
  background: rgba(111, 0, 255, 0.08);
  border-color: rgba(111, 0, 255, 0.32);
}

.user-btn-primary:active,
.user-btn-ghost:active,
.user-btn-link:active {
  transform: scale(0.98);
}

.user-btn-primary:focus-visible,
.user-btn-ghost:focus-visible,
.user-btn-link:focus-visible,
#logout:focus-visible {
  outline: 2px solid rgba(111, 0, 255, 0.45);
  outline-offset: 2px;
}

#dashboard-calendar-month {
  color: var(--black);
}

.user-btn-primary--small {
  min-height: 38px;
  padding: 8px 18px;
}

.user-btn-ghost {
  background: var(--alabaster-gray);
  color: var(--black);
  border: 1px solid var(--alabaster-gray);
}

.user-inline-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-inline-actions--compact {
  margin-top: 10px;
}

.user-data-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-data-grid p {
  margin: 0;
  background: var(--white);
  border-radius: 6px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.user-data-grid strong {
  font: 700 13px var(--montserrat);
  color: var(--black);
}

.user-data-grid span {
  font: 500 14px var(--montserrat);
  color: #6f6f77;
}

.user-auth-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-auth-2fa-card {
  background: #ffffff;
  border: 1px solid rgba(111, 0, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(30, 10, 70, 0.06);
  display: grid;
  gap: 18px;
}

.user-auth-2fa-card p#two-factor-status {
  margin: 0;
  font: 700 15px var(--montserrat);
  color: #2f1c64;
}

.user-auth-2fa-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.user-auth-2fa-grid > div {
  min-width: 0;
}

#two-factor-current-info {
  color: #4f3f6e;
  font: 500 14px var(--montserrat);
}

#two-factor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#two-factor-controls {
  background: #f8f5ff;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(111, 0, 255, 0.08);
}

#two-factor-code-block {
  margin-top: 12px;
}

#two-factor-code {
  width: 220px;
  max-width: 100%;
}

#two-factor-code-note {
  margin: 8px 0 0;
  color: #7e6e9b;
  font: 500 13px var(--montserrat);
}

.user-auth-grid input,
#new-password,
#confirm-password,
#config-email-input,
#two-factor-email,
#two-factor-code {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(160, 118, 255, 0.35);
  background: #f6f2ff;
  padding: 12px 14px;
  color: #101116;
  font: 500 15px var(--montserrat);
}

.user-auth-grid input::placeholder,
#new-password::placeholder,
#confirm-password::placeholder,
#config-email-input::placeholder {
  color: #9b8db9;
}

.user-help-text {
  margin-top: 10px;
}

.dashboard-ratio {
  margin-top: 8px;
  text-align: right;
  font: 500 16px var(--montserrat);
  color: #8a8a92;
}

.dashboard-progress {
  margin-top: 8px;
  min-height: 50px;
  background: #f6f6f8;
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  padding: 12px;
}

.dashboard-progress__segment {
  border-radius: 2px;
  background: rgba(111, 0, 255, 0.24);
}

.dashboard-progress__segment.is-active {
  background: linear-gradient(90deg, #6f00ff 0%, #4f13cb 100%);
}

.dashboard-streak-box {
  margin-top: 12px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 14px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  transition: transform .3s cubic-bezier(0.2, 0.85, 0.3, 1), box-shadow .3s cubic-bezier(0.2, 0.85, 0.3, 1), border-color .3s ease;
}

.dashboard-streak-box:hover,
.dashboard-calendar-card:hover,
.dashboard-chart-placeholder:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 16px 28px rgba(34, 19, 76, 0.11);
  border-color: rgba(111, 0, 255, 0.2);
}



.dashboard-streak-flame {
  border-radius: 8px;
  background: #efe8ff;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 130px;
}

.dashboard-streak-flame img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.dashboard-streak-flame span {
  position: absolute;
  font: 700 36px var(--montserrat);
  color: white;
}

.dashboard-calendar-card {
  background: var(--white);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform .3s cubic-bezier(0.2, 0.85, 0.3, 1), box-shadow .3s cubic-bezier(0.2, 0.85, 0.3, 1), border-color .3s ease;
}

.dashboard-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dashboard-calendar-head p {
  margin: 0;
  color: #101116;
  font: 600 15px var(--montserrat);
}

.dashboard-calendar-head__btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #101116;
  font: 700 20px/1 var(--montserrat);
  cursor: pointer;
}

.dashboard-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.dashboard-calendar-weekdays span {
  text-align: center;
  color: #8a8a92;
  font: 600 11px var(--montserrat);
}

.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-calendar-day {
  height: 28px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font: 500 13px var(--montserrat);
  color: #222;
  background: transparent;
}

.dashboard-calendar-day.is-outside {
  color: #b4b4bc;
}

.dashboard-calendar-day.is-visited {
  background: linear-gradient(90deg, #6f00ff 0%, #4f13cb 100%);
  color: var(--color-on-accent);
}

.dashboard-calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(111, 0, 255, 0.5);
}

.dashboard-calendar-day.is-visited.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.dashboard-chart-placeholder {
  margin-top: 12px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 14px;
  transition: transform .3s cubic-bezier(0.2, 0.85, 0.3, 1), box-shadow .3s cubic-bezier(0.2, 0.85, 0.3, 1), border-color .3s ease;
}

.chart-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-controls__left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chart-label {
  display: inline-flex;
  flex-direction: column;
  font: 500 13px var(--montserrat);
  color: #6f6f77;
  gap: 6px;
}

.chart-select {
  min-width: 150px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(160, 118, 255, 0.25);
  background: #fff;
  font: 500 14px var(--montserrat);
  color: #101116;
}

.chart-controls__right {
  display: flex;
  align-items: center;
}

.chart-body {
  min-height: 260px;
  background: transparent;
  border-radius: 8px;
  padding: 8px 4px 2px;
}

.chart-body canvas {
  width: 100% !important;
  height: 260px !important;
}

.billing-chip {
  font: 500 12px var(--montserrat);
  color: #6f6f77;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.billing-chip--cancelled {
  color: #7a1c1c;
  background: #fff2f2;
  border-color: rgba(172, 55, 55, 0.35);
  font-weight: 700;
  font-family: var(--montserrat);
}

.user-config-line {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 190px 150px;
  gap: 8px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1000px) {
  .user-topbar {
    padding: 10px 14px;
  }

  .user-topbar__brand {
    font-size: 28px;
  }

  .user-topbar__nav {
    display: none;
  }

  .user-workspace {
    grid-template-columns: 1fr;
  }

  .user-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 8px;
    gap: 12px;
    position: static;
    height: auto;
    overflow: visible;
    display: flex;
    justify-content: center;
    width: 100vw;
    box-sizing: border-box;
    max-width: 100%;
  }

  .profile-equipped-panels {
    display: flex;
    flex-direction: column;
    max-width: 90vw;
  }

  .user-screen[data-user-screen-panel="billing"] .user-section-block {
    max-width: 85vw;
  }

  .user-brand {
    font-size: 28px;
  }

  .user-brand span {
    font-size: 28px;
  }

  .user-sidebar__nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
    margin: 0 auto;
    padding-left: 0;
    margin-left: 0;
  }

  .user-nav-item {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 14px;
  }

  /* Mobile: mostrar apenas ícones na sidebar */
  .user-sidebar .user-nav-item span {
    display: none;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .user-sidebar__nav {
    align-items: center;
    padding-left: 0;
    margin-left: 0;
  }

  .user-nav-item {
    min-width: 48px;
    width: 48px;
    height: 48px;
    justify-content: center;
    gap: 0;
    padding: 6px;
    border-radius: 10px;
  }

  .user-nav-item__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin: 0;
  }

  .user-content-area {
    padding: 24px 16px 32px;
  }

  .user-screen__header h1 {
    font-size: 44px;
  }

  .user-screen__header p,
  .user-section-block p {
    font-size: 14px;
  }

  .user-section-block h2 {
    font-size: 28px;
  }

  .user-info-row,
  .billing-line {
    max-width: 87vw;
  }

  .user-data-grid,
  .user-auth-grid,
  .user-config-line {
    grid-template-columns: 1fr;
    max-width: 85vw;
  }

  .dashboard-progress {
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 12px;
    
    width: 85vw;
  }

  .dashboard-streak-box {
    grid-template-columns: 1fr;
    width: 87vw;
  }

  .user-inline-actions,
  .user-actions-right {
    justify-content: stretch;
    max-width: 87vw;
  }

  .user-btn-primary,
  .user-btn-ghost,
  .user-btn-link {
    width: 100%;
  }

  .user-btn-ghost {
    width:83vw;
  }

  .user-screen {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }

  .user-screen.is-active {
    gap: 1.5rem;
  }

  .user-section-block {
    width: 100%;
    padding: 0;
  }

  .user-progress-grid,
  .user-contact-grid,
  .user-partnership-summary,
  .partner-stats-grid,
  .user-badges-grid,
  .user-equipped-badges,
  .user-equipped-insignias,
  .user-insignias-grid {
    grid-template-columns: 1fr;
  }

  .user-partnership-card,
  .user-support-card,
  .user-partnership-coupon,
  .user-partnership-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .partner-coupon-code-row {
    grid-template-columns: 1fr;
  }

  .user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .user-form-field {
    width: 100%;
  }

  .user-form-field--full {
    grid-column: 1 / -1;
  }

  .user-history-table-wrapper {
    overflow-x: auto;
  }

  .user-history-table {
    width: 100%;
    min-width: 700px;
  }

  .dashboard-streak-box {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-calendar-card,
  .dashboard-chart-placeholder {
    width: 100%;
  }

  .user-actions-right,
  .user-inline-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Ajustes finos para telefones menores */
@media (max-width: 720px) {
  .user-content-area {
    padding: 16px 12px;
  }

  .user-screen__header h1 {
    font-size: 2.2rem;
  }

  .user-section-block h2 {
    font-size: 1.35rem;
  }

  .user-screen__header p,
  .user-section-block p {
    font-size: 1rem;
    max-width: 85vw;
  }

  .user-info-row span {
    font-size: 3vw;
  }

  .user-info-row,
  .billing-line {
    padding: 10px;
    gap: 8px;
    display: flex;
    flex-direction: row;
  }

  .user-data-grid p {
    padding: 8px;
  }

  .user-auth-grid input,
  #new-password,
  #confirm-password,
  #config-email-input {
    min-height: 44px;
    padding: 8px;
    font-size: 14px;
  }

  .dashboard-streak-box {
    padding: 10px;
    gap: 10px;
  }

  .dashboard-streak-flame {
    min-height: 70px;
  }

  .dashboard-streak-flame img {
    width: 48px;
    height: 48px;
  }

  .dashboard-streak-flame span {
    font-size: 18px;
  }

  .dashboard-calendar-card {
    padding: 8px;
    overflow-x: auto;
  }

  .dashboard-calendar-grid {
    gap: 4px;
  }

  .dashboard-calendar-day {
    height: 24px;
    font-size: 12px;
  }

  .chart-body {
    min-height: 160px;
  }

  .chart-body canvas {
    height: 160px !important;
  }

  .dashboard-chart-placeholder {
    padding: 10px;
    width: 100%;
  }

  #chart-refresh-btn {
    display: none;
  }

  .user-achievements-list li {
    padding: 8px;
    gap: 10px;
    width: 87vw;
    font-size: 3vw;
  }

  .user-achievements-list img,
  .dashboard-icon-achivement {
    width: 20px;
    height: 20px;
  }

  /* Tornar a barra de navegação do topo (user-sidebar) mais estreita em telefones pequenos */
  .user-sidebar__nav {
    margin: 0 auto;
    gap: 6px;
    padding-left: 0;
    margin-left: 0;
  }

  .user-nav-item {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 8px;
  }

  .user-nav-item__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .user-config-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .user-actions-right {
    justify-content: flex-end;
    gap: 8px;
  }

  .user-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-partnership-summary,
  .partner-stats-grid,
  .user-badges-grid,
  .user-equipped-badges,
  .user-equipped-insignias,
  .user-insignias-grid,
  .user-form-grid,
  .user-contact-grid {
    grid-template-columns: 1fr;
  }

  .user-form-grid {
    width: 100%;
    gap: 0.85rem;
  }

  .user-form-field--full {
    grid-column: 1 / -1;
  }

  .user-partnership-card,
  .user-support-card,
  .user-partnership-coupon,
  .user-partnership-stats {
    flex-direction: column;
    align-items: stretch;
    max-width: 85vw;
  }

  .partnership-steps-list li {
    max-width: 85vw;
  }

  .user-history-table, .user-section-block {
    max-width: 85vw;
  }

  .user-history-table th {
    font-size: 1.7vw;
  }

  .partner-coupon-code-row {
    grid-template-columns: 1fr;
  }

  .user-history-table-wrapper {
    overflow-x: auto;
  }

  .user-history-table {
    min-width: 100%;
  }

  .billing-line {
    flex-direction: column;
    align-items: stretch;
  }

  .billing-card__actions {
    flex-direction: column;
    width: 100%;
  }

  .user-help-text {
    font-size: 0.95rem;
  }

  .chart-body canvas {
    height: 160px !important;
  }

  .dashboard-chart-placeholder {
    width: 100%;
    max-width: 85vw;
  }

  .user-btn-primary,
  .user-btn-ghost {
    min-height: 44px;
    padding: 10px;
  }

  .download-certified-billing {
    padding: 8px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .user-screen[data-user-screen-panel="billing"] .billing-line {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    min-height: auto;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-line span:first-child,
  .user-screen[data-user-screen-panel="billing"] .billing-line span,
  .user-screen[data-user-screen-panel="billing"] .billing-line strong,
  .user-screen[data-user-screen-panel="billing"] .billing-line .billing-settings-wrapper,
  .user-screen[data-user-screen-panel="billing"] .billing-line .user-inline-actions--compact {
    width: 100%;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-line .billing-settings-wrapper {
    justify-content: flex-end;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-settings-trigger::after {
    display: none;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-screen[data-user-screen-panel="billing"] .user-inline-actions--compact {
    justify-content: flex-start;
  }

  .user-screen[data-user-screen-panel="billing"] #btn-manage-subscription,
  .user-screen[data-user-screen-panel="billing"] .user-btn-primary,
  .user-screen[data-user-screen-panel="billing"] .user-btn-ghost {
    width: 100%;
    max-width: 100%;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-card__hint {
    max-width: 100%;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-line span:first-child {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .user-screen[data-user-screen-panel="billing"] #billing-plan-tier {
    font-size: 1.05rem;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-chip {
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-renewal-date {
    font-size: 0.85rem;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-settings-trigger {
    font-size: 0.95rem;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-line,
  .user-screen[data-user-screen-panel="billing"] .billing-line span,
  .user-screen[data-user-screen-panel="billing"] .billing-line strong,
  .user-screen[data-user-screen-panel="billing"] .billing-settings-wrapper {
    word-break: break-word;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .user-screen[data-user-screen-panel="billing"] .billing-line {
    padding: 0.85rem 0.85rem;
    gap: 0.5rem;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-line span:first-child {
    font-size: 0.8rem;
    line-height: 1.3;
    padding-left: 2vw !important;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-line span {
    font-size: 0.82rem;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .user-screen[data-user-screen-panel="billing"] #billing-plan-tier {
    font-size: 0.95rem;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-chip {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-renewal-date {
    font-size: 0.78rem;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-settings-trigger {
    font-size: 0.88rem;
    padding: 0.2rem 0.4rem;
    width: 8vw;
  }

  .user-screen[data-user-screen-panel="billing"] .billing-card__hint {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}
