:root {
	--bg: #090A0C;
	--surface: #FFFFFF;
	--ink: #F6F3ED;
	--muted: #C7BEA9;
	--line: #342D1E;
	--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%, #1A1812, transparent 34%),
		radial-gradient(circle at 94% 26%, #12110E, 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(0, 0, 0, 0.48);
}

.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;
}

.whatsapp-settings-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	overflow-y: auto;
	background: rgba(2, 3, 5, 0.78);
	backdrop-filter: blur(6px);
}

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

.whatsapp-settings-dialog {
	width: min(100%, 520px);
	max-height: calc(100dvh - 32px);
	margin: auto 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	border: 1px solid #e7dfc8;
	border-radius: 22px;
	background: #ffffff;
	color: #211B12;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.whatsapp-settings-dialog .panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.whatsapp-settings-dialog h2 {
	margin: 4px 0 0;
}

.whatsapp-settings-dialog input[type="tel"] {
	width: 100%;
	min-height: 44px;
	padding: 0.68rem 0.78rem;
	border: 1px solid #ddd7c7;
	border-radius: 11px;
	outline: none;
	color: #211B12;
	background: #fffefa;
	font: inherit;
}

.whatsapp-settings-dialog input[type="tel"]:focus {
	border-color: #c99b20;
	box-shadow: 0 0 0 3px rgba(201, 155, 32, 0.14);
}

.whatsapp-enabled-field {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.whatsapp-enabled-field input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border-radius: 3px;
	box-shadow: none;
	accent-color: #c99b20;
	cursor: pointer;
}

.whatsapp-enabled-field input[type="checkbox"]:focus-visible {
	outline: 3px solid rgba(201, 155, 32, 0.35);
	outline-offset: 3px;
}

.whatsapp-settings-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 22px;
}

@media (max-width: 480px) {
	.whatsapp-settings-modal {
		align-items: center;
		padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
	}

	.whatsapp-settings-dialog {
		max-height: calc(100dvh - 20px);
		padding: 20px;
		border-radius: 18px;
	}
}

