@font-face
{
	font-family: "Nunito Sans";
	src: url("../assets/fonts/NunitoSans-Regular.ttf") format("truetype");
	font-weight: 400;
}

@font-face
{
	font-family: "Nunito Sans";
	src: url("../assets/fonts/NunitoSans-Bold.ttf") format("truetype");
	font-weight: 700;
}

:root
{
	--beia-red: #d71a3a;
	--beia-purple: #9c248b;
	--beia-purple-2: #be1f6d;
	--beia-purple-3: #dc1c8b;
	--beia-soft: #f7edf3;
	--beia-soft-2: #f4f5f9;
	--beia-line: rgba(190, 31, 109, 0.14);
	--beia-text: #231922;
	--beia-muted: #6f6070;
	--beia-shadow: 0 30px 90px rgba(92, 10, 56, 0.28);
	--window-radius: 28px;
}

*
{
	box-sizing: border-box;
}

html,
body
{
	min-height: 100%;
	margin: 0;
}

body
{
	font-family: "Nunito Sans", sans-serif;
	color: var(--beia-text);
	background: linear-gradient(180deg, #c41c69 0%, #a32782 100%);
}

	body::before
	{
		content: "";
		position: fixed;
		inset: 0;
		background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), url("../assets/img/background_pattern.png") center/cover no-repeat;
		pointer-events: none;
	}

button,
select,
a
{
	font: inherit;
}

button
{
	border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 18px;
}

.app-window
{
	max-width: 1400px;
	min-height: calc(100vh - 36px);
	margin: 0 auto;
	padding: 20px;
	border-radius: var(--window-radius);
	background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), url("../assets/img/background_pattern.png") center/cover no-repeat;
	box-shadow: var(--beia-shadow);
}

.topbar
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 0 10px;
	margin-bottom: 22px;
	position: relative;
	z-index: 30;
}

.topbar-actions
{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.topbar-actions-left
{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}

.brand
{
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
	box-shadow: 0 10px 24px rgba(18, 8, 14, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(8px);
	position: relative;
	z-index: 2;
}

.brand-badge
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0) 78%);
}

.brand img {
  width: 122px;
  height: auto;
  display: block;
  filter:
	drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55))
	drop-shadow(0 6px 16px rgba(0, 0, 0, 0.14));
}

.language-menu {
  position: relative;
  z-index: 50;
}

.language-trigger {
  min-height: 46px;
  min-width: 58px;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(190, 31, 109, 0.86), rgba(133, 25, 101, 0.7));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
	0 12px 26px rgba(32, 6, 24, 0.18),
	inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.language-menu[open] .language-trigger {
  background: linear-gradient(180deg, rgba(92, 18, 70, 0.72), rgba(70, 12, 54, 0.54));
  box-shadow:
	0 16px 34px rgba(32, 6, 24, 0.24),
	inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.language-trigger::-webkit-details-marker {
  display: none;
}

.language-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 164px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 246, 251, 0.97), rgba(250, 226, 240, 0.94));
  border: 1px solid rgba(190, 31, 109, 0.16);
  box-shadow: 0 18px 48px rgba(79, 10, 48, 0.22);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 6px;
}

