/* UltraLight - وزن 200 */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('https://cdn13.sarvjobs.com/uploads/dev/assets/fonts/woff2/IRANSans_UltraLight.woff2') format('woff2'),
         url('https://cdn14.sarvjobs.com/uploads/dev/assets/fonts/woff/IRANSans_UltraLight.woff') format('woff'),
         url('https://cdn15.sarvjobs.com/uploads/dev/assets/fonts/ttf/IRANSans_UltraLight.ttf') format('truetype'),
         url('https://cdn16.sarvjobs.com/uploads/dev/assets/fonts/eot/IRANSans_UltraLight.eot') format('embedded-opentype');
}

/* Light - وزن 300 */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('https://cdn17.sarvjobs.com/uploads/dev/assets/fonts/woff2/IRANSans_Light.woff2') format('woff2'),
         url('https://cdn18.sarvjobs.com/uploads/dev/assets/fonts/woff/IRANSans_Light.woff') format('woff'),
         url('https://cdn19.sarvjobs.com/uploads/dev/assets/fonts/ttf/IRANSans_Light.ttf') format('truetype'),
         url('https://cdn20.sarvjobs.com/uploads/dev/assets/fonts/eot/IRANSans_Light.eot') format('embedded-opentype');
}

/* Regular - وزن 400 */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdn21.sarvjobs.com/uploads/dev/assets/fonts/woff2/IRANSans.woff2') format('woff2'),
         url('https://cdn22.sarvjobs.com/uploads/dev/assets/fonts/woff/IRANSans.woff') format('woff'),
         url('https://cdn23.sarvjobs.com/uploads/dev/assets/fonts/ttf/IRANSans.ttf') format('truetype'),
         url('https://cdn24.sarvjobs.com/uploads/dev/assets/fonts/eot/IRANSans.eot') format('embedded-opentype');
}

/* Medium - وزن 500 */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://cdn25.sarvjobs.com/uploads/dev/assets/fonts/woff2/IRANSans_Medium.woff2') format('woff2'),
         url('https://cdn26.sarvjobs.com/uploads/dev/assets/fonts/woff/IRANSans_Medium.woff') format('woff'),
         url('https://cdn27.sarvjobs.com/uploads/dev/assets/fonts/ttf/IRANSans_Medium.ttf') format('truetype'),
         url('https://cdn28.sarvjobs.com/uploads/dev/assets/fonts/eot/IRANSans_Medium.eot') format('embedded-opentype');
}

/* Bold - وزن 700 */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://cdn29.sarvjobs.com/uploads/dev/assets/fonts/woff2/IRANSans_Bold.woff2') format('woff2'),
         url('https://cdn30.sarvjobs.com/uploads/dev/assets/fonts/woff/IRANSans_Bold.woff') format('woff'),
         url('https://cdn31.sarvjobs.com/uploads/dev/assets/fonts/ttf/IRANSans_Bold.ttf') format('truetype'),
         url('https://cdn32.sarvjobs.com/uploads/dev/assets/fonts/eot/IRANSans_Bold.eot') format('embedded-opentype');
}

/* Black - وزن 900 */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdn33.sarvjobs.com/uploads/dev/assets/fonts/woff2/IRANSans_Black.woff2') format('woff2'),
         url('https://cdn34.sarvjobs.com/uploads/dev/assets/fonts/woff/IRANSans_Black.woff') format('woff'),
         url('https://cdn35.sarvjobs.com/uploads/dev/assets/fonts/ttf/IRANSans_Black.ttf') format('truetype'),
         url('https://cdn36.sarvjobs.com/uploads/dev/assets/fonts/eot/IRANSans_Black.eot') format('embedded-opentype');
}

/* اعمال فونت به تمام عناصر */
* {
    font-family: 'IRANSans', Tahoma, sans-serif !important;
}

/* تنظیمات پیش‌فرض برای بدنه */
body {
    font-family: 'IRANSans', Tahoma, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
}


/* کلاس‌های کمکی برای وزن‌های مختلف */
.font-ultralight { font-weight: 200 !important; }
.font-light { font-weight: 300 !important; }
.font-regular { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }
.font-black { font-weight: 900 !important; }

