/* login.html styles (moved out of the inline <style> 2026-10-22; same position in the cascade:
   after tokens.css, before mobile.css). */
:root {
    --brand-primary: var(--pd-navy);
    /* כחול כהה מלכותי */
    --brand-secondary: var(--pd-blue);
    --brand-bg-light: #f8fafc;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #FFFFFF;
    color: var(--pd-navy);
    margin: 0;
    overflow: auto;
}

/* ===== LOGIN OVERLAY ===== */
#login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #001a4d;
    /* הרקע הכחול הכהה המקורי שאהבת */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* flex-start, not center: centring pushed the top of a card taller than the screen
       above the scroll origin, where it could not be scrolled to (phone, 2026-10-23).
       .login-content-row's margin:auto still centres it whenever it fits. */
    justify-content: flex-start;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    /* מאפשר גלילה כשהטבלאות הציבוריות גבוהות מהחלון (מובייל) */
}

#login-particle-canvas {
    position: fixed;
    /* נשאר על כל המסך גם בגלילה */
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.unified-login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 32px 24px;
    width: 90%;
    max-width: 480px;
    color: var(--pd-navy);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
    margin: auto;
}

.login-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-sizing: border-box;
}

.public-returns-column {
    box-sizing: border-box;
}

.login-logo {
    margin-bottom: 0px;
    /* הוקטן לאפס כדי לקרב לתת-כותרת */
}

.login-logo img {
    width: 230px;
    /* הוגדל שוב לבקשת הלקוח */
    height: auto;
    display: inline-block;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--brand-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.login-column h1 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 10px 0 6px;
    color: var(--pd-navy);
}

.login-column .subtitle {
    font-size: 1.4rem;
    /* הוגדל שוב לבקשת הלקוח */
    color: var(--pd-navy);
    font-weight: 500;
    margin-top: -15px;
    /* הוקטן עוד יותר לבקשת הלקוח */
    margin-bottom: 32px;
}

.input-group {
    text-align: right;
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--brand-primary);
    font-size: 0.95rem;
}

.login-input {
    width: 100%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1.15rem;
    color: var(--pd-navy);
    font-family: 'Rubik', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    direction: ltr;
    /* כתובת אימייל צריכה להיות משמאל לימין */
    text-align: right;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02);
}

.login-input:focus {
    border-color: var(--brand-secondary);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02), var(--pd-focus-ring);
    background: #fff;
}

.login-input::placeholder {
    color: var(--pd-muted);
    text-align: right;
}

.login-btn {
    width: 100%;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    font-family: 'Rubik', sans-serif;
    border: none;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: 0.2s;
    box-shadow: 0 4px 14px rgba(0, 35, 102, 0.25);
}

.login-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 35, 102, 0.35);
}

.login-error {
    color: var(--pd-loss);
    font-size: 0.85rem;
    margin-top: 15px;
    min-height: 20px;
    font-weight: 500;
    background: var(--pd-loss-tint);
    border: 1px solid #fecaca;
    padding: 8px;
    border-radius: 8px;
    display: none;
}

.alert-box {
    color: var(--pd-gain);
    background: var(--pd-gain-tint);
    border: 1px solid #a7f3d0;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
}

.otp-inputs {
    margin: 20px 0 8px;
}

.otp-single {
    width: 100%;
    background: var(--brand-bg-light);
    border: 1.5px solid var(--pd-line);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand-primary);
    text-align: center;
    letter-spacing: 6px;
    font-family: 'Rubik', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    direction: ltr;
}

.otp-single:focus {
    border-color: var(--brand-secondary);
    box-shadow: var(--pd-focus-ring);
    background: #fff;
}

.otp-single::placeholder {
    color: var(--pd-line-strong);
    letter-spacing: 6px;
    font-size: 1.4rem;
}

.login-back {
    background: none;
    border: none;
    color: var(--pd-muted);
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 16px;
    font-family: 'Rubik', sans-serif;
    text-decoration: underline;
    transition: 0.2s;
}

.login-back:hover {
    color: var(--brand-primary);
}

#loading {
    display: none;
    color: var(--brand-primary);
    font-weight: 600;
    margin-top: 15px;
    font-size: 0.9rem;
}