.language-option {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--beia-text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.language-option.active,
.language-option:hover {
  background: rgba(190, 31, 109, 0.12);
  color: var(--beia-purple-2);
}

.flag {
  width: 28px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
	0 0 0 1px rgba(35, 25, 34, 0.08),
	0 4px 10px rgba(35, 25, 34, 0.12);
}

.flag-en
{
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'%3E%3Crect width='60' height='36' fill='%23012169'/%3E%3Cg stroke='%23fff' stroke-width='8' stroke-linecap='square'%3E%3Cpath d='M0 0 L60 36'/%3E%3Cpath d='M60 0 L0 36'/%3E%3C/g%3E%3Cg fill='%23C8102E'%3E%3Cpolygon points='0,0 0,2.2 26,18 31,18'/%3E%3Cpolygon points='60,36 60,33.8 34,18 29,18'/%3E%3Cpolygon points='60,0 60,2.2 34,18 29,18'/%3E%3Cpolygon points='0,36 0,33.8 26,18 31,18'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Crect x='24' width='12' height='36'/%3E%3Crect y='12' width='60' height='12'/%3E%3C/g%3E%3Cg fill='%23C8102E'%3E%3Crect x='26.5' width='7' height='36'/%3E%3Crect y='14.5' width='60' height='7'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
}

.flag-es
{
	background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.install-chip,
.credits-chip,
.user-menu-trigger,
.ghost-btn,
.secondary-btn,
.primary-btn
{
	border-radius: 999px;
	min-height: 46px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
}

.install-chip,
.credits-chip,
.user-menu-trigger,
.ghost-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.credits-chip {
  min-width: 154px;
  font-weight: 700;
  white-space: nowrap;
}

.credits-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.credits-chip-item img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.credits-chip-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.28);
}

.page {
  display: grid;
  gap: 18px;
}

.hero-card,
.panel {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 16px 54px rgba(103, 16, 65, 0.12);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 18px 22px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--beia-purple-2);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow {
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.hero-copy h1,
.panel h1,
.panel h2 {
  margin: 0 0 12px;
  line-height: 1;
}

.hero-copy h1 {
  max-width: 560px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 540px;
  font-size: 0.95rem;
}

.hero-copy p,
.side-note {
  margin: 0;
  color: var(--beia-muted);
  line-height: 1.5;
}

.hero-preview
{
	min-height: 225px;
	border-radius: 28px;
	background: url("../assets/img/beia_ej.jpeg") center center/cover no-repeat, #000;
	padding: 0;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 18px 36px rgba(0, 0, 0, 0.04), inset 0 -18px 36px rgba(0, 0, 0, 0.05), inset 18px 0 30px rgba(0, 0, 0, 0.035), inset -18px 0 30px rgba(0, 0, 0, 0.035);
	position: relative;
}

.hero-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
	radial-gradient(circle at center,
	  rgba(0, 0, 0, 0) 0%,
	  rgba(0, 0, 0, 0) 48%,
	  rgba(0, 0, 0, 0.1) 66%,
	  rgba(0, 0, 0, 0.24) 84%,
	  rgba(0, 0, 0, 0.38) 100%);
}

.hero-preview-frame,
.result-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: 24px;
  overflow: hidden;
}

.hero-preview-frame {
  min-height: 190px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.result-frame {
  min-height: 62vh;
  aspect-ratio: 4 / 3;
}

.hero-preview-image {
  display: none;
}

.home-layout,
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.home-layout-single {
  grid-template-columns: 1fr;
}

.panel {
  padding: 24px;
}

.panel-upload {
  position: relative;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.upload-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.counter-badge {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--beia-soft);
  color: var(--beia-purple-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.settings-mini-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--beia-purple-2);
  box-shadow: 0 10px 22px rgba(115, 17, 69, 0.18);
  cursor: pointer;
}

.settings-mini-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.upload-dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 210px;
  padding: 28px;
  text-align: center;
  border: 2px dashed var(--beia-purple-3);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, var(--beia-soft));
  cursor: pointer;
}

.upload-dropzone img {
  width: 44px;
  height: 44px;
}

.upload-dropzone strong {
  font-size: 1.1rem;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 18px;
}

.secondary-btn {
  background: var(--beia-purple-2);
  color: #fff;
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.thumb-card {
  position: relative;
  width: 155px;
  height: 155px;
  flex: 0 0 155px;
  border-radius: 14px;
  overflow: hidden;
  background:
	radial-gradient(circle at 54% 40%, rgba(255, 255, 255, 0.75), rgba(247, 225, 234, 0.38) 20%, rgba(73, 48, 62, 0.18) 42%, rgba(12, 6, 11, 0.94) 75%),
	linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.32));
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 9, 18, 0.76);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(8, 4, 7, 0.24);
}

