:root {
  --bg-image: url("./movil.png");
  --bg-image-desktop: url("./computadora.png");
  --mobile-user-bg: url("./fondo.png");
  --ink: #f3f4f6;
  --soft-ink: rgba(229, 231, 235, 0.86);
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-soft: rgba(220, 38, 38, 0.38);
  --panel: rgba(31, 41, 55, 0.74);
  --panel-strong: rgba(17, 24, 39, 0.84);
  --line: rgba(229, 231, 235, 0.12);
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.35);
  --gold: #cbd5e1;
  --gold-soft: rgba(203, 213, 225, 0.5);
  --ivory: #ffffff;
  --wine: #8f1f1e;
  --sand: #f8fafc;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(220, 38, 38, 0.14), transparent 26%),
    linear-gradient(180deg, #d1d5db 0%, #9ca3af 24%, #4b5563 58%, #111827 100%);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.app-shell,
.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.app-shell { padding: 0; }
.admin-shell { padding: 18px 12px; }

.phone-frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  isolation: isolate;
}

.auth-view {
  background:
    linear-gradient(180deg, rgba(31, 41, 55, 0.04), rgba(17, 24, 39, 0.1)),
    var(--bg-image),
    linear-gradient(180deg, #cbd5e1 0%, #9ca3af 24%, #4b5563 58%, #111827 100%);
  background-size: cover;
  background-position: center center;
}

.dashboard-view {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.56)),
    var(--mobile-user-bg),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-size: auto, contain, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, center top, center top;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.07)),
    linear-gradient(180deg, rgba(127, 29, 29, 0.01), rgba(127, 29, 29, 0.04) 58%, rgba(17, 24, 39, 0.1) 100%);
  backdrop-filter: none;
}

.overlay--dashboard {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.24)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 30%);
}

.auth-layout,
.dashboard-layout {
  position: relative;
  z-index: 1;
}

.auth-layout {
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dashboard-layout {
  padding: 16px 16px 102px;
}

.admin-wrapper {
  width: min(100%, 1120px);
  padding: 24px;
  border-radius: 30px;
  border: 1px solid var(--red-soft);
  background: linear-gradient(180deg, rgba(55, 65, 81, 0.92), rgba(17, 24, 39, 0.94));
  box-shadow: var(--shadow);
}

.brand {
  max-width: 310px;
  margin: 0 auto 20px;
  text-align: center;
}

.brand--admin { margin-left: 0; }

.brand__eyebrow,
.mini-field span,
.field__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.95);
}

.brand__eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
}

.brand__title,
.dashboard-hero__title {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--red);
  text-shadow: 0 6px 26px rgba(17, 24, 39, 0.28);
}

.brand__title {
  font-size: clamp(3.8rem, 16vw, 4.8rem);
  line-height: 0.9;
}

.dashboard-hero__title {
  font-size: 3rem;
  color: var(--wine);
  text-shadow: 0 12px 30px rgba(148, 163, 184, 0.16);
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 10px 0 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.46);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.98), rgba(127, 29, 29, 0.98));
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__welcome {
  margin: 0 0 8px;
  font-size: 1.14rem;
  font-weight: 800;
}

.brand__welcome span { color: #ef4444; }

.brand__copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--soft-ink);
}

.status-message {
  min-height: 20px;
  margin: 0 auto 10px;
  max-width: 332px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-message--error { color: #fecaca; }
.status-message--ok { color: #d1d5db; }

.auth-form {
  display: grid;
  gap: 10px;
  max-width: 332px;
  margin: 0 auto;
}

#loginForm {
  margin-top: 98px;
}

.field {
  display: grid;
  gap: 4px;
}

.invite-hint {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fef2f2;
  font-size: 0.8rem;
  font-weight: 800;
}

.field__label { padding-left: 10px; }

.field__control {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1.5px solid var(--red-soft);
  background: linear-gradient(180deg, rgba(55, 65, 81, 0.8), rgba(31, 41, 55, 0.82));
  box-shadow: inset 0 1px 0 rgba(229, 231, 235, 0.08);
  position: relative;
}

.field__control--split { padding-right: 8px; }
.field__prefix, .field__captcha { flex: 0 0 auto; font-weight: 900; }

.field__captcha {
  min-width: 82px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 35%, rgba(229, 231, 235, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 70%, rgba(239, 68, 68, 0.32) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(55, 65, 81, 0.96), rgba(31, 41, 55, 0.96));
  border: 1px solid rgba(229, 231, 235, 0.12);
  color: #f8fafc;
  text-align: center;
  letter-spacing: 0.14em;
  overflow: hidden;
  cursor: pointer;
}

.field__captcha span {
  display: inline-block;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  transform: rotate(-7deg);
  text-shadow: 0 1px 0 rgba(17, 24, 39, 0.45);
}

.field input,
.mini-field input,
.mini-field select {
  width: 100%;
  border: 0;
  outline: none;
  background: rgba(31, 41, 55, 0.01) !important;
  background-color: rgba(31, 41, 55, 0.01) !important;
  color: var(--ink);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none !important;
  padding: 0;
  position: relative;
  z-index: 1;
}

.field input::placeholder,
.mini-field input::placeholder { color: rgba(229, 231, 235, 0.72); }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px rgba(41, 51, 65, 0.92) inset !important;
  box-shadow: 0 0 0 1000px rgba(41, 51, 65, 0.92) inset !important;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--ink);
}

.field input:-internal-autofill-selected {
  background-color: transparent !important;
}

.field__control input {
  display: block;
  width: 100%;
  min-height: 100%;
  background: rgba(41, 51, 65, 0.92) !important;
}

.field__control input::-ms-reveal,
.field__control input::-ms-clear {
  display: none;
}

.primary-btn,
.mini-btn,
.icon-btn {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #f9fafb;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.text-btn {
  border: 0;
  background: transparent;
  color: #e5e7eb;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.38;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-btn--small { font-size: 0.82rem; text-align: right; }

.topbar,
.dashboard-hero,
.quick-grid,
.poster-section,
.ranking-section,
.admin-panel { margin-bottom: 14px; }

.topbar,
.admin-panel__header,
.ranking-header,
.user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ghost-chip,
.circle-icon,
.ranking-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--red-soft);
  background: rgba(31, 41, 55, 0.52);
  color: #e5e7eb;
  font-size: 0.78rem;
  font-weight: 800;
}

.topbar {
  margin-bottom: 18px;
  color: #2b2118;
}

.topbar__meta,
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__time {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ghost-chip,
.circle-icon {
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--gold-soft);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

.ghost-chip--language {
  gap: 8px;
  padding-inline: 14px 16px;
}

.ghost-chip__flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 4px 10px rgba(15, 23, 42, 0.12);
}

.ghost-chip__flag--us {
  background:
    radial-gradient(circle at 30% 35%, #fff 0 10%, transparent 11%),
    linear-gradient(180deg, #1d4ed8 0 54%, transparent 54%),
    repeating-linear-gradient(180deg, #dc2626 0 8%, #fff 8% 16%);
}

.circle-icon {
  width: 46px;
  min-width: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.95rem;
}

.dashboard-hero { text-align: center; }

.dashboard-hero__subtitle {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.hero-arch {
  position: relative;
  margin: 0 auto 18px;
  padding: 40px 22px 26px;
  max-width: 370px;
  border: 2px solid rgba(203, 213, 225, 0.74);
  border-radius: 999px 999px 28px 28px / 160px 160px 28px 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86) 62%, rgba(248, 250, 252, 0.74)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 60px rgba(148, 163, 184, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.hero-arch::before {
  content: "";
  position: absolute;
  inset: 12px 12px auto;
  height: 52%;
  border-radius: inherit;
  border: 1px solid rgba(226, 232, 240, 0.9);
  pointer-events: none;
}

.hero-arch__kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
}

.dashboard-hero__copy {
  max-width: 250px;
  margin: 0 auto;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

.welcome-pill,
.ranking-header,
.quick-card,
.admin-card,
.ranking-card {
  border: 1px solid var(--red-soft);
  background: linear-gradient(180deg, rgba(55, 65, 81, 0.76), rgba(31, 41, 55, 0.8));
  box-shadow: inset 0 1px 0 rgba(229, 231, 235, 0.06);
}

.welcome-banner {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  max-width: 372px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.12);
}

.welcome-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--wine);
  background: radial-gradient(circle at top, #ffffff, #e2e8f0);
  border: 1px solid rgba(203, 213, 225, 0.52);
}

.welcome-banner__text {
  display: grid;
  text-align: left;
  gap: 4px;
}

.welcome-banner__text strong {
  font-size: 0.95rem;
  color: #334155;
}

.welcome-banner__text span {
  font-size: 0.8rem;
  color: #64748b;
}

.dashboard-panel {
  margin-bottom: 14px;
  border-radius: 26px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 18px 42px rgba(148, 163, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.dashboard-panel--grid {
  padding: 14px 12px 12px;
  overflow: hidden;
}

.dashboard-panel--dark {
  padding: 12px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-color: rgba(203, 213, 225, 0.36);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  align-items: start;
}

.quick-card {
  min-height: 118px;
  padding: 6px 2px 0;
  border-radius: 24px;
  display: grid;
  grid-template-rows: 72px auto;
  align-items: start;
  justify-items: center;
  text-align: center;
  gap: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.quick-card__icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.2) 26%, transparent 27%),
    linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow:
    0 10px 22px rgba(148, 163, 184, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -12px 18px rgba(148, 163, 184, 0.12);
}

.quick-card__icon::before,
.quick-card__icon::after {
  content: "";
  position: absolute;
  border-radius: 16px;
  pointer-events: none;
}

.quick-card__icon::before {
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.quick-card__icon::after {
  inset: 0;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.55), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%);
}

.quick-card__icon svg {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 6px 8px rgba(255, 255, 255, 0.45))
    drop-shadow(0 2px 5px rgba(15, 23, 42, 0.18));
}

.quick-card__icon svg * {
  vector-effect: non-scaling-stroke;
}

.quick-card__icon--friends svg { width: 40px; height: 40px; }
.quick-card__icon--wallet svg { width: 52px; height: 52px; }
.quick-card__icon--withdraw svg { width: 52px; height: 52px; transform: translateY(1px); }
.quick-card__icon--wealth svg { width: 52px; height: 52px; }
.quick-card__icon--store svg { transform: translateY(2px); }
.quick-card__icon--luck svg { width: 52px; height: 52px; }
.quick-card__icon--news svg { width: 37px; height: 37px; }
.quick-card__icon--request svg { width: 37px; height: 37px; }

.quick-card__icon--friends {
  color: #dc2626;
}

.quick-card__icon--wallet {
  color: #d4a017;
}

.quick-card__icon--withdraw {
  color: #22c55e;
}

.quick-card__icon--wealth {
  color: #38bdf8;
}

.quick-card__icon--store {
  color: #fb7185;
}

.quick-card__icon--luck {
  color: #f59e0b;
}

.quick-card__icon--news {
  color: #8b5cf6;
}

.quick-card__icon--request {
  color: #14b8a6;
}

.quick-card strong {
  max-width: 82px;
  min-height: 28px;
  display: block;
  font-size: 0.7rem;
  line-height: 1.18;
  font-weight: 900;
  color: #475569;
  letter-spacing: -0.01em;
}

.poster-slider__viewport,
.ranking-slider__viewport {
  overflow: hidden;
  border-radius: 22px;
}

.poster-slider__track {
  display: flex;
  transition: transform var(--poster-transition, 900ms) ease;
  gap: 0;
  width: 100%;
}

.poster-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 184px;
  border-radius: 18px;
  overflow: hidden;
}

.poster-slide img { width: 100%; height: 100%; object-fit: cover; }

.poster-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.42));
}

.poster-slide__caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 23, 19, 0.7);
  font-size: 0.68rem;
  font-weight: 800;
}

/* Titles should not cover the banner content. Kept for backward compatibility. */
.poster-slide__caption { display: none; }

.ranking-section {
  margin-bottom: 10px;
}

.ranking-title {
  margin-bottom: 8px;
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78211e;
}

.ranking-slider__track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--ranking-transition, 700ms) ease;
}

.ranking-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.6);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.08);
}

.ranking-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px solid rgba(203, 213, 225, 0.52);
  position: relative;
  overflow: hidden;
}