.info {
    font-size: 0.82rem;
    color: var(--pd-ink-2);
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--pd-line);
    line-height: 1.6;
    font-weight: 500;
}

.contact-link {
    color: var(--brand-primary);
    text-decoration: underline;
    font-weight: 700;
}

/* ===== REGISTRATION MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 26, 77, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 48px 40px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-overlay.active {
    opacity: 1;
    display: flex !important;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--pd-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-modal:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--pd-ink-2);
}

.register-link-btn {
    background: none;
    border: none;
    color: var(--brand-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.2s;
    display: inline-block;
}

.register-link-btn:hover {
    color: var(--brand-primary);
    transform: translateY(-1px);
}

/* ===== CONTACT MODAL EXTENSIONS ===== */
.modal-header {
    padding: 0;
    color: var(--brand-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    background: none !important;
    border: none !important;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--brand-primary);
    font-weight: 700;
    text-align: center;
}

.modal-header .close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--pd-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-header .close-modal:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--pd-ink-2);
}

.modal-body {
    padding: 0 !important;
}

#contactModal input,
#contactModal textarea {
    width: 100% !important;
    background: #ffffff !important;
    border: 2px solid var(--pd-line) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    color: var(--pd-navy) !important;
    font-family: 'Rubik', sans-serif !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
    text-align: right !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

#contactModal textarea {
    height: 90px !important;
    resize: none !important;
}

#contactModal input:focus,
#contactModal textarea:focus {
    border-color: var(--brand-secondary) !important;
    box-shadow: var(--pd-focus-ring) !important;
}

#contactSubmitBtn {
    width: 100% !important;
    background: var(--brand-primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-top: 10px !important;
    height: auto !important;
    box-shadow: 0 4px 14px rgba(0, 35, 102, 0.25) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
}

.action-btn {
    font-family: 'Rubik', sans-serif;
    border: none;
    padding: 14px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid var(--brand-primary);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .modal-content {
        padding: 0;
        overflow: hidden;
    }

    #registration-modal .modal-content {
        padding: 30px 20px;
    }
}

/* ===== TERMS MODAL ===== */
#terms-modal .modal-content {
    max-width: 600px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.terms-body {
    padding: 30px;
    overflow-y: auto;
    text-align: right;
    direction: rtl;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--pd-ink-3);
    background: #fff;
    flex: 1;
}

.terms-footer {
    padding: 20px 30px;
    background: var(--pd-surface-sunk);
    border-top: 1px solid var(--pd-line);
    display: flex;
    justify-content: center;
}

.terms-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    text-align: right;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-link {
    color: var(--brand-secondary);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.agree-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.agree-btn:disabled {
    background: var(--pd-line-strong);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.why-prodata-btn-subtle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--pd-navy);
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.why-prodata-btn-subtle:hover {
    background: #001a4d;
    color: white !important;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(0, 35, 102, 0.3);
}

/* the two buttons wrap onto two lines on phones - keep them centered and apart */
#why-prodata-wrapper > .why-prodata-btn-subtle {
    margin: 4px;
}

.promo-video-btn {
    font-family: 'Rubik', sans-serif;
    background: #fff;
    color: var(--pd-navy) !important;
    box-shadow: inset 0 0 0 2px var(--pd-navy);
}

.promo-video-btn:hover {
    background: var(--pd-surface-2);
    color: var(--pd-navy) !important;
}

/* ===== PROMO VIDEO (full-window player) ===== */
#promo-video-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: #000;
    align-items: center;
    justify-content: center;
}

#promo-video-overlay.open {
    display: flex;
}

#promo-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.promo-video-close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.promo-video-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== MARKETING CARDS SHOWCASE (GRID/ROW) ===== */
.marketing-cards-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
    box-sizing: border-box;
}

.marketing-showcase-card {
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-md);
    padding: 16px 20px;
    color: var(--pd-ink-3);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 320px;
    text-align: right;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketing-showcase-card:hover {
    box-shadow: var(--pd-shadow-md);
}

/* Showcase cards (2026-10-21, DESIGN.md "כלל צבע הכלי"): white cards, ink titles; the tool's
   soft colour only on the icon square + the hover border. One rule, the colour per card. */