.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(0, 0, 0, 0.48);
	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(216, 231, 247, 0.78);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 255, 0.96)),
		repeating-linear-gradient(45deg, rgba(216, 231, 247, 0.26), rgba(216, 231, 247, 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(216, 231, 247, 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: #746A58;
	display: grid;
	place-items: center;
	gap: 0.1rem;
}

.admin-nav-btn i {
	font-size: 0.9rem;
}

.admin-nav-btn.is-active {
	border-color: rgba(87, 167, 255, 0.45);
	background: rgba(87, 167, 255, 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 #DFD2B8;
	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(87, 167, 255, 0.64);
	box-shadow: 0 0 0 3px rgba(87, 167, 255, 0.17);
}

.admin-card {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 0.95rem;
	box-shadow: 0 12px 18px rgba(0, 0, 0, 0.16);
}

.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 #DFD2B8;
	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(87, 167, 255, 0.64);
	box-shadow: 0 0 0 3px rgba(87, 167, 255, 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 #DFD2B8;
	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(87, 167, 255, 0.55);
	background: #F7F4EC;
}

.admin-edit-result-btn.is-selected {
	border-color: rgba(87, 167, 255, 0.64);
	background: rgba(87, 167, 255, 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;
}

.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(87, 167, 255, 0.55);
	background: rgba(87, 167, 255, 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(0, 0, 0, 0.12);
}

.admin-user-card.is-selected {
	border-color: rgba(87, 167, 255, 0.52);
	box-shadow: 0 0 0 3px rgba(87, 167, 255, 0.12);
}

.admin-user-phone {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1rem;
	font-weight: 700;
}

.admin-user-meta {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	color: var(--muted);
}

.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: #fffdf8;
}

.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(87, 167, 255, 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(87, 167, 255, 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);
}

.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: #f8fafc;
	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(87, 167, 255, 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(0, 0, 0, 0.15);
}

.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: #F8FAFC;
	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(87, 167, 255, 0.64);
	box-shadow: 0 0 0 3px rgba(87, 167, 255, 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(87, 167, 255, 0.14);
  font-size: 0.68rem;
}

.movement-filter.is-active {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  background: rgba(87, 167, 255, 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(87, 167, 255, 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;
}

@keyframes movementSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-hint {
	margin: 0.8rem 0 0;
	font-size: 0.73rem;
	color: var(--muted);
	background: #F7F4EC;
	border: 1px dashed #DFD2B8;
	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(216, 231, 247, 0.28), rgba(216, 231, 247, 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(87, 167, 255, 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, #17191C, #020305);
	color: #F8FAFC;
	border-radius: 18px;
	padding: 0.95rem;
	margin-bottom: 0.75rem;
	box-shadow: 0 12px 20px rgba(0, 0, 0, 0.42);
}

.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: #C7BEA9;
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
	margin-bottom: 0.75rem;
}

.action-btn {
	border: 1px solid #342D1E;
	background: var(--accent-soft);
	border-radius: 12px;
	padding: 0.45rem 0.35rem;
	font-size: 0.68rem;
	font-weight: 700;
	font-family: inherit;
	color: #F6F3ED;
	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(0, 0, 0, 0.24);
}

.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.62rem;
}

.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(0, 0, 0, 0.16);
}

.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(0, 0, 0, 0.18);
}

.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(87, 167, 255, 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(0, 0, 0, 0.14);
}

.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: #111317;
	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(0, 0, 0, 0.18);
}

.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: #111317;
	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 #342D1E;
	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: #111317;
	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: #C7BEA9;
	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(87, 167, 255, 0.45);
	background: rgba(87, 167, 255, 0.16);
	color: var(--accent-dark);
}

.nav-btn.is-sunday-disabled {
	opacity: 0.58;
}

.nav-btn.is-sunday-disabled i,
.nav-btn.is-sunday-disabled span {
	color: var(--muted);
}

.app-toast {
	position: fixed;
	left: 50%;
	bottom: 1.15rem;
	transform: translateX(-50%) translateY(20px);
	background: #090A0C;
	color: #F6F3ED;
	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(17, 37, 59, 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(9, 22, 38, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	padding: max(0.8rem, env(safe-area-inset-top)) max(0.8rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
	overflow-y: auto;
	z-index: 1300;
}

.user-modal.is-open {
	display: flex;
}

.user-modal-card {
	width: min(420px, 100%);
	max-height: min(calc(100dvh - 1.6rem), 720px);
	margin: auto 0;
	overflow: auto;
	overscroll-behavior: contain;
	position: relative;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 0.85rem;
	box-shadow: 0 22px 36px rgba(12, 36, 58, 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(87, 167, 255, 0.64);
	box-shadow: 0 0 0 3px rgba(87, 167, 255, 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: #F8FAFC;
}

.bank-data-grid p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--ink);
}

.bank-data-grid strong {
	font-weight: 700;
	color: #211B12;
}

.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(87, 167, 255, 0.68);
	background: rgba(87, 167, 255, 0.14);
	box-shadow: 0 0 0 2px rgba(87, 167, 255, 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%;
}

.setting-list li.is-plan-locked {
	opacity: 0.55;
	cursor: not-allowed;
}

.setting-list li.is-plan-locked::after {
	content: "Plan pagado requerido";
	font-size: 0.68rem;
	font-weight: 700;
	opacity: 0.85;
}

.user-modal-actions.bank-admin-edit-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}

.user-modal-actions.bank-admin-edit-actions button {
	min-width: 0;
	height: 100%;
	padding-inline: 0.55rem;
	white-space: normal;
}

.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 #DFD2B8;
		border-radius: 24px;
		padding: 2rem;
		box-shadow: 0 20px 40px rgba(18, 26, 43, 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-tasks-progress-text {
	display: grid;
	gap: 0.3rem;
}

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

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

body:not(.is-admin) .active-plan-item {
	display: grid;
	gap: 0.55rem;
	padding: 0.75rem;
	border: 1px solid rgba(212, 175, 55, 0.48);
	border-radius: 14px;
	color: var(--gb-text);
	background:
		radial-gradient(circle at 92% 8%, rgba(212, 175, 55, 0.16), transparent 34%),
		linear-gradient(145deg, rgba(20, 42, 94, 0.98), rgba(4, 13, 38, 0.98));
	box-shadow:
		0 12px 26px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

body:not(.is-admin) .active-plan-item-head h3 {
	margin: 0;
	color: var(--gb-gold-light);
}

body:not(.is-admin) .active-plan-item-head span {
	padding: 0.22rem 0.48rem;
	border: 1px solid rgba(245, 215, 110, 0.32);
	border-radius: 999px;
	color: #fff2b3;
	background: rgba(212, 175, 55, 0.16);
	font-size: 0.62rem;
	font-weight: 800;
}

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

body:not(.is-admin) .active-plan-benefits > div {
	display: grid;
	gap: 0.18rem;
	min-width: 0;
	padding: 0.48rem;
	border: 1px solid rgba(133, 164, 218, 0.16);
	border-radius: 10px;
	background: rgba(2, 10, 31, 0.58);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body:not(.is-admin) .active-plan-benefits span {
	color: var(--gb-muted);
	font-size: 0.62rem;
}

body:not(.is-admin) .active-plan-benefits strong {
	color: #ffffff;
	font-size: 0.82rem;
}

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

@media (max-width: 420px) {
	.active-plan-benefits {
		grid-template-columns: 1fr;
	}
}

#admin-invitations-btn {
  left: calc(50% - 27px);
}

#admin-whatsapp-btn {
  left: calc(50% + 27px);
}

.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;
  }
}

/* =====================================================
   GOLDEN BLOOM — TEMA PREMIUM DE LA APP DE USUARIO
   Inspirado en la guía visual azul noche y oro.
===================================================== */

:root {
  --gb-night: #090a0c;
  --gb-night-deep: #020305;
  --gb-panel: #111317;
  --gb-panel-soft: #1a1d21;
  --gb-panel-hover: #25282d;
  --gb-gold: #e5a91c;
  --gb-gold-light: #ffe18a;
  --gb-gold-dark: #a96808;
  --gb-text: #f6f3ed;
  --gb-muted: #c7bea9;
  --gb-line: rgba(229, 169, 28, 0.46);
  --gb-line-soft: rgba(255, 225, 138, 0.16);
  --gb-success: #22c55e;
}

body:has(.app-view.is-active) {
  color: var(--gb-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(229, 169, 28, 0.18), transparent 34%),
    radial-gradient(circle at 90% 88%, rgba(212, 175, 55, 0.14), transparent 28%),
    #010204;
}

body:has(.auth-view.is-active) {
  color: var(--gb-text);
  background:
    radial-gradient(circle at 18% 8%, rgba(229, 169, 28, 0.2), transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(212, 175, 55, 0.16), transparent 30%),
    linear-gradient(155deg, #010204, #070809 52%, #111317);
}

.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(229, 169, 28, 0.12);
}

.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(17, 19, 23, 0.98), rgba(2, 3, 5, 0.995));
}

