/* Integração do site comercial do Gustavo com autenticação do Study.io. */
.studyio-auth-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(12, 18, 34, .72);
  color: #cbd5e1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.studyio-auth-entry:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, .30);
  background: rgba(17, 26, 48, .92);
  transform: translateY(-1px);
}

.studyio-developer-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: #07090e;
  padding: 22px 24px 28px;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.studyio-developer-footer a {
  color: #a5b4fc;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.studyio-developer-footer a:hover {
  color: #67e8f9;
}

@media (max-width: 767px) {
  .studyio-auth-entry {
    display: none;
  }
}


/* Planos Study.io: mensal e anual, integrados ao design base. */
.studyio-pricing-section {
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
  background: #07090e;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #e2e8f0;
}

.studyio-pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom,
      transparent,
      black 20%,
      black 80%,
      transparent);
}

.studyio-pricing-glow {
  position: absolute;
  width: 700px;
  height: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle,
      rgba(99, 102, 241, .18),
      rgba(34, 211, 238, .08) 38%,
      transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.studyio-pricing-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.studyio-pricing-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.studyio-pricing-kicker {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, .3);
  border-radius: 999px;
  background: rgba(99, 102, 241, .09);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.studyio-pricing-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
}

.studyio-pricing-heading h2 span {
  color: transparent;
  background: linear-gradient(90deg,
      #67e8f9,
      #a5b4fc,
      #f0abfc);
  background-clip: text;
  -webkit-background-clip: text;
}

.studyio-pricing-heading p {
  max-width: 620px;
  margin: 16px auto 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.75;
}

.studyio-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 18px;
}

.studyio-price-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 26px;
  background: linear-gradient(145deg,
      rgba(15, 23, 42, .9),
      rgba(8, 13, 28, .88));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.studyio-price-card.featured {
  border-color: rgba(99, 102, 241, .46);
  box-shadow:
    0 30px 95px rgba(79, 70, 229, .18),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.studyio-price-card.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(130deg,
      rgba(99, 102, 241, .48),
      transparent 40%,
      rgba(34, 211, 238, .28));
  filter: blur(12px);
  opacity: .5;
}

.studyio-price-card-top h3 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.studyio-price-card-top p {
  margin: 7px 0 26px;
  color: #94a3b8;
  font-size: 12px;
}

.studyio-price {
  min-height: 58px;
  display: flex;
  align-items: baseline;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.studyio-price-note {
  min-height: 18px;
  margin-top: -5px;
  color: #67e8f9;
  font-size: 10px;
  font-weight: 800;
}

.studyio-price-card ul {
  list-style: none;
  padding: 0;
  margin: 25px 0 28px;
  display: grid;
  gap: 12px;
}

.studyio-price-card li {
  position: relative;
  padding-left: 24px;
  color: #a8b3c7;
  font-size: 12px;
  line-height: 1.5;
}

.studyio-price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 900;
}

.studyio-price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(99, 102, 241, .12);
  border: 1px solid rgba(129, 140, 248, .28);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.studyio-plan-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.studyio-plan-button:hover {
  transform: translateY(-2px);
}

.studyio-plan-button.secondary {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(30, 41, 59, .72);
  color: #f8fafc;
}

.studyio-plan-button.secondary:hover {
  border-color: rgba(34, 211, 238, .32);
  background: rgba(30, 41, 59, .94);
}

.studyio-plan-button.primary {
  color: #fff;
  background: linear-gradient(90deg,
      #6366f1,
      #4f46e5,
      #06b6d4);
  box-shadow: 0 16px 38px rgba(79, 70, 229, .28);
}

.studyio-plan-button.primary:hover {
  box-shadow: 0 18px 44px rgba(34, 211, 238, .28);
}

.studyio-plan-button:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.studyio-pricing-footnote {
  margin: 22px auto 0;
  color: #64748b;
  font-size: 11px;
  text-align: center;
}

.studyio-pricing-guarantee {
  max-width: 520px;
  margin: 28px auto 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(52, 211, 153, .16);
  border-radius: 18px;
  background: rgba(6, 78, 59, .08);
}

.studyio-guarantee-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(52, 211, 153, .24);
  border-radius: 10px;
  color: #34d399;
  background: rgba(16, 185, 129, .08);
  font-weight: 900;
}

