@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --blue: #1268ff;
    --blue-2: #0e48c9;
    --navy: #10245e;
    --text: #1d2b4f;
    --muted: #6f7fa7;
    --line: #dfe8f8;
    --soft: #f6f9ff;
    --soft-blue: #edf6ff;
    --green: #18b98b;
    --red: #ee4354;
    --shadow: 0 14px 40px rgba(36,78,150,.10);
    --radius: 24px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Vazirmatn",Tahoma,sans-serif;
    direction: rtl;
    color: var(--text);
    background: #fff;
    line-height: 1.9;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%
}

.container {
    width: min(1180px,92%);
    margin: auto
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eef3fb;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #112a72;
    font-size: 25px
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg,#1475ff,#092d9f);
    position: relative;
    box-shadow: 0 8px 20px rgba(18,104,255,.25)
}

    .brand-mark:before, .brand-mark:after {
        content: "";
        position: absolute;
        background: white;
        border-radius: 16px;
        transform: rotate(35deg)
    }

    .brand-mark:before {
        width: 9px;
        height: 24px;
        left: 11px;
        top: 6px
    }

    .brand-mark:after {
        width: 7px;
        height: 18px;
        left: 21px;
        top: 10px
    }

.menu {
    display: flex;
    gap: 28px;
    align-items: center;
    font-weight: 600;
    font-size: 14px
}

    .menu a:hover, .menu a.active {
        color: var(--blue)
    }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .2s
}

.btn-primary {
    background: linear-gradient(135deg,var(--blue),#1357df);
    color: white;
    box-shadow: 0 10px 22px rgba(18,104,255,.2)
}

    .btn-primary:hover {
        transform: translateY(-1px)
    }

.btn-outline {
    border-color: #bdd2ff;
    color: var(--blue);
    background: white
}

.hero {
    background: radial-gradient(circle at 80% 25%,#dff2ff 0 18%,transparent 45%),linear-gradient(180deg,#f5fbff,#fff);
    padding: 52px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.07fr .93fr;
    gap: 30px;
    align-items: center
}

.hero-copy h1 {
    font-size: 46px;
    line-height: 1.35;
    margin: 0 0 16px;
    color: #0d3ca8
}

    .hero-copy h1 span {
        color: #0f73ff
    }

.hero-copy p {
    color: var(--muted);
    font-size: 17px;
    margin: 0 0 20px
}

.checks {
    display: grid;
    gap: 8px;
    margin: 20px 0 0
}

    .checks span {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700
    }

    .checks i {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-grid;
        place-items: center;
        background: #e9f4ff;
        color: var(--blue);
        font-style: normal
    }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.form-card {
    padding: 24px
}

    .form-card h2 {
        margin: 0 0 6px;
        font-size: 24px
    }

    .form-card p {
        margin: 0 0 18px;
        color: var(--muted);
        font-size: 14px
    }

.form-grid {
    display: grid;
    gap: 12px
}

/* ─── صفحهٔ ورود/ثبت‌نام: دو فرم کنار هم ─── */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start
}

@media (max-width: 820px) {
    .auth-grid {
        grid-template-columns: 1fr
    }
}

label {
    font-size: 13px;
    font-weight: 800
}

input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8e2f4;
    border-radius: 12px;
    font: inherit;
    background: #fbfdff;
    outline: none
}

    input:focus, select:focus, textarea:focus {
        border-color: #8bb3ff;
        box-shadow: 0 0 0 3px rgba(18,104,255,.08)
    }

textarea {
    min-height: 100px;
    resize: vertical
}

.lock-note {
    font-size: 12px;
    color: #66759d;
    margin-top: 10px
}

.alert {
    margin: 22px auto;
    background: linear-gradient(90deg,#fff2f3,#fff8f8);
    border: 1px solid #ffcfd5;
    border-radius: 18px;
    padding: 17px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start
}

.alert-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: #ffe1e5;
    color: var(--red);
    display: grid;
    place-items: center;
    font-size: 23px
}

.alert h3 {
    margin: 0;
    color: #d8273b;
    font-size: 20px
}

.alert p {
    margin: 3px 0 0;
    color: #7c5f67;
    font-size: 14px
}

