:root {
	--bg: #f4f5f2;
	--surface: #FFFFFF;
	--ink: #17191b;
	--muted: #66717b;
	--line: #e1e4e1;
	--accent: #D4AF37;
	--accent-dark: #B89124;
	--accent-soft: #F8F1D5;
	--ok: #22C55E;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Poppins", sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at 8% 10%, #eceeeb, transparent 34%),
		radial-gradient(circle at 94% 26%, #e6e9e5, transparent 36%),
		var(--bg);
}

.mobile-app {
	min-height: 100dvh;
	display: block;
	padding: 0.8rem;
}

body.is-admin {
	overflow: hidden;
}

body.is-admin .mobile-app {
	display: none;
}

body.is-admin .admin-view {
	display: grid;
	min-height: 100dvh;
	padding: 0.8rem;
}

.app-shell {
	width: min(430px, 100%);
	height: calc(100dvh - 1.6rem);
	min-height: calc(100dvh - 1.6rem);
	background: var(--surface);
	border-radius: 28px;
	border: 1px solid var(--line);
	display: block;
	overflow: hidden;
	box-shadow: 0 26px 36px rgba(8, 9, 9, 0.12);
}

.chip {
	display: inline-block;
	margin: 0;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	color: #ffffff;
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.chip i {
	font-size: 0.72rem;
	margin-right: 0.28rem;
}

.auth-view,
.app-view {
	display: none;
	min-height: 100%;
	height: 100%;
}

.auth-view.is-active {
	display: flex;
}

.auth-view {
	width: 100%;
	padding: 1rem;
	overflow: auto;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	animation: panelIn 0.24s ease;
}

.auth-header,
.auth-tabs,
.auth-form {
	width: min(100%, 360px);
}

.auth-header {
	text-align: center;
	margin-bottom: 1.9rem;
}

.auth-header .chip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.12rem;
	padding: 0.4rem 0.8rem;
}

.auth-header .chip i {
	margin-right: 0;
	font-size: 0.8rem;
}

.auth-header .chip span {
	line-height: 1.1;
}

.app-view.is-active {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
}

.app-view {
	position: relative;
}

.whatsapp-float {
	position: absolute;
	right: 0.9rem;
	bottom: 4.85rem;
	z-index: 30;
	display: grid;
	width: 3.35rem;
	height: 3.35rem;
	place-items: center;
	border: 2px solid rgba(255, 255, 255, 0.88);
	border-radius: 50%;
	color: #ffffff;
	background: #25d366;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float i {
	font-size: 1.75rem;
	line-height: 1;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
	outline: none;
	filter: brightness(1.08);
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 13px 28px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:active {
	transform: translateY(0) scale(0.98);
}

.whatsapp-float[hidden] {
	display: none !important;
}

body.is-admin .whatsapp-float {
	display: none !important;
}

.whatsapp-settings-card {
	max-width: 620px;
	margin-inline: auto;
}

.whatsapp-enabled-control {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-top: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.whatsapp-enabled-control input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: #ffc400;
}

.admin-view {
	display: none;
	width: min(430px, 100%);
	height: calc(100dvh - 1.6rem);
	min-height: calc(100dvh - 1.6rem);
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 26px 36px rgba(8, 9, 9, 0.12);
	animation: panelIn 0.24s ease;
}

.admin-view.is-active {
	display: grid;
	grid-template-rows: auto 1fr auto;
}

.admin-header {
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid rgba(228, 231, 229, 0.78);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 255, 0.96)),
		repeating-linear-gradient(45deg, rgba(228, 231, 229, 0.26), rgba(228, 231, 229, 0.26) 8px, transparent 8px, transparent 16px);
}

.admin-content {
	background: var(--surface);
	border: 0;
	border-radius: 0;
	padding: 1rem;
	padding-bottom: 1rem;
	overflow: auto;
	min-height: 0;
}

.admin-stats-grid,
.admin-layout {
	display: grid;
	gap: 0.8rem;
}

.admin-process-grid {
	display: grid;
	gap: 0.8rem;
	margin-bottom: 0.9rem;
}

.admin-workspace {
	min-height: 320px;
}

.admin-panel {
	display: none;
	animation: panelIn 0.22s ease;
}

.admin-panel.is-active {
	display: block;
}

.admin-bottom-nav {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.35rem;
	padding: 0.5rem;
	border-top: 1px solid rgba(228, 231, 229, 0.78);
	background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(246, 251, 255, 0.98));
	border-radius: 0 0 28px 28px;
	z-index: 20;
}

.admin-nav-btn {
	border: 1px solid transparent;
	background: transparent;
	border-radius: 12px;
	padding: 0.55rem 0.3rem;
	position: relative;
	font-family: inherit;
	font-size: 0.7rem;
	font-weight: 700;
	color: #66717b;
	display: grid;
	place-items: center;
	gap: 0.1rem;
}

.admin-nav-btn i {
	font-size: 0.9rem;
}

.admin-nav-btn.is-active {
	border-color: rgba(255, 196, 0, 0.45);
	background: rgba(255, 196, 0, 0.16);
	color: var(--accent-dark);
}

.admin-nav-dot {
	position: absolute;
	top: 0.28rem;
	right: 0.52rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #ef4444;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
	animation: navDotPulse 1.4s ease-in-out infinite;
}

@keyframes navDotPulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.18);
		opacity: 0.82;
	}
}

.admin-process-card {
	position: relative;
}

.admin-process-card h2,
.admin-process-card h3 {
	margin-bottom: 0.2rem;
}

.admin-stats-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 0.8rem;
}

.admin-searchbar {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.85rem;
}

.admin-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: flex-end;
}

.admin-search-list-link {
	margin-top: 0.85rem;
	padding-top: 0.65rem;
	border-top: 1px dashed #e1e4e1;
	display: flex;
	justify-content: flex-start;
}

.admin-search-list-link .btn-ghost {
	padding-inline: 0.85rem;
}

.admin-searchbar input,
.admin-card input {
	width: 100%;
	border: 1px solid var(--line);
	background: #ffffff;
	border-radius: 12px;
	padding: 0.68rem 0.75rem;
	font-family: inherit;
	font-size: 0.85rem;
	color: var(--ink);
	outline: none;
}

.admin-searchbar input:focus,
.admin-card input:focus {
	border-color: rgba(255, 196, 0, 0.64);
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.17);
}

.admin-card {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 0.95rem;
	box-shadow: 0 12px 18px rgba(8, 9, 9, 0.08);
}

.admin-card h2,
.admin-card h3 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
}

.admin-hint {
	margin: 0.35rem 0 0.8rem;
	font-size: 0.78rem;
	color: var(--muted);
}

.admin-feedback {
	display: block;
	min-height: 1.1rem;
	margin-top: 0.7rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
}

.admin-edit-picker {
	margin-bottom: 0.65rem;
	padding: 0.55rem;
	background: #F7F8FC;
	border: 1px dashed #d8dcd8;
	border-radius: 12px;
}

.admin-edit-picker input {
	width: 100%;
	border: 1px solid var(--line);
	background: #ffffff;
	border-radius: 11px;
	padding: 0.58rem 0.64rem;
	font-family: inherit;
	font-size: 0.84rem;
	color: var(--ink);
	outline: none;
}

.admin-edit-picker input:focus {
	border-color: rgba(255, 196, 0, 0.64);
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.17);
}

.admin-edit-results {
	display: grid;
	gap: 0.35rem;
	margin-top: 0.5rem;
	max-height: 180px;
	overflow: auto;
}

.admin-edit-result-btn {
	border: 1px solid #dfe2df;
	background: #ffffff;
	border-radius: 10px;
	padding: 0.5rem 0.58rem;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink);
	text-align: left;
}

.admin-edit-result-btn:hover {
	border-color: rgba(255, 196, 0, 0.55);
	background: #f4f5f2;
}

.admin-edit-result-btn.is-selected {
	border-color: rgba(255, 196, 0, 0.64);
	background: rgba(255, 196, 0, 0.14);
	color: var(--accent-dark);
}

.admin-edit-empty {
	margin: 0;
	padding: 0.45rem 0.4rem;
	font-size: 0.76rem;
	color: var(--muted);
}

.admin-feedback.is-error {
	color: #b91c1c;
}

.admin-feedback.is-ok {
	color: var(--ok);
}

.admin-form-actions,
.balance-actions,
.admin-user-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* =========================
   PESTAÑAS GESTIÓN USUARIOS
========================= */

.admin-user-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 12px;
}

.admin-user-tab {
  flex: 1;
  padding: 11px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-user-tab.is-active {
  font-weight: 700;
}

.admin-user-tab-panel {
  display: none;
}

.admin-user-tab-panel.is-active {
  display: block;
}

.bank-account-form-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
}

.bank-account-form-actions > button {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.45rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .bank-account-form-actions {
    gap: 0.3rem;
  }

  .bank-account-form-actions > button {
    padding: 0.68rem 0.2rem;
    font-size: 0.7rem;
  }
}

/* Controles superiores del panel administrativo. */
body.is-admin .admin-header .header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 40px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.45rem;
  width: min(100%, 520px);
  margin-inline: auto;
}

body.is-admin .admin-header .header-actions {
  display: contents;
}

body.is-admin .admin-header .header-top .chip,
body.is-admin .admin-header .header-top button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

body.is-admin .admin-header .header-top .admin-invitations-header-btn {
  position: static;
  width: 40px;
  min-width: 40px;
  padding: 0;
  transform: none;
}

body.is-admin .admin-header .header-top #admin-whatsapp-btn {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

/* Portada Dale5: identidad visual independiente para acceso y registro. */
body:has(.auth-view.is-active) {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 196, 0, 0.26), transparent 27rem),
    radial-gradient(circle at 92% 86%, rgba(255, 196, 0, 0.12), transparent 23rem),
    #050606;
}

.app-shell:has(.auth-view.is-active) {
  width: min(1080px, 100%);
  border: 1px solid rgba(255, 196, 0, 0.32);
  border-radius: 30px;
  background: #090a0b;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

.app-shell:has(.auth-view.is-active)::before,
.app-shell:has(.auth-view.is-active)::after {
  display: none;
}

body:not(.is-admin) .auth-view {
  display: none;
  position: relative;
  min-height: 100%;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  color: #f8f8f5;
  background: #090a0b;
}

body:not(.is-admin) .auth-view.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
}

body:not(.is-admin) .auth-header {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(2rem, 5vw, 4.6rem);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background:
    linear-gradient(118deg, rgba(255, 196, 0, 0.96), rgba(255, 218, 70, 0.94) 48%, rgba(242, 169, 0, 0.98)),
    #ffc400;
}