.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(8, 9, 10, 0.76);
  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(8, 9, 10, 0.82);
  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(42, 37, 25, 0.98), rgba(14, 14, 14, 0.98));
  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(25, 27, 30, 0.98), rgba(6, 7, 8, 0.99));
  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: #f0e8d6;
}

.auth-form input {
  border-color: var(--gb-line-soft);
  color: var(--gb-text);
  background: rgba(7, 8, 9, 0.9);
  box-shadow: inset 0 1px 7px rgba(0, 0, 0, 0.16);
}

.auth-form input::placeholder {
  color: #948c7c;
}

.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: #c7bea9;
}

.auth-form .password-visibility-btn,
.password-dialog .password-visibility-btn,
.admin-view .password-visibility-btn {
  color: #c7bea9;
}

.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: #F6F3ED;
  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(229, 169, 28, 0.11);
}

.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, #050607, #121417 62%, #1c1e21);
}

.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(12, 13, 15, 0.76);
  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(12, 13, 15, 0.9);
}

.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(8, 9, 10, 0.98), rgba(2, 3, 5, 0.995)),
    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, #17191c, #0b0c0e 58%, #020305);
  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 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gb-line-soft);
}

.app-view .hero-summary-grid > div {
  min-width: 0;
  padding: 0.45rem 0.55rem;
  text-align: center;
}

