   @font-face {
        font-family: 'Vazirmatn';
        src: url('/assets/webfonts/Vazirmatn-Regular.woff2') format('woff2');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }
    
    @font-face {
        font-family: 'Vazirmatn';
        src: url('/assets/webfonts/Vazirmatn-Bold.woff2') format('woff2');
        font-weight: bold;
        font-style: normal;
        font-display: swap;
    }
    
    .p {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
       .h1 {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
    
       .h2 {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
       .h3 {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
    
       .h4 {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
    
       .h5 {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
       .i {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
 
    .label {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
      textarea {
            width: 95%;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid #cbd5e1;
            background: #f8fafc;
            font-family: monospace;
            font-size: 14px;
            resize: vertical;
        }
    
       .form-group {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
    
           .header {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
    
               .card-header {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
    
                  .glass-card {
        font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;
    }
    

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', system-ui, sans-serif !important;

        }

        body {
            font-family: system-ui, 'Segoe UI', 'Vazirmatn', 'Tahoma', sans-serif;
            background: linear-gradient(145deg, #eef2f7 0%, #d4dfe9 100%);
            padding: 2rem 1.5rem;
            min-height: 100vh;
        }

        /* کانتینر اصلی با عرض بهینه */
        .container {
            max-width: 900px;
            margin: 0 auto;
        }

        /* هدر با انیمیشن ملایم */
        .main-header {
            text-align: center;
            margin-bottom: 2rem;
            animation: fadeInDown 0.6s ease-out;
        }

        .main-header h1 {
            font-size: clamp(1.6rem, 5vw, 2rem);
            background: linear-gradient(120deg, #0b3b4f, #1c6d8f);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            margin-bottom: 0.5rem;
            letter-spacing: -0.5px;
        }

        .main-header p {
            font-size: 0.9rem;
            color: #2c5a7a;
            font-weight: 500;
        }

        /* کارت مدرن با افکت هور و شیشه‌ای */
        .card {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(2px);
            border-radius: 2rem;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.02);
            transition: transform 0.25s ease, box-shadow 0.3s ease;
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.18);
        }

        .card-header {
            background: linear-gradient(105deg, #1b5a7a 0%, #2286b0 100%);
            padding: 1rem 1.5rem;
            color: white;
        }

        .card-header h2 {
            font-size: 1.2rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .card-body {
            padding: 1.5rem;
        }

        /* فرمول نمایش */
        .formula-box {
            background: linear-gradient(135deg, #eef4fa, #e2eaf1);
            padding: 0.8rem 1rem;
            border-radius: 1rem;
            margin-bottom: 1.2rem;
            text-align: center;
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 0.8rem;
            font-weight: 600;
            color: #1c5d7c;
            border-right: 3px solid #1e7aa3;
        }
          /* باکس نتایج */
        .results-container {
            background: linear-gradient(125deg, #f4f9fe, #ecf3f9);
            border-radius: 1.5rem;
            padding: 1.2rem 1.5rem;
            margin: 1.5rem 0 1rem;
            border-right: 5px solid #1d7ca3;
        }

        .result-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.6rem 0;
            border-bottom: 1px solid #dce5ef;
        }

        .result-row:last-child {
            border-bottom: none;
        }

        .result-label {
            font-weight: 700;
            color: #0a405a;
            font-size: 0.8rem;
        }

        .result-value {
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 0.85rem;
            font-weight: 600;
            color: #0c4e6e;
            text-align: left;
        }

        .result-highlight {
            background: #e6f7e6;
            padding: 0.2rem 0.6rem;
            border-radius: 0.8rem;
        }
                /* یادداشت اطلاعاتی */
        .info-note {
            background: #fef9c3;
            padding: 0.8rem 1.2rem;
            border-radius: 1.2rem;
            font-size: 0.75rem;
            color: #854d0e;
            border-right: 4px solid #f59e0b;
            margin-top: 1rem;
        }
                .warning-box {
            background: #fef9c3;
            padding: 0.8rem 1rem;
            border-radius: 1rem;
            font-size: 0.75rem;
            color: #854d0e;
            border-right: 4px solid #f59e0b;
            margin-bottom: 1rem;
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
        }
                .success-note {
            background: #e6f7e6;
            padding: 0.8rem 1.2rem;
            border-radius: 1.2rem;
            font-size: 0.75rem;
            color: #166534;
            border-right: 4px solid #22c55e;
            margin-top: 0.8rem;
        }
         .footer-note {
            text-align: center;
            font-size: 0.7rem;
            color: #64748b;
            margin-top: 1rem;
        }

        .warning-note {
            background: #fee2e2;
            padding: 0.8rem 1.2rem;
            border-radius: 1.2rem;
            font-size: 0.75rem;
            color: #991b1b;
            border-right: 4px solid #dc2626;
            margin-top: 0.8rem;
        }


        /* استایل فرم حرفه‌ای */
        .form-group {
            margin-bottom: 1.2rem;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            color: #0e4b6b;
            margin-bottom: 0.4rem;
            font-size: 0.85rem;
            letter-spacing: -0.2px;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        select, input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1.5px solid #e0e7ef;
            border-radius: 1rem;
            font-size: 0.9rem;
            font-family: inherit;
            background: #ffffff;
            transition: all 0.2s ease;
            outline: none;
        }

        select:focus, input:focus {
            border-color: #2c8eb3;
            box-shadow: 0 0 0 3px rgba(44, 142, 179, 0.2);
        }

        /* ورودی سفارشی با ظاهر مخصوص */
        .custom-input {
            background: #fafcff;
            border-style: dashed;
            display: none;
        }

        .custom-input.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* راهنمای فرمت */
        .format-hint {
            margin-top: 6px;
            padding: 5px 8px;
            background: #fffbeb;
            border-right: 3px solid #f59e0b;
            border-radius: 8px;
            font-size: 10px;
            color: #92400e;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .format-hint code {
            background: #fef3c7;
            padding: 2px 5px;
            border-radius: 5px;
            font-family: monospace;
            font-size: 10px;
            font-weight: 600;
            color: #b45309;
        }

        /* باکس نتیجه */
        .result-box {
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            padding: 1rem;
            border-radius: 1rem;
            text-align: center;
            margin-top: 1rem;
        }

        .result-number {
            font-size: 1.8rem;
            font-weight: 800;
            color: #3b82f6;
            line-height: 1.2;
        }

        .result-unit {
            font-size: 0.9rem;
            color: #64748b;
            margin-right: 0.2rem;
        }

        /* جدول نتایج اضافی */
        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .results-table tr {
            border-bottom: 1px solid #e2e8f0;
        }

        .results-table tr:last-child {
            border-bottom: none;
        }

        .results-table th {
            text-align: right;
            padding: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #475569;
            width: 50%;
            background: rgba(241, 245, 249, 0.5);
            border-radius: 0 8px 8px 0;
        }

        .results-table td {
            padding: 8px;
            font-size: 0.8rem;
            font-weight: 700;
            color: #3b82f6;
            text-align: left;
        }

        /* دکمه ریست و ایمیل */
        .btn-reset {
            background: #eef2f8;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 2rem;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.75rem;
            transition: all 0.2s ease;
            color: #1e5a78;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }

        .btn-reset:hover {
            background: #e2eaf1;
            transform: scale(0.96);
        }

        .email-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 2rem;
            font-weight: 600;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .email-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
        }

        .flex-between {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 0.8rem;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        /* یادداشت اطلاعاتی */
        .warning-note {
            background: #fee2e2;
            padding: 0.8rem 1rem;
            border-radius: 1rem;
            font-size: 0.75rem;
            color: #991b1b;
            border-right: 4px solid #dc2626;
            margin-top: 1rem;
        }

        /* انیمیشن‌ها */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ریسپانسیو کامل */
        @media (max-width: 640px) {
            body {
                padding: 1rem;
            }
            .card-body {
                padding: 1rem;
            }
            .card-header h2 {
                font-size: 1rem;
            }
            select, input {
                padding: 0.6rem 0.8rem;
                font-size: 0.85rem;
            }
            .result-number {
                font-size: 1.5rem;
            }
            .flex-between {
                flex-direction: column;
            }
        }

            /* کادر تصویر */
    .image-box {
      text-align: center;
      margin-bottom: 8px;
      padding: 8px;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 16px;
    }
    
    .image-box img {
      max-width: 100%;
      height: auto;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }