/* =================================================================== */
/* AMREI KODESH - MAIN STYLESHEET                    */
/* =================================================================== */

/* Table of Contents
---------------------------------------------------
1.  Imports & Font Definitions
2.  Root Variables
3.  General & Base Styles
4.  Header & Navigation
5.  Buttons & CTA
6.  Homepage Sections
7.  Product Page Styles
8.  Features List & Icons
9.  Comparison Table
10. Contact & Subscription Sections
11. Promotions Page
12. Modals (General, Trial, Bank, Gemini)
13. Gallery & Lightbox
14. Coupon Section
15. Gemini AI Recommender FAB
16. Keyframe Animations
17. Responsive Media Queries
--------------------------------------------------- */


/* === 1. IMPORTS & FONT DEFINITIONS === */
/* ===================================== */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800;900&display=swap');

@font-face {
    font-family: 'Amrei Kodesh Font';
    src: url('../fonts/EFTFrankfurt-Bold.woff2') format('woff2'),
         url('../fonts/EFTFrankfurt-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


/* === 2. ROOT VARIABLES === */
/* ========================= */
:root {
    /* === Modern & Vibrant Theme === */
    --primary-color: #007BFF;       /* Vibrant Blue */
    --primary-hover: #0056b3;       /* Darker Blue */
    --secondary-color: #17a2b8;     /* Info Teal (Green-Blue) */
    --secondary-hover: #117a8b;     /* Darker Teal */
    --accent-color: #28a745;        /* Success Green */
    --star-color: #ffc107;          /* Amber for stars */
    --trophy-color: #FFD700;        /* Gold for trophy */

    --background-dark: #F8F9FA;
    --background-surface: #F8F9FA;
    --background-elevated: #FFFFFF;

    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-on-primary: #FFFFFF;

    --border-color: #dee2e6;
    --border-radius: 0.75rem; /* Slightly larger radius */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* === 3. GENERAL & BASE STYLES === */
/* ================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-dark);
    color: var(--text-primary);
    text-align: center;
    direction: rtl;
}

main {
    padding: 1rem;
    max-width: 1100px;
    margin: auto;
}

section {
    padding: 4rem 1.5rem;
    margin-bottom: 2rem;
}

h1, h2, h3 { 
    font-weight: 800; 
}

h1 { 
    font-size: clamp(2.2rem, 5vw, 3rem); 
    line-height: 1.2; 
}

h2 { 
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    color: var(--text-primary); 
    margin-bottom: 1rem;
}

h3 { 
    font-size: 1.75rem; 
    color: var(--text-primary); 
    margin-bottom: 0.5rem; 
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 750px;
    margin: 1rem auto;
}

.subtitle {
    font-size: 1.25rem;
    max-width: 700px;
}

a.product-details-link {
    text-decoration: none;
    color: inherit;
    cursor: default;
    display: block;
    transition: transform 0.2s ease-out;
}
a.product-details-link.clickable {
    cursor: pointer;
}
a.product-details-link.clickable:hover {
    transform: scale(1.02);
}
a.product-details-link h3, a.product-details-link p {
    color: inherit;
}


/* === 4. HEADER & NAVIGATION === */
/* ============================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Amrei Kodesh Font', 'Heebo', sans-serif;
    font-size: 2.0rem;
    font-weight: bold;
    text-decoration: none;
    background-image: linear-gradient(
        to left, 
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate-gradient-scroll 10s ease-in-out infinite;
}

.main-nav .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}
.main-nav .nav-link:hover {
    color: var(--text-primary);
    background-color: var(--background-surface);
}
.main-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
    background-color: rgba(0, 123, 255, 0.1);
}
.main-nav .nav-link-primary {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    font-weight: 700;
}
.main-nav .nav-link-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-on-primary);
}
.main-nav .nav-link.nav-link-special {
    background-color: var(--accent-color);
    color: var(--text-on-primary);
    border: 1px solid #218838;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    font-weight: 700;
}
.main-nav .nav-link.nav-link-special:hover {
    background-color: #218838;
    color: var(--text-on-primary);
    transform: scale(1.05);
}
.main-nav .nav-link.nav-link-special.active {
    background-color: #1c7430;
    color: #ffffff;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.25);
    font-weight: 900;
}


/* === 5. BUTTONS & CTA === */
/* ======================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    color: var(--text-on-primary);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    width: auto;
    box-sizing: border-box;
    font-size: 1rem;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.cta-button.primary {
    background-color: var(--primary-color);
}
.cta-button.primary small {
    font-weight: 400;
    opacity: 0.9;
    display: block;
    line-height: 1.2;
}
.cta-button.primary:hover { 
    background-color: var(--primary-hover); 
}
.cta-button.secondary {
    background-color: var(--secondary-color);
}
.cta-button.secondary:hover { 
    background-color: var(--secondary-hover); 
}
.cta-button.tertiary {
    background-color: var(--background-surface);
    color: var(--text-primary);
    font-weight: 500;
    border: 1px solid var(--border-color);
}
.cta-button.tertiary:hover {
    background-color: var(--background-dark);
    border-color: var(--text-primary);
}


/* === 6. HOMEPAGE SECTIONS === */
/* ============================ */
.modern-hero {
    min-height: auto;
    padding: 4rem 1rem;
}
.highlight {
    color: var(--primary-color);
}
.featured-product {
    background-color: var(--background-elevated);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
}
.product-showcase-simple {
    margin-top: 2rem;
}
.product-screenshot {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}
.testimonials {
    padding-top: 2rem;
}
.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.testimonial-card {
    background: var(--background-elevated);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: right;
    box-shadow: var(--shadow-md);
}
.testimonial-card .quote {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.testimonial-card .author {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.why-us {
    background-color: var(--background-dark);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}
.feature-item-grid .feature-icon {
    font-size: 3rem;
    line-height: 1;
}
.feature-item-grid h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
}


/* === 7. PRODUCT PAGE STYLES === */
/* ============================== */
.product-page-main, .product-details-main, .promotions-page-main {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}
.page-intro {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.page-intro h1 {
    line-height: 1;
    margin-bottom: 0;
}
.title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.page-intro p {
    margin-top: 0;
    margin-bottom: 0;
}
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem; 
}
.product-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--background-elevated); 
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 100px; /* Offset for scrolling to anchor */
}
.product-entry:hover {
    transform: translateY(-5px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); 
}
.product-entry.reverse {
    direction: ltr;
}
.product-entry.reverse .product-entry__details {
    direction: rtl;
}
.product-entry__details {
    text-align: right;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-entry__media {
    position: relative;
}
.product-description {
    font-size: 1.1rem;
    max-width: none;
    margin: 1rem 0;
}
.product-entry .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    color: var(--text-primary);
    text-align: right;
}
.product-entry .old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    margin-right: 0.5rem;
}
.product-mockup-wrapper {
    position: relative;
    height: 420px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius);
}
.product-mockup-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.product-mockup-image.placeholder {
    opacity: 0.5;
    filter: grayscale(80%);
}
.new-version-ribbon {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}
.version-tag-basic {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.2em 0.6em 0.25em;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 0.25rem;
    margin-inline-start: 0.5rem;
}
.recommended-badge-alt, .basic-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.recommended-badge-alt {
    background: var(--primary-color);
}
.basic-badge {
    background-color: #6c757d;
}
.modern-footer {
    display: flex;
    gap: 1.5rem;
    margin-top: auto; /* Pushes footer to the bottom of the flex container */
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
}
.changelog-button-bottom {
    background-color: #e6f7ff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}
.changelog-button-bottom:hover {
    background-color: #d0ebf7;
    color: var(--primary-hover);
    text-decoration: none;
}
.product-entry.coming-soon .product-entry__details {
    opacity: 0.7;
}
.coming-soon-badge {
    background: var(--secondary-color);
    color: white;
}
.coming-soon-placeholder {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-surface);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}
.coming-soon-placeholder p {
    margin-top: 0;
    font-weight: 500;
    color: var(--text-primary);
}
/* Platform Selector in Product Card */
.platform-choice-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--background-surface);
    border-radius: var(--border-radius);
}
.platform-choice-container h4,
.action-buttons-container h4 {
    text-align: right;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}
