/* =============================================================
   RTCO — Stylesheet
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
    --navy: #0A1628;
    --navy-light: #1E3A5F;
    --blue: #2563EB;
    --blue-dark: #1D4ED8;
    --emerald: #10B981;
    --emerald-dark: #059669;
    --violet: #8B5CF6;
    --violet-dark: #7C3AED;
    --amber: #F59E0B;
    --amber-dark: #D97706;
    --teal: #14B8A6;
    --teal-dark: #0D9488;
    --rose: #F43F5E;
    --rose-dark: #E11D48;
    --orange: #F97316;
    --orange-dark: #EA580C;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body[dir="rtl"] { font-family: 'Cairo', 'Inter', sans-serif; }

/* =============================================================
   Header
   ============================================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body[dir="rtl"] .header-inner { flex-direction: row-reverse; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 2px;
}
body[dir="rtl"] .logo-text { letter-spacing: 0; }

nav { display: flex; align-items: center; gap: 20px; }
body[dir="rtl"] nav { flex-direction: row-reverse; }

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover { color: var(--navy); }

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
.header-phone:hover { background: rgba(10, 22, 40, 0.04); }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}
.btn-primary {
    background: var(--navy);
    color: white;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
}
.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 22, 40, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--navy);
    background: rgba(10, 22, 40, 0.04);
}
.btn-disabled,
.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.35);
    pointer-events: none;
}

/* =============================================================
   Language toggle
   ============================================================= */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.2s;
    font-family: inherit;
}
.lang-toggle:hover {
    border-color: var(--navy);
    background: rgba(10, 22, 40, 0.04);
}

/* =============================================================
   Currency selector
   ============================================================= */
.currency-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 12px;
}
.currency-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    white-space: nowrap;
}
.currency-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    background-color: var(--bg);
    border: 2px solid var(--border);
    border-radius: 100px;
    padding: 6px 28px 6px 12px;
    cursor: pointer;
    line-height: 1.2;
    min-width: 110px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    background-size: 11px;
    transition: border-color .2s, box-shadow .2s;
}
.currency-select:hover { border-color: var(--navy); }
.currency-select:focus-visible {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .08);
}
body[dir="rtl"] .currency-select {
    padding: 6px 12px 6px 28px;
    background-position: left 9px center;
}

/* =============================================================
   Mobile menu button & backdrop
   ============================================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--navy);
    flex-shrink: 0;
}
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.is-open .icon-menu  { display: none; }
.mobile-menu-btn.is-open .icon-close { display: block; }

.nav-backdrop { display: none; }

/* =============================================================
   WhatsApp float
   ============================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}
body[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50%      { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* =============================================================
   Banner
   ============================================================= */
.banner {
    padding: 140px 24px 100px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
body[dir="rtl"] .banner { direction: rtl; }

.banner::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
body[dir="rtl"] .banner::before { right: auto; left: -200px; }

.banner-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(10, 22, 40, 0.05);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 24px;
}
body[dir="rtl"] .banner-badge { flex-direction: row-reverse; }

.banner-badge .pulse-dot {
    width: 8px; height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.banner h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--navy);
    max-width: 800px;
    margin: 0 auto 20px;
}
body[dir="rtl"] .banner h1 { letter-spacing: 0; line-height: 1.3; }

.banner h1 span {
    background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
body[dir="rtl"] .banner p { line-height: 1.8; }

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
body[dir="rtl"] .cta-group { flex-direction: row-reverse; }
.cta-group .btn { padding: 14px 32px; font-size: 15px; }

.trust-pill {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
body[dir="rtl"] .trust-pill { flex-direction: row-reverse; }
.trust-pill strong { color: var(--navy); }

/* =============================================================
   Sections
   ============================================================= */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
body[dir="rtl"] section { direction: rtl; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
body[dir="rtl"] .section-label { letter-spacing: 0; }

.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
body[dir="rtl"] .section-title { letter-spacing: 0; line-height: 1.3; }

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}
body[dir="rtl"] .section-subtitle { line-height: 1.8; }

/* =============================================================
   Pricing toggle
   ============================================================= */
.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}
body[dir="rtl"] .pricing-toggle { flex-direction: row-reverse; }

.toggle-option {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    background: var(--bg);
    color: var(--text-muted);
    text-decoration: none;
}
.toggle-option.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.toggle-option:hover:not(.active) { border-color: var(--border); }

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-dark);
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    margin-left: 4px;
}
body[dir="rtl"] .save-badge { margin-left: 0; margin-right: 4px; }
.toggle-option.active .save-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* =============================================================
   Products grid
   ============================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.product-card.hosting::before     { background: linear-gradient(90deg, var(--emerald), var(--emerald-dark)); }