.ranking-card__avatar::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8f1f1e;
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
}

.ranking-card__avatar::after {
  content: "";
  width: 34px;
  height: 22px;
  border-radius: 18px 18px 10px 10px;
  background: #8f1f1e;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.ranking-card__content {
  display: grid;
  gap: 2px;
}

.ranking-card__content strong {
  font-size: 0.92rem;
  color: #24170f;
}

.ranking-card__content span {
  font-size: 0.76rem;
  color: #8c2c2b;
}

.ranking-card__prize {
  font-size: 0.95rem;
  font-weight: 900;
  color: #b72221;
}

.admin-panel { display: grid; gap: 12px; }
.admin-panel__header strong { font-size: 0.92rem; }

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-top__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-title {
  margin: 0;
  font-size: 1.6rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.admin-nav .icon-btn {
  min-height: 38px;
}

.admin-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #fff7ed;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.28);
}

.admin-nav__badge.is-hidden {
  display: none;
}

.admin-pages {
  width: 100%;
}

.admin-card,
.admin-card__title {
  border-radius: 22px;
}

.admin-card {
  padding: 14px;
}

.admin-card__title {
  margin: 0 0 14px;
  font-size: 1rem;
}

.admin-grid-page {
  display: grid;
  gap: 16px;
}

.admin-card--wide {
  grid-column: 1 / -1;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.icon-btn.is-active {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #f9fafb;
}

.mini-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.mini-field input,
.mini-field select {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--red-soft);
  background: rgba(31, 41, 55, 0.6);
}

.admin-inline {
  display: grid;
  gap: 10px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-btn {
  min-height: 42px;
  padding: 0 14px;
}

.mini-btn--ghost,
.icon-btn {
  background: rgba(31, 41, 55, 0.72);
  color: #e5e7eb;
  border: 1px solid var(--red-soft);
}

.icon-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.icon-btn--danger {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.22);
  color: rgba(254, 226, 226, 0.98);
}

.icon-btn--danger:hover {
  background: rgba(127, 29, 29, 0.34);
}

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

.admin-section-block {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-section-title {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.82);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.08), transparent 28%),
    rgba(229, 231, 235, 0.06);
}

.admin-stat-card span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.78);
}

.admin-stat-card strong {
  font-size: 1.28rem;
  color: #fff7ed;
}

.admin-stat-card small {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(229, 231, 235, 0.82);
}

.admin-users-grid {
  display: grid;
  gap: 14px;
}

.admin-user-detail {
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(31, 41, 55, 0.5);
  padding: 12px;
}

.admin-user-empty {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(229, 231, 235, 0.06);
}

.admin-user-empty strong {
  font-size: 0.95rem;
}

.admin-user-empty span {
  font-size: 0.82rem;
  color: rgba(229, 231, 235, 0.82);
}

.admin-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-phone {
  font-size: 1.02rem;
  font-weight: 900;
}

.admin-user-sub {
  margin-top: 2px;
  font-size: 0.8rem;
  color: rgba(229, 231, 235, 0.82);
}

.admin-user-stats {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.admin-kv {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(229, 231, 235, 0.06);
}

.admin-kv b {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.9);
}

.admin-kv span {
  font-size: 0.86rem;
  color: rgba(229, 231, 235, 0.92);
  word-break: break-word;
}

.admin-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(248, 113, 113, 0.22);
}

.admin-inline--users {
  grid-template-columns: 1.2fr 0.8fr;
}

.admin-inline--3 {
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  align-items: end;
}

.admin-inline--withdraw {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  margin-top: 10px;
}

.admin-actions--stack {
  flex-direction: column;
  align-items: stretch;
}

.mini-field--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ef4444;
}

.admin-temp-pin {
  display: grid;
  gap: 8px;
}

.admin-control-card .admin-kv {
  border: 1px solid rgba(248, 113, 113, 0.2);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), rgba(229, 231, 235, 0.05));
}

.admin-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(229, 231, 235, 0.06);
}

.admin-item--user {
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  border: 1px solid rgba(248, 113, 113, 0.14);
}

.admin-item--user:hover {
  transform: translateY(-1px);
  background: rgba(229, 231, 235, 0.085);
  border-color: rgba(248, 113, 113, 0.26);
}

.admin-item--user.is-selected {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 14px 46px rgba(239, 68, 68, 0.12);
}

.admin-item__meta {
  display: grid;
  gap: 2px;
}

.admin-item__meta strong { font-size: 0.88rem; }
.admin-item__meta span { font-size: 0.74rem; color: rgba(229, 231, 235, 0.82); }

.admin-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.floating-actions {
  position: fixed;
  right: 12px;
  bottom: 110px;
  z-index: 3;
  display: grid;
  gap: 8px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: radial-gradient(circle at top, #facc15, #b45309);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  display: grid;
  place-items: center;
}

.floating-btn--green {
  background: radial-gradient(circle at top, #66f38a, #16a34a);
}

.floating-btn--membership {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 250, 220, 0.9), transparent 28%),
    linear-gradient(180deg, #eab308 0%, #a16207 100%);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.user-actions {
  margin-bottom: 4px;
  justify-content: center;
  gap: 18px;
}

.user-actions .text-btn {
  color: #73461d;
}

.task-shell {
  padding: 8px 0 6px;
}

.deposit-shell {
  padding: 0 0 10px;
}

.deposit-panel {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(148, 163, 184, 0.08);
}

.deposit-panel__header {
  display: grid;
  gap: 4px;
}

.deposit-panel__header strong {
  font-size: 1.02rem;
  color: #374151;
}

.deposit-panel__header span {
  font-size: 0.82rem;
  color: #6b7280;
}

.deposit-steps {
  display: grid;
  gap: 8px;
}

.deposit-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.deposit-step b {
  color: #b91c1c;
  font-size: 0.9rem;
}

.deposit-step span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #4b5563;
}

.deposit-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.deposit-chip {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #475569;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 10px 16px rgba(148, 163, 184, 0.08);
}

.deposit-chip.is-active {
  border-color: rgba(185, 28, 28, 0.36);
  background: linear-gradient(180deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.deposit-custom {
  display: grid;
  gap: 6px;
}

.deposit-custom span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.deposit-custom input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  font: inherit;
}

.deposit-bankcard {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #991b1b, #7f1d1d);
  color: #fff7ed;
  display: grid;
  gap: 6px;
  box-shadow: 0 16px 28px rgba(127, 29, 29, 0.16);
}

.deposit-bankcard > span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 247, 237, 0.74);
}

.deposit-bankcard strong {
  font-size: 1.35rem;
}

.deposit-bankcard__meta {
  display: grid;
  gap: 6px;
}

.deposit-bankcard__meta span {
  font-size: 0.82rem;
  line-height: 1.3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.deposit-bankcard__meta b {
  color: #fff;
  word-break: break-all;
}

.deposit-copy {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.deposit-copy svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deposit-actions {
  display: grid;
  gap: 10px;
}

.deposit-submit {
  width: 100%;
}

.membership-shell {
  padding: 0 0 10px;
  min-height: calc(100vh - 116px);
  background:
    radial-gradient(circle at 0 12%, rgba(220, 38, 38, 0.08), transparent 18%),
    radial-gradient(circle at 100% 26%, rgba(220, 38, 38, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-radius: 30px 30px 0 0;
}

.membership-hero {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 2px 2px 0;
}

.membership-hero__back {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #b91c1c;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.14);
}

.membership-hero__back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.membership-hero__copy {
  text-align: center;
  padding-right: 34px;
}

.membership-hero .task-title {
  color: #374151;
}

.task-header {
  margin-bottom: 12px;
  text-align: center;
}

.task-title {
  margin: 0;
  font-size: 1.7rem;
  color: #6f1f1d;
}

.task-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.task-tab {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.08);
}

.task-tab.is-active {
  color: #7d231d;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  box-shadow:
    0 14px 24px rgba(148, 163, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.task-list {
  display: grid;
  gap: 12px;
}

.membership-summary,
.membership-list {
  display: grid;
  gap: 12px;
}

.fund-shell,
.fund-list,
.fund-active-list {
  display: grid;
  gap: 12px;
}

.fund-shell {
  max-width: 980px;
  margin: 0 auto;
  gap: 18px;
}

.fund-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fund-tab {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(185, 28, 28, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: #7f1d1d;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(127, 29, 29, 0.08);
}

.fund-tab.is-active {
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff7ed;
}

.fund-card {
  padding: 14px;
  border-radius: 26px;
  border: 1px solid rgba(185, 28, 28, 0.1);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(185, 28, 28, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 34px rgba(127, 29, 29, 0.08);
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  cursor: pointer;
}

.fund-card--active {
  grid-template-columns: 1fr;
  cursor: default;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(234, 88, 12, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.98);
}

.fund-card__media {
  position: relative;
  min-height: 118px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(127, 29, 29, 0.28), rgba(234, 88, 12, 0.24) 48%, rgba(8, 145, 178, 0.26)),
    url("/static/css/caja%20fuerte.avif") center/cover no-repeat;
}

.fund-card__pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 14%),
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.14), transparent 12%),
    repeating-radial-gradient(circle at center, rgba(255, 240, 220, 0.14) 0 4px, transparent 4px 12px);
}

.fund-card__main {
  display: grid;
  gap: 12px;
  align-content: start;
}

.fund-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.fund-card__header strong {
  font-size: 1rem;
  color: #111827;
}

.fund-card__header span {
  font-size: 0.76rem;
  font-weight: 800;
  color: #111827;
}

.fund-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.fund-card__summary-col {
  display: grid;
  gap: 8px;
}

.fund-card__summary span {
  font-size: 0.86rem;
  line-height: 1.36;
  color: #111827;
}

.fund-shell .brand__eyebrow,
.fund-screen__title {
  color: #111827;
}

.fund-card__field {
  display: grid;
  gap: 6px;
}

.fund-card__field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
}

.fund-card__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(255, 255, 255, 0.98));
  font-size: 0.95rem;
  color: #111827;
}

.fund-card__estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(14, 116, 144, 0.92));
  color: #fff7ed;
  box-shadow: 0 14px 24px rgba(127, 29, 29, 0.18);
}

.fund-card__estimate span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fund-card__estimate strong {
  font-size: 1.05rem;
  color: #ffffff;
}

.fund-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 248, 241, 0.98), rgba(255, 255, 255, 0.98));
  color: #111827;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.fund-card__action--claim {
  margin-top: 2px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff7ed;
  border-color: rgba(15, 118, 110, 0.24);
}

.fund-card__action--claim:disabled {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #f8fafc;
  cursor: not-allowed;
}

.fund-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fund-card__stats span {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.96);
  font-size: 0.78rem;
  line-height: 1.35;
  color: #111827;
}

.fund-card__stats b {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 0.9rem;
}

.roulette-shell {
  display: grid;
  gap: 16px;
}

.roulette-hero .brand__eyebrow {
  color: #fbbf24;
}

.roulette-help-btn {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(255, 250, 240, 0.92);
  color: #8f1f1e;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(143, 31, 30, 0.08);
}

.roulette-help-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.roulette-stage {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.14), transparent 26%),
    linear-gradient(180deg, #08130f, #0f172a 58%, #111827);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.14), 0 24px 48px rgba(15, 23, 42, 0.24);
}

.roulette-stage__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, 0.12), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 18px);
  pointer-events: none;
}

.roulette-wheel-wrap {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.roulette-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 32px solid #facc15;
  filter: drop-shadow(0 10px 18px rgba(250, 204, 21, 0.35));
  z-index: 2;
}

.roulette-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 12px solid rgba(255, 241, 214, 0.95);
  background: conic-gradient(
    from -30deg,
    #f97316 0deg 60deg,
    #0f9d58 60deg 120deg,
    #2563eb 120deg 180deg,
    #9333ea 180deg 240deg,
    #475569 240deg 300deg,
    #ef4444 300deg 360deg
  );
  box-shadow:
    inset 0 0 0 8px rgba(17, 24, 39, 0.42),
    0 30px 60px rgba(15, 23, 42, 0.3),
    0 0 30px rgba(255, 236, 179, 0.2);
  transition: transform 4.2s cubic-bezier(.16,.84,.21,1);
}

.roulette-wheel.is-spinning {
  filter: drop-shadow(0 0 24px rgba(250, 204, 21, 0.5));
}

