.gdzai .gdzai-account-topup {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 6px clamp(6px, 2vw, 12px);
	border: 1px solid #ffdb63;
	border-radius: 15px;
	background: linear-gradient(180deg, #ffef72, #ffd91a 55%, #ffb600);
	color: #422100;
	box-shadow: inset 0 1px 0 #fff8c7, 0 4px 9px #d68d002e;
	font: inherit;
	font-size: clamp(13px, 3.55vw, 17px);
	font-weight: 820;
	line-height: 1.15;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}

.gdzai-account-topup-label {
	display: inline-flex;
	align-items: center;
	gap: clamp(4px, 1.3vw, 9px);
	white-space: nowrap;
}

.gdzai-account-topup-icon {
	display: grid;
	place-items: center;
	width: 1.5em;
	height: 1.5em;
	flex: none;
	border-radius: 50%;
	background: #a96300;
	color: #fff;
}

.gdzai .gdzai-account-topup-icon svg {
	width: 75%;
	height: 75%;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
}

.gdzai .gdzai-account-topup .gdzai-account-topup-promo {
	max-width: 100%;
	margin: 0;
	padding: 3px 6px;
	border-color: #ecc659;
	background: #fff7ce;
	color: #513500;
	box-shadow: none;
	font-size: clamp(10px, 2.6vw, 12px);
	font-weight: 760;
	line-height: 1.15;
	white-space: normal;
	overflow-wrap: anywhere;
}

.gdzai .gdzai-account-topup .gdzai-account-topup-promo.gdzai-topup-btn-deal-personal {
	border-color: #8ac992;
	background: #e5fbe7;
	color: #176023;
}

.gdzai .gdzai-account-topup .gdzai-account-topup-promo[hidden] { display: none; }

@media (hover: hover) {
	.gdzai .gdzai-account-topup:hover { filter: brightness(1.045); }
}

.gdzai .gdzai-account-topup:active { transform: scale(.98); }

.gdzai :is(.gdzai-account-topup, .gdzai-profile-view-header button, .gdzai-profile-menu-item, .gdzai-profile-logout):focus-visible {
	outline: 2px solid var(--workspace-accent, #1363e5);
	outline-offset: 2px;
}

.gdzai .gdzai-modal-profile .gdzai-modal-inner:has(.gdzai-profile-overview) {
	width: min(600px, calc(100% - 14px));
	max-width: 600px;
	border-radius: clamp(20px, 5vw, 29px);
	background: var(--workspace-surface, #fff);
}

.gdzai .gdzai-modal-profile .gdzai-modal-text:has(.gdzai-profile-view-header) { scroll-padding-block-start: 76px; }

.gdzai .gdzai-modal-profile :is(.gdzai-profile-overview, .gdzai-profile-email-change-dialog) {
	--profile-accent: var(--workspace-accent, #075cee);
	--profile-tile: #e8f0ff;
}

.gdzai .gdzai-modal-profile .gdzai-profile-overview {
	--profile-panel: linear-gradient(180deg, var(--workspace-surface, #fff), var(--workspace-soft, #f7f9ff));
	--profile-overview-gap: clamp(8px, 2.2vw, 13px);
	display: grid;
	gap: var(--profile-overview-gap);
	padding: 0 clamp(10px, 3.2vw, 18px) clamp(12px, 3.7vw, 22px);
	color: var(--workspace-ink, #0d1425);
}

.gdzai-profile-view-header {
	position: sticky;
	z-index: 1;
	top: 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(9px, 3vw, 15px);
	padding-block: clamp(9px, 2.8vw, 15px) 7px;
	background: var(--workspace-surface, #fff);
}

.gdzai .gdzai-modal-profile .gdzai-profile-view-header .gdzai-profile-title {
	margin: 0;
	color: inherit;
	font-size: clamp(23px, 6.5vw, 34px);
	font-weight: 850;
	letter-spacing: -.028em;
	line-height: 1.06;
	overflow-wrap: anywhere;
}

.gdzai .gdzai-profile-view-header .gdzai-workspace-sheet-close {
	width: 44px;
	height: 44px;
	padding: 8px;
	border: 1px solid var(--workspace-border, #dfe7f3);
	color: inherit;
}

.gdzai .gdzai-profile-view-header .gdzai-workspace-sheet-close svg {
	width: 23px;
	height: 23px;
}

.gdzai-profile-tile {
	display: grid;
	place-items: center;
	width: clamp(36px, 10.1vw, 53px);
	height: clamp(36px, 10.1vw, 53px);
	flex: none;
	border-radius: 30%;
	background: var(--profile-tile);
	color: var(--profile-accent);
}

.gdzai-profile-view-icon,
.gdzai-profile-menu-chevron {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gdzai-profile-tile > .gdzai-profile-view-icon {
	width: 65%;
	height: 65%;
}

.gdzai-profile-panel,
.gdzai-profile-menu-item {
	min-width: 0;
	border: 1px solid var(--workspace-border, #dfe7f3);
	border-radius: clamp(14px, 4vw, 20px);
	background: var(--profile-panel);
}

.gdzai-profile-panel { padding: clamp(8px, 2.3vw, 13px); }

.gdzai-profile-wallet {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(100px, 43%);
	align-items: center;
	gap: clamp(6px, 2vw, 11px);
}

.gdzai-profile-wallet-heading {
	display: flex;
	align-items: center;
	gap: clamp(5px, 2.4vw, 12px);
	min-width: 0;
}

.gdzai-profile-wallet-heading > div { min-width: 0; }

.gdzai-profile-wallet-icon {
	background: #fff0c9;
}

.gdzai .gdzai-profile-wallet-icon .gdzai-limit-energy,
.gdzai .gdzai-profile-wallet-icon svg {
	width: clamp(31px, 9vw, 45px);
	height: clamp(31px, 9vw, 45px);
}

.gdzai .gdzai-profile-wallet-icon .gdzai-limit-energy { margin: 0; }

.gdzai-profile-wallet-label {
	display: block;
	font-size: clamp(14px, 3.8vw, 21px);
	font-weight: 830;
	line-height: 1.2;
}

.gdzai-profile-wallet-total {
	display: flex;
	align-items: center;
	gap: 3px;
	color: var(--balance-amount, var(--profile-accent));
	font-size: clamp(23px, 7vw, 41px);
	font-weight: 880;
	line-height: 1.05;
	letter-spacing: -.035em;
	overflow-wrap: anywhere;
}

.gdzai .gdzai-profile-wallet-total .gdzai-limit-energy {
	width: .66em;
	height: .66em;
	flex: none;
	margin: 0;
}

.gdzai-profile-wallet-total svg { width: 100%; height: 100%; }

.gdzai-profile-wallet-parts {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 7px 0;
	border-radius: 14px;
	background: var(--workspace-soft, #eef3fa);
	font-size: clamp(11px, 2.85vw, 15px);
	line-height: 1.3;
}

.gdzai-profile-wallet-parts > div {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	gap: 1px 4px;
	min-width: 0;
	padding-inline: 3px;
}

.gdzai-profile-wallet-parts > div + div { border-inline-start: 1px solid var(--workspace-border, #d5deed); }
.gdzai-profile-wallet-parts dt { color: var(--workspace-muted, #53627c); }
.gdzai-profile-wallet-parts dd { margin: 0; font-weight: 820; overflow-wrap: anywhere; }

.gdzai-profile-access {
	display: grid;
	gap: clamp(8px, 2.2vw, 11px);
}

.gdzai-profile-section-head {
	display: flex;
	align-items: center;
	gap: clamp(7px, 2.3vw, 12px);
}

.gdzai-profile-section-head h3,
.gdzai-profile-section-head p { margin: 0; }

.gdzai-profile-section-head h3,
.gdzai-profile-code-login-label,
.gdzai-profile-menu-copy strong {
	font-size: clamp(15px, 4.2vw, 22px);
	font-weight: 820;
	line-height: 1.15;
}

.gdzai-profile-section-head p,
.gdzai-profile-menu-copy > span {
	margin-top: 3px;
	color: var(--workspace-muted, #53627c);
	font-size: clamp(12px, 3.35vw, 16px);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.gdzai .gdzai-profile-overview .gdzai-profile-access .gdzai-profile-code-value {
	padding: clamp(8px, 2.6vw, 14px) 7px;
	border: 0;
	border-radius: 13px;
	background: var(--profile-tile);
	color: inherit;
	font-size: clamp(12px, 3.2vw, 18px);
	font-weight: 800;
	text-align: center;
	user-select: all;
}

.gdzai-profile-access-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(5px, 2vw, 10px);
}

.gdzai .gdzai-profile-overview .gdzai-profile-access-actions button {
	gap: clamp(5px, 1.55vw, 9px);
	padding: 6px 4px;
	border: 1px solid var(--profile-action-border, #bad1ff);
	border-radius: 13px;
	background: var(--profile-panel);
	color: var(--profile-accent);
	font-size: clamp(12px, 3.4vw, 16px);
	font-weight: 760;
}

.gdzai .gdzai-profile-overview .gdzai-profile-access-actions button:disabled {
	opacity: .6;
	cursor: default;
}

.gdzai .gdzai-profile-menu-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(7px, 2.4vw, 13px);
	width: 100%;
	min-height: 52px;
	padding: clamp(6px, 1.8vw, 11px) clamp(8px, 2.5vw, 13px);
	color: inherit;
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.gdzai-profile-menu-copy {
	display: block;
	min-width: 0;
}

.gdzai-profile-menu-copy > * { display: block; }
.gdzai-profile-menu-chevron { width: 1.1em; height: 1.1em; }

.gdzai .gdzai-profile-menu-item:is(:hover, :focus-visible),
.gdzai .gdzai-profile-overview .gdzai-profile-access-actions button:not(:disabled):hover {
	border-color: var(--profile-action-border, #bad1ff);
	background: var(--workspace-soft, #f1f6ff);
}

.gdzai-profile-code-login {
	display: grid;
	gap: 8px;
}

.gdzai-profile-code-login-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 7px;
}

.gdzai-profile-code-login-row > div { min-width: 0; }

.gdzai .gdzai-modal-profile .gdzai-profile-code-login-row input {
	min-height: 44px;
	font-size: 16px;
}

.gdzai .gdzai-profile-overview .gdzai-profile-code-login-row button {
	min-width: 92px;
	border-color: var(--profile-action-border, #bad1ff);
	background: var(--profile-panel);
	color: var(--profile-accent);
}

.gdzai .gdzai-profile-overview .gdzai-profile-code-login-row button:not(:disabled):hover {
	background: var(--workspace-soft, #f1f6ff);
}

.gdzai .gdzai-profile-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 2.7vw, 14px);
	min-height: 48px;
	margin-top: 2px;
	padding: 9px 7px;
	border: 1px solid var(--profile-logout-border, #ffadb5);
	border-radius: clamp(14px, 4vw, 19px);
	background: var(--profile-logout-fill, #fff0f2);
	color: var(--workspace-danger, #bc1329);
	font: inherit;
	font-size: clamp(15px, 4.1vw, 21px);
	font-weight: 800;
	cursor: pointer;
}

.gdzai .gdzai-profile-logout:hover { filter: saturate(1.3); }
.gdzai .gdzai-profile-overview .gdzai-profile-card { margin: 0; }
.gdzai .gdzai-profile-overview .gdzai-profile-subtitle { margin: 0; }

body[data-workspace-theme="dark"] .gdzai .gdzai-modal-profile :is(.gdzai-profile-overview, .gdzai-profile-email-change-dialog) {
	--profile-tile: #263b5b;
}

body[data-workspace-theme="dark"] .gdzai .gdzai-modal-profile .gdzai-profile-overview {
	--profile-action-border: #49668e;
	--profile-logout-border: #a55060;
	--profile-logout-fill: #412630;
}

body[data-workspace-theme="dark"] .gdzai-profile-wallet-icon { background: #493721; }

@media (max-width: 300px) {
	.gdzai-profile-wallet,
	.gdzai-profile-code-login-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) and (max-height: 700px) {
	body:has(.gdzai-modal-profile:not([hidden]) .gdzai-profile-overview) .gdzpro-toast-wrap.is-dialog-toast:not(.is-compact-toast) {
		top: calc(var(--toast-top, 0px) + env(safe-area-inset-top, 0px) + 84px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gdzai .gdzai-account-topup { transition: none; }
	.gdzai .gdzai-account-topup:active { transform: none; }
}
