body.dark-mode .flex-pay svg {
    filter: none;
    fill: currentColor;
}

body.dark-mode .flex-pay {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%) !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
    padding: 30px !important;
    border-radius: 15px !important;
}

body.dark-mode .flex-pay input[type="number"] {
    background-color: rgba(42, 42, 42, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #e0e0e0 !important;
}

body.dark-mode .flex-pay input[type="number"]::placeholder {
    color: #999 !important;
}

body.dark-mode .flex-pay-button {
    background-color: #f2507e !important;
    color: #fff !important;
}

body.dark-mode .flex-pay-button:hover {
    background-color: #e0406e !important;
    color: #fff !important;
}

.flex-pay {
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
		padding: 30px !important;
		border-radius: 15px !important;
		box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
		margin-bottom: 30px !important;
		margin-top: 0 !important;
		border: none !important;
		display: block !important;
		flex-direction: column !important;
		justify-content: flex-start !important;
		align-items: flex-start !important;
	}

.flex-pay-header {
		text-align: center;
		margin-bottom: 20px;
		width: 100%;
	}

.flex-pay p {
		position: static !important;
		margin: 0 !important;
	}

.flex-pay p span {
		float: none !important;
		display: inline !important;
		width: auto !important;
		height: auto !important;
		line-height: normal !important;
		position: static !important;
		font-size: inherit !important;
		padding: 0 !important;
	}

.flex-pay p:first-child::before {
		display: none !important;
	}

.flex-pay p:first-child span:last-child::after {
		display: none !important;
	}

.flex-pay p button {
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

.flex-pay-avatar {
		width: 70px;
		height: 70px;
		background: rgba(255, 255, 255, 0.15);
		border-radius: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 15px;
		backdrop-filter: blur(10px);
		overflow: hidden;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	}

.flex-pay-avatar img {
		width: 120%;
		height: 120%;
		object-fit: cover;
		display: block;
	}

.flex-pay-title {
		color: white;
		font-size: 20px;
		font-weight: 600;
		margin: 0 0 8px 0;
	}

.flex-pay-subtitle {
		color: rgba(255, 255, 255, 0.9);
		font-size: 14px;
		margin: 0;
	}

.flex-pay-form-group {
		margin-bottom: 20px;
	}

.flex-pay-input-row {
		display: flex;
		flex-direction: row;
		gap: 15px;
		flex-wrap: wrap;
	}

.flex-pay-input-wrapper {
		flex: 1;
		min-width: 200px;
	}

.flex-pay-label {
		display: block;
		color: rgba(255, 255, 255, 0.9);
		font-size: 13px;
		margin-bottom: 8px;
		font-weight: 500;
	}

.flex-pay-label svg {
		width: 16px;
		height: 16px;
		fill: white;
		vertical-align: middle;
		margin-right: 5px;
	}

.flex-pay-input {
		width: 100% !important;
		padding: 12px 15px !important;
		border: 2px solid rgba(255, 255, 255, 0.3) !important;
		border-radius: 10px !important;
		font-size: 16px !important;
		background: rgba(255, 255, 255, 0.95) !important;
		transition: all 0.3s ease !important;
		box-sizing: border-box !important;
		color: #333 !important;
		height: auto !important;
		line-height: normal !important;
	}

.flex-pay p input[type="number"] {
		width: 100% !important;
		padding: 12px 15px !important;
		border: 2px solid rgba(255, 255, 255, 0.3) !important;
		border-radius: 10px !important;
		font-size: 16px !important;
		background: rgba(255, 255, 255, 0.95) !important;
		height: auto !important;
		line-height: normal !important;
	}

.flex-pay-input:focus {
		border-color: white;
		background: white;
		outline: none;
	}

.flex-pay-input[readonly] {
		background: rgba(255, 255, 255, 0.7);
		color: #666;
		cursor: not-allowed;
	}

.flex-pay-button {
		width: 100% !important;
		padding: 15px !important;
		background: #f2507e !important;
		color: #fff !important;
		border: none !important;
		border-radius: 12px !important;
		font-size: 18px !important;
		font-weight: 700 !important;
		cursor: pointer !important;
		box-shadow: 0 4px 15px rgba(242, 80, 126, 0.3) !important;
		transition: all 0.3s ease !important;
		position: relative !important;
		overflow: hidden !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 8px !important;
		margin: 0 !important;
		margin-top: 0 !important;
		margin-left: 0 !important;
		max-width: 100% !important;
		text-align: center !important;
	}

.flex-pay p button,
	.flex-pay button {
		color: #fff !important;
		margin-top: 0 !important;
		margin-left: 0 !important;
		background: #f2507e !important;
		text-align: center !important;
		display: flex !important;
		border-radius: 12px !important;
		border: none !important;
		padding: 15px !important;
		font-size: 18px !important;
		width: 100% !important;
		max-width: 100% !important;
	}

.flex-pay-button:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 20px rgba(242, 80, 126, 0.4) !important;
		background: #e0406e !important;
	}

.flex-pay-button svg {
		width: 22px;
		height: 22px;
		fill: #fff;
		flex-shrink: 0;
	}

body.dark-mode .flex-pay-button svg {
		fill: #fff !important;
	}

body.dark-mode .flex-pay {
		background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%) !important;
		border-color: #444 !important;
	}

