/* ===== MERGED CSS: payment.css + style.css ===== */
/* Base & Variables */
:root {
	--primary: #6366f1;
	--primary-hover: #4f46e5;
	--primary-light: #818cf8;
	--accent: #f59e0b;
	--accent-hover: #e69008;
	--text: #1e293b;
	--text-light: #64748b;
	--background: #f8fafc;
	--border: #e2e8f0;
	--border-light: #cbd5e1;
	--radius: 12px;
	--shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
	--error: #ef4444;
	--success: #10b981;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Quicksand', Tahoma, Geneva, Verdana, sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	background: linear-gradient(135deg, #1a2a6c, #2c3e50, #8a828d);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	padding: 20px;
	color: #fff;
	position: relative;
	overflow-x: hidden;
}

/* Main Content Layout */
main {
	width: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

/* Typography & Branding */
.smartlink {
	color: white;
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	letter-spacing: 1px;
}

.smartlink-subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.1rem;
	text-align: center;
	max-width: 80%;
	margin-top: -20px;
}

.br {
	margin: 10px;
}

/* Security Badge & Logo Container */
.security-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	backdrop-filter: blur(5px);
}

.security-badge::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	background: #facc15;
	border-radius: 50%;
	box-shadow: 0 0 10px #facc15;
}

.logo-container {
	text-align: center;
	margin-bottom: 30px;
	animation: fadeIn 1s ease-out;
}