.thumb-remove-btn:hover {
  background: rgba(190, 31, 109, 0.92);
}

.danger-btn {
  background: #fff;
  color: var(--beia-purple-2);
  border: 2px solid var(--beia-purple-2);
}

.panel-side {
  align-self: start;
  background: #ededee;
}

.results-sidebar {
  display: grid;
  align-self: start;
  gap: 18px;
}

.process-fab {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--beia-purple-2);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(95, 8, 57, 0.34);
}


.process-fab-icon
{
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(190, 31, 109, 0.08), 0 6px 14px rgba(45, 7, 27, 0.16);
}

	.process-fab-icon img
	{
		width: 20px;
		height: 20px;
		filter: saturate(1.15) contrast(1.12) brightness(0.96);
	}

.save-results-btn {
  margin: -4px 0 18px;
}

.summary-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  margin-bottom: 12px;
}

.summary-label {
  display: block;
  margin-bottom: 6px;
  color: var(--beia-muted);
  font-size: 0.9rem;
}

.skin-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skin-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.primary-btn {
  width: 100%;
  margin-top: 8px;
  background: rgba(190, 31, 109, 0.1);
  color: var(--beia-purple-2);
  font-weight: 700;
}

.primary-btn img,
.view-mode-btn img,
.nav-arrow img,
.icon-close img {
  width: 20px;
  height: 20px;
}

.primary-btn-solid {
  background: var(--beia-purple-2);
  color: #fff;
}

.side-note {
  margin-top: 12px;
  font-size: 0.94rem;
}

.settings-modal,
.credits-modal,
.video-modal {
  width: min(560px, calc(100vw - 24px));
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.settings-modal::backdrop,
.credits-modal::backdrop,
.video-modal::backdrop {
  background: rgba(21, 9, 18, 0.62);
}

.settings-panel,
.credits-panel,
.video-panel {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(48, 7, 29, 0.35);
  overflow: visible;
}

.classic-subscription-modal[open] .settings-panel {
  animation: classic-subscription-open 180ms ease-out;
}

@keyframes classic-subscription-open {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .classic-subscription-modal[open] .settings-panel {
    animation: none;
  }
}

.credits-modal {
  width: min(680px, calc(100vw - 24px));
}

.video-modal {
  width: min(560px, calc(100vw - 24px));
}

.video-panel .settings-head {
  align-items: start;
}

.credits-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.credits-balance span {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--beia-soft);
  color: var(--beia-purple-2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.credits-balance strong {
  font-size: 1.25rem;
}

.credit-dialog-title {
  margin: 0 0 14px;
  line-height: 1;
}

.credit-pack-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.credit-pack-section h3 {
  margin: 0;
  font-size: 1rem;
}

.credit-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.credit-pack-btn {
  min-height: 82px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--beia-soft));
  border: 2px solid var(--beia-line);
  color: var(--beia-purple-2);
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
}

.credit-pack-btn:hover {
  border-color: var(--beia-purple-2);
}

.credit-pack-btn strong {
  color: var(--beia-text);
  font-size: 1.02rem;
  line-height: 1.15;
}

.credit-pack-btn span {
  font-size: 0.86rem;
  font-weight: 700;
}

.credit-stepper {
  width: min(100%, 112px);
  min-height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  outline: 2px solid rgba(190, 31, 109, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: stretch;
  overflow: hidden;
}

.credit-pack-custom:focus-within .credit-stepper {
  outline-color: var(--beia-purple-2);
}

.credit-pack-custom input {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--beia-text);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: center;
  outline: 0;
}

.credit-pack-custom input::placeholder {
  color: rgba(35, 25, 34, 0.66);
}

.credit-pack-custom input::-webkit-outer-spin-button,
.credit-pack-custom input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.credit-pack-custom input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.credit-stepper-controls {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid rgba(190, 31, 109, 0.16);
}

.credit-stepper-btn {
  position: relative;
  min-width: 24px;
  min-height: 18px;
  padding: 0;
  border-radius: 0;
  background: rgba(190, 31, 109, 0.1);
  cursor: pointer;
}