body.dark-mode .flex-pay-title,
	body.dark-mode .flex-pay-subtitle,
	body.dark-mode .flex-pay-label {
		color: rgba(255, 255, 255, 0.9);
	}

body.dark-mode .flex-pay-input {
		background-color: rgba(42, 42, 42, 0.95);
		border-color: rgba(255, 255, 255, 0.3);
		color: #e0e0e0;
	}

body.dark-mode .flex-pay-input:focus {
		border-color: white;
		background: #2a2a2a;
	}

body.dark-mode .flex-pay-input[readonly] {
		background: rgba(42, 42, 42, 0.7);
		color: #999;
	}

body.dark-mode .flex-pay-input::placeholder {
		color: rgba(255, 255, 255, 0.5);
	}

@media (max-width: 768px) {
	.flex-pay {
		padding: 20px !important;
	}

	.flex-pay-input-row {
		flex-direction: column;
	}

	.flex-pay-input-wrapper {
		min-width: 100%;
	}
}

body.dark-mode .flex-popup {
    background-color: rgba(0, 0, 0, 0.85);
}

body.dark-mode .flex-popup-con {
    background-color: #1a1a1a !important;
    color: #e0e0e0;
}

.flex-popup,
	.export-popup,
	.auth-modal {
		display: none;
		position: fixed;
		z-index: 10000;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.7);
		align-items: center;
		justify-content: center;
		overflow-y: auto;
		padding: 20px;
	}

.flex-popup.active,
	.export-popup.active,
	.auth-modal.active {
		display: flex;
	}

.flex-popup-con,
	.export-popup-con,
	.auth-modal-content {
		position: relative;
		background-color: #fff;
		margin: auto;
		padding: 30px;
		border-radius: 12px;
		width: 90%;
		max-width: 500px;
		max-height: 90vh;
		overflow-y: auto;
		animation: modalFadeIn 0.3s;
	}

.flex-popup-con,
	.export-popup-con {
		max-width: 500px;
		padding: 0.75rem 24px;
	}

body.dark-mode .flex-popup,
	body.dark-mode .export-popup,
	body.dark-mode .auth-modal {
		background-color: rgba(0, 0, 0, 0.85);
	}

body.dark-mode .flex-popup-con,
	body.dark-mode .export-popup-con,
	body.dark-mode .auth-modal-content {
		background-color: #1a1a1a;
		color: #e0e0e0;
	}

.flex-popup-con::-webkit-scrollbar,
	.export-popup-con::-webkit-scrollbar,
	.auth-modal-content::-webkit-scrollbar {
		width: 6px;
	}

.flex-popup-con::-webkit-scrollbar-track,
	.export-popup-con::-webkit-scrollbar-track,
	.auth-modal-content::-webkit-scrollbar-track {
		background: transparent;
	}

