.internal-app {
  min-height: 100vh;
  padding-bottom: 86px;
}

.internal-main {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 12px 12px 20px;
  display: grid;
  gap: 12px;
}

.primary-col,
.secondary-col {
  display: grid;
  gap: 12px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.hero-mobile {
  overflow: hidden;
  position: relative;
}

.hero-mobile-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(140deg, rgba(224, 192, 122, 0.22), rgba(255, 255, 255, 0.04)),
    var(--hero-image, linear-gradient(130deg, rgba(36, 59, 103, 0.9), rgba(16, 27, 48, 0.95)));
  background-size: cover;
  background-position: center;
}

.hero-mobile-content {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.hero-mobile-title {
  font-size: clamp(1.45rem, 5.4vw, 2rem);
  color: rgba(255, 255, 255, 0.98);
}

.meta-row {
  display: grid;
  gap: 6px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.meta-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--gold2);
}

.detail-card {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.detail-card h2,
.detail-card h3 {
  font-size: 1.15rem;
}

.detail-card p {
  color: var(--muted);
}

.detail-card summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.mini-map {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 148px;
  background:
    linear-gradient(145deg, rgba(224, 192, 122, 0.12), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px);
}

.organizer-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.organizer-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(224, 192, 122, 0.7);
  background:
    linear-gradient(145deg, rgba(224, 192, 122, 0.22), rgba(255, 255, 255, 0.08)),
    var(--avatar-image, linear-gradient(130deg, rgba(36, 59, 103, 0.8), rgba(16, 27, 48, 0.9)));
  background-size: cover;
  background-position: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-row > * {
  flex: 1;
}

.horizontal-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(138px, 58%);
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(145deg, rgba(224, 192, 122, 0.14), rgba(255, 255, 255, 0.04)),
    var(--thumb-image, linear-gradient(130deg, rgba(36, 59, 103, 0.9), rgba(16, 27, 48, 0.9)));
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.step-item {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  min-height: 46px;
  padding: 6px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
}

.step-item .index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.09);
}

.step-item.is-active {
  border-color: rgba(224, 192, 122, 0.7);
  background: rgba(224, 192, 122, 0.16);
}

.step-item.is-active .index {
  background: linear-gradient(145deg, var(--gold), var(--gold2));
  color: #1b1306;
  font-weight: 700;
}

.banner-retiro {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 128px;
  background:
    linear-gradient(135deg, rgba(7, 11, 20, 0.5), rgba(7, 11, 20, 0.86)),
    var(--banner-image, linear-gradient(140deg, rgba(36, 59, 103, 0.9), rgba(16, 27, 48, 0.95)));
  background-size: cover;
  background-position: center;
}

.form-grid {
  display: grid;
  gap: 8px;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.lot-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.lot-card input[type="radio"] {
  width: 16px;
  min-height: 16px;
}

.lot-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lot-card.is-selected {
  border-color: rgba(224, 192, 122, 0.7);
  box-shadow: inset 0 0 0 1px rgba(224, 192, 122, 0.44);
}

.status-badge {
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.status-ok {
  color: #d7ffe2;
  border-color: rgba(104, 219, 136, 0.5);
  background: rgba(65, 179, 96, 0.2);
}

.status-warn {
  color: #fff2c3;
  border-color: rgba(224, 192, 122, 0.58);
  background: rgba(224, 192, 122, 0.16);
}

.tabs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tab-button.is-active {
  border-color: rgba(224, 192, 122, 0.68);
  background: rgba(224, 192, 122, 0.18);
  color: var(--gold2);
}

.pix-grid {
  display: grid;
  gap: 8px;
}

.pix-qr {
  width: min(220px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  padding: 10px;
}

.summary-list {
  display: grid;
  gap: 6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.summary-total {
  border-top: 1px solid rgba(224, 192, 122, 0.5);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 1.15rem;
  color: var(--gold2);
  font-weight: 700;
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width 260ms ease;
}

.checkbox-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.confirm-state {
  border-radius: 12px;
  border: 1px solid rgba(104, 219, 136, 0.5);
  background: rgba(65, 179, 96, 0.18);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.content-actions > * {
  flex: 1;
}

.content-engagement-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.content-like-button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.content-like-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 120, 146, 0.42);
}

.content-like-button[data-liked="true"] {
  border-color: rgba(255, 120, 146, 0.52);
  background: rgba(255, 92, 132, 0.14);
  box-shadow: 0 10px 22px rgba(255, 92, 132, 0.16);
}

.content-like-icon {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 1.8;
  transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease;
}

.content-like-button[data-liked="true"] .content-like-icon {
  fill: #ff5c84;
  stroke: #ff5c84;
  transform: scale(1.04);
}

.content-like-counter {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  font-size: 0.95rem;
}

#contentAudioPlayer {
  width: 100%;
  border-radius: 14px;
}

#contentBodyText {
  white-space: pre-line;
  line-height: 1.7;
}

#contentAbout {
  display: grid;
  gap: 8px;
}

.next-content-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 64%);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.next-content-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  display: grid;
  gap: 8px;
  scroll-snap-align: start;
}

.next-content-card .gallery-thumb {
  aspect-ratio: 16 / 9;
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.comment-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.comment-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.comment-count {
  color: var(--gold2);
  font-weight: 700;
}

.sheet-form {
  display: grid;
  gap: 8px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 900px) {
  .internal-main {
    width: min(1040px, calc(100% - 32px));
    padding-top: 16px;
    gap: 16px;
  }

  .event-layout-desktop,
  .register-layout-desktop,
  .content-layout-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
  }

  .event-layout-desktop .secondary-col,
  .register-layout-desktop .secondary-col,
  .content-layout-desktop .secondary-col {
    display: grid;
    gap: 12px;
    align-content: start;
  }

  .sticky-cta {
    left: auto;
    right: 16px;
    width: 320px;
  }

  .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .internal-main {
    width: min(1120px, calc(100% - 56px));
    gap: 18px;
  }

  .detail-card {
    padding: 14px;
  }
}

@media (max-width: 900px) {
  .event-layout-desktop,
  .register-layout-desktop,
  .content-layout-desktop {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    left: 12px;
    right: 12px;
    width: auto;
  }
}

@media (max-width: 600px) {
  .internal-main {
    width: min(100%, calc(100% - 16px));
    padding: 10px 8px 18px;
    gap: 10px;
  }

  .detail-card {
    padding: 10px;
  }

  .horizontal-gallery {
    grid-auto-columns: minmax(138px, 72%);
  }
}

@media (max-width: 390px) {
  .internal-main {
    padding-inline: 8px;
  }

  .form-grid.two,
  .sheet-actions {
    grid-template-columns: 1fr;
  }

  .action-row,
  .content-actions {
    flex-direction: column;
  }
}