.showcase-xray  { --tool: var(--pd-tool-portfolio); --tool-tint: var(--pd-tool-portfolio-tint); --tool-line: var(--pd-tool-portfolio-line); }
.showcase-doc   { --tool: var(--pd-tool-reasoning); --tool-tint: var(--pd-tool-reasoning-tint); --tool-line: var(--pd-tool-reasoning-line); }
.showcase-risk  { --tool: var(--pd-tool-risk);      --tool-tint: var(--pd-tool-risk-tint);      --tool-line: var(--pd-tool-risk-line); }
.showcase-stars { --tool: var(--pd-warn);           --tool-tint: var(--pd-warn-tint);           --tool-line: #FDE68A; }
.showcase-chat  { --tool: var(--pd-ai-from);       --tool-tint: var(--pd-tool-ai-tint);        --tool-line: var(--pd-tool-ai-line); }
.marketing-showcase-card:hover { border-color: var(--tool-line, var(--pd-line-strong)) !important; }
.marketing-showcase-card h3 { color: var(--pd-ink) !important; }
.marketing-showcase-card p { color: var(--pd-ink-4) !important; }
.marketing-showcase-card .marketing-icon { color: var(--tool) !important; background: var(--tool-tint) !important; border: 1px solid var(--tool-line); }

.marketing-showcase-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.marketing-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* ===== HERO SECTION (INSIDE CARD) ===== */
.login-hero-inside {
    text-align: center;
    margin-top: 15px;
    display: none;
}

@media (min-width: 1024px) {
    .login-hero-inside {
        display: block;
    }

    #login-step-email .subtitle {
        display: none;
        /* Hide original subtitle when hero is shown */
    }

    .login-content-row,
    .modal-content {
        zoom: 0.69;
        --login-zoom-w: 0.69;
        /* מונע כפל זום ומאפשר התאמה מושלמת למסך ללא גלילה */
    }
}

.hero-kicker {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pd-muted);
    margin-bottom: 2px;
    display: block;
}

.hero-slogan-inside {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--pd-navy);
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-overview-inside {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 500;
    color: var(--pd-ink-4);
    margin-bottom: 15px;
    line-height: 1.35;
}

.pro-only-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #001a4d;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    margin: 0;
    align-self: center;
}

@media (max-width: 1023px) {
    .login-column .subtitle {
        font-size: 1.55rem;
        /* משיכת ההסבר למעלה קרוב יותר ללוגו במובייל */
        margin-bottom: 30px;
        line-height: 1.25;
    }
}

/* ===== PUBLIC RETURNS TABLES (SSR, SEO) ===== */
.login-content-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    margin: auto;
    /* ממורכז כשנכנס למסך, נגלל מלמעלה כשלא */
    padding: 24px 0;
    box-sizing: border-box;
}

.public-returns-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.public-tables-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.public-returns-heading {
    color: var(--brand-primary);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    text-align: right;
}

.public-returns-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--pd-ink-4);
    font-size: 0.8rem;
}

.public-returns-footer a {
    color: var(--brand-secondary);
    font-weight: 700;
    text-decoration: none;
}

.public-returns-footer a:hover {
    text-decoration: underline;
}

.disclaimer-trigger-btn {
    background: none;
    border: none;
    color: var(--brand-secondary);
    font-size: 0.8rem;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: text-decoration 0.15s;
}

.disclaimer-trigger-btn:hover {
    text-decoration: underline;
}

/* Disclaimer Modal */
#disclaimerModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#disclaimerModal.open {
    display: flex;
}

.disclaimer-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 44px 44px 36px;
    max-width: 740px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    position: relative;
    direction: rtl;
    max-height: 88vh;
    overflow-y: auto;
}

.disclaimer-modal-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pd-navy);
    margin: 0 0 22px;
    text-align: center;
}

.disclaimer-modal-box p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--pd-ink-3);
    margin: 0 0 16px;
}

.disclaimer-modal-box p:last-of-type {
    margin-bottom: 24px;
}

.disclaimer-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--pd-surface-2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--pd-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.disclaimer-close-btn:hover {
    background: var(--pd-line);
    color: var(--pd-ink-2);
}