.section {
    padding: 34px 0
}

    .section.soft {
        background: linear-gradient(180deg,#f8fbff,#fff)
    }

.section-title {
    text-align: center;
    margin: 0 0 8px;
    font-size: 31px;
    color: #10275f
}

.section-sub {
    text-align: center;
    margin: 0 auto 24px;
    color: var(--muted);
    max-width: 760px
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.issue-card, .feature-card, .article-card, .license-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 8px 28px rgba(39,77,144,.06)
}

.icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #edf5ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 25px;
    margin-bottom: 14px
}

.issue-card h3, .feature-card h3, .license-card h3 {
    font-size: 17px;
    margin: 0 0 6px
}

.issue-card p, .feature-card p, .license-card p, .article-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 0
}

.danger-box {
    background: linear-gradient(180deg,#fff7f8,#fff);
    border: 1px solid #ffd8dc;
    border-radius: 22px;
    padding: 26px
}

.danger-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px
}

    .danger-head h2 {
        margin: 0;
        font-size: 26px
    }

.number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: white;
    font-weight: 900
}

.security-item {
    padding: 18px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e7edf8
}

.guide {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg,#f2f8ff,#eaf4ff);
    padding: 28px;
    border-radius: 24px;
    border: 1px solid #d9e9ff
}

.guide-ill {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: linear-gradient(135deg,#2678ff,#6fb0ff);
    display: grid;
    place-items: center;
    font-size: 50px;
    color: white
}

.article-thumb {
    position: relative;
    height: 145px;
    border-radius: 14px;
    background: linear-gradient(135deg,#eaf3ff,#cfe6ff);
    display: grid;
    place-items: center;
    font-size: 50px;
    margin-bottom: 15px;
    overflow: hidden
}

.article-card h3 {
    font-size: 18px;
    margin: 0 0 6px
}

.link {
    color: var(--blue);
    font-weight: 800;
    font-size: 13px
}

.license-section {
    background: linear-gradient(180deg,#f8fbff,#fff)
}

.license-card .badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8fff6;
    color: #0f9c73;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px
}

.airdrop {
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg,#10b884,#0ca96f);
    color: #fff;
    border-radius: 26px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px
}

    .airdrop:before {
        content: "🎁";
        position: absolute;
        left: 28px;
        top: 4px;
        font-size: 95px;
        opacity: .14;
        transform: rotate(-12deg);
        /* دکور است، نه قابل کلیک: بدون این خط، کلیک روی دکمهٔ «دریافت هدیه»
           به جای دکمه به همین شکل می‌خورد و فرم ایردراپ ارسال نمی‌شد */
        pointer-events: none;
        z-index: 0
    }

    /* محتوای ایردراپ همیشه بالای شکل دکوراتیو باشد */
    .airdrop > * {
        position: relative;
        z-index: 1
    }

    .airdrop h2 {
        margin: 0 0 8px;
        font-size: 28px
    }

    .airdrop p {
        margin: 0;
        color: #eafff7
    }

.inline-form {
    display: flex;
    gap: 10px
}

    .inline-form input {
        background: white;
        border: 0
    }

.faq {
    max-width: 980px;
    margin: auto
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden
}

.faq-q {
    width: 100%;
    border: 0;
    background: white;
    padding: 17px 18px;
    text-align: right;
    font: inherit;
    font-weight: 800;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    cursor: pointer
}

.faq-a {
    display: none;
    padding: 0 18px 18px;
    color: var(--muted);
    font-size: 14px
}

.faq-item.open .faq-a {
    display: block
}

.page-hero {
    padding: 55px 0;
    background: linear-gradient(180deg,#eff7ff,#fff);
    text-align: center
}

    .page-hero h1 {
        font-size: 40px;
        margin: 0 0 10px;
        color: #0f3fa9
    }

    .page-hero p {
        color: var(--muted);
        max-width: 760px;
        margin: auto
    }

.content-wrap {
    padding: 36px 0 60px
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.prose {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px
}

    .prose h2, .prose h3 {
        color: #143c94
    }

    .prose p, .prose li {
        color: #506087
    }

.timeline {
    display: grid;
    gap: 14px
}

.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start
}

    .timeline-item .dot {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: #e9f3ff;
        color: var(--blue);
        font-weight: 900
    }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.footer {
    background: #f6f9ff;
    border-top: 1px solid #e4ebf8;
    padding: 42px 0 18px;
    margin-top: 35px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 26px
}

.footer h4 {
    margin: 0 0 12px
}

.footer a {
    display: block;
    color: #66749b;
    font-size: 14px;
    margin: 6px 0
}

.socials {
    display: flex;
    gap: 8px;
    margin-top: 12px
}

.social {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--line);
    display: grid;
    place-items: center
}

.copy {
    text-align: center;
    color: #8b96b4;
    font-size: 12px;
    border-top: 1px solid #e5ebf5;
    margin-top: 24px;
    padding-top: 14px
}

.mobile-toggle {
    display: none;
    border: 0;
    background: #edf4ff;
    color: #164cb5;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 20px
}

@media(max-width:900px) {
    .menu {
        display: none;
        position: absolute;
        top: 76px;
        right: 4%;
        left: 4%;
        background: white;
        padding: 16px;
        border-radius: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch
    }

        .menu.open {
            display: flex
        }

    .mobile-toggle {
        display: block
    }

    .nav-actions .btn-outline {
        display: none
    }

    .hero-grid, .two-col, .airdrop {
        grid-template-columns: 1fr
    }

    .hero-copy h1 {
        font-size: 36px
    }

    .grid-4 {
        grid-template-columns: repeat(2,1fr)
    }

    .grid-3, .blog-grid, .service-list {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .hero {
        padding-top: 28px
    }

    .hero-copy h1 {
        font-size: 30px
    }

    .section-title {
        font-size: 26px
    }

    .grid-4, .grid-3, .blog-grid, .service-list {
        grid-template-columns: 1fr
    }

    .guide {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .inline-form {
        flex-direction: column
    }

    .nav {
        height: 68px
    }

    .menu {
        top: 68px
    }
}

/* ═══════════════════════════════════════════════════════════
   استایل اضافه‌شده برای یوزارز داینامیک (گام ۹)
   ═══════════════════════════════════════════════════════════ */

/* پیام وضعیت فرم خبرنامه */
.newsletter-message {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    min-height: 18px;
    transition: opacity .3s ease;
}

    .newsletter-message.success {
        color: #0f9c73;
    }

    .newsletter-message.error {
        color: #d8273b;
    }

/* آیکون‌های شبکه‌های اجتماعی در فوتر */
.socials .social {
    color: #164cb5;
    transition: all .2s;
    cursor: pointer;
}

    .socials .social:hover {
        background: var(--blue);
        color: #fff;
        transform: translateY(-2px);
    }

/* منوی موبایل — هماهنگی با Bootstrap */
@media (max-width: 900px) {
    .mobile-toggle[aria-expanded="true"] {
        background: var(--blue);
        color: #fff;
    }
}

/* فاصله‌ی مناسب main از هدر sticky */
main {
    min-height: calc(100vh - 76px - 250px);
}

/* دکمه‌های داخل فرم خبرنامه */
#newsletter-form {
    position: relative;
}

    #newsletter-form .btn {
        white-space: nowrap;
    }

/* ═══════════════════════════════════════════════════════════
   استایل‌های اضافه‌شده برای Viewهای گام ۱۰
   ═══════════════════════════════════════════════════════════ */

/* ─── پیام‌های فرم (Lead / Contact / Login) ─── */
.field-error {
    display: block;
    color: #d8273b;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    min-height: 16px;
}

.form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: none;
}

    .form-message.show {
        display: block;
    }

    .form-message.success {
        background: #e8fff6;
        color: #0f9c73;
        border: 1px solid #b9efd9;
    }

    .form-message.error {
        background: #fff2f3;
        color: #d8273b;
        border: 1px solid #ffcfd5;
    }

.form-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
}

    .form-alert.success {
        background: #e8fff6;
        color: #0f9c73;
        border: 1px solid #b9efd9;
    }

    .form-alert.error {
        background: #fff2f3;
        color: #d8273b;
        border: 1px solid #ffcfd5;
    }

    .form-alert:empty {
        display: none;
    }

