@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.rb-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

.rb-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(8px);
}

.rb-modal__dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 520px;
	padding: 34px 30px 26px;
	border-radius: 18px;
	border: 1px solid rgba(0, 255, 120, 0.35);
	background: rgba(8, 10, 12, 0.96);
	box-shadow: 0 0 40px rgba(0, 255, 100, 0.18);
	color: #fff;
	animation: rbFadeIn 0.35s ease;
}

.rb-modal__dialog--help {
	max-width: 480px;
}

.rb-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff7a70, #fe3223);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.rb-modal__kicker {
	color: #00ff88;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.rb-modal__title {
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.2;
	color: #f4fff8;
}

.rb-modal__privilege {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(0, 255, 120, 0.08);
	border: 1px solid rgba(0, 255, 120, 0.25);
}

.rb-modal__privilege-label {
	display: block;
	font-size: 12px;
	color: #9fdcb8;
	margin-bottom: 4px;
}

.rb-modal__privilege strong {
	color: #00ff88;
	font-size: 17px;
}

.rb-modal__text {
	margin: 0 0 16px;
	color: #c8d5cf;
	font-size: 14px;
	line-height: 1.5;
}

.rb-field {
	position: relative;
	margin-bottom: 14px;
}

.rb-field input {
	width: 100%;
	padding: 13px 14px 13px 44px;
	border-radius: 10px;
	border: 1px solid rgba(0, 255, 120, 0.55);
	background: rgba(12, 14, 16, 0.95);
	color: #fff;
	font-size: 15px;
	outline: none;
	box-sizing: border-box;
}

.rb-field input:focus {
	box-shadow: 0 0 0 2px rgba(0, 255, 120, 0.25);
}

.rb-field::before {
	content: attr(data-icon);
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	opacity: 0.9;
}