.app-view .hero-summary-grid > div:first-child {
  grid-column: 1 / -1;
  padding-top: 0;
  border-bottom: 1px solid var(--gb-line-soft);
}

.app-view .hero-summary-grid > div:nth-child(3) {
  border-left: 1px solid var(--gb-line-soft);
}

.app-view .hero-summary-grid span {
  color: var(--gb-muted);
}

.app-view .hero-summary-grid strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--gb-gold-light);
}

@media (min-width: 520px) {
  .app-view .hero-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-view .hero-summary-grid > div:first-child {
    grid-column: auto;
    padding-top: 0.45rem;
    border-bottom: 0;
  }

  .app-view .hero-summary-grid > div + div {
    border-left: 1px solid var(--gb-line-soft);
  }
}

.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, 30, 33, 0.98), rgba(5, 6, 7, 0.99));
  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, 30, 33, 0.98), rgba(5, 6, 7, 0.99));
  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(7, 8, 9, 0.82);
}

.app-view .btn-main {
  border: 1px solid rgba(245, 215, 110, 0.52);
  color: #F6F3ED;
  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(12, 13, 15, 0.9);
}

.app-view .task-progress-bar {
  background: rgba(5, 6, 7, 0.94);
  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, 30, 33, 0.98), rgba(5, 6, 7, 0.99));
  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(7, 8, 9, 0.82);
}

.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: #756f61;
}

.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(7, 8, 9, 0.9);
}

.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, #16181b, #020305);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.24);
}

.app-view .nav-btn {
  color: #c7bea9;
}

.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: #F6F3ED;
  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(229, 169, 28, 0.14), 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, #17191c, #090a0c 55%, #020305);
  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(10, 11, 12, 0.96);
  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(8, 9, 10, 0.9);
}

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: #f0e8d6;
  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(7, 8, 9, 0.9);
  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: #948c7c;
}

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(7, 8, 9, 0.84);
}

.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(7, 8, 9, 0.84);
}

.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(7, 8, 9, 0.84);
}

.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(29, 31, 34, 0.98), rgba(5, 6, 7, 0.99));
}

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(48, 41, 24, 0.98), rgba(12, 12, 12, 0.99));
  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(8, 9, 10, 0.9);
}

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(29, 31, 34, 0.98),
    rgba(5, 6, 7, 0.99)
  );
  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: #f0e8d6;
}

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(29, 31, 34, 0.98), rgba(5, 6, 7, 0.99));
  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, #302918, #0c0c0c);
  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(29, 31, 34, 0.98), rgba(5, 6, 7, 0.99));
  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(48, 41, 24, 0.98), rgba(12, 12, 12, 0.99));
  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(8, 9, 10, 0.9);
}

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: #F6F3ED;
  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(8, 9, 10, 0.9);
}