.credit-stepper-btn:hover {
  background: rgba(190, 31, 109, 0.2);
}

.credit-stepper-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-left: 2px solid var(--beia-purple-2);
  border-top: 2px solid var(--beia-purple-2);
}

.credit-stepper-btn[data-step-video="up"]::before {
  transform: translate(-50%, -32%) rotate(45deg);
}

.credit-stepper-btn[data-step-video="down"]::before {
  transform: translate(-50%, -68%) rotate(225deg);
}

.modal-copy {
  margin: -4px 0 22px;
  color: var(--beia-muted);
  line-height: 1.5;
}

.video-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  flex-direction: initial;
  width: 100%;
}

.video-actions .secondary-btn,
.video-actions .primary-btn {
  width: 100%;
  margin: 0;
}

.settings-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 6px;
}

.settings-head h2 {
  margin-bottom: 0;
}

.icon-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
}

.field-group {
  display: grid;
  gap: 10px;
  margin: 22px 0 16px;
}

.field-group span {
  font-weight: 700;
}

.field-group select {
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--beia-line);
  border-radius: 14px;
  background: var(--beia-soft-2);
}

.ethnicity-menu {
  position: relative;
  z-index: 5;
}

.ethnicity-trigger {
  min-height: 48px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-radius: 14px;
  border: 2px solid var(--beia-line);
  background: var(--beia-soft-2);
  cursor: pointer;
  font-weight: 700;
}

.ethnicity-trigger::-webkit-details-marker {
  display: none;
}

.ethnicity-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(190, 31, 109, 0.12);
  box-shadow: 0 18px 48px rgba(41, 8, 26, 0.18);
  display: grid;
  gap: 6px;
  max-height: 248px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.ethnicity-options::-webkit-scrollbar {
  width: 10px;
}

.ethnicity-options::-webkit-scrollbar-track {
  background: transparent;
}

.ethnicity-options::-webkit-scrollbar-thumb {
  background: rgba(190, 31, 109, 0.28);
  border-radius: 999px;
  border: 2px solid #fff;
}

.ethnicity-option {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--beia-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.ethnicity-option.active,
.ethnicity-option:hover {
  background: #fde9f3;
  color: var(--beia-purple-2);
}

.skin-tone-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skin-tone-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
}

.skin-tone-very-light {
  background: #f0d395;
}

.skin-tone-medium-light {
  background: #cfa565;
}

.skin-tone-medium {
  background: #ab652e;
}

.skin-tone-dark {
  background: #682c2b;
}

.skin-tone-very-dark {
  background: #381f0a;
}

.skin-tone-btn:hover {
  box-shadow: 0 0 0 4px rgba(190, 31, 109, 0.14);
}

.skin-tone-btn.active {
  border-color: var(--beia-purple-2);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.modal-actions .primary-btn {
  width: 100%;
  margin-top: 0;
}

.modal-actions .primary-btn[hidden] {
  display: none;
}

.modal-actions.video-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 26px;
  width: 100%;
}

.modal-actions.video-actions .secondary-btn,
.modal-actions.video-actions .primary-btn {
  width: 100%;
  margin: 0;
}

.result-stage {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 16px;
}

.nav-arrow
{
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: var(--beia-purple-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 28px rgba(115, 17, 69, 0.22);
	cursor: pointer;
}

.result-frame {
  background: #000;
  position: relative;
}

.result-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: opacity 0.3s ease;
}

.image-progress-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.progress-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(190, 31, 109, 0.2);
  border-top-color: var(--beia-purple-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.view-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.view-mode-btn {
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid transparent;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}

.view-mode-btn.active {
  border-color: var(--beia-purple-2);
  background: linear-gradient(180deg, #fff, #fde9f3);
}

.license-promo-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #fff 72%, #fff8fb 100%);
  box-shadow: 0 12px 32px rgba(103, 16, 65, 0.12);
}

.license-promo-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.license-promo-heading h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.18;
}