.studyio-pricing-guarantee div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.studyio-pricing-guarantee strong {
  color: #fff;
  font-size: 12px;
}

.studyio-pricing-guarantee span:not(.studyio-guarantee-icon) {
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 760px) {
  .studyio-pricing-section {
    padding: 76px 18px;
  }

  .studyio-pricing-grid {
    grid-template-columns: 1fr;
  }

  .studyio-price-card {
    padding: 25px;
  }

  .studyio-price-badge {
    top: 17px;
    right: 17px;
  }
}


/* Novas features do app desktop, adicionadas sem substituir o design base. */
.studyio-evolution-section {
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
  background: linear-gradient(180deg,
      #07090e 0%,
      #090e1c 52%,
      #07090e 100%);
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #e2e8f0;
}

.studyio-evolution-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom,
      transparent,
      black 18%,
      black 82%,
      transparent);
}

.studyio-evolution-glow {
  position: absolute;
  width: 780px;
  height: 460px;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle,
      rgba(99, 102, 241, .17),
      rgba(34, 211, 238, .07) 40%,
      transparent 72%);
  filter: blur(75px);
  pointer-events: none;
}

.studyio-evolution-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.studyio-evolution-heading {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.studyio-evolution-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, .30);
  border-radius: 999px;
  background: rgba(99, 102, 241, .09);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
}

.studyio-evolution-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.04em;
}

.studyio-evolution-heading h2 span {
  color: transparent;
  background: linear-gradient(90deg,
      #67e8f9,
      #a5b4fc,
      #f0abfc);
  background-clip: text;
  -webkit-background-clip: text;
}

.studyio-evolution-heading p {
  max-width: 690px;
  margin: 17px auto 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.78;
}

.studyio-evolution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.studyio-feature-card {
  position: relative;
  min-height: 242px;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 24px;
  background: linear-gradient(145deg,
      rgba(10, 15, 29, .96),
      rgba(8, 13, 25, .91));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.studyio-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.studyio-feature-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid currentColor;
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
}

.studyio-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studyio-feature-card h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.studyio-feature-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.72;
}