.roulette-wheel.is-winning {
  animation: roulette-win-pulse 900ms ease 2;
}

.roulette-wheel__labels {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.roulette-wheel__label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  margin-left: -56px;
  text-align: center;
  color: #fff7ed;
  font-size: 0.84rem;
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
  transform:
    rotate(var(--angle))
    translateY(-120px)
    rotate(calc(var(--angle) * -1));
}

.roulette-wheel__label.is-blocked {
  opacity: 1;
  filter: none;
}

@media (max-width: 480px) {
  .roulette-wheel__label {
    width: 84px;
    margin-left: -42px;
    font-size: 0.58rem;
    line-height: 1.08;
    transform:
      rotate(var(--angle))
      translateY(-104px)
      rotate(calc(var(--angle) * -1));
  }
}

.roulette-wheel__hub {
  position: absolute;
  inset: 50%;
  width: 74px;
  height: 74px;
  margin-left: -37px;
  margin-top: -37px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7ed, #f59e0b 58%, #7c2d12);
  border: 6px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.28);
}

.roulette-sidecard {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(57, 18, 18, 0.76), rgba(29, 37, 64, 0.72));
  border: 1px solid rgba(255, 222, 173, 0.22);
}

.roulette-marquee {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(239, 68, 68, 0.18));
  border: 1px solid rgba(250, 204, 21, 0.22);
}

.roulette-marquee span {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fcd34d;
}

.roulette-marquee b {
  font-size: 1rem;
  color: #fff7ed;
}

.roulette-balance {
  display: grid;
  gap: 4px;
}

.roulette-balance span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.74);
}

.roulette-balance strong {
  color: #fef3c7;
  font-size: 1.05rem;
}

.roulette-spin-btn {
  min-height: 50px;
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  border: 0;
  color: #fff7ed;
}

.roulette-prizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.roulette-target {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 233, 187, 0.28);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 30%),
    linear-gradient(135deg, #fffaf2, #fff1d6);
  box-shadow: 0 18px 34px rgba(127, 29, 29, 0.08);
}

.roulette-target strong {
  color: #111827;
  font-size: 1.02rem;
}

.roulette-target span,
.roulette-target b {
  font-size: 0.8rem;
  color: #6b7280;
}

.roulette-target b {
  color: #8f1f1e;
  font-weight: 900;
}

.roulette-history {
  display: grid;
  gap: 10px;
}

.roulette-log {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 30px rgba(148, 163, 184, 0.08);
}

.roulette-log strong {
  color: #111827;
}

.roulette-log span {
  font-size: 0.8rem;
  color: #64748b;
}

.roulette-log b {
  color: #7f1d1d;
}

.admin-roulette-grid {
  display: grid;
  gap: 12px;
}

.fund-confirm {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px 18px;
}

.fund-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(7px);
}

.fund-confirm__card {
  position: relative;
  width: min(100%, 430px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  border-radius: 30px;
  padding: 24px 20px 22px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(185, 28, 28, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 251, 245, 0.98));
  box-shadow: 0 28px 60px rgba(76, 29, 29, 0.18);
}

.fund-confirm__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
}

.fund-confirm__hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.fund-confirm__art {
  position: relative;
  min-height: 118px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(127, 29, 29, 0.4), rgba(154, 52, 18, 0.34) 48%, rgba(15, 118, 110, 0.3)),
    url("/static/css/caja%20fuerte.avif") center/cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.fund-confirm__art span,
.fund-confirm__art::before,
.fund-confirm__art::after {
  position: absolute;
  content: "";
  border-radius: 999px 999px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(255, 236, 210, 0.24)),
    rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 18px rgba(76, 29, 29, 0.24);
}

.fund-confirm__art span {
  width: 48px;
  height: 70px;
  left: 18px;
  bottom: 18px;
}

.fund-confirm__art::before {
  width: 42px;
  height: 62px;
  right: 20px;
  bottom: 16px;
}

.fund-confirm__art::after {
  width: 50px;
  height: 24px;
  left: 32px;
  top: 18px;
}

.fund-confirm__copy {
  display: grid;
  gap: 6px;
}

.fund-confirm__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f766e;
}

.fund-confirm__title {
  margin: 0;
  font-size: 1.55rem;
  color: #7f1d1d;
}

.fund-confirm__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #7f1d1d);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fund-confirm__field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.fund-confirm__field span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.fund-confirm__input-wrap {
  position: relative;
}

.fund-confirm__input {
  width: 100%;
  padding: 14px 92px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(14, 116, 144, 0.2);
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(255, 255, 255, 0.98));
  font-size: 1rem;
  color: #111827;
}

.fund-confirm__input:focus {
  outline: none;
  border-color: rgba(127, 29, 29, 0.42);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
}

.fund-confirm__input-hint {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.96);
  border: 1px solid rgba(127, 29, 29, 0.16);
  color: #8a2d1d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.fund-confirm__field-note {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #7c2d12;
}

.fund-confirm__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.fund-confirm__summary span {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.96);
  font-size: 0.78rem;
  line-height: 1.35;
  color: #475569;
}

.fund-confirm__summary b {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 0.9rem;
}

.fund-confirm__notes {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.fund-confirm__notes p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

.fund-confirm__alert {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #9a3412;
  font-size: 0.86rem;
  line-height: 1.45;
}

.fund-confirm__alert.is-warning {
  background: rgba(254, 242, 242, 0.96);
  border-color: rgba(248, 113, 113, 0.28);
  color: #b91c1c;
}

.fund-confirm__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.fund-confirm__actions > * {
  flex: 1;
}

.membership-banner,
.membership-plan {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.membership-plan {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 34px rgba(148, 163, 184, 0.08);
}

.membership-plan::before {
  content: "";
  position: absolute;
  inset: 8px auto auto 88px;
  width: 170px;
  height: 170px;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23b45309' stroke-width='2.2'%3E%3Ccircle cx='80' cy='80' r='18'/%3E%3Ccircle cx='80' cy='80' r='34'/%3E%3Ccircle cx='80' cy='80' r='50'/%3E%3Cpath d='M80 18v20M80 122v20M18 80h20M122 80h20M38 38l14 14M108 108l14 14M38 122l14-14M108 52l14-14'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

.membership-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.membership-banner--active {
  border: 1px solid rgba(127, 29, 29, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 208, 112, 0.18), transparent 28%),
    linear-gradient(135deg, #9f1d1d 0%, #7f1d1d 100%);
  color: #fff7ed;
  box-shadow: 0 18px 32px rgba(127, 29, 29, 0.14);
}

.membership-banner--muted {
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.08);
}

.membership-banner__copy {
  display: grid;
  gap: 4px;
}

.membership-banner__copy strong {
  font-family: "Cinzel", serif;
  font-size: 1.42rem;
}

.membership-banner__copy span:last-child {
  font-size: 0.78rem;
  line-height: 1.35;
}

.membership-banner--muted .membership-banner__copy strong {
  color: #4b5563;
}

.membership-banner--muted .membership-banner__copy span:last-child {
  color: #6b7280;
}

.membership-banner__eyebrow {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 247, 237, 0.78);
}

.membership-banner--muted .membership-banner__eyebrow {
  color: #b45309;
}

.membership-banner__coin {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #fde68a, #d97706 65%, #92400e 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.membership-banner__coin--soft {
  background: radial-gradient(circle at 30% 30%, #fff7ed, #fed7aa 65%, #fb923c 100%);
}

.membership-banner__coin span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 240, 138, 0.5));
}

.membership-plan {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 34px rgba(148, 163, 184, 0.08);
  isolation: isolate;
}