.disclaimer-modal-ok {
    display: block;
    margin: 0 auto;
    background: var(--pd-navy);
    color: #fff;
    border: none;
    padding: 11px 36px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.disclaimer-modal-ok:hover {
    background: #001a4d;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    #disclaimerModal {
        padding: 12px;
    }

    .disclaimer-modal-box {
        padding: 26px 18px 22px;
        border-radius: 16px;
        max-height: 88vh;
    }

    .disclaimer-modal-box h2 {
        font-size: 1.15rem;
        margin: 0 0 16px;
        padding: 0 28px;
    }

    .disclaimer-modal-box p {
        font-size: 0.88rem;
        line-height: 1.7;
        margin: 0 0 12px;
    }

    .disclaimer-close-btn {
        top: 12px;
        left: 12px;
        width: 28px;
        height: 28px;
    }

    .disclaimer-modal-ok {
        width: 100%;
        padding: 12px;
    }
}

/* Mini-table styles copied from static/css/styles.css (login page doesn't load it) */
.mini-table-card {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mini-table-header {
    padding: 15px;
    background: var(--pd-surface-sunk);
    border-bottom: 1px solid var(--pd-line);
}

.pmt-title {
    font-weight: 900;
    color: var(--pd-ink);
    font-size: 0.95rem;
    font-family: 'Rubik', sans-serif;
}

.pmt-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.screenshot-btn {
    /* Icon only (no "צילום" text), same look as the detailed report's pd-sec-btn */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}

.screenshot-btn:hover {
    background: var(--pd-surface-2);
    color: var(--pd-ink);
    border-color: var(--pd-line-strong);
}

.screenshot-btn:focus-visible {
    outline: 2px solid var(--pd-blue, var(--pd-blue));
    outline-offset: 2px;
}

.screenshot-btn svg {
    display: block;
    flex-shrink: 0;
}

.screenshot-btn span {
    line-height: 1;
}

.mini-table-header select {
    width: 100%;
}

/* Select2 styling for login page mini-table selects */
.pmt-select2-container .select2-selection--single {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid var(--pd-line-strong) !important;
    margin-bottom: 8px !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
    transition: border-color 0.2s !important;
}

.pmt-select2-container .select2-selection--single:focus-within {
    border-color: rgba(0, 35, 102, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.08) !important;
}

.pmt-select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--pd-ink-2) !important;
    text-align: right !important;
    font-family: 'Rubik', sans-serif !important;
}

.pmt-select2-container .select2-selection--single .select2-selection__arrow {
    height: 32px !important;
    top: 1px !important;
    left: 5px !important;
    right: auto !important;
}

/* 2-column path dropdown layout */
.pmt-path-dropdown .select2-results>.select2-results__options {
    display: flex;
    flex-direction: row;
    overflow-y: auto;
}

.pmt-path-dropdown .select2-results__option[role="group"] {
    flex: 1;
    width: 50%;
    min-width: 0;
    border-left: 1px solid var(--pd-line);
    padding: 0;
    margin: 0;
}

.pmt-path-dropdown .select2-results__option[role="group"]:last-child {
    border-left: none;
}

.pmt-path-dropdown .select2-results__group {
    font-weight: 800;
    text-align: center;
    background: var(--pd-surface-sunk);
    color: var(--brand-primary);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--pd-line);
    font-family: 'Rubik', sans-serif;
}

.pmt-path-dropdown.select2-dropdown {
    border: 1px solid var(--pd-line) !important;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1) !important;
    border-radius: 1rem !important;
    z-index: 100000 !important;
    overflow: hidden !important;
}

.pmt-product-dropdown.select2-dropdown {
    border: 1px solid var(--pd-line) !important;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1) !important;
    border-radius: 1rem !important;
    z-index: 100000 !important;
}

/* Compact option items */
.pmt-product-dropdown .select2-results__option,
.pmt-path-dropdown .select2-results__option {
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    line-height: 1.3 !important;
    font-family: 'Rubik', sans-serif !important;
}

/* Compact group headers for path dropdown */
.pmt-path-dropdown .select2-results__group {
    font-size: 0.75rem !important;
    padding: 5px 8px !important;
}

/* Limit list height with scroll */
.pmt-product-dropdown .select2-results>.select2-results__options {
    max-height: 200px !important;
    overflow-y: auto !important;
}