.studyio-feature-card>span {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 20px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: currentColor;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.studyio-feature-card.accent-indigo {
  color: #a5b4fc;
}

.studyio-feature-card.accent-indigo:hover {
  border-color: rgba(129, 140, 248, .35);
}

.studyio-feature-card.accent-cyan {
  color: #67e8f9;
}

.studyio-feature-card.accent-cyan:hover {
  border-color: rgba(34, 211, 238, .35);
}

.studyio-feature-card.accent-pink {
  color: #f0abfc;
}

.studyio-feature-card.accent-pink:hover {
  border-color: rgba(232, 121, 249, .33);
}

.studyio-feature-card.accent-emerald {
  color: #6ee7b7;
}

.studyio-feature-card.accent-emerald:hover {
  border-color: rgba(52, 211, 153, .33);
}

.studyio-feature-card.accent-amber {
  color: #fcd34d;
}

.studyio-feature-card.accent-amber:hover {
  border-color: rgba(251, 191, 36, .33);
}

.studyio-feature-card.accent-purple {
  color: #c4b5fd;
}

.studyio-feature-card.accent-purple:hover {
  border-color: rgba(167, 139, 250, .35);
}

.studyio-feature-card.accent-blue {
  color: #7dd3fc;
}

.studyio-feature-card.accent-blue:hover {
  border-color: rgba(56, 189, 248, .35);
}

.studyio-feature-card.accent-red {
  color: #fda4af;
}

.studyio-feature-card.accent-red:hover {
  border-color: rgba(251, 113, 133, .33);
}

@media (max-width: 1050px) {
  .studyio-evolution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .studyio-evolution-section {
    padding: 76px 18px;
  }

  .studyio-evolution-grid {
    grid-template-columns: 1fr;
  }

  .studyio-feature-card {
    min-height: 226px;
  }
}

.studyio-plan-button .spinner {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 7px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: studyio-spin .7s linear infinite;
}

@keyframes studyio-spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-host {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}

.toast {
  opacity: 0;
  transform: translateY(8px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: rgba(10, 15, 29, .96);
  color: #e2e8f0;
  font: 600 12px/1.45 "Plus Jakarta Sans", sans-serif;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .38);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  border-color: rgba(251, 113, 133, .32);
}

.toast-success {
  border-color: rgba(52, 211, 153, .30);
}


/* Catálogo de temas exibido dentro da seção Perfil & Temas. */
.studyio-theme-catalog {
  position: relative;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 26px;
  background: linear-gradient(145deg,
      rgba(10, 15, 29, .92),
      rgba(8, 13, 25, .88));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.studyio-theme-catalog::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 260px;
  right: -100px;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle,
      rgba(168, 85, 247, .20),
      rgba(34, 211, 238, .07) 45%,
      transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}

.studyio-theme-catalog-head {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.studyio-theme-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(168, 85, 247, .28);
  border-radius: 999px;
  background: rgba(126, 34, 206, .10);
  color: #d8b4fe;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
}

.studyio-theme-catalog h3 {
  margin: 13px 0 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 800;
  letter-spacing: -.025em;
}

.studyio-theme-catalog p {
  margin: 10px 0 0;
  max-width: 720px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
}

.studyio-theme-cloud {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.studyio-theme-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  transition:
    transform .18s ease,
    border-color .18s ease,
    color .18s ease,
    background .18s ease;
}

.studyio-theme-cloud span:nth-child(4n+1) {
  border-color: rgba(34, 211, 238, .18);
}

.studyio-theme-cloud span:nth-child(4n+2) {
  border-color: rgba(129, 140, 248, .18);
}

.studyio-theme-cloud span:nth-child(4n+3) {
  border-color: rgba(232, 121, 249, .18);
}

.studyio-theme-cloud span:nth-child(4n+4) {
  border-color: rgba(52, 211, 153, .18);
}

.studyio-theme-cloud span:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(165, 180, 252, .36);
}


/* Preview real do módulo social/comunidades. */
.studyio-social-preview {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 28px;
  padding: 14px;
  border: 1px solid rgba(129, 140, 248, .16);
  border-radius: 26px;
  background: linear-gradient(145deg,
      rgba(10, 15, 29, .96),
      rgba(8, 13, 25, .92));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .30);
}

.studyio-social-preview-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: #080b14;
}

.studyio-social-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  object-position: left top;
}

.studyio-social-preview figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 18px 20px 10px;
}

.studyio-social-preview figcaption>span {
  color: #67e8f9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.studyio-social-preview figcaption strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.studyio-social-preview figcaption p {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .studyio-social-preview {
    grid-template-columns: 1fr;
  }

  .studyio-social-preview-frame img {
    min-height: 0;
    height: auto;
  }

  .studyio-social-preview figcaption {
    padding: 12px 8px 10px;
  }
}

@media (max-width: 640px) {
  .studyio-theme-catalog {
    padding: 22px 18px;
    margin-top: 26px;
  }

  .studyio-theme-cloud {
    gap: 7px;
  }

  .studyio-theme-cloud span {
    font-size: 9px;
    min-height: 29px;
    padding: 0 9px;
  }
}


/* Galeria de telas reais: social, chat, perfis e gamificação. */
.studyio-social-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin: 0 0 30px;
  min-width: 0;
}

.studyio-gallery-card {
  position: relative;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%,
      rgba(99, 102, 241, .09),
      transparent 32%),
    linear-gradient(145deg,
      rgba(10, 15, 29, .97),
      rgba(7, 11, 21, .94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.studyio-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.studyio-gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, .24);
  box-shadow: 0 30px 85px rgba(0, 0, 0, .32);
}


/* O print principal ganha uma linha inteira. Isso evita esmagar Chat/Notificações. */
.studyio-gallery-card--friends-chat {
  grid-column: 1 / -1;
}

.studyio-gallery-detail-stack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  align-items: stretch;
}

.studyio-gallery-card--profile,
.studyio-gallery-card--achievements {
  grid-column: span 6;
}