.logo {
	width: 200px;
	margin-bottom: 15px;
	margin-top: 30px;
	filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.portal-title {
	font-size: 32px;
	font-weight: 600;
	letter-spacing: 1px;
	margin-bottom: 5px;
	margin-top: 5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.portal-subtitle {
	font-size: 18px;
	color: #ecf0f1;
	opacity: 0.9;
	max-width: 500px;
	line-height: 1.6;
}

/* Auth Card - Main Payment Container */
.auth-card {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	padding: 30px;
	width: 100%;
	max-width: 450px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.15);
	animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-header {
	text-align: center;
	margin-bottom: 25px;
}

.login-title {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #ecf0f1;
}

.login-description {
	color: #bdc3c7;
	font-size: 16px;
}

/* Tab Navigation */
.tab-nav {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.tab-button {
	padding: 0.8rem 2rem;
	background: none;
	border: none;
	color: var(--text-light);
	font-weight: 700;
	cursor: pointer;
	font-size: 1.25rem;
	position: relative;
}

.tab-button.active {
	color: #fff;
}

.tab-button.active::before {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 3px;
	background: #fff;
	border-radius: 10px;
}

/* Form Elements */
.input-field {
	width: 100%;
	padding: 1.1rem;
	margin-bottom: 1.5rem;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	font-size: 1rem;
	transition: all 0.3s ease;
	background-color: white;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	color: var(--text);
}

.input-field:focus {
	outline: none;
	border-color: var(--primary-light);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* ===== REDESIGNED SELECT DROPDOWN ===== */
.package-select {
	width: 100%;
	padding: 1.1rem 2.5rem 1.1rem 1.5rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	background: white;
	font-size: 1rem;
	font-weight: 500;
	color: #1e293b;
	cursor: pointer;
	transition: all 0.25s ease;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23facc15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 1.2rem center;
	background-size: 1.4rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 1.8rem;
}

.package-select:hover {
	border-color: #facc15;
	background-color: #fffef7;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.package-select:focus {
	outline: none;
	border-color: #facc15;
	box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

/* Style the dropdown options (limited but cleaner) */
.package-select option {
	padding: 12px;
	background: white;
	color: #1e293b;
	font-size: 0.95rem;
	font-weight: 500;
}

.package-select option:disabled {
	color: #94a3b8;
	background: #f1f5f9;
	font-style: italic;
}

.package-select option:checked {
	background: #fef9e3;
	color: #b45309;
}
/* ===== END OF SELECT REDESIGN ===== */

input[type='number'] {
	width: 100%;
	padding: 14px 20px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	color: white;
	font-size: 16px;
	transition: all 0.3s ease;
}

input[type='number']:focus {
	outline: none;
	border-color: #facc15;
	box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
	background: rgba(0, 0, 0, 0.35);
}

/* Buttons */
.login-button,
.btn {
	width: 100%;
	padding: 15px;
	background: #facc15;
	border: none;
	border-radius: 10px;
	color: #000;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(250, 204, 21, 0.2);
}

.login-button:hover,
.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.login-button:active,
.btn:active {
	transform: translateY(0);
}

/* Error & Hint Messages */
.error-message {
	color: var(--error);
	margin-bottom: 1.5rem;
	display: none;
	text-align: center;
	padding: 0.8rem;
	background: rgba(239, 68, 68, 0.08);
	border-radius: var(--radius);
	font-weight: 600;
}

.error-message.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

.oper-hint {
	color: rgb(255, 0, 0);
	text-align: center;
	font-weight: bolder;
	margin-bottom: 10px;
}

/* Notification System */
.notification-container {
	position: fixed;
	top: 1rem;
	right: 1rem;
	max-width: 300px;
	z-index: 1000;
}

.notification {
	padding: 1rem;
	border-radius: var(--radius);
	margin-bottom: 0.5rem;
	animation: slideIn 0.3s ease-out;
	box-shadow: var(--shadow);
}

.notification.success {
	background: #dcfce7;
	color: #166534;
	border-left: 4px solid #166534;
}

.notification.error {
	background: #fee2e2;
	color: #991b1b;
	border-left: 4px solid #991b1b;
}

/* Loading States */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: none;
	place-items: center;
	z-index: 999;
}

.loading-spinner {
	width: 3rem;
	height: 3rem;
	border: 4px solid var(--border);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* Terms & Security Tips */
.terms-section {
	margin-top: 25px;
	text-align: center;
	color: #bdc3c7;
	font-size: 14px;
}

.terms-link {
	color: #facc15;
	text-decoration: none;
	position: relative;
}

.terms-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: #facc15;
	transition: width 0.3s ease;
}

.terms-link:hover::after {
	width: 100%;
}

.security-tips {
	margin-top: 30px;
	padding: 20px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	font-size: 14px;
}

.security-tips h3 {
	margin-bottom: 12px;
	color: #ecf0f1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.security-tips ul {
	padding-left: 20px;
}

.security-tips li {
	margin-bottom: 8px;
	color: #ffffff;
}

.copyright {
	margin-top: 40px;
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

/* Security Modal */
.security-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.security-modal.show {
	display: flex;
	opacity: 1;
}

.modal-content {
	background: linear-gradient(135deg, #1c2833, #2c3e50);
	width: 90%;
	max-width: 600px;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
	transform: scale(0.9);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.security-modal.show .modal-content {
	transform: scale(1);
	opacity: 1;
}

.modal-header {
	background: rgba(0, 0, 0, 0.3);
	padding: 20px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
	font-size: 24px;
	color: #ecf0f1;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.modal-body {
	padding: 30px;
	max-height: 60vh;
	overflow-y: auto;
}

.security-alert {
	background: rgba(231, 76, 60, 0.15);
	border-left: 4px solid #e74c3c;
	padding: 15px;
	margin-bottom: 25px;
	border-radius: 0 8px 8px 0;
}

.modal-text {
	margin-bottom: 20px;
	color: #ecf0f1;
	line-height: 1.7;
}

.modal-list {
	padding-left: 20px;
	margin-bottom: 25px;
}

.modal-list li {
	margin-bottom: 12px;
	color: #bdc3c7;
}

.modal-footer {
	padding: 20px;
	background: rgba(0, 0, 0, 0.3);
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn {
	padding: 12px 35px;
	background: linear-gradient(to right, #3498db, #2980b9);
	border: none;
	border-radius: 8px;
	color: white;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.modal-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Utility & Accessibility */
.hidden {
	display: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Security Icons (SVG backgrounds) */
.security-icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	background-size: contain;
	background-repeat: no-repeat;
	vertical-align: middle;
}
.shield-icon {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23facc15"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 19.9V11h7.94c-.45 3.27-2.07 6.07-4.74 7.9l-3.2-1.34L12 20.9z"/></svg>');
}
.lock-icon {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23facc15"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>');
}
.warning-icon {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>');
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes slideIn {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

/* Responsive Design - Merged Breakpoints */
@media (max-width: 768px) {
	.auth-card {
		padding: 1.8rem;
	}
	.smartlink {
		font-size: 2.2rem;
	}
	.login-container {
		padding: 25px;
	}
	.portal-title {
		font-size: 28px;
	}
	.login-title {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.auth-card {
		padding: 1.5rem;
	}
	.smartlink {
		font-size: 2rem;
	}
	.tab-button {
		padding: 0.7rem 1.5rem;
		font-size: 1.25rem;
	}
	.input-field,
	.package-select {
		padding: 1rem;
	}
	.btn {
		padding: 1rem;
	}
	body {
		padding: 15px;
	}
	.login-container {
		padding: 20px;
	}
	.portal-title {
		font-size: 26px;
	}
	.portal-subtitle {
		font-size: 16px;
	}
	.login-title {
		font-size: 21.5px;
	}
	.buyVoucher a {
		padding: 12px;
		font-size: 16px;
	}

	.logo-container {
		margin-top: 40px;
	}
}


.preselect-notice {
		background: #e8f0fe;
		border-left: 4px solid #0a5c8e;
		padding: 10px 15px;
		border-radius: 8px;
		margin-bottom: 20px;
		font-size: 1rem;
		font-weight: 500;
		color: #0a2b3e;
		display: flex;
		align-items: center;
		gap: 12px;
		flex-wrap: wrap;
}
.error-banner {
		background: #ffe8e6;
		border-left: 4px solid #d9534f;
		color: #a94442;
		padding: 12px;
		border-radius: 8px;
		margin-bottom: 20px;
}

.btn-back {
		background: #6c757d;
		margin-top: 10px;
}

.instructions{
		font-size: 0.76rem;
		color: #d3dce2;
		margin-bottom: 20px;
		text-align: center;
}