.flex-popup-con::-webkit-scrollbar-thumb,
	.export-popup-con::-webkit-scrollbar-thumb,
	.auth-modal-content::-webkit-scrollbar-thumb {
		background: #ccc;
		border-radius: 3px;
	}

body.dark-mode .flex-popup-con::-webkit-scrollbar-thumb,
	body.dark-mode .export-popup-con::-webkit-scrollbar-thumb,
	body.dark-mode .auth-modal-content::-webkit-scrollbar-thumb {
		background: #555;
	}

body.dark-mode .flex-popup-con::-webkit-scrollbar-thumb:hover,
	body.dark-mode .export-popup-con::-webkit-scrollbar-thumb:hover,
	body.dark-mode .auth-modal-content::-webkit-scrollbar-thumb:hover {
		background: #666;
	}

.flex-popup-con,
		.export-popup-con,
		.auth-modal-content {
			width: 95%;
			padding: 20px;
			max-height: 85vh;
		}

.flex-popup-con {
		padding: 0 !important;
	}

.flex-popup-con .f-header {
		padding: 0 24px !important;
	}

.flex-popup-con main {
		padding: 0 !important;
	}

.flex-popup-con .modal-content-padding {
		padding: 20px 24px !important;
	}

body.dark-mode .flex-popup-con .modal-content-padding {
		padding: 20px 24px !important;
	}

.modal-content {
		position: relative;
		background-color: #fff;
		margin: auto;
		padding: 30px;
		border-radius: 12px;
		width: 90%;
		max-width: 500px;
		max-height: 90vh;
		overflow-y: auto;
		animation: modalFadeIn 0.3s;
		z-index: 99999999 !important;
	}

.modal-content {
		position: relative;
	}

.modal-content .close {
		position: absolute;
		right: 20px;
		top: 20px;
		float: none;
		pointer-events: auto;
		opacity: 1;
		z-index: 10001;
		cursor: pointer;
	}

.modal-content .close:hover,
	.modal-content .close:focus {
		color: #333;
		opacity: 1;
	}

.modal-content .modal-button {
		pointer-events: auto !important;
		cursor: pointer !important;
		z-index: 10;
		position: relative;
		display: inline-block;
		text-decoration: none;
		text-align: center;
	}

.modal-content .close {
		text-decoration: none;
		color: #aaa;
	}

.modal-content .close:hover {
		color: #333;
		text-decoration: none;
	}

.modal-footer {
		position: relative;
		z-index: 10;
	}

.modal-footer .modal-button {
		pointer-events: auto !important;
		cursor: pointer !important;
	}

.modal-header,
	.f-header {
		font-size: 18px;
		font-weight: 700;
		line-height: 24px;
		color: #000;
		display: flex;
		padding: 0;
		align-items: center;
		height: 40px;
		margin-bottom: 20px;
		position: relative;
		justify-content: space-between;
	}

.modal-body {
		font-size: 15px;
		margin-bottom: 20px;
		color: #333;
		line-height: 1.6;
		word-break: keep-all;
		white-space: pre-line;
	}

.modal.modal-success .modal-header {
		color: #43a047;
	}

.modal.modal-error .modal-header {
		color: #e53935;
	}

.modal.modal-warning .modal-header {
		color: #f57c00;
	}

.modal.modal-info .modal-header {
		color: #2196f3;
	}

.modal-footer {
		display: flex;
		justify-content: center;
		gap: 10px;
		margin-top: 20px;
	}

.modal-button,
	.main-popup-box .btn-group button,
	.file-popup-box div > a {
		padding: 12px 24px;
		font-size: 15px;
		border: none;
		border-radius: 8px;
		cursor: pointer;
		transition: all 0.3s;
		font-weight: 500;
	}

.modal-button {
		background-color: #f2507e;
		color: #fff;
		pointer-events: auto !important;
		cursor: pointer !important;
		z-index: 10;
		position: relative;
		opacity: 1;
		-webkit-user-select: none;
		user-select: none;
	}

.modal-button:hover {
		background-color: #e03d6a;
		transform: translateY(-1px);
	}

.modal-button:active {
		transform: translateY(0);
	}