.rb-btn {
	width: 100%;
	padding: 13px 16px;
	margin-top: 8px;
	border-radius: 10px;
	border: 0;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.rb-btn--primary {
	background: linear-gradient(135deg, #00ff88, #00cc66);
	color: #001a0c;
}

.rb-btn--ghost {
	background: rgba(0, 255, 120, 0.08);
	color: #00ff88;
	border: 1px solid rgba(0, 255, 120, 0.35);
}

.rb-modal__note {
	margin: 14px 0 0;
	font-size: 12px;
	color: #8aa698;
	text-align: center;
	line-height: 1.4;
}

.rb-modal__alert {
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
}

.rb-modal__alert--error {
	background: rgba(255, 80, 80, 0.15);
	border: 1px solid rgba(255, 80, 80, 0.4);
	color: #ffb3b3;
}

.rb-modal__alert--success {
	background: rgba(0, 255, 120, 0.12);
	border: 1px solid rgba(0, 255, 120, 0.35);
	color: #b8ffd8;
}

.rb-modal--help ol {
	padding-left: 20px;
	color: #dce9e2;
}

.rb-modal--help code {
	background: rgba(0, 255, 120, 0.12);
	padding: 2px 6px;
	border-radius: 4px;
	color: #00ff88;
}

@keyframes rbFadeIn {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
	.rb-modal__dialog {
		padding: 28px 20px 22px;
		max-width: 100%;
	}
}

.rb-modal {
	--rb-bg: rgba(8, 10, 12, 0.96);
	--rb-panel: rgba(12, 14, 16, 0.95);
	--rb-accent: #00ff88;
	--rb-accent-2: #00cc66;
	--rb-text: #f4fff8;
	--rb-muted: #c8d5cf;
	--rb-soft: rgba(0, 255, 120, 0.08);
	--rb-border: rgba(0, 255, 120, 0.35);
	--rb-input-border: rgba(0, 255, 120, 0.55);
	--rb-shadow: rgba(0, 255, 100, 0.18);
	--rb-button-text: #001a0c;
}

.rb-style-yellow {
	--rb-bg: rgba(10, 11, 15, 0.97);
	--rb-panel: rgba(13, 15, 20, 0.96);
	--rb-accent: #ff9f16;
	--rb-accent-2: #ff7a00;
	--rb-text: #fff4df;
	--rb-muted: #d8c6aa;
	--rb-soft: rgba(255, 159, 22, 0.08);
	--rb-border: rgba(255, 159, 22, 0.55);
	--rb-input-border: rgba(255, 159, 22, 0.42);
	--rb-shadow: rgba(255, 140, 0, 0.26);
	--rb-button-text: #fff7eb;
}

.rb-style-red {
	--rb-bg: rgba(16, 7, 8, 0.97);
	--rb-panel: rgba(18, 9, 10, 0.96);
	--rb-accent: #ff4b4b;
	--rb-accent-2: #b90016;
	--rb-text: #fff1f1;
	--rb-muted: #e3b6b6;
	--rb-soft: rgba(255, 75, 75, 0.1);
	--rb-border: rgba(255, 75, 75, 0.45);
	--rb-input-border: rgba(255, 75, 75, 0.48);
	--rb-shadow: rgba(255, 50, 50, 0.22);
	--rb-button-text: #fff;
}

.rb-style-white {
	--rb-bg: rgba(247, 249, 252, 0.98);
	--rb-panel: rgba(255, 255, 255, 0.96);
	--rb-accent: #111827;
	--rb-accent-2: #64748b;
	--rb-text: #111827;
	--rb-muted: #475569;
	--rb-soft: rgba(17, 24, 39, 0.05);
	--rb-border: rgba(17, 24, 39, 0.18);
	--rb-input-border: rgba(17, 24, 39, 0.25);
	--rb-shadow: rgba(15, 23, 42, 0.18);
	--rb-button-text: #fff;
}

.rb-style-black {
	--rb-bg: rgba(2, 2, 4, 0.98);
	--rb-panel: rgba(8, 8, 10, 0.98);
	--rb-accent: #d6d6d6;
	--rb-accent-2: #737373;
	--rb-text: #f5f5f5;
	--rb-muted: #a3a3a3;
	--rb-soft: rgba(255, 255, 255, 0.06);
	--rb-border: rgba(255, 255, 255, 0.22);
	--rb-input-border: rgba(255, 255, 255, 0.24);
	--rb-shadow: rgba(255, 255, 255, 0.12);
	--rb-button-text: #090909;
}

.rb-style-blue {
	--rb-bg: rgba(5, 10, 22, 0.97);
	--rb-panel: rgba(7, 16, 33, 0.96);
	--rb-accent: #3ba7ff;
	--rb-accent-2: #005bd1;
	--rb-text: #eaf6ff;
	--rb-muted: #b5cee5;
	--rb-soft: rgba(59, 167, 255, 0.09);
	--rb-border: rgba(59, 167, 255, 0.45);
	--rb-input-border: rgba(59, 167, 255, 0.5);
	--rb-shadow: rgba(59, 167, 255, 0.22);
	--rb-button-text: #fff;
}

.rb-style-pink {
	--rb-bg: rgba(31, 22, 26, 0.97);
	--rb-panel: rgba(47, 36, 41, 0.96);
	--rb-accent: #ff6f7d;
	--rb-accent-2: #d94e61;
	--rb-text: #fff2f4;
	--rb-muted: #d8b7bd;
	--rb-soft: rgba(255, 111, 125, 0.12);
	--rb-border: rgba(255, 111, 125, 0.42);
	--rb-input-border: rgba(255, 111, 125, 0.45);
	--rb-shadow: rgba(255, 98, 117, 0.24);
	--rb-button-text: #fff;
}

.rb-modal__dialog {
	border-color: var(--rb-border);
	background: var(--rb-bg);
	box-shadow: 0 0 40px var(--rb-shadow);
	color: var(--rb-text);
}

.rb-modal__close {
	background: var(--rb-soft);
	border: 1px solid var(--rb-border);
	color: var(--rb-text);
}

.rb-modal__kicker,
.rb-modal__privilege strong,
.rb-btn--ghost,
.rb-modal--help code {
	color: var(--rb-accent);
}

.rb-modal__title,
.rb-field input {
	color: var(--rb-text);
}

.rb-modal__privilege,
.rb-btn--ghost,
.rb-modal--help code {
	background: var(--rb-soft);
	border-color: var(--rb-border);
}

.rb-modal__privilege-label,
.rb-modal__text,
.rb-modal__note,
.rb-modal--help ol {
	color: var(--rb-muted);
}

.rb-field input {
	border-color: var(--rb-input-border);
	background: var(--rb-panel);
}

.rb-field input:focus {
	box-shadow: 0 0 0 2px var(--rb-shadow);
}

.rb-btn--primary {
	background: linear-gradient(135deg, var(--rb-accent), var(--rb-accent-2));
	color: var(--rb-button-text);
}