body:not(.is-admin) .user-modal-actions button:disabled {
  border-color: rgba(255, 225, 138, 0.12);
  color: #817b70;
  background: #24211b;
  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, #1a1d21, #07090c);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

@media (max-width: 420px) {
  body:not(.is-admin) .user-modal {
    align-items: center;
    padding: max(0.55rem, env(safe-area-inset-top)) max(0.55rem, env(safe-area-inset-right)) max(0.55rem, env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
  }

  body:not(.is-admin) .user-modal-card {
    width: 100%;
    max-height: calc(100dvh - 1.1rem);
    border-radius: 18px;
  }
}

/* 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;
}

/* Golden Bloom 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: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;

  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: calc(100dvh - 32px);
  margin: auto 0;
  overflow-y: auto;
  overscroll-behavior: contain;

  padding: 24px;

  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 22px;

  background: #090A0C;

  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: center;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .account-info-dialog {
    max-width: none;
    max-height: calc(100dvh - 20px);

    padding: 20px;

    border-radius: 18px;
  }

  .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: #211B12;
  --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-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(calc(100dvh - 1.6rem), 820px); }
.financial-loading, .financial-intro, .financial-empty { color: #696457; text-align: center; }
.financial-date-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 0.65rem; align-items: end; padding: 0.8rem; border: 1px solid rgba(201, 155, 32, 0.3); border-radius: 14px; background: #fff9e9; }
.financial-date-filter label { display: grid; gap: 0.3rem; color: #5d5547; font-size: 0.7rem; font-weight: 700; }
.financial-date-filter input { width: 100%; min-height: 40px; padding: 0.55rem 0.65rem; border: 1px solid #d9cfb9; border-radius: 9px; color: #342d1e; background: #fff; font: inherit; }
.financial-date-filter input:focus-visible { border-color: #b88616; outline: 2px solid rgba(201, 155, 32, 0.25); outline-offset: 1px; }
.financial-date-filter button { min-height: 40px; }
.financial-date-filter small { grid-column: 1 / -1; color: #81765e; font-size: 0.64rem; }
.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; }
.financial-daily-block { margin-bottom: 1rem; padding: 0.85rem; border: 1px solid #e5dfcf; border-radius: 14px; background: #fffdf8; }
.financial-daily-block h4 { margin: 0 0 0.65rem; color: #342d1e; }
.financial-daily-list { display: grid; gap: 0.45rem; max-height: 310px; overflow-y: auto; }
.financial-day-row { display: grid; grid-template-columns: minmax(115px, 1.15fr) repeat(3, minmax(100px, 1fr)); gap: 0.5rem; align-items: center; padding: 0.62rem; border-radius: 10px; background: #f7f4ec; color: #4a4439; font-size: 0.68rem; }
.financial-day-row > span { display: grid; gap: 0.1rem; }
.financial-day-row small { color: #827a6b; font-size: 0.58rem; }
.financial-day-row .is-income b { color: #24774b; }
.financial-day-row .is-expense b { color: #a54141; }
.financial-day-row .is-net b { color: #9d7112; }

@media (max-width: 560px) {
  .financial-date-filter { grid-template-columns: 1fr 1fr; }
  .financial-date-filter button { grid-column: 1 / -1; }
  .financial-primary-grid, .financial-accounting-grid { grid-template-columns: 1fr; }
  .financial-day-row { grid-template-columns: 1fr 1fr; }
  .financial-day-row > strong { grid-column: 1 / -1; }
  .financial-movement { grid-template-columns: auto minmax(0, 1fr); }
  .financial-movement-amount { grid-column: 2; }
}

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-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-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: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;

  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: calc(100dvh - 32px);
  margin: auto 0;
  overflow-y: auto;
  overscroll-behavior: contain;

  padding: 24px;

  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 22px;

  background: #090A0C;

  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%;
}

#password-cancel {
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 11px;
  color: var(--gb-gold-light);
  background: linear-gradient(
    145deg,
    rgba(29, 31, 34, 0.96),
    rgba(5, 6, 7, 0.98)
  );
  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, #302918, #090A0C);
  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(48, 41, 24, 0.96),
    rgba(5, 6, 7, 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: center;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .password-dialog {
    max-width: none;
    max-height: calc(100dvh - 20px);

    padding: 20px;

    border-radius: 18px;
  }

  .password-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 620px) {
  .user-modal,
  .account-info-modal,
  .password-modal,
  .whatsapp-settings-modal {
    align-items: center;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .user-modal-card,
  .account-info-dialog,
  .password-dialog,
  .whatsapp-settings-dialog {
    max-height: calc(100dvh - 16px);
  }
}

body.is-admin .admin-panel-menu-btn {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

body.is-admin .admin-panel-menu-btn:hover,
body.is-admin .admin-panel-menu-btn:focus-visible {
  border-color: rgba(157, 113, 18, 0.75);
  outline: 2px solid rgba(201, 155, 32, 0.22);
  outline-offset: 2px;
  background: #fff3bf;
}

.admin-tools-menu {
  display: grid;
  gap: 0.75rem;
}

.admin-tool-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(201, 155, 32, 0.34);
  border-radius: 15px;
  color: var(--admin-ink);
  text-align: left;
  background: linear-gradient(145deg, #ffffff, #fff9e9);
  cursor: pointer;
}

.admin-tool-option > i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--admin-gold-dark);
  background: #fff0b7;
  font-size: 1.1rem;
}

.admin-tool-option span,
.admin-tool-option strong,
.admin-tool-option small {
  display: block;
}

.admin-tool-option small {
  margin-top: 0.18rem;
  color: var(--admin-muted);
  line-height: 1.4;
}

.admin-tool-option:hover,
.admin-tool-option:focus-visible {
  border-color: var(--admin-gold);
  outline: none;
  box-shadow: 0 10px 24px rgba(157, 113, 18, 0.12);
  transform: translateY(-1px);
}

.admin-tool-option.is-warning > i {
  color: #9a3412;
  background: #ffedd5;
}

.task-lock-status {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  color: #166534;
  background: #f0fdf4;
}

.task-lock-status.is-locked {
  border-color: rgba(234, 88, 12, 0.3);
  color: #9a3412;
  background: #fff7ed;
}

.task-lock-status > i {
  margin-top: 0.12rem;
  font-size: 1.05rem;
}

.task-lock-status p {
  margin: 0.2rem 0 0;
  color: inherit;
  font-size: 0.73rem;
}

.admin-task-lock-form {
  display: grid;
  gap: 0.7rem;
}

.admin-task-lock-form input[type="datetime-local"] {
  width: 100%;
  box-sizing: border-box;
}

.task-lock-enabled-field {
  margin-bottom: 0.15rem;
}

.admin-task-lock-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.65fr);
}

@media (max-width: 420px) {
  .admin-task-lock-actions {
    grid-template-columns: 1fr;
  }
}

.admin-users-summary:has(> strong) {
  display: grid;
  gap: 0.35rem;
}

.admin-balance-type-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.admin-balance-type-summary span {
  padding: 0.85rem;
  border: 1px solid rgba(126, 91, 20, 0.22);
  border-radius: 0.85rem;
  background: rgba(250, 239, 202, 0.45);
  text-align: center;
}

.admin-balance-type-summary strong {
  display: block;
  margin-top: 0.25rem;
}

.admin-balance-type-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-balance-type-actions #balance-type-cancel {
  grid-column: 1 / -1;
}

.admin-user-balance-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.55rem 0;
}

.admin-user-balance-breakdown .admin-user-meta {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid rgba(201, 155, 32, 0.24);
  border-radius: 0.7rem;
  background: rgba(255, 248, 223, 0.55);
  text-align: center;
}

.admin-user-balance-breakdown strong {
  color: var(--admin-gold-dark);
}

@media (max-width: 540px) {
  .admin-balance-type-summary,
  .admin-balance-type-actions {
    grid-template-columns: 1fr;
  }

  .admin-balance-type-actions #balance-type-cancel {
    grid-column: auto;
  }

  .admin-user-balance-breakdown {
    grid-template-columns: 1fr;
  }
}

body.is-admin .admin-header .header-top {
  display: grid;
  grid-template-columns: 112px 48px 112px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: min(100%, 310px);
  margin: 0 auto 0.58rem;
}

body.is-admin .admin-header .admin-panel-menu-btn,
body.is-admin .admin-header .header-actions,
body.is-admin .admin-header #admin-logout-btn {
  width: 100%;
}

body.is-admin .admin-header .admin-panel-menu-btn,
body.is-admin .admin-header #admin-logout-btn,
body.is-admin .admin-header #admin-whatsapp-btn {
  min-height: 34px;
  justify-content: center;
}

body.is-admin .admin-header #admin-whatsapp-btn {
  position: static;
  width: 48px;
  height: 34px;
  transform: none;
}

body.is-admin .admin-header #admin-whatsapp-btn:hover {
  transform: translateY(-1px);
}

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

  body.is-admin .admin-header .admin-panel-menu-btn,
  body.is-admin .admin-header #admin-logout-btn {
    padding-inline: 0.42rem;
    font-size: 0.64rem;
  }

  body.is-admin .admin-header #admin-whatsapp-btn {
    width: 44px;
  }
}

/* =====================================================
   GOLDEN BLOOM — PALETA NEGRO Y ORO 2026
   Sustituye el azul heredado por negro carbón y oro metálico.
===================================================== */

:root {
  --bg: #f4efe4;
  --surface: #fffdf8;
  --ink: #17130c;
  --muted: #746a58;
  --line: #dfd2b8;
  --accent: #e5a91c;
  --accent-dark: #a96808;
  --accent-soft: #fff2c5;
  --gb-night: #090a0c;
  --gb-night-deep: #020305;
  --gb-panel: #111317;
  --gb-panel-soft: #1a1d21;
  --gb-panel-hover: #25282d;
  --gb-gold: #e5a91c;
  --gb-gold-light: #ffe18a;
  --gb-gold-dark: #a96808;
  --gb-text: #f6f3ed;
  --gb-muted: #c7bea9;
  --gb-line: rgba(229, 169, 28, 0.46);
  --gb-line-soft: rgba(255, 225, 138, 0.16);
}

body {
  background:
    radial-gradient(circle at 8% 10%, rgba(229, 169, 28, 0.1), transparent 34%),
    radial-gradient(circle at 94% 26%, rgba(169, 104, 8, 0.08), transparent 36%),
    var(--bg);
}

body:has(.auth-view.is-active),
body:has(.app-view.is-active) {
  color: var(--gb-text);
  background:
    radial-gradient(circle at 14% 7%, rgba(229, 169, 28, 0.2), transparent 30%),
    radial-gradient(circle at 88% 90%, rgba(255, 225, 138, 0.08), transparent 28%),
    linear-gradient(155deg, #010204, #070809 52%, #111317);
}

.app-shell:has(.auth-view.is-active),
.app-shell:has(.app-view.is-active) {
  border-color: rgba(229, 169, 28, 0.62);
  background: var(--gb-night-deep);
  box-shadow:
    0 0 0 1px rgba(255, 225, 138, 0.1),
    0 30px 70px rgba(0, 0, 0, 0.62),
    0 0 46px rgba(229, 169, 28, 0.12);
}

.auth-view {
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 201, 67, 0.13), transparent 28%),
    linear-gradient(160deg, rgba(17, 19, 23, 0.98), rgba(2, 3, 5, 0.995));
}

.auth-header .chip,
.app-view .app-header .chip {
  background: rgba(12, 13, 15, 0.76);
}

.auth-tabs {
  background: rgba(8, 9, 10, 0.82);
}

.auth-tab.is-active {
  background: linear-gradient(145deg, rgba(42, 37, 25, 0.98), rgba(14, 14, 14, 0.98));
}

.auth-form {
  background:
    radial-gradient(circle at 95% 0%, rgba(229, 169, 28, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(25, 27, 30, 0.98), rgba(6, 7, 8, 0.99));
}

.auth-form .field-label,
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,
body:not(.is-admin) #deposit-bank-accounts > .field-label {
  color: #f0e8d6;
}

.auth-form input,
.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: var(--gb-line-soft);
  color: var(--gb-text);
  background: rgba(7, 8, 9, 0.9);
}

