        /* ================== پایه کلی ================== */

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            direction: rtl;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "IRANSans", "IRANSansX", sans-serif;
            background: #f4f6ff;
            color: #111827;
            text-align: center;
        }

        .container {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 16px;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* ================== هدر (site-header) ================== */

        .site-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: linear-gradient(135deg, #4f46e5, #0ea5e9, #22c55e);
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
        }

        .site-header .container {
            background: #ffffff;
            border-radius: 20px;
            padding: 10px 14px;
            margin: 8px auto 10px;
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-left img {
            width: 48px;
            height: 48px;
            border-radius: 16px;
            box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
        }

        .header-title h1 {
            margin: 0;
            font-size: 1rem;
            color: #111827;
        }

        .header-title p {
            margin: 2px 0 0;
            font-size: 0.78rem;
            color: #6b7280;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        /* دکمه عمومی */
        .button,
        .nav-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 7px 14px;
            border-radius: 999px;
            border: 1px solid #e5e7eb;
            background: #ffffff;
            font-size: 0.85rem;
            color: #111827;
            cursor: pointer;
            transition: transform 0.12s ease,
                        box-shadow 0.12s ease,
                        background 0.12s ease,
                        border-color 0.12s ease;
        }

        .button.primary {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            color: #ffffff;
            border-color: transparent;
        }

        .header-actions .button:not(.primary) {
            background: linear-gradient(135deg, #0ea5e9, #2563eb);
            color: #ffffff;
            border-color: transparent;
        }

        .nav-toggle {
            width: 40px;
            padding: 0;
            border-radius: 999px;
            background: #eef2ff;
            color: #4f46e5;
            border-color: transparent;
            font-size: 1.1rem;
            box-shadow: 0 4px 10px rgba(148, 163, 184, 0.6);
        }

        .button:hover,
        .nav-toggle:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
            border-color: #cbd5f5;
        }

        /* موبایل: هدر جمع‌وجور */

        @media (max-width: 768px) {

            .header-inner {
                flex-direction: column;
                align-items: center;
                gap: 6px;
                padding: 4px 0;
            }

            .header-left {
                justify-content: center;
                text-align: center;
            }

            .header-left img {
                width: 38px;
                height: 38px;
                border-radius: 12px;
            }

            .header-title h1 {
                font-size: 0.85rem;
            }

            .header-title p {
                font-size: 0.72rem;
            }

            .header-right {
                width: 100%;
                flex-direction: column;
                align-items: stretch;
                gap: 6px;
            }

            .nav-toggle {
                width: 100%;
                padding: 6px 0;
                font-size: 0.9rem;
                border-radius: 12px;
                background: #eef2ff;
                color: #4f46e5;
            }

            .header-actions {
                width: 100%;
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                gap: 6px;
                flex-wrap: wrap;
            }

            .header-actions .button {
                flex: 1 1 auto;
                padding: 6px 2px;
                font-size: 0.75rem;
                border-radius: 10px;
                text-align: center;
                white-space: nowrap;
            }

            .button.primary {
                padding: 7px 2px;
                font-size: 0.78rem;
            }
        }

        /* ================== منوی کناری (sidenav) ================== */

        .sidenav {
            position: fixed;
            top: 0;
            right: 0;
            height: 100%;
            width: 0;
            background: radial-gradient(circle at top right, #1e293b 0%, #020617 60%);
            backdrop-filter: blur(10px);
            overflow-x: hidden;
            transition: width 0.28s ease;
            padding-top: 64px;
            z-index: 2000;
            box-shadow: -8px 0 24px rgba(15, 23, 42, 0.8);
        }

        .sidenav-open {
            width: 260px;
        }

        @media (max-width: 768px) {
            .sidenav-open {
                width: 80%;
            }
        }

        .closebtn {
            position: absolute;
            top: 14px;
            left: 16px;
            padding: 6px 14px;
            border-radius: 999px;
            border: none;
            background: #ef4444;
            color: #f9fafb;
            font-size: 0.8rem;
            cursor: pointer;
        }

        .sidenav-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidenav-list li {
            margin-bottom: 4px;
        }

        .sidenav a {
            display: block;
            margin: 6px 16px;
            padding: 10px 14px;
            font-size: 0.9rem;
            color: #e5e7eb;
            background: rgba(15, 23, 42, 0.9);
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.7);
            transition: background 0.2s ease,
                        transform 0.15s ease,
                        border-color 0.2s ease;
        }

        .sidenav a:hover {
            background: linear-gradient(135deg, #4f46e5, #0ea5e9);
            border-color: rgba(191, 219, 254, 0.95);
            transform: translateX(-3px);
        }

        /* ================== سکشن قهرمان این صفحه ================== */

        .hero-section {
            margin-top: 16px;
            text-align: center;
        }

        .hero-logo img {
            display: block;
            margin: 8px auto;
        }

        .hero-title {
            font-size: 1.15rem;
            font-weight: 700;
            margin: 6px 0 0;
        }

        .hero-subtitle {
            font-size: 0.86rem;
            color: #6b7280;
            margin-top: 4px;
        }

        @media (max-width: 768px) {
            .hero-logo img[width="320"] {
                width: 240px;
                height: auto;
            }
        }

        /* ================== کارت فرم اعتبارسنجی ================== */

        .form-section {
            margin-top: 20px;
        }

        .form-card {
            background: #ffffff;
            border-radius: 18px;
            padding: 18px 16px 20px;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
            max-width: 520px;
            margin: 0 auto 24px;
            text-align: right;
        }

        .form-card h1,
        .form-card h2 {
            text-align: center;
            margin: 0 0 10px;
            font-size: 1.05rem;
        }

        .form-card p {
            margin: 4px 0 12px;
            font-size: 0.9rem;
            line-height: 1.7;
            text-align: center;
        }

        .form-field {
            margin-bottom: 14px;
        }

        .form-field label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            font-size: 0.9rem;
        }

        select,
        input[type="text"],
        input[type="number"] {
            width: 100%;
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid #cbd5e1;
            background: #f9fafb;
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
        }

        select:focus,
        input[type="text"]:focus,
        input[type="number"]:focus {
            border-color: #4f46e5;
            box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.3);
            background: #ffffff;
        }

        input[type="submit"] {
            width: 100%;
            height: 42px;
            border: 0;
            border-radius: 999px;
            background: linear-gradient(135deg, #4f46e5, #2563eb);
            color: #ffffff;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
        }

        input[type="submit"]:hover {
            box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
        }

        input[type="submit"]:active {
            transform: translateY(1px);
        }

        /* ================== باکس‌های خطا و موفقیت ================== */

        .error-box,
        .success-box {
            padding: 12px 16px;
            border-radius: 16px;
            margin: 16px auto 0;
            width: 100%;
            max-width: 760px;
            font-size: 0.9rem;
            line-height: 1.8;
            text-align: right;
        }

        .error-box {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #b91c1c;
        }

        .success-box {
            background: #ecfdf3;
            border: 1px solid #bbf7d0;
            color: #166534;
        }

        .result-card {
            margin-top: 14px;
            background: #ffffff;
            border-radius: 16px;
            padding: 10px 12px 14px;
            box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
        }

        .result-table,
        .cert-table {
            width: 100%;
            border-collapse: collapse;
            border-radius: 12px;
            overflow: hidden;
            font-size: 0.9rem;
            background: #ffffff;
        }

        .result-table th,
        .result-table td,
        .cert-table th,
        .cert-table td {
            border: 1px solid #e2e8f0;
            padding: 8px 10px;
            text-align: right;
        }

        .result-table th {
            background: #eef2ff;
            font-weight: 600;
        }

        .cert-table th {
            background: #4f46e5;
            color: #ffffff;
            font-weight: 600;
            text-align: center;
        }

        .cert-table td {
            text-align: center;
        }

        .button-link {
            color: #2563eb;
        }

        .result-hint {
            margin-top: 10px;
            font-size: 0.85rem;
            color: #4b5563;
            text-align: center;
        }

        .success-note {
            margin-top: 10px;
            font-size: 0.9rem;
            color: #166534;
            text-align: center;
        }

        /* دکمه جزئیات جدول آزمون‌ها */

        .btn-details {
            background: #4f46e5;
            color: #ffffff;
            border: none;
            padding: 5px 10px;
            border-radius: 999px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .btn-details:hover {
            background: #4338ca;
        }

        /* ================== مودال آزمون‌ها ================== */

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            z-index: 2100;
        }

        .modal-card {
            position: fixed;
            top: 10%;
            left: 50%;
            transform: translateX(-50%);
            background: #ffffff;
            padding: 18px 18px 16px;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
            z-index: 2200;
            max-width: 420px;
            width: 90%;
            border-radius: 18px;
            direction: rtl;
            text-align: right;
        }

        .modal-card h3 {
            margin-top: 0;
            font-size: 1rem;
            color: #111827;
        }

        .modal-body {
            margin-top: 10px;
        }

        .modal-body table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.88rem;
        }

        .modal-body th,
        .modal-body td {
            border: 1px solid #e2e8f0;
            padding: 6px 8px;
        }

        .modal-body th {
            background: #eef2ff;
        }

        .modal-close-btn {
            margin-top: 12px;
            width: 100%;
            border-radius: 999px;
            border: none;
            padding: 8px 0;
            background: linear-gradient(135deg, #4f46e5, #2563eb);
            color: #ffffff;
            cursor: pointer;
            font-size: 0.9rem;
        }

        /* ================== دکمه بازگشت به بالا ================== */

        .scroll-to-top-btn {
            position: fixed;
            inset-inline-end: 16px;
            bottom: 16px;
            width: 40px;
            height: 40px;
            border-radius: 999px;
            border: none;
            display: none;
            align-items: center;
            justify-content: center;
            background: #4f46e5;
            color: #fff;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
            z-index: 1500;
        }

        /* ================== فوتر ================== */

        .site-footer {
            margin-top: 40px;
            padding: 28px 0 32px;
            background: linear-gradient(135deg, #0f172a, #1d4ed8);
            color: #e5e7eb;
        }

        .footer-inner {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .footer-brand img {
            width: 140px;
            height: 140px;
            border-radius: 24px;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.8);
        }

        .contact-info p {
            margin: 10px 0;
            line-height: 1.8;
            font-size: 0.9rem;
        }

        .footer-contact img {
            width: 24px;
            margin-inline: 4px;
        }

        .contact-tag {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px 10px;
            border-radius: 999px;
            background: #0f172a;
            color: #e5e7eb;
            font-size: 0.85rem;
        }

        .contact-tag:hover {
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
        }

        @media (max-width: 768px) {
            .footer-brand img {
                width: 110px;
                height: 110px;
            }
        }

        /* ================== انیمیشن ملایم ================== */

        .animated-section {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 0.6s ease-out forwards;
        }

        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }