* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f4f5;
  background: #080809;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  --ink: #f4f4f5;
  --muted: #a2a2aa;
  --panel: #151517;
  --panel-raised: #222225;
  --line: #303034;
  --accent: #ff9d2e;
  --danger: #ff5964;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  min-width: 320px;
  background: #080809;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: #080809;
}

button,
input {
  font: inherit;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #ffd08b;
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: clip;
  background: #080809;
}

/* Acceso */
.auth-view {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 26px 18px calc(26px + var(--safe-bottom));
  background:
    radial-gradient(ellipse at 50% 0%, rgb(255 157 46 / 9%), transparent 38%),
    #080809;
}

.auth-card {
  width: min(100%, 420px);
  padding: 28px 22px 22px;
  border: 1px solid #29292d;
  border-radius: 22px;
  background: linear-gradient(155deg, #171719, #101012 76%);
  box-shadow: 0 22px 70px rgb(0 0 0 / 42%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 157 46 / 55%);
  border-radius: 12px;
  background: rgb(255 157 46 / 10%);
  color: var(--accent);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.brand-name {
  color: #f5f5f6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.panel-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.auth-intro {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #29292d;
  border-radius: 13px;
  background: #0d0d0f;
}

.auth-tab {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a7a7ae;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #2a2a2e;
  color: #fff;
  box-shadow: inset 0 0 0 1px #3b3b40;
}

.auth-form {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.field-label {
  display: block;
  margin-top: 3px;
  color: #c9c9ce;
  font-size: 13px;
  font-weight: 650;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #404047;
  border-radius: 12px;
  background: #111114;
  color: #fff;
  font-size: 15px;
}

.text-input::placeholder {
  color: #777780;
}

.text-input:focus {
  border-color: #b9772b;
  outline: 2px solid rgb(255 157 46 / 17%);
  outline-offset: 1px;
}

.form-note,
.auth-footnote {
  margin: 5px 0 0;
  color: #92929a;
  font-size: 12px;
  line-height: 1.45;
}

.auth-footnote {
  margin-top: 16px;
  text-align: center;
}

.auth-footnote strong {
  color: #d5d5da;
}

.form-error {
  margin: 3px 0 0;
  padding: 10px 12px;
  border: 1px solid rgb(255 89 100 / 28%);
  border-radius: 10px;
  background: rgb(255 89 100 / 9%);
  color: #ff7b83;
  font-size: 13px;
  line-height: 1.4;
}

.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid #ffae50;
  border-radius: 13px;
  background: var(--accent);
  color: #1a1208;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #ffb357;
}

.primary-button:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.primary-button:disabled {
  border-color: #39393e;
  background: #303034;
  color: #92929a;
  cursor: not-allowed;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
}

/* Página de juegos */
.store-view {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: calc(78px + var(--safe-bottom));
  background: #080809;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  background: #080809;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e5e5e7;
  cursor: pointer;
}

.icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.profile-button svg {
  width: 32px;
  height: 32px;
  stroke: none;
}

.profile-button {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
}

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.search-box {
  display: flex;
  height: 40px;
  min-width: 58px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #19191d;
  border-radius: 999px;
  background: #151519;
  color: #a6a6ad;
}

.search-box svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f5f6;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #9a9aa2;
  opacity: 1;
}

.balance-chip {
  display: flex;
  min-width: 58px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgb(255 157 46 / 32%);
  border-radius: 999px;
  background: rgb(255 157 46 / 9%);
  color: #ffc477;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.balance-chip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-strip {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 7px;
  color: #a4a4ab;
  font-size: 11px;
}

.account-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  flex: 0 0 auto;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #d3d3d8;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.home-view {
  min-height: calc(100svh - 108px);
  padding: 10px 12px calc(98px + var(--safe-bottom));
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 440px;
  align-content: start;
  gap: 10px;
}

.game-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.76;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: #171719;
  color: #f7f7f8;
  cursor: pointer;
  isolation: isolate;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.game-tile:active {
  transform: scale(.985);
  filter: brightness(1.08);
}

.game-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgb(0 0 0 / 45%);
}

.tile-art,
.tile-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile-art {
  z-index: -2;
  object-fit: cover;
}

.tile-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 14%) 38%, rgb(0 0 0 / 58%) 100%);
}