.auth-form input::placeholder,
body:not(.is-admin) .user-modal-body input::placeholder,
body:not(.is-admin) .user-modal-body textarea::placeholder {
  color: #948c7c;
}

.auth-form .auth-field-help,
.auth-form .password-visibility-btn,
.password-dialog .password-visibility-btn {
  color: var(--gb-muted);
}

.auth-form .btn-main,
.app-view .btn-main,
body:not(.is-admin) .user-modal-actions .btn-main {
  color: #171006;
  background: linear-gradient(110deg, #9c6207 0%, #ffd45a 34%, #fff0a8 52%, #d58d0a 100%);
  box-shadow: 0 10px 22px rgba(229, 169, 28, 0.2);
}

.app-view .app-header {
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 201, 67, 0.17), transparent 30%),
    linear-gradient(145deg, #050607, #121417 62%, #1c1e21);
}

.app-view .lang-btn,
.app-view .install-btn,
.app-view .btn-secondary,
.app-view .btn-ghost {
  background: rgba(12, 13, 15, 0.9);
}

.app-view .app-content {
  background:
    linear-gradient(rgba(8, 9, 10, 0.98), rgba(2, 3, 5, 0.995)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 225, 138, 0.012) 12px 13px);
}

.app-view .hero-card {
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 201, 67, 0.2), transparent 26%),
    linear-gradient(145deg, #17191c, #0b0c0e 58%, #020305);
}

