html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5I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I2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.pattern-thumb {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid #e7e7e8;
    transition: all 0.2s ease;
    background: #f8f8f8;
    flex-shrink: 0;
}

.pattern-thumb.circle {
    border-radius: 50%;
}




.pattern-thumb:hover {
    box-shadow: 0 0 0 2px #7367f0;
    transform: scale(1.05);
}

.pattern-thumb img {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pattern-thumb:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.pattern-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.pattern-thumb:hover .pattern-thumb-overlay {
    opacity: 1;
    transform: scale(1);
}

/* برای سایزهای کوچیک، آیکن کوچک‌تر */
.pattern-thumb[style*="width: 30px"] .pattern-thumb-overlay,
.pattern-thumb[style*="width: 36px"] .pattern-thumb-overlay {
    font-size: 14px;
}

.swal2-popup {
    max-width: 90vw !important;
}

.swal2-image {
    max-height: 75vh !important;
    width: auto !important;
    margin: 0 auto !important;
    border-radius: 8px;
    object-fit: contain;
}

.pattern-thumb-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    
    transition: all 0.2s ease;
}

.pattern-thumb-wrapper:hover {

    transform: scale(1.05);
}

.pattern-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pattern-thumb-wrapper:hover .pattern-thumb {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.pattern-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pattern-thumb-wrapper:hover .pattern-thumb-overlay {
    opacity: 1;
    transform: scale(1);
}

/* SweetAlert Lightbox */
.swal2-popup.swal-pattern-preview {
    max-width: 90vw !important;
    width: auto !important;
    padding: 1rem !important;
}

    .swal2-popup.swal-pattern-preview .swal2-image {
        max-height: 75vh !important;
        width: auto !important;
        margin: 0 auto !important;
        border-radius: 8px;
        object-fit: contain;
    }

    .swal2-popup.swal-pattern-preview .swal2-title {
        font-size: 1.1rem;
        padding: 0 0 0.75rem 0;
    }

.pattern-size-1rem {
    width: 1rem;
    height: 1rem;
}

.pattern-size-2rem {
    width: 2rem;
    height: 2rem;
}

.pattern-size-3rem {
    width: 3rem;
    height: 3rem;
}

.pattern-size-4rem {
    width: 4rem;
    height: 4rem;
}

.pattern-size-5rem {
    width: 5rem;
    height: 5rem;
}

.pattern-size-6rem {
    width: 6rem;
    height: 6rem;
}

.pattern-size-7rem {
    width: 7rem;
    height: 7rem;
}

.pattern-size-8rem {
    width: 8rem;
    height: 8rem;
}

.pattern-size-9rem {
    width: 9rem;
    height: 9rem;
}

/* استایل برای کانتینر لوگو */
.app-brand .app-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto; /* جلوگیری از محدود شدن ارتفاع */
}

    /* استایل برای خود عکس */
    .app-brand .app-brand-logo img {
        width: auto; /* عرض به صورت خودکار تنظیم شود */
        height: 50px; /* ارتفاع دلخواه خود را اینجا وارد کنید (مثلاً ۴۰ یا ۵۰ پیکسل) */
        max-width: 100%; /* جلوگیری از سرریز شدن در صفحات کوچک */
        object-fit: contain; /* حفظ نسبت تصویر */
    }

    .app-brand .app-brand-logo img {
    height: 50px !important; 
    width: auto !important;
}

/* ═══════════════════════════════════════════════════════════ */
/* ═══ LANDING PAGE — SEPAHAN ═══ */
/* ═══════════════════════════════════════════════════════════ */

.landing-wrapper {
    overflow-x: hidden;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    min-height: 100vh;
    background: #fff;
}

/* ───── Header ───── */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.landing-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7367f0, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-nav-link {
    color: #1a1a2e;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

    .landing-nav-link:hover {
        color: #7367f0;
    }

/* ───── Hero ───── */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 50%, #fff7ed 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

    .landing-hero::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(115, 103, 240, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        top: -200px;
        right: -200px;
        animation: landing-float 8s ease-in-out infinite;
    }

    .landing-hero::after {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        bottom: -150px;
        left: -150px;
        animation: landing-float 10s ease-in-out infinite reverse;
    }

@keyframes landing-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

    .hero-title span {
        background: linear-gradient(135deg, #7367f0, #a855f7);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    position: relative;
    animation: landing-float 6s ease-in-out infinite;
}

.hero-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #7367f0, #a855f7);
    border-radius: 20px;
    color: #fff;
    font-size: 8rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* ───── Sections ───── */
.landing-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* ───── Feature Cards ───── */
.feature-card {
    padding: 2rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(115, 103, 240, 0.15);
        border-color: #7367f0;
    }

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.1), rgba(168, 85, 247, 0.1));
    color: #7367f0;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.feature-desc {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ───── Stats ───── */
.landing-stats {
    background: linear-gradient(135deg, #7367f0, #a855f7);
    padding: 4rem 0;
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ───── Testimonials ───── */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid #f5f5f5;
}

.testimonial-text {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7367f0;
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1a1a2e;
}

.testimonial-role {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ───── Pricing ───── */
.pricing-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

    .pricing-card.featured {
        border: 2px solid #7367f0;
        box-shadow: 0 20px 50px rgba(115, 103, 240, 0.2);
        transform: scale(1.05);
    }

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, #7367f0, #a855f7);
    color: #fff;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: translateY(-5px) scale(1.07);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #7367f0;
    margin-bottom: 0.5rem;
}

    .pricing-price small {
        font-size: 1rem;
        font-weight: 400;
        color: #6b7280;
    }

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

    .pricing-features li {
        padding: 0.75rem 0;
        color: #4b5563;
        border-bottom: 1px solid #f5f5f5;
    }

        .pricing-features li:last-child {
            border-bottom: none;
        }

        .pricing-features li i {
            margin-left: 0.5rem;
        }

/* ───── FAQ ───── */
.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s;
}

    .faq-question:hover {
        background: #fafafa;
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #6b7280;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-question i {
    transition: transform 0.3s;
    color: #7367f0;
}

/* ───── CTA ───── */
.landing-cta {
    background: linear-gradient(135deg, #7367f0, #a855f7);
    padding: 5rem 0;
    border-radius: 40px;
    margin: 5rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .landing-cta::before {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        top: -150px;
        right: -100px;
    }

/* ───── Contact Form ───── */
.landing-wrapper .form-control {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s;
}

    .landing-wrapper .form-control:focus {
        border-color: #7367f0;
        box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.1);
    }

/* ───── Footer ───── */
.landing-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 0.35rem 0;
}

    .footer-link:hover {
        color: #fff;
    }

/* ───── Smooth scroll ───── */
html {
    scroll-behavior: smooth;
}

/* ───── Responsive ───── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

        .pricing-card.featured:hover {
            transform: translateY(-5px) scale(1);
        }

    .landing-section {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}