.game-pill {
  position: absolute;
  right: 6px;
  bottom: 11px;
  left: 6px;
  width: fit-content;
  max-width: calc(100% - 12px);
  margin: 0 auto;
  overflow: hidden;
  padding: 6px 11px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 999px;
  background: rgb(42 42 46 / 88%);
  color: #f4f4f5;
  font-size: clamp(10px, 3.1vw, 13px);
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-search {
  margin: 24px 2px;
  color: var(--muted);
  font-size: 14px;
}

/* Paquetes */
.offer-layer,
.notice-layer,
.status-layer {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.offer-backdrop,
.notice-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(0 0 0 / 78%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.offers-dialog,
.notice-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  max-height: min(88svh, 760px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #35353a;
  border-radius: 20px;
  background: linear-gradient(155deg, #18181b, #111113 82%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 60%);
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
}

.offers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offers-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 780;
}

.close-dialog {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #29292d;
  color: #e4e4e7;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-subtitle {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-list {
  display: grid;
  gap: 8px;
}

.package-option {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid #343439;
  border-radius: 12px;
  background: #222225;
  color: #f4f4f5;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.package-option:hover {
  border-color: #66666e;
  transform: translateY(-1px);
}

.package-option.is-selected {
  border-color: var(--accent);
  background: rgb(255 157 46 / 10%);
  box-shadow: inset 0 0 0 1px rgb(255 157 46 / 16%);
}

.package-diamonds {
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.package-price {
  flex: 0 0 auto;
  color: #ffc477;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  white-space: nowrap;
}

.accept-package {
  width: 100%;
  margin-top: 16px;
}

/* Formulario de orden */
.store-view.is-ordering {
  padding-bottom: 0;
}

.store-view.is-ordering .topbar,
.store-view.is-ordering .account-strip,
.store-view.is-ordering .home-view,
.store-view.is-ordering .bottom-nav {
  display: none;
}

.order-view {
  min-height: 100vh;
  min-height: 100svh;
  padding: 14px 13px calc(112px + var(--safe-bottom));
  background: #080809;
}

.order-topline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
}

.back-pill,
.service-badge,
.rating-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #35353a;
  border-radius: 999px;
  background: #101012;
  color: #e2e2e6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.back-pill {
  padding: 0 11px;
  cursor: pointer;
}

.back-pill span {
  font-size: 18px;
  line-height: 1;
}

.service-badge {
  border-color: rgb(55 173 103 / 32%);
  background: rgb(12 65 35 / 20%);
  color: #67d18b;
}

.service-badge span {
  font-size: 20px;
  font-weight: 900;
}

.rating-badge {
  padding: 0 10px;
  border-color: rgb(255 183 43 / 25%);
  background: rgb(82 55 9 / 17%);
  color: #f2c547;
}

.rating-badge span {
  font-size: 17px;
}

.game-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.summary-art {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid #414147;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.game-summary h1 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 780;
}

.game-summary h1 span {
  color: #57d88a;
}

.game-summary p {
  margin: 2px 0;
  color: #b8b8bf;
  font-size: 12px;
  line-height: 1.4;
}

.game-summary p:first-of-type {
  color: #e8e8eb;
  font-size: 13px;
}

.delivery-warning {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 8px;
  padding: 14px 13px;
  border: 1px solid rgb(226 170 36 / 24%);
  border-radius: 15px;
  background: rgb(50 34 4 / 20%);
  color: #f0f0f2;
}

.warning-symbol {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border: 2px solid #d5a62a;
  border-radius: 50%;
  color: #e3b831;
  font-size: 14px;
  font-weight: 900;
}

.delivery-warning p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.delivery-warning strong {
  color: #e4bb4d;
}

.demo-notice {
  margin: 0 2px 20px;
  color: #a9a1ad;
  font-size: 11px;
  line-height: 1.4;
}

.player-data h2 {
  margin: 0 0 12px;
  color: #9999a2;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.player-data h2 span {
  margin-right: 5px;
  color: #a8a8b1;
  font-size: 17px;
}

.uid-field {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid #46464d;
  border-radius: 14px;
  background: #141416;
}

.uid-field svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #a4a4ad;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.uid-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f5f6;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.uid-field input::placeholder {
  color: #8e8e97;
}

.field-hint {
  margin: 6px 2px 0;
  color: #898992;
  font-size: 11px;
}

.service-section {
  margin-top: 22px;
}

.service-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #404046;
}

.service-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

.service-heading span {
  color: #a4a4ac;
  font-size: 11px;
  white-space: nowrap;
}

.service-heading strong {
  color: #f0f0f2;
}

.service-list {
  display: grid;
  gap: 7px;
}

.service-row {
  display: grid;
  width: 100%;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #414147;
  border-radius: 999px;
  background: #27272b;
  color: #f4f4f5;
  text-align: left;
  cursor: pointer;
  transition: background-color 130ms ease, border-color 130ms ease;
}

.service-row.is-selected {
  border-color: var(--accent);
  background: #33271b;
  box-shadow: inset 0 0 0 1px rgb(255 157 46 / 20%);
}

.service-name {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-region {
  color: #b4b4bb;
  font-size: 10px;
}

.service-price {
  color: #f6f6f7;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  white-space: nowrap;
}

.order-footer {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(100%, 560px);
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 auto;
  padding: 11px 13px calc(11px + var(--safe-bottom));
  border-top: 1px solid #39393e;
  background: rgb(7 7 8 / 97%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.order-total {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.order-total > span {
  color: #a4a4ac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.order-total strong {
  color: #f6f6f7;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-submit {
  min-width: 142px;
  min-height: 48px;
  padding: 11px 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

/* Avisos y bienvenida */
.notice-layer {
  z-index: 70;
}

.notice-dialog {
  width: min(100%, 370px);
  padding: 24px 20px 20px;
  text-align: center;
}

.notice-mark,
.status-check {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 15px;
  border: 1px solid rgb(255 157 46 / 38%);
  border-radius: 50%;
  background: rgb(255 157 46 / 11%);
  color: var(--accent);
  font-size: 21px;
}

.notice-dialog.is-error .notice-mark {
  border-color: rgb(255 89 100 / 42%);
  background: rgb(255 89 100 / 12%);
  color: #ff747d;
}

.notice-dialog h2 {
  margin: 0 0 9px;
  font-size: 20px;
  font-weight: 780;
  line-height: 1.25;
}

.notice-dialog p {
  margin: 0;
  color: #c3c3c9;
  font-size: 14px;
  line-height: 1.5;
}

.notice-dialog .notice-detail {
  margin-top: 12px;
  color: #a7a7af;
  font-size: 12px;
}

.notice-accept {
  width: 100%;
  margin-top: 20px;
}

.status-layer {
  z-index: 90;
}

.status-dialog .panel-kicker {
  margin: 0 0 8px;
}

.status-check {
  border-color: rgb(92 216 144 / 34%);
  background: rgb(52 155 91 / 13%);
  color: #77e3a1;
  font-size: 22px;
}

.processing-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgb(4 5 9 / 79%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.glass-orb {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgb(255 255 255 / 95%), transparent 19%),
    radial-gradient(circle at 35% 28%, rgb(208 229 255 / 69%), rgb(133 162 202 / 23%) 38%, rgb(255 255 255 / 8%) 72%);
  box-shadow: 0 0 14px rgb(201 222 255 / 74%), inset 0 0 17px rgb(255 255 255 / 54%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  will-change: width, height, transform, opacity;
}

.glass-orb::before {
  position: absolute;
  inset: -15%;
  border: 1px solid rgb(226 239 255 / 57%);
  border-radius: 50%;
  content: "";
  filter: blur(1px);
}

.glass-orb::after {
  position: absolute;
  top: 14%;
  left: 19%;
  width: 28%;
  height: 15%;
  border-radius: 50%;
  background: rgb(255 255 255 / 83%);
  content: "";
  filter: blur(3px);
}

/* Barra inferior */
.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(100%, 560px);
  min-height: 76px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  padding: 8px 6px calc(9px + var(--safe-bottom));
  border-top: 1px solid #303034;
  background: #09090a;
}

.nav-item {
  display: flex;
  min-width: 0;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #a0a0a6;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.nav-item:first-child svg {
  fill: currentColor;
  stroke-width: 1.5;
}

.nav-item.is-active {
  color: #f5f5f6;
  font-weight: 700;
}

.nav-item:disabled {
  cursor: default;
  opacity: 0.78;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

[hidden] {
  display: none !important;
}

@media (min-width: 700px) {
  .auth-card {
    padding: 34px 30px 26px;
  }

  .topbar {
    padding: 17px 16px 12px;
  }

  .home-view {
    padding-top: 16px;
  }

  .order-view {
    padding-right: 20px;
    padding-left: 20px;
  }

  .order-footer {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 360px) {
  .topbar {
    gap: 5px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .icon-button {
    width: 40px;
    flex-basis: 40px;
  }

  .balance-chip {
    min-width: 54px;
    padding: 0 6px;
    font-size: 11px;
  }

  .order-topline {
    gap: 5px;
  }

  .service-badge,
  .rating-badge,
  .back-pill {
    font-size: 10px;
  }

  .service-badge {
    gap: 3px;
  }

  .service-row {
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Acceso inicial y esfera de vidrio */
.initial-orb-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(8 8 9 / 96%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: opacity 240ms ease;
}

.initial-orb-layer.is-fading {
  opacity: 0;
  pointer-events: none;
}

.initial-glass-orb {
  width: 18px;
  height: 18px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, rgb(202 222 255 / 72%) 18%, rgb(133 162 202 / 23%) 45%, rgb(255 255 255 / 7%) 75%);
  box-shadow: 0 0 18px rgb(201 222 255 / 82%), inset 0 0 20px rgb(255 255 255 / 70%);
  animation: intro-orb-grow 1.8s cubic-bezier(.2,.75,.24,1) forwards;
}

@keyframes intro-orb-grow {
  0% { width: 12px; height: 12px; opacity: .28; transform: scale(.7); }
  68% { width: 142px; height: 142px; opacity: 1; transform: scale(1); }
  100% { width: 176px; height: 176px; opacity: .86; transform: scale(1.04); }
}

.subtle-link {
  display: block;
  margin: 12px auto 0;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #b5b5bd;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: #66666d;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-back {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
}

/* Encabezado, saldo y páginas */
.small-icon {
  position: relative;
}

.balance-chip small {
  color: #d6a96d;
  font-size: 9px;
  font-weight: 800;
}

.notification-button {
  flex-basis: 30px;
}

.notification-count {
  position: absolute;
  top: 0;
  right: -3px;
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  padding: 0 4px;
  border: 1px solid #080809;
  border-radius: 999px;
  background: #ff5c67;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.account-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-identity strong {
  overflow: hidden;
  color: #e8e8eb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity small {
  overflow: hidden;
  color: #8f8f98;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-strip .text-button {
  min-height: 32px;
  padding: 6px 4px;
  color: #a8a8b0;
  font-size: 10px;
}

.app-page[hidden] {
  display: none !important;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 18px;
}

.page-heading h1 {
  margin: 0;
  color: #f6f6f7;
  font-size: clamp(23px, 6vw, 29px);
  font-weight: 790;
  letter-spacing: -.035em;
}

.live-badge,
.role-badge,
.count-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #303034;
  border-radius: 999px;
  background: #151517;
  color: #bbbcc3;
  font-size: 10px;
  font-weight: 740;
  white-space: nowrap;
}

.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66d890;
  box-shadow: 0 0 9px rgb(102 216 144 / 75%);
}

.recommendation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 11px;
}

.recommendation-row span {
  padding: 6px 9px;
  border: 1px solid rgb(255 157 46 / 25%);
  border-radius: 999px;
  background: rgb(255 157 46 / 8%);
  color: #e6b273;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .03em;
}

.game-card-foot {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  color: rgb(255 255 255 / 76%);
  font-size: 9px;
  font-weight: 650;
  pointer-events: none;
}

.game-pill {
  bottom: 24px;
}

.content-page {
  min-height: calc(100svh - 154px);
  padding: 16px 14px calc(106px + var(--safe-bottom));
}

.card-stack {
  display: grid;
  gap: 10px;
}

.empty-state {
  margin: 20px 4px;
  padding: 18px;
  border: 1px dashed #39393e;
  border-radius: 14px;
  color: #a7a7af;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.round-action {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #38383d;
  border-radius: 50%;
  background: #151517;
  color: #dedee2;
  font-size: 22px;
  cursor: pointer;
}

/* Perfil y formularios de cuenta */
.profile-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px solid #303034;
  border-radius: 17px;
  background: linear-gradient(145deg, #19191c, #111113);
}

.profile-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  grid-row: span 2;
  place-items: center;
  border: 1px solid rgb(255 157 46 / 34%);
  border-radius: 15px;
  background: rgb(255 157 46 / 10%);
  color: #ffc477;
  font-size: 12px;
  font-weight: 850;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-card > div:nth-child(2) {
  min-width: 0;
}

.profile-card > div:nth-child(2) strong {
  color: #f5f5f6;
  font-size: 14px;
}

.profile-card > div:nth-child(2) p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #a6a6ad;
  font-size: 11px;
  text-overflow: ellipsis;
}

.profile-balance {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #2b2b30;
}

.profile-balance span {
  color: #a2a2aa;
  font-size: 10px;
}

.profile-balance strong {
  color: #ffc477;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.role-badge[data-role="admin"] {
  border-color: rgb(255 157 46 / 35%);
  background: rgb(255 157 46 / 10%);
  color: #ffc477;
}

.form-panel {
  margin-top: 12px;
  padding: 16px 14px;
  border: 1px solid #2f2f34;
  border-radius: 16px;
  background: #121214;
}

.form-panel h2,
.admin-section h2 {
  margin: 0;
  color: #f1f1f3;
  font-size: 15px;
  font-weight: 760;
}

.form-panel > p {
  margin: 6px 0 14px;
  color: #9898a1;
  font-size: 11px;
  line-height: 1.45;
}

.profile-accordion {
  overflow: hidden;
  padding: 0;
}

.profile-accordion > summary,
.admin-settings-panel > summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-accordion > summary::-webkit-details-marker,
.admin-settings-panel > summary::-webkit-details-marker {
  display: none;
}

.profile-option-copy,
.admin-settings-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.profile-option-copy strong,
.admin-settings-copy strong {
  color: #f1f1f3;
  font-size: 13px;
  font-weight: 760;
}

.profile-option-copy small,
.admin-settings-copy small {
  color: #9696a0;
  font-size: 10px;
  line-height: 1.35;
}

.profile-option-chevron,
.admin-settings-chevron {
  flex: 0 0 auto;
  color: #ffc477;
  font-size: 21px;
  transition: transform 180ms ease;
}

.profile-accordion[open] > summary,
.admin-settings-panel[open] > summary {
  border-bottom: 1px solid #303034;
}

.profile-accordion[open] .profile-option-chevron,
.admin-settings-panel[open] .admin-settings-chevron {
  transform: rotate(180deg);
}

.profile-accordion > summary:focus-visible,
.admin-settings-panel > summary:focus-visible {
  outline: 2px solid #ff9d2e;
  outline-offset: -3px;
}

.profile-accordion > form,
.profile-option-body {
  padding: 14px;
}

.profile-option-body > p:not(.form-note) {
  margin: 0 0 12px;
  color: #9898a1;
  font-size: 11px;
  line-height: 1.45;
}

.admin-settings-panel {
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid rgb(255 157 46 / 24%);
  border-radius: 16px;
  background: linear-gradient(145deg, #19191c, #111113);
}

.admin-settings-panel > summary {
  margin: 0 -14px;
}

.admin-settings-body {
  padding: 14px 0 16px;
  border-top: 1px solid #303034;
}

.admin-settings-body > h2 {
  margin: 0 0 7px;
}

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

.account-form .primary-button {
  width: 100%;
  margin-top: 6px;
}

.form-success {
  margin: 3px 0 0;
  padding: 9px 11px;
  border: 1px solid rgb(92 216 144 / 28%);
  border-radius: 10px;
  background: rgb(52 155 91 / 11%);
  color: #88e2a8;
  font-size: 12px;
}

/* Panel de administración */
.admin-disclaimer {
  margin: -5px 0 16px;
  padding: 11px 12px;
  border: 1px solid rgb(255 157 46 / 20%);
  border-radius: 12px;
  background: rgb(255 157 46 / 7%);
  color: #cbb28f;
  font-size: 11px;
  line-height: 1.45;
}

.admin-section {
  margin-top: 22px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 11px;
}

.count-badge {
  min-width: 28px;
  min-height: 24px;
  padding: 0 8px;
  color: #f5c277;
}

.admin-user-card,
.admin-order-card,
.order-history-card,
.notification-item {
  padding: 13px;
  border: 1px solid #303034;
  border-radius: 15px;
  background: linear-gradient(145deg, #19191c, #111113);
}

.admin-user-top,
.admin-order-top,
.history-card-top,
.notification-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-user-name {
  overflow: hidden;
  color: #f0f0f2;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
}

.admin-user-email,
.admin-order-email {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #a7a7af;
  font-size: 10px;
  font-weight: 560;
}

.admin-order-email {
  color: #f0f0f2;
  font-size: 12px;
  font-weight: 700;
}

.admin-user-search {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #303034;
  border-radius: 14px;
  background: #141416;
}

.admin-user-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.admin-user-search-row .secondary-button {
  width: auto;
  min-width: 78px;
  min-height: 44px;
  margin: 0;
}

.admin-user-search > .form-note {
  margin: 0;
}

#admin-user-search-clear {
  justify-self: start;
  margin: 0;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-user-actions .small-action-button {
  margin-top: 0;
}

.admin-user-meta,
.admin-order-meta,
.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  color: #a1a1a9;
  font-size: 10px;
  line-height: 1.45;
}

.admin-user-meta strong,
.admin-order-meta strong,
.history-meta strong {
  color: #e7e7ea;
  font-weight: 680;
}

.secondary-button,
.warning-button,
.small-action-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid #414147;
  border-radius: 11px;
  background: #242427;
  color: #e6e6e9;
  font-size: 11px;
  font-weight: 730;
  cursor: pointer;
}

.small-action-button {
  min-height: 33px;
  margin-top: 10px;
  padding: 6px 10px;
  color: #ffc477;
}

.warning-button {
  border-color: rgb(255 89 100 / 35%);
  background: rgb(255 89 100 / 10%);
  color: #ff8b92;
}

.admin-order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.admin-order-actions .primary-button,
.admin-order-actions .warning-button {
  min-height: 40px;
  padding: 8px;
  font-size: 10px;
}

.status-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #3a3a40;
  border-radius: 999px;
  background: #222225;
  color: #ceced3;
  font-size: 9px;
  font-weight: 760;
  white-space: nowrap;
}

.status-badge[data-status="in_review"] {
  border-color: rgb(255 194 102 / 32%);
  background: rgb(255 157 46 / 10%);
  color: #ffc477;
}

.status-badge[data-status="completed"] {
  border-color: rgb(92 216 144 / 30%);
  background: rgb(52 155 91 / 10%);
  color: #83e0a4;
}

.status-badge[data-status="denied"] {
  border-color: rgb(255 89 100 / 30%);
  background: rgb(255 89 100 / 9%);
  color: #ff8b92;
}

.secondary-button {
  width: 100%;
  margin-top: 12px;
}

/* Ventanas de avisos, acreditación y confirmación */
.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(0 0 0 / 78%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.notification-layer,
.credit-layer,
.admin-confirm-layer {
  position: fixed;
  z-index: 76;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.notification-dialog,
.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(86svh, 760px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #38383e;
  border-radius: 20px;
  background: linear-gradient(155deg, #19191c, #101012 83%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 64%);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-heading h2,
.modal-card h2 {
  margin: 0;
  color: #f4f4f5;
  font-size: 19px;
  font-weight: 780;
}

.notification-dialog .mark-read-button {
  margin: 0 0 12px auto;
}

.notification-item.is-unread {
  border-color: rgb(255 157 46 / 31%);
  background: linear-gradient(145deg, rgb(255 157 46 / 8%), #121214 75%);
}

.notification-item h3 {
  margin: 0;
  color: #f1f1f3;
  font-size: 13px;
}

.notification-item p {
  margin: 7px 0 0;
  color: #b9b9c0;
  font-size: 12px;
  line-height: 1.5;
}

.notification-item time {
  flex: 0 0 auto;
  color: #8c8c94;
  font-size: 9px;
}

.notification-item .small-action-button {
  min-height: 29px;
  margin-top: 9px;
  font-size: 10px;
}

.modal-card > p {
  color: #b4b4bc;
  font-size: 12px;
  line-height: 1.45;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.modal-actions .primary-button,
.modal-actions .secondary-button {
  min-height: 44px;
  margin: 0;
}

/* Indicador de navegación con movimiento de burbuja */
.bottom-nav {
  position: fixed;
  isolation: isolate;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bottom-nav.has-admin {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav-bubble {
  position: absolute;
  z-index: 0;
  top: 7px;
  left: 0;
  width: 62px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgb(235 247 255 / 48%);
  border-radius: 52% 48% 45% 55% / 48% 44% 56% 52%;
  background:
    radial-gradient(ellipse at 29% 18%, rgb(255 255 255 / 52%), rgb(255 255 255 / 11%) 15%, transparent 34%),
    radial-gradient(circle at 72% 76%, rgb(141 207 255 / 9%), transparent 59%),
    linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(204 230 255 / 4%) 52%, rgb(255 255 255 / 7%));
  box-shadow:
    0 0 20px rgb(170 220 255 / 13%),
    inset 1px 1px 2px rgb(255 255 255 / 57%),
    inset -4px -5px 10px rgb(128 192 255 / 10%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  opacity: .84;
  will-change: transform, opacity, filter, border-radius;
}

.nav-item {
  position: relative;
  z-index: 1;
  min-height: 54px;
  border-radius: 15px;
  cursor: pointer;
  transition: color 260ms cubic-bezier(.22,.8,.22,1);
}

.nav-item svg {
  fill: none;
  transition: filter 260ms ease, transform 300ms cubic-bezier(.22,.8,.22,1);
}

.nav-item.is-active svg {
  filter: drop-shadow(0 0 7px rgb(255 255 255 / 25%));
  transform: translateY(-1px);
}

/* Alineación móvil */
.order-view {
  padding-bottom: calc(164px + var(--safe-bottom));
}

.order-footer {
  bottom: calc(76px + var(--safe-bottom));
}

.status-layer {
  z-index: 95;
}

@media (min-width: 700px) {
  .content-page {
    padding-right: 20px;
    padding-left: 20px;
  }

  .profile-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
    grid-row: auto;
  }

  .profile-balance {
    grid-column: auto;
    margin: 0;
    padding: 0 0 0 20px;
    border-top: 0;
    border-left: 1px solid #2b2b30;
  }

  .admin-section {
    margin-top: 28px;
  }
}

@media (max-width: 380px) {
  .topbar {
    gap: 5px;
  }

  .balance-chip {
    gap: 3px;
  }

  .balance-chip svg {
    display: none;
  }

  .page-heading h1 {
    font-size: 23px;
  }

  .content-page {
    padding-right: 11px;
    padding-left: 11px;
  }

  .order-submit {
    min-width: 127px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .initial-glass-orb {
    animation-duration: .01ms !important;
  }
}


/* Filtros compactos del catálogo */
.catalog-filters { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.catalog-filters::-webkit-scrollbar { display: none; }
.catalog-filter { min-height: 40px; padding: 8px 14px; border: 1px solid #343439; border-radius: 999px; background: #171719; color: #c8c8cf; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 150ms ease; }
.catalog-filter.is-active { border-color: rgb(255 157 46 / 50%); background: rgb(255 157 46 / 13%); color: #ffd08b; }
.catalog-filter:active { transform: scale(.97); }
.catalog-sort-label { display: block; margin: 8px 0 5px; color: #b8b8c0; font-size: 12px; font-weight: 650; }
.catalog-sort { width: 100%; min-height: 44px; margin-bottom: 10px; padding: 9px 12px; border: 1px solid #3c3c43; border-radius: 11px; background: #141416; color: #f4f4f5; font: inherit; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .catalog-filter, .game-tile { transition: none !important; } }

/* Diálogos ajustados a teclado virtual, pantallas bajas y áreas seguras */
.offer-layer, .notice-layer, .status-layer, .notification-layer, .admin-confirm-layer { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.offers-dialog, .notice-dialog, .status-dialog, .notification-dialog, .admin-confirm-dialog { max-height: min(88vh, 780px); max-height: min(88dvh, 780px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-height: 560px) { .offer-layer, .notice-layer, .status-layer, .notification-layer, .admin-confirm-layer { place-items: start center; overflow-y: auto; } }
@media (prefers-reduced-motion: no-preference) { .primary-button:not(:disabled):active, .nav-item:active { transform: scale(.975); } }

/* Catalogo de juegos administrables y controles de cuenta */
.dynamic-game-tile { background: linear-gradient(150deg, #202b42, #15171d 65%, #282016); }
.dynamic-game-glow { position: absolute; inset: 0; background: radial-gradient(circle at 25% 16%, rgb(119 173 255 / 32%), transparent 48%), linear-gradient(145deg, transparent 32%, rgb(255 157 46 / 18%)); pointer-events: none; }
.admin-game-form { gap: 10px; }
.admin-game-packages-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: #e7e7eb; font-size: 13px; }
.admin-game-packages-heading span { color: #aaaab2; }
.admin-game-package-rows { display: grid; gap: 9px; }
.admin-game-package-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 7px; padding: 9px; border: 1px solid #343439; border-radius: 12px; background: #19191c; }
.admin-game-package-row label { color: #bdbdc5; font-size: 11px; }
.admin-game-package-row .text-input { min-height: 42px; margin-top: 5px; padding: 8px; }
.admin-game-package-row .remove-game-package { min-height: 42px; }
.admin-games-list { margin-top: 14px; }
.admin-game-card { display: grid; gap: 7px; padding: 13px; border: 1px solid #343439; border-radius: 14px; background: #19191c; }
.admin-game-card > strong { color: #f4f4f5; }
.admin-game-meta { margin: 0; color: #b8b8c0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.admin-user-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.admin-user-actions button { min-height: 40px; }
.whatsapp-order-link { display: flex; margin: 10px 0; text-decoration: none; }
.whatsapp-order-link[hidden] { display: none !important; }
@media (max-width: 380px) { .admin-game-package-row { grid-template-columns: 1fr 1fr; } .admin-game-package-row .remove-game-package { grid-column: 1 / -1; } }
.admin-collapsible { overflow: hidden; }
.admin-collapsible-summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; cursor: pointer; list-style: none; }
.admin-collapsible-summary::-webkit-details-marker { display: none; }
.admin-collapsible-summary::after { content: "⌄"; color: #a8a8b0; font-size: 18px; transition: transform 180ms ease; }
.admin-collapsible[open] > .admin-collapsible-summary::after { transform: rotate(180deg); }
.admin-collapsible-summary > span:first-child { display: grid; gap: 4px; min-width: 0; }
.admin-collapsible-summary strong { color: #f1f1f4; font-size: 14px; }
.admin-collapsible-summary small { color: #a7a7af; font-size: 11px; }
.admin-collapsible-body { padding: 0 14px 14px; }
.admin-collapsible-body > .form-note:first-child { margin-top: 0; }
.admin-game-card .small-action-button { margin-top: 3px; }
.creator-code-label { margin-top: 12px; }
.creator-code-list { margin-top: 10px; }
.creator-code-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #343439; border-radius: 12px; background: #19191c; }
.creator-code-card strong { color: #f1f1f4; font-size: 12px; }

/* Reflejo especular y aro interior de la gota de agua */
.nav-bubble::before {
  position: absolute;
  top: 6px;
  left: 9px;
  width: 17px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgb(255 255 255 / 82%), rgb(255 255 255 / 0%));
  content: "";
  filter: blur(.35px);
  opacity: .78;
  transform: rotate(-34deg);
}

.nav-bubble::after {
  position: absolute;
  inset: 3px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 72% 76%, rgb(154 216 255 / 8%), transparent 62%);
  content: "";
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav-bubble, .offers-dialog, .package-option { transition-duration: .01ms !important; }
}

/* Fondo estacional: solo aparece tras iniciar sesión y en Inicio, Mis recargas o Perfil */
.seasonal-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: .42;
  pointer-events: none;
  background: #080809;
}
.seasonal-background[hidden] { display: none !important; }
.app-shell.has-seasonal-background { background: transparent; }
.app-shell.has-seasonal-background > main { position: relative; z-index: 1; }
.app-shell.has-seasonal-background .store-view { background: transparent; }
.app-shell.has-seasonal-background .topbar,
.app-shell.has-seasonal-background .account-strip { background: rgb(8 8 9 / 24%); backdrop-filter: blur(5px); }
.app-shell.has-seasonal-background .content-page { background: transparent; }
.app-shell.has-seasonal-background .profile-card,
.app-shell.has-seasonal-background .form-panel,
.app-shell.has-seasonal-background .order-history-card { backdrop-filter: blur(9px); }

/* Marco de Halloween alrededor de la imagen de cada tarjeta de juego */
.game-tile:not(.credit-store-tile) {
  border: 1px solid rgb(255 155 44 / 54%);
  box-shadow: inset 0 0 0 2px rgb(15 12 12 / 35%), 0 0 12px rgb(255 107 24 / 15%);
}
.game-tile:not(.credit-store-tile)::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 5px;
  border: 1px solid rgb(255 198 104 / 68%);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgb(0 0 0 / 34%), 0 0 12px rgb(255 116 31 / 16%);
  pointer-events: none;
}
.game-tile:not(.credit-store-tile)::after {
  content: "🎃";
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(255 170 74 / 58%);
  border-radius: 50%;
  background: rgb(16 13 15 / 66%);
  box-shadow: 0 0 12px rgb(255 117 20 / 28%);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}
.game-tile:not(.credit-store-tile) .game-pill,
.game-tile:not(.credit-store-tile) .game-card-foot { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .game-tile:not(.credit-store-tile) { box-shadow: none; }
}