.membership-plan::after {
  content: "";
  position: absolute;
  inset: auto 10px 6px auto;
  width: 132px;
  height: 72px;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 120'%3E%3Cg fill='none' stroke='%23991b1b' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 98h164'/%3E%3Cpath d='M56 98V72h108v26'/%3E%3Cpath d='M70 72V48h80v24'/%3E%3Cpath d='M92 48V28h36v20'/%3E%3Cpath d='M110 28V16'/%3E%3Cpath d='M34 98V58'/%3E%3Cpath d='M186 98V58'/%3E%3Cpath d='M34 58c12 0 22-10 22-22'/%3E%3Cpath d='M186 58c-12 0-22-10-22-22'/%3E%3Ccircle cx='110' cy='12' r='4' fill='%23991b1b'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

.membership-plan__badge {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100%;
}

.membership-plan__medal {
  position: relative;
  width: 68px;
  height: 86px;
  border-radius: 20px;
  display: block;
  flex: 0 0 86px;
  box-shadow: none;
}

.membership-plan__medal::before,
.membership-plan__medal::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.membership-plan__medal::before {
  top: 0;
  width: 20px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(120, 53, 15, 0.85);
  background: rgba(255, 249, 219, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.membership-plan__medal::after {
  top: 6px;
  width: 64px;
  height: 78px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  filter: drop-shadow(0 10px 14px rgba(95, 45, 8, 0.18));
}

.membership-plan__medal {
  filter: drop-shadow(0 6px 10px rgba(102, 51, 0, 0.15));
}

.membership-plan__medal span {
  display: none;
}

.membership-plan__vip {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(97, 69, 22, 0.34);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  max-width: 78px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: center;
}

.membership-plan__vip--wide {
  font-size: 0.46rem;
  letter-spacing: 0.02em;
  max-width: 82px;
  padding-inline: 5px;
}

.membership-plan.is-copper {
  background:
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.14), transparent 22%),
    radial-gradient(circle at bottom left, rgba(153, 27, 27, 0.12), transparent 20%),
    linear-gradient(135deg, #fff8f2, #fff0e6 58%, #fffaf7);
}

.membership-plan.is-copper::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%239a3412' stroke-width='2.2'%3E%3Ccircle cx='80' cy='80' r='20'/%3E%3Ccircle cx='80' cy='80' r='38' opacity='.34'/%3E%3Cpath d='M80 32c8 14 14 20 28 28-14 8-20 14-28 28-8-14-14-20-28-28 14-8 20-14 28-28Z'/%3E%3Cpath d='M54 54l10 10M96 96l10 10M54 106l10-10M96 64l10-10'/%3E%3C/g%3E%3C/svg%3E");
}

.membership-plan.is-copper .membership-plan__badge { background: linear-gradient(180deg, #f7d19c 0%, #e6a450 100%); }

.membership-plan.is-gold {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 22%),
    radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.12), transparent 20%),
    linear-gradient(135deg, #fffaf0, #fff7e8 58%, #fffdf6);
}

.membership-plan.is-gold .membership-plan__badge { background: linear-gradient(180deg, #f6d38a 0%, #f0b845 100%); }
.membership-plan.is-copper .membership-plan__medal::before { border-color: rgba(146, 64, 14, 0.95); }
.membership-plan.is-gold .membership-plan__medal::before { border-color: rgba(139, 94, 11, 0.95); }

.membership-plan.is-silver {
  background:
    radial-gradient(circle at top right, rgba(244, 114, 114, 0.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.08), transparent 18%),
    linear-gradient(135deg, #fff7f5, #fff0eb 58%, #fff9f7);
}

.membership-plan.is-silver::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23b91c1c' stroke-width='2.2'%3E%3Ccircle cx='80' cy='80' r='18'/%3E%3Ccircle cx='80' cy='80' r='34'/%3E%3Cpath d='M80 26v18M80 116v18M26 80h18M116 80h18M48 48l12 12M100 100l12 12M48 112l12-12M100 60l12-12'/%3E%3C/g%3E%3C/svg%3E");
}

.membership-plan.is-silver .membership-plan__badge { background: linear-gradient(180deg, #f6b2a9 0%, #eb7c66 100%); }
.membership-plan.is-silver .membership-plan__medal::before { border-color: rgba(127, 29, 29, 0.9); }

.membership-plan.is-blue {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 22%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 20%),
    linear-gradient(135deg, #f4f8ff, #eef5ff 58%, #f8fbff);
}

.membership-plan.is-blue::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%231d4ed8' stroke-width='2.2'%3E%3Cpath d='M38 98c18-34 30-58 34-58 3 0 6 7 10 20 5-10 10-16 15-16 8 0 18 20 27 54'/%3E%3Ccircle cx='44' cy='108' r='8'/%3E%3Ccircle cx='118' cy='108' r='8'/%3E%3Cpath d='M62 108h38'/%3E%3Ccircle cx='80' cy='80' r='34' opacity='.22'/%3E%3C/g%3E%3C/svg%3E");
}

.membership-plan.is-blue .membership-plan__badge { background: linear-gradient(180deg, #8cbcff 0%, #4c8fef 100%); }
.membership-plan.is-blue .membership-plan__medal::before { border-color: rgba(30, 64, 175, 0.95); }

.membership-plan.is-ruby {
  background:
    radial-gradient(circle at top right, rgba(126, 34, 206, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.1), transparent 22%),
    linear-gradient(135deg, #fbf6ff, #f7f0ff 58%, #fffaff);
}

.membership-plan.is-ruby::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%237e22ce' stroke-width='2.2'%3E%3Cpath d='M80 30c8 18 14 26 26 34-12 8-18 16-26 34-8-18-14-26-26-34 12-8 18-16 26-34Z'/%3E%3Ccircle cx='80' cy='80' r='44' opacity='.24'/%3E%3Cpath d='M44 80h18M98 80h18M80 44v18M80 98v18'/%3E%3C/g%3E%3C/svg%3E");
}

.membership-plan.is-ruby .membership-plan__badge { background: linear-gradient(180deg, #d0a7ff 0%, #9557d8 100%); }
.membership-plan.is-ruby .membership-plan__medal::before { border-color: rgba(109, 40, 217, 0.95); }

.membership-plan.is-saffron {
  background:
    radial-gradient(circle at top right, rgba(5, 150, 105, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent 22%),
    linear-gradient(135deg, #f4fff9, #eefcf6 58%, #fbfffd);
}

.membership-plan.is-saffron::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23047857' stroke-width='2.2'%3E%3Ccircle cx='80' cy='80' r='20'/%3E%3Cpath d='M80 28c6 16 10 22 20 30-10 8-14 14-20 30-6-16-10-22-20-30 10-8 14-14 20-30Z'/%3E%3Cpath d='M44 80h18M98 80h18M80 44v18M80 98v18M53 53l12 12M95 95l12 12M53 107l12-12M95 65l12-12'/%3E%3C/g%3E%3C/svg%3E");
}

.membership-plan.is-saffron .membership-plan__badge { background: linear-gradient(180deg, #85dfc0 0%, #2fb386 100%); }
.membership-plan.is-saffron .membership-plan__medal::before { border-color: rgba(15, 118, 110, 0.95); }

.membership-plan.is-indigo {
  background:
    radial-gradient(circle at top right, rgba(67, 56, 202, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1), transparent 22%),
    linear-gradient(135deg, #f6f7ff, #eff2ff 58%, #fbfbff);
}

.membership-plan.is-indigo .membership-plan__badge { background: linear-gradient(180deg, #9fa7ff 0%, #5d66d9 100%); }
.membership-plan.is-indigo .membership-plan__medal::before { border-color: rgba(67, 56, 202, 0.95); }

.membership-plan.is-emerald {
  background:
    radial-gradient(circle at top right, rgba(5, 150, 105, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 22%),
    linear-gradient(135deg, #f4fffb, #ecfff7 58%, #fbfffd);
}

.membership-plan.is-emerald .membership-plan__badge { background: linear-gradient(180deg, #8ce8ca 0%, #2ba984 100%); }
.membership-plan.is-emerald .membership-plan__medal::before { border-color: rgba(5, 150, 105, 0.95); }

.membership-plan.is-coral {
  background:
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(244, 114, 182, 0.1), transparent 22%),
    linear-gradient(135deg, #fff8f5, #fff1ec 58%, #fffaf8);
}

.membership-plan.is-coral .membership-plan__badge { background: linear-gradient(180deg, #ffc09e 0%, #ed7f63 100%); }
.membership-plan.is-coral .membership-plan__medal::before { border-color: rgba(194, 65, 12, 0.95); }

.membership-plan--membership-pasantia .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='44%25' cy='34%25' r='64%25'%3E%3Cstop stop-color='%23fff9de'/%3E%3Cstop offset='.58' stop-color='%23f5c55d'/%3E%3Cstop offset='1' stop-color='%23b87212'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='46' r='28' fill='url(%23g)' stroke='%239b5b0f' stroke-width='3.4'/%3E%3Cpath d='M33 14h22' stroke='%23845112' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M44 18v-6' stroke='%23845112' stroke-width='3.6' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='46' r='21' fill='none' stroke='%23fdebb5' stroke-width='2.4'/%3E%3Cpath d='M44 29 49 39l11 1-8 8 2 11-10-6-10 6 2-11-8-8 11-1Z' fill='%23fff7db' stroke='%23fff2c0' stroke-width='1.2'/%3E%3C/svg%3E");
}

.membership-plan--membership-vip-1 .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='42%25' cy='34%25' r='66%25'%3E%3Cstop stop-color='%23fffbe0'/%3E%3Cstop offset='.54' stop-color='%23f5c74b'/%3E%3Cstop offset='1' stop-color='%239f6410'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='48' r='29' fill='url(%23g)' stroke='%23895210' stroke-width='3.4'/%3E%3Cpath d='M31 14h26' stroke='%2375440f' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M44 18v-7' stroke='%2375440f' stroke-width='3.8' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='48' r='23' fill='none' stroke='%23fde7a8' stroke-width='2.4'/%3E%3Cpath d='M26 58c4-11 5-21 5-25M62 58c-4-11-5-21-5-25' fill='none' stroke='%238a5a12' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M26 58c3 6 8 10 15 12M62 58c-3 6-8 10-15 12' fill='none' stroke='%238a5a12' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M35 37l5-6 4 5 4-5 5 6 4-3 1 8H30l1-8Z' fill='%23fff6d8' stroke='%239a6612' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M44 44 47 50h6l-5 4 2 6-6-3-6 3 2-6-5-4h6Z' fill='%23fff4c7' stroke='%23d79a1c' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.membership-plan--membership-vip-2 .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='44%25' cy='34%25' r='66%25'%3E%3Cstop stop-color='%23ffffff'/%3E%3Cstop offset='.58' stop-color='%23e5e7eb'/%3E%3Cstop offset='1' stop-color='%239aa3b2'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='48' r='29' fill='url(%23g)' stroke='%238694a4' stroke-width='3.4'/%3E%3Cpath d='M31 14h26' stroke='%23814747' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M44 18v-7' stroke='%23814747' stroke-width='3.8' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='48' r='23' fill='none' stroke='%23ffffff' stroke-width='2.4'/%3E%3Cpath d='M26 58c4-11 5-21 5-25M62 58c-4-11-5-21-5-25' fill='none' stroke='%23a8b2bd' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M26 58c3 6 8 10 15 12M62 58c-3 6-8 10-15 12' fill='none' stroke='%23a8b2bd' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M44 31 48 40l10 1-7 6 2 10-9-5-9 5 2-10-7-6 10-1Z' fill='%23fff' stroke='%23cfd7df' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.membership-plan--membership-vip-3 .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='42%25' cy='34%25' r='66%25'%3E%3Cstop stop-color='%23fffbe0'/%3E%3Cstop offset='.54' stop-color='%23f5c74b'/%3E%3Cstop offset='1' stop-color='%239f6410'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='48' r='29' fill='url(%23g)' stroke='%23895210' stroke-width='3.4'/%3E%3Cpath d='M31 14h26' stroke='%232d5ec9' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M44 18v-7' stroke='%232d5ec9' stroke-width='3.8' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='48' r='23' fill='none' stroke='%23fde7a8' stroke-width='2.4'/%3E%3Cpath d='M26 58c4-11 5-21 5-25M62 58c-4-11-5-21-5-25' fill='none' stroke='%233766d8' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M26 58c3 6 8 10 15 12M62 58c-3 6-8 10-15 12' fill='none' stroke='%233766d8' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M44 30 50 39l10 2-7 7 2 10-11-4-11 4 2-10-7-7 10-2Z' fill='%23eff6ff' stroke='%233b82f6' stroke-width='1.4' stroke-linejoin='round'/%3E%3Ccircle cx='44' cy='43' r='3.4' fill='%233b82f6'/%3E%3C/svg%3E");
}

.membership-plan--membership-vip-4 .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='42%25' cy='34%25' r='66%25'%3E%3Cstop stop-color='%23fffbe0'/%3E%3Cstop offset='.54' stop-color='%23f5c74b'/%3E%3Cstop offset='1' stop-color='%239f6410'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='48' r='29' fill='url(%23g)' stroke='%23895210' stroke-width='3.4'/%3E%3Cpath d='M31 14h26' stroke='%237933ea' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M44 18v-7' stroke='%237933ea' stroke-width='3.8' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='48' r='23' fill='none' stroke='%23fde7a8' stroke-width='2.4'/%3E%3Cpath d='M26 58c4-11 5-21 5-25M62 58c-4-11-5-21-5-25' fill='none' stroke='%238b5cf6' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M26 58c3 6 8 10 15 12M62 58c-3 6-8 10-15 12' fill='none' stroke='%238b5cf6' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M44 29 50 36l9 1-6 7 2 9-9-4-9 4 2-9-6-7 9-1Z' fill='none' stroke='%23f3e8ff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.membership-plan--membership-vip-5 .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='42%25' cy='34%25' r='66%25'%3E%3Cstop stop-color='%23fffbe0'/%3E%3Cstop offset='.54' stop-color='%23f5c74b'/%3E%3Cstop offset='1' stop-color='%239f6410'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='48' r='29' fill='url(%23g)' stroke='%23895210' stroke-width='3.4'/%3E%3Cpath d='M31 14h26' stroke='%230f766e' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M44 18v-7' stroke='%230f766e' stroke-width='3.8' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='48' r='23' fill='none' stroke='%23fde7a8' stroke-width='2.4'/%3E%3Cpath d='M26 58c4-11 5-21 5-25M62 58c-4-11-5-21-5-25' fill='none' stroke='%2314b8a6' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M26 58c3 6 8 10 15 12M62 58c-3 6-8 10-15 12' fill='none' stroke='%2314b8a6' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M44 30c6 6 12 9 16 12-7 3-11 7-16 15-5-8-9-12-16-15 4-3 10-6 16-12Z' fill='none' stroke='%23ecfeff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.membership-plan--membership-vip-6 .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='42%25' cy='34%25' r='66%25'%3E%3Cstop stop-color='%23fffbe0'/%3E%3Cstop offset='.54' stop-color='%23f5c74b'/%3E%3Cstop offset='1' stop-color='%239f6410'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='48' r='29' fill='url(%23g)' stroke='%23895210' stroke-width='3.4'/%3E%3Cpath d='M31 14h26' stroke='%238c3a17' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M44 18v-7' stroke='%238c3a17' stroke-width='3.8' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='48' r='23' fill='none' stroke='%23fde7a8' stroke-width='2.4'/%3E%3Cpath d='M44 28 58 39 53 57 35 57 30 39Z' fill='none' stroke='%23fff4c7' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.membership-plan--membership-vip-7 .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='42%25' cy='34%25' r='66%25'%3E%3Cstop stop-color='%23fffbe0'/%3E%3Cstop offset='.54' stop-color='%23f5c74b'/%3E%3Cstop offset='1' stop-color='%239f6410'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='48' r='29' fill='url(%23g)' stroke='%23895210' stroke-width='3.4'/%3E%3Cpath d='M31 14h26' stroke='%230f4c81' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M44 18v-7' stroke='%230f4c81' stroke-width='3.8' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='48' r='23' fill='none' stroke='%23fde7a8' stroke-width='2.4'/%3E%3Cpath d='M44 30 49 39l10 1-7 7 2 10-10-4-10 4 2-10-7-7 10-1Z' fill='none' stroke='%23dbeafe' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.membership-plan--membership-vip-8 .membership-plan__medal::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 96'%3E%3Cdefs%3E%3CradialGradient id='g' cx='42%25' cy='34%25' r='66%25'%3E%3Cstop stop-color='%23fffbe0'/%3E%3Cstop offset='.54' stop-color='%23f5c74b'/%3E%3Cstop offset='1' stop-color='%239f6410'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='44' cy='48' r='29' fill='url(%23g)' stroke='%23895210' stroke-width='3.4'/%3E%3Cpath d='M31 14h26' stroke='%234d7c0f' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M44 18v-7' stroke='%234d7c0f' stroke-width='3.8' stroke-linecap='round'/%3E%3Ccircle cx='44' cy='48' r='23' fill='none' stroke='%23fde7a8' stroke-width='2.4'/%3E%3Cpath d='M31 42h26M44 29v26M35 33l18 18M53 33 35 51' fill='none' stroke='%23ecfccb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.membership-plan.is-coming-soon {
  border-color: rgba(244, 204, 153, 0.56);
  box-shadow: 0 20px 34px rgba(127, 29, 29, 0.1);
}

.membership-plan.is-coming-soon::after {
  width: 148px;
  height: 82px;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 120'%3E%3Cg fill='none' stroke='%23b45309' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 94c16-34 42-58 70-58s54 24 70 58'/%3E%3Cpath d='M62 94c10-22 27-38 48-38s38 16 48 38'/%3E%3Cpath d='M84 94c6-12 15-20 26-20s20 8 26 20'/%3E%3Cpath d='M110 28v20'/%3E%3Cpath d='M101 35h18'/%3E%3Ccircle cx='110' cy='18' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

.membership-plan.is-coming-soon .membership-plan__details span::before {
  color: #b45309;
}

.membership-plan.is-coming-soon .membership-plan__action {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: #fffaf5;
}

.membership-plan.is-coming-soon .membership-plan__total {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.98));
}

.membership-plan__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px 12px;
  align-items: start;
  padding: 14px 14px 14px 0;
}

.membership-plan__details {
  display: grid;
  gap: 7px;
  min-width: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.membership-plan__details span {
  position: relative;
  padding-left: 14px;
  font-size: 0.76rem;
  line-height: 1.25;
  color: #4b5563;
  min-width: 0;
}

.membership-plan__details span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: currentColor;
  opacity: 0.8;
}

.membership-plan.is-copper .membership-plan__details span::before { color: #b45309; }
.membership-plan.is-gold .membership-plan__details span::before { color: #d97706; }
.membership-plan.is-silver .membership-plan__details span::before { color: #b91c1c; }
.membership-plan.is-blue .membership-plan__details span::before { color: #2563eb; }
.membership-plan.is-ruby .membership-plan__details span::before { color: #7e22ce; }
.membership-plan.is-saffron .membership-plan__details span::before { color: #0f766e; }
.membership-plan.is-indigo .membership-plan__details span::before { color: #4338ca; }
.membership-plan.is-emerald .membership-plan__details span::before { color: #059669; }
.membership-plan.is-coral .membership-plan__details span::before { color: #c2410c; }

.membership-plan__details b {
  font-weight: 800;
  color: #1f2937;
  word-break: break-word;
}

.membership-plan__pricebox {
  min-width: 0;
  text-align: right;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.membership-plan__pricebox span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-plan__pricebox strong {
  font-size: 1.7rem;
  line-height: 1;
  color: #374151;
}

.membership-plan__action,
.membership-plan__total {
  width: 100%;
  min-height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
}

.membership-plan__action {
  margin-top: 2px;
  border: 0;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(217, 119, 6, 0.18);
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  text-align: left;
  white-space: normal;
}

.membership-plan__action span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
}

.membership-plan__action.is-active {
  background: linear-gradient(180deg, #b91c1c, #991b1b);
}

.membership-plan__action.is-locked {
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  box-shadow: none;
  font-size: 0.72rem;
  line-height: 1.08;
}

.membership-plan.is-blue .membership-plan__action {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.18);
}

.membership-plan.is-silver .membership-plan__action {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.16);
}

.membership-plan.is-ruby .membership-plan__action {
  background: linear-gradient(180deg, #a855f7, #7e22ce);
  box-shadow: 0 10px 18px rgba(126, 34, 206, 0.16);
}

.membership-plan.is-saffron .membership-plan__action {
  background: linear-gradient(180deg, #10b981, #0f766e);
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.16);
}

.membership-plan__total {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 2px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: #fff;
  box-shadow: 0 6px 14px rgba(148, 163, 184, 0.06);
}

.membership-plan__total span {
  font-size: 0.76rem;
  font-weight: 800;
  color: #111827;
}

.membership-plan__total small {
  font-size: 0.68rem;
  color: #111827;
  font-weight: 700;
}

.membership-plan__total small b {
  font-weight: 900;
}

.membership-confirm {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.membership-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(5px);
}

.membership-confirm__card {
  position: relative;
  width: min(100%, 390px);
  max-height: min(88vh, 760px);
  padding: 22px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 216, 144, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 240, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.98);
  box-shadow: 0 24px 56px rgba(127, 29, 29, 0.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.membership-confirm__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: #7f1d1d;
  font: inherit;
  font-weight: 900;
}

.membership-confirm__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
}

.membership-confirm__title {
  margin: 0 0 14px;
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  color: #7f1d1d;
}

.membership-confirm__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.membership-confirm__stat {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.98);
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.08);
}

.membership-confirm__stat span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.membership-confirm__stat strong {
  font-size: 0.92rem;
  line-height: 1.3;
  color: #111827;
}

.membership-confirm__notes {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.membership-confirm__notes p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.96);
  font-size: 0.8rem;
  line-height: 1.4;
  color: #475569;
}

.membership-confirm__alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(220, 252, 231, 0.92);
  color: #166534;
  font-size: 0.82rem;
  font-weight: 800;
}

.membership-confirm__alert.is-warning {
  background: rgba(254, 242, 242, 0.96);
  color: #991b1b;
}

.membership-confirm__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.membership-confirm__actions > * {
  flex: 1;
}

@media (max-width: 420px) {
  .profile-stats,
  .withdraw-stats {
    grid-template-columns: 1fr 1fr;
  }

  .withdraw-stats .withdraw-stat:last-child {
    grid-column: 1 / -1;
  }

  .withdraw-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fund-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .fund-card__summary {
    grid-template-columns: 1fr;
  }

  .fund-tabs {
    justify-content: stretch;
  }

  .fund-tab {
    flex: 1 1 calc(50% - 6px);
  }

  .membership-plan {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .membership-plan__content {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px 10px;
    padding: 12px 12px 12px 0;
  }

  .membership-plan__pricebox strong {
    font-size: 1.45rem;
  }

  .membership-plan__action,
  .membership-plan__total {
    padding: 0 10px;
  }

  .membership-confirm__stats {
    grid-template-columns: 1fr;
  }

  .team-stats {
    grid-template-columns: 1fr;
  }

  .fund-card__stats {
    grid-template-columns: 1fr;
  }

  .fund-confirm__hero,
  .fund-confirm__summary {
    grid-template-columns: 1fr;
  }
}

.task-card,
.task-empty {
  border-radius: 26px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.08);
}

.task-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
}

.task-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #cb5542 0%, #7f221a 100%);
  border: 1px solid rgba(240, 186, 88, 0.42);
  box-shadow:
    0 12px 22px rgba(101, 31, 22, 0.14),
    inset 0 1px 0 rgba(255, 227, 184, 0.26);
}

.task-card__icon svg {
  width: 34px;
  height: 34px;
  stroke: #ffd36e;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-card__body {
  display: grid;
  gap: 4px;
}

.task-card__body strong {
  font-size: 1rem;
  color: #0f172a;
}

.task-card__gain,
.task-card__meta {
  font-size: 0.82rem;
  color: #64748b;
}

.task-card__gain b {
  color: #b61f1c;
  font-size: 1rem;
}

.task-empty {
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.profile-shell {
  padding: 10px 0 10px;
}

.balance-shell {
  color: #111827;
}

.balance-shell .membership-hero .task-title {
  color: #111827;
}

.balance-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.balance-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 14px 12px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 237, 0.96));
  box-shadow: 0 16px 28px rgba(148, 163, 184, 0.12);
  display: grid;
  align-content: space-between;
  gap: 6px;
}

.balance-summary-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.12);
  pointer-events: none;
}

.balance-summary-card span,
.balance-summary-card strong {
  position: relative;
  z-index: 1;
}

.balance-summary-card span {
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.balance-summary-card strong {
  color: #111827;
  font-size: 1.04rem;
  line-height: 1.2;
}

.balance-history {
  margin-top: 14px;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.06), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 249, 240, 0.96));
  box-shadow: 0 18px 32px rgba(148, 163, 184, 0.1);
}

.balance-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px;
}

.balance-filter {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.balance-filter.is-active {
  border-color: rgba(185, 28, 28, 0.24);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.96), rgba(124, 45, 18, 0.96));
  color: #fff7ed;
}

.balance-history .task-header {
  margin-bottom: 12px;
}

.balance-history .brand__eyebrow {
  color: #9a3412;
}

.balance-history .task-title {
  color: #111827;
}

.balance-history__list {
  display: grid;
  gap: 12px;
}

.balance-group {
  display: grid;
  gap: 8px;
}

.balance-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}

.balance-group__head strong {
  color: #111827;
  font-size: 0.94rem;
  font-weight: 900;
}

.balance-group__head span {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.balance-group__body {
  display: grid;
  gap: 10px;
}

.balance-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 12px 11px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.98);
  color: #111827;
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.08);
}

.balance-entry.is-positive {
  border-color: rgba(74, 222, 128, 0.2);
}

.balance-entry.is-negative {
  border-color: rgba(248, 113, 113, 0.2);
}

.balance-entry__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.balance-entry__main strong {
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.3;
}

.balance-entry__main span {
  color: #64748b;
  font-size: 0.78rem;
}

.balance-entry__meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.balance-entry__meta b {
  color: #7c2d12;
  font-size: 0.8rem;
  font-weight: 800;
}

.balance-entry__meta b:nth-child(2) {
  color: #111827;
  font-size: 0.92rem;
}

.balance-entry__meta b:nth-child(3),
.balance-entry__meta b:nth-child(4) {
  color: #475569;
  font-size: 0.76rem;
}

@media (max-width: 640px) {
  .balance-summary-grid {
    grid-template-columns: 1fr;
  }

  .balance-group__head {
    flex-direction: column;
    align-items: start;
  }

  .balance-entry {
    grid-template-columns: 1fr;
  }

  .balance-entry__meta {
    justify-items: start;
    text-align: left;
  }
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: center;
  padding: 20px 18px;
  border-radius: 30px;
  border: 1px solid rgba(244, 204, 153, 0.4);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(239, 68, 68, 0.08), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96));
  box-shadow: 0 22px 42px rgba(127, 29, 29, 0.09);
  overflow: hidden;
}

.profile-hero::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(180, 83, 9, 0.06) 0 16%, transparent 16.5% 31%, rgba(180, 83, 9, 0.04) 31.5% 33%, transparent 33.5%);
  pointer-events: none;
}

.profile-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.profile-hero__copy .task-title {
  margin: 0;
}

.profile-hero__subcopy {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
}

.profile-hero__seal {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  justify-self: end;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 248, 220, 0.98), rgba(244, 186, 63, 0.95) 58%, rgba(146, 64, 14, 0.92) 100%);
  box-shadow:
    0 16px 28px rgba(146, 64, 14, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.profile-hero__seal::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 20px;
  border: 2px solid rgba(255, 247, 209, 0.72);
}

.profile-hero__seal span {
  width: 34px;
  height: 34px;
  display: block;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 249, 223, 0.96) 0 38%, transparent 39%),
    linear-gradient(135deg, transparent 42%, rgba(255, 249, 223, 0.96) 42% 58%, transparent 58%),
    linear-gradient(45deg, transparent 42%, rgba(255, 249, 223, 0.96) 42% 58%, transparent 58%);
  clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%);
}