body.dark-mode .modal-content,
	body.dark-mode .main-popup-box,
	body.dark-mode .file-popup-box,
	body.dark-mode .flex-popup-con,
	body.dark-mode .export-popup-con,
	body.dark-mode .auth-modal-content {
		background-color: #1a1a1a;
		color: #e0e0e0;
	}

body.dark-mode .modal-header,
	body.dark-mode .f-header {
		color: #e0e0e0;
	}

body.dark-mode .modal-body {
		color: #ccc;
	}

body.dark-mode .modal.modal-success .modal-header {
		color: #66bb6a;
	}

body.dark-mode .modal.modal-error .modal-header {
		color: #ef5350;
	}

body.dark-mode .modal.modal-warning .modal-header {
		color: #ffa726;
	}

body.dark-mode .modal.modal-info .modal-header {
		color: #42a5f5;
	}

.modal-content::-webkit-scrollbar,
	.main-popup-box::-webkit-scrollbar,
	.file-popup-box::-webkit-scrollbar,
	.flex-popup-con::-webkit-scrollbar,
	.export-popup-con::-webkit-scrollbar,
	.auth-modal-content::-webkit-scrollbar {
		width: 6px;
	}

.modal-content::-webkit-scrollbar-track,
	.main-popup-box::-webkit-scrollbar-track,
	.file-popup-box::-webkit-scrollbar-track,
	.flex-popup-con::-webkit-scrollbar-track,
	.export-popup-con::-webkit-scrollbar-track,
	.auth-modal-content::-webkit-scrollbar-track {
		background: transparent;
	}

.modal-content::-webkit-scrollbar-thumb,
	.main-popup-box::-webkit-scrollbar-thumb,
	.file-popup-box::-webkit-scrollbar-thumb,
	.flex-popup-con::-webkit-scrollbar-thumb,
	.export-popup-con::-webkit-scrollbar-thumb,
	.auth-modal-content::-webkit-scrollbar-thumb {
		background: #ccc;
		border-radius: 3px;
	}

body.dark-mode .modal-content::-webkit-scrollbar-thumb,
	body.dark-mode .main-popup-box::-webkit-scrollbar-thumb,
	body.dark-mode .file-popup-box::-webkit-scrollbar-thumb,
	body.dark-mode .flex-popup-con::-webkit-scrollbar-thumb,
	body.dark-mode .export-popup-con::-webkit-scrollbar-thumb,
	body.dark-mode .auth-modal-content::-webkit-scrollbar-thumb {
		background: #555;
	}

body.dark-mode .modal-content::-webkit-scrollbar-thumb:hover,
	body.dark-mode .main-popup-box::-webkit-scrollbar-thumb:hover,
	body.dark-mode .file-popup-box::-webkit-scrollbar-thumb:hover,
	body.dark-mode .flex-popup-con::-webkit-scrollbar-thumb:hover,
	body.dark-mode .export-popup-con::-webkit-scrollbar-thumb:hover,
	body.dark-mode .auth-modal-content::-webkit-scrollbar-thumb:hover {
		background: #666;
	}

.modal-content,
		.main-popup-box,
		.file-popup-box,
		.flex-popup-con,
		.export-popup-con,
		.auth-modal-content {
			width: 95%;
			padding: 20px;
			max-height: 85vh;
		}

.modal-button-gradient {
		width: 100%;
		padding: 20px 15px;
		margin-bottom: 15px;
		color: white;
		border: none;
		border-radius: 12px;
		font-size: 18px;
		cursor: pointer;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
		transition: all 0.3s ease;
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		overflow: hidden;
		gap: 12px;
		font-weight: 600;
	}

.modal-button-gradient:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	}

.modal-button-gradient:active {
		transform: translateY(0);
	}

.modal-button-gradient::before {
		content: '';
		position: absolute;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
		transition: left 0.5s;
	}

.modal-button-gradient:hover::before {
		left: 100%;
	}

.modal-button-gradient svg {
		width: 28px;
		height: 28px;
		fill: white;
		flex-shrink: 0;
	}

.modal-button-gradient .arrow {
		position: absolute;
		right: 20px;
		font-size: 24px;
		opacity: 0.7;
	}