/* ─── چک‌باکس ورود ─── */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

    .form-check input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
    }

/* ─── نوار جستجو و فیلتر وبلاگ ─── */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(39,77,144,.06);
}

.blog-search {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 240px;
}

    .blog-search input {
        flex: 1;
    }

    .blog-search button {
        padding: 0 16px;
    }

.blog-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-chip {
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f6ff;
    color: #4b5f8f;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s;
    border: 1px solid transparent;
}

    .cat-chip:hover {
        background: #e3eeff;
        color: var(--blue);
    }

    .cat-chip.active {
        background: linear-gradient(135deg, var(--blue), #1357df);
        color: #fff;
        box-shadow: 0 6px 14px rgba(18,104,255,.25);
    }

.cat-count {
    opacity: .7;
    font-weight: 500;
}

/* ─── متادیتای مقاله ─── */
.article-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 8px;
}

.badge-soft {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf5ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.text-muted {
    color: var(--muted);
}

/* ─── صفحه‌بندی وبلاگ ─── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    transition: all .2s;
}

    .page-btn:hover {
        border-color: var(--blue);
        color: var(--blue);
    }

    .page-btn.active {
        background: linear-gradient(135deg, var(--blue), #1357df);
        color: #fff;
        border-color: transparent;
    }

/* ─── فوتر مقاله ─── */
.article-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

/* ─── اطلاعات مجوز ─── */
.license-info {
    margin: 10px 0;
    font-size: 13px;
    color: #506087;
}

    .license-info dt {
        font-weight: 800;
        color: #143c94;
        margin-top: 6px;
    }

    .license-info dd {
        margin: 0;
    }

/* ─── CTA در FAQ ─── */
.faq-cta {
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    background: linear-gradient(135deg, #f2f8ff, #eaf4ff);
    border-radius: 22px;
    border: 1px solid #d9e9ff;
}

    .faq-cta h3 {
        margin: 0 0 6px;
        color: #0f3fa9;
    }

    .faq-cta p {
        margin: 0 0 16px;
        color: var(--muted);
    }

/* ─── تصویر شاخص کارت مقاله ───
   با position:absolute + inset:0 تصویر دقیقاً داخل کادر ۱۴۵ پیکسلی قفل می‌شود؛
   قبلاً height:100% داخل grid به intrinsic size تصویر تبدیل می‌شد و
   تصویر از کادر بیرون میزد و روی عنوان مقاله می‌افتاد. */
.article-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit
}

/* ─── تصویر شاخص = لینک مقاله ───
   کل کادر تصویر (و حالت بدون تصویر) قابل کلیک است و به صفحهٔ مقاله می‌رود. */
.article-thumb-link {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: inherit;
    overflow: hidden
}

.article-thumb-link img {
    transition: transform .35s ease
}

.article-thumb-link:hover img,
.article-thumb-link:focus-visible img {
    transform: scale(1.05)
}

.article-thumb-link:focus-visible {
    outline: 3px solid #1268ff;
    outline-offset: -3px
}

/* ─── ریسپانسیو ─── */
@media (max-width: 700px) {
    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        min-width: auto;
    }

    .article-footer {
        flex-direction: column;
        gap: 6px;
    }
}
/* ═══════════════════════════════════════════════════════════
   استایل‌های نهایی گام ۱۳
   ═══════════════════════════════════════════════════════════ */

