@font-face {
    font-family: Vazirmatn;
    font-style: normal;
    font-weight: normal;
    src: url('fonts/Vazirmatn-Regular.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Vazirmatn, 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: linear-gradient(135deg, #eef5ff 0%, #d9eaff 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* گلاس کارت عمومی */
.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

/* ========== استایل‌های مشترک هدر و فوتر ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.logo-link { text-decoration: none; }
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.shop_text {
    display: flex;
    flex-direction: column;
}
.shop-name {
    font-weight: bold;
    font-size: 1.6rem;
    color: #0a4b6e;
    white-space: nowrap;
}
.service-name {
    font-size: 0.85rem;
    color: #2c7da0;
    margin-top: 4px;
}
.logo-area img {
    max-height: 70px;
    width: auto;
}
.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-yellow {
    background: #ffb74d;
    color: #3e2723;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.2s;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(255,183,77,0.3);
}
.btn-yellow:hover {
    background: #ffa726;
    transform: scale(1.02);
}
/* فوتر */
.footer-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(14px);
    border-radius: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.6);
    margin-top: 2rem;
}
.footer-column {
    flex: 1;
    min-width: 200px;
}
.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0a4b6e;
    border-right: 4px solid #2c7da0;
    padding-right: 0.8rem;
}
.footer-column address, .footer-column p {
    font-style: normal;
    line-height: 1.6;
}
.phone-link {
    text-decoration: none;
    color: #0b5e7e;
    font-weight: bold;
}
.service-list {
    list-style: none;
    padding: 0;
}
.service-list li {
    margin: 0.5rem 0;
    cursor: pointer;
    transition: 0.2s;
}
.service-list li:hover {
    transform: translateX(-5px);
    color: #5fa8c3;
}
.license-box {
    text-align: center;
}
.license-box img {
    max-width: 90px;
    margin: 0.5rem;
    cursor: pointer;
    border-radius: 12px;
}
.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #3a5e7a;
    margin-top: 1rem;
}

/* ========== استایل‌های صفحه اصلی (ایندکس) ========== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.hero-image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.hero-image-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}
.hero-content {
    padding: 2rem;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0a4b6e;
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #1f5e7a;
    margin-bottom: 1.5rem;
    border-right: 4px solid #2c7da0;
    padding-right: 1rem;
}
.typed-cursor {
    display: inline-block;
    width: 3px;
    background-color: #0a4b6e;
    margin-right: 4px;
    animation: blink 0.7s infinite;
    font-weight: normal;
    direction: ltr;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* بخش ارتباط */