.license-promo-sparkles {
  position: relative;
  flex: 0 0 28px;
  color: #e59a5f;
  font-size: 1.65rem;
  line-height: 1;
  text-align: center;
}

.license-promo-sparkles::before,
.license-promo-sparkles::after {
  content: "✦";
  position: absolute;
  color: #efb77f;
  font-size: 0.72rem;
}

.license-promo-sparkles::before {
  top: -3px;
  left: 0;
}

.license-promo-sparkles::after {
  right: -1px;
  bottom: -2px;
}

.license-promo-copy {
  margin: 10px 0 12px;
  color: var(--beia-muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.license-promo-benefits {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.license-promo-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.license-promo-benefits li::before {
  content: "✓";
  display: grid;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1.5px solid var(--beia-purple-2);
  border-radius: 50%;
  color: var(--beia-purple-2);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  text-indent: 1px;
  padding-top: 2px;
  box-sizing: border-box;
}

.license-promo-plan
{
	width: 100%;
	min-height: 38px;
	padding: 0;
	border: 1.5px solid var(--beia-purple-2);
	border-radius: 999px;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: var(--beia-purple-2);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
}

.license-promo-arrow {
  font-size: 1.15rem;
  line-height: 1;
}

.result-frame.view-mode-beia {
  background: #000;
}

.result-frame.view-mode-ultrasound img {
  filter: grayscale(1) contrast(1.16) brightness(0.95);
}

.result-frame.view-mode-combined img {
  filter: saturate(1.18) contrast(1.02) drop-shadow(0 0 20px rgba(255, 168, 208, 0.16));
}

.result-frame.view-mode-video::after {
  content: "VIDEO";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(190, 31, 109, 0.82);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.result-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(190, 31, 109, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 46px rgba(44, 7, 28, 0.38);
}

.result-video-play::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 21px solid #fff;
}

.back-link {
  min-width: 110px;
}

.user-menu {
  position: relative;
  z-index: 50;
}

.user-menu-trigger {
  min-width: 130px;
  list-style: none;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(190, 31, 109, 0.86), rgba(133, 25, 101, 0.7));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
	0 12px 26px rgba(32, 6, 24, 0.18),
	inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.user-menu[open] .user-menu-trigger {
  background: linear-gradient(180deg, rgba(92, 18, 70, 0.72), rgba(70, 12, 54, 0.54));
  color: #fff;
  box-shadow:
	0 16px 34px rgba(32, 6, 24, 0.24),
	inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.user-menu-trigger::-webkit-details-marker {
  display: none;
}

.user-menu-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.user-menu-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--beia-purple-2);
  transform: translateX(-50%);
}

.user-menu-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 13px;
  height: 7px;
  border-radius: 999px 999px 6px 6px;
  background: var(--beia-purple-2);
  transform: translateX(-50%);
}

.user-menu-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 230px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 246, 251, 0.97), rgba(250, 226, 240, 0.94));
  border: 1px solid rgba(190, 31, 109, 0.16);
  box-shadow: 0 18px 48px rgba(79, 10, 48, 0.22);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 6px;
}

.user-menu-option
{
	min-height: 42px;
	padding: 0 12px;
	border-radius: 12px;
	background: transparent;
	color: var(--beia-text);
	display: flex;
	align-items: center;
	text-align: left;
	cursor: pointer;
}

	.user-menu-option:hover
	{
		background: rgba(190, 31, 109, 0.12);
		color: var(--beia-purple-2);
	}

	.user-menu-option span
	{
		margin-left: 8px
	}



	.user-menu-action-icon
	{
		width: 28px;
		height: 28px;
		flex: 0 0 28px;
		padding: 5px;
		border-radius: 999px;
		background: rgba(190, 31, 109, 0.1);
		color: var(--beia-purple-2);
		fill: none;
		stroke: currentColor;
		stroke-width: 2.2;
		stroke-linecap: round;
		stroke-linejoin: round;
		box-shadow: inset 0 0 0 1px rgba(190, 31, 109, 0.08);
	}