body:not(.is-admin) .auth-header::before {
  position: absolute;
  right: -22%;
  bottom: -22%;
  width: 72%;
  aspect-ratio: 1;
  border: 2px solid rgba(5, 6, 6, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(5, 6, 6, 0.04), 0 0 0 70px rgba(5, 6, 6, 0.035);
  content: "";
}

.auth-brand-row,
.auth-hero-copy,
.auth-feature-grid {
  position: relative;
  z-index: 2;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body:not(.is-admin) .auth-project-logo {
  width: min(210px, 48%);
  height: 82px;
  margin: 0;
  filter: none;
}

.auth-project-logo img { object-position: left center; }

.auth-brand-badge {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(5, 6, 6, 0.2);
  border-radius: 999px;
  color: #090a0b;
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-hero-copy { max-width: 560px; margin: clamp(2.2rem, 7vh, 5.2rem) 0; }
.auth-eyebrow { margin: 0 0 0.85rem; color: #090a0b !important; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
body:not(.is-admin) .auth-header .auth-hero-copy h1 { max-width: 520px; margin: 0; color: #090a0b; font-size: clamp(2.45rem, 5vw, 4.7rem); line-height: 0.98; letter-spacing: -0.065em; }
body:not(.is-admin) .auth-header .auth-hero-copy > p:last-child { max-width: 500px; margin: 1.25rem 0 0; color: rgba(9, 10, 11, 0.76); font-size: clamp(0.88rem, 1.4vw, 1.04rem); line-height: 1.65; }

.auth-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.auth-feature-grid span { display: flex; min-height: 64px; padding: 0.75rem; align-items: center; gap: 0.5rem; border: 1px solid rgba(9, 10, 11, 0.14); border-radius: 14px; color: #090a0b; background: rgba(255, 255, 255, 0.25); font-size: 0.7rem; font-weight: 800; line-height: 1.25; }
.auth-feature-grid i { font-size: 1.05rem; }
.auth-hero-five { position: absolute; z-index: 1; right: -0.02em; bottom: -0.28em; color: rgba(255, 255, 255, 0.18); font-family: "Space Grotesk", sans-serif; font-size: clamp(19rem, 36vw, 33rem); font-weight: 900; line-height: 1; pointer-events: none; }

.auth-access-panel {
  display: flex;
  width: 100%;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  overflow-y: auto;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 196, 0, 0.12), transparent 18rem),
    linear-gradient(155deg, #17191b, #080909 72%);
}

.auth-access-heading { display: flex; width: min(100%, 430px); margin: 0 auto 1.25rem; align-items: center; gap: 0.8rem; }
.auth-access-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; color: #090a0b; background: #ffc400; box-shadow: 0 10px 24px rgba(255, 196, 0, 0.18); }
.auth-access-icon i { font-size: 1.15rem; }
.auth-access-heading p { margin: 0 0 0.12rem; color: #aeb4b8; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-access-heading h2 { margin: 0; color: #fff; font-size: 1.35rem; letter-spacing: -0.03em; }

body:not(.is-admin) .auth-access-panel .auth-tabs,
body:not(.is-admin) .auth-access-panel .auth-form { width: min(100%, 430px); margin-inline: auto; }
body:not(.is-admin) .auth-access-panel .auth-tabs { padding: 0.32rem; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 15px; background: #050606; }
body:not(.is-admin) .auth-access-panel .auth-tab { min-height: 43px; border-radius: 11px; color: #9ea4a8; }
body:not(.is-admin) .auth-access-panel .auth-tab.is-active { border-color: #ffc400; color: #080909; background: #ffc400; box-shadow: 0 7px 18px rgba(255, 196, 0, 0.18); }
body:not(.is-admin) .auth-access-panel .auth-form.is-active { margin-top: 0.8rem; padding: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: rgba(5, 6, 6, 0.66); box-shadow: none; }
body:not(.is-admin) .auth-access-panel .auth-form input,
body:not(.is-admin) .auth-access-panel .auth-form select { border-color: rgba(255, 255, 255, 0.14); color: #f8f8f5; background-color: #151719; }
body:not(.is-admin) .auth-access-panel .auth-form .btn-main { color: #080909; background: linear-gradient(135deg, #ffe36e, #ffc400 56%, #e8a900); }

@media (max-width: 767px) {
  .mobile-app { padding: 0; }
  .app-shell:has(.auth-view.is-active) { height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  body:not(.is-admin) .auth-view.is-active { display: block; overflow-y: auto; }
  body:not(.is-admin) .auth-header { min-height: 285px; padding: 1.15rem 1rem 1.4rem; justify-content: flex-start; }
  body:not(.is-admin) .auth-project-logo { width: 138px; height: 58px; }
  .auth-brand-badge { padding: 0.38rem 0.55rem; font-size: 0.57rem; }
  .auth-hero-copy { margin: 1.15rem 0 1rem; }
  body:not(.is-admin) .auth-header .auth-hero-copy h1 { max-width: 330px; font-size: clamp(2rem, 10vw, 2.75rem); }
  body:not(.is-admin) .auth-header .auth-hero-copy > p:last-child { max-width: 340px; margin-top: 0.65rem; font-size: 0.74rem; line-height: 1.45; }
  .auth-eyebrow { margin-bottom: 0.45rem; font-size: 0.6rem; }
  .auth-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.32rem; }
  .auth-feature-grid span { min-height: 46px; padding: 0.42rem; justify-content: center; border-radius: 10px; font-size: 0.55rem; text-align: center; }
  .auth-feature-grid i { display: none; }
  .auth-hero-five { right: -0.04em; bottom: -0.28em; font-size: 17rem; }
  .auth-access-panel { min-height: calc(100dvh - 285px); padding: 1.25rem 1rem 2rem; overflow: visible; justify-content: flex-start; }
  .auth-access-heading { margin-bottom: 0.85rem; }
  .auth-access-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .auth-access-heading h2 { font-size: 1.1rem; }
  body:not(.is-admin) .auth-access-panel .auth-form.is-active { padding: 1rem; }
}

body.is-admin .admin-header .header-top button i {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 420px) {
  body.is-admin .admin-header .header-top {
    grid-template-columns: minmax(0, 1fr) 36px 36px minmax(0, 1fr);
    gap: 0.28rem;
  }

  body.is-admin .admin-header .header-top .chip,
  body.is-admin .admin-header .header-top button {
    height: 36px;
    min-height: 36px;
    padding-inline: 0.22rem;
    font-size: 0.64rem;
  }

  body.is-admin .admin-header .header-top .admin-invitations-header-btn,
  body.is-admin .admin-header .header-top #admin-whatsapp-btn {
    width: 36px;
    min-width: 36px;
  }
}

/* Panel del usuario Dale5: interfaz clara inspirada en la aplicación móvil. */
.app-shell:has(.app-view.is-active) {
  width: min(1180px, 100%);
  border-color: rgba(9, 10, 11, 0.12);
  background: #f3f2ed;
  box-shadow: 0 28px 70px rgba(8, 9, 9, 0.2);
}

body:not(.is-admin) .app-view {
  color: #111315;
  background: #f3f2ed;
}

body:not(.is-admin) .app-view .app-header {
  padding: 0.85rem 1.15rem 0.95rem;
  border: 0;
  border-bottom: 1px solid rgba(9, 10, 11, 0.08);
  color: #111315;
  background:
    radial-gradient(circle at 92% -40%, rgba(255, 196, 0, 0.35), transparent 13rem),
    #ffffff;
  box-shadow: 0 8px 24px rgba(9, 10, 11, 0.06);
}

body:not(.is-admin) .app-view .app-header::after { display: none; }
body:not(.is-admin) .app-view .header-top { justify-content: center; }
body:not(.is-admin) .app-view .app-project-logo { width: 142px; height: 54px; margin: 0 auto; padding: 0; border-radius: 0; background: transparent; filter: drop-shadow(0 7px 12px rgba(255, 196, 0, 0.16)); box-shadow: none; }
body:not(.is-admin) .app-view .app-header h1 { margin: 0.28rem 0 0.12rem; color: #111315; font-size: clamp(1.15rem, 2.5vw, 1.55rem); letter-spacing: -0.035em; }
body:not(.is-admin) .app-view .app-header > p:not(.app-kicker) { margin: 0; color: #71777b; font-size: 0.72rem; }

body:not(.is-admin) .app-view .app-content {
  padding: 1rem 1rem 6.35rem;
  color: #111315;
  background:
    radial-gradient(circle at 96% 3%, rgba(255, 196, 0, 0.13), transparent 18rem),
    linear-gradient(155deg, #f8f7f2, #efeee9);
}

body:not(.is-admin) .app-view .hero-card {
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 196, 0, 0.26), transparent 10rem),
    linear-gradient(135deg, #191c1e, #050606 72%);
  box-shadow: 0 18px 34px rgba(9, 10, 11, 0.2);
}

body:not(.is-admin) .app-view .hero-card::after {
  right: -2rem;
  bottom: -4.8rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 24px rgba(255, 196, 0, 0.04);
}

body:not(.is-admin) .app-view .hero-eyebrow { color: #ffc400; }
body:not(.is-admin) .app-view .hero-card h2,
body:not(.is-admin) .app-view .hero-summary-grid span { color: rgba(255, 255, 255, 0.68); }
body:not(.is-admin) .app-view .hero-value,
body:not(.is-admin) .app-view .hero-value strong,
body:not(.is-admin) .app-view .hero-summary-grid strong { color: #ffffff; }
body:not(.is-admin) .app-view .hero-summary-grid > div + div { border-color: rgba(255, 255, 255, 0.14); }

body:not(.is-admin) .app-view .action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

body:not(.is-admin) .app-view .action-btn {
  display: grid;
  min-height: 118px;
  padding: 0.85rem 0.65rem;
  border: 1px solid rgba(9, 10, 11, 0.08);
  border-radius: 18px;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 0.52rem;
  color: #111315;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 10, 11, 0.07);
  text-align: center;
}

body:not(.is-admin) .app-view .action-btn::after { display: none; }
body:not(.is-admin) .app-view .action-btn > i { width: 46px; height: 46px; border-radius: 15px; color: #090a0b; background: #ffc400; box-shadow: 0 7px 16px rgba(255, 196, 0, 0.22); }
body:not(.is-admin) .app-view .action-btn > span { font-size: 0.72rem; line-height: 1.25; }
body:not(.is-admin) .app-view #home-movements-btn span { font-size: 0.72rem; }
body:not(.is-admin) .app-view .action-btn small { margin-top: 0.18rem; color: #777d81; font-size: 0.58rem; line-height: 1.35; }
body:not(.is-admin) .app-view .action-btn:hover,
body:not(.is-admin) .app-view .action-btn:focus-visible { border-color: rgba(255, 196, 0, 0.72); background: #fffdf5; box-shadow: 0 13px 28px rgba(9, 10, 11, 0.11); transform: translateY(-2px); }

body:not(.is-admin) .app-view .kpi-card,
body:not(.is-admin) .app-view .notice-card,
body:not(.is-admin) .app-view .profile-card,
body:not(.is-admin) .app-view .task-card,
body:not(.is-admin) .app-view .news-item,
body:not(.is-admin) .app-view .task-progress-card,
body:not(.is-admin) .app-view .plan-current-card,
body:not(.is-admin) .app-view .user-plan-card,
body:not(.is-admin) .app-view .user-task-card,
body:not(.is-admin) .app-view .user-task-empty,
body:not(.is-admin) .app-view .task-history-access,
body:not(.is-admin) .app-view .task-history-summary > div,
body:not(.is-admin) .app-view .user-task-history-item,
body:not(.is-admin) .app-view .setting-list li {
  border-color: rgba(9, 10, 11, 0.08);
  color: #17191b;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 10, 11, 0.065);
}

body:not(.is-admin) .app-view .panel-head h2,
body:not(.is-admin) .app-view .kpi-card strong,
body:not(.is-admin) .app-view .notice-card h3,
body:not(.is-admin) .app-view .profile-card h2,
body:not(.is-admin) .app-view .task-card h2,
body:not(.is-admin) .app-view .plan-current-card h2,
body:not(.is-admin) .app-view .user-plan-card h3,
body:not(.is-admin) .app-view .user-task-body h3 { color: #17191b; }

body:not(.is-admin) .app-view .kpi-card span,
body:not(.is-admin) .app-view .notice-card p,
body:not(.is-admin) .app-view .profile-card p,
body:not(.is-admin) .app-view .task-card p,
body:not(.is-admin) .app-view .news-item p,
body:not(.is-admin) .app-view .user-modal-note,
body:not(.is-admin) .app-view .task-progress-grid span,
body:not(.is-admin) .app-view .plan-current-meta span,
body:not(.is-admin) .app-view .profile-meta span { color: #747b80; }

body:not(.is-admin) .app-view .plan-current-meta > div,
body:not(.is-admin) .app-view .profile-meta > div,
body:not(.is-admin) .app-view .task-meta > div,
body:not(.is-admin) .app-view .task-progress-grid > div,
body:not(.is-admin) .app-view .user-plan-details > div {
  border-color: rgba(9, 10, 11, 0.07);
  background: #f7f6f1;
}

body:not(.is-admin) .app-view .focus-tag {
  border-color: rgba(255, 196, 0, 0.44);
  color: #5f4700;
  background: #fff3bf;
  box-shadow: none;
}

body:not(.is-admin) .app-view .active-plan-item { border-color: rgba(9, 10, 11, 0.08); background: #f8f7f2; box-shadow: none; }
body:not(.is-admin) .app-view .active-plan-benefits > div { border-color: rgba(9, 10, 11, 0.07); background: #ffffff; }
body:not(.is-admin) .app-view .active-plan-item-head h3,
body:not(.is-admin) .app-view .active-plan-benefits strong { color: #17191b; }
body:not(.is-admin) .app-view .active-plan-benefits span,
body:not(.is-admin) .app-view .active-plan-item .user-modal-note { color: #71787d; }

body:not(.is-admin) .app-view input,
body:not(.is-admin) .app-view select,
body:not(.is-admin) .app-view textarea { border-color: #d9ddd9; color: #17191b; background: #ffffff; box-shadow: inset 0 1px 3px rgba(9, 10, 11, 0.05); }
body:not(.is-admin) .app-view input::placeholder,
body:not(.is-admin) .app-view textarea::placeholder { color: #93999d; }

body:not(.is-admin) .app-view .btn-secondary,
body:not(.is-admin) .app-view .btn-ghost,
body:not(.is-admin) .app-view #close-task-history-btn { border-color: rgba(9, 10, 11, 0.14); color: #17191b; background: #ffffff; }
body:not(.is-admin) .app-view .btn-main { border-color: #e8aa00; color: #090a0b; background: linear-gradient(135deg, #ffe36e, #ffc400 58%, #e9a900); }

body:not(.is-admin) .app-view .bottom-nav {
  width: min(560px, calc(100% - 1.5rem));
  right: 0;
  bottom: 0.65rem;
  left: 0;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: #111315;
  box-shadow: 0 14px 30px rgba(9, 10, 11, 0.25);
}
body:not(.is-admin) .app-view .nav-btn,
body:not(.is-admin) .app-view .nav-btn i { color: #8e959a; }
body:not(.is-admin) .app-view .nav-btn.is-active,
body:not(.is-admin) .app-view .nav-btn.is-active i { color: #ffc400; }
body:not(.is-admin) .app-view .nav-btn.is-active { background: rgba(255, 196, 0, 0.1); }

@media (max-width: 767px) {
  .app-shell:has(.app-view.is-active) { width: 100%; height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  body:not(.is-admin) .app-view .app-header { padding: 0.65rem 0.85rem 0.75rem; }
  body:not(.is-admin) .app-view .app-project-logo { width: 118px; height: 44px; padding: 0; border-radius: 0; }
  body:not(.is-admin) .app-view .app-header h1 { font-size: 1.05rem; }
  body:not(.is-admin) .app-view .app-content { padding: 0.75rem 0.75rem 6rem; }
  body:not(.is-admin) .app-view .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.52rem; }
  body:not(.is-admin) .app-view .action-btn { min-height: 108px; padding: 0.72rem 0.5rem; }
  body:not(.is-admin) .app-view .bottom-nav { width: calc(100% - 1rem); bottom: 0.45rem; border-radius: 17px; }
}

/* Contraste del consentimiento legal sobre el formulario oscuro */
body:not(.is-admin) .auth-form .registration-consent {
  border-color: rgba(255, 196, 0, 0.55);
  color: #f7f8f5;
  background: linear-gradient(145deg, rgba(255, 196, 0, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:not(.is-admin) .auth-form .registration-consent span,
body:not(.is-admin) .auth-form .registration-consent label {
  color: #f7f8f5;
}

body:not(.is-admin) .auth-form .registration-consent .legal-link {
  color: #ffd12a;
}

body:not(.is-admin) .auth-form .registration-consent .legal-link:hover,
body:not(.is-admin) .auth-form .registration-consent .legal-link:focus-visible {
  color: #fff0a3;
}

body:not(.is-admin) .auth-form .registration-consent #register-consent {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: block;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0.16rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  accent-color: #ffc400;
}

body:not(.is-admin) .auth-form .registration-consent #register-consent:focus-visible {
  outline: 2px solid #ffd95e;
  outline-offset: 3px;
  box-shadow: none;
}

.registration-consent {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.62rem;
  align-items: start;
  margin: 0.9rem 0 0.15rem;
  padding: 0.78rem;
  border: 1px solid rgba(255, 190, 0, 0.3);
  border-radius: 12px;
  background: rgba(255, 196, 0, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
}

.auth-form .registration-consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.13rem 0 0;
  padding: 0;
  accent-color: #f7b900;
  cursor: pointer;
}

.legal-link {
  display: inline;
  padding: 0;
  border: 0;
  color: #9a6900;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: #050b10;
}

body.has-legal-modal {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 8, 13, 0.76);
  backdrop-filter: blur(8px);
}

.legal-modal[hidden] {
  display: none;
}

.legal-dialog {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 22px;
  background: #fffdf6;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.legal-dialog-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(5, 11, 16, 0.1);
  background: linear-gradient(135deg, #050b10, #15222c);
  color: #fff;
}

.legal-dialog-head h2 {
  margin: 0.22rem 0 0;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.legal-version {
  color: #ffc400;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-close {
  display: grid;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.45rem;
  cursor: pointer;
}

.legal-dialog-content {
  overflow-y: auto;
  padding: 1.25rem 1.35rem 1.5rem;
  color: #27323a;
  font-size: 0.86rem;
  line-height: 1.65;
  scrollbar-color: #e3ad00 #f4f0e5;
}

.legal-dialog-content > p:first-child {
  margin-top: 0;
}

.legal-dialog-content ol {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.legal-dialog-content ul {
  display: grid;
  gap: 0.28rem;
  margin: 0.55rem 0 0.25rem;
  padding-left: 1.15rem;
}

.legal-dialog-content li::marker {
  color: #b47c00;
  font-weight: 800;
}

@media (max-width: 560px) {
  .legal-modal {
    align-items: end;
    padding: 0.55rem;
  }

  .legal-dialog {
    max-height: 91vh;
    border-radius: 18px 18px 12px 12px;
  }

  .legal-dialog-head,
  .legal-dialog-content {
    padding-inline: 1rem;
  }
}

.upcoming-withdrawal-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.4rem;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.upcoming-withdrawal-status--available {
  color: #166534;
  background: #dcfce7;
}

.upcoming-withdrawal-status--upcoming {
  color: #854d0e;
  background: #fef3c7;
}

.upcoming-withdrawal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.upcoming-withdrawal-grid > div {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafaf7;
}

.upcoming-withdrawal-grid span {
  color: var(--muted);
  font-size: 0.66rem;
}

.upcoming-withdrawal-grid strong {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .admin-user-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 3px;
  }

  .admin-user-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 4px;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .upcoming-withdrawal-grid {
    grid-template-columns: 1fr;
  }
}

.withdrawal-actions {
	margin-top: 0.65rem;
}

.withdrawals-filter-bar {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.4rem;
	margin: 0.1rem 0 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.1rem;
	-webkit-overflow-scrolling: touch;
}

.withdraw-filter-btn,
.deposit-filter-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 0.38rem 0.62rem;
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.1;
}

.withdraw-filter-btn.is-active,
.deposit-filter-btn.is-active {
	border-color: rgba(255, 196, 0, 0.55);
	background: rgba(255, 196, 0, 0.16);
	color: var(--accent-dark);
}

.admin-deposit-rejection {
	margin-top: 0.55rem;
	padding: 0.58rem;
	border: 1px solid rgba(239, 68, 68, 0.24);
	border-radius: 10px;
	color: #991b1b;
	background: #fef2f2;
}

.admin-user-card .movement-status {
	margin-top: 0.45rem;
}

.admin-deposit-rejection strong,
.admin-deposit-rejection p {
	font-size: 0.7rem;
}

.admin-deposit-rejection p {
	margin: 0.25rem 0 0;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.admin-form-actions {
	margin-top: 0.85rem;
}

.admin-form-actions .btn-block,
.balance-actions .btn-main,
.balance-actions .btn-ghost {
	flex: 1 1 140px;
}

.withdrawal-actions .btn-main,
.withdrawal-actions .btn-ghost {
	flex: 1 1 140px;
	min-width: 0;
	text-align: center;
}

.balance-tools {
	margin-top: 0.2rem;
	padding-top: 0.2rem;
	border-top: 0;
}

.balance-tools p {
	margin: 0.3rem 0 0.55rem;
	font-size: 0.78rem;
	color: var(--muted);
}

.admin-users-summary {
	font-size: 0.82rem;
	color: var(--muted);
	margin-bottom: 0.7rem;
}

.admin-users-list {
	display: grid;
	gap: 0.65rem;
	max-height: 640px;
	overflow: auto;
}

.admin-user-card {
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 0.8rem;
	background: #ffffff;
	display: grid;
	gap: 0.6rem;
	box-shadow: 0 8px 14px rgba(8, 9, 9, 0.06);
}

.admin-user-card.is-selected {
	border-color: rgba(255, 196, 0, 0.52);
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.12);
}

.admin-user-phone {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1rem;
	font-weight: 700;
}

.admin-user-identity {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.admin-user-plan {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	gap: 0.35rem;
	max-width: 60%;
	margin: 0;
	padding: 0.28rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	background: #f8f9f7;
	font-size: 0.67rem;
	line-height: 1.25;
	text-align: right;
}

.admin-user-plan span {
	font-weight: 600;
}

.admin-user-plan strong {
	color: var(--ink);
	overflow-wrap: anywhere;
}

.admin-user-meta {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	color: var(--muted);
}

.home-active-plans,
.active-plans-summary {
	display: grid;
	gap: 0.65rem;
}

.active-plan-item {
	display: grid;
	gap: 0.55rem;
	padding: 0.75rem;
	border: 1px solid rgba(255, 196, 0, 0.3);
	border-radius: 14px;
	background: linear-gradient(145deg, #ffffff, #fff9df);
}

.active-plan-item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
}

.active-plan-item-head h3 {
	margin: 0;
}

.active-plan-item-head span {
	padding: 0.22rem 0.48rem;
	border-radius: 999px;
	color: #6d4c00;
	background: rgba(255, 196, 0, 0.2);
	font-size: 0.62rem;
	font-weight: 800;
}

.active-plan-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.45rem;
}

.active-plan-benefits > div {
	display: grid;
	gap: 0.18rem;
	min-width: 0;
	padding: 0.48rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.75);
}

.active-plan-benefits span {
	color: var(--muted);
	font-size: 0.62rem;
}

.active-plan-benefits strong {
	font-size: 0.82rem;
}

.active-plan-item.is-compact {
	padding: 0.65rem;
}

@media (max-width: 420px) {
	.active-plan-benefits {
		grid-template-columns: 1fr;
	}
}

.admin-referral-summary {
	display: grid;
	gap: 0.6rem;
	padding-top: 0.65rem;
	border-top: 1px solid var(--line);
}

.admin-referral-totals {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.admin-referral-totals > div {
	display: grid;
	gap: 0.2rem;
	padding: 0.65rem;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #f8f9f7;
}

.admin-referral-totals span {
	color: var(--muted);
	font-size: 0.68rem;
}

.admin-referral-totals strong {
	color: var(--accent-dark);
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.15rem;
}

.admin-referral-cycles {
	display: grid;
	gap: 0.45rem;
}

.admin-referral-cycle {
	display: grid;
	gap: 0.35rem;
	padding: 0.65rem;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #fff;
}

.admin-referral-cycle-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.admin-referral-cycle-head strong {
	font-size: 0.76rem;
}

.admin-referral-cycle-head span {
	padding: 0.2rem 0.4rem;
	border-radius: 999px;
	color: var(--accent-dark);
	background: rgba(255, 196, 0, 0.12);
	font-size: 0.62rem;
	font-weight: 800;
}

.admin-referral-cycle code {
	width: fit-content;
	padding: 0.28rem 0.42rem;
	border-radius: 7px;
	color: var(--ink);
	background: rgba(255, 196, 0, 0.1);
	font-size: 0.74rem;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.admin-referral-cycle p,
.admin-referral-error,
.admin-referral-loading {
	margin: 0;
	font-size: 0.7rem;
}

.admin-referral-cycle p,
.admin-referral-loading {
	color: var(--muted);
}

/* =========================================================
   DALE5 — IDENTIDAD VISUAL 2026
   Capa final de marca para usuario, autenticación y panel admin
========================================================= */

:root {
  --d5-ink: #0b0c0d;
  --d5-ink-soft: #191c1f;
  --d5-yellow: #ffc400;
  --d5-yellow-strong: #f5ad00;
  --d5-yellow-soft: #fff4bf;
  --d5-paper: #f4f5f2;
  --d5-card: #ffffff;
  --d5-muted: #66717b;
  --d5-line: #e4e7e5;
  --d5-shadow: 0 16px 40px rgba(8, 9, 9, 0.1);
}

body {
  color: var(--d5-ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 196, 0, 0.2), transparent 28rem),
    linear-gradient(145deg, #f8f8f5 0%, #ecefeb 100%);
}

.app-shell,
.admin-view {
  background: var(--d5-paper);
}

.auth-view {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 196, 0, 0.32), transparent 18rem),
    linear-gradient(160deg, #ffffff 0 42%, #f5f6f3 100%);
}

.auth-view::before {
  content: "5";
  position: absolute;
  top: -3rem;
  right: -0.7rem;
  color: rgba(255, 196, 0, 0.11);
  font-family: "Poppins", sans-serif;
  font-size: 16rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-project-logo {
  width: min(230px, 74vw);
  height: 105px;
  margin-inline: auto;
  filter: drop-shadow(0 12px 22px rgba(255, 183, 0, 0.22));
}

.app-project-logo {
  width: 118px;
  height: 48px;
  margin: 0;
  filter: drop-shadow(0 7px 10px rgba(255, 196, 0, 0.16));
}

.auth-header h1,
.app-header h1,
.panel-head h2,
.hero-card h2 {
  color: var(--d5-ink);
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.035em;
}

.auth-tabs {
  padding: 0.28rem;
  border: 1px solid rgba(8, 9, 9, 0.08);
  background: rgba(8, 9, 9, 0.05);
}

.auth-tab.is-active {
  color: var(--d5-ink);
  background: var(--d5-yellow);
  box-shadow: 0 7px 18px rgba(245, 173, 0, 0.25);
}

.auth-form,
.admin-card {
  border-color: rgba(8, 9, 9, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--d5-shadow);
}

input,
select,
textarea,
.auth-form input,
.admin-card input,
.admin-card select {
  border-color: #dfe3e1;
  color: var(--d5-ink);
  background: #f8f9f7;
}

input:focus,
select:focus,
textarea:focus,
.auth-form input:focus {
  border-color: var(--d5-yellow-strong);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.18);
}

.phone-country-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  padding: 0.72rem 3rem 0.72rem 0.82rem;
  color: #f8f9f7;
  background-color: #101214;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffc400 50%),
    linear-gradient(135deg, #ffc400 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.phone-country-select option {
  color: #111;
  background: #fff;
}

.phone-input-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.72rem 0.68rem;
  border: 1px solid rgba(255, 196, 0, 0.48);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  color: #ffd12a;
  background: #050607;
  font-size: 0.86rem;
  font-weight: 800;
  user-select: none;
}

.auth-form .phone-input-group input,
.admin-user-tab-panel .phone-input-group input {
  min-width: 0;
  border-radius: 0 13px 13px 0;
}

body:not(.is-admin) .auth-form .phone-input-group input,
body.is-admin .admin-card .admin-user-tab-panel .phone-input-group input {
  border-radius: 0 13px 13px 0;
}

body.is-admin .phone-country-select {
  border-color: var(--line);
  color: var(--ink);
  background-color: #fffef8;
}

body.is-admin .phone-prefix {
  border-color: #e7b318;
  color: #1a1a16;
  background: #ffd52a;
}

.btn-main,
body.is-admin .btn-main {
  border: 1px solid #e7a500;
  color: var(--d5-ink);
  background: linear-gradient(135deg, #ffd52a, var(--d5-yellow) 55%, #f3ae00);
  box-shadow: 0 10px 22px rgba(245, 173, 0, 0.22);
}

.btn-main:hover,
.btn-main:focus-visible,
body.is-admin .btn-main:hover,
body.is-admin .btn-main:focus-visible {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-ghost,
.btn-secondary,
body.is-admin .btn-ghost {
  border-color: rgba(8, 9, 9, 0.14);
  color: var(--d5-ink);
  background: #ffffff;
}

.app-header {
  position: relative;
  padding: 0.95rem 1rem 1.2rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% -20%, rgba(255, 196, 0, 0.28), transparent 15rem),
    linear-gradient(145deg, #090a0b, #141719);
  overflow: hidden;
}

.app-header::after {
  content: "5";
  position: absolute;
  right: -0.15rem;
  bottom: -3.5rem;
  color: rgba(255, 196, 0, 0.09);
  font-size: 10rem;
  font-weight: 800;
  line-height: 1;
}

.app-header .header-top,
.app-header h1,
.app-header > p {
  position: relative;
  z-index: 1;
}

.app-header h1 {
  margin: 0.55rem 0 0.05rem;
  color: #ffffff;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}

.app-header > p:not(.app-kicker) {
  color: rgba(255, 255, 255, 0.7);
}

.app-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0.55rem 0 0;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: var(--d5-yellow) !important;
  background: rgba(255, 196, 0, 0.1);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-content {
  padding: 0.85rem 0.85rem 6.1rem;
}

.hero-card {
  position: relative;
  padding: 1.05rem;
  border: 0;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 196, 0, 0.32), transparent 11rem),
    linear-gradient(145deg, #090a0b, #151719);
  box-shadow: 0 18px 34px rgba(8, 9, 9, 0.2);
  overflow: hidden;
}

.hero-card::after {
  content: "\F63E";
  position: absolute;
  right: 1rem;
  top: 1.05rem;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: var(--d5-ink);
  background: var(--d5-yellow);
  font-family: "bootstrap-icons";
  font-size: 1.35rem;
}

.hero-card h2,
.hero-eyebrow,
.hero-summary-grid span {
  color: rgba(255, 255, 255, 0.68);
}

.hero-value,
.hero-value strong {
  color: #ffffff;
  font-size: clamp(2rem, 9vw, 2.75rem);
  letter-spacing: -0.055em;
}

.hero-summary-grid {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-summary-grid strong {
  color: var(--d5-yellow);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.62rem;
  margin-top: 0.8rem;
}

.action-btn {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 72px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(8, 9, 9, 0.07);
  border-radius: 17px;
  color: var(--d5-ink);
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(8, 9, 9, 0.065);
  text-align: left;
}

.action-btn::after {
  content: "\F285";
  color: var(--d5-ink);
  font-family: "bootstrap-icons";
  font-size: 0.85rem;
  justify-self: center;
}

.action-btn > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--d5-ink);
  background: var(--d5-yellow);
  font-size: 1.1rem;
}

.action-btn > span {
  display: grid;
  gap: 0.12rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.action-btn small {
  color: var(--d5-muted);
  font-size: 0.63rem;
  font-weight: 500;
}

.action-btn:hover,
.action-btn:focus-visible {
  border-color: rgba(245, 173, 0, 0.48);
  background: #fffdf4;
  transform: translateY(-2px);
}

.kpi-card,
.notice-card,
.profile-card,
.task-progress-card,
.plan-current-card,
.movement-card,
.admin-user-card {
  border-color: rgba(8, 9, 9, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 9, 9, 0.065);
}

.focus-tag,
.chip {
  color: #815b00;
  background: var(--d5-yellow-soft);
}

.notice-card {
  position: relative;
  overflow: hidden;
}

.notice-card::after {
  content: "5";
  position: absolute;
  right: -0.25rem;
  bottom: -1.9rem;
  color: rgba(255, 196, 0, 0.12);
  font-size: 7.5rem;
  font-weight: 800;
  pointer-events: none;
}

.bottom-nav {
  left: 0.7rem;
  right: 0.7rem;
  bottom: max(0.65rem, env(safe-area-inset-bottom));
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(8, 9, 9, 0.96);
  box-shadow: 0 16px 34px rgba(8, 9, 9, 0.28);
}

.nav-btn,
.nav-btn i {
  color: #84909a;
}

.nav-btn.is-active,
.nav-btn.is-active i {
  color: var(--d5-yellow);
}

.nav-btn.is-active {
  background: rgba(255, 196, 0, 0.1);
}

.whatsapp-float {
  right: 1.1rem;
  bottom: 6.3rem;
  border: 3px solid #ffffff;
  color: var(--d5-ink);
  background: var(--d5-yellow);
  box-shadow: 0 12px 25px rgba(8, 9, 9, 0.2);
}

.user-modal-card {
  border-color: rgba(8, 9, 9, 0.08);
  border-radius: 24px 24px 18px 18px;
  background: #ffffff;
  box-shadow: 0 28px 55px rgba(8, 9, 9, 0.24);
}

.movement-status--approved {
  color: #326b24;
  background: #eaf7e7;
}

.movement-status--pending {
  color: #805900;
  background: var(--d5-yellow-soft);
}

body.is-admin {
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 196, 0, 0.18), transparent 34rem),
    #eef0ed;
}

body.is-admin .admin-header {
  color: #ffffff;
  background: linear-gradient(145deg, #090a0b, #1c1f22);
}

body.is-admin .admin-header h1,
body.is-admin .admin-header p {
  color: #ffffff;
}

body.is-admin .admin-bottom-nav {
  border-color: rgba(8, 9, 9, 0.12);
  background: #0b0c0d;
}

body.is-admin .admin-nav-btn.is-active {
  border-color: rgba(255, 196, 0, 0.36);
  color: var(--d5-yellow);
  background: rgba(255, 196, 0, 0.1);
  box-shadow: none;
}

body.is-admin .admin-nav-btn.is-active i,
body.is-admin .admin-nav-btn i {
  color: inherit;
}

@media (min-width: 768px) {
  .mobile-app {
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto;
  }

  .app-shell,
  .admin-view {
    border: 1px solid rgba(8, 9, 9, 0.1);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(8, 9, 9, 0.13);
    overflow: hidden;
  }

  .app-view.is-active {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .app-header {
    min-height: calc(100dvh - 2rem);
    padding: 1.4rem;
    border-radius: 0;
  }

  .app-header h1 {
    margin-top: 3rem;
    font-size: 2rem;
  }

  .app-content {
    min-height: calc(100dvh - 2rem);
    padding: 1.25rem 1.25rem 6.4rem;
    overflow-y: auto;
  }

  .tab-panel[data-panel="home"].is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 0.85rem;
    align-items: start;
  }

  .hero-card,
  .kpi-grid,
  .notice-card {
    grid-column: 1;
  }

  .action-grid {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
  }

  .bottom-nav {
    left: calc(270px + 1.5rem);
    right: 1.5rem;
  }

  .whatsapp-float {
    right: 2rem;
  }
}

@media (max-width: 420px) {
  .app-content {
    padding-inline: 0.7rem;
  }

  .hero-card {
    border-radius: 19px;
  }

  .action-btn {
    min-height: 68px;
  }
}

.admin-referral-users {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.admin-referral-users span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.3rem 0.45rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	background: #f8f9f7;
	font-size: 0.68rem;
	font-weight: 700;
}

.admin-referral-loading {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.admin-referral-loading i {
	color: var(--accent-dark);
	animation: movementSpin 0.9s linear infinite;
}

.admin-referral-error {
	padding: 0.6rem;
	border: 1px solid rgba(239, 68, 68, 0.24);
	border-radius: 10px;
	color: #991b1b;
	background: #fef2f2;
}

.admin-user-actions .btn-ghost {
	padding-inline: 0.75rem;
}

.admin-empty {
	margin: 0;
	padding: 1rem;
	border: 1px dashed var(--line);
	border-radius: 14px;
	text-align: center;
	color: var(--muted);
	font-size: 0.84rem;
}

.auth-header h1 {
	margin: 0.7rem 0 0.35rem;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.35rem;
}

.auth-header p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.auth-tabs {
	margin-top: 0.2rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem;
}

.auth-tab {
	border: 1px solid var(--line);
	background: #ffffff;
	border-radius: 12px;
	padding: 0.58rem 0.45rem;
	font-family: inherit;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--muted);
}

.auth-tab.is-active {
	background: var(--accent-soft);
	border-color: rgba(255, 196, 0, 0.45);
	color: var(--accent-dark);
}

.auth-form {
	display: none;
	margin-top: 0.95rem;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 0.9rem;
	box-shadow: 0 10px 18px rgba(8, 9, 9, 0.08);
}

.auth-form.is-active {
	display: block;
}

.field-label {
	display: block;
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--muted);
	margin-bottom: 0.3rem;
	margin-top: 0.68rem;
}

.auth-form input {
	width: 100%;
	border: 1px solid var(--line);
	background: #f8f9f7;
	border-radius: 11px;
	padding: 0.62rem 0.7rem;
	font-family: inherit;
	font-size: 0.84rem;
	color: var(--ink);
	outline: none;
}

.auth-form input:focus {
	border-color: rgba(255, 196, 0, 0.64);
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.17);
}

.auth-field-help {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap > input {
  padding-right: 2.8rem;
}

.password-visibility-btn {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-visibility-btn:hover,
.password-visibility-btn:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
  outline: none;
}

.password-visibility-btn i {
  font-size: 1rem;
  line-height: 1;
}

.deposit-bank-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.deposit-bank-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  opacity: 0.75;
}

.deposit-bank-option.is-selected {
  opacity: 1;
  font-weight: 600;
}

.deposit-bank-option span {
  font-size: 0.9rem;
}

.money-input {
  position: relative;
  width: 100%;
}

.money-input-symbol {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-weight: 700;
  pointer-events: none;
}

.money-input input {
  width: 100%;
  padding-left: 34px;
}

.withdraw-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.withdraw-amount-option {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.withdraw-amount-option.is-selected {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.withdraw-amount-option:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.withdraw-net-summary {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.withdraw-net-summary[hidden] {
  display: none;
}

.withdraw-net-summary span {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.withdraw-success {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  text-align: center;
}

.withdraw-success > i {
  color: #22c55e;
  font-size: 2.5rem;
}

.withdraw-success p,
.withdraw-success h3 {
  margin: 0;
}

.withdraw-success-amount {
  color: var(--accent-dark);
  font-size: 1.8rem;
}

.movements-loading,
.movements-empty,
.movements-error {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1.5rem 0.75rem;
  text-align: center;
}

.movements-loading > i,
.movements-empty > i,
.movements-error > i {
  color: var(--accent-dark);
  font-size: 1.8rem;
}

.movements-loading > i {
  animation: movementSpin 0.9s linear infinite;
}

.movements-empty p,
.movements-error p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.movements-error > i,
.movements-error p {
  color: #b91c1c;
}

.movements-intro {
  line-height: 1.5;
}

.movement-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.movement-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
}

.movement-filter strong {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.14);
  font-size: 0.68rem;
}

.movement-filter.is-active {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  background: rgba(255, 196, 0, 0.1);
}

.movement-list {
  display: grid;
  gap: 0.65rem;
}

.movement-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  background: #fff;
}

.movement-card--approved {
  border-left-color: #22c55e;
}

.movement-card--rejected {
  border-left-color: #ef4444;
}

.movement-card-head,
.movement-card-body,
.movement-type,
.movement-money-detail {
  display: flex;
  align-items: center;
}

.movement-card-head,
.movement-card-body,
.movement-money-detail {
  justify-content: space-between;
  gap: 0.6rem;
}

.movement-type {
  min-width: 0;
  gap: 0.55rem;
}

.movement-type > i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-dark);
  background: rgba(255, 196, 0, 0.12);
}

.movement-type div {
  display: grid;
  gap: 0.08rem;
}

.movement-type strong {
  font-size: 0.84rem;
}

.movement-type span,
.movement-card-body > span,
.movement-reviewed {
  color: var(--muted);
  font-size: 0.68rem;
}

.movement-status {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  padding: 0.3rem 0.48rem;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.64rem;
  font-weight: 800;
}

.movement-status--approved {
  color: #166534;
  background: #dcfce7;
}

.movement-status--rejected {
  color: #991b1b;
  background: #fee2e2;
}

.movement-card-body {
  align-items: flex-end;
  flex-wrap: wrap;
}

.movement-card-body > span {
  margin-left: auto;
  text-align: right;
}

.movement-amount {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.movement-money-detail {
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

.movement-money-detail strong {
  color: var(--ink);
}

.movement-rejection {
  padding: 0.65rem;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  color: #991b1b;
  background: rgba(254, 226, 226, 0.68);
}

.movement-rejection strong {
  font-size: 0.7rem;
}

.movement-rejection p {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.movement-close-actions {
  grid-template-columns: 1fr;
}

.user-modal.is-movements-modal .user-modal-head {
  position: sticky;
  z-index: 12;
  top: 0;
  margin: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@keyframes movementSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-hint {
	margin: 0.8rem 0 0;
	font-size: 0.73rem;
	color: var(--muted);
	background: #f4f5f2;
	border: 1px dashed #d8dcd8;
	border-radius: 10px;
	padding: 0.55rem;
}

.btn-block {
	width: 100%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin-top: 0.85rem;
}

.app-header {
	padding: 0.85rem 1rem 0.65rem;
	border-bottom: 1px solid var(--line);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 250, 0.8)),
		repeating-linear-gradient(45deg, rgba(228, 231, 229, 0.28), rgba(228, 231, 229, 0.28) 8px, transparent 8px, transparent 16px);
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.45rem;
}

.header-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.lang-btn {
	border: 1px solid var(--line);
	background: #ffffff;
	border-radius: 999px;
	padding: 0.35rem 0.7rem;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.75rem;
	color: var(--muted);
}

.install-btn {
	border: 1px solid rgba(255, 196, 0, 0.45);
	background: #ffffff;
	border-radius: 999px;
	padding: 0.35rem 0.65rem;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.74rem;
	color: var(--accent-dark);
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.is-hidden {
	display: none !important;
}

.app-header h1 {
	margin: 0 0 0.3rem;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.18rem;
}

.app-header p {
	margin: 0;
	color: var(--muted);
	font-size: 0.84rem;
}

.app-content {
	overflow: auto;
	min-height: 0;
	padding: 0.65rem 0.9rem 0.9rem;
}

.tab-panel {
	display: none;
	animation: panelIn 0.24s ease;
}

.tab-panel.is-active {
	display: block;
}

.hero-card {
	background: linear-gradient(145deg, #191c1f, #24282b);
	color: #f8f9f7;
	border-radius: 18px;
	padding: 0.95rem;
	margin-bottom: 0.75rem;
	box-shadow: 0 12px 20px rgba(8, 9, 9, 0.28);
}

.hero-eyebrow {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.9;
}

.hero-card h2 {
	margin: 0.4rem 0 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1rem;
}

.hero-value {
	margin: 0.45rem 0 0.15rem;
	font-size: 1.18rem;
	font-weight: 600;
}

.hero-value strong {
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.65rem;
	line-height: 1;
}

.hero-note {
	margin: 0;
	font-size: 0.78rem;
	color: #e7e9e6;
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
	margin-bottom: 0.75rem;
}

.action-btn {
	border: 1px solid #d8dcd8;
	background: var(--accent-soft);
	border-radius: 12px;
	padding: 0.45rem 0.35rem;
	font-size: 0.68rem;
	font-weight: 700;
	font-family: inherit;
	color: #24282b;
	display: grid;
	place-items: center;
	gap: 0.15rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-btn:active {
	transform: translateY(1px);
}

.action-btn:hover {
	border-color: #D4AF37;
	box-shadow: 0 8px 16px rgba(8, 9, 9, 0.14);
}

.action-btn i {
	font-size: 0.92rem;
}

.action-btn span {
	min-width: 0;
	max-width: 100%;
	line-height: 1.15;
	overflow-wrap: anywhere;
	text-align: center;
}

#home-movements-btn span {
	font-size: 0.78rem;
}

.deposit-method-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 196, 0, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.deposit-method-tab {
  min-height: 40px;
  padding: 0.55rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.deposit-method-tab.is-active {
  border-color: #e8ac00;
  color: #090a0b;
  background: linear-gradient(135deg, #ffe36e, #ffc400 58%, #eca800);
  box-shadow: 0 7px 18px rgba(255, 196, 0, 0.18);
}

.deposit-method-panel[hidden] {
  display: none;
}

.user-modal.is-deposit-flow {
  padding: 0.75rem;
}

.user-modal.is-deposit-flow .user-modal-card {
  width: min(960px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
}

.user-modal.is-deposit-flow .user-modal-body {
  gap: 1rem;
  padding: 1.25rem;
}

.deposit-method-panel.is-active {
  display: grid;
  gap: 0.9rem;
}

.deposit-payment-link {
  display: inline-flex;
  min-width: 150px;
  justify-content: center;
  text-decoration: none;
}

.deposit-crypto-data {
  display: grid;
  width: min(100%, 620px);
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(255, 196, 0, 0.28);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  text-align: left;
}

.deposit-crypto-data span { color: rgba(255, 255, 255, 0.62); font-size: 0.72rem; }
.deposit-crypto-data strong { margin-bottom: 0.55rem; }
.deposit-crypto-data code { color: #ffe36e; overflow-wrap: anywhere; }

.admin-recharge-method-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  border-radius: 13px;
  background: #f3ead0;
}

.admin-recharge-method-tab {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #69551b;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-recharge-method-tab.is-active {
  border-color: rgba(201, 155, 32, 0.35);
  color: #17130a;
  background: #fff;
  box-shadow: 0 6px 16px rgba(67, 49, 5, 0.1);
}

.admin-recharge-method-panel[hidden] { display: none; }
.admin-method-settings-form { display: grid; gap: 0.75rem; max-width: 760px; margin: 0 auto; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fffdf7; }
.admin-method-settings-form h3, .admin-method-settings-form p { margin: 0; }

.zelle-contact-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.zelle-contact-choice legend { padding: 0 0.35rem; font-weight: 800; }
.zelle-contact-choice label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.zelle-contact-choice input[type="radio"] { width: 1rem; height: 1rem; margin: 0; accent-color: #d7a500; }

@media (max-width: 430px) {
  .deposit-method-tab,
  .admin-recharge-method-tab { font-size: 0.7rem; padding-inline: 0.2rem; }
}

@media (max-width: 520px) {
  .user-modal.is-deposit-flow { padding: 0; }
  .user-modal.is-deposit-flow .user-modal-card { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .user-modal.is-deposit-flow .user-modal-body { padding: 1rem; }
}

.deposit-method-placeholder {
  display: grid;
  min-height: 210px;
  padding: 1.35rem;
  border: 1px dashed rgba(255, 196, 0, 0.42);
  border-radius: 16px;
  place-content: center;
  justify-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 196, 0, 0.06);
  text-align: center;
}

.deposit-method-placeholder i {
  color: #ffc400;
  font-size: 2rem;
}

.deposit-method-placeholder strong {
  color: #fff;
}

.deposit-method-placeholder p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.deposit-shared-request {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.2rem;
  padding: 1rem;
  border: 1px solid rgba(255, 196, 0, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.deposit-shared-title {
  margin: 0 0 0.1rem;
  color: #ffe36e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-view .panel-head .user-section-centered-title {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.app-view #user-tasks-progress-text {
  display: grid;
  gap: 0.3rem;
  line-height: 1.45;
}

.app-view #user-tasks-progress-text > span {
  display: block;
}

.app-view #user-tasks-progress-text > span:first-child {
  color: #34393d;
  font-weight: 700;
}

body.is-admin .admin-card .focus-tag,
body.is-admin .focus-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(23, 25, 27, 0.14);
  border-radius: 999px;
  color: #62696e;
  background: transparent;
  box-shadow: none;
}

body.is-admin .whatsapp-enabled-control {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  margin-top: 1rem;
  padding: 0;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  color: #303438;
  background: transparent;
  box-shadow: none;
}

body.is-admin .whatsapp-enabled-control #admin-whatsapp-enabled {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: block;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  accent-color: #d9a400;
  cursor: pointer;
}

body.is-admin .whatsapp-enabled-control #admin-whatsapp-enabled:focus-visible {
  outline: 2px solid rgba(201, 155, 32, 0.48);
  outline-offset: 3px;
  box-shadow: none;
}

body.is-admin .admin-form-actions.bank-account-management-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

body.is-admin .admin-form-actions.bank-account-management-actions > button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding-inline: 0.45rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.is-admin .bank-accounts-admin-section {
  margin-top: 1.55rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(23, 25, 27, 0.1);
}

body.is-admin .bank-accounts-admin-section > .panel-head {
  margin-bottom: 0.75rem;
}

body.is-admin .bank-accounts-admin-section > .panel-head h3 {
  margin: 0;
}

@media (max-width: 420px) {
  body.is-admin .admin-form-actions.bank-account-management-actions { gap: 0.28rem; }
  body.is-admin .admin-form-actions.bank-account-management-actions > button {
    padding-inline: 0.18rem;
    font-size: 0.66rem;
  }

  body.is-admin .bank-accounts-admin-section {
    margin-top: 1.25rem;
    padding-top: 0.95rem;
  }
}

.kpi-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
	margin-bottom: 0.75rem;
}

.kpi-card {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 0.75rem;
	box-shadow: 0 8px 14px rgba(8, 9, 9, 0.08);
}

.kpi-card strong {
	display: block;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.3rem;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.kpi-card span {
	font-size: 0.76rem;
	color: var(--muted);
}

.notice-card,
.profile-card {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 0.95rem;
	box-shadow: 0 10px 16px rgba(8, 9, 9, 0.09);
}

.focus-tag {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--accent-dark);
}

.notice-card h3,
.panel-head h2,
.profile-card h2 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.02rem;
}

.notice-card p,
.profile-card p {
	margin: 0.45rem 0 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.btn-main,
.btn-ghost {
	border: 0;
	border-radius: 999px;
	padding: 0.56rem 0.85rem;
	font-weight: 700;
	font-family: inherit;
}

.btn-main {
	margin-top: 0.85rem;
	color: #ffffff;
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.btn-ghost {
	border: 1px solid rgba(255, 196, 0, 0.4);
	background: #ffffff;
	color: var(--accent-dark);
}

.panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.news-list,
.agenda-list {
	display: grid;
	gap: 0.55rem;
}

.news-item {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 0.72rem;
	box-shadow: 0 7px 12px rgba(8, 9, 9, 0.07);
}

.news-time {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--accent-dark);
}

.news-item h3 {
	margin: 0;
	font-size: 0.86rem;
}

.news-item p {
	margin: 0.3rem 0;
	font-size: 0.77rem;
	color: var(--muted);
}

.segmented {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	background: #f4f5f2;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0.2rem;
	margin-bottom: 0.7rem;
}

.segment-btn {
	border: 0;
	background: transparent;
	padding: 0.45rem;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.76rem;
	border-radius: 9px;
	color: var(--muted);
}

.segment-btn.is-active {
	background: #ffffff;
	color: var(--accent-dark);
}

.sub-panel {
	display: none;
}

.sub-panel.is-active {
	display: block;
}

.task-card {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 0.9rem;
	box-shadow: 0 10px 18px rgba(8, 9, 9, 0.08);
}

.task-card h2 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1rem;
}

.task-card p {
	margin: 0.4rem 0 0;
	font-size: 0.83rem;
	color: var(--muted);
}

.task-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem;
	margin-top: 0.7rem;
}

.task-meta div {
	background: #f4f5f2;
	border: 1px solid var(--line);
	border-radius: 11px;
	padding: 0.55rem;
}

.task-meta span {
	display: block;
	font-size: 0.67rem;
	color: var(--muted);
}

.task-meta strong {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.8rem;
}

.agenda-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.agenda-list li {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0.65rem 0.7rem;
	font-size: 0.8rem;
	line-height: 1.35;
}

.agenda-list strong {
	display: inline-block;
	min-width: 3rem;
	font-family: "Space Grotesk", sans-serif;
	color: var(--accent-dark);
}

.team-summary {
	background: #F7F8FC;
	border: 1px solid #dfe2df;
	border-radius: 14px;
	padding: 0.75rem;
	margin-bottom: 0.65rem;
}

.team-summary p {
	margin: 0;
	font-size: 0.75rem;
	color: var(--muted);
}

.team-summary h3 {
	margin: 0.25rem 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1rem;
}

.team-kpi,
.level-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}

.team-kpi div,
.level-grid div {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0.55rem 0.45rem;
	text-align: center;
}

.team-kpi span,
.level-grid span {
	display: block;
	font-size: 0.66rem;
	color: var(--muted);
}

.team-kpi strong,
.level-grid strong {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.78rem;
}

.profile-meta {
	margin-top: 0.8rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
}

.profile-meta div {
	background: #f4f5f2;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0.55rem 0.5rem;
	text-align: center;
}

.profile-meta span {
	display: block;
	font-size: 0.68rem;
	color: var(--muted);
}

.profile-meta strong {
	display: block;
	font-size: 0.76rem;
	margin-top: 0.2rem;
}

.setting-list {
	list-style: none;
	margin: 0.7rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.setting-list li {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 11px;
	padding: 0.62rem 0.7rem;
	font-size: 0.8rem;
}

.bottom-nav {
	padding: 0.5rem;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.35rem;
	border-top: 1px solid var(--line);
	background: #FFFFFF;
}

.nav-btn {
	min-width: 0;
	min-height: 54px;
	border: 1px solid transparent;
	background: transparent;
	padding: 0.55rem 0.3rem;
	border-radius: 12px;
	font-size: 0.7rem;
	font-weight: 700;
	font-family: inherit;
	color: #66717b;
	display: grid;
	place-items: center;
	gap: 0.1rem;
}

.nav-btn i {
	font-size: 0.9rem;
	line-height: 1;
}

.nav-btn.is-active {
	border-color: rgba(255, 196, 0, 0.45);
	background: rgba(255, 196, 0, 0.16);
	color: var(--accent-dark);
}

.app-toast {
	position: fixed;
	left: 50%;
	bottom: 1.15rem;
	transform: translateX(-50%) translateY(20px);
	background: #101214;
	color: #f4f5f2;
	padding: 0.65rem 0.85rem;
	border-radius: 11px;
	font-size: 0.78rem;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
	box-shadow: 0 14px 24px rgba(7, 9, 10, 0.22);
	z-index: 1200;
	max-width: min(380px, calc(100vw - 2rem));
	text-align: center;
}

.app-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.user-modal {
	position: fixed;
	inset: 0;
	background: rgba(7, 9, 10, 0.45);
	display: none;
	align-items: flex-end;
	justify-content: center;
	padding: 0.8rem;
	z-index: 1300;
}

.user-modal.is-open {
	display: flex;
}

.user-modal-card {
	width: min(420px, 100%);
	max-height: min(82dvh, 720px);
	overflow: auto;
	position: relative;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 0.85rem;
	box-shadow: 0 22px 36px rgba(7, 9, 10, 0.26);
	animation: panelIn 0.2s ease;
}

.user-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.user-modal-head h3 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1rem;
}

.user-modal-close {
	margin: 0;
	padding: 0.4rem 0.7rem;
	font-size: 0.72rem;
}

.user-modal-body {
	display: grid;
	gap: 0.6rem;
}

.user-modal-body input {
	width: 100%;
	border: 1px solid var(--line);
	background: #ffffff;
	border-radius: 11px;
	padding: 0.62rem 0.7rem;
	font-family: inherit;
	font-size: 0.84rem;
	color: var(--ink);
	outline: none;
}

.user-modal-body input:focus {
	border-color: rgba(255, 196, 0, 0.64);
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.17);
}

.user-modal-note {
	margin: 0;
	font-size: 0.8rem;
	color: var(--muted);
}

.bank-data-grid {
	display: grid;
	gap: 0.45rem;
	padding: 0.65rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #f8f9f7;
}

.bank-data-grid p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--ink);
}

.bank-data-grid strong {
	font-weight: 700;
	color: #191c1f;
}

.bank-type-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.38rem;
	margin-top: 0.25rem;
}

.bank-type-option {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.28rem;
	font-size: 0.78rem;
	line-height: 1;
	padding: 0.4rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: #ffffff;
	cursor: pointer;
	width: auto;
	min-width: fit-content;
	flex: 0 0 auto;
}

.bank-type-option input[type="radio"] {
	margin: 0;
	accent-color: var(--accent-dark);
	transform: scale(0.92);
}

.bank-type-option span {
	color: var(--ink);
	font-weight: 600;
}

.bank-type-option:has(input[type="radio"]:checked) {
	border-color: rgba(255, 196, 0, 0.68);
	background: rgba(255, 196, 0, 0.14);
	box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.14);
}

.bank-type-option:has(input[type="radio"]:checked) span {
	color: var(--accent-dark);
}

.user-modal-actions {
	display: grid;
	gap: 0.45rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-modal-actions .btn-main,
.user-modal-actions .btn-ghost {
	margin: 0;
	width: 100%;
}

.user-modal-feedback {
	margin: 0;
	min-height: 1rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
}

.user-modal-feedback.is-error {
	color: #b91c1c;
}

.user-modal-feedback.is-ok {
	color: var(--ok);
}

.desktop-block {
	display: none;
}

@keyframes panelIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (min-width: 768px) {
	body {
		overflow: auto;
	}

	.mobile-app {
		display: grid;
		place-items: center;
		padding: 1.2rem;
	}

	.desktop-block {
		display: none;
	}

	.desktop-card {
		width: min(520px, 100%);
		text-align: center;
		background: #ffffff;
		border: 1px solid #e1e4e1;
		border-radius: 24px;
		padding: 2rem;
		box-shadow: 0 20px 40px rgba(17, 19, 21, 0.12);
	}

	.desktop-card h2 {
		margin: 0 0 0.65rem;
	}

	.desktop-card p {
		margin: 0;
		color: var(--muted);
	}

	.admin-view {
		padding: 0;
		width: min(520px, 100%);
		height: calc(100dvh - 2.4rem);
		min-height: calc(100dvh - 2.4rem);
		margin: 0 auto;
	}

	body.is-admin .mobile-app {
		display: none;
	}

	body.is-admin .desktop-block {
		display: none;
	}

	.admin-content {
		padding: 1.25rem;
		padding-bottom: 1.25rem;
	}

	.admin-bottom-nav {
		max-width: min(1100px, 100%);
		margin: 0 auto;
	}

	.admin-toolbar {
		margin-left: auto;
	}
}

.admin-deposit-tab-panel {
  display: none;
}

.admin-deposit-tab-panel.is-active {
  display: block;
}

.admin-deposit-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-deposit-tab {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.admin-deposit-tab.is-active {
  font-weight: 700;
}


.invitation-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.invitation-status--disponible {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.invitation-status--agotado {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.invitation-status--anulado {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.12);
  border: 1px solid rgba(107, 114, 128, 0.25);
}

.admin-header .header-top {
  position: relative;
}

.admin-invitations-header-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;

  font-size: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.admin-invitations-header-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(255, 255, 255, 0.14);
}

.user-task-rating {
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0;
}

.task-star {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #b8b8b8;
  padding: 0;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.task-star:hover {
  transform: scale(1.08);
}

.task-star.is-active {
  color: #d4af37;
}

.user-task-card {
  overflow: hidden;
}

.user-task-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

.user-task-submit {
  margin-top: 1rem;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* Botón bloqueado */
.user-task-submit:disabled {
  background: #b8b8b8;
  color: #eeeeee;
  border-color: #b8b8b8;
  box-shadow: none;
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Botón habilitado */
.user-task-submit:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.task-history-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.task-history-access h2 {
  margin: 0.25rem 0 0.4rem;
}

.task-history-view {
  margin-top: 1.5rem;
}

.task-history-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.task-history-filter label {
  font-weight: 600;
}

.task-history-filter input {
  width: 100%;
  max-width: 280px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: inherit;
}

.task-history-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.task-history-summary > div {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.task-history-summary span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.task-history-summary strong {
  font-size: 1.05rem;
}

.user-task-history {
  display: grid;
  gap: 0.8rem;
}

.user-task-history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.user-task-history-image {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  border-radius: 12px;
}

.user-task-history-item > div {
  min-width: 0;
}

.user-task-history-item p {
  margin: 0.25rem 0;
}

@media (max-width: 640px) {
  .task-history-access {
    align-items: stretch;
    flex-direction: column;
  }

  .task-history-access .btn-main {
    width: 100%;
  }

  .task-history-summary {
    grid-template-columns: 1fr;
  }

  .task-history-filter input {
    max-width: none;
  }

  .user-task-history-image {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
}

/* =====================================================
   DALE5 — TEMA PREMIUM DE LA APP DE USUARIO
   Inspirado en la guía visual azul noche y oro.
===================================================== */

:root {
  --gb-night: #0b0c0d;
  --gb-night-deep: #020303;
  --gb-panel: #101214;
  --gb-panel-soft: #191c1f;
  --gb-panel-hover: #22262a;
  --gb-gold: #d4af37;
  --gb-gold-light: #f5d76e;
  --gb-gold-dark: #a97514;
  --gb-text: #f8f9f7;
  --gb-muted: #a9afb3;
  --gb-line: rgba(212, 175, 55, 0.34);
  --gb-line-soft: rgba(255, 255, 255, 0.2);
  --gb-success: #22c55e;
}

body:has(.app-view.is-active) {
  color: var(--gb-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 196, 0, 0.55), transparent 34%),
    radial-gradient(circle at 90% 88%, rgba(212, 175, 55, 0.14), transparent 28%),
    #020303;
}

body:has(.auth-view.is-active) {
  color: var(--gb-text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 196, 0, 0.68), transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(212, 175, 55, 0.16), transparent 30%),
    linear-gradient(155deg, #020303, #0b0c0d 52%, #101214);
}

.app-shell:has(.auth-view.is-active) {
  position: relative;
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gb-text);
  background: var(--gb-night-deep);
  box-shadow:
    0 0 0 1px rgba(245, 215, 110, 0.1),
    0 30px 70px rgba(0, 0, 0, 0.58),
    0 0 52px rgba(255, 196, 0, 0.24);
}

.app-shell:has(.auth-view.is-active)::before,
.app-shell:has(.auth-view.is-active)::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.app-shell:has(.auth-view.is-active)::before {
  top: -95px;
  right: -72px;
  width: 230px;
  height: 190px;
}

.app-shell:has(.auth-view.is-active)::after {
  bottom: -120px;
  left: -88px;
  width: 250px;
  height: 210px;
}

.auth-view {
  position: relative;
  z-index: 1;
  color: var(--gb-text);
  background:
    radial-gradient(circle at 80% 5%, rgba(212, 175, 55, 0.13), transparent 28%),
    linear-gradient(160deg, rgba(11, 31, 77, 0.98), rgba(2, 3, 3, 0.99));
}

.auth-header {
  margin-bottom: 1.3rem;
}

.auth-header .chip {
  display: inline-flex;
  min-width: 148px;
  flex-direction: row;
  gap: 0.42rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(245, 215, 110, 0.55);
  color: var(--gb-gold-light);
  background: rgba(2, 3, 3, 0.58);
  box-shadow:
    inset 0 0 18px rgba(212, 175, 55, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.auth-header .chip i {
  margin: 0;
  color: var(--gb-gold);
  font-size: 1rem;
}

.auth-header h1 {
  margin-top: 1.15rem;
  color: var(--gb-text);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.35rem);
  letter-spacing: -0.04em;
}

.auth-header p {
  color: var(--gb-muted);
}

.auth-tabs {
  padding: 0.22rem;
  border: 1px solid var(--gb-line-soft);
  border-radius: 14px;
  background: rgba(2, 3, 3, 0.62);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.2);
}

.auth-tab {
  border: 1px solid transparent;
  color: var(--gb-muted);
  background: transparent;
}

.auth-tab.is-active {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gb-gold-light);
  background: linear-gradient(145deg, rgba(28, 31, 34, 0.95), rgba(11, 31, 77, 0.96));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.auth-form {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background:
    linear-gradient(145deg, rgba(28, 31, 34, 0.86), rgba(11, 12, 13, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 32px rgba(0, 0, 0, 0.28);
}

.auth-form .field-label {
  color: #f1f2ef;
}

.auth-form input {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: rgba(2, 3, 3, 0.74);
  box-shadow: inset 0 1px 7px rgba(0, 0, 0, 0.16);
}

.auth-form input::placeholder {
  color: #747a7e;
}

.auth-form input:focus {
  border-color: var(--gb-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.auth-form .auth-field-help {
  color: #a9afb3;
}

.auth-form .password-visibility-btn,
.password-dialog .password-visibility-btn,
.admin-view .password-visibility-btn {
  color: #a9afb3;
}

.auth-form .password-visibility-btn:hover,
.auth-form .password-visibility-btn:focus-visible,
.password-dialog .password-visibility-btn:hover,
.password-dialog .password-visibility-btn:focus-visible,
.admin-view .password-visibility-btn:hover,
.admin-view .password-visibility-btn:focus-visible {
  color: var(--gb-gold-light);
  background: rgba(212, 175, 55, 0.12);
}

.auth-form .btn-main {
  border: 1px solid rgba(245, 215, 110, 0.58);
  color: #06112d;
  background: linear-gradient(135deg, #f5d76e, #d4af37 48%, #a97514);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.22);
}

.auth-form .btn-main:hover,
.auth-form .btn-main:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.app-shell:has(.app-view.is-active) {
  border-color: rgba(212, 175, 55, 0.48);
  color: var(--gb-text);
  background: var(--gb-night-deep);
  box-shadow:
    0 0 0 1px rgba(245, 215, 110, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(255, 196, 0, 0.22);
}

.app-view .app-header {
  position: relative;
  overflow: hidden;
  padding: 0.95rem 1rem 0.8rem;
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background:
    radial-gradient(circle at 88% 0%, rgba(212, 175, 55, 0.15), transparent 30%),
    linear-gradient(145deg, #0a0c0d, #101214 62%, #1b1e20);
}

.app-view .app-header::after {
  position: absolute;
  top: -52px;
  right: -40px;
  width: 150px;
  height: 100px;
  border-bottom: 1px solid rgba(245, 215, 110, 0.6);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotate(-12deg);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.12);
}

.app-view .app-header .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(245, 215, 110, 0.5);
  color: var(--gb-gold-light);
  background: rgba(2, 3, 3, 0.58);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.08);
}

.app-view .app-header .chip i {
  color: var(--gb-gold);
}

.app-view .lang-btn,
.app-view .install-btn {
  border-color: var(--gb-line);
  color: var(--gb-gold-light);
  background: rgba(11, 12, 13, 0.72);
}

.app-view .app-header h1 {
  color: var(--gb-text);
  letter-spacing: -0.025em;
}

.app-view .app-header p {
  color: var(--gb-muted);
}

.app-view .app-content {
  padding: 0.78rem 0.82rem 1rem;
  background:
    linear-gradient(rgba(11, 12, 13, 0.96), rgba(2, 3, 3, 0.98)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.012) 12px 13px);
  scrollbar-color: rgba(212, 175, 55, 0.48) transparent;
}

.app-view .hero-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.72);
  color: var(--gb-text);
  background:
    radial-gradient(circle at 92% 20%, rgba(212, 175, 55, 0.2), transparent 25%),
    linear-gradient(145deg, #101214, #1c1f22 58%, #090a0b);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.025),
    0 14px 28px rgba(0, 0, 0, 0.3);
}

.app-view .hero-card::after {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(245, 215, 110, 0.18);
  content: "✦";
  font-size: 4.8rem;
  line-height: 1;
  pointer-events: none;
}

.app-view .hero-eyebrow,
.app-view .focus-tag,
.app-view .news-time {
  color: var(--gb-gold-light);
}

.app-view .hero-card h2 {
  color: var(--gb-muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
}

.app-view .hero-value,
.app-view .hero-value strong {
  color: var(--gb-text);
}

.app-view .hero-value strong {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.app-view .hero-summary-grid {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gb-line-soft);
}

.app-view .hero-summary-grid > div + div {
  border-left-color: var(--gb-line-soft);
}

.app-view .hero-summary-grid span {
  color: var(--gb-muted);
}

.app-view .hero-summary-grid strong {
  color: var(--gb-gold-light);
}

.app-view .action-grid {
  gap: 0.5rem;
}

.app-view .action-btn {
  min-height: 70px;
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: linear-gradient(145deg, rgba(28, 31, 34, 0.94), rgba(11, 12, 13, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-view .action-btn i {
  color: var(--gb-gold-light);
  font-size: 1.25rem;
  filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.28));
}

.app-view .admin-user-actions .btn-danger {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.app-view .admin-user-actions .btn-danger:hover,
.app-view .admin-user-actions .btn-danger:focus-visible {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.35);
}

.app-view .action-btn:hover,
.app-view .action-btn:focus-visible {
  border-color: rgba(212, 175, 55, 0.7);
  background: linear-gradient(145deg, var(--gb-panel-hover), var(--gb-panel));
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28);
}

.app-view .kpi-card,
.app-view .notice-card,
.app-view .profile-card,
.app-view .task-card,
.app-view .news-item,
.app-view .task-progress-card,
.app-view .plan-current-card,
.app-view .user-task-card,
.app-view .task-history-access,
.app-view .task-history-summary > div,
.app-view .user-task-history-item,
.app-view .setting-list li {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: linear-gradient(145deg, rgba(28, 31, 34, 0.86), rgba(11, 12, 13, 0.94));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.app-view .kpi-card strong,
.app-view .notice-card h3,
.app-view .profile-card h2,
.app-view .panel-head h2,
.app-view .task-card h2,
.app-view .plan-current-card h2 {
  color: var(--gb-text);
}

.app-view .kpi-card strong,
.app-view .plan-current-meta strong,
.app-view .profile-meta strong {
  color: var(--gb-gold-light);
}

.app-view .kpi-card span,
.app-view .notice-card p,
.app-view .profile-card p,
.app-view .task-card p,
.app-view .news-item p,
.app-view .user-modal-note,
.app-view .task-progress-grid span,
.app-view .plan-current-meta span,
.app-view .profile-meta span {
  color: var(--gb-muted);
}

.app-view .plan-current-meta > div,
.app-view .profile-meta > div,
.app-view .task-meta > div,
.app-view .team-kpi > div,
.app-view .level-grid > div {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: rgba(2, 3, 3, 0.46);
}

.app-view .btn-main {
  border: 1px solid rgba(245, 215, 110, 0.52);
  color: #06112d;
  background: linear-gradient(135deg, #f5d76e, #d4af37 48%, #a97514);
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.22);
}

.app-view .btn-main:hover,
.app-view .btn-main:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.app-view .btn-secondary,
.app-view .btn-ghost {
  border-color: var(--gb-line);
  color: var(--gb-gold-light);
  background: rgba(11, 12, 13, 0.85);
}

.app-view .task-progress-bar {
  background: rgba(2, 3, 3, 0.85);
  box-shadow: inset 0 0 0 1px var(--gb-line-soft);
}

.app-view .task-progress-bar-fill {
  background: linear-gradient(90deg, var(--gb-gold-dark), var(--gb-gold-light));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.app-view .task-progress-card,
.app-view .plan-current-card,
.app-view .user-plan-card,
.app-view .user-task-empty {
  margin-bottom: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--gb-line-soft);
  border-radius: 16px;
  color: var(--gb-text);
  background: linear-gradient(145deg, rgba(28, 31, 34, 0.88), rgba(11, 12, 13, 0.96));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.app-view .task-progress-grid,
.app-view .plan-current-meta,
.app-view .user-plan-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.app-view .user-plan-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-view .task-progress-grid > div,
.app-view .plan-current-meta > div,
.app-view .user-plan-details > div {
  padding: 0.58rem 0.42rem;
  border: 1px solid var(--gb-line-soft);
  border-radius: 11px;
  text-align: center;
  background: rgba(2, 3, 3, 0.48);
}

.app-view .task-progress-grid span,
.app-view .plan-current-meta span,
.app-view .user-plan-details span {
  display: block;
  color: var(--gb-muted);
  font-size: 0.66rem;
}

.app-view .task-progress-grid strong,
.app-view .plan-current-meta strong,
.app-view .user-plan-details strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--gb-gold-light);
  font-size: 0.78rem;
}

.app-view .user-plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-view .user-plan-card h3,
.app-view .user-task-body h3,
.app-view .user-task-empty h3 {
  margin: 0;
  color: var(--gb-text);
}

.app-view .user-plan-price {
  color: var(--gb-gold-light);
  font-size: 1.15rem;
}

.app-view .user-plan-card.is-current {
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: inset 0 0 24px rgba(212, 175, 55, 0.07), 0 12px 24px rgba(0, 0, 0, 0.24);
}

.app-view .user-tasks-list,
.app-view .plans-grid {
  display: grid;
  gap: 0.7rem;
}

.app-view .user-task-body {
  padding-top: 0.75rem;
}

.app-view .user-task-body > p {
  color: var(--gb-muted);
}

.app-view .task-star {
  color: #686d70;
}

.app-view .task-star.is-active,
.app-view .task-star:hover {
  color: var(--gb-gold-light);
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3));
}

.app-view input,
.app-view select,
.app-view textarea {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: rgba(2, 3, 3, 0.75);
}

.app-view input:focus,
.app-view select:focus,
.app-view textarea:focus {
  border-color: var(--gb-gold);
  outline: 2px solid rgba(212, 175, 55, 0.16);
}

.app-view .bottom-nav {
  border-color: var(--gb-line-soft);
  background: linear-gradient(180deg, #090a0b, #020303);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.24);
}

.app-view .nav-btn {
  color: #a9afb3;
}

.app-view .nav-btn i {
  font-size: 1.05rem;
  line-height: 1;
}

.app-view .nav-btn span {
  overflow: hidden;
  width: 100%;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-view .nav-btn.is-active {
  border-color: rgba(212, 175, 55, 0.42);
  color: var(--gb-gold-light);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: inset 0 0 16px rgba(212, 175, 55, 0.06);
}

.app-view ::selection {
  color: #06112d;
  background: var(--gb-gold-light);
}

@media (max-width: 380px) {
  .app-view .action-btn {
    min-height: 64px;
    font-size: 0.62rem;
  }

  .app-view .hero-value strong {
    font-size: 1.75rem;
  }
}

/* =====================================================
   MODALES Y FLUJOS DEL USUARIO — TEMA PREMIUM
===================================================== */

body:not(.is-admin) .user-modal {
  padding: 0.85rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 196, 0, 0.32), transparent 34%),
    rgba(1, 6, 19, 0.82);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

body:not(.is-admin) .user-modal-card {
  overflow-x: hidden;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 22px;
  color: var(--gb-text);
  background:
    radial-gradient(circle at 92% 0%, rgba(212, 175, 55, 0.14), transparent 28%),
    linear-gradient(155deg, #101214, #0b0c0d 55%, #020303);
  box-shadow:
    0 0 0 1px rgba(245, 215, 110, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
}

body:not(.is-admin) .user-modal-head {
  position: sticky;
  z-index: 4;
  top: 0;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--gb-line-soft);
  background: rgba(11, 12, 13, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body:not(.is-admin) .user-modal-head::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  content: "";
  background: var(--gb-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
}

body:not(.is-admin) .user-modal-head h3 {
  flex: 1;
  color: var(--gb-text);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

body:not(.is-admin) .user-modal-head .user-modal-close {
  min-width: 68px;
  border: 1px solid var(--gb-line);
  color: var(--gb-gold-light);
  background: rgba(2, 3, 3, 0.76);
}

body:not(.is-admin) .user-modal-body {
  gap: 0.72rem;
  padding: 0.95rem;
}

body:not(.is-admin) .user-modal-body .field-label,
body:not(.is-admin) .user-modal-body > label,
body:not(.is-admin) .task-history-filter label {
  margin: 0.1rem 0 -0.35rem;
  color: #f1f2ef;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
}

body:not(.is-admin) .user-modal-body input,
body:not(.is-admin) .user-modal-body select,
body:not(.is-admin) .user-modal-body textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--gb-line-soft);
  border-radius: 11px;
  color: var(--gb-text);
  background: rgba(2, 3, 3, 0.76);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18);
}

body:not(.is-admin) .user-modal-body input::placeholder,
body:not(.is-admin) .user-modal-body textarea::placeholder {
  color: #747a7e;
}

body:not(.is-admin) .user-modal-body input:focus,
body:not(.is-admin) .user-modal-body select:focus,
body:not(.is-admin) .user-modal-body textarea:focus {
  border-color: var(--gb-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

body:not(.is-admin) .user-modal-body input[type="file"] {
  padding: 0.42rem;
  color: var(--gb-muted);
}

body:not(.is-admin) .user-modal-body input[type="file"]::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--gb-line);
  border-radius: 8px;
  color: var(--gb-gold-light);
  background: var(--gb-panel);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.personal-invitation-card {
  padding: 0.9rem;
  border: 1px solid var(--gb-line);
  border-radius: 15px;
  background: rgba(2, 3, 3, 0.58);
}

.personal-invitation-code {
  display: block;
  margin: 0.3rem 0 0.45rem;
  color: var(--gb-gold-light);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.personal-invitation-actions {
  margin-top: 0.7rem;
}

.personal-invitation-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.personal-invitation-summary > div {
  padding: 0.75rem;
  border: 1px solid var(--gb-line-soft);
  border-radius: 12px;
  text-align: center;
  background: rgba(2, 3, 3, 0.48);
}

.personal-invitation-summary span,
.personal-invitation-user span {
  display: block;
  color: var(--gb-muted);
  font-size: 0.68rem;
}

.personal-invitation-summary strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--gb-gold-light);
  font-size: 1.1rem;
}

.personal-invitation-list {
  display: grid;
  gap: 0.55rem;
}

.personal-invitation-list h4 {
  margin: 0.25rem 0 0;
  color: var(--gb-text);
}

.personal-invitation-user {
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--gb-line-soft);
  border-radius: 11px;
  background: rgba(2, 3, 3, 0.48);
}

.personal-invitation-user strong {
  color: var(--gb-text);
  font-size: 0.82rem;
}

body:not(.is-admin) .money-input-symbol {
  left: 0.9rem;
  color: var(--gb-gold-light);
  font-size: 0.9rem;
  line-height: 1;
}

body:not(.is-admin) .user-modal-body .money-input input {
  padding-left: 2rem;
}

body:not(.is-admin) .withdraw-amount-option,
body:not(.is-admin) .withdraw-net-summary {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: linear-gradient(145deg, rgba(28, 31, 34, 0.82), rgba(2, 3, 3, 0.78));
}

body:not(.is-admin) .withdraw-amount-option.is-selected {
  border-color: rgba(212, 175, 55, 0.82);
  color: var(--gb-gold-light);
  background: linear-gradient(145deg, rgba(34, 38, 42, 0.96), rgba(11, 31, 77, 0.96));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24), inset 0 0 18px rgba(212, 175, 55, 0.08);
}

body:not(.is-admin) .withdraw-net-summary strong,
body:not(.is-admin) .withdraw-success-amount {
  color: var(--gb-gold-light);
}

body:not(.is-admin) .movement-filter {
  border-color: var(--gb-line-soft);
  color: var(--gb-muted);
  background: rgba(2, 3, 3, 0.76);
}

body:not(.is-admin) .movement-filter strong {
  color: var(--gb-gold-light);
  background: rgba(212, 175, 55, 0.12);
}

body:not(.is-admin) .movement-filter.is-active {
  border-color: var(--gb-gold);
  color: var(--gb-gold-light);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: inset 0 0 16px rgba(212, 175, 55, 0.06);
}

body:not(.is-admin) .movement-card {
  border-top-color: var(--gb-line-soft);
  border-right-color: var(--gb-line-soft);
  border-bottom-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: linear-gradient(
    145deg,
    rgba(28, 31, 34, 0.76),
    rgba(2, 3, 3, 0.82)
  );
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
}

body:not(.is-admin) .movement-type > i {
  color: var(--gb-gold-light);
  background: rgba(212, 175, 55, 0.12);
}

body:not(.is-admin) .movement-type span,
body:not(.is-admin) .movement-card-body > span,
body:not(.is-admin) .movement-reviewed,
body:not(.is-admin) .movement-money-detail {
  color: var(--gb-muted);
}

body:not(.is-admin) .movement-amount,
body:not(.is-admin) .movement-money-detail strong {
  color: var(--gb-gold-light);
}

body:not(.is-admin) .movement-money-detail {
  border-top-color: var(--gb-line-soft);
}

body:not(.is-admin) .movement-rejection {
  border-color: rgba(248, 113, 113, 0.3);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.2);
}

body:not(.is-admin) .movements-loading > i,
body:not(.is-admin) .movements-empty > i {
  color: var(--gb-gold-light);
}

body:not(.is-admin) .movements-empty p {
  color: var(--gb-muted);
}

body:not(.is-admin) #deposit-bank-accounts > .field-label {
  display: block;
  margin: 0 0 0.58rem;
  color: #f1f2ef;
}

body:not(.is-admin) #deposit-bank-accounts .deposit-bank-list {
  gap: 0.68rem;
  margin: 0 0 0.95rem;
}

.app-view #close-task-history-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.82rem;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 999px;
  color: var(--gb-gold-light);
  background: linear-gradient(145deg, rgba(28, 31, 34, 0.96), rgba(11, 12, 13, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 7px 16px rgba(0, 0, 0, 0.22);
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.app-view #close-task-history-btn::before {
  margin-right: 0.35rem;
  content: "←";
  font-size: 0.95rem;
  line-height: 1;
}

.app-view #close-task-history-btn:hover,
.app-view #close-task-history-btn:focus-visible {
  border-color: var(--gb-gold-light);
  background: linear-gradient(145deg, #22262a, #101214);
  transform: translateY(-1px);
}

.app-view #task-history-date {
  padding-right: 2.65rem;
  color-scheme: dark !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px 18px;
}

.app-view #task-history-date::-webkit-calendar-picker-indicator {
  width: 2rem;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

body:not(.is-admin) .user-modal-note {
  color: var(--gb-muted);
  line-height: 1.55;
}

body:not(.is-admin) .user-modal-note strong {
  color: var(--gb-gold-light);
}

body:not(.is-admin) .bank-data-grid,
body:not(.is-admin) .deposit-bank-option {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: linear-gradient(145deg, rgba(28, 31, 34, 0.82), rgba(2, 3, 3, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body:not(.is-admin) .bank-data-grid p,
body:not(.is-admin) .deposit-bank-option strong {
  color: var(--gb-text);
}

body:not(.is-admin) .bank-data-grid strong,
body:not(.is-admin) .deposit-bank-option span {
  color: var(--gb-muted);
}

body:not(.is-admin) .deposit-bank-option {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body:not(.is-admin) .deposit-bank-option:hover,
body:not(.is-admin) .deposit-bank-option:focus-visible,
body:not(.is-admin) .deposit-bank-option.is-selected {
  border-color: rgba(212, 175, 55, 0.72);
  background: linear-gradient(145deg, rgba(34, 38, 42, 0.96), rgba(11, 31, 77, 0.96));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24), inset 0 0 18px rgba(212, 175, 55, 0.06);
  transform: translateY(-1px);
}

body:not(.is-admin) .deposit-bank-option.is-selected::before {
  align-self: flex-end;
  color: var(--gb-gold-light);
  content: "✓ Seleccionada";
  font-size: 0.66rem;
  font-weight: 700;
}

body:not(.is-admin) .bank-type-option {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: rgba(2, 3, 3, 0.65);
}

body:not(.is-admin) .bank-type-option span {
  color: var(--gb-muted);
}

body:not(.is-admin) .bank-type-option input[type="radio"] {
  width: auto;
  min-height: auto;
  accent-color: var(--gb-gold);
  box-shadow: none;
}

body:not(.is-admin) .bank-type-option:has(input[type="radio"]:checked) {
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

body:not(.is-admin) .bank-type-option:has(input[type="radio"]:checked) span {
  color: var(--gb-gold-light);
}

body:not(.is-admin) .user-modal-actions {
  gap: 0.55rem;
  margin-top: 0.18rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gb-line-soft);
}

body:not(.is-admin) .user-modal-actions .btn-main {
  border: 1px solid rgba(245, 215, 110, 0.55);
  color: #06112d;
  background: linear-gradient(135deg, #f5d76e, #d4af37 48%, #a97514);
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.2);
}

body:not(.is-admin) .user-modal-actions .btn-ghost {
  border: 1px solid var(--gb-line);
  color: var(--gb-gold-light);
  background: rgba(2, 3, 3, 0.7);
}

body:not(.is-admin) .user-modal-actions button:disabled {
  border-color: rgba(255, 255, 255, 0.14);
  color: #777d80;
  background: #1b1e20;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.65;
}

body:not(.is-admin) .user-modal-feedback {
  color: var(--gb-muted);
}

body:not(.is-admin) .user-modal-feedback.is-error {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 9px;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.18);
}

body:not(.is-admin) .user-modal-feedback.is-ok {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 9px;
  color: #86efac;
  background: rgba(20, 83, 45, 0.2);
}

body:not(.is-admin) .app-toast {
  border: 1px solid var(--gb-line);
  color: var(--gb-text);
  background: linear-gradient(145deg, #191c1f, #0b0c0d);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

@media (max-width: 420px) {
  body:not(.is-admin) .user-modal {
    padding: 0;
  }

  body:not(.is-admin) .user-modal-card {
    width: 100%;
    max-height: 90dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }
}

/* Compact user task cards */
.app-view .user-task-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem;
  overflow: hidden;
}

.app-view .user-task-image {
  width: 92px;
  height: 92px;
  aspect-ratio: auto;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
}

.app-view .user-task-body {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
  padding: 0;
}

.app-view .user-task-body h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.25;
}

.app-view .user-task-body > p:not(.user-modal-note) {
  display: block;
  max-height: 2.7em;
  margin: 0;
  overflow: hidden;
  color: var(--gb-muted);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.app-view .user-task-body .user-modal-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
}

.app-view .user-task-body .user-modal-note strong {
  color: var(--gb-gold-light);
}

.app-view .user-task-rating {
  gap: 0.18rem;
  margin: 0.05rem 0;
}

.app-view .user-task-rating .task-star {
  width: 1.35rem;
  min-height: 1.35rem;
  font-size: 1.22rem;
  line-height: 1;
}

.app-view .user-task-submit {
  width: 100%;
  min-height: 34px;
  margin-top: 0.08rem;
  padding: 0.42rem 0.65rem;
  border-radius: 9px;
  font-size: 0.72rem;
}

@media (max-width: 360px) {
  .app-view .user-task-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.62rem;
    padding: 0.62rem;
  }

  .app-view .user-task-image {
    width: 78px;
    height: 78px;
  }
}

/* Complete, accessible scrolling for the authentication flow */
.auth-view {
  justify-content: flex-start;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.auth-view .auth-header {
  flex: 0 0 auto;
  margin-top: auto;
}

.auth-view .auth-tabs {
  flex: 0 0 auto;
}

.auth-view .auth-form.is-active {
  flex: 0 0 auto;
  margin-bottom: auto;
}

/* Dale5 project logo */
.project-logo {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

.auth-project-logo {
  max-width: 178px;
  margin: 0 auto;
}

.app-view .header-top {
  justify-content: center;
}

.app-project-logo {
  max-width: 148px;
  margin: 0 auto;
}

@media (max-width: 360px) {
  .auth-project-logo {
    max-width: 158px;
  }

  .app-project-logo {
    max-width: 132px;
  }
}

/* =========================
   INFORMACIÓN DE CUENTA
========================= */

.account-info-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(5, 10, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.account-info-modal[hidden] {
  display: none;
}

.account-info-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;

  padding: 24px;

  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 22px;

  background: #101214;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03);

  animation: accountModalIn 0.22s ease;
}

.account-info-dialog .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 22px;
}

.account-info-dialog .panel-head h2 {
  margin: 4px 0 0;
}

.modal-close-btn {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.06);
  color: inherit;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-info-grid > div {
  min-width: 0;

  padding: 15px 16px;

  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.035);
}

.account-info-grid span {
  display: block;

  margin-bottom: 6px;

  font-size: 0.78rem;
  opacity: 0.65;
}

.account-info-grid strong {
  display: block;

  font-size: 0.95rem;
  font-weight: 600;

  overflow-wrap: anywhere;
}

.account-info-done {
  width: 100%;
  margin-top: 20px;
}

@keyframes accountModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .account-info-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .account-info-dialog {
    max-width: none;
    max-height: 88vh;

    padding: 20px;

    border-radius: 22px 22px 16px 16px;
  }

  .account-info-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   ADMINISTRADOR — SISTEMA VISUAL BLANCO Y DORADO
===================================================== */

body.is-admin {
  --admin-gold: #c99b20;
  --admin-gold-dark: #9d7112;
  --admin-gold-soft: #fff8df;
  --admin-ink: #172033;
  --admin-muted: #6b7280;
  --admin-line: #e7dfc8;
  --admin-surface: #ffffff;
  --admin-bg: #f7f5ef;
  color: var(--admin-ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(212, 175, 55, 0.13), transparent 27%),
    radial-gradient(circle at 92% 92%, rgba(157, 113, 18, 0.08), transparent 30%),
    var(--admin-bg);
}

body.is-admin .admin-view {
  display: grid;
  width: min(520px, 100%);
  height: 100dvh;
  min-height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--admin-ink);
  background: var(--admin-bg);
  box-shadow: 0 24px 64px rgba(69, 52, 14, 0.16);
}

body.is-admin .admin-header {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 0.9rem 1rem 0.82rem;
  border: 0;
  border-bottom: 1px solid rgba(201, 155, 32, 0.3);
  background:
    radial-gradient(circle at 88% -25%, rgba(212, 175, 55, 0.2), transparent 42%),
    linear-gradient(160deg, #ffffff, #fffcf3 72%, #fff6d6);
  box-shadow: 0 7px 22px rgba(99, 75, 20, 0.08);
}

body.is-admin .admin-header::after {
  position: absolute;
  right: -42px;
  bottom: -62px;
  width: 145px;
  height: 95px;
  border: 1px solid rgba(201, 155, 32, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotate(-14deg);
}

body.is-admin .admin-header .header-top {
  z-index: 1;
  margin-bottom: 0.58rem;
}

body.is-admin .admin-header .chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 0.34rem;
  padding: 0.4rem 0.72rem;
  border: 1px solid rgba(201, 155, 32, 0.35);
  color: var(--admin-gold-dark);
  background: rgba(255, 248, 223, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.is-admin .admin-header .chip i {
  margin: 0;
  color: var(--admin-gold);
}

body.is-admin .admin-header h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.2rem;
  color: var(--admin-ink);
  font-family: "Poppins", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

body.is-admin .admin-header > p {
  position: relative;
  z-index: 1;
  max-width: 88%;
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

body.is-admin #admin-logout-btn {
  min-height: 32px;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(201, 155, 32, 0.38);
  border-radius: 999px;
  color: var(--admin-gold-dark);
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(99, 75, 20, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
}

body.is-admin .admin-invitations-header-btn {
  width: 48px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(201, 155, 32, 0.45);
  border-radius: 999px;
  color: var(--admin-gold-dark);
  background: linear-gradient(145deg, #fffdf7, #fff3c9);
  box-shadow: 0 7px 16px rgba(120, 88, 15, 0.14);
}

body.is-admin .admin-invitations-header-btn i {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateX(1px);
}

body.is-admin .admin-invitations-header-btn:hover,
body.is-admin .admin-invitations-header-btn:focus-visible {
  border-color: var(--admin-gold);
  outline: none;
  background: #ffedb0;
  transform: translate(-50%, -50%) scale(1.05);
}

body.is-admin .admin-content {
  min-height: 0;
  padding: 0.9rem 0.85rem 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(201, 155, 32, 0.55) transparent;
  scrollbar-width: thin;
  background:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.38)),
    var(--admin-bg);
}

body.is-admin .admin-content::-webkit-scrollbar,
body.is-admin .admin-users-list::-webkit-scrollbar,
body.is-admin .admin-edit-results::-webkit-scrollbar {
  width: 5px;
}

body.is-admin .admin-content::-webkit-scrollbar-thumb,
body.is-admin .admin-users-list::-webkit-scrollbar-thumb,
body.is-admin .admin-edit-results::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(201, 155, 32, 0.48);
}

body.is-admin .admin-stats-grid {
  gap: 0.5rem;
  margin-bottom: 0.72rem;
}

body.is-admin .admin-stats-grid .kpi-card {
  min-width: 0;
  padding: 0.72rem 0.48rem;
  border: 1px solid rgba(201, 155, 32, 0.25);
  border-radius: 14px;
  text-align: center;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 223, 0.82));
  box-shadow:
    0 8px 18px rgba(91, 69, 18, 0.07),
    inset 0 1px 0 #ffffff;
}

body.is-admin .admin-stats-grid .kpi-card strong {
  display: block;
  overflow: hidden;
  color: var(--admin-gold-dark);
  font-size: 0.9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
}

body.is-admin .admin-stats-grid .kpi-card span {
  display: block;
  margin-top: 0.25rem;
  color: var(--admin-muted);
  font-size: 0.61rem;
  line-height: 1.3;
}

body.is-admin .admin-workspace {
  min-height: 0;
}

body.is-admin .admin-card {
  padding: 0.92rem;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 12px 27px rgba(76, 57, 14, 0.08),
    inset 0 1px 0 #ffffff;
}

body.is-admin .admin-card h2,
body.is-admin .admin-card h3 {
  color: var(--admin-ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

body.is-admin .admin-card .focus-tag {
  color: var(--admin-gold-dark);
  font-size: 0.67rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

body.is-admin .admin-hint,
body.is-admin .admin-users-summary,
body.is-admin .balance-tools p {
  color: var(--admin-muted);
  line-height: 1.5;
}

body.is-admin .panel-head {
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.78rem;
}

body.is-admin .admin-card .field-label {
  margin-top: 0.68rem;
  margin-bottom: 0.3rem;
  color: #5f6470;
  font-size: 0.7rem;
}

body.is-admin .admin-card input,
body.is-admin .admin-card select,
body.is-admin .admin-searchbar input {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.72rem;
  border: 1px solid #ddd7c7;
  border-radius: 11px;
  outline: none;
  color: var(--admin-ink);
  background: #fffefa;
  box-shadow: inset 0 2px 5px rgba(76, 57, 14, 0.035);
  font-family: inherit;
  font-size: 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.is-admin .admin-card input::placeholder,
body.is-admin .admin-searchbar input::placeholder {
  color: #a09b90;
}

body.is-admin .admin-card input:focus,
body.is-admin .admin-card select:focus,
body.is-admin .admin-searchbar input:focus {
  border-color: var(--admin-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 155, 32, 0.13);
}

body.is-admin .admin-user-tabs,
body.is-admin .admin-deposit-tabs {
  gap: 0.32rem;
  margin-bottom: 0.9rem;
  padding: 0.25rem;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #f6f3eb;
}

body.is-admin .admin-user-tab,
body.is-admin .admin-deposit-tab {
  min-height: 38px;
  padding: 0.52rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--admin-muted);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
}

body.is-admin .admin-user-tab.is-active,
body.is-admin .admin-deposit-tab.is-active {
  border-color: rgba(201, 155, 32, 0.28);
  color: var(--admin-gold-dark);
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(91, 69, 18, 0.08);
}

body.is-admin .admin-edit-picker {
  padding: 0.65rem;
  border: 1px dashed rgba(201, 155, 32, 0.5);
  border-radius: 13px;
  background: var(--admin-gold-soft);
}

body.is-admin .admin-edit-result-btn {
  min-height: 40px;
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: #ffffff;
  cursor: pointer;
}

body.is-admin .admin-edit-result-btn:hover,
body.is-admin .admin-edit-result-btn.is-selected {
  border-color: rgba(201, 155, 32, 0.55);
  color: var(--admin-gold-dark);
  background: var(--admin-gold-soft);
}

body.is-admin .admin-form-actions,
body.is-admin .balance-actions,
body.is-admin .admin-user-actions,
body.is-admin .admin-toolbar {
  gap: 0.48rem;
}

body.is-admin .btn-main,
body.is-admin .btn-ghost,
body.is-admin .admin-toolbar button {
  min-height: 38px;
  margin-top: 0;
  padding: 0.52rem 0.8rem;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

body.is-admin .btn-main {
  border: 1px solid rgba(157, 113, 18, 0.38);
  color: #ffffff;
  background: linear-gradient(135deg, #ddb84d, #c99b20 52%, #9d7112);
  box-shadow: 0 7px 15px rgba(157, 113, 18, 0.19);
}

body.is-admin .btn-ghost {
  border: 1px solid rgba(201, 155, 32, 0.4);
  color: var(--admin-gold-dark);
  background: #ffffff;
  box-shadow: 0 5px 11px rgba(91, 69, 18, 0.06);
}

body.is-admin .btn-main:hover,
body.is-admin .btn-main:focus-visible,
body.is-admin .btn-ghost:hover,
body.is-admin .btn-ghost:focus-visible {
  border-color: var(--admin-gold);
  outline: none;
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.is-admin button:disabled {
  filter: grayscale(0.35);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

body.is-admin .admin-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.48rem;
}

body.is-admin .admin-search-list-link {
  border-top-color: rgba(201, 155, 32, 0.32);
}

body.is-admin .admin-users-list {
  gap: 0.55rem;
  padding-right: 0.12rem;
}

body.is-admin .admin-user-card {
  gap: 0.55rem;
  padding: 0.72rem;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background:
    linear-gradient(150deg, #ffffff, #fffdf7);
  box-shadow: 0 7px 16px rgba(76, 57, 14, 0.06);
}

body.is-admin .admin-user-card.is-selected {
  border-color: rgba(201, 155, 32, 0.58);
  box-shadow: 0 0 0 3px rgba(201, 155, 32, 0.11);
}

body.is-admin .admin-user-phone {
  color: var(--admin-ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
}

body.is-admin .admin-financial-card { cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
body.is-admin .admin-financial-card:hover,
body.is-admin .admin-financial-card:focus-visible { border-color: rgba(157, 113, 18, 0.65); outline: none; box-shadow: 0 12px 24px rgba(91, 69, 18, 0.14); transform: translateY(-2px); }
body.is-admin .user-modal-card { width: min(760px, calc(100vw - 1.5rem)); max-height: min(88vh, 820px); }
.financial-loading, .financial-intro, .financial-empty { color: #696457; text-align: center; }
.financial-primary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 1rem 0; }
.financial-summary-card { padding: 0.85rem; border: 1px solid #e5dfcf; border-radius: 14px; background: #fffdf8; }
.financial-summary-card span, .financial-summary-card small { display: block; color: #726d61; font-size: 0.72rem; }
.financial-summary-card strong { display: block; margin: 0.28rem 0 0.2rem; color: #29261f; font-size: 1.18rem; }
.financial-summary-card.is-income strong { color: #24774b; }
.financial-summary-card.is-expense strong { color: #a54141; }
.financial-summary-card.is-net strong, .financial-summary-card.is-fee strong { color: #9d7112; }
.financial-accounting-block { padding: 0.85rem; border: 1px solid rgba(201, 155, 32, 0.28); border-radius: 14px; background: #fff9e9; }
.financial-accounting-block h4, .financial-history-head h4 { margin: 0; color: #342d1e; }
.financial-accounting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.65rem; }
.financial-accounting-grid span { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.52rem; border-radius: 9px; color: #6a6251; background: rgba(255, 255, 255, 0.75); font-size: 0.69rem; }
.financial-accounting-grid strong { color: #503d12; white-space: nowrap; }
.financial-accounting-block p { margin: 0.65rem 0 0; color: #81765e; font-size: 0.66rem; }
.financial-history-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 1rem 0 0.55rem; }
.financial-history-head span { color: #817b6e; font-size: 0.66rem; }
.financial-movements-list { display: grid; gap: 0.5rem; }
.financial-movement { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.65rem; align-items: center; padding: 0.68rem; border: 1px solid #e9e4d8; border-radius: 12px; background: #ffffff; }
.financial-movement-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f3f0e8; }
.financial-movement.is-income .financial-movement-icon, .financial-movement.is-income .financial-movement-amount { color: #24774b; }
.financial-movement.is-expense .financial-movement-icon, .financial-movement.is-expense .financial-movement-amount { color: #a54141; }
.financial-movement-copy strong, .financial-movement-copy span { display: block; }
.financial-movement-copy strong { color: #38342c; font-size: 0.75rem; }
.financial-movement-copy span { margin-top: 0.12rem; color: #777064; font-size: 0.65rem; }
.financial-movement-amount { font-size: 0.78rem; white-space: nowrap; }

@media (max-width: 560px) {
  .financial-primary-grid, .financial-accounting-grid { grid-template-columns: 1fr; }
  .financial-movement { grid-template-columns: auto minmax(0, 1fr); }
  .financial-movement-amount { grid-column: 2; }
}

body.is-admin .admin-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

.admin-plan-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.admin-user-list-header {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.admin-user-list-header h2,
.admin-plan-filters-title {
  display: inline-block;
  margin: 0;
  color: var(--admin-ink, #17191b);
  font-family: "Space Grotesk", sans-serif;
  text-align: center;
}

.admin-user-list-toolbar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  gap: 0.45rem;
}

.admin-user-list-toolbar > button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 150px;
  white-space: nowrap;
}

.admin-plan-filters-title {
  display: block;
  margin: 0.85rem auto 0.15rem;
  font-size: 1rem;
}

@media (max-width: 520px) {
  .admin-user-list-toolbar {
    gap: 0.25rem;
  }

  .admin-user-list-toolbar > button {
    padding: 0.62rem 0.18rem;
    font-size: 0.64rem;
  }

  .admin-user-list-header h2 {
    font-size: 1rem;
  }
}

body.is-admin .admin-plan-filters .btn-ghost {
  min-height: 34px;
  padding: 0.4rem 0.62rem;
}

body.is-admin .admin-plan-filters .is-active {
  color: #17191b;
  background: linear-gradient(135deg, #ffdc4a, #ffc400);
}

body.is-admin .admin-user-plan {
  border-color: rgba(201, 155, 32, 0.28);
  color: var(--admin-muted);
  background: var(--admin-gold-soft);
}

body.is-admin .admin-user-plan strong {
  color: var(--admin-gold-dark);
}

body.is-admin .admin-user-plan.has-plan {
  border-color: rgba(201, 155, 32, 0.48);
  background: linear-gradient(135deg, #fff8dc, #fff2b8);
}

body.is-admin .admin-user-meta {
  color: var(--admin-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

body.is-admin .admin-referral-summary,
body.is-admin .admin-referral-loading {
  border-color: var(--admin-line);
}

body.is-admin .admin-referral-totals > div,
body.is-admin .admin-referral-cycle {
  border-color: var(--admin-line);
  background: #fffef9;
}

body.is-admin .admin-referral-totals strong,
body.is-admin .admin-referral-loading i {
  color: var(--admin-gold);
}

body.is-admin .admin-referral-cycle-head span,
body.is-admin .admin-referral-cycle code {
  color: #785a12;
  background: var(--admin-gold-soft);
}

body.is-admin .admin-empty {
  border-color: rgba(201, 155, 32, 0.38);
  color: var(--admin-muted);
  background: var(--admin-gold-soft);
}

body.is-admin .admin-users-summary {
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(201, 155, 32, 0.2);
  border-radius: 11px;
  background: #fffcf2;
}

body.is-admin .withdrawals-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
  margin-bottom: 0.7rem;
  padding: 0.2rem;
  overflow: visible;
}

body.is-admin .withdraw-filter-btn,
body.is-admin .deposit-filter-btn {
  width: 100%;
  min-width: 0;
  padding: 0.48rem 0.28rem;
  overflow: hidden;
  font-size: 0.66rem;
  text-align: center;
  text-overflow: ellipsis;
}

body.is-admin .withdraw-filter-btn.is-active,
body.is-admin .deposit-filter-btn.is-active {
  border-color: rgba(201, 155, 32, 0.55);
  color: var(--admin-gold-dark);
  background: var(--admin-gold-soft);
}

body.is-admin .invitation-status--disponible {
  color: #15803d;
  background: #ecfdf3;
}

body.is-admin .admin-bottom-nav {
  position: relative;
  z-index: 30;
  width: 100%;
  min-height: 69px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.45rem 0.5rem max(0.45rem, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid rgba(201, 155, 32, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -9px 24px rgba(80, 60, 15, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.is-admin .admin-nav-btn {
  min-width: 0;
  min-height: 52px;
  padding: 0.42rem 0.15rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #8a8579;
  background: transparent;
  font-size: 0.61rem;
  line-height: 1.15;
  cursor: pointer;
}

body.is-admin .admin-nav-btn i {
  color: #8a8579;
  font-size: 1rem;
  line-height: 1;
}

body.is-admin .admin-nav-btn span:not(.admin-nav-dot) {
  overflow: hidden;
  width: 100%;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-admin .admin-nav-btn.is-active {
  border-color: rgba(201, 155, 32, 0.34);
  color: var(--admin-gold-dark);
  background: linear-gradient(145deg, #fffaf0, #fff1c3);
  box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(91, 69, 18, 0.1);
}

body.is-admin .admin-nav-btn.is-active i {
  color: var(--admin-gold);
}

body.is-admin .admin-nav-dot {
  top: 0.35rem;
  right: 0.45rem;
  border: 2px solid #ffffff;
  background: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2);
}

@media (min-width: 768px) {
  body.is-admin .admin-view {
    height: calc(100dvh - 2.4rem);
    min-height: calc(100dvh - 2.4rem);
    margin: 1.2rem auto;
    border: 1px solid rgba(201, 155, 32, 0.3);
    border-radius: 26px;
    overflow: hidden;
  }

  body.is-admin .admin-header {
    min-height: auto;
  }

  body.is-admin .admin-bottom-nav {
    border-radius: 0 0 26px 26px;
  }
}

@media (max-width: 380px) {
  body.is-admin .admin-header {
    padding-inline: 0.78rem;
  }

  body.is-admin .admin-content {
    padding-inline: 0.65rem;
  }

  body.is-admin .admin-stats-grid {
    gap: 0.35rem;
  }

  body.is-admin .admin-stats-grid .kpi-card {
    padding-inline: 0.28rem;
  }

  body.is-admin .admin-nav-btn {
    font-size: 0.56rem;
  }

  body.is-admin .withdraw-filter-btn {
    padding-inline: 0.18rem;
    font-size: 0.61rem;
  }
}

/* =========================
   CAMBIAR CONTRASEÑA
========================= */

.password-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(5, 10, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.password-modal[hidden] {
  display: none;
}

.password-dialog {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;

  padding: 24px;

  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 22px;

  background: #101214;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03);

  animation: passwordModalIn 0.22s ease;
}

.password-dialog .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 22px;
}

.password-dialog .panel-head h2 {
  margin: 4px 0 0;
}

.password-field {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-bottom: 16px;
}

.password-field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.password-field input {
  width: 100%;

  padding: 13px 14px;

  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.045);
  color: inherit;

  font: inherit;

  outline: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.password-field input:focus {
  border-color: rgba(212, 175, 55, 0.7);

  background: rgba(255, 255, 255, 0.065);

  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.08);
}

.password-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.password-field .password-input-wrap > input {
  padding-right: 2.8rem;
}

.password-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;

  margin-top: 20px;
}

.password-actions button {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0.72rem 1rem;
  margin: 0;
  border-width: 1px;
  border-radius: 10px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

#password-cancel {
  height: 46px;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 10px;
  color: var(--gb-gold-light);
  background: linear-gradient(
    145deg,
    rgba(28, 31, 34, 0.88),
    rgba(11, 12, 13, 0.96)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 7px 16px rgba(0, 0, 0, 0.2);
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#password-cancel:hover,
#password-cancel:focus-visible {
  border-color: var(--gb-gold-light);
  outline: none;
  color: #fff1ae;
  background: linear-gradient(145deg, #22262a, #101214);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.12),
    0 9px 20px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

#password-cancel:active {
  transform: translateY(0);
}

#install-app-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

#install-app-btn::before {
  color: var(--gb-gold-light);
  content: "↓";
  font-size: 1rem;
  font-weight: 800;
}

#install-app-btn::after {
  margin-left: auto;
  color: var(--gb-muted);
  content: "Abrir";
  font-size: 0.66rem;
  font-weight: 700;
}

#install-app-btn.is-installable {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(
    145deg,
    rgba(34, 38, 42, 0.96),
    rgba(11, 31, 77, 0.98)
  );
}

#install-app-btn.is-installable::after {
  color: var(--gb-gold-light);
  content: "Disponible";
}

#install-app-btn.is-installed::before {
  content: "✓";
}

#install-app-btn.is-installed::after {
  color: #86efac;
  content: "Instalada";
}

#install-app-btn:hover,
#install-app-btn:focus-visible {
  border-color: var(--gb-gold);
  outline: none;
  transform: translateY(-1px);
}

@keyframes passwordModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .password-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .password-dialog {
    max-width: none;
    max-height: 88vh;

    padding: 20px;

    border-radius: 22px 22px 16px 16px;
  }

  .password-actions {
    grid-template-columns: 1fr;
  }
}

/* Dale5 final cascade */
body {
  color: var(--d5-ink);
  background: radial-gradient(circle at 12% 4%, rgba(255, 196, 0, 0.2), transparent 28rem), #eef0ed;
}

.auth-view {
  background: radial-gradient(circle at 82% 8%, rgba(255, 196, 0, 0.3), transparent 18rem), linear-gradient(160deg, #fff 0 42%, #f5f6f3 100%);
}

.auth-project-logo { width: min(230px, 74vw); height: 105px; margin-inline: auto; }
.app-project-logo { width: 118px; height: 48px; margin: 0; }
.project-logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-tab.is-active { color: var(--d5-ink); background: var(--d5-yellow); }
.btn-main, body.is-admin .btn-main { border-color: #e7a500; color: var(--d5-ink); background: linear-gradient(135deg, #ffd52a, #ffc400 55%, #f3ae00); }

.app-header {
  color: #fff;
  background: radial-gradient(circle at 88% -20%, rgba(255, 196, 0, 0.28), transparent 15rem), linear-gradient(145deg, #090a0b, #141719);
}
.app-header h1 { color: #fff; }
.app-header > p:not(.app-kicker) { color: rgba(255,255,255,.7); }
.app-kicker { color: var(--d5-yellow) !important; }

.hero-card {
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(circle at 90% 0, rgba(255,196,0,.32), transparent 11rem), linear-gradient(145deg, #090a0b, #151719);
  box-shadow: 0 18px 34px rgba(7,19,31,.2);
}
.hero-card h2, .hero-eyebrow, .hero-summary-grid span { color: rgba(255,255,255,.68); }
.hero-value, .hero-value strong { color: #fff; }
.hero-summary-grid strong { color: var(--d5-yellow); }

.action-grid { grid-template-columns: 1fr; gap: .62rem; }
.action-btn {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 24px;
  align-items: center;
  min-height: 72px;
  padding: .7rem .75rem;
  border: 1px solid rgba(7,19,31,.07);
  border-radius: 17px;
  color: var(--d5-ink);
  background: #fff;
  box-shadow: 0 9px 22px rgba(7,19,31,.065);
  text-align: left;
}
.action-btn::after { content: "\F285"; font-family: "bootstrap-icons"; justify-self: center; }
.action-btn > i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: var(--d5-ink); background: var(--d5-yellow); }
.action-btn > span { display: grid; gap: .12rem; font-size: .78rem; font-weight: 800; }
.action-btn small { color: var(--d5-muted); font-size: .63rem; font-weight: 500; }

.kpi-card, .notice-card, .profile-card, .task-progress-card, .plan-current-card, .movement-card, .admin-user-card {
  border-color: rgba(7,19,31,.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7,19,31,.065);
}

.bottom-nav { border-color: rgba(255,255,255,.09); background: rgba(7,19,31,.96); box-shadow: 0 16px 34px rgba(7,19,31,.28); }
.nav-btn, .nav-btn i { color: #84909a; }
.nav-btn.is-active, .nav-btn.is-active i { color: var(--d5-yellow); }
.nav-btn.is-active { background: rgba(255,196,0,.1); }
.whatsapp-float { border-color: #fff; color: var(--d5-ink); background: var(--d5-yellow); }

body.is-admin .admin-header { background: linear-gradient(145deg, #090a0b, #1c1f22); }
body.is-admin .admin-bottom-nav { background: #0b0c0d; }
body.is-admin .admin-nav-btn.is-active { color: var(--d5-yellow); background: rgba(255,196,0,.1); }

@media (min-width: 768px) {
  .mobile-app { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto; }
  .app-view.is-active { display: grid; grid-template-columns: 270px minmax(0,1fr); }
  .app-header { min-height: calc(100dvh - 2rem); padding: 1.4rem; }
  .app-content { min-height: calc(100dvh - 2rem); padding: 1.25rem 1.25rem 6.4rem; overflow-y: auto; }
  .tab-panel[data-panel="home"].is-active { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(280px,.88fr); gap: .85rem; align-items: start; }
  .hero-card, .kpi-grid, .notice-card { grid-column: 1; }
  .action-grid { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .bottom-nav { left: calc(270px + 1.5rem); right: 1.5rem; }
}

/* Dale5 user palette: obsidian, graphite and luminous yellow */
:root {
  --gb-night: #0b0c0d;
  --gb-night-deep: #020303;
  --gb-panel: #101214;
  --gb-panel-soft: #191c1f;
  --gb-panel-hover: #22262a;
  --gb-gold: #ffc400;
  --gb-gold-light: #ffdc55;
  --gb-gold-dark: #e5a400;
  --gb-text: #f8f9f7;
  --gb-muted: #a9afb3;
  --gb-line: rgba(255, 196, 0, 0.42);
  --gb-line-soft: rgba(255, 255, 255, 0.1);
}

body:not(.is-admin) .auth-tabs {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #181a1c, #060707);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 4px 14px rgba(0, 0, 0, 0.28);
}

body:not(.is-admin) .auth-tab {
  color: #a9afb3;
  background: transparent;
}

body:not(.is-admin) .auth-tab.is-active {
  border-color: rgba(255, 196, 0, 0.66);
  color: #090a0a;
  background: linear-gradient(135deg, #ffe36e, #ffc400 58%, #eca800);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 7px 18px rgba(255, 196, 0, 0.2);
}

body:not(.is-admin) .auth-form {
  border-color: rgba(255, 196, 0, 0.34);
  color: #f8f9f7;
  background:
    radial-gradient(circle at 92% -12%, rgba(255, 196, 0, 0.18), transparent 12rem),
    linear-gradient(145deg, #202326 0%, #0d0f10 52%, #030404 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 16px 0 34px rgba(255, 255, 255, 0.02),
    0 18px 38px rgba(0, 0, 0, 0.34);
}

body:not(.is-admin) .auth-form .field-label {
  color: #f1f2ef;
}

body:not(.is-admin) .auth-form input {
  border-color: rgba(255, 255, 255, 0.13);
  color: #f8f9f7;
  background: linear-gradient(145deg, #151719, #070808);
  box-shadow:
    inset 0 2px 9px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.is-admin) .auth-form input::placeholder {
  color: #747a7e;
}

body:not(.is-admin) .auth-form input:focus {
  border-color: rgba(255, 196, 0, 0.82);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 196, 0, 0.14),
    inset 0 2px 9px rgba(0, 0, 0, 0.38);
}

body:not(.is-admin) .auth-form .auth-field-help,
body:not(.is-admin) .auth-form .password-visibility-btn {
  color: #9ca2a6;
}

body:not(.is-admin) .auth-form .password-visibility-btn:hover,
body:not(.is-admin) .auth-form .password-visibility-btn:focus-visible {
  color: #ffdc55;
  background: rgba(255, 196, 0, 0.12);
}

body:not(.is-admin) .auth-header h1 {
  color: #111315;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:not(.is-admin) .auth-header p {
  color: #555c60;
  font-weight: 600;
}

body:not(.is-admin) .auth-header h1,
body:not(.is-admin) .auth-header p {
  position: relative;
  z-index: 2;
}

body:has(.app-view.is-active) {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 196, 0, 0.13), transparent 24rem),
    radial-gradient(circle at 92% 86%, rgba(255, 255, 255, 0.07), transparent 22rem),
    #050606;
}

.app-shell:has(.app-view.is-active) {
  border-color: rgba(255, 196, 0, 0.42);
  background: #030404;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.62),
    0 0 46px rgba(255, 196, 0, 0.1);
}

.app-view .app-header {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 86% -18%, rgba(255, 196, 0, 0.32), transparent 14rem),
    linear-gradient(145deg, #1b1e20 0%, #0a0c0d 48%, #020303 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-view .app-content {
  background:
    radial-gradient(circle at 96% 4%, rgba(255, 196, 0, 0.07), transparent 18rem),
    linear-gradient(155deg, #111315 0%, #070808 48%, #020303 100%);
}

.app-view .hero-card {
  border: 1px solid rgba(255, 196, 0, 0.46);
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 196, 0, 0.34), transparent 12rem),
    linear-gradient(145deg, #24282b 0%, #101214 42%, #030404 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 18px 0 42px rgba(255, 255, 255, 0.025),
    0 18px 38px rgba(0, 0, 0, 0.4);
}

.app-view .kpi-card,
.app-view .notice-card,
.app-view .profile-card,
.app-view .task-card,
.app-view .news-item,
.app-view .task-progress-card,
.app-view .plan-current-card,
.app-view .user-plan-card,
.app-view .user-task-card,
.app-view .user-task-empty,
.app-view .task-history-access,
.app-view .task-history-summary > div,
.app-view .user-task-history-item,
.app-view .setting-list li {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gb-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), transparent 34%),
    linear-gradient(145deg, #1c1f22 0%, #0d0f10 52%, #050606 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 26px rgba(0, 0, 0, 0.3);
}

.app-view .plan-current-meta > div,
.app-view .profile-meta > div,
.app-view .task-meta > div,
.app-view .task-progress-grid > div,
.app-view .user-plan-details > div {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.26));
}

.app-view .action-btn {
  border-color: rgba(255, 196, 0, 0.13);
  color: #0b0c0d;
  background: linear-gradient(145deg, #ffffff, #f4f4f0);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.app-view .action-btn:hover,
.app-view .action-btn:focus-visible {
  border-color: rgba(255, 196, 0, 0.74);
  color: #070808;
  background: linear-gradient(145deg, #ffffff, #fff4c2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.app-view .action-btn > i {
  color: #080909;
  background: linear-gradient(135deg, #ffdf56, #ffc400 58%, #eca800);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 14px rgba(255, 196, 0, 0.24);
}

.app-view .action-btn small { color: #687078; }

.app-view input,
.app-view select,
.app-view textarea,
body:not(.is-admin) .user-modal-body input,
body:not(.is-admin) .user-modal-body select,
body:not(.is-admin) .user-modal-body textarea {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8f9f7;
  background: linear-gradient(145deg, #151719, #080909);
  box-shadow: inset 0 2px 9px rgba(0, 0, 0, 0.42);
}

.app-view .btn-secondary,
.app-view .btn-ghost,
.app-view #close-task-history-btn,
body:not(.is-admin) .user-modal-actions .btn-ghost {
  border-color: rgba(255, 196, 0, 0.42);
  color: var(--gb-gold-light);
  background: linear-gradient(145deg, #202326, #080909);
}

.app-view .bottom-nav {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(24, 27, 29, 0.98), rgba(3, 4, 4, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 -12px 28px rgba(0, 0, 0, 0.38);
}

body:not(.is-admin) .user-modal {
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 196, 0, 0.14), transparent 18rem),
    rgba(0, 0, 0, 0.86);
}

body:not(.is-admin) .user-modal-card,
body:not(.is-admin) .account-info-dialog,
body:not(.is-admin) .password-dialog {
  border-color: rgba(255, 196, 0, 0.48);
  color: var(--gb-text);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 196, 0, 0.12), transparent 14rem),
    linear-gradient(155deg, #1b1e20, #0b0c0d 55%, #020303);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 30px 74px rgba(0, 0, 0, 0.66);
}

body:not(.is-admin) .user-modal-head {
  background: rgba(8, 9, 9, 0.94);
}

body:not(.is-admin) .withdraw-amount-option,
body:not(.is-admin) .withdraw-net-summary,
body:not(.is-admin) .movement-card,
body:not(.is-admin) .bank-data-grid,
body:not(.is-admin) .deposit-bank-option,
body:not(.is-admin) .bank-type-option,
.personal-invitation-card,
.personal-invitation-summary > div,
.personal-invitation-user {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gb-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 38%),
    linear-gradient(145deg, #1b1e20, #080909);
}

body:not(.is-admin) .withdraw-amount-option.is-selected,
body:not(.is-admin) .deposit-bank-option:hover,
body:not(.is-admin) .deposit-bank-option:focus-visible,
body:not(.is-admin) .deposit-bank-option.is-selected {
  border-color: rgba(255, 196, 0, 0.8);
  background:
    radial-gradient(circle at 88% 0, rgba(255, 196, 0, 0.2), transparent 9rem),
    linear-gradient(145deg, #272b2e, #0a0b0c);
}

body:not(.is-admin) .app-toast {
  border-color: rgba(255, 196, 0, 0.42);
  background: linear-gradient(145deg, #24282b, #080909);
}

.app-view .task-star { color: #686d70; }

body:not(.is-admin) .movement-filter {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gb-muted);
  background: linear-gradient(145deg, #17191b, #070808);
}

body:not(.is-admin) .movement-filter.is-active {
  border-color: rgba(255, 196, 0, 0.72);
  color: var(--gb-gold-light);
  background: rgba(255, 196, 0, 0.11);
}

body:not(.is-admin) #password-cancel,
.app-view #install-app-btn.is-installable {
  border-color: rgba(255, 196, 0, 0.46);
  color: var(--gb-gold-light);
  background: linear-gradient(145deg, #222528, #070808);
}

body:not(.is-admin) #password-cancel:hover,
body:not(.is-admin) #password-cancel:focus-visible,
.app-view #install-app-btn.is-installable:hover,
.app-view #install-app-btn.is-installable:focus-visible {
  background: linear-gradient(145deg, #2b2f32, #0a0b0c);
}

body:not(.is-admin) .user-modal-body input::placeholder,
body:not(.is-admin) .user-modal-body textarea::placeholder,
.app-view input::placeholder,
.app-view textarea::placeholder { color: #747a7e; }

/* Clear administrative identity: ivory surfaces and brighter yellow */
body.is-admin {
  --admin-gold: #ffc400;
  --admin-gold-dark: #bd8500;
  --admin-gold-soft: #fff3b0;
  background: #f6f3e9;
}

body.is-admin .admin-header {
  border-bottom: 1px solid rgba(189, 133, 0, 0.2);
  color: #17191b;
  background:
    radial-gradient(circle at 82% -20%, rgba(255, 196, 0, 0.42), transparent 15rem),
    linear-gradient(145deg, #ffffff, #fff8dc 72%, #ffeb83);
  box-shadow: 0 10px 28px rgba(80, 59, 5, 0.1);
}

body.is-admin .admin-header h1 { color: #17191b; }
body.is-admin .admin-header > p { color: #64615a; }
body.is-admin .admin-header .chip,
body.is-admin .admin-header .lang-btn {
  border-color: rgba(189, 133, 0, 0.3);
  color: #17191b;
  background: rgba(255, 255, 255, 0.78);
}

body.is-admin .admin-bottom-nav {
  border-color: rgba(189, 133, 0, 0.18);
  background: rgba(255, 253, 244, 0.98);
  box-shadow: 0 -10px 28px rgba(80, 59, 5, 0.1);
}

body.is-admin .admin-nav-btn,
body.is-admin .admin-nav-btn i { color: #77736a; }
body.is-admin .admin-nav-btn.is-active,
body.is-admin .admin-nav-btn.is-active i {
  color: #17191b;
  background: linear-gradient(135deg, #ffdc4a, #ffc400);
}

/* Contraste de etiquetas y resumen de planes en el panel del usuario */
.app-view .focus-tag,
body:not(.is-admin) .account-info-dialog .focus-tag,
body:not(.is-admin) .password-dialog .focus-tag,
body:not(.is-admin) .user-modal-card .focus-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.32rem;
  margin-bottom: 0.45rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 999px;
  color: #ffe477;
  background: linear-gradient(145deg, rgba(38, 41, 43, 0.96), rgba(7, 8, 8, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 5px 14px rgba(0, 0, 0, 0.24);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

body:not(.is-admin) .account-info-dialog #account-info-title {
  color: #f8f9f7;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72);
}

body:not(.is-admin) .password-dialog #password-title {
  color: #f8f9f7;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72);
}

.app-view .active-plan-item {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 196, 0, 0.5);
  color: #f8f9f7;
  background:
    radial-gradient(circle at 94% -18%, rgba(255, 196, 0, 0.2), transparent 9rem),
    linear-gradient(145deg, #25292c 0%, #111315 52%, #050606 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 26px rgba(0, 0, 0, 0.36);
}

.app-view .active-plan-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe477, #ffc400 55%, #b77e00);
  content: "";
}

.app-view .active-plan-item-head h3 {
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(255, 196, 0, 0.12);
}

.app-view .active-plan-item-head span {
  border: 1px solid rgba(255, 196, 0, 0.48);
  color: #17191b;
  background: linear-gradient(135deg, #ffe477, #ffc400);
  box-shadow: 0 5px 12px rgba(255, 196, 0, 0.16);
}

.app-view .active-plan-benefits > div {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(0, 0, 0, 0.28));
}

.app-view .active-plan-benefits span,
.app-view .active-plan-item .user-modal-note {
  color: #aeb4b8;
}

.app-view .active-plan-benefits strong {
  color: #ffe477;
}

.app-view .active-plan-item.is-compact {
  border-color: rgba(255, 196, 0, 0.62);
  background:
    radial-gradient(circle at 92% -12%, rgba(255, 196, 0, 0.25), transparent 8rem),
    linear-gradient(145deg, #292d30 0%, #121416 55%, #050606 100%);
}

/* Escritorio: una sola estructura amplia, sin cabecera lateral ni doble división */
@media (min-width: 768px) {
  .app-view.is-active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .app-view .app-header {
    min-height: auto;
    padding: 1rem 1.5rem 1.15rem;
  }

  .app-view .app-header h1 {
    margin-top: 0.55rem;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  }

  .app-view .app-content {
    min-height: 0;
    padding: 1.25rem 1.5rem 6.5rem;
  }

  .app-view .tab-panel.is-active {
    width: min(900px, 100%);
    margin-inline: auto;
  }

  .app-view .tab-panel[data-panel="home"].is-active {
    display: block;
  }

  .app-view .hero-card,
  .app-view .kpi-grid,
  .app-view .notice-card,
  .app-view .action-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .app-view .action-grid {
    margin-top: 0.85rem;
  }

  .app-view .bottom-nav {
    left: 1.5rem;
    right: 1.5rem;
  }
}

/* Modal de invitación personal: ritmo visual y lectura más cómoda */
body:not(.is-admin) .user-modal-card:has(.personal-invitation-card) {
  max-width: 620px;
}

body:not(.is-admin) .user-modal-card:has(.personal-invitation-card) .user-modal-head {
  padding: 1rem 1.2rem;
}

body:not(.is-admin) .user-modal-card:has(.personal-invitation-card) .user-modal-body {
  gap: 1.15rem;
  padding: 1.25rem;
}

body:not(.is-admin) .personal-invitation-card {
  display: grid;
  gap: 0.78rem;
  padding: 1.2rem;
}

body:not(.is-admin) .personal-invitation-card .focus-tag,
body:not(.is-admin) .personal-invitation-card .personal-invitation-code,
body:not(.is-admin) .personal-invitation-card .user-modal-note,
body:not(.is-admin) .personal-invitation-card .field-label {
  margin-top: 0;
  margin-bottom: 0;
}

body:not(.is-admin) .personal-invitation-card .personal-invitation-code {
  padding-block: 0.12rem;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
}

body:not(.is-admin) .personal-invitation-card #personal-invitation-link {
  min-height: 48px;
  padding-inline: 0.9rem;
}

body:not(.is-admin) .personal-invitation-actions {
  gap: 0.75rem;
  margin-top: 0.15rem;
}

body:not(.is-admin) .personal-invitation-summary {
  gap: 0.85rem;
}

body:not(.is-admin) .personal-invitation-summary > div {
  padding: 1rem 0.8rem;
}

body:not(.is-admin) .personal-invitation-list {
  gap: 0.72rem;
  padding-top: 0.15rem;
}

body:not(.is-admin) .personal-invitation-list h4 {
  margin: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 196, 0, 0.2);
}

body:not(.is-admin) .personal-invitation-user {
  padding: 0.85rem 0.9rem;
}

/* Modal de contraseña */
body:not(.is-admin) .password-dialog form {
  display: grid;
  gap: 1rem;
}

body:not(.is-admin) .password-dialog .password-field,
body:not(.is-admin) .password-dialog .user-modal-note,
body:not(.is-admin) .password-dialog .password-actions {
  margin: 0;
}

body:not(.is-admin) .password-dialog .password-actions {
  margin-top: 0.35rem;
}

.app-view .app-header h1,
.app-view .app-header > p {
  width: 100%;
  text-align: center;
}

@media (max-width: 420px) {
  body:not(.is-admin) .user-modal-card:has(.personal-invitation-card) .user-modal-body {
    gap: 0.9rem;
    padding: 0.9rem;
  }

  body:not(.is-admin) .personal-invitation-card {
    gap: 0.68rem;
    padding: 0.95rem;
  }
}

/* Formularios de acceso y registro con una distribución más cómoda */
body:not(.is-admin) .auth-tabs,
body:not(.is-admin) .auth-form {
  width: min(100%, 390px);
}

body:not(.is-admin) .auth-form.is-active {
  margin-top: 1.05rem;
  padding: 1.3rem 1.2rem 1.35rem;
  border-radius: 20px;
}

body:not(.is-admin) .auth-form .field-label {
  margin-top: 1.05rem;
  margin-bottom: 0.48rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

body:not(.is-admin) .auth-form .field-label:first-child {
  margin-top: 0;
}

body:not(.is-admin) .auth-form input {
  min-height: 48px;
  padding: 0.72rem 0.82rem;
  border-radius: 13px;
  font-size: 0.88rem;
}

body:not(.is-admin) .auth-form .auth-field-help {
  margin: 0.55rem 0 0;
  line-height: 1.55;
}

body:not(.is-admin) .auth-form .btn-main {
  min-height: 48px;
  margin-top: 1.25rem;
  border-radius: 13px;
}

@media (max-width: 420px) {
  body:not(.is-admin) .auth-form.is-active {
    padding: 1.15rem 1rem 1.2rem;
  }
}

/* Alineación final de acciones administrativas y cuenta bancaria. */
body.is-admin .admin-toolbar.admin-user-list-toolbar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  margin: 0;
}

body.is-admin .admin-toolbar.admin-user-list-toolbar > button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 150px;
  margin: 0;
  text-align: center;
}

.user-modal-actions.bank-account-form-actions {
  display: flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
}

.user-modal-actions.bank-account-form-actions > button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 520px) {
  body.is-admin .admin-toolbar.admin-user-list-toolbar {
    gap: 0.25rem;
  }

  body.is-admin .admin-toolbar.admin-user-list-toolbar > button {
    padding: 0.62rem 0.12rem;
    font-size: 0.64rem;
  }

  .user-modal-actions.bank-account-form-actions {
    gap: 0.28rem;
  }

  .user-modal-actions.bank-account-form-actions > button {
    padding: 0.68rem 0.12rem;
    font-size: 0.66rem;
  }
}

/* Prioridad final para la fila de controles del encabezado administrativo. */
body.is-admin .admin-header .header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 40px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.45rem;
  width: min(100%, 520px);
  margin-inline: auto;
}

body.is-admin .admin-header .header-actions {
  display: contents;
}

body.is-admin .admin-header .header-top .chip,
body.is-admin .admin-header .header-top button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

body.is-admin .admin-header .header-top .admin-invitations-header-btn {
  position: static;
  width: 40px;
  min-width: 40px;
  padding: 0;
  transform: none;
}

body.is-admin .admin-header .header-top #admin-whatsapp-btn {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

body.is-admin .admin-header .header-top button i {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 420px) {
  body.is-admin .admin-header .header-top {
    grid-template-columns: minmax(0, 1fr) 36px 36px minmax(0, 1fr);
    gap: 0.28rem;
  }

  body.is-admin .admin-header .header-top .chip,
  body.is-admin .admin-header .header-top button {
    height: 36px;
    min-height: 36px;
    padding-inline: 0.22rem;
    font-size: 0.64rem;
  }

  body.is-admin .admin-header .header-top .admin-invitations-header-btn,
  body.is-admin .admin-header .header-top #admin-whatsapp-btn {
    width: 36px;
    min-width: 36px;
  }
}

/* Información de versión en la cuenta del usuario. */
.app-view .setting-list .about-app-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem;
  text-align: center;
}

.about-app-item__heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.about-app-item__heading > i {
  flex: 0 0 auto;
  color: #ffc400;
  font-size: 1.15rem;
}

.about-app-item__heading strong,
.about-app-item__heading span {
  display: block;
}

.about-app-item__heading strong {
  color: inherit;
  font-size: 0.78rem;
}

.about-app-item__heading span {
  margin-top: 0.12rem;
  color: #92989d;
  font-size: 0.62rem;
}

.about-app-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #ffc400;
  font-size: 0.64rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.about-app-item > a:hover,
.about-app-item > a:focus-visible {
  color: #ffda45;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Botones compactos de Tareas y Planes en escritorio. */
@media (min-width: 768px) {
  .app-view .user-task-submit {
    width: auto;
    min-width: 190px;
    max-width: 240px;
    justify-self: start;
    padding-inline: 1.25rem;
  }

  .app-view .user-plan-card > .btn-block {
    width: auto;
    min-width: 230px;
    max-width: min(320px, 100%);
    justify-self: center;
    padding-inline: 1.35rem;
  }
}
.financial-obligations-block { margin: 1rem 0; padding: 0.85rem; border: 1px solid rgba(35, 91, 121, 0.2); border-radius: 14px; background: linear-gradient(145deg, #fbfdff, #f4f8fa); }
.financial-obligations-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.financial-obligations-head h4 { margin: 0; color: #342d1e; }
.financial-obligations-head span { color: #777064; font-size: 0.66rem; }
.financial-obligations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.7rem; }
.financial-obligation-card { padding: 0.72rem; border: 1px solid #e3e7e8; border-radius: 11px; background: #fff; }
.financial-obligation-card span, .financial-obligation-card small { display: block; color: #716d64; font-size: 0.68rem; }
.financial-obligation-card strong { display: block; margin: 0.3rem 0 0.2rem; color: #2f596d; font-size: 1.02rem; }
.financial-obligation-card.is-biweekly strong { color: #8b6818; }
.financial-obligation-card.is-monthly strong { color: #684d82; }
.financial-obligations-block > p { margin: 0.7rem 0 0; color: #777064; font-size: 0.65rem; line-height: 1.45; }

@media (max-width: 600px) {
  .financial-obligations-head { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .financial-obligations-grid { grid-template-columns: 1fr; }
}
.balance-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin: 0.8rem 0; }
.balance-breakdown > div { padding: 0.6rem; border: 1px solid rgba(255, 193, 7, 0.28); border-radius: 10px; background: rgba(0, 0, 0, 0.2); }
.balance-breakdown span, .balance-breakdown strong { display: block; }
.balance-breakdown span { color: rgba(255,255,255,0.78); font-size: 0.68rem; }
.balance-breakdown strong { margin-top: 0.2rem; color: #ffd044; font-size: 0.88rem; }
.payout-method-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }
.payout-method-options .bank-type-option span { display: grid; gap: 0.25rem; min-width: 0; }
.payout-method-options small { overflow-wrap: anywhere; opacity: 0.78; }
.payout-add-actions { margin-top: 0.75rem; }
