:root {
      --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
      --font-en: 'Inter', system-ui, -apple-system, sans-serif;
    }
    html[lang="ar"] body { font-family: var(--font-ar); }
    html[lang="en"] body { font-family: var(--font-en); }
    .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

    /* CSP-safe helpers (no inline style attributes are used) */
    .rtl-flip.flip { transform: scaleX(-1); }
    .toast-out { opacity: 0; transition: opacity 0.25s ease-out; }
    .copy-fallback { position: fixed; opacity: 0; }

    /* Smooth transitions */
    .step-panel { animation: fadeSlide 0.25s ease-out; }
    @keyframes fadeSlide {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Custom subtle scrollbar */
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: #f1f5f9; }
    ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
    ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

    /* Print styling for clean Contract PDF */
    @media print {
      body { background: #fff !important; color: #000 !important; }
      .no-print { display: none !important; }
      #printContractArea {
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-height: none !important;
        overflow: visible !important;
      }
      .print-break { page-break-before: always; }
    }