.platform-selector {
    display: flex;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.platform-selector input[type="radio"] {
    display: none;
}
.platform-selector label {
    flex: 1;
    padding: 0.75rem;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--background-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.platform-selector label:not(:last-of-type) {
    border-left: 1px solid var(--border-color);
}
.platform-selector input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.platform-selector input[type="radio"]:checked + label .icon-win,
.platform-selector input[type="radio"]:checked + label .icon-android {
    filter: brightness(0) invert(1);
}
.action-buttons-container {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--background-surface);
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s ease;
}
.action-buttons-container.visible {
    display: flex;
}
.action-buttons-container .cta-button {
    width: 100%;
}
/* Product Details Page Specifics */
#product-details-container.loading {
    text-align: center;
    font-size: 1.2rem;
    padding: 5rem 0;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: flex-start;
}
.details-text {
    text-align: right;
}
.details-text h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.details-text .platform-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.details-text .description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: none;
}
.details-media h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: right;
}
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect Ratio 16:9 */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}
.video-container iframe, .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 59, 115, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: var(--border-radius);
    pointer-events: none;
}
a.product-details-link:hover .product-hover-overlay {
    opacity: 1;
}
.product-hover-overlay.visible-permanently {
    opacity: 1;
}
.overlay-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.75rem 0 0 0;
    color: #ffffff;
    max-width: 80%;
}
.overlay-text p { 
    color: #ffffff;
}
.overlay-icon {
    width: 50px;
    height: 50px;
    position: relative;
    transition: transform 0.3s ease;
}
.overlay-icon::before,
.overlay-icon::after {
    content: '';
    position: absolute;
    background-color: #ffffff;
    transition: all 0.25s ease-out;
}
.overlay-icon::before {
    left: 50%;
    top: 15%;
    width: 4px;
    height: 70%;
    transform: translateX(-50%);
}
.overlay-icon::after {
    top: 50%;
    left: 15%;
    width: 70%;
    height: 4px;
    transform: translateY(-50%);
}
.product-hover-overlay.is-clickable .overlay-icon::before {
    transform: translateX(-50%) rotate(45deg);
    top: 25%;
    height: 50%;
}
.product-hover-overlay.is-clickable .overlay-icon::after {
    width: 50%;
    left: 25%;
    transform: translateY(-50%) rotate(45deg);
}