/* ─── Spinner داخل دکمه‌ها ─── */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
    margin-inline-end: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── دکمه‌های غیرفعال ─── */
.btn:disabled,
.btn[disabled] {
    opacity: .65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ─── بهبود spinner خبرنامه (روی دکمه سفید) ─── */
#newsletter-form .btn:disabled .spinner {
    border-color: rgba(255, 255, 255, .4);
    border-top-color: #fff;
}

/* ─── بهبود inputهای لندینگ با آیکون ─── */
.form-grid input[type="tel"] {
    direction: ltr;
    text-align: right;
    font-feature-settings: "tnum";
    letter-spacing: .5px;
}

/* ─── Override برای فیلدهای form در بوت‌استرپ ─── */
.form-check-input {
    margin: 0;
}

.form-check {
    padding-right: 0;
    padding-left: 0;
    min-height: auto;
}

/* ─── اسکرول ملایم بعد از نمایش پیام ─── */
#lead-message.show,
.form-message.show {
    animation: fadeInUp .3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── بهبود نمایش لینک‌های لاتین (url/slug) ─── */
code,
[dir="ltr"] {
    direction: ltr;
    unicode-bidi: embed;
}

/* ─── Reset برای button داخل form (خروج ادمین و ...) ─── */
button.menu-item {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ─── بهبود لینک‌های فوتر در حالت هاور ─── */
.footer a:hover {
    color: var(--blue);
    transition: color .2s;
}

/* ─── اطمینان از عدم تداخل Bootstrap با .btn سفارشی ─── */
.btn.btn-primary,
.btn.btn-outline {
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   لوگوی تصویری یوزارز (جایگزین brand-mark CSS)
   ═══════════════════════════════════════════════════════════ */

/* ─── هدر کاربر ─── */
.brand.brand-img {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 4px 0;
}

.brand-logo {
    height: 48px; /* ارتفاع لوگو در هدر */
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity .2s, transform .2s;
}

.brand.brand-img:hover .brand-logo {
    opacity: .85;
    transform: scale(1.02);
}

/* ─── ریسپانسیو هدر ─── */
@media (max-width: 900px) {
    .brand-logo {
        height: 42px;
    }
}

@media (max-width: 600px) {
    .brand-logo {
        height: 36px;
    }
}

/* ═══════════════════════════════════════════════════════════
   استایل مجوزها — دکمه‌ها و thumbnail تصویر
   ═══════════════════════════════════════════════════════════ */

/* ─── دکمه‌های اقدام در کارت مجوز ─── */
.license-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

    .license-actions .btn {
        font-size: 12px;
        padding: 8px 14px;
    }

/* ─── thumbnail قابل کلیک ─── */
.license-thumb-link {
    display: block;
    position: relative;
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f7f9fe;
    transition: transform .2s, box-shadow .2s;
}

    .license-thumb-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(39, 77, 144, .12);
    }

.license-thumb {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top center;
    transition: transform .3s;
}

.license-thumb-link:hover .license-thumb {
    transform: scale(1.04);
}

.license-thumb-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(18, 104, 255, .0);
    color: #fff;
    font-size: 32px;
    opacity: 0;
    transition: all .25s;
}

.license-thumb-link:hover .license-thumb-overlay {
    background: rgba(18, 104, 255, .55);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   چت‌باکس AI (نمایش بعد از ثبت فرم)
   ═══════════════════════════════════════════════════════════ */

.ai-chat-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.ai-chat-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: linear-gradient(135deg, #1268ff, #0e48c9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(18, 104, 255, .25);
}

/* ─── کامپوننت MuChat ─── */
#ai-chatbox-standard {
    font-family: inherit;
}

/* ─── ریسپانسیو ─── */
@media (max-width: 600px) {
    #ai-chatbox-standard {
        height: 440px !important;
    }

    .ai-chat-header h2 {
        font-size: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   PWA Install Banner — بنر خودکار نصب اپ
   ═══════════════════════════════════════════════════════════ */

.pwa-banner {
    position: fixed;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 9999;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px 14px;
    max-width: 520px;
    margin-inline: auto;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(36, 78, 150, .18);
    direction: rtl;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .3s ease, transform .3s ease;
    will-change: opacity, transform;
}

    .pwa-banner.show {
        opacity: 1;
        transform: translateY(0);
    }

.pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--soft-blue, #edf6ff);
    flex-shrink: 0;
}

    .pwa-banner-icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.pwa-banner-content {
    min-width: 0;
}

    .pwa-banner-content h3 {
        margin: 0 0 3px;
        font-size: 14px;
        font-weight: 800;
        color: #10275f;
        line-height: 1.5;
    }

    .pwa-banner-content p {
        margin: 0;
        font-size: 12.5px;
        line-height: 1.7;
        color: var(--muted, #6f7fa7);
    }

.pwa-banner-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.pwa-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
    line-height: 1.4;
}

    .pwa-btn:active {
        transform: translateY(0);
    }

.pwa-btn-primary {
    background: linear-gradient(135deg, var(--blue, #1268ff), #1357df);
    color: #fff;
    box-shadow: 0 8px 18px rgba(18, 104, 255, .22);
}

    .pwa-btn-primary:hover {
        transform: translateY(-1px);
    }

.pwa-btn-ghost {
    background: #f4f6fb;
    color: #1d2b4f;
}

    .pwa-btn-ghost:hover {
        background: #e8edf8;
    }

/* ─── دسکتاپ: چیدمان افقی ─── */
@media (min-width: 600px) {
    .pwa-banner {
        inset-inline: auto;
        inset-inline-end: 24px;
        bottom: 24px;
        max-width: 460px;
        grid-template-columns: auto 1fr auto;
    }

    .pwa-banner-actions {
        grid-column: auto;
        margin-top: 0;
        flex-direction: column;
    }

    .pwa-btn {
        flex: 0 0 auto;
        min-width: 96px;
        padding: 8px 14px;
    }
}

/* ─── حالت standalone: بدون هیچ بنر و دکمه ─── */
.pwa-standalone #pwa-install-banner {
    display: none !important;
}
/* ═══════════════════════════════════════════════════════════
   گالری لوگو مجوزها + Lightbox
   ═══════════════════════════════════════════════════════════ */

/* ─── گرید لوگوها ─── */
.license-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ─── کارت لوگو ─── */
.license-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(39, 77, 144, .05);
    text-decoration: none;
    color: inherit;
    transition: all .25s ease;
    cursor: pointer;
    min-height: 180px;
}

    .license-logo-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(39, 77, 144, .12);
        border-color: #b9d2ff;
    }

    .license-logo-card:focus-visible {
        outline: 3px solid var(--blue);
        outline-offset: 3px;
    }

    /* ─── تصویر لوگو (اندازه یکنواخت) ─── */
    .license-logo-card img {
        width: 100%;
        max-width: 130px;
        height: 100px;
        object-fit: contain;
        display: block;
        filter: grayscale(0.15);
        transition: filter .25s, transform .25s;
    }

    .license-logo-card:hover img {
        filter: grayscale(0);
        transform: scale(1.05);
    }