.profile-balance-board {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.profile-balance-board__main {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 28px;
  border: 1px solid rgba(203, 213, 225, 0.84);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(239, 68, 68, 0.08), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 237, 0.95));
  box-shadow: 0 20px 38px rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.profile-balance-board__main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 92%, rgba(255, 255, 255, 0.05) 92% 93%, transparent 93%),
    linear-gradient(180deg, transparent 0 80%, rgba(255, 255, 255, 0.04) 80% 81%, transparent 81%);
  background-size: 26px 26px;
  opacity: 0.45;
  pointer-events: none;
}

.profile-balance-board__label,
.profile-balance-board__main strong,
.profile-balance-board__note {
  position: relative;
  z-index: 1;
}

.profile-balance-board__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a3412;
  font-weight: 800;
}

.profile-balance-board__main strong {
  font-size: 2rem;
  line-height: 1;
  color: #111827;
  text-shadow: none;
}

.profile-balance-board__note {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #475569;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-action-card {
  position: relative;
  min-height: 116px;
  padding: 16px 15px 14px;
  border: 1px solid rgba(203, 213, 225, 0.76);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.94));
  box-shadow: 0 16px 32px rgba(148, 163, 184, 0.1);
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 10px;
  text-align: left;
  color: #7c2d12;
  overflow: hidden;
}

.profile-action-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 24%, transparent 25% 100%);
  opacity: 0.75;
  pointer-events: none;
}

.profile-action-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.12);
}

.profile-action-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.profile-action-card strong {
  font-size: 1rem;
  line-height: 1.2;
  color: currentColor;
}

.profile-action-card span:last-child {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}

.profile-action-card--shop {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.95));
  color: #1d4ed8;
}

.profile-action-card--password {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 244, 0.95));
  color: #b91c1c;
}

.profile-action-card--help {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.95));
  color: #047857;
}

.profile-action-card--tutorial {
  background:
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.95));
  color: #a16207;
}

.profile-action-card--manager {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.94));
  color: #8f1f1e;
}

.profile-stat--points {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(255, 247, 237, 0.94));
}

.tutorial-shell {
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.tutorial-hero-card,
.tutorial-summary-card,
.tutorial-context-card,
.tutorial-step-card {
  border-radius: 22px;
  background: rgba(255, 248, 237, 0.94);
  border: 1px solid rgba(180, 83, 9, 0.14);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.08);
}

.tutorial-hero-card,
.tutorial-summary-card {
  padding: 20px 22px;
}

.tutorial-hero-card strong,
.tutorial-summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: #7c2d12;
}

.tutorial-hero-card p,
.tutorial-summary-card p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.tutorial-context-grid,
.tutorial-summary-list,
.tutorial-actions,
.tutorial-steps-board {
  display: grid;
  gap: 12px;
}

.tutorial-steps-board .task-header {
  text-align: center;
  gap: 6px;
}

.tutorial-context-card {
  padding: 18px 20px;
}

.tutorial-context-card strong {
  display: block;
  margin-bottom: 8px;
  color: #7c2d12;
}

.tutorial-context-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
  font-size: 1rem;
}

.tutorial-categories-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

.tutorial-category-nav {
  display: grid;
  gap: 10px;
}

.tutorial-category-tab,
.tutorial-category-detail {
  border-radius: 22px;
  background: rgba(255, 248, 237, 0.94);
  border: 1px solid rgba(180, 83, 9, 0.14);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.08);
}

.tutorial-category-tab {
  padding: 15px 18px;
  text-align: left;
  font-weight: 800;
  color: #7c2d12;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tutorial-category-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(120, 53, 15, 0.12);
}

.tutorial-category-tab.is-active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(249, 115, 22, 0.9));
  color: #fff7ed;
  border-color: rgba(220, 38, 38, 0.24);
}

.tutorial-category-detail {
  padding: 22px 24px;
  min-height: 340px;
}

.tutorial-category-detail__title {
  display: block;
  margin-bottom: 12px;
  color: #7c2d12;
  font-size: 1.22rem;
}

.tutorial-category-detail__body {
  display: grid;
  gap: 12px;
}

.tutorial-category-detail__body p {
  margin: 0;
  color: #475569;
  line-height: 1.85;
  font-size: 1.03rem;
}

.shop-shell {
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.shop-points-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.96), rgba(249, 115, 22, 0.92));
  color: #fff7ed;
  box-shadow: 0 22px 46px rgba(194, 65, 12, 0.22);
}

.shop-points-hero__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.shop-points-hero__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-points-hero__copy {
  display: grid;
  gap: 4px;
}

.shop-points-hero__copy span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 247, 237, 0.86);
}

.shop-points-hero__copy strong {
  font-size: 2rem;
  line-height: 1;
}

.shop-points-hero__copy p {
  margin: 4px 0 0;
  color: rgba(255, 247, 237, 0.92);
  line-height: 1.55;
}

.shop-points-rules,
.shop-list {
  display: grid;
  gap: 12px;
}

.shop-points-rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-rule-card,
.shop-card {
  border-radius: 24px;
  border: 1px solid rgba(180, 83, 9, 0.14);
  background: rgba(255, 248, 237, 0.95);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.08);
}

.shop-rule-card {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.shop-rule-card strong {
  color: #c2410c;
  font-size: 1rem;
}

.shop-rule-card span {
  color: #475569;
  line-height: 1.55;
  font-size: 0.92rem;
}

.shop-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px;
  align-items: center;
}

.shop-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 237, 213, 0.96), rgba(255, 255, 255, 0.96));
  display: grid;
  place-items: center;
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card__placeholder {
  color: #9a3412;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-card__main {
  display: grid;
  gap: 8px;
}

.shop-card__main strong {
  color: #1e293b;
  font-size: 1.05rem;
  line-height: 1.4;
}

.shop-card__points {
  color: #ea580c;
  font-weight: 900;
  font-size: 1.12rem;
}

.shop-card__market {
  color: #64748b;
  font-size: 0.92rem;
}

.shop-card__action {
  min-height: 46px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff7ed;
  font-weight: 800;
  cursor: pointer;
}

.shop-card__action.is-disabled,
.shop-card__action:disabled {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  cursor: not-allowed;
}

.profile-bank {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 0;
}

.profile-bank__button {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.08);
  color: #7c2d12;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-bank__button--manager {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.92));
  color: #8f1f1e;
  border-color: rgba(251, 191, 36, 0.34);
}

.profile-bank__button-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
}

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

.profile-bank__summary {
  display: grid;
  gap: 6px;
  padding: 0 6px;
  padding-top: 6px;
}

.profile-bank__summary strong {
  font-size: 1.02rem;
  color: #111827;
}

.profile-bank__summary span {
  font-size: 0.85rem;
  color: #334155;
}

.profile-bank__summary--inline {
  margin-top: 12px;
  padding: 14px 16px 4px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 24px rgba(148, 163, 184, 0.06);
}

.profile-bank__summary--inline strong,
.profile-bank__summary--inline span {
  color: #111827;
}

.manager-levels {
  margin-top: 8px;
}

.manager-screen .membership-hero {
  align-items: center;
}

.manager-help-btn {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(255, 250, 240, 0.92);
  color: #8f1f1e;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(143, 31, 30, 0.08);
}

.manager-help-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.manager-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 22%),
    radial-gradient(circle at bottom left, rgba(239, 68, 68, 0.08), transparent 22%),
    linear-gradient(135deg, #fffdf8, #fff6ec 58%, #fffaf4);
  border: 1px solid rgba(251, 191, 36, 0.34);
  box-shadow: 0 22px 40px rgba(143, 31, 30, 0.1);
}

.manager-ticket::before,
.manager-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: #fffaf5;
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.manager-ticket::before {
  left: -13px;
}

.manager-ticket::after {
  right: 91px;
}

.manager-ticket__halo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(180, 83, 9, 0.08) 0 10%, transparent 10.5%),
    radial-gradient(circle at 16% 22%, transparent 0 16%, rgba(180, 83, 9, 0.05) 16.5% 19%, transparent 19.5%),
    radial-gradient(circle at 16% 22%, transparent 0 24%, rgba(180, 83, 9, 0.04) 24.5% 26%, transparent 26.5%),
    radial-gradient(circle at 16% 22%, transparent 0 30%, rgba(180, 83, 9, 0.03) 30.5% 31.5%, transparent 32%),
    radial-gradient(circle at 84% 78%, rgba(143, 31, 30, 0.07) 0 9%, transparent 9.5%),
    radial-gradient(circle at 84% 78%, transparent 0 15%, rgba(143, 31, 30, 0.05) 15.5% 18%, transparent 18.5%),
    radial-gradient(circle at 84% 78%, transparent 0 23%, rgba(143, 31, 30, 0.04) 23.5% 25%, transparent 25.5%),
    radial-gradient(circle at 84% 78%, transparent 0 29%, rgba(143, 31, 30, 0.03) 29.5% 30.5%, transparent 31%),
    linear-gradient(90deg, transparent 0 72%, rgba(180, 83, 9, 0.08) 72% 73%, transparent 73%);
  pointer-events: none;
}

.manager-ticket__main,
.manager-ticket__stub {
  position: relative;
  z-index: 1;
}

.manager-ticket__main {
  display: grid;
  gap: 10px;
  padding: 22px 20px 20px;
}

.manager-ticket__eyebrow {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111827;
}

.manager-ticket__header {
  display: grid;
  gap: 4px;
}

.manager-ticket__header strong {
  font-family: "Cinzel", serif;
  font-size: 1.45rem;
  color: #7f1d1d;
}

.manager-ticket__header span {
  font-size: 0.82rem;
  color: #111827;
  font-weight: 700;
}

.manager-ticket__amount {
  font-family: "Cinzel", serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: #111827;
}

.manager-ticket__copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #111827;
  font-weight: 700;
}

.manager-ticket .mini-btn {
  justify-self: start;
  min-width: 118px;
  background: linear-gradient(135deg, #8f1f1e, #b45309);
  color: #fffaf5;
  border: 0;
  box-shadow: 0 14px 24px rgba(143, 31, 30, 0.16);
}

.manager-info-card__notes {
  gap: 10px;
}

.manager-info-card__notes p {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  line-height: 1.65;
  box-shadow: none;
}

.manager-details-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.manager-details-copy p {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}

.manager-details-copy b {
  color: #111827;
}

.manager-details-card__notes {
  gap: 10px;
}

.manager-details-card__notes p {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  line-height: 1.65;
  box-shadow: none;
}

.manager-ticket__stub {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(127, 29, 29, 0.94), rgba(154, 52, 18, 0.92));
  color: #fff7ed;
}

.manager-ticket__stub span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.86;
}

.manager-ticket__stub strong {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
}

.manager-ticket__stub b {
  font-size: 0.88rem;
  color: #fcd34d;
}

@media (max-width: 420px) {
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-hero__seal {
    justify-self: start;
  }

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

  .profile-action-card {
    min-height: 104px;
    padding: 14px 13px 12px;
    border-radius: 22px;
  }

  .manager-ticket {
    grid-template-columns: 1fr;
  }

  .manager-ticket::after {
    right: 50%;
    top: auto;
    bottom: -13px;
    margin-top: 0;
    margin-right: -13px;
  }

  .manager-ticket__stub {
    border-top: 1px dashed rgba(255, 247, 237, 0.38);
    grid-template-columns: repeat(3, auto);
    align-items: center;
    justify-content: space-between;
  }
}

.bank-page {
  display: grid;
  gap: 14px;
}

.bank-card-preview {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 218, 156, 0.26), transparent 24%),
    linear-gradient(135deg, #7f1d1d 0%, #9a3412 48%, #0f766e 100%);
  color: #fff7ed;
  box-shadow: 0 24px 44px rgba(127, 29, 29, 0.18);
}

.bank-card-preview__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.bank-card-preview strong {
  font-size: 1.15rem;
  color: #ffffff;
}

.bank-card-preview span {
  font-size: 0.86rem;
  color: #fff7ed;
}

.bank-modal__fields {
  display: grid;
  gap: 12px;
}

.bank-page .deposit-panel__header strong,
.bank-page .deposit-panel__header span,
.bank-page .mini-field span,
.bank-page .membership-confirm__alert {
  color: #111827;
}

.bank-page .mini-field input,
.bank-page .mini-field select {
  background: rgba(255, 255, 255, 0.98);
  color: #111827;
  border-color: rgba(203, 213, 225, 0.96);
}

.bank-page .mini-field input::placeholder {
  color: #6b7280;
}

.bank-page .membership-confirm__alert {
  background: rgba(241, 245, 249, 0.96);
}

.profile-stat {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  padding: 14px 12px;
  border-radius: 24px;
  border: 1px solid rgba(244, 204, 153, 0.34);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(239, 68, 68, 0.08), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.95));
  box-shadow: 0 18px 32px rgba(127, 29, 29, 0.08);
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.profile-stat::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.14);
  pointer-events: none;
}

.profile-stat::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(180, 83, 9, 0.08) 0 10%, transparent 10.5%),
    radial-gradient(circle, transparent 0 18%, rgba(180, 83, 9, 0.05) 18.5% 20.5%, transparent 21%);
  pointer-events: none;
}

.profile-stat span {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: #9a3412;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-stat strong {
  position: relative;
  z-index: 1;
  font-size: 1.08rem;
  color: #8f1f1e;
}

.profile-quick {
  margin-top: 16px;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(244, 204, 153, 0.38);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96));
  box-shadow: 0 18px 32px rgba(127, 29, 29, 0.08);
}

.profile-quick__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.profile-quick__item {
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(254, 242, 242, 0.94));
  color: #7f1d1d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 24px rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-quick__item::after {
  content: "";
  position: absolute;
  inset: auto -20px -22px auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0 24%, transparent 25% 100%);
  pointer-events: none;
}

.profile-quick__item--withdraw {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  color: #1d4ed8;
}

.profile-quick__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.profile-quick__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.profile-quick__item strong {
  font-size: 0.92rem;
  color: currentColor;
}

.withdraw-shell {
  display: grid;
  gap: 14px;
}

.withdraw-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.withdraw-stat {
  min-height: 104px;
  padding: 12px 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.98));
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.withdraw-stat span {
  font-size: 0.74rem;
  color: rgba(229, 231, 235, 0.72);
  font-weight: 700;
}

.withdraw-stat strong {
  font-size: 0.94rem;
  color: #f5d0a8;
}

.withdraw-stat--wide {
  grid-column: 1 / -1;
}

.withdraw-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.withdraw-chip {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(17, 24, 39, 0.94);
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.withdraw-chip.is-active {
  border-color: rgba(236, 185, 147, 0.9);
  background: linear-gradient(135deg, #ecc2a2, #d7a47f);
  color: #4a1d12;
  box-shadow: 0 12px 24px rgba(215, 164, 127, 0.34);
  transform: translateY(-1px) scale(1.02);
}

.withdraw-wallets {
  display: grid;
  gap: 10px;
}

.withdraw-wallet {
  position: relative;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(31, 41, 55, 0.96);
  color: #f8fafc;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.withdraw-wallet span {
  font-size: 0.86rem;
  font-weight: 700;
}

.withdraw-wallet strong {
  font-size: 0.92rem;
  color: #f3d1b2;
}

.withdraw-wallet.is-active {
  border-color: rgba(236, 185, 147, 0.96);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(154, 52, 18, 0.94));
  box-shadow: 0 16px 28px rgba(127, 29, 29, 0.26), 0 0 0 2px rgba(236, 185, 147, 0.22);
  transform: translateY(-1px);
}

.withdraw-wallet.is-active span,
.withdraw-wallet.is-active strong {
  color: #fff7ed;
}

.withdraw-wallet.is-active::after {
  content: "Seleccionado";
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d8bd, #e7b387);
  color: #5b2412;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(91, 36, 18, 0.16);
  animation: withdrawPulse 220ms ease;
}

.membership-confirm__panel--withdraw {
  width: min(100%, 460px);
  max-height: min(82vh, 720px);
  overflow-y: auto;
}

.withdraw-confirm__bank {
  display: grid;
  gap: 10px;
  border-radius: 22px;
  border: 1px solid rgba(122, 35, 29, 0.14);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.withdraw-confirm__bank span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #7f1d1d;
  font-size: 0.88rem;
}

.withdraw-confirm__bank b {
  color: #111827;
}

@keyframes withdrawPulse {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.audio-modal {
  position: fixed;
  inset: 0;
  z-index: 8;
}

.audio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 16, 11, 0.5);
  backdrop-filter: blur(6px);
}

.audio-modal__card {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 24px 18px 18px;
  border-radius: 34px;
  border: 1px solid rgba(214, 188, 150, 0.42);
  background:
    radial-gradient(circle at top right, rgba(255, 221, 170, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.99), rgba(252, 247, 238, 0.98));
  box-shadow: 0 28px 52px rgba(83, 35, 16, 0.18);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.audio-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(122, 35, 29, 0.12);
  color: #7a231d;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(83, 35, 16, 0.08);
}

.audio-modal__turntable {
  position: relative;
  width: 196px;
  height: 196px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(145deg, #2b1612, #120a09 58%, #2a140f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 24px rgba(0, 0, 0, 0.28),
    0 24px 34px rgba(64, 25, 14, 0.22);
}

.audio-modal__turntable::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 245, 225, 0.08);
  pointer-events: none;
}

.audio-modal__turntable::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef3c7, #f59e0b 58%, #92400e);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.42);
}

.audio-modal__vinyl {
  position: relative;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.24), transparent 14%),
    radial-gradient(circle at center, #f6d39a 0 11px, #9f1d1d 12px 21px, transparent 22px),
    repeating-radial-gradient(circle at center, #131010 0 5px, #1b1717 6px 10px, #090707 11px 15px);
  box-shadow:
    0 18px 28px rgba(64, 25, 14, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 18px rgba(0, 0, 0, 0.32);
}

.audio-modal__vinyl::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.audio-modal__vinyl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 10deg, rgba(255, 255, 255, 0.18), transparent 18%, transparent 62%, rgba(255, 255, 255, 0.12) 78%, transparent 100%);
  mix-blend-mode: screen;
}

.audio-modal__vinyl-center {
  position: absolute;
  inset: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff7ed;
  box-shadow: 0 0 0 6px rgba(143, 31, 30, 0.88), 0 0 0 12px rgba(251, 191, 36, 0.18);
}

.audio-modal__vinyl.is-spinning {
  animation: vinyl-spin 1.25s linear infinite;
}

.audio-modal__arm {
  position: absolute;
  top: 26px;
  right: 18px;
  width: 88px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eee3d0, #a28e75);
  transform-origin: right center;
  transform: rotate(8deg);
  box-shadow: 0 6px 14px rgba(72, 50, 34, 0.18);
  transition: transform 520ms cubic-bezier(.2,.8,.2,1);
}

.audio-modal__arm::before {
  content: "";
  position: absolute;
  right: -6px;
  top: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6ead9, #b8a48e);
  box-shadow: 0 4px 10px rgba(72, 50, 34, 0.16);
}

.audio-modal__arm::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(180deg, #7f221a, #4f140f);
  transform: rotate(-22deg);
  box-shadow: 0 2px 8px rgba(79, 20, 15, 0.18);
}

.audio-modal__arm.is-playing {
  transform: rotate(30deg);
}

.audio-modal__title {
  font-size: 1.12rem;
  color: #3a2114;
}

.audio-modal__meta {
  font-size: 0.86rem;
  color: #7f6141;
  text-align: center;
  line-height: 1.45;
}

.audio-modal__countdown {
  min-width: 96px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  color: #8f1f1e;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 20px rgba(148, 163, 184, 0.14);
}

#taskAudioPlayer {
  display: none;
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.toast-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 96px;
  z-index: 9;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: rgba(40, 112, 53, 0.94);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 28px rgba(26, 84, 38, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toast-notice__message {
  flex: 1;
  text-align: center;
}

.toast-notice__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.toast-notice--error {
  background: rgba(143, 31, 30, 0.96);
  box-shadow: 0 18px 28px rgba(101, 31, 22, 0.18);
}

.reward-popup {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 24px;
}

.reward-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
}

.reward-popup__card {
  position: relative;
  width: min(100%, 360px);
  padding: 28px 24px 22px;
  border-radius: 30px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.94), rgba(255, 244, 231, 0.98) 34%, rgba(255, 236, 179, 0.98) 100%);
  box-shadow:
    0 28px 54px rgba(127, 29, 29, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  animation: reward-pop 420ms cubic-bezier(0.2, 0.9, 0.22, 1.12);
}

.reward-popup__card::before,
.reward-popup__card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.reward-popup__card::before {
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.reward-popup__card::after {
  top: -24%;
  left: -38%;
  width: 58%;
  height: 160%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  animation: reward-sheen 2.9s ease-in-out infinite;
}

.reward-popup__rays {
  position: absolute;
  inset: -24% -8%;
  background:
    conic-gradient(from 0deg, rgba(251, 191, 36, 0.18), transparent 18%, rgba(239, 68, 68, 0.14) 30%, transparent 44%, rgba(59, 130, 246, 0.12) 56%, transparent 72%, rgba(34, 197, 94, 0.14) 84%, transparent 100%);
  opacity: 0.9;
  filter: saturate(1.08);
  animation: roulette-ring 10s linear infinite, reward-radiance 2.6s ease-in-out infinite;
}

.reward-popup__chips {
  position: absolute;
  inset: auto 0 18px;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

.reward-popup__chips span {
  position: absolute;
  bottom: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.16);
  animation: reward-chip-hop 2.2s ease-in-out infinite;
}

.reward-popup__chips span:nth-child(1) {
  left: 18px;
  background: radial-gradient(circle at 35% 35%, #fff7ed, #fb7185 55%, #be123c 100%);
  animation-delay: 0.1s;
}

.reward-popup__chips span:nth-child(2) {
  right: 22px;
  background: radial-gradient(circle at 35% 35%, #fff7ed, #60a5fa 55%, #1d4ed8 100%);
  animation-delay: 0.55s;
}

.reward-popup__chips span:nth-child(3) {
  right: 74px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 35% 35%, #fff7ed, #4ade80 55%, #15803d 100%);
  animation-delay: 0.9s;
}

.reward-popup__coin {
  width: 96px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #d9f99d, #86efac 46%, #22c55e 100%);
  color: #14532d;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 18px 28px rgba(21, 128, 61, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 1;
  animation: reward-coin-spin 2.4s ease-in-out infinite;
}

.reward-popup__coin::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 2px solid rgba(240, 253, 244, 0.8);
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255,255,255,0.3) 12.5% 14.5%, transparent 15% 85%, rgba(255,255,255,0.26) 85.5% 87.5%, transparent 88%);
}

.reward-popup__coin::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 14px;
  width: 26px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(1px);
}

.reward-popup__coin span {
  position: relative;
  z-index: 1;
}

.reward-popup__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
  position: relative;
  z-index: 1;
}

.reward-popup__title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 2rem;
  color: #8f1f1e;
  position: relative;
  z-index: 1;
}

.reward-popup__message {
  margin: 12px auto 18px;
  max-width: 250px;
  font-size: 1rem;
  line-height: 1.5;
  color: #334155;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.reward-popup__button {
  min-width: 140px;
  position: relative;
  z-index: 1;
}

.reward-popup--lose .reward-popup__card {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.94), rgba(236, 242, 255, 0.98) 34%, rgba(219, 234, 254, 0.98) 100%);
  box-shadow:
    0 28px 54px rgba(30, 64, 175, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.reward-popup--lose .reward-popup__card::before {
  border-color: rgba(96, 165, 250, 0.26);
}

.reward-popup--lose .reward-popup__rays {
  background:
    conic-gradient(from 0deg, rgba(96, 165, 250, 0.14), transparent 18%, rgba(167, 139, 250, 0.1) 30%, transparent 44%, rgba(148, 163, 184, 0.12) 56%, transparent 72%, rgba(56, 189, 248, 0.1) 84%, transparent 100%);
}

.reward-popup--lose .reward-popup__coin {
  background:
    linear-gradient(145deg, #e2e8f0, #cbd5e1 44%, #94a3b8 100%);
  color: #334155;
  box-shadow:
    0 16px 24px rgba(71, 85, 105, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.72);
  animation-duration: 2.8s;
}

.reward-popup--lose .reward-popup__eyebrow {
  color: #1d4ed8;
}

.reward-popup--lose .reward-popup__title {
  color: #1e3a8a;
}

.reward-popup__fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reward-popup__fireworks span {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.96) 0 3%, transparent 3.5%),
    conic-gradient(from 0deg, rgba(251, 191, 36, 0.9), transparent 16%, rgba(248, 113, 113, 0.82) 28%, transparent 42%, rgba(96, 165, 250, 0.82) 58%, transparent 72%, rgba(74, 222, 128, 0.85) 86%, transparent 100%);
  filter: blur(0.4px);
  animation: reward-firework 2.8s ease-out infinite;
}

.reward-popup__fireworks span:nth-child(1) { left: -6px; top: 14px; animation-delay: 0s; }
.reward-popup__fireworks span:nth-child(2) { right: -8px; top: 18px; animation-delay: 0.45s; }
.reward-popup__fireworks span:nth-child(3) { left: 12%; bottom: 58px; animation-delay: 0.9s; }
.reward-popup__fireworks span:nth-child(4) { right: 14%; bottom: 62px; animation-delay: 1.3s; }
.reward-popup__fireworks span:nth-child(5) { left: 35%; top: -10px; animation-delay: 1.7s; }
.reward-popup__fireworks span:nth-child(6) { right: 30%; top: -4px; animation-delay: 2.1s; }