.product-card.gbox::before        { background: linear-gradient(90deg, var(--violet), var(--violet-dark)); }
.product-card.zcare::before       { background: linear-gradient(90deg, var(--amber), var(--amber-dark)); }
.product-card.einvoice::before    { background: linear-gradient(90deg, var(--blue), var(--blue-dark)); }
.product-card.hero-product::before{ background: linear-gradient(90deg, var(--teal), var(--teal-dark)); }
.product-card.fondok::before      { background: linear-gradient(90deg, var(--rose), var(--rose-dark)); }
.product-card.zfleet::before      { background: linear-gradient(90deg, var(--orange), var(--orange-dark)); }

.product-card.is-unavailable { opacity: .92; }

.product-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}
body[dir="rtl"] .product-icon { margin-right: 0; margin-left: auto; }

.product-icon svg { width: 28px; height: 28px; display: block; }
.product-icon:empty { display: none; }

.hosting .product-icon      { background: #ECFDF5; color: var(--emerald); }
.gbox .product-icon         { background: #F5F3FF; color: var(--violet); }
.zcare .product-icon        { background: #FFFBEB; color: var(--amber); }
.einvoice .product-icon     { background: #EFF6FF; color: var(--blue); }
.hero-product .product-icon { background: #F0FDFA; color: var(--teal); }
.fondok .product-icon       { background: #FFF1F2; color: var(--rose); }
.zfleet .product-icon       { background: #FFF7ED; color: var(--orange); }

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.product-card .tagline {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
body[dir="rtl"] .product-card .tagline { letter-spacing: 0; }

.product-card .description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
body[dir="rtl"] .product-card .description { line-height: 1.8; }

/* =============================================================
   Features list
   ============================================================= */
.features-list { list-style: none; margin-bottom: 24px; }
.features-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
body[dir="rtl"] .features-list li { flex-direction: row-reverse; text-align: right; }
.features-list li::before {
    content: '✓';
    width: 18px; height: 18px;
    background: rgba(10, 22, 40, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--navy);
    font-weight: 700;
    flex-shrink: 0;
}
body[dir="rtl"] .features-list li::before { margin-right: 0; margin-left: 8px; }

/* =============================================================
   Price row — wraps period label instead of clipping it
   ============================================================= */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    min-height: 28px;
}
body[dir="rtl"] .price-row { flex-direction: row-reverse; justify-content: flex-end; }

.price {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
}
.hosting .price      { color: var(--emerald); }
.gbox .price         { color: var(--violet); }
.zcare .price        { color: var(--amber); }
.einvoice .price     { color: var(--blue); }
.hero-product .price { color: var(--teal); }
.fondok .price       { color: var(--rose); }
.zfleet .price       { color: var(--orange); }

.period {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.quarterly-price,
.annual-price {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
body[dir="rtl"] .annual-price { text-align: right; }

.quarterly-price .strike,
.annual-price .strike {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 4px;
    white-space: nowrap;
}
body[dir="rtl"] .quarterly-price .strike,
body[dir="rtl"] .annual-price .strike {
    margin-right: 0;
    margin-left: 4px;
}

/* Unavailable-cycle state */
.price-unavailable-row {
    min-height: 28px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.price-unavailable {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    font-style: italic;
}

/* =============================================================
   Product card buttons
   ============================================================= */
.product-card .btn { width: 100%; padding: 12px; font-size: 14px; }
.hosting .btn      { background: var(--emerald); color: white; }
.hosting .btn:hover{ background: var(--emerald-dark); }
.gbox .btn         { background: var(--violet); color: white; }
.gbox .btn:hover   { background: var(--violet-dark); }
.zcare .btn        { background: var(--amber); color: white; }
.zcare .btn:hover  { background: var(--amber-dark); }
.einvoice .btn     { background: var(--blue); color: white; }
.einvoice .btn:hover { background: var(--blue-dark); }
.hero-product .btn { background: var(--teal); color: white; }
.hero-product .btn:hover { background: var(--teal-dark); }
.fondok .btn       { background: var(--rose); color: white; }
.fondok .btn:hover { background: var(--rose-dark); }
.zfleet .btn       { background: var(--orange); color: white; }
.zfleet .btn:hover { background: var(--orange-dark); }

.product-note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
}

/* =============================================================
   Decision helper
   ============================================================= */
.decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.decision-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.decision-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}
.decision-card .q {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
body[dir="rtl"] .decision-card .q { letter-spacing: 0; text-align: right; }
.decision-card .a {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}
body[dir="rtl"] .decision-card .a { text-align: right; }
.decision-card .arrow {
    margin-top: 16px;
    font-size: 20px;
    color: var(--blue);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s;
}
body[dir="rtl"] .decision-card .arrow { transform: translateX(8px); }
.decision-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* =============================================================
   Trust section
   ============================================================= */
.trust-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 24px;
    padding: 60px 40px;
    color: white;
    text-align: center;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.trust-item .num {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.trust-item .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}
body[dir="rtl"] .trust-item .label { font-size: 15px; }

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}
body[dir="rtl"] .trust-badges { flex-direction: row-reverse; }
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}
body[dir="rtl"] .trust-badge { flex-direction: row-reverse; }

.payment-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}
body[dir="rtl"] .payment-badges { flex-direction: row-reverse; }
.payment-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}
body[dir="rtl"] .payment-badge { flex-direction: row-reverse; }

/* =============================================================
   FAQ
   ============================================================= */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}
body[dir="rtl"] .faq-question { text-align: right; flex-direction: row-reverse; }
.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}
body[dir="rtl"] .faq-answer { text-align: right; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }

.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
body[dir="rtl"] .faq-answer p { line-height: 1.9; }

/* =============================================================
   CTA section
   ============================================================= */
.cta-section {
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 50%, #FFFBEB 100%);
    border-radius: 24px;
    text-align: center;
    padding: 80px 40px;
    margin: 0 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
body[dir="rtl"] .cta-section { direction: rtl; }

.cta-section h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}
body[dir="rtl"] .cta-section h2 { line-height: 1.3; }

.cta-section p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
}
body[dir="rtl"] .cta-section p { line-height: 1.8; }

.contact-channels {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}
body[dir="rtl"] .contact-channels { flex-direction: row-reverse; }

.contact-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.contact-channel:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.contact-channel .icon { font-size: 18px; }

/* =============================================================
   Footer
   ============================================================= */
footer {
    background: var(--navy);
    color: white;
    padding: 60px 24px 24px;
    margin-top: 80px;
}
body[dir="rtl"] footer { direction: rtl; }

.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand .logo-text { color: white; }
.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
    line-height: 1.6;
    max-width: 280px;
}
body[dir="rtl"] .footer-brand p { line-height: 1.8; }

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}
body[dir="rtl"] .footer-col h4 { letter-spacing: 0; }
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
body[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* =============================================================
   TOAST
   ============================================================= */
.toast {
    position: fixed;
    top: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(-140%);
    background: var(--navy);
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.28);
    z-index: 3000;
    max-width: 90vw;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* =============================================================
   MODAL — base structure (overlay, container, header, body)
   ============================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.25s ease;
    margin: auto;
    box-shadow: 0 24px 60px rgba(10, 22, 40, 0.25);
}
body[dir="rtl"] .modal { direction: rtl; }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- Sticky header ----- */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 28px 16px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
}
.modal-header > div {
    flex: 1 1 auto;
    min-width: 0;
}
.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.3;
}
body[dir="rtl"] .modal-header h3 { line-height: 1.4; }

.modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--border); color: var(--navy); }
.modal-close:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ----- Scrollable body ----- */
.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 28px 22px;
    min-height: 0;
}

/* ----- Two-column grid ----- */
.modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.modal-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Left column — divider line on the right (no negative-margin hack) */
.modal-col-left {
    padding-inline-end: 32px;
    border-inline-end: 1px solid var(--border);
}
body[dir="rtl"] .modal-col-left {
    padding-inline-end: 0;
    padding-inline-start: 32px;
    border-inline-end: none;
    border-inline-start: 1px solid var(--border);
}

/* =============================================================
   MODAL — order summary, cycles, services
   ============================================================= */
.order-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}
.summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
}
.summary-row + .summary-row { border-top: 1px dashed var(--border); }
.summary-row > span:first-child {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}
.summary-row strong { color: var(--navy); text-align: end; }
.sum-note {
    display: block;
    width: 100%;
    text-align: end;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
body[dir="rtl"] .summary-row strong,
body[dir="rtl"] .sum-note { text-align: start; }

/* Cycle selection */
.summary-row-cycles {
    flex-direction: column;
    align-items: stretch;
}
.summary-row-cycles > span:first-child { margin-bottom: 8px; }

.cycle-radios {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.cycle-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    font-size: 13px;
    position: relative;
}
.cycle-option:hover { border-color: var(--navy-light); }
.cycle-option.selected {
    border-color: var(--navy);
    background: rgba(10, 22, 40, .04);
}
.cycle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cycle-option .cycle-name {
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cycle-option .cycle-price {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}
.cycle-option .cycle-price small {
    color: var(--text-muted);
    font-weight: 400;
    margin-inline-start: 2px;
}

/* Optional services */
.service-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
    margin-bottom: 8px;
}
.service-option:last-child { margin-bottom: 0; }
.service-option:hover { border-color: var(--navy-light); }
.service-option input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--navy);
    flex-shrink: 0;
}
.service-option .service-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}
.service-option .service-name {
    font-size: 14px;
    color: var(--navy);
    font-weight: 600;
}
.service-option .service-price {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* =============================================================
   MODAL — Final total box (bottom of left column)
   ============================================================= */
.order-total-box {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 2px solid var(--navy);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}
.order-total-box .total-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.order-total-box .total-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.order-total-box .total-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    min-height: 16px;
}
body[dir="rtl"] .order-total-box { text-align: right; }