/* تنظیمات خاص برای عناوین */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* تنظیمات برای Bootstrap (اگر استفاده می‌کنید) */
.btn { font-weight: 500; }
.navbar-nav .nav-link { font-weight: 500; }
.card-title { font-weight: 700; }

/* تنظیمات برای فرم‌ها */
input, textarea, select {
    font-family: 'IRANSans', Tahoma, sans-serif !important;
    font-weight: 400;
}

:root {
	--primary-color: #2e7d32;
	--primary-light: #4caf50;
	--primary-dark: #1b5e20;
	--secondary-color: #f5f5f5;
	--accent-color: #ff9800;
	--text-color: #333;
	--light-text: #666;
}

body {
	color: var(--text-color);
	padding-top: 76px;
}

/* Header Styles */
.navbar {
	background-color: white;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	padding: 15px 0;
}

.navbar-brand {
	color: var(--primary-color) !important;
	font-weight: bold;
	font-size: 1.5rem;
}

.navbar-brand i {
	color: var(--primary-color);
}

.nav-link {
	color: var(--text-color) !important;
	font-weight: 500;
	margin: 0 5px;
	transition: color 0.3s;
}

.nav-link:hover {
	color: var(--primary-color) !important;
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-primary:hover {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}

.btn-outline-primary {
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-outline-primary:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

/* Footer */
.footer {
	background-color: #1a1a1a;
	color: #ddd;
	padding-top: 60px;
}

.footer-logo {
	color: white;
	font-weight: bold;
	font-size: 1.5rem;
	margin-bottom: 20px;
	display: inline-block;
}

.footer h5 {
	color: white;
	margin-bottom: 20px;
	font-weight: 600;
}

.footer-links {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	color: #aaa;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-links a:hover {
	color: white;
}

.certificates img {
	max-width: 100px;
	margin-bottom: 10px;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: #333;
	color: white;
	border-radius: 50%;
	margin: 0 5px;
	transition: all 0.3s;
}

.social-icons a:hover {
	background-color: var(--primary-color);
	transform: translateY(-3px);
}

.copyright {
	border-top: 1px solid #333;
	padding: 20px 0;
	margin-top: 30px;
	color: #aaa;
	font-size: 0.9rem;
}


/* --------------------------------------------------------- */

/* مودال های کوچک */
.compact-modal .modal-dialog {
	max-width: 420px;
}

.compact-modal .modal-content {
	border-radius: 12px;
	overflow: hidden;
	border: none;
	box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
}

.compact-modal .modal-header {
	border-bottom: none;
	padding: 15px 20px 5px;
	background-color: transparent;
	position: relative;
}

.compact-modal .modal-body {
	padding: 0 20px 15px;
}

.compact-modal .modal-footer {
	border-top: none;
	padding: 10px 20px 20px;
	justify-content: center;
}

/* دکمه تماس */
.call-btn {
	background: linear-gradient(135deg, #2e7d32, #1b5e20);
	color: white;
	border: none;
	padding: 12px 25px;
	border-radius: 30px;
	font-weight: bold;
	font-size: 1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.call-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
	background: linear-gradient(135deg, #1b5e20, #0d4011);
}

/* دکمه بستن */
.btn-close-compact {
	position: absolute;
	left: 15px;
	top: 15px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	color: #666;
	opacity: 0.7;
	transition: all 0.3s ease;
	z-index: 10;
}

.btn-close-compact:hover {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.15);
	transform: rotate(90deg);
}

/* تخفیف برجسته */
.discount-highlight {
	font-size: 2.8rem;
	font-weight: 900;
	background: linear-gradient(135deg, #ff9800, #ff5722);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	margin: 5px 0;
	text-shadow: 0 2px 10px rgba(255, 152, 0, 0.2);
}

.discount-label {
	color: #1b5e20;
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 5px;
}

/* شماره تلفن */
.phone-numbers {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 15px 0;
}

.phone-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 15px;
	background-color: rgba(46, 125, 50, 0.08);
	border-radius: 8px;
	border-right: 3px solid #2e7d32;
}

.phone-icon {
	color: #2e7d32;
	font-size: 1.1rem;
}

.phone-number {
	direction: ltr;
	font-weight: bold;
	font-size: 1rem;
}

/* تاریخ انقضا */
.deadline {
	background-color: rgba(255, 152, 0, 0.1);
	color: #e65100;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: bold;
	display: inline-block;
	margin-top: 10px;
}


/* طرح 2: با پس‌زمینه گرادیان */
.design-2 .modal-header {
	background: linear-gradient(to right, #2e7d32, #1b5e20);
	padding: 20px 20px 15px;
}

.design-2 .header-title {
	color: white;
	font-weight: bold;
	font-size: 1.3rem;
	text-align: center;
}

.design-2 .btn-close-compact {
	color: white;
	background-color: rgba(255, 255, 255, 0.2);
}

/* انیمیشن ورود */
@keyframes slideIn {
	from { opacity: 0; transform: translateY(-30px) scale(0.95); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.compact-modal.fade .modal-dialog {
	animation: slideIn 0.4s ease-out;
}

/* ریسپانسیو */
@media (max-width: 576px) {
	.compact-modal .modal-dialog {
		margin: 10px;
	}
	
	.discount-highlight {
		font-size: 2.3rem;
	}
}




/* --------------------------------------------------------- */	



/* استایل کلی نوار ثابت در پایین صفحه */
.fixed-top-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
	/*background-image: url('https://cdn.sarvjobs.com/uploads/1404/10/06/sarvjobs.com_14041006091331_112219386.jpg');
    background-color: #000000;*/
	   /* گرادیان زمستانی */
    background: linear-gradient(135deg, 
        #0c2461 0%,      /* آبی شب */
        #1e3799 25%,     /* آبی تیره */
        #4a69bd 50%,     /* آبی */
        #6a89cc 75%,     /* آبی روشن */
        #82ccdd 100%     /* آبی آسمانی */
    );
    color: #ffffff;
    padding: 5px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.7);
    border-top: 2px solid #3498db;
    width: 100%;
}

/* محتوای نوار */
.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
}

/* آیتم‌های نوار */
.top-bar-item {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

/* آیکون‌ها */
.icon-wrapper {
	font-size: 2rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.icon-wrapper i {
    font-size: 12px;
}

/* شمارش معکوس */
.countdown-container {
    display: flex;
    align-items: center;
}

.countdown-label {
    color: #FFF; /* آبی روشن */
    font-weight: bold;
    font-size: 11px;
    margin-left: 8px;
    white-space: nowrap;
}

.countdown-items {
    display: flex;
    gap: 4px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}

.countdown-value {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 5px;
    border-radius: 3px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.countdown-label-small {
    font-size: 9px;
    color: #e0e0e0;
    margin-top: 2px;
}

/* تخفیف */
.discount-badge {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    color: white;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(198, 40, 40, 0.4);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.discount-badge i {
    font-size: 10px;
    margin-left: 3px;
}

/* دکمه اقدام */
.action-btn {
    background-color: #36d1dc;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 11px;
    cursor: pointer;
}

.action-btn:hover {
    background-color: #5b86e5;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(91, 134, 229, 0.5);
}

.action-btn i {
    font-size: 10px;
    margin-left: 3px;
}

/* طرح ۱: کلاسیک */
.design-1 .top-bar-content {
    justify-content: space-between;
}

.design-1 .countdown-container {
    border-right: 1px solid #8e0000;
    padding-right: 8px;
    margin-right: 8px;
}

/* استایل برای دسکتاپ */
@media (min-width: 992px) {
    .fixed-top-bar {
        padding: 8px 0;
    }
    
    .top-bar-item {
        margin: 0 10px;
    }
    
    .icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 13px;
    }
    
    .countdown-value {
        font-size: 16px;
        padding: 4px 7px;
        min-width: 30px;
    }
    
    .countdown-label-small {
        font-size: 10px;
    }
    
    .discount-badge {
        padding: 6px 14px;
        font-size: 14px;
    }
    
    .discount-badge i {
        font-size: 12px;
        margin-left: 4px;
    }
    
    .action-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .action-btn i {
        font-size: 12px;
        margin-left: 4px;
    }
}

/* استایل برای موبایل - کامپکت و یک خطی */
@media (max-width: 991px) {
    body {
        padding-bottom: 50px;
    }
    
    .fixed-top-bar {
        padding: 4px 0;
        max-height: 50px;
    }
    
    .top-bar-content {
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 5px;
    }
    
    /* مخفی کردن آیکون و متن "شب یلدا مبارک" در موبایل */
    .design-1 .top-bar-item:first-child span {
        display: none;
    }
    
    .icon-wrapper {
        width: 20px;
        height: 20px;
        margin-left: 3px;
    }
    
    .icon-wrapper i {
        font-size: 1.5rem;
    }
    
    /* تنظیمات شمارش معکوس در موبایل */
    .countdown-container {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        flex: 1;
        justify-content: center;
    }
    
    .countdown-label {
        display: none; /* مخفی کردن متن "زمان باقی‌مانده" در موبایل */
    }
    
    .countdown-items {
        gap: 3px;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 24px;
    }
    
    .countdown-value {
        font-size: 12px;
        padding: 2px 4px;
        min-width: 20px;
    }
    
    .countdown-label-small {
        font-size: 8px;
    }
    
    /* تخفیف در موبایل */
    .discount-badge {
        padding: 3px 8px;
        font-size: 10px;
        margin: 0 5px;
    }
    
    /* دکمه اقدام در موبایل */
    .action-btn {
        padding: 3px 8px;
        font-size: 10px;
        white-space: nowrap;
        margin: 0 5px;
    }
    
    /* نمایش همه آیتم‌ها در یک خط در موبایل */
    .design-1 .top-bar-content {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow: hidden;
    }
    
    .design-1 .top-bar-item {
        flex-shrink: 0;
        margin: 0 2px;
    }
    
    /* تنظیمات برای موبایل‌های خیلی کوچک */
    @media (max-width: 480px) {
        body {
            padding-bottom: 45px;
        }
        
        .fixed-top-bar {
            padding: 3px 0;
            max-height: 45px;
        }
        
        .countdown-item {
            min-width: 20px;
        }
        
        .countdown-value {
            font-size: 11px;
            padding: 1px 3px;
            min-width: 18px;
        }
        
        .countdown-label-small {
            font-size: 7px;
        }
        
        .action-btn {
            padding: 2px 6px;
            font-size: 9px;
        }
        
        .action-btn span {
            display: none; /* مخفی کردن متن دکمه در موبایل کوچک */
        }
        
        .action-btn i {
            margin-left: 0;
        }
    }
    
    /* تنظیمات برای تبلت */
    @media (min-width: 768px) and (max-width: 991px) {
        .fixed-top-bar {
            padding: 5px 0;
        }
        
        .discount-badge {
            display: flex; /* نمایش تخفیف در تبلت */
            font-size: 11px;
            padding: 4px 9px;
        }
        
        .action-btn {
            padding: 4px 9px;
            font-size: 11px;
        }
        
        .countdown-value {
            font-size: 13px;
        }
    }
}

/* تنظیم عرض 100% در تمام دستگاه‌ها */
@media (min-width: 1200px) {
    .fixed-top-bar {
        width: 100%;
        max-width: 100%;
    }
    
    .top-bar-content {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* جلوگیری از درهم‌ریختگی در صفحه‌های خیلی باریک */
@media (max-width: 350px) {
    .countdown-item:nth-child(4) {
        display: none; /* مخفی کردن ثانیه در موبایل خیلی کوچک */
    }
    
    .countdown-item:nth-child(3) {
        display: none; /* مخفی کردن دقیقه در موبایل خیلی کوچک */
    }
}


/*******************************************************/


.bank-modal-header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title .bi {
    font-size: 24px;
}

.bank-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bank-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.bank-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.login-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.login-btn:hover {
    background-color: #e8e8e8;
}

.post-ad-btn {
    background-color: #2e7d32;
    color: white;
    margin-right: 8px;
}

.post-ad-btn:hover {
    background-color: #1b5e20;
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.3);
}

/* مودال ثبت آگهی */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 15px;
}

.ad-modal {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(to right, #2e7d32, #1b5e20);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-content .bi {
    font-size: 18px;
}

.modal-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    line-height: 1;
    padding: 0;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 20px;
}

/* پیام فشرده */
.compact-message {
    margin-bottom: 20px;
}

.message-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.message-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.message-row .bi {
    color: #2e7d32;
    font-size: 16px;
    min-width: 20px;
}

.message-text {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

/* خدمات فشرده */
.compact-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.service-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 5px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.service-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.service-compact .bi {
    color: #2e7d32;
    font-size: 18px;
}

.service-compact small {
    font-size: 11px;
    color: #555;
    font-weight: 600;
    text-align: center;
}

/* شماره‌های فشرده */
.compact-phones {
	display: flex;
    align-items: center;
	gap: 10px;
    background-color: #f1f8e9;
    border-radius: 8px;
    padding: 12px;
    margin: 20px 0;
    border: 1px solid #e8f5e9;
	justify-content: space-evenly;
}

.phone-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
}



.phone-compact .bi {
    color: #2e7d32;
    font-size: 16px;
    min-width: 20px;
}

.phone-num {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: bold;
    color: #222;
    direction: ltr;
    flex: 1;
    letter-spacing: 1px;
}

.copy-compact {
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.2s;
    padding: 0;
}

.copy-compact:hover {
    background-color: #1b5e20;
}

/* دکمه‌های فشرده */
.compact-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-compact {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-action {
    background-color: #2e7d32;
    color: white;
}

.primary-action:hover {
    background-color: #1b5e20;
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.3);
}

.secondary-action {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.secondary-action:hover {
    background-color: #e8e8e8;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .header-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .ad-modal {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .compact-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .compact-actions {
        flex-direction: column;
    }
    
    .phone-num {
        font-size: 14px;
    }
}


/************************************************************************************************/


/* کاهش ارتفاع کلی مودال */
.bank-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: bankModalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.bank-modal-body {
    padding: 20px;
}

/* لایوت فشرده کنار هم */
.compact-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.compact-card-section {
    flex: 0 0 180px;
}

.compact-info-section {
    flex: 1;
}

/* کارت بانکی کوچکتر */
.card-image {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    width: 340px;
    height: 190px;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
    overflow: hidden;
}

.card-chip {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    width: 50px;
    height: 42px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.card-logo .bi {
    font-size: 28px;
}

.card-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 28px;
    font-weight: 600;
    direction: ltr;
    text-align: center;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    width: 100%;
    padding: 0 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.card-holder {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* اطلاعات فشرده */
.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    color: #666;
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
    flex-shrink: 0;
}

.info-value {
    color: #222;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    word-break: break-all;
    flex: 1;
}

.info-value.small {
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* دکمه کپی فشرده */
.copy-info.compact {
    background-color: #2e7d32;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.copy-info.compact:hover {
    background-color: #1b5e20;
    transform: scale(1.1);
}

/* هشدار فشرده */
.important-alert.compact {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ffc107;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.important-alert.compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ff5722);
}

.alert-icon {
    color: #ff9800;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content h4 {
    color: #e65100;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.alert-content .compact-p {
    color: #333;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.phone-highlight {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
}

/* دکمه‌های اقدام فشرده */
.bank-action-buttons.compact {
    display: flex;
    gap: 10px;
}

.bank-action-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .bank-modal {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .compact-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .compact-card-section {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .card-image {
        width: 200px;
        height: 120px;
    }
    
    .card-number {
        font-size: 15px;
    }
    
    .info-label {
        min-width: 80px;
    }
    
    .info-value {
        font-size: 12px;
    }
    
    .bank-action-buttons.compact {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .bank-modal-header {
        padding: 15px 20px;
    }
    
    .bank-modal-header h3 {
        font-size: 16px;
    }
    
    .card-image {
        width: 180px;
        height: 110px;
    }
    
    .card-number {
        font-size: 13px;
    }
    
    .important-alert.compact {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .alert-icon {
        margin-top: 0;
    }
    
    .alert-content h4 {
        margin-bottom: 6px;
    }
}


/* استایل اولیه برای تست */
.bank-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* مهم: ابتدا مخفی است */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