.user-menu-option:hover .user-menu-action-icon
{
	background: var(--beia-purple-2);
	color: #fff;
}


.license-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.license-popup-content {
  position: relative;
  z-index: 1001;
  min-width: 400px;
  max-width: 500px;
  max-height: 80vh;
  background: linear-gradient(180deg, rgba(255, 246, 251, 0.97), rgba(250, 226, 240, 0.94));
  border: 1px solid rgba(190, 31, 109, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(79, 10, 48, 0.22);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.license-popup-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(190, 31, 109, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.license-popup-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--beia-purple-2);
}

.license-popup-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--beia-purple-2);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.license-popup-close:hover {
  background: rgba(190, 31, 109, 0.12);
}

.license-popup-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.license-option {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(190, 31, 109, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--beia-text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  word-break: break-all;
}

.license-option:hover {
  background: rgba(190, 31, 109, 0.12);
  color: var(--beia-purple-2);
  border-color: rgba(190, 31, 109, 0.24);
  transform: translateX(4px);
}

.license-option-selected {
  font-weight: 700 !important;
  background: rgba(190, 31, 109, 0.18);
  border-color: rgba(190, 31, 109, 0.32);
  color: var(--beia-purple-2);
}

.license-option-selected:hover {
  background: rgba(190, 31, 109, 0.22);
  border-color: rgba(190, 31, 109, 0.40);
}

.auth-shell
{
	display: grid;
}

.auth-window
{
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
}

.auth-topbar {
  margin-bottom: 0;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
  padding-top: 24px;
}

.auth-hero
{
	min-height: 390px;
	border-radius: 28px;
	background: linear-gradient(90deg, rgba(20, 7, 16, 0.3), rgba(20, 7, 16, 0.02) 58%), url("../assets/img/beia_ej.jpeg") center center/cover no-repeat, #000;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 -40px 86px rgba(0, 0, 0, 0.26), 0 18px 54px rgba(64, 8, 40, 0.18);
}

.auth-panel {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
  align-items: stretch;
  padding: 22px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 18px 64px rgba(63, 8, 39, 0.18);
}

.auth-copy-block
{
	align-self: center;
	min-height: 390px;
	padding: 28px;
	border-radius: 28px;
	background: linear-gradient(90deg, rgba(20, 7, 16, 0.42), rgba(20, 7, 16, 0.08) 62%), url("../assets/img/beia_ej.jpeg") center center/cover no-repeat, #000;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 -40px 86px rgba(0, 0, 0, 0.3);
}

.auth-copy-block .section-kicker,
.auth-copy-block h1,
.auth-copy-block .auth-copy {
  color: #fff;
}

.auth-copy-block .section-kicker {
  color: rgba(255, 255, 255, 0.86);
}

.auth-panel h1 {
  margin: 0 0 12px;
  line-height: 1.02;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.auth-copy {
  margin: 0;
  line-height: 1.5;
}

.auth-form-card {
  align-self: center;
  padding: 8px 6px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form h2 {
  margin: 0 0 2px;
  line-height: 1;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.auth-field 
{
  display: grid;
  gap: 7px;
}

	.auth-field span
	{
		color: var(--beia-text);
		font-size: 0.92rem;
		font-weight: 700;
	}

#Password-error, #ConfirmPassword-error
{
	color: var(--beia-red);
}

	.auth-field input
	{
		width: 100%;
		min-height: 50px;
		padding: 0 14px;
		border: 2px solid var(--beia-line);
		border-radius: 14px;
		background: var(--beia-soft-2);
		color: var(--beia-text);
		font: inherit;
		outline: 0;
	}

		.auth-field input:focus
		{
			border-color: var(--beia-purple-2);
			box-shadow: 0 0 0 4px rgba(190, 31, 109, 0.1);
		}

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.auth-main-btn,
.auth-secondary-btn {
  width: 100%;
  min-height: 54px;
  margin: 0;
}

.auth-secondary-btn {
  background: #fff;
  color: var(--beia-purple-2);
  border: 2px solid var(--beia-purple-2);
}

.auth-inline-copy {
  margin: 0;
  color: var(--beia-muted);
  line-height: 1.4;
}

.auth-link-btn {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--beia-purple-2);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.auth-status {
  min-height: 22px;
  margin: 0px 0 0 0;
  color: var(--beia-muted);
  line-height: 1.0;
}

	.auth-status ul
	{
		margin: 0px;
		list-style: none;
		padding-left: 0px;
	}

.auth-status.error 
{
  color: #D9364A;
  font-weight: 700;
}

.auth-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-form button:disabled,
.auth-field input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 1024px) {
  .hero-card,
  .home-layout,
  .results-layout {
	grid-template-columns: 1fr;
  }

  .auth-panel {
	grid-template-columns: 1fr;
  }

  .auth-copy-block {
	min-height: 260px;
	padding: 22px;
  }

  .panel-side {
	order: -1;
  }

  .page-results .results-sidebar {
	order: 2;
  }
}

@media (max-width: 720px)
{
	.app-shell
	{
		padding: 10px;
	}

	.app-window
	{
		min-height: calc(100vh - 20px);
		padding: 14px;
		border-radius: 22px;
	}

	.topbar
	{
		flex-wrap: wrap;
	}

	.brand img
	{
		width: 102px;
	}

	.brand-badge
	{
		padding: 8px 10px;
	}

	.hero-card,
	.panel,
	.settings-panel,
	.credits-panel,
	.video-panel
	{
		padding: 18px;
		border-radius: 24px;
	}

	.topbar-actions
	{
		width: 100%;
	}

	.credits-chip
	{
		flex: 1 1 100%;
	}

	.user-menu
	{
		flex: 1 1 100%;
	}

	.user-menu-trigger
	{
		width: 100%;
	}

	.user-menu-options
	{
		left: 0;
		right: 0;
	}

	.auth-page
	{
		min-height: auto;
		padding-top: 12px;
	}

	.auth-form-card
	{
		padding: 0;
	}

	.credits-balance,
	.credit-pack-grid
	{
		grid-template-columns: 1fr;
	}

	.upload-actions
	{
		flex-direction: column;
	}

	.result-stage
	{
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		gap: 10px;
	}

	.page-results .results-layout
	{
		grid-template-columns: 1fr;
	}

	.view-mode-grid
	{
		grid-template-columns: 1fr 1fr;
	}

	.result-frame
	{
		min-height: 54vh;
	}
}


.license-popup
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.license-popup-overlay
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.license-popup-content
{
	position: relative;
	z-index: 1001;
	min-width: 400px;
	max-width: 500px;
	max-height: 80vh;
	background: linear-gradient(180deg, rgba(255, 246, 251, 0.97), rgba(250, 226, 240, 0.94));
	border: 1px solid rgba(190, 31, 109, 0.16);
	border-radius: 18px;
	box-shadow: 0 18px 48px rgba(79, 10, 48, 0.22);
	backdrop-filter: blur(10px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.license-popup-header
{
	padding: 20px 24px;
	border-bottom: 1px solid rgba(190, 31, 109, 0.12);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

	.license-popup-header h3
	{
		margin: 0;
		font-size: 20px;
		font-weight: 700;
		color: var(--beia-purple-2);
	}

.license-popup-close
{
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: var(--beia-purple-2);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

	.license-popup-close:hover
	{
		background: rgba(190, 31, 109, 0.12);
	}

.license-popup-list
{
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-y: auto;
}

.license-option
{
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid rgba(190, 31, 109, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.6);
	color: var(--beia-text);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: all 0.2s ease;
	word-break: break-all;
}

	.license-option:hover
	{
		background: rgba(190, 31, 109, 0.12);
		color: var(--beia-purple-2);
		border-color: rgba(190, 31, 109, 0.24);
		transform: translateX(4px);
	}


