.gambly-auth,
.gambly-dashboard {
	--gambly-purple: #7f1d98;
	--gambly-purple-dark: #601270;
	--gambly-purple-light: #f7eff9;
	--gambly-heading: #131b2c;
	--gambly-text: #343841;
	--gambly-muted: #70757d;
	--gambly-border: #dfe1e5;
	--gambly-white: #fff;
	--gambly-success: #197a49;
	--gambly-error: #b42318;
	width: 100%;
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
}

.gambly-auth *,
.gambly-dashboard * {
	box-sizing: border-box;
}

.gambly-auth {
	min-height: 680px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 18px;
	background:
		radial-gradient(circle at 12% 12%, rgba(127, 29, 152, .10), transparent 28%),
		linear-gradient(180deg, #fff 0%, #faf8fb 100%);
}

.gambly-auth--register {
	padding-top: 55px;
	padding-bottom: 55px;
}

.gambly-auth__card {
	position: relative;
	width: 100%;
	max-width: 480px;
	padding: 34px 38px 30px;
	overflow: hidden;
	border: 1px solid rgba(127, 29, 152, .14);
	border-radius: 14px;
	background: var(--gambly-white);
	box-shadow: 0 18px 48px rgba(19, 27, 44, .12);
}

.gambly-auth__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, var(--gambly-purple), #ac45c0);
}

.gambly-auth__card--compact {
	max-width: 460px;
	text-align: center;
}

.gambly-auth__logo-link {
	width: fit-content;
	max-width: 220px;
	display: block;
	margin: 0 auto 25px;
	border-radius: 5px;
}

.gambly-auth__logo-link:focus-visible,
.gambly-auth a:focus-visible,
.gambly-dashboard a:focus-visible,
.gambly-dashboard button:focus-visible {
	outline: 3px solid rgba(127, 29, 152, .34);
	outline-offset: 3px;
}

.gambly-auth__logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: 70px;
	object-fit: contain;
}

.gambly-auth__header {
	margin-bottom: 25px;
	text-align: center;
}

.gambly-auth__title {
	margin: 0 0 8px;
	color: var(--gambly-heading);
	font-size: clamp(25px, 4vw, 30px);
	font-weight: 700;
	line-height: 1.2;
}

.gambly-auth__subtitle {
	margin: 0;
	color: var(--gambly-muted);
	font-size: 15px;
	line-height: 1.55;
}

.gambly-auth__message {
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid;
	border-radius: 7px;
	font-size: 14px;
	line-height: 1.5;
}

.gambly-auth__message--error {
	border-color: #f4b9b4;
	background: #fff3f2;
	color: var(--gambly-error);
}

.gambly-auth__message--success {
	border-color: #a9dec2;
	background: #effaf4;
	color: var(--gambly-success);
}

.gambly-auth__field {
	margin-bottom: 19px;
}

