/*
 * tlctips.css - extracted from the TLCTips custom homepage template
 * (dialog animations, scrollbar, RTL mirrors, reduced motion)
 * Nothing in this file is ever translated: the AI translator
 * only ever sees the slim HTML document, which references this file.
 * Edit freely; bump ?ver=2026-11-06 in the template when you do.
 */

    /* ---- Entrance animations for the dialog ------------------------ */
    @keyframes tlc-fade-in   { from { opacity: 0; } to { opacity: 1; } }
    @keyframes tlc-slide-up  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes tlc-zoom-in   { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
    .modal-backdrop { animation: tlc-fade-in 0.2s ease-out both; }
    .modal-panel    { animation: tlc-slide-up 0.25s ease-out both; }
    @media (min-width: 640px) {
      .modal-panel { animation: tlc-zoom-in 0.2s ease-out both; }
    }

    /* ---- Mobile notch safety for the dialog header ------------------ */
    @media (max-width: 639px) {
      .modal-safe-top { padding-top: max(1rem, env(safe-area-inset-top)); }
    }

    /* ---- Warm custom scrollbar for the modal content area ----------- */
    .modal-scroll { scrollbar-width: thin; scrollbar-color: #e3d3c0 transparent; }
    .modal-scroll::-webkit-scrollbar { width: 8px; }
    .modal-scroll::-webkit-scrollbar-track { background: transparent; }
    .modal-scroll::-webkit-scrollbar-thumb { background-color: #e3d3c0; border-radius: 8px; }
    .modal-scroll::-webkit-scrollbar-thumb:hover { background-color: #d3bca2; }

    /* ---- Language selector chevron ---------------------------------- */
    #lang-button .lang-chevron { transition: transform 0.2s ease-out; }
    #lang-button[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

    /* ---- Language status chips (translation still in progress) ------ */
    #lang-menu .lang-status-dot { width: 6px; height: 6px; border-radius: 9999px; background-color: currentColor; animation: tlctips-status-pulse 1.8s ease-in-out infinite; }
    @keyframes tlctips-status-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
    @media (prefers-reduced-motion: reduce) { #lang-menu .lang-status-dot { animation: none; opacity: .8; } }

    /* ---- Right-to-left (Arabic) ---------------------------------------
       The translator sets dir="rtl" on <html>. Logical utilities
       (start-*, end-*, text-start) flip automatically; only the few
       directional arrows need an explicit mirror. */
    [dir="rtl"] .flip-rtl { transform: scaleX(-1); }
    /* ---- Respect users who prefer reduced motion -------------------- */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }
  
