/* YH NFT Gate — modal de login com carteira (identidade do site: preto + roxo #8300e9). */

.yh-lock,
.yh-lock body {
	overflow: hidden !important;
}

.yh-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(5, 3, 12, 0.74);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.yh-overlay[hidden] {
	display: none !important;
}

.yh-dialog {
	--yh-accent: #8300e9;
	--yh-accent-hover: #9419ff;
	--yh-accent-soft: #b57aff;
	--yh-bg: #0e0b16;
	--yh-surface: #17121f;
	--yh-surface-hover: #21182f;
	--yh-border: rgba(255, 255, 255, 0.1);
	--yh-text: #f5f3ff;
	--yh-muted: #aaa3ba;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 24px 20px;
	border: 1px solid var(--yh-border);
	border-radius: 18px;
	background: var(--yh-bg);
	box-shadow: 0 24px 80px rgba(131, 0, 233, 0.35);
	color: var(--yh-text);
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.yh-dialog *,
.yh-dialog *::before {
	box-sizing: border-box;
}

.yh-dialog p {
	padding: 0;
}

.yh-dialog .yh-title {
	margin: 0 36px 4px 0;
	padding: 0;
	color: var(--yh-text);
	font-family: Spinnaker, "Open Sans", Arial, sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.yh-dialog .yh-sub {
	margin: 0 0 18px;
	color: var(--yh-muted);
	font-size: 14px;
}

.yh-x {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--yh-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.yh-x:hover,
.yh-x:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: var(--yh-text);
	outline: none;
}

.yh-notice {
	margin: 0 0 16px;
	padding: 10px 12px;
	border: 1px solid rgba(181, 122, 255, 0.45);
	border-radius: 10px;
	background: rgba(131, 0, 233, 0.16);
	color: var(--yh-text);
	font-size: 14px;
}

.yh-notice[hidden] {
	display: none;
}

.yh-wallets {
	display: grid;
	gap: 10px;
	margin: 0 0 14px;
}

.yh-dialog .yh-wallet {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--yh-border);
	border-radius: 12px;
	background: var(--yh-surface);
	color: var(--yh-text);
	font: inherit;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.yh-dialog .yh-wallet:hover,
.yh-dialog .yh-wallet:focus-visible {
	border-color: var(--yh-accent-soft);
	background: var(--yh-surface-hover);
	color: var(--yh-text);
	outline: none;
}

.yh-wallet img,
.yh-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
}

.yh-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--yh-accent);
	color: #fff;
	font-weight: 700;
}

.yh-dialog .yh-primary {
	justify-content: center;
	border-color: var(--yh-accent);
	background: var(--yh-accent);
	color: #fff;
}

.yh-dialog .yh-primary:hover,
.yh-dialog .yh-primary:focus-visible {
	border-color: var(--yh-accent-hover);
	background: var(--yh-accent-hover);
}

.yh-secondary {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--yh-border);
	border-radius: 12px;
	background: transparent;
	color: var(--yh-muted);
	font: inherit;
	cursor: pointer;
}

.yh-secondary:hover,
.yh-secondary:focus-visible {
	border-color: rgba(255, 255, 255, 0.3);
	color: var(--yh-text);
	outline: none;
}

.yh-dialog .yh-text {
	margin: 0 0 12px;
	color: var(--yh-text);
	font-size: 14px;
}

.yh-dialog .yh-muted {
	color: var(--yh-muted);
}

.yh-dialog .yh-tip {
	margin: 4px 0 0;
	color: var(--yh-muted);
	font-size: 13px;
}

.yh-dialog .yh-tip a {
	color: var(--yh-accent-soft);
	text-decoration: underline;
}

.yh-dialog .yh-status {
	margin: 6px 0 12px;
	color: var(--yh-muted);
	font-size: 14px;
}

.yh-dialog .yh-status:empty {
	display: none;
}

.yh-dialog .yh-status.yh-error {
	color: #ff8f8f;
}

.yh-busy .yh-wallets {
	opacity: 0.55;
	pointer-events: none;
}

.yh-busy .yh-status::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	border: 2px solid var(--yh-accent-soft);
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -1px;
	animation: yh-spin 0.8s linear infinite;
}

@keyframes yh-spin {
	to {
		transform: rotate(360deg);
	}
}

.yh-check {
	width: 64px;
	height: 64px;
	margin: 4px auto 14px;
	border-radius: 50%;
	background: var(--yh-accent);
	color: #fff;
	font-size: 34px;
	line-height: 64px;
	text-align: center;
}

.yh-safety {
	margin-top: 8px;
	padding: 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--yh-muted);
	font-size: 12.5px;
	line-height: 1.45;
}

.yh-safety strong,
.yh-safety b {
	color: var(--yh-text);
}

@media (max-width: 480px) {
	.yh-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.yh-dialog {
		max-width: none;
		max-height: 92vh;
		padding: 24px 18px 18px;
		border-radius: 18px 18px 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yh-busy .yh-status::before {
		animation: none;
	}
}
