    /* --- V65 DIAMOND STYLES (ORIGINAL BASE) --- */
    html, body {
        font-family: 'Rubik', sans-serif;
        background: #F8FAFC;
        color: #1E293B;
        min-height: 100vh;
        width: 100%;
        overflow-x: hidden;
        -webkit-tap-highlight-color: transparent;
    }

    #screen-app,
    #screen-login {
        max-width: 768px;
        width: 100%;
        margin: 0 auto;
        min-height: 100vh;
        position: relative;
        /* No background here — body background bleeds through seamlessly,
           eliminating the visible seam at the 768px container edge */
        /* No backface-visibility — removed to prevent compositor layer
           boundary from creating a visible edge during reflows */
    }

    /* Glass Effect */
    .glass-card {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
        border-radius: 24px;
    }

    .glass-header {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: max(env(safe-area-inset-top), 20px);
    }

    .glass-nav {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        padding-bottom: max(env(safe-area-inset-bottom), 16px);
    }

    /* 🔥 PWA Global Safe-Area Utilities */
    .pb-safe {
        padding-bottom: max(env(safe-area-inset-bottom), 16px) !important;
    }

    .pt-safe {
        padding-top: max(env(safe-area-inset-top), 20px) !important;
    }

    .mb-safe {
        margin-bottom: max(env(safe-area-inset-bottom), 16px) !important;
    }

    /* Inputs - ONLY CHANGE: text-align: start to support EN typing */
    .input-glass,
    textarea {
        appearance: none;
        -webkit-appearance: none;
        background-color: rgba(255, 255, 255, 0.8);
        border: 1px solid #E2E8F0;
        border-radius: 16px;
        padding: 14px 16px;
        width: 100%;
        font-size: 16px;
        outline: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        color: #334155;
        text-align: start;
        /* Supports both RTL/LTR typing */
    }

    /* Safari/iOS: Normalize native time/date picker indicator */
    input[type="time"]::-webkit-calendar-picker-indicator,
    input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0.5;
        cursor: pointer;
    }

    .input-glass:focus,
    textarea:focus {
        background: #FFFFFF;
        border-color: #6366F1;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
        transform: translateY(-1px);
    }

    /* Matrix Chips */
    .chip {
        font-size: 0.7rem;
        padding: 2px 8px;
        border-radius: 99px;
        display: inline-block;
        margin: 1px;
        max-width: 95%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        background: #F1F5F9;
        border: 1px solid #E2E8F0;
        font-weight: 500;
        color: #475569;
    }

    .chip.me {
        background: #DCFCE7;
        color: #15803D;
        border-color: #86EFAC;
        font-weight: 700;
    }

    /* Radio & Select */
    .radio-group-container {
        background: #F8FAFC;
        border: 1px solid #E2E8F0;
        border-radius: 16px;
        padding: 4px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .radio-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-radius: 12px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .radio-option:active {
        background-color: #E0E7FF;
    }

    .radio-option input[type="radio"] {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #CBD5E1;
        border-radius: 50%;
        position: relative;
        transition: all 0.2s;
    }

    .radio-option input[type="radio"]:checked {
        border-color: #4F46E5;
        background-color: #4F46E5;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }

    .radio-option input[type="radio"]:checked::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background: white;
        border-radius: 50%;
    }

    .custom-select-trigger {
        background-color: rgba(255, 255, 255, 0.8);
        border: 1px solid #E2E8F0;
        border-radius: 16px;
        padding: 14px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s;
    }

    .custom-select-options {
        position: absolute;
        top: 105%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #E2E8F0;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        z-index: 50;
        max-height: 200px;
        /* Limits to ~3 items */
        overflow-y: auto;
        padding-bottom: 20px;
        /* Space for the last item */
        display: none;
    }

    .custom-select-options.open {
        display: block;
        animation: fadeIn 0.2s;
    }

    .custom-option {
        padding: 18px 20px;
        cursor: pointer;
        border-bottom: 1px solid #F1F5F9;
        font-size: 1.05rem;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .custom-option:hover {
        background-color: #F8FAFC;
        color: #4F46E5;
        font-weight: 700;
    }

    /* Email Chips */
    .email-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #EEF2FF;
        color: #4F46E5;
        padding: 6px 12px;
        border-radius: 99px;
        font-size: 0.85rem;
        font-weight: 500;
        border: 1px solid #C7D2FE;
        animation: fadeIn 0.2s;
    }

    /* Animations & Utils */
    /* שינוי: אנימציה איטית יותר (1.2s) לכניסה חלקה ויוקרתית */
    .animate-enter {
        animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.98) translateY(15px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .animate-leave {
        animation: fadeOut 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    }

    @keyframes fadeOut {
        from {
            opacity: 1;
            transform: scale(1) translateY(0);
        }

        to {
            opacity: 0;
            transform: scale(0.98) translateY(15px);
        }
    }

    .d-none {
        display: none !important;
    }

    /* --- SCROLLBAR FIX: Completely invisible scrollbar to prevent gray line ---
       The gray line appears when SweetAlert toggles overflow:hidden on the body,
       causing the scrollbar to flash. Fix: make the scrollbar have zero visual
       presence. The page still scrolls via mousewheel/touch/keyboard. */
    html, body {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    ::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    /* מניעת גלילה ברקע כשיש מודאל פתוח - חובה לאייפון */
    html.modal-open,
    body.modal-open {
        overflow: hidden !important;
        height: 100% !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
    }

    body.modal-open #screen-app,
    body.modal-open #screen-login {
        overflow: hidden !important;
        pointer-events: none !important;
    }

    .modal-overlay {
        overscroll-behavior: contain !important;
        pointer-events: auto !important;
    }

    .modal-overlay.modal-underneath {
        pointer-events: none !important;
    }

    .modal-overlay.modal-underneath .modal-box,
    .modal-overlay.modal-underneath .modal-content-scroll,
    .modal-overlay.modal-underneath .overflow-y-auto {
        overflow: hidden !important;
        pointer-events: none !important;
    }

    /* אזורי גלילה ייעודיים */
    .scroll-y {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 120px;
        /* מחזירים את הגלילה המעוצבת במקום להסתיר אותה */
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    /* Loaders */
    #loader-global {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        z-index: 99999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #loader-global.hidden {
        display: none !important;
    }

    .spinner-lg {
        width: 50px;
        height: 50px;
        border: 4px solid #E2E8F0;
        border-top-color: #6366F1;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .btn-loading {
        opacity: 0.7;
        pointer-events: none;
    }

    .btn-spinner {
        display: none;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s infinite;
    }

    .btn-loading .btn-spinner {
        display: inline-block;
    }

    .btn-loading span {
        display: none;
    }

    /* SweetAlert Customization */
    div:where(.swal2-container) {
        z-index: 100000 !important;
        /* Always above loader-global (99999) */
        outline: none !important;
        border: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* RTL fix: prevent toast progress bar from escaping popup bounds
       and rendering as a full-screen vertical line on iOS/Android */
    .swal2-timer-progress-bar-container,
    .swal2-timer-progress-bar {
        display: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        visibility: hidden !important;
    }
    
    /* ══ GRAY LINE FIX: Completely neutralize ALL SweetAlert body mutations ══
       SweetAlert2's embedded CSS sets overflow:hidden, height:auto, and padding-right
       on <body> when modals open/close. These mutations cause layout thrashing that
       produces a 1-10px gray line artifact at viewport edges.
       We override every single one to prevent ANY body style change. */
    body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
        overflow-x: hidden !important;
        padding-right: 0 !important;
    }
    body.swal2-height-auto {
        height: auto !important;
        min-height: 100vh !important;
    }
    /* Prevent SweetAlert iOS fix from repositioning body */
    body.swal2-iosfix {
        position: relative !important;
        top: auto !important;
        overflow-x: hidden !important;
    }
    /* Speed up SweetAlert animations — 200ms instead of default 500ms */
    div:where(.swal2-container) .swal2-popup.animate__animated {
        animation-duration: 200ms !important;
    }

    div:where(.swal2-container).swal2-center>.swal2-popup {
        border: none !important;
        outline: none !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    }

    div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
        background-color: #4F46E5 !important;
        box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2) !important;
    }

    /* I18N Helper for Arrows */
    html[dir="ltr"] .fa-arrow-left {
        transform: rotate(180deg);
    }

    html[dir="ltr"] .fa-chevron-right {
        transform: rotate(180deg);
    }

    html[dir="ltr"] .fa-chevron-left {
        transform: rotate(180deg);
    }

    /* ── Guide Accordion Rich Content ── */
    .guide-panel-content ol.guide-steps,
    .guide-panel-content ul {
        padding-inline-start: 20px;
        margin: 8px 0;
        font-size: 13px;
        color: #475569;
        line-height: 1.75;
    }

    .guide-panel-content ol.guide-steps>li {
        margin-bottom: 4px;
        padding-inline-start: 4px;
    }

    .guide-panel-content ul li {
        list-style-type: disc;
        margin-bottom: 2px;
    }

    .guide-panel-content b {
        color: #1e293b;
        font-weight: 700;
    }

    .guide-panel-content p {
        font-size: 13px;
        color: #475569;
        margin-bottom: 8px;
        line-height: 1.6;
    }

    .guide-panel-content br+b {
        display: inline-block;
        margin-top: 6px;
    }

    /* Guide Table */
    .guide-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
        margin: 8px 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .guide-table thead tr {
        background: rgba(99, 102, 241, 0.08);
    }

    .guide-table th {
        padding: 7px 10px;
        text-align: start;
        font-weight: 700;
        color: #334155;
        border-bottom: 1px solid #e2e8f0;
    }

    .guide-table td {
        padding: 7px 10px;
        color: #475569;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: top;
    }

    .guide-table tr:last-child td {
        border-bottom: none;
    }

    .guide-table tr:hover td {
        background: rgba(99, 102, 241, 0.04);
    }

    /* Info / Warn boxes */
    .guide-info {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 12px;
        color: #1e40af;
        margin-top: 10px;
        line-height: 1.6;
    }

    .guide-warn {
        background: #fffbeb;
        border: 1px solid #fde68a;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 12px;
        color: #92400e;
        margin-top: 10px;
        line-height: 1.6;
    }

    .guide-info ul,
    .guide-warn ul {
        margin: 4px 0 0;
        padding-inline-start: 18px;
    }

    /* Icon flex fix */
    .guide-panel-content i.fa-solid {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
/* Accessibility: visually hidden text, readable inactive nav labels */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-item:not(.active) > span:not(.text-indigo-600) { color: #475569; opacity: 1; }
.nav-item.active > span:not(.text-indigo-600) { color: #4f46e5; opacity: 1; }
#login-uuid::placeholder { letter-spacing: normal; font-family: "Rubik", sans-serif; font-size: 1rem; font-weight: 600; }
#screen-login .text-slate-400, #screen-login .text-slate-500 { color: #475569; }