/* === 8. FEATURES LIST & ICONS === */
/* ================================ */
.icon-win, .icon-android {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: filter 0.3s ease;
}
.icon-win {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48px' height='48px'%3E%3Cpath fill='%230078D4' d='M22.5,22.5H4V4h18.5V22.5z M44,4v18.5H25.5V4H44z M22.5,44H4V25.5h18.5V44z M44,44H25.5V25.5H44V44z'/%3E%3C/svg%3E");
}
.icon-android {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48px' height='48px'%3E%3Cpath fill='%233DDC84' d='M38,13H28.83A6,6,0,0,0,19.17,13H10a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V15A2,2,0,0,0,38,13ZM15,11a1,1,0,1,1-1,1A1,1,0,0,1,15,11Zm18,0a1,1,0,1,1-1,1A1,1,0,0,1,33,11Z'/%3E%3Cpath fill='%233DDC84' d='M11.13,30.45,14.3,25.73A1,1,0,0,1,16,25.73l3.17,4.72a1,1,0,0,1-.87,1.55H12a1,1,0,0,1-.87-1.55Z'/%3E%3Cpath fill='%233DDC84' d='M28.87,30.45,32.05,25.73a1,1,0,0,1,1.74,0l3.17,4.72a1,1,0,0,1-.87,1.55H29.74A1,1,0,0,1,28.87,30.45Z'/%3E%3C/svg%3E");
}
.features-section {
    text-align: right;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.features-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    line-height: 1.6;
    background-color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
}
.feature-item::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-left: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.feature-item.check::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}
.feature-item.star::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107' stroke='%23ffc107' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}
.feature-item strong {
    color: var(--text-primary);
}


/* === 9. COMPARISON TABLE === */
/* =========================== */
.comparison-section { 
    padding: 2rem 1.5rem; 
}