/* ─── عنوان زیر لوگو ─── */
.license-logo-title {
    font-size: 13px;
    font-weight: 700;
    color: #4b5f8f;
    text-align: center;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   Lightbox
   ═══════════════════════════════════════════════════════════ */

.license-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none; /* توسط JS به flex تغییر می‌کند */
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(8, 14, 30, .88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: lbFadeIn .25s ease;
}

    .license-lightbox.active {
        display: flex;
    }

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ─── محتوای داخل Lightbox ─── */
.license-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: lbZoomIn .3s cubic-bezier(.2, .9, .3, 1.1);
}

@keyframes lbZoomIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#license-lightbox-image {
    max-width: 100%;
    max-height: calc(92vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

#license-lightbox-caption {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    max-width: 700px;
    line-height: 1.8;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

    #license-lightbox-caption:empty {
        display: none;
    }

/* ─── دکمه بستن ─── */
.license-lightbox-close {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all .2s;
    backdrop-filter: blur(6px);
    z-index: 10000;
}

    .license-lightbox-close:hover {
        background: rgba(255, 255, 255, .22);
        transform: scale(1.05);
    }

/* ─── قفل اسکرول وقتی Lightbox باز است ─── */
body.lightbox-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .license-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .license-logo-card {
        padding: 18px 12px;
        min-height: 160px;
    }

        .license-logo-card img {
            max-width: 100px;
            height: 80px;
        }

    .license-logo-title {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .license-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .license-logo-card {
        padding: 14px 10px;
        min-height: 140px;
        border-radius: 16px;
    }

        .license-logo-card img {
            max-width: 80px;
            height: 64px;
        }

    .license-logo-title {
        font-size: 11px;
    }

    .license-lightbox {
        padding: 20px 10px;
    }

    .license-lightbox-close {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
    }

    #license-lightbox-caption {
        font-size: 12px;
    }
}