.app-view .action-btn,
.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: var(--gb-line-soft);
  color: var(--gb-text);
  background: linear-gradient(145deg, rgba(28, 30, 33, 0.98), rgba(5, 6, 7, 0.99));
}

.app-view .action-btn:hover,
.app-view .action-btn:focus-visible {
  background: linear-gradient(145deg, var(--gb-panel-hover), var(--gb-panel));
}

.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,
.app-view .task-progress-grid > div,
.app-view .user-plan-details > div,
body:not(.is-admin) .active-plan-benefits > div {
  border-color: var(--gb-line-soft);
  background: rgba(7, 8, 9, 0.82);
}

.app-view .task-progress-bar {
  background: rgba(5, 6, 7, 0.94);
}

.app-view .task-star {
  color: #756f61;
}

.app-view .bottom-nav {
  background: linear-gradient(180deg, #16181b, #020305);
}

.app-view .nav-btn {
  color: #c7bea9;
}

body:not(.is-admin) .user-modal {
  background:
    radial-gradient(circle at 80% 10%, rgba(229, 169, 28, 0.14), transparent 34%),
    rgba(1, 2, 3, 0.88);
}

body:not(.is-admin) .user-modal-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 201, 67, 0.13), transparent 28%),
    linear-gradient(155deg, #17191c, #090a0c 55%, #020305);
}