/* --- START: CORRECTED BUTTON STYLES --- */
/* כל הגדרות הכפתור מרוכזות כאן */
#toggle-comparison-table {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-on-primary);
    border: none;
    font-weight: 700;
    font-family: 'Heebo', sans-serif; /* התאמת גופן לזה של כפתור היועץ החכם */
    font-size: 1rem; /* הקטנת הפונט מעט כדי להתאים לגובה החדש */
    padding: 0.45rem 1.8rem; /* גובה הכפתור הוקטן עוד יותר */
    border-radius: var(--border-radius); /* שמירה על פינות מעוגלות */
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
    width: auto;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#toggle-comparison-table:hover {
    transform: translateX(-50%) translateY(-3px); /* שומר על המרכוז ומוסיף תזוזה */
}

/* שומר על המרכוז במצב לחוץ ומונע את ה"בריחה" */
#toggle-comparison-table.expanded {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateX(-50%); /* נשאר ממורכז, ללא תזוזה */
}

/* מסובב את החץ */
#toggle-comparison-table span {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: inline-block;
}

#toggle-comparison-table.expanded span { 
    transform: rotate(180deg); 
}
/* --- END: CORRECTED BUTTON STYLES --- */


#comparison-table-container { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.7s ease-in-out; 
}
#comparison-table-container.table-container-expanded { 
    max-height: 2000px; /* Large enough value */ 
}
.table-responsive-wrapper { 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin-top: 2rem; 
    border: 1px solid var(--border-color); 
    border-radius: var(--border-radius); 
}
.comparison-table { 
    width: 100%; 
    min-width: 600px; 
    border-collapse: collapse; 
    background-color: var(--background-elevated); 
}
.comparison-table th, .comparison-table td { 
    padding: 1rem; 
    text-align: center; 
    border-bottom: 1px solid var(--border-color); 
}
.comparison-table th:first-child, .comparison-table td:first-child { 
    text-align: right; 
    font-weight: 500; 
    width: 35%; 
}
.comparison-table thead th { 
    background-color: var(--background-surface); 
    vertical-align: top; 
    border-bottom-width: 2px; 
}
.product-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative !important;
    gap: 0.25rem !important;
    padding: 35px 10px 10px 10px !important;
}
.product-title-link { 
    text-decoration: none; 
    color: inherit; 
}
.product-header .product-title { 
    font-size: 1.3rem; 
    font-weight: 800; 
    color: var(--text-primary); 
    margin: 0.5rem 0; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.4rem; 
    flex-wrap: wrap; 
    min-height: 2.5em; 
    position: static;
}
.product-header .price { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    margin: 0; 
}
.product-header .price small { 
    font-size: 0.9rem; 
    font-weight: 400; 
    color: var(--text-secondary); 
}
.product-header .badge { 
    display: inline-block; 
    padding: 0.25rem 0.7rem; 
    border-radius: 15px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: white; 
    line-height: 1; 
    vertical-align: middle; 
}
.badge.basic { background-color: #6c757d; }
.badge.plus { background-color: var(--accent-color); }
.badge.pro { background-color: #343a40; }

.badge-recommended {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    color: #E65100;
    border-top: 2px solid #FF9800;
    border-bottom: 2px solid #FF9800;
    padding: 3px 0;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.check-mark { 
    color: var(--accent-color); 
    font-size: 1.5rem; 
    font-weight: bold; 
}
.x-mark { 
    color: var(--text-secondary); 
    font-size: 1.5rem; 
    opacity: 0.6; 
}
.feature-category td { 
    background-color: var(--background-surface); 
    font-weight: 700; 
    color: var(--text-primary); 
    text-align: right !important; 
}

/* === 10. CONTACT & SUBSCRIPTION SECTIONS === */
/* =========================================== */
.contact-page-section { 
    max-width: 750px; 
    margin: 2rem auto; 
    padding: 0 1rem; 
    text-align: center; 
}
.contact-page-section h2 { 
    font-size: 2.5rem; 
}
.contact-box {
    background-color: var(--background-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}
.contact-box .contact-icon { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    color: var(--primary-color); 
}
.contact-box h3 { 
    font-size: 1.8rem; 
    margin-bottom: 0.5rem; 
    color: var(--text-primary); 
}
.contact-box .contact-description { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; 
}
.contact-primary-link {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-on-primary);
    background-color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.contact-primary-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}
.contact-secondary {
    margin-top: 3rem;
    font-size: 1rem;
    color: var(--text-secondary);
}
.contact-secondary a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    direction: ltr;
}
.subscription-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.subscription-form {
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    max-width: 450px; 
    margin: 1.5rem auto 0;
}
.subscription-form input[type="email"] { 
    padding: 0.8rem; 
    border: 1px solid var(--border-color); 
    border-radius: var(--border-radius); 
    font-size: 1rem; 
    text-align: center; 
}
#subscription-result { 
    margin-top: 1rem; 
    font-weight: 500; 
}


/* === 11. PROMOTIONS PAGE === */
/* =========================== */
.promotion-box {
    background-color: var(--background-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem 2.5rem;
    margin: 2.5rem auto;
    box-shadow: var(--shadow-lg);
    text-align: right;
    position: relative;
}
.promotion-box h2 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
    display: inline-block;
}
.promotion-box p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: none;
}
.promotion-box.urgent {
    border: 2px dashed var(--accent-color);
    background: linear-gradient(135deg, rgba(230, 247, 255, 0.8), rgba(255, 255, 255, 0.8));
    overflow: visible;
    margin-top: 4rem;
}
.promotion-box.urgent::after {
    content: 'בתוקף עד ער"ח אב תשפ"ה - 25/07/2025';
    position: absolute;
    top: -20px;
    right: 20px;
    transform: rotate(5deg);
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    font-size: 1rem;
    text-align: center;
    z-index: 1;
    border-radius: 5px;
}
.promotion-box.permanent {
    border: 2px solid var(--secondary-color);
    background-color: var(--background-surface);
}
.promotion-box.permanent h2 {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.promotion-box ul {
    list-style: none;
    padding-right: 0;
    margin: 1.5rem 0;
}
.promotion-box ul li {
    padding: 0.75rem 0;
    padding-right: 2.5rem;
    position: relative;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}
.promotion-box ul li:last-child {
    border-bottom: none;
}
.promotion-box ul li::before {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}
.rewards-list li::before {
    content: '🎁';
    color: var(--accent-color);
}
.upgrade-list li::before {
    content: '🚀';
    color: var(--secondary-color);
}
.upgrade-list li.cross-category::before {
    content: '🔄️';
}
.promotion-box .notes {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(0,0,0,0.03);
    border-radius: calc(var(--border-radius) / 2);
    border-right: 4px solid var(--primary-color);
}
.promotion-box .notes p {
    font-size: 1rem;
    margin: 0.5rem 0;
}
.promotion-box .notes strong {
    color: var(--text-primary);
}
.share-container {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}


/* === 12. MODALS (General, Trial, Bank, Gemini) === */
/* ================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 37, 41, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
    padding-bottom: 5vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
.modal-content {
    background-color: var(--background-dark);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    text-align: right;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.visible .modal-content {
    transform: translateY(0);
}
.modal-content h3 {
    margin-top: 0;
    font-size: 1.75rem;
    color: var(--primary-color);
}
.modal-content p {
    text-align: right;
    margin: 1rem 0;
    color: var(--text-secondary);
    max-width: 100%;
}
.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.close-modal:hover { 
    color: var(--text-primary); 
}
.modal-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    margin-top: 1.5rem; 
}
.modal-form label { 
    font-weight: 500; 
    color: var(--text-primary); 
}
.modal-form input[type="text"], 
.modal-form input[type="email"],
#gemini-recommender-form textarea {
    padding: 0.75rem; 
    border: 1px solid var(--border-color); 
    border-radius: var(--border-radius); 
    font-size: 1rem; 
    font-family: 'Heebo', sans-serif;
}
.modal-form input[type="text"], 
.modal-form input[type="email"] {
    direction: ltr; 
    text-align: left; 
}
#gemini-recommender-form textarea {
    width: 100%; 
    min-height: 120px; 
    resize: vertical; 
    margin-top: 0.5rem;
}
.modal-form input:focus,
#gemini-recommender-form textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); 
}
.modal-form .cta-button { 
    width: 100%; 
    margin-top: 0.5rem; 
}
.modal-form .cta-button:disabled { 
    background-color: var(--text-secondary); 
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none; 
}
.modal-note { 
    display: block; 
    margin-top: 1rem; 
    font-size: 0.9rem; 
    color: var(--text-secondary); 
    text-align: center; 
}
#trial-modal-result, #bank-transfer-result {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
}
#trial-modal-result:empty, #bank-transfer-result:empty {
    display: none;
}
.modal-form input[type="file"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--background-dark);
    cursor: pointer;
}
.modal-form input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--border-radius) - 2px);
    cursor: pointer;
    margin-inline-end: 1rem;
    transition: background-color 0.2s ease;
}
.modal-form input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--primary-hover);
}
.bank-details-card {
    margin: 1.5rem 0;
    text-align: right;
}
.bank-details-card h4 {
    margin-bottom: 0.5rem;
}
.bank-details-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    background-color: var(--background-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: right;
}
.bank-details-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.bank-details-list li:last-child {
    margin-bottom: 0;
}
.bank-details-list li strong {
    color: var(--text-primary);
}
#gemini-recommender-modal .modal-content { 
    max-width: 600px; 
}
#gemini-recommender-modal h3 { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}
#gemini-recommendation-result { 
    margin-top: 1.5rem; 
    padding: 1.5rem; 
    background-color: var(--background-surface); 
    border-radius: var(--border-radius); 
    border: 1px solid var(--border-color); 
    text-align: right; 
    line-height: 1.7; 
    display: none; 
}
#gemini-recommendation-result h4 { 
    margin-top: 0; 
    color: var(--primary-color); 
    font-size: 1.4rem; 
}
#gemini-recommendation-result p { 
    color: var(--text-primary); 
    font-size: 1.1rem; 
    max-width: 100%; 
}
.loader { 
    width: 50px; 
    aspect-ratio: 1; 
    border-radius: 50%; 
    border: 8px solid #0000; 
    border-right-color: var(--primary-color); 
    position: relative; 
    animation: l24 1s infinite linear; 
    margin: 1rem auto; 
    display: none; 
}
.loader:before, .loader:after { 
    content: ""; 
    position: absolute; 
    inset: -8px; 
    border-radius: 50%; 
    border: inherit; 
    animation: inherit; 
    animation-duration: 2s; 
}
.loader:after { 
    animation-duration: 4s; 
}


/* === 13. GALLERY & LIGHTBOX === */
/* =============================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.gallery-image {
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) / 2);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 85%;
    max-height: 85vh;
    animation-name: zoom;
    animation-duration: 0.4s;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev {
    left: 0;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* === 14. COUPON SECTION === */
/* ========================== */
.coupon-toggle-link {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    margin: 0.5rem 0;
    text-align: right;
    cursor: pointer;
}
.coupon-toggle-link:hover {
    text-decoration: underline;
}
#coupon-section {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}
#coupon-section.visible {
    display: flex;
}
#coupon-validation-result {
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}