.contact-methods { margin-top: 1rem; }
.contact-group {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}
#priority-support { border-right: 4px solid #2c7da0; }
#phone-support { border-right: 4px solid #e63946; }
.group-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #0a4b6e;
}
.contact-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}
.rubika-btn, .phone-btn.secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}
.rubika-btn {
    background: #1e88e5;
    color: white;
}
.rubika-btn.primary {
    background: #0b5e7e;
    box-shadow: 0 4px 10px rgba(11, 94, 126, 0.3);
}
.rubika-btn:hover {
    transform: translateY(-2px);
    background: #0a4b6e;
}
.phone-btn.secondary {
    background: #e9ecef;
    color: #2c3e50;
    border: 1px solid #ced4da;
}
.phone-btn.secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}
.group-note {
    font-size: 0.85rem;
    color: #2c3e50;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.6rem;
    border-radius: 1rem;
    line-height: 1.5;
}
.group-note.warning {
    background: rgba(230, 57, 70, 0.08);
    color: #a11d2b;
}
/* بخش خدمات */
.section-title {
    font-size: 1.8rem;
    color: #0a4b6e;
    margin-bottom: 1.5rem;
    border-right: 6px solid #2c7da0;
    padding-right: 1rem;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.service-card {
    background: rgba(255,255,255,0.4);
    border-radius: 1.5rem;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
}
.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.service-card .icon {
    font-size: 2.2rem;
    color: #0a4b6e;
    margin-bottom: 0.8rem;
    transition: 0.2s;
}
.service-card:hover .icon {
    transform: scale(1.05);
    color: #2c7da0;
}
.service-card h3 {
    color: #0a4b6e;
    margin-bottom: 0.3rem;
}
.more-services {
    text-align: center;
}
.more-services a {
    background: rgba(44,125,160,0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 3rem;
    text-decoration: none;
    color: #2c7da0;
    font-weight: bold;
    transition: 0.2s;
}
.more-services a:hover {
    background: #2c7da0;
    color: white;
}
/* درباره ما */
.about-section { padding: 1.5rem; }
.about-text {
    line-height: 1.7;
    color: #1e2f3d;
    margin-bottom: 1.5rem;
}
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.badge {
    background: rgba(44,125,160,0.1);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
}
/* سوالات متداول (عمومی) */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: rgba(255,255,255,0.4);
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
}
.faq-question {
    font-weight: bold;
    color: #1f5e7a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: "▼";
    font-size: 0.8rem;
    transition: 0.2s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0;
}
.faq-item.active .faq-question::after {
    content: "▲";
}
.faq-item.active .faq-answer {
    max-height: 300px;
    margin-top: 10px;
}

/* ========== استایل‌های صفحات ایران دیجیتال ========== */
/* بخش عنوان */
.hero-section {
    text-align: center;
}
.hero-section h1 {
    font-size: 2rem;
    color: #0a4b6e;
    margin-bottom: 0.5rem;
}
.subtitle {
    font-size: 1.2rem;
    color: #1f5e7a;
    margin-bottom: 1rem;
}
.rubika-line {
    margin: 1rem 0;
}
.rubika-link {
    background: rgba(44,125,160,0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 3rem;
    text-decoration: none;
    color: #0a4b6e;
    font-weight: bold;
    display: inline-block;
    transition: 0.2s;
}
.rubika-link:hover {
    background: #2c7da0;
    color: white;
}
.urgent-note {
    font-size: 0.85rem;
    background: rgba(230,57,70,0.1);
    padding: 0.5rem;
    border-radius: 1rem;
    text-align: center;
    color: #a11d2b;
    max-width: 500px;
    margin: 0 auto;
}
/* پاسخ سوالات */
.answers-section {
    margin-bottom: 2rem;
}
.answer-item {
    background: rgba(255,255,255,0.4);
    border-radius: 1.5rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.6);
}
.question {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: #0a4b6e;
}
.code-wrapper {
    background: rgba(2, 6, 23, 0.85);
    border-radius: 1rem;
    padding: 1rem;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}
.code-wrapper pre {
    color: #e0f2fe;
    font-family: monospace;
    font-size: 0.9rem;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.copy-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: inline-block;
}
.copy-btn:hover {
    background: #0a4b6e;
}
/* کال‌آوت */
.callout-box {
    background: rgba(44,125,160,0.15);
    border-right: 4px solid #2c7da0;
    padding: 1.2rem;
    border-radius: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}
.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0a4b6e;
}
/* نظرات کاربران (اسلایدر) */
.testimonials-section {
    margin: 2rem 0;
}
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
}
.testimonial-card {
    flex: 0 0 280px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    padding: 1rem;
    scroll-snap-align: start;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.6);
}
.testimonial-text {
    font-size: 0.9rem;
    color: #1e2f3d;
    margin-bottom: 0.5rem;
}
.stars {
    color: #ffb74d;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
.author {
    font-weight: bold;
    color: #0a4b6e;
}
/* دکمه شناور روبیکا (صفحات ایران دیجیتال) */
.floating-rubika {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 1000;
}
.floating-rubika a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: #ffb74d;
    color: #3e2723;
    border-radius: 50%;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.floating-rubika a:hover {
    background-color: #ffa726;
    transform: scale(1.1);
}

/* ========== المان‌های مشترک بین همه صفحات ========== */
/* دکمه شناور تماس (فقط صفحه اصلی) */
.floating-call {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 1000;
}
.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: #e63946;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.call-button:hover {
    background-color: #c1121f;
    transform: scale(1.1);
}
/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c7da0;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #1f5e7a;
    transform: translateY(-5px);
}
/* مودال انتخاب مسیر ایران دیجیتال */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    max-width: 500px;
    width: 90%;
    margin: auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #2c3e50;
    transition: 0.2s;
}
.modal-close:hover {
    color: #e63946;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.modal-header h2 {
    color: #0a4b6e;
    margin: 0;
}
.modal-question {
    font-size: 1.1rem;
    color: #1f5e7a;
    margin-bottom: 1.5rem;
}
.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.modal-btn {
    padding: 0.7rem 1.2rem;
    border-radius: 3rem;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
}
.final-btn {
    background: #2c7da0;
    color: white;
}
.final-btn:hover {
    background: #0a4b6e;
    transform: scale(1.02);
}
.primary-btn {
    background: #ffb74d;
    color: #3e2723;
}
.primary-btn:hover {
    background: #ffa726;
    transform: scale(1.02);
}
.modal-note {
    font-size: 0.8rem;
    color: #2c3e50;
    margin-top: 1rem;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 900px) {
    .main-grid { grid-template-columns: 1fr; }
    .header {
        flex-direction: column;
        text-align: center;
    }
    .shop-name {
        font-size: 1.2rem;
        white-space: normal;
    }
    .shop_text { align-items: center; }
}
@media (max-width: 768px) {
    .header-buttons {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
    }
    .btn-yellow {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        flex: 1;
        text-align: center;
    }
    .hero-section h1 { font-size: 1.5rem; }
    .footer-new { flex-direction: column; text-align: center; }
    .footer-column h4 {
        border-right: none;
        border-bottom: 2px solid #2c7da0;
        display: inline-block;
        padding-bottom: 5px;
    }
    .contact-items {
        flex-direction: column;
        align-items: stretch;
    }
    .rubika-btn, .phone-btn.secondary {
        justify-content: center;
        text-align: center;
    }
    .group-title { font-size: 0.9rem; }
    .group-note { font-size: 0.75rem; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn-yellow {
        font-size: 0.65rem;
        padding: 0.3rem 0.4rem;
    }
}
/* -----------------sampad------------------- */
/* ========== استایل‌های مخصوص صفحه سمپاد (تیزهوشان) ========== */
.sampad-logo-box {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sampad-logo-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}
.right-request {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.7);
}
.urgent-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0a4b6e;
    margin-bottom: 1.5rem;
    border-right: 6px solid #2c7da0;
    padding-right: 1rem;
}
.price-box {
    background: rgba(44, 125, 160, 0.1);
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    margin: 1rem 0 1.5rem 0;
    text-align: center;
    border-right: 4px solid #2c7da0;
}
.price-text {
    font-weight: bold;
    font-size: 1.1rem;
    color: #0a4b6e;
}
.price-footnote {
    font-size: 0.8rem;
    color: #2c7da0;
    text-align: center;
    margin-top: 5px;
}
.phone-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 2rem;
}
.phone-btn {
    background: #0b5e7e;
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    transition: 0.2s;
}
.phone-btn:hover {
    background: #094c66;
    transform: translateY(-2px);
}
.form-box {
    margin-top: 1rem;
}
.form-box h3 {
    color: #0f3b5c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 2rem;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    outline: none;
    border: 1px solid rgba(0,0,0,0.05);
}
.form-group input:focus {
    border-color: #2c7da0;
    background: white;
}
.submit-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 3rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: 0.2s;
}
.submit-btn:hover {
    background: #1f5e7a;
}
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.note {
    font-size: 0.75rem;
    color: #4a627a;
    margin-top: 0.8rem;
    text-align: center;
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    .phone-buttons {
        gap: 8px;
    }
    .phone-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
    .urgent-title {
        font-size: 1.4rem;
    }
}