/* ═══════════════════════════════════════════════════════════
   Flip Cards برای بخش خدمات
   ═══════════════════════════════════════════════════════════ */

.service-flip-card {
    display: block;
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 1100px;
    cursor: pointer;
    text-decoration: none;
    outline-offset: 5px;
    border-radius: 22px;
}

.service-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

/* ─── Desktop: Hover به‌جای کلیک ─── */
@media (hover: hover) {
    .service-flip-card:hover .service-flip-inner {
        transform: rotateY(180deg);
    }
}

/* ─── Mobile: کلاس .is-flipped توسط JS اضافه می‌شود ─── */
.service-flip-card.is-flipped .service-flip-inner {
    transform: rotateY(180deg);
}

/* ─── Focus for keyboard ─── */
.service-flip-card:focus-visible .service-flip-inner {
    transform: rotateY(180deg);
}

.service-flip-card:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

/* ─── چهره‌های کارت ─── */
.service-flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(16, 40, 80, .06);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    text-align: center;
}

/* ═══════ روی کارت ═══════ */
.service-front {
    gap: 12px;
    padding: 0;
}

    .service-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: absolute;
        inset: 0;
        border-radius: 22px;
        transition: transform .6s ease;
    }

.service-flip-card:hover .service-front img {
    transform: scale(1.05);
}