/* =============================================================
   MODAL — Form fields (polished)
   ============================================================= */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-group:last-child { margin-bottom: 0; }
.modal-col .form-group { margin-bottom: 0; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.01em;
    line-height: 1.3;
    cursor: pointer;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="search"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    color: var(--text);
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s ease,
                box-shadow 0.15s ease,
                background-color 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    min-height: 44px;
}
.form-group input:hover:not(:disabled):not(:focus),
.form-group select:hover:not(:disabled):not(:focus),
.form-group textarea:hover:not(:disabled):not(:focus) {
    border-color: #CBD5E1;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
    font-weight: 400;
    opacity: 1;
}
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: var(--bg);
    color: var(--text-muted);
    border-color: var(--border);
    cursor: not-allowed;
}
.form-group input:invalid:not(:placeholder-shown):not(:focus),
.form-group input[type="email"]:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--rose);
}
.form-group input:invalid:not(:placeholder-shown):not(:focus):hover {
    border-color: var(--rose-dark);
}

.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}
body[dir="rtl"] .form-group select {
    background-position: left 12px center;
    padding-right: 14px;
    padding-left: 40px;
}

.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

body[dir="rtl"] .form-group input,
body[dir="rtl"] .form-group select,
body[dir="rtl"] .form-group textarea { text-align: right; }

/* Kill Chrome autofill yellow */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--text);
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text);
}

/* Form rows — two columns */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-row .form-group { margin-bottom: 16px; }

/* =============================================================
   MODAL — Short name input with suffix
   ============================================================= */
.input-suffix {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #ffffff;
    min-height: 44px;
}
.input-suffix:hover:not(:focus-within) { border-color: #CBD5E1; }
.input-suffix:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.input-suffix input {
    flex: 1 1 auto;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    outline: none;
    min-width: 0;
}
.input-suffix input:focus { outline: none; box-shadow: none !important; }
.input-suffix .suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-inline-start: 1px solid var(--border);
    flex-shrink: 0;
}
body[dir="rtl"] .input-suffix .suffix {
    border-inline-start: none;
    border-inline-end: 1px solid var(--border);
}

/* =============================================================
   MODAL — Field hints, status, suggestions
   ============================================================= */
.field-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}
.field-status {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    min-height: 16px;
    margin-top: 2px;
}
.field-status.is-ok    { color: var(--emerald-dark); font-weight: 600; }
.field-status.is-error { color: var(--rose-dark);    font-weight: 600; }

/* Suggestions box */
.field-suggestions {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
}
.field-suggestions.is-visible { display: flex; }

.suggestions-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

.suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: var(--blue);
    background: #ffffff;
    border: 1.5px solid var(--blue);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.suggestion-chip:hover,
.suggestion-chip:focus-visible {
    background: var(--blue);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.suggestion-chip:active { transform: translateY(0); }

/* =============================================================
   MODAL — Submit & footnote
   ============================================================= */
.modal-submit {
    width: 100%;
    margin-top: 4px;
    padding: 14px;
    font-size: 15px;
}
.modal-submit:disabled { opacity: .7; cursor: wait; }

.modal-footnote {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

/* =============================================================
   MODAL — Responsive
   ============================================================= */
@media (max-width: 900px) {
    .modal-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .modal-col-left {
        padding-inline-end: 0;
        border-inline-end: none;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
    }
    body[dir="rtl"] .modal-col-left {
        padding-inline-start: 0;
        border-inline-start: none;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 640px), (max-height: 700px) {
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }
    .modal {
        max-width: none;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        animation: none;
        margin: 0;
        box-shadow: none;
    }
    .modal-header {
        border-radius: 0;
        padding: 18px 20px 14px;
        padding-top: calc(18px + env(safe-area-inset-top));
    }
    .modal-body {
        padding: 16px 20px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* =============================================================
   Global responsive — Mobile
   ============================================================= */
@media (max-width: 768px) {
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
    .header-inner {
        height: 64px;
        padding: 0 20px;
        flex-wrap: nowrap;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 8px;
        color: var(--navy);
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn:hover { background: var(--bg); }

    nav,
    body[dir="rtl"] nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 88vw;
        background: #fff;
        padding: 16px 16px 24px;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        box-shadow: -8px 0 24px rgba(10, 22, 40, 0.12);
        z-index: 999;
        overflow-y: auto;
    }
    body[dir="rtl"] nav {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 8px 0 24px rgba(10, 22, 40, 0.12);
    }
    body.menu-open nav,
    body.menu-open[dir="rtl"] nav { transform: translateX(0); }

    nav > a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px;
        font-size: 15px;
        font-weight: 600;
        color: var(--navy);
        border-radius: 8px;
    }
    body[dir="rtl"] nav > a { flex-direction: row-reverse; }
    nav > a:hover { background: var(--bg); }

    nav > .header-phone {
        padding: 12px;
        font-size: 15px;
        justify-content: flex-start;
        border-radius: 8px;
        color: var(--navy);
    }
    body[dir="rtl"] nav > .header-phone { flex-direction: row-reverse; }
    nav > .header-phone:hover { background: var(--bg); }

    nav > .btn-primary {
        width: 100%;
        margin-top: 8px;
        padding: 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    nav > .lang-toggle {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        padding: 12px;
    }
    .lang-toggle span { display: inline; }

    nav > .currency-form {
        width: 100%;
        margin: 8px 0 0;
        padding: 12px;
        border-top: 1px solid var(--border);
        justify-content: space-between;
    }
    .currency-label { font-size: 12px; }
    .currency-select { min-width: 140px; }

    .nav-backdrop {
        display: block;
        position: fixed;
        top: 64px;
        left: 0; right: 0; bottom: 0;
        background: rgba(10, 22, 40, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s, visibility 0.28s;
        z-index: 998;
    }
    body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }

    body.menu-open { overflow: hidden; }
    body.menu-open .whatsapp-float { opacity: 0; pointer-events: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { gap: 24px; }
    .trust-section { padding: 40px 24px; }
    .cta-section { padding: 60px 24px; }
    .banner { padding: 100px 20px 60px; }

    .whatsapp-float {
        width: 48px; height: 48px;
        font-size: 22px;
        bottom: 16px; right: 16px;
    }
    body[dir="rtl"] .whatsapp-float { left: 16px; right: auto; }

    .toast { top: 76px; font-size: 13px; padding: 12px 18px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .price-row .price  { font-size: 20px; }
    .price-row .period { font-size: 11px; }

    nav,
    body[dir="rtl"] nav { width: 100vw; max-width: 100vw; }
    .header-inner { padding: 0 16px; }
}