.pmt-path-dropdown .select2-results>.select2-results__options {
    max-height: 200px !important;
}

/* Selected item highlight */
.pmt-select2-container .select2-container--default .select2-results__option[aria-selected="true"],
.pmt-path-dropdown .select2-results__option[aria-selected="true"],
.pmt-product-dropdown .select2-results__option[aria-selected="true"] {
    background-color: var(--pd-blue-tint) !important;
    color: var(--brand-primary) !important;
    font-weight: 800 !important;
}

.mini-table-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 280px;
    padding: 0;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mini-table th {
    background: var(--pd-surface-sunk);
    color: var(--pd-ink);
    border-bottom: 2px solid var(--pd-navy);
    font-weight: 700;
    text-align: right;
    padding: 8px 4px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    font-size: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.mini-table th:hover {
    background: var(--pd-surface-2);
    color: var(--brand-secondary);
}

.mini-table td {
    padding: 8px 4px;
    border-bottom: 1px solid #EEF2F6;
    color: var(--pd-ink-3);
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
}

.mini-table tr:hover {
    background: var(--pd-surface-sunk);
}

.fund-name-static {
    font-weight: 700;
    color: var(--pd-ink-2);
}

.mini-table .yield-val {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.mini-table .yield-positive {
    color: var(--pd-gain);
}

.mini-table .yield-negative {
    color: var(--pd-loss);
}

.card-main-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* ===== MOBILE (PHONE) VIEW TOGGLE: login square <-> single returns table ===== */
.mobile-view-toggle-btn {
    display: none;
}

/* 1023, not 768. The desktop layout for this page begins at
   min-width:1024px (see below), so anything under that must be handled
   by this block. At 768 there was a dead band from 769-1023px where the
   marketing panel was still shown, the mobile view-toggle button was
   not, and the desktop layout had not kicked in yet - i.e. tablets got
   a layout that was designed for neither. Handing off exactly at 1024
   closes the gap with no overlap. */
@media (max-width: 1023px) {
    .marketing-cards-showcase {
        display: none !important;
    }

    .pro-only-badge {
        display: inline-block !important;
        /* הלוגו (PNG) כולל כ-36px שקופים מובנים מתחת לסימן עצמו,
           לכן צריך מרווח שלילי כדי לצמצם את הפער האמיתי על המסך */
        margin-top: -22px;
        margin-bottom: 2px;
    }

    .login-column .subtitle {
        margin-top: 0 !important;
    }

    #pmt2 {
        display: none !important;
    }

    .mobile-view-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px 16px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--pd-gain) 0%, #15803d 100%);
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        cursor: pointer;
        margin-top: 16px;
        box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
    }

    .mobile-view-toggle-btn.mobile-back-btn {
        background: linear-gradient(135deg, var(--pd-navy) 0%, #2d4a8f 100%);
        box-shadow: 0 4px 14px rgba(0, 35, 102, 0.25);
        margin-top: 0;
        margin-bottom: 16px;
    }

    .card-main-layout:not(.mobile-show-table) .public-returns-column {
        display: none !important;
    }

    .card-main-layout.mobile-show-table .login-column {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .login-content-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 1600px;
        width: 95%;
    }

    .unified-login-card {
        flex-direction: column;
        max-width: 1920px;
        width: 100%;
        height: 890px;
        padding: 40px 48px;
        gap: 32px;
        align-items: stretch;
    }

    .card-main-layout {
        flex-direction: row;
        align-items: stretch;
        gap: 56px;
        flex: 1;
        min-height: 0;
    }

    .marketing-cards-showcase {
        flex-direction: row;
        width: 100%;
        gap: 16px;
        margin: 0;
        justify-content: space-between;
        border-top: 1px solid var(--pd-line);
        padding-top: 24px;
    }

    .marketing-showcase-card {
        max-width: none;
        flex: 1;
    }

    .login-column {
        width: 380px;
        flex-shrink: 0;
        justify-content: space-between;
    }

    .public-returns-column {
        flex: 1;
        min-width: 0;
        gap: 16px;
        justify-content: space-between;
    }

    .public-tables-row {
        display: flex;
        flex-direction: row;
        gap: 24px;
        flex: 1;
        align-items: stretch;
        min-height: 0;
    }

    .mini-table-card {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        background: #ffffff;
        border: 1px solid var(--pd-line);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    }

    .mini-table-container {
        flex: 1;
        max-height: none;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* מפנים את צד שמאל לטבלאות */
    .marketing-card.card-2,
    .marketing-card.card-4 {
        display: none;
    }
}

/* ===== SCALE UP ON LARGER MONITORS =====
   zoom הוא ערך קבוע - במסך חיצוני גדול אותו ערך נראה קטן יחסית לשטח הפנוי.
   מגדילים בהדרגה לפי רוחב המסך כדי שהכרטיס ימשיך להיראות באותה פרופורציה. */
@media (min-width: 1440px) {

    .login-content-row,
    .modal-content {
        zoom: 0.78;
        --login-zoom-w: 0.78;
    }
}

@media (min-width: 1920px) {

    .login-content-row,
    .modal-content {
        zoom: 0.9;
        --login-zoom-w: 0.9;
    }
}

@media (min-width: 2560px) {

    .login-content-row,
    .modal-content {
        zoom: 1.05;
        --login-zoom-w: 1.05;
    }
}

/* ===== FIT THE HEIGHT TOO =====
   The zoom ladder above is width-only, so on a short laptop window (1536x~715 at
   100% browser zoom) the card came out taller than the screen and the page
   scrolled. The script at the end of <body> publishes --login-zoom-h, the zoom at
   which the card exactly fits the window height; the smaller of the two wins. */
@media (min-width: 1024px) {
    .login-content-row {
        zoom: min(var(--login-zoom-w), var(--login-zoom-h, 9));
    }
}

/* ===== Phone: the whole login card fits one screen (user, 2026-10-23) =====
   Was 1032px tall at 320x620 (a phone with browser zoom), so the agent had to scroll
   to reach "שלח קוד אימות" and the links. Compact spacing, a smaller description,
   the two "למה פרודאטה / צפה בסרטון" buttons side by side and a one-line footer.
   The input stays at 16px (below that iOS zooms in on focus). Landscape phones are
   too short for any layout: there the card still scrolls (overlay is flex-start). */
@media (max-width: 767px) {
    .login-content-row { padding: 10px 0 !important; gap: 12px !important; }
    .unified-login-card { padding: 18px 18px 14px !important; gap: 12px !important; width: calc(100% - 20px) !important; border-radius: 22px !important; }
    .login-column > div:first-child { margin-top: -12px !important; margin-bottom: 4px !important; }
    .login-column > div:first-child img { width: 96px !important; }
    .pro-only-badge { margin-top: -16px !important; margin-bottom: 0 !important; font-size: 0.72rem !important; padding: 3px 12px !important; }
    .login-column .subtitle { font-size: 1rem !important; line-height: 1.4 !important; margin: 4px 0 12px !important; }
    .input-group { margin-bottom: 6px !important; }
    .input-group label { margin-bottom: 5px !important; font-size: 0.88rem !important; }
    .login-input { padding: 11px 14px !important; font-size: 1rem !important; }
    .login-btn { padding: 12px !important; font-size: 1.05rem !important; margin-top: 8px !important; }
    .register-link-btn { margin-top: 10px !important; font-size: 0.92rem !important; min-height: 0 !important; padding: 4px 0 !important; }
    .mobile-view-toggle-btn { margin-top: 10px !important; padding: 10px 14px !important; font-size: 0.88rem !important; }
    .info { margin-top: 12px !important; padding-top: 8px !important; font-size: 0.7rem !important; line-height: 1.5 !important; }
    #why-prodata-wrapper { margin-top: 8px !important; display: flex; gap: 8px; justify-content: center; }
    #why-prodata-wrapper > .why-prodata-btn-subtle { margin: 0 !important; flex: 1 1 0; padding: 8px 10px !important; font-size: 0.85rem !important; min-height: 40px; white-space: nowrap; }
    /* OTP step */
    #login-step-otp h1 { font-size: 1.3rem !important; margin: 4px 0 10px !important; }
    #login-step-otp .alert-box { padding: 10px !important; font-size: 0.88rem !important; margin-bottom: 10px !important; }
}