.studyio-gallery-card--friends {
  grid-column: 1 / -1;
}

.studyio-gallery-copy {
  padding: 22px 23px 18px;
}

.studyio-gallery-copy>span,
.studyio-gallery-detail-label>span {
  color: #7dd3fc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.studyio-gallery-card--achievements .studyio-gallery-copy>span {
  color: #fcd34d;
}

.studyio-gallery-card--profile .studyio-gallery-copy>span {
  color: #6ee7b7;
}

.studyio-gallery-card--friends .studyio-gallery-copy>span {
  color: #a5b4fc;
}

.studyio-gallery-copy h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.02em;
}

.studyio-gallery-copy p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.72;
}

.studyio-gallery-copy--compact {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 15px;
}

.studyio-gallery-copy--compact h3 {
  margin: 0;
}

.studyio-gallery-screen {
  position: relative;
  margin: 0 13px 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 16px;
  background: #060812;
}

.studyio-gallery-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .018),
    inset 0 -40px 70px rgba(3, 5, 12, .06);
}

.studyio-gallery-screen img {
  display: block;
  width: 100%;
  max-width: 100%;
  transition:
    transform .35s ease,
    filter .35s ease;
}

.studyio-gallery-card:hover .studyio-gallery-screen img {
  transform: scale(1.008);
}

.studyio-gallery-screen--desktop {
  aspect-ratio: 2 / 1;
}

.studyio-gallery-screen--desktop img {
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.studyio-gallery-card--friends .studyio-gallery-screen--desktop {
  aspect-ratio: 2.45 / 1;
}

.studyio-gallery-card--friends .studyio-gallery-screen--desktop img {
  object-position: center 10%;
}


/* Chat e notificações agora são cards largos, com screenshot realmente legível. */
.studyio-gallery-card--detail {
  display: grid;
  grid-template-columns:
    minmax(180px, .82fr) minmax(250px, 1.18fr);
  align-items: stretch;
  min-height: 300px;
}

.studyio-gallery-detail-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 18px 24px 24px;
}

.studyio-gallery-detail-label strong {
  display: block;
  max-width: 250px;
  margin-top: 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.42;
}

.studyio-gallery-card--detail:nth-child(2) .studyio-gallery-detail-label>span {
  color: #c4b5fd;
}

.studyio-gallery-screen--portrait {
  width: auto;
  height: calc(100% - 28px);
  min-height: 250px;
  max-height: none;
  margin: 14px 14px 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background:
    radial-gradient(circle at 50% 5%,
      rgba(99, 102, 241, .09),
      transparent 42%),
    #060812;
}

.studyio-gallery-screen--portrait img {
  width: 100%;
  height: 100%;
  max-height: 330px;
  object-fit: contain;
  object-position: center;
}

.studyio-gallery-card--profile .studyio-gallery-screen,
.studyio-gallery-card--achievements .studyio-gallery-screen {
  margin-top: 0;
}


/* Tablet */
@media (max-width: 980px) {

  .studyio-gallery-card--friends-chat,
  .studyio-gallery-detail-stack,
  .studyio-gallery-card--profile,
  .studyio-gallery-card--achievements,
  .studyio-gallery-card--friends {
    grid-column: 1 / -1;
  }

  .studyio-gallery-detail-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .studyio-gallery-card--detail {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .studyio-gallery-detail-label {
    justify-content: flex-start;
    padding: 20px 20px 12px;
  }

  .studyio-gallery-detail-label strong {
    max-width: none;
    font-size: 15px;
  }

  .studyio-gallery-screen--portrait {
    height: 300px;
    min-height: 0;
    margin: 0 12px 12px;
  }

  .studyio-gallery-screen--portrait img {
    max-height: 282px;
  }
}


/* Celular */
@media (max-width: 640px) {

  .studyio-pricing-section,
  .studyio-evolution-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .studyio-pricing-wrap,
  .studyio-evolution-wrap,
  .studyio-pricing-heading,
  .studyio-evolution-heading,
  .studyio-theme-catalog,
  .studyio-social-preview,
  .studyio-social-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .studyio-pricing-heading h2,
  .studyio-evolution-heading h2 {
    font-size: clamp(27px, 9vw, 38px);
    overflow-wrap: anywhere;
  }

  .studyio-evolution-heading p,
  .studyio-pricing-heading p {
    font-size: 13px;
  }

  .studyio-social-gallery {
    gap: 13px;
  }

  .studyio-gallery-detail-stack {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .studyio-gallery-card {
    border-radius: 19px;
  }

  .studyio-gallery-copy {
    padding: 18px 16px 14px;
  }

  .studyio-gallery-copy h3 {
    font-size: 16px;
  }

  .studyio-gallery-copy p {
    font-size: 11px;
  }

  .studyio-gallery-copy--compact {
    display: block;
  }

  .studyio-gallery-copy--compact h3 {
    margin-top: 7px;
  }

  .studyio-gallery-screen {
    margin: 0 8px 8px;
    border-radius: 12px;
  }

  .studyio-gallery-screen--desktop,
  .studyio-gallery-card--friends .studyio-gallery-screen--desktop {
    aspect-ratio: auto;
  }

  .studyio-gallery-screen--desktop img {
    height: auto;
    object-fit: contain;
  }

  .studyio-gallery-card--detail {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .studyio-gallery-detail-label {
    padding: 18px 16px 12px;
  }

  .studyio-gallery-detail-label strong {
    max-width: none;
    font-size: 15px;
  }

  .studyio-gallery-screen--portrait {
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 8px 8px;
    padding: 6px;
  }

  .studyio-gallery-screen--portrait img {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
  }

  .studyio-social-preview {
    padding: 9px;
    border-radius: 19px;
  }

  .studyio-social-preview-frame {
    border-radius: 13px;
  }

  .studyio-social-preview figcaption {
    padding: 12px 8px 10px;
  }

  .studyio-social-preview figcaption strong {
    font-size: 17px;
  }

  .studyio-theme-catalog {
    padding: 20px 15px;
    margin-top: 24px;
    border-radius: 20px;
  }

  .studyio-theme-cloud {
    gap: 6px;
  }

  .studyio-theme-cloud span {
    min-height: 28px;
    max-width: 100%;
    padding: 0 9px;
    font-size: 9px;
    white-space: normal;
    text-align: center;
  }

  .studyio-pricing-grid,
  .studyio-evolution-grid {
    width: 100%;
    min-width: 0;
  }

  .studyio-price-card,
  .studyio-feature-card {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {

  .studyio-pricing-section,
  .studyio-evolution-section {
    padding: 62px 12px;
  }

  .studyio-theme-catalog {
    padding: 18px 13px;
  }

  .studyio-price-card {
    padding: 22px 18px;
  }

  .studyio-feature-card {
    padding: 20px 18px;
  }

  .studyio-gallery-copy {
    padding: 16px 14px 12px;
  }

  .studyio-gallery-detail-label {
    padding: 16px 14px 10px;
  }

  .studyio-gallery-screen--portrait img {
    max-height: 390px;
  }

  .studyio-developer-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* Visualizador em tela cheia para screenshots das features. */
.studyio-expandable-image {
  cursor: zoom-in;
}

.studyio-expandable-image:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .95);
  outline-offset: -3px;
}

body.studyio-viewer-open {
  overflow: hidden;
}

.studyio-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(2, 6, 23, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.studyio-image-viewer.is-open {
  display: block;
}

.studyio-image-viewer-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 58px 22px 42px;
  -webkit-overflow-scrolling: touch;
  touch-action: pinch-zoom;
}

.studyio-image-viewer-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1800px);
  max-height: calc(100vh - 105px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .55);
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-drag: none;
}

.studyio-image-viewer-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.studyio-image-viewer-hint {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #cbd5e1;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
}

@media (min-width: 769px) {
  .studyio-image-viewer-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .studyio-image-viewer-stage {
    align-items: flex-start;
    padding: 62px 8px 54px;
  }

  .studyio-image-viewer-image {
    max-width: none;
    width: max-content;
    min-width: 100%;
    max-height: none;
    border-radius: 8px;
  }
}