@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/IRANSansWeb(FaNum).eot');
	src: url('../fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
		 url('../fonts/IRANSansWeb(FaNum).woff2') format('woff2'),
		 url('../fonts/IRANSansWeb(FaNum).woff') format('woff'),
		 url('../fonts/IRANSansWeb(FaNum).ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
	font-family: IRANSans;
    box-sizing: border-box;
}

body {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    background: #fff;
	min-height:100vh;
	position:relative;
}

a {
    text-decoration: none;
	color: #2196f3;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="select"],
input[type="date"],
input[type="url"] {
    color: #666;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #ffffff;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="select"]:focus,
input[type="date"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: none;
    box-shadow: none;
}

input[type="file"] {
    color: #999;
    padding: 10px 12px;
    font-size: 0.87rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-control, .form-select, textarea {
	color: #666;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #ffffff;
}

.error {
    background-color: #f4433630;
    border: 1px solid #f4433654;
    border-radius: 5px;
    padding: 8px 15px;
    margin-bottom: 20px;
}

.error p {
    color: #c53228;
    margin-bottom: 5px;
	font-size: 13px;
}

.error p:last-child {
    margin-bottom: 0;
}

.bg-purchase {
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	height:60%;
	background-image:url(../img/tnx-bg.jpg);
	background-size:cover;
	background-position:center;
	border-top-left-radius:100% 40%;
	border-top-right-radius:100% 40%;
	z-index:0;
}
.cont-purchase {
	padding: 20px;
	position:relative;
	z-index:1;
}
.card-pro {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px #00000047;
    margin: auto;
    margin-bottom: 20px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
}
.card-pro img {
    width: 150px;
    margin: 0 auto 20px;
    display: block;
}
.card-pro h2 {
	font-size:18px;
	margin-bottom:15px;
	text-align:center;
}
.card-pro p {
    font-size: 0.78rem;
}
.buttons {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 10px;
}
.purchase .btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    margin: 10px 20px 0;
    transition: .3s;
}
.btn-outline {
	background:#fff;
	border:2px solid #FF9800;
	color:#FF9800;
}
.btn-outline:hover {
	background:#FF9800;
	color:#fff;
}

.alert {
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 13px;
}

.alert-danger {
    background: #fee;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #efffee;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.security-badge {
    padding: 8px;
    background: #607d8b1c;
    border-radius: 10px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

.loading-section {
    text-align: center;
    padding-top: 30px;
}

.spinner {
	border: 5px solid #f3f3f3;
    border-top: 5px solid #607D8B;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fix-Amount {
    text-align: center;
    font-size: 30px;
    font-weight: 600;
}

.fix-Amount span {
    font-size: 14px;
    font-weight: 400;
    padding-right: 5px;
}

.info-row {
    text-align: right;
    margin: 1.5rem 0;
}

.meta-info-unit {
    display: flex;
    padding: 6px 0;
}
.meta-info-unit .title {
	color: #666;
	width: 140px;
	margin-left: 5px;
}
.meta-info-unit .value {
    color: #666;
    margin-right: auto;
}

.msg-icon {
    vertical-align: middle;
    margin-left: 5px;
    display: inline-block;
}

.msg-icon-success {
    color: #27ae60;
}

.msg-icon-error {
    color: #e74c3c;
}

.mb-3 {
    margin-bottom: 1rem;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #10b981;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #3b82f6;
    cursor: pointer;
}

.radio-item input[type="radio"]:focus,
.checkbox-item input[type="checkbox"]:focus {
    outline: none;
}

@media (max-width: 768px) {
    .mb-3 {
        margin-bottom: 0.5rem;
    }
    .radio-group,
    .checkbox-group {
        gap: 0.5rem;
    }
    .radio-item,
    .checkbox-item {
        padding: 0.375rem;
    }
}
@media (max-width: 480px) {
	body {
		font-size: 16px;
	}
	.card-pro {
		padding:20px;
	}
	.cont-purchase {
		padding:10px;
	}
    .recent-payments-container {
		padding: 15px !important;
	}
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	.purchase .btn {
		font-size:16px;
	}
}

.recent-payments-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: auto;
    border: 1px solid #e0e0e0;
    max-width: 600px;
	width: 100%;
}

.recent-payments-container h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.recent-payments-list {
    display: grid;
    gap: 10px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-name .name {
    color: #555;
    font-size: 14px;
    direction: rtl;
}

.payment-name .amount {
    color: #28a745;
    font-size: 13px;
    font-weight: 500;
    background: #f8fff9;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #d4edda;
}

@media (max-width: 768px) {
    .payment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .payment-name .amount {
        align-self: flex-end;
    }
}

.amount-btn {
    padding: 4px 12px;
    color: #836a20;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #ffe082;
}

.amount-btn.active {
    background: #FFECB3;
}

/*=============*/
.gateway-options {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.gateway-option {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid #46606c3d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    background: #607d8b17;
    color: #69879f;
}

.gateway-option:hover {
    border-color: #4ebe97ad;
    background-color: #f8f9fa;
}

.gateway-option input[type="radio"] {
    margin-left: 5px;
}

.gateway-info {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-grow: 1;
}

.gateway-info img {
    max-height: 30px;
    max-width: 60px;
}

.gateway-icon {
    font-size: 24px;
    text-align: center;
}

.redirect-info {
    text-align: center;
    padding: 30px;
}

.support-button {
    position: fixed;
    right: 30px;
    bottom: 20px;
    z-index: 999;
}

.support-button img {
    height: 54px;
    width: 54px;
	transition: .3s;
}

.support-button img:hover {
    height: 57px;
    width: 57px;
}

.support-button .tooltip {
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 10px;
    z-index: 1;
    background-color: #607D8B;
    border-radius: 4px;
    -webkit-box-shadow: 0 3px 20px rgba(106, 102, 112, .15);
    box-shadow: 0 3px 20px rgba(106, 102, 112, .15);
    pointer-events: none;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
}

.support-button .tooltip:before {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 20px;
    width: 10px;
    height: 10px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border-radius: 0 0 3px;
    background-color: #607D8B;
    -webkit-box-shadow: 12px 12px 15px rgba(106, 102, 112, .15);
    box-shadow: 12px 12px 15px rgba(106, 102, 112, .15);
}