/* Juwaa Gaming Connector — front-end styles */

.juwaa-gc-frontend {
	max-width: 420px;
	margin: 1em 0;
}

.juwaa-gc-frontend .juwaa-gc-balance {
	font-size: 1.15em;
}

.juwaa-gc-frontend .juwaa-gc-balance-value {
	font-weight: 700;
}

.juwaa-gc-frontend .juwaa-gc-error {
	color: #b32d2e;
}

.juwaa-gc-topup {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 18px 20px;
	background: #fafafa;
}

.juwaa-gc-topup h3 {
	margin-top: 0;
}

.juwaa-gc-topup label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.juwaa-gc-topup input[type="text"],
.juwaa-gc-topup select {
	width: 100%;
	padding: 8px 10px;
	box-sizing: border-box;
	margin-bottom: 6px;
}

.juwaa-gc-btn {
	background: #2b6cb0;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 18px;
	font-size: 15px;
	cursor: pointer;
}

.juwaa-gc-btn:hover {
	background: #245a94;
}

.juwaa-gc-notice {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 12px;
}

.juwaa-gc-notice-success {
	background: #e6f4ea;
	color: #157a3a;
}

.juwaa-gc-notice-error {
	background: #fce8e8;
	color: #b32d2e;
}

/* Buy-credits form */
.juwaa-gc-buy {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 18px 20px;
	background: #fafafa;
}

.juwaa-gc-buy h3 {
	margin-top: 0;
}

.juwaa-gc-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.juwaa-gc-preset {
	flex: 1 1 auto;
	min-width: 64px;
	padding: 10px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.12s ease;
}

.juwaa-gc-preset:hover {
	border-color: #2b6cb0;
}

.juwaa-gc-preset.is-active {
	background: #2b6cb0;
	border-color: #2b6cb0;
	color: #fff;
}

.juwaa-gc-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 14px;
}

.juwaa-gc-field label {
	font-weight: 600;
	margin-bottom: 4px;
}

.juwaa-gc-field input {
	padding: 10px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	font-size: 15px;
}

.juwaa-gc-hint {
	color: #6b7280;
	font-size: 0.85em;
	margin-top: 4px;
}

/* Registration honeypot — visually hidden but present in the DOM */
.juwaa-gc-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Registration success panel */
.juwaa-gc-success-panel {
	border: 1px solid #cfe8d6;
	border-radius: 8px;
	padding: 20px 22px;
	background: #f2faf5;
}

.juwaa-gc-success-panel h3 {
	margin-top: 0;
	color: #157a3a;
}

.juwaa-gc-cred {
	border-collapse: collapse;
	margin: 12px 0;
}

.juwaa-gc-cred th,
.juwaa-gc-cred td {
	text-align: left;
	padding: 6px 14px 6px 0;
	vertical-align: top;
}

.juwaa-gc-cred th {
	color: #50575e;
	font-weight: 600;
}

a.juwaa-gc-btn {
	display: inline-block;
	text-decoration: none;
	color: #fff;
}

/* Buy-credits popup / modal */
.juwaa-gc-modal[hidden] {
	display: none;
}

.juwaa-gc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.juwaa-gc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.juwaa-gc-modal__dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 26px 24px 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	animation: juwaa-gc-pop 0.16s ease-out;
}

@keyframes juwaa-gc-pop {
	from { transform: translateY(10px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.juwaa-gc-modal__dialog .juwaa-gc-frontend,
.juwaa-gc-modal__dialog .juwaa-gc-buy {
	margin: 0;
	border: 0;
	padding: 0;
	background: transparent;
	max-width: none;
}

.juwaa-gc-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	border-radius: 6px;
}

.juwaa-gc-modal__close:hover {
	background: #f0f0f1;
	color: #1d2327;
}

body.juwaa-gc-modal-open {
	overflow: hidden;
}