.reward-popup__cash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.reward-popup__cash span {
  position: absolute;
  top: -22px;
  width: 54px;
  height: 26px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, #dcfce7, #86efac 44%, #22c55e 100%);
  border: 1px solid rgba(187, 247, 208, 0.92);
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.16);
  opacity: 0;
  animation: reward-money-fall 3.2s linear infinite;
}

.reward-popup__cash span::before {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(20, 83, 45, 0.82);
  font-weight: 900;
  font-size: 0.96rem;
}

.reward-popup__cash span:nth-child(1) { left: 8%; animation-delay: 0.1s; }
.reward-popup__cash span:nth-child(2) { left: 28%; animation-delay: 0.8s; }
.reward-popup__cash span:nth-child(3) { left: 48%; animation-delay: 1.5s; }
.reward-popup__cash span:nth-child(4) { left: 68%; animation-delay: 0.45s; }
.reward-popup__cash span:nth-child(5) { left: 82%; animation-delay: 1.15s; }

.reward-popup--lose .reward-popup__cash span {
  background: linear-gradient(145deg, #e5e7eb, #cbd5e1 44%, #94a3b8 100%);
  border-color: rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 18px rgba(100, 116, 139, 0.14);
}

.reward-popup--lose .reward-popup__cash span::before {
  color: rgba(51, 65, 85, 0.72);
}

.team-shell {
  display: grid;
  gap: 14px;
}

.team-card,
.team-stat,
.team-member {
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 30px rgba(148, 163, 184, 0.08);
}

.team-card {
  position: relative;
  padding: 18px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 28%),
    radial-gradient(circle at left bottom, rgba(239, 68, 68, 0.1), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 241, 0.96));
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  pointer-events: none;
}

.team-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -20px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(180, 83, 9, 0.08) 0 10%, transparent 10.5%),
    radial-gradient(circle, transparent 0 18%, rgba(180, 83, 9, 0.06) 18.5% 20.5%, transparent 21%),
    radial-gradient(circle, transparent 0 28%, rgba(180, 83, 9, 0.04) 28.5% 30%, transparent 30.5%);
  pointer-events: none;
}

.team-card > span {
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
}

.team-card > strong {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  color: #7f1d1d;
}

.team-link {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-all;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.team-link b {
  display: block;
  min-width: 0;
  font-weight: 800;
  color: #334155;
}

.team-link .deposit-copy {
  background: rgba(255, 255, 255, 0.98);
  color: #7f1d1d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 18px rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(203, 213, 225, 0.96);
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.team-levels {
  display: grid;
  gap: 14px;
}

.team-line-card {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(244, 204, 153, 0.42);
  background:
    radial-gradient(circle at top right, rgba(185, 28, 28, 0.1), transparent 22%),
    radial-gradient(circle at bottom left, rgba(180, 83, 9, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(255, 247, 237, 0.98));
  box-shadow: 0 20px 34px rgba(127, 29, 29, 0.08);
  display: grid;
  gap: 12px;
}

.team-line-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.team-line-card__header strong {
  font-family: "Cinzel", serif;
  font-size: 1.18rem;
  color: #7f1d1d;
}

.team-line-card__header span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
}

.team-line-card__band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-line-card__band b {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 204, 153, 0.56);
  color: #7f1d1d;
  font-size: 0.8rem;
}

.team-line-card__copy {
  margin: 0;
  color: #334155;
  line-height: 1.55;
  font-size: 0.9rem;
}

.team-line-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px dashed rgba(180, 83, 9, 0.18);
}

.team-line-card__footer span {
  font-size: 0.78rem;
  color: #475569;
}

.team-line-card__footer strong {
  font-size: 1.02rem;
  color: #111827;
}

.team-stat {
  position: relative;
  overflow: hidden;
  padding: 16px;
  display: grid;
  gap: 6px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 241, 0.96));
}

.team-stat::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.14);
  pointer-events: none;
}

.team-stat span {
  position: relative;
  z-index: 1;
  font-size: 0.76rem;
  font-weight: 800;
  color: #6b7280;
}

.team-stat strong {
  position: relative;
  z-index: 1;
  font-size: 1.08rem;
  color: #111827;
}

@media (max-width: 640px) {
  .team-stats {
    grid-template-columns: 1fr;
  }

  .team-line-card__header,
  .team-line-card__footer {
    flex-direction: column;
    align-items: start;
  }

  .shop-points-rules,
  .shop-rule-card {
    grid-template-columns: 1fr;
  }

  .shop-shell {
    gap: 12px;
    padding-bottom: 92px;
  }

  .shop-points-hero {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 16px;
    gap: 12px;
  }

  .shop-points-hero__copy strong {
    font-size: 1.6rem;
  }

  .shop-rule-card {
    padding: 14px 15px;
  }

  .shop-card {
    grid-template-columns: minmax(96px, 34vw) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    align-items: stretch;
  }

  .shop-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 132px;
    border-radius: 18px;
    max-height: none;
    background: linear-gradient(145deg, rgba(255, 237, 213, 0.98), rgba(255, 255, 255, 0.98));
  }

  .shop-card__media img {
    object-fit: contain;
    padding: 10px;
  }

  .shop-card__main {
    gap: 6px;
    align-content: center;
  }

  .shop-card__action {
    margin-top: 2px;
    min-height: 44px;
  }
}

.team-list {
  display: grid;
  gap: 10px;
}

.team-member {
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.team-member strong {
  color: #111827;
}

.team-member span {
  font-size: 0.8rem;
  color: #64748b;
}

@keyframes reward-pop {
  0% { transform: translateY(22px) scale(0.88); opacity: 0; }
  62% { transform: translateY(-6px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes reward-float {
  0% { transform: translateY(0) scale(0.92); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translateY(-250px) scale(1.08); opacity: 0; }
}

@keyframes reward-wobble {
  0%, 100% { margin-left: 0; }
  25% { margin-left: -3px; }
  75% { margin-left: 3px; }
}

@keyframes reward-money-fall {
  0% { transform: translateY(-18px) rotate(-14deg) scale(0.92); opacity: 0; }
  14% { opacity: 0.95; }
  100% { transform: translateY(300px) rotate(22deg) scale(1.02); opacity: 0; }
}

@keyframes reward-firework {
  0% { transform: scale(0.1); opacity: 0; }
  18% { opacity: 0.95; }
  58% { transform: scale(0.88); opacity: 0.72; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes roulette-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes reward-radiance {
  0%, 100% { opacity: 0.78; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes reward-chip-hop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-5px) rotate(-8deg); }
  45% { transform: translateY(-14px) rotate(10deg); }
  70% { transform: translateY(-4px) rotate(-4deg); }
}

@keyframes reward-coin-spin {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-8px) rotate(-4deg) scale(1.04); }
  50% { transform: translateY(-4px) rotate(3deg) scale(1.02); }
  75% { transform: translateY(-10px) rotate(-2deg) scale(1.05); }
}

@keyframes reward-sheen {
  0%, 100% { transform: translateX(-8%) rotate(18deg); opacity: 0; }
  20% { opacity: 0; }
  42% { opacity: 0.95; }
  68% { transform: translateX(172%) rotate(18deg); opacity: 0; }
}

@keyframes roulette-win-pulse {
  0% { box-shadow: inset 0 0 0 8px rgba(17, 24, 39, 0.46), 0 30px 60px rgba(15, 23, 42, 0.3), 0 0 28px rgba(250, 204, 21, 0.24); }
  50% { box-shadow: inset 0 0 0 8px rgba(17, 24, 39, 0.32), 0 30px 60px rgba(15, 23, 42, 0.3), 0 0 44px rgba(74, 222, 128, 0.55); }
  100% { box-shadow: inset 0 0 0 8px rgba(17, 24, 39, 0.46), 0 30px 60px rgba(15, 23, 42, 0.3), 0 0 28px rgba(250, 204, 21, 0.24); }
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 8px 7px;
  border-radius: 32px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 18px 38px rgba(148, 163, 184, 0.16),
    0 6px 14px rgba(148, 163, 184, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -10px 20px rgba(226, 232, 240, 0.3);
}

.bottom-nav__item {
  position: relative;
  min-height: 66px;
  border: 0;
  background: transparent;
  color: #64748b;
  display: grid;
  gap: 3px;
  place-items: center;
  font: inherit;
  padding: 6px 2px 4px;
  border-radius: 22px;
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.bottom-nav__item::before {
  content: "";
  position: absolute;
  inset: 4px 3px;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.bottom-nav__icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(241, 245, 249, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -4px 8px rgba(148, 163, 184, 0.08);
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.bottom-nav__icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}

.bottom-nav__item strong {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: color 220ms ease, transform 220ms ease;
}

.bottom-nav__item.is-active {
  color: #ab231c;
  transform: translateY(-2px);
}

.bottom-nav__item.is-active::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 244, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -10px 18px rgba(248, 113, 113, 0.08),
    0 10px 16px rgba(248, 113, 113, 0.12);
  transform: scale(1.02);
}

.bottom-nav__item.is-active .bottom-nav__icon {
  background:
    linear-gradient(180deg, #ffffff 0%, #ffe9e7 60%, #fecaca 100%);
  box-shadow:
    0 10px 18px rgba(248, 113, 113, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -4px 8px rgba(248, 113, 113, 0.2);
  color: #9d1f1a;
  transform: translateY(-1px) scale(1.08);
}

.bottom-nav__item.is-active strong {
  color: #a71f1a;
  transform: translateY(1px);
}

.bottom-nav__item:not(.is-active) {
  color: #64748b;
}

.bottom-nav__item:not(.is-active) .bottom-nav__icon {
  opacity: 0.94;
}

.bottom-nav__item:hover {
  color: #97231d;
}

.bottom-nav__item:hover::before {
  background: rgba(255, 255, 255, 0.96);
}

.bottom-nav__item:hover .bottom-nav__icon {
  transform: translateY(-1px);
}

.is-hidden { display: none; }

@media (min-width: 980px) {
  .app-shell { padding: 0; }
  .admin-shell { padding: 26px; }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .auth-layout {
    max-width: 420px;
    margin: 0 auto;
    padding-top: 56px;
  }

  .dashboard-layout {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 24px 32px;
  }

  .dashboard-view {
    background-size: auto, cover, cover;
    background-position: center top, center top, center top;
  }

  .auth-view {
    background:
      linear-gradient(180deg, rgba(31, 41, 55, 0.04), rgba(17, 24, 39, 0.1)),
      var(--bg-image-desktop),
      linear-gradient(180deg, #cbd5e1 0%, #9ca3af 24%, #4b5563 58%, #111827 100%);
    background-size: cover;
    background-position: center center;
  }

  .topbar__time {
    font-size: 1.2rem;
  }

  .hero-arch {
    max-width: 540px;
    padding: 56px 36px 32px;
  }

  .dashboard-panel--grid {
    padding: 20px 18px 14px;
  }

  .quick-grid {
    grid-template-columns: repeat(4, minmax(88px, 112px));
    justify-content: center;
    justify-items: center;
    max-width: 520px;
    margin: 0 auto;
  }
  .quick-card {
    min-height: 128px;
  }
  .task-shell {
    max-width: 760px;
    margin: 0 auto;
  }
  .membership-shell {
    max-width: 760px;
    margin: 0 auto;
  }
  .tutorial-context-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tutorial-categories-layout {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: start;
  }
  .tutorial-category-nav {
    position: sticky;
    top: 18px;
  }
  .tutorial-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .poster-slide {
    height: 220px;
  }
  .bottom-nav {
    position: static;
    margin-top: 20px;
  }
  .floating-actions {
    right: 24px;
    bottom: 24px;
  }
  .admin-panel { grid-template-columns: 1fr 1fr; }
  .admin-panel__header { grid-column: 1 / -1; }
  .admin-inline { grid-template-columns: 1fr 1fr; }
  .admin-grid-page { grid-template-columns: 1fr 1fr; }
  .admin-users-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .admin-inline--users { grid-template-columns: 1.2fr 0.8fr; }
  .admin-inline--3 { grid-template-columns: 1.2fr 0.6fr 0.6fr; }
}