.gambly-auth__label {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--gambly-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.gambly-auth__input-wrap {
	position: relative;
}

.gambly-auth__input-icon {
	position: absolute;
	top: 50%;
	left: 15px;
	width: 20px;
	height: 20px;
	color: #81858d;
	transform: translateY(-50%);
	pointer-events: none;
}

.gambly-auth__input-icon svg,
.gambly-auth__password-toggle svg,
.gambly-auth__security svg,
.gambly-dashboard__footer-note svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gambly-auth__input {
	width: 100%;
	height: 50px;
	padding: 0 15px 0 47px;
	border: 1px solid var(--gambly-border);
	border-radius: 7px;
	outline: none;
	background: var(--gambly-white);
	color: var(--gambly-text);
	font: inherit;
	font-size: 15px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.gambly-auth__input--password {
	padding-right: 49px;
}

.gambly-auth__input::placeholder {
	color: #9b9ea4;
}

.gambly-auth__input:hover {
	border-color: #bfc2c7;
}

.gambly-auth__input:focus {
	border-color: var(--gambly-purple);
	box-shadow: 0 0 0 3px rgba(127, 29, 152, .12);
}

.gambly-auth__input-wrap:focus-within .gambly-auth__input-icon {
	color: var(--gambly-purple);
}

.gambly-auth__password-toggle {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #777c84;
	cursor: pointer;
	transform: translateY(-50%);
}

.gambly-auth__password-toggle:hover {
	background: var(--gambly-purple-light);
	color: var(--gambly-purple);
}

.gambly-auth__eye--closed,
.gambly-auth__password-toggle.is-visible .gambly-auth__eye--open {
	display: none;
}

.gambly-auth__password-toggle.is-visible .gambly-auth__eye--closed {
	display: block;
}

.gambly-auth__strength {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 5px;
	margin-top: 9px;
}

.gambly-auth__strength span {
	height: 3px;
	border-radius: 10px;
	background: #e6e7e9;
}

.gambly-auth__strength[data-level="1"] span:nth-child(-n+1) { background: #c62828; }
.gambly-auth__strength[data-level="2"] span:nth-child(-n+2) { background: #e18a16; }
.gambly-auth__strength[data-level="3"] span:nth-child(-n+3) { background: #9a8b14; }
.gambly-auth__strength[data-level="4"] span:nth-child(-n+4) { background: #197a49; }

.gambly-auth__help {
	min-height: 19px;
	margin: 6px 0 0;
	color: var(--gambly-muted);
	font-size: 12.5px;
	line-height: 1.45;
}

.gambly-auth__confirm-message.is-error { color: var(--gambly-error); }
.gambly-auth__confirm-message.is-success { color: var(--gambly-success); }

.gambly-auth__consent,
.gambly-auth__remember {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	color: var(--gambly-text);
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

.gambly-auth__consent {
	margin: 2px 0 22px;
}

.gambly-auth__consent input,
.gambly-auth__remember input {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	margin: 2px 0 0;
	accent-color: var(--gambly-purple);
	cursor: pointer;
}

.gambly-auth__consent a,
.gambly-auth__text-link,
.gambly-auth__alternate a {
	color: var(--gambly-purple);
	font-weight: 700;
	text-decoration: none;
}

.gambly-auth__consent a:hover,
.gambly-auth__text-link:hover,
.gambly-auth__alternate a:hover {
	color: var(--gambly-purple-dark);
	text-decoration: underline;
}

.gambly-auth__options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin: -2px 0 23px;
	font-size: 14px;
}

.gambly-auth__submit,
.gambly-auth__button {
	width: 100%;
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	border: 2px solid var(--gambly-purple);
	border-radius: 7px;
	background: var(--gambly-purple);
	color: var(--gambly-white);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(127, 29, 152, .2);
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gambly-auth__button {
	margin-top: 24px;
}

.gambly-auth__submit:hover,
.gambly-auth__button:hover {
	border-color: var(--gambly-purple-dark);
	background: var(--gambly-purple-dark);
	color: var(--gambly-white);
	box-shadow: 0 10px 22px rgba(127, 29, 152, .26);
	transform: translateY(-1px);
}

.gambly-auth__submit-arrow {
	font-size: 21px;
	font-weight: 400;
	line-height: 1;
	transition: transform .2s ease;
}

.gambly-auth__submit:hover .gambly-auth__submit-arrow {
	transform: translateX(4px);
}

.gambly-auth__alternate {
	margin: 21px 0 0;
	color: var(--gambly-muted);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.gambly-auth__security {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 24px;
	padding-top: 19px;
	border-top: 1px solid #ececef;
	color: var(--gambly-muted);
	font-size: 12.5px;
	line-height: 1.4;
	text-align: center;
}

.gambly-auth__security svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	color: var(--gambly-purple);
}

.gambly-auth__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.gambly-dashboard {
	padding: 60px 20px;
	background:
		radial-gradient(circle at 10% 0%, rgba(127, 29, 152, .15), transparent 33%),
		linear-gradient(145deg, #f7f2f8 0%, #fff 47%, #f5f2f7 100%);
	color: var(--gambly-text);
}

.gambly-dashboard__shell {
	width: min(1080px, 100%);
	margin: 0 auto;
}

.gambly-dashboard__hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	margin-bottom: 28px;
	padding: 34px;
	border-radius: 18px;
	background: linear-gradient(135deg, #681779 0%, #2f0734 100%);
	color: #fff;
	box-shadow: 0 18px 44px rgba(47, 7, 52, .19);
}

.gambly-dashboard__eyebrow,
.gambly-dashboard__panel-kicker {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.gambly-dashboard__eyebrow { color: #f3c9f9; }
.gambly-dashboard__panel-kicker { color: var(--gambly-purple); }

.gambly-dashboard__hero h1 {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(27px, 4vw, 36px);
	line-height: 1.16;
}

.gambly-dashboard__hero p {
	margin: 0;
	color: rgba(255, 255, 255, .78);
	font-size: 16px;
	line-height: 1.55;
}

.gambly-dashboard__avatar {
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	display: grid;
	place-items: center;
	border: 2px solid rgba(255, 255, 255, .34);
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	font-size: 30px;
	font-weight: 800;
	box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .06);
}

.gambly-dashboard__message {
	margin-bottom: 25px;
}

.gambly-dashboard__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
	gap: 24px;
}

.gambly-dashboard__panel {
	padding: 30px;
	border: 1px solid rgba(127, 29, 152, .12);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 13px 34px rgba(19, 27, 44, .08);
}

.gambly-dashboard__panel-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 22px;
}

.gambly-dashboard__panel h2 {
	margin: 0;
	color: var(--gambly-heading);
	font-size: 23px;
	line-height: 1.25;
}

.gambly-dashboard__status {
	padding: 6px 10px;
	border-radius: 999px;
	background: #eaf8f0;
	color: #197a49;
	font-size: 12px;
	font-weight: 800;
}

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

.gambly-dashboard__details div {
	min-width: 0;
	padding: 17px;
	border: 1px solid #e7e2e9;
	border-radius: 10px;
	background: #fcfafc;
}

.gambly-dashboard__details dt {
	margin-bottom: 5px;
	color: var(--gambly-muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.gambly-dashboard__details dd {
	margin: 0;
	overflow-wrap: anywhere;
	color: var(--gambly-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.gambly-dashboard__panel--actions h2 {
	margin-bottom: 20px;
}

.gambly-dashboard__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	padding: 13px 14px;
	border: 1px solid #e5dce7;
	border-radius: 9px;
	background: #fcf9fd;
	color: var(--gambly-heading);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.gambly-dashboard__action:hover {
	border-color: rgba(127, 29, 152, .4);
	background: var(--gambly-purple-light);
	color: var(--gambly-purple);
}

.gambly-dashboard__logout {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
	padding: 13px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--gambly-purple);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

.gambly-dashboard__logout:hover { background: var(--gambly-purple-dark); }

.gambly-dashboard__footer-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 25px;
	color: var(--gambly-muted);
	font-size: 13px;
	text-align: center;
}

.gambly-dashboard__footer-note svg {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	color: var(--gambly-purple);
}

@media (max-width: 760px) {
	.gambly-dashboard { padding: 35px 15px; }
	.gambly-dashboard__grid { grid-template-columns: 1fr; }
	.gambly-dashboard__hero { padding: 28px 24px; }
}

@media (max-width: 600px) {
	.gambly-auth { min-height: auto; padding: 30px 15px; }
	.gambly-auth__card { padding: 30px 22px 25px; border-radius: 10px; }
	.gambly-auth__logo { height: 60px; }
	.gambly-dashboard__details { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
	.gambly-auth { padding: 20px 12px; }
	.gambly-auth__card { padding-right: 17px; padding-left: 17px; }
	.gambly-auth__options { align-items: flex-start; flex-direction: column; gap: 12px; }
	.gambly-auth__security { align-items: flex-start; text-align: left; }
	.gambly-dashboard__hero { align-items: flex-start; flex-direction: column-reverse; }
	.gambly-dashboard__avatar { width: 60px; height: 60px; flex-basis: 60px; font-size: 24px; }
	.gambly-dashboard__panel { padding: 23px 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.gambly-auth__input,
	.gambly-auth__submit,
	.gambly-auth__submit-arrow { transition: none; }
}