body:not(.is-admin) .user-modal-head {
  background: rgba(10, 11, 12, 0.96);
}

body:not(.is-admin) .user-modal-head .user-modal-close,
body:not(.is-admin) .movement-filter,
body:not(.is-admin) .bank-type-option,
body:not(.is-admin) .user-modal-actions .btn-ghost {
  background: rgba(8, 9, 10, 0.9);
}

.personal-invitation-card,
.personal-invitation-summary > div,
.personal-invitation-user {
  background: rgba(7, 8, 9, 0.84);
}

body:not(.is-admin) .withdraw-amount-option,
body:not(.is-admin) .withdraw-net-summary,
body:not(.is-admin) .bank-data-grid,
body:not(.is-admin) .deposit-bank-option,
body:not(.is-admin) .movement-card {
  background: linear-gradient(145deg, rgba(29, 31, 34, 0.98), rgba(5, 6, 7, 0.99));
}

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 {
  background: linear-gradient(145deg, rgba(48, 41, 24, 0.98), rgba(12, 12, 12, 0.99));
}

.app-view #close-task-history-btn,
#password-cancel {
  background: linear-gradient(145deg, rgba(29, 31, 34, 0.98), rgba(5, 6, 7, 0.99));
}

.app-view #close-task-history-btn:hover,
.app-view #close-task-history-btn:focus-visible,
#password-cancel:hover,
#password-cancel:focus-visible,
#install-app-btn.is-installable {
  background: linear-gradient(145deg, rgba(48, 41, 24, 0.98), rgba(12, 12, 12, 0.99));
}

body:not(.is-admin) .user-modal-actions button:disabled {
  border-color: rgba(255, 225, 138, 0.12);
  color: #817b70;
  background: #24211b;
}

body:not(.is-admin) .app-toast {
  background: linear-gradient(145deg, #1a1d21, #07090c);
}

.account-info-modal,
.password-modal {
  background: rgba(3, 4, 5, 0.84);
}

.account-info-dialog,
.password-dialog {
  color: var(--gb-text);
  background:
    radial-gradient(circle at 92% 0%, rgba(229, 169, 28, 0.1), transparent 30%),
    #101215;
}

body.is-admin {
  --admin-ink: #211b12;
  --admin-muted: #746b5b;
}

.whatsapp-settings-modal {
  background: rgba(13, 12, 10, 0.68);
}

.whatsapp-settings-dialog {
  color: #211b12;
  box-shadow: 0 24px 60px rgba(30, 23, 10, 0.2);
}