/* گرادیانت روی تصویر برای خوانایی متن */
.service-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 24, 56, 0) 40%, rgba(15, 24, 56, .75) 100%);
    border-radius: 22px;
    pointer-events: none;
}

.service-front-label,
.service-hover-hint {
    position: relative;
    z-index: 2;
}

.service-front-label {
    position: absolute;
    bottom: 52px;
    right: 20px;
    left: 20px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    text-align: right;
}

.service-hover-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

    .service-hover-hint i {
        font-size: 18px;
    }

/* ═══════ پشت کارت ═══════ */
.service-back {
    transform: rotateY(180deg);
    gap: 12px;
    padding: 24px 20px;
    background: linear-gradient(160deg, #f2f8ff 0%, #eaf4ff 100%);
    text-align: center;
}

.service-back-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 16px;
    color: var(--blue);
    font-size: 24px;
    box-shadow: 0 6px 18px rgba(18, 104, 255, .18);
}

.service-back h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f3fa9;
    line-height: 1.4;
}

.service-back p {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: #506087;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-back-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), #1357df);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(18, 104, 255, .25);
    transition: transform .2s;
}

.service-flip-card:hover .service-back-cta {
    transform: translateY(-2px);
}

.service-back-cta i {
    font-size: 16px;
}

/* ═══════ Responsive ═══════ */
@media (max-width: 900px) {
    .service-flip-card {
        height: 280px;
    }

    .service-back h3 {
        font-size: 16px;
    }

    .service-front-label {
        font-size: 15px;
        bottom: 46px;
    }

    .service-hover-hint {
        font-size: 11px;
        bottom: 16px;
    }
}

@media (max-width: 600px) {
    .service-flip-card {
        height: 260px;
    }

    .service-back {
        padding: 18px 16px;
    }

    .service-back-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .service-back h3 {
        font-size: 15px;
    }

    .service-back p {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .service-back-cta {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* ─── دسترس‌پذیری: کاهش انیمیشن ─── */
@media (prefers-reduced-motion: reduce) {
    .service-flip-inner {
        transition-duration: 0.01ms;
    }

    .service-front img {
        transition: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   مقاله‌ی بازشدنی (Read More) — بخش راهنمای حل مشکلات
   ═══════════════════════════════════════════════════════════ */

.guide-article {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px 36px;
    box-shadow: 0 12px 36px rgba(39, 77, 144, .06);
}

    .guide-article .section-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .guide-article .section-sub {
        margin-bottom: 22px;
    }

    /* ─── متن مقاله ─── */
    .guide-article p {
        color: #40506e;
        font-size: 15px;
        line-height: 2.1;
        margin: 0 0 16px;
        text-align: justify;
    }

    .guide-article h3 {
        color: #0f3fa9;
        font-size: 19px;
        font-weight: 800;
        margin: 28px 0 12px;
        line-height: 1.6;
        padding-bottom: 8px;
        border-bottom: 2px solid #eaf2ff;
    }

        .guide-article h3:first-child {
            margin-top: 0;
        }

/* ─── پیش‌نمایش و متن کامل ─── */
.article-preview {
    position: relative;
    padding-bottom: 8px;
}

.article-more {
    animation: articleFadeIn .4s ease;
}

    .article-more[hidden] {
        display: none;
    }

@keyframes articleFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── دکمه‌ی باز/بستن ─── */
.article-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 22px;
    font-size: 14px;
}

    .article-toggle i {
        transition: transform .3s ease;
    }

    .article-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

/* ─── ریسپانسیو ─── */
@media (max-width: 700px) {
    .guide-article {
        padding: 22px 18px;
        border-radius: 18px;
    }

        .guide-article .section-title {
            font-size: 21px;
        }

        .guide-article h3 {
            font-size: 16px;
            margin-top: 22px;
        }

        .guide-article p {
            font-size: 14px;
            line-height: 2;
        }
}