/* CSS (تنظیمات ویجت آنلاین و فوتر) */
        
:root {
    --primary-color: #330072;
    --secondary-color: #FFC107;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: #343a40;
    direction: rtl;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0px auto 50px auto;
    padding: 0 15px;
}

/* --- Header / Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    text-align: center;
    position: relative; 
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.hero p {
    font-size: 1.3em;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Alerts --- */
.alert {
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.alert-success {
    background-color: #d4edda;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: var(--danger-color);
    border: 1px solid #f5c6cb;
}

/* --- Domain Cards --- */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.domain-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 5px solid var(--primary-color);
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.domain-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.domain-card .price {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--danger-color);
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.domain-card .action-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

/* --- Form Section --- */
.request-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.request-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
}

/* چیدمان دو ستونه برای نام و ایمیل */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #555;
}

.form-group input[type="text"], 
.form-group input[type="email"], 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    text-align: right;
    direction: rtl;
    font-size: 1em;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s, color 0.3s;
}

.submit-btn:hover {
    background-color: #ffda6a;
}

.info-box {
    background-color: #e9f5ff;
    color: #0056b3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 5px solid #007bff;
}

/* --- Footer --- */
.main-footer {
    background-color: #343a40;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

/* استایل لینک در فوتر */
.main-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.main-footer a:hover {
    color: #fff;
}

/* --- Online Counter Widget (تنظیم شده برای فوتر) --- */
.online-counter {
    /* در فوتر در وسط قرار می‌گیرد */
    margin: 10px auto; 
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    display: inline-flex; 
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: none; 
    line-height: 1; 
}

.online-counter .dot {
    height: 10px;
    width: 10px;
    background-color: var(--danger-color); /* قرمز برای فعال بودن */
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px; 
    margin-right: -2px; 
    animation: breathe 1.5s infinite alternate;
}

/* انیمیشن برای جلب توجه */
@keyframes breathe {
    from { opacity: 0.8; }
    to { opacity: 1; box-shadow: 0 0 5px var(--danger-color); }
}

/* تنظیمات موبایل */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 2.5em;
    }
/* --- New Purchase Info Box Style --- */
.purchase-info-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff3cd; /* رنگ ملایم زرد برای توجه */
    border: 1px solid #ffeeba;
    color: #856404; /* رنگ متن تیره */
    text-align: right; 
}

.purchase-info-box h3 {
    color: #856404;
    font-size: 1.2em;
    border-bottom: 2px solid #ffeeba;
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.purchase-info-box strong {
    font-weight: 700; 
    color: var(--primary-color); /* استفاده از رنگ اصلی (بنفش تیره) برای بولدها */
}

/* استایل جدید برای نمایش خطوط اطلاعات به جای لیست */
.purchase-info-box .info-line {
    display: flex; /* برای قرارگیری آیکون و متن در یک خط */
    align-items: flex-start; /* متن و آیکون از بالا شروع شوند */
    margin: 12px 0;
    line-height: 1.8;
    font-size: 0.95em;
    text-align: right; 
}

/* استایل آیکون */
.purchase-info-box .icon {
    margin-left: 10px; /* فاصله بین آیکون و متن */
    flex-shrink: 0; /* جلوگیری از کوچک شدن آیکون */
}

/* استایل متن */
.purchase-info-box .text {
    flex-grow: 1; /* اجازه رشد به متن */
}

}