/* === 15. GEMINI AI RECOMMENDER FAB === */
/* ===================================== */
.gemini-recommender-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    transition: all 0.3s ease;
    gap: 8px;
}
.gemini-recommender-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.fab-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}
.fab-text {
    white-space: nowrap;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    opacity: 1;
}


/* === 16. KEYFRAME ANIMATIONS === */
/* =============================== */
@keyframes animate-gradient-scroll {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes zoom {
    from { transform:scale(0) } 
    to   { transform:scale(1) }
}
@keyframes l24 { 
    100% { transform: rotate(1turn) } 
}


/* === 17. RESPONSIVE MEDIA QUERIES === */
/* ==================================== */
@media (max-width: 992px) {
    .product-entry, .product-entry.reverse {
        grid-template-columns: 1fr;
        direction: rtl;
        padding: 2rem 1.5rem;
    }
    .product-entry__media {
        max-width: 500px;
        margin: 0 auto 2rem auto;
    }
    .product-mockup-image {
        max-height: 70vh;
        width: auto;
        margin: 0 auto;
    }
    .new-version-ribbon {
        top: -10px;
        right: 0;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    section, .comparison-section { 
        padding: 2.5rem 1rem; 
    }
    .action-buttons-container {
        flex-direction: column;
    }
    .comparison-table th, .comparison-table td { 
        padding: 0.75rem; 
    }
    .comparison-table th:first-child, .comparison-table td:first-child { 
        width: 40%; 
    }
}