/*
Theme Name: itycod
Theme URI: https://itycod.com
Author: ITYWEB TEAM
Author URI: https://itycod.com
Description: إضافة الشراء من صفحة المنتج - WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itycod
Tags: rtl, arabic, woocommerce, one-page
*/

:root {
    --primary: #2563EB;
    --primary-light: #3b82f6;
    --primary-soft: #dbeafe;
    --primary-softer: #eff6ff;
    --primary-glow: rgba(37,99,235,0.15);
    --accent: #059669;
    --accent-soft: #d1fae5;
    --accent-light: #10b981;
    --white: #ffffff;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 16px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 40px rgba(15,23,42,0.08), 0 4px 12px rgba(15,23,42,0.04);
    --shadow-xl: 0 20px 60px rgba(15,23,42,0.1), 0 8px 20px rgba(15,23,42,0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
}

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

body {
    font-family: 'Tajawal', 'Readex Pro', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
    padding: 0 40px; height: 72px; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
header.scrolled {
    height: 62px; background: rgba(255,255,255,0.95);
    border-bottom-color: var(--border); box-shadow: var(--shadow-sm);
}
.header-start { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-end { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-text {
    font-family: 'Readex Pro', sans-serif; font-size: 1.5rem;
    font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px;
}
#nav {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px;
}
#nav a:not(.reg-btn),
#nav .menu-item a,
#nav ul li a,
#nav a:not(.reg-btn):visited,
#nav .menu-item a:visited,
#nav ul li a:visited {
    color: var(--text-secondary); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; padding: 8px 16px; border-radius: var(--radius-xs); transition: all 0.25s;
    white-space: nowrap; display: inline-block; background: transparent;
}
#nav a:not(.reg-btn):hover,
#nav .menu-item a:hover,
#nav ul li a:hover { color: var(--primary); background: var(--primary-softer); }
/* Active state — ONLY the exact current page item */
#nav > ul > li.current-menu-item:not(.current-menu-ancestor):not(.current-menu-parent) > a,
#nav > ul > li.current_page_item:not(.current_page_ancestor):not(.current_page_parent) > a {
    color: var(--primary); background: var(--primary-softer);
}
#nav > ul > li.current-menu-ancestor > a,
#nav > ul > li.current-menu-parent > a,
#nav > ul > li.current_page_ancestor > a,
#nav > ul > li.current_page_parent > a {
    color: var(--text-secondary); background: transparent;
}
#nav ul,
#nav > ul {
    list-style: none !important; display: flex !important; align-items: center;
    gap: 4px; margin: 0; padding: 0; flex-direction: row;
}
#nav ul li,
#nav > ul > li {
    list-style: none !important; margin: 0; padding: 0;
}
#nav ul li::marker,
#nav ul li::before { content: none !important; display: none !important; }

/* === Register Button === */
.reg-btn {
    text-decoration: none; white-space: nowrap; font-weight: 600;
    transition: all 0.25s; border-radius: var(--radius-xs);
    background: var(--primary); color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}
.reg-btn:visited { color: #fff; }
.reg-btn:hover { background: var(--primary-light); transform: translateY(-1px); }
/* Desktop: visible in header bar */
.reg-btn-desktop {
    display: inline-flex; align-items: center; flex-shrink: 0;
    padding: 9px 22px; font-size: 0.9rem;
}
/* Mobile: hidden by default, shown inside dropdown */
.reg-btn-mobile {
    display: none;
}
.mobile-toggle {
    display: none; background: none; border: none !important;
    color: var(--text-primary); font-size: 1.5rem; cursor: pointer;
    padding: 6px 10px; border-radius: 0; flex-shrink: 0;
    order: 0; outline: none;
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-switch {
    position: relative; flex-shrink: 0; cursor: pointer;
    user-select: none; -webkit-user-select: none;
}
.lang-current {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--radius-xs);
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    transition: all 0.2s; background: transparent;
}
.lang-current:hover { color: var(--primary); background: var(--primary-softer); }
.lang-globe { width: 18px; height: 18px; flex-shrink: 0; }
.lang-chevron { width: 10px; height: 10px; flex-shrink: 0; transition: transform 0.2s; }
.lang-switch.open .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
    display: none; position: absolute; top: calc(100% + 6px);
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    min-width: 160px; overflow: hidden; z-index: 1001;
}
[dir="rtl"] .lang-dropdown { right: 0; }
[dir="ltr"] .lang-dropdown { left: 0; }
.lang-switch.open .lang-dropdown { display: block; }
.lang-option {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    text-decoration: none; color: var(--text-secondary); font-size: 0.88rem;
    font-weight: 500; transition: all 0.15s; white-space: nowrap;
}
.lang-option:hover { background: var(--primary-softer); color: var(--primary); }
.lang-option.lang-active { background: var(--primary-softer); color: var(--primary); font-weight: 600; pointer-events: none; }
.lang-option.lang-active .lang-code { color: var(--primary); }
.lang-flag { font-size: 1.15rem; line-height: 1; }
.lang-name { flex: 1; }
.lang-code { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }

/* Desktop lang selector — visible by default */
.lang-switch-desktop { display: block; }
/* Mobile lang selector — hidden on desktop */
.lang-switch-mobile { display: none; }

/* ===== WordPress Nav Override — prevent WP global-styles from breaking menu ===== */
header#header #nav .menu,
header#header #nav ul.menu,
header#header nav ul,
header#header nav > ul,
.wp-site-blocks header #nav ul {
    list-style-type: none !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
}
header#header #nav li,
header#header #nav ul li,
header#header #nav .menu-item {
    list-style-type: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--white); position: relative; padding: 120px 40px 80px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(37,99,235,0.06), transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(5,150,105,0.05), transparent 60%);
}
.hero-grid-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 10%, transparent 70%);
    opacity: 0.5;
}
.hero-content { text-align: center; position: relative; z-index: 2; max-width: 860px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    background: var(--primary-softer); border: 1px solid var(--primary-soft);
    border-radius: 100px; font-size: 0.85rem; font-weight: 600;
    color: var(--primary); margin-bottom: 28px; animation: fadeUp 0.7s ease;
}
.hero-badge .dot {
    width: 8px; height: 8px; background: var(--accent-light);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900;
    line-height: 1.25; margin-bottom: 20px; color: var(--text-primary);
    animation: fadeUp 0.7s ease 0.1s both;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--accent-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
    font-size: 1.15rem; color: var(--text-secondary); max-width: 620px;
    margin: 0 auto 40px; animation: fadeUp 0.7s ease 0.2s both;
}
.hero-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    animation: fadeUp 0.7s ease 0.3s both;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px;
    border-radius: 12px; font-family: inherit; font-size: 1rem; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none; transition: all 0.3s;
}
.btn-primary {
    background: var(--primary); color: #fff; box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-light); transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.2);
}
.btn-outline {
    background: var(--white); color: var(--text-primary); border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-softer); transform: translateY(-2px);
}

/* ===== STATS ===== */
.stats-bar {
    display: flex; justify-content: center; gap: 48px; margin-top: 64px;
    animation: fadeUp 0.7s ease 0.4s both;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Readex Pro', sans-serif; font-size: 2.5rem; font-weight: 700;
    color: var(--primary); display: block; line-height: 1.2;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
@keyframes fadeUp { from { opacity:0; transform:translateY(25px); } to { opacity:1; transform:translateY(0); } }

/* ===== TRUSTED BAR ===== */
.trusted-bar {
    background: var(--white); border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light); padding: 24px 40px; text-align: center;
}
.trusted-bar span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; letter-spacing: 1px; }
.trusted-logos {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; margin-top: 12px; flex-wrap: wrap;
}
.trusted-logos .tl {
    font-family: 'Readex Pro', sans-serif; font-size: 1.1rem; font-weight: 700;
    color: var(--text-muted); opacity: 0.5; transition: opacity 0.3s;
}
.trusted-logos .tl:hover { opacity: 0.8; }

/* ===== SECTIONS ===== */
section { padding: 100px 40px; position: relative; }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 60px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem;
    font-weight: 700; color: var(--primary); background: var(--primary-softer);
    padding: 6px 18px; border-radius: 100px; margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800;
    margin-bottom: 14px; color: var(--text-primary); line-height: 1.3;
}
.section-header p { color: var(--text-secondary); font-size: 1.05rem; }

/* ===== FEATURES ===== */
.features { background: var(--bg); }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto;
}
.feature-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 28px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.feature-card:hover {
    transform: translateY(-4px); border-color: var(--primary-soft); box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px;
}
.fi-blue { background: var(--primary-soft); }
.fi-green { background: var(--accent-soft); }
.fi-purple { background: #ede9fe; }
.fi-orange { background: #fff7ed; }
.fi-pink { background: #fce7f3; }
.fi-cyan { background: #cffafe; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--white); }
.steps-container { max-width: 800px; margin: 0 auto; }
.step {
    display: flex; gap: 28px; align-items: flex-start; padding: 32px 0; position: relative;
}
.step:not(:last-child) { border-bottom: 1px solid var(--border-light); }
.step-number {
    width: 56px; height: 56px; min-width: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Readex Pro', sans-serif; font-size: 1.3rem; font-weight: 700;
    background: var(--primary); color: #fff; box-shadow: 0 4px 12px var(--primary-glow);
}
.step-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; margin-top: 6px; }
.step-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== PREVIEW — old classes removed, see bottom for new checkout ===== */
.preview-section { background: var(--bg); overflow: hidden; }

/* ===== INTEGRATIONS ===== */
.integrations { background: var(--white); }
.integrations-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; max-width: 900px; margin: 0 auto;
}
.integration-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 24px; text-align: center; transition: all 0.3s;
}
.integration-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.integration-card .ic-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.integration-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.integration-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== SOCIAL PROOF ===== */
.social-proof { background: var(--bg); }
.proof-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; max-width: 1000px; margin: 0 auto;
}
.proof-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px; transition: all 0.3s;
}
.proof-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.proof-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.proof-card p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.8; margin-bottom: 20px; }
.proof-author { display: flex; align-items: center; gap: 12px; }
.proof-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}
.proof-name { font-weight: 700; font-size: 0.9rem; }
.proof-role { font-size: 0.78rem; color: var(--text-muted); }

/* ===== PRICING ===== */
.pricing { background: var(--white); }
.pricing-cards {
    display: flex; gap: 24px; max-width: 860px; margin: 0 auto;
    justify-content: center; flex-wrap: wrap;
}
.pricing-card {
    background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 40px 36px; flex: 1; min-width: 280px; max-width: 400px;
    text-align: center; transition: all 0.4s; position: relative;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg); }
.pricing-card.featured::before {
    content: '\0627\0644\0623\0643\062b\0631 \0645\0628\064a\0639\0627\064b';
    position: absolute; top: -14px; right: 50%; transform: translateX(50%);
    background: var(--accent-light); color: #fff; padding: 5px 22px;
    border-radius: 100px; font-size: 0.75rem; font-weight: 700;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.pricing-card .price-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.price-amount { font-family: 'Readex Pro', sans-serif; font-size: 3rem; font-weight: 700; color: var(--primary); }
.price-period { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; display: block; }
.price-features { list-style: none; text-align: right; margin-bottom: 28px; }
.price-features li {
    padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.9rem;
    color: var(--text-secondary); display: flex; align-items: center; gap: 10px;
}
.price-features li::before { content: '✓'; color: var(--accent-light); font-weight: 700; }

/* ===== FAQ ===== */
.faq { background: var(--bg); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; transition: all 0.3s;
}
.faq-item:hover { border-color: var(--primary-soft); }
.faq-item.open { border-color: var(--primary-soft); box-shadow: var(--shadow-sm); }
.faq-q {
    width: 100%; background: none; border: none; color: var(--text-primary);
    font-family: inherit; font-size: 1rem; font-weight: 600; padding: 20px 24px;
    text-align: right; cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; transition: all 0.2s;
}
.faq-q:hover { color: var(--primary); }
.faq-arrow { transition: transform 0.3s; font-size: 1.1rem; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--primary); text-align: center; padding: 80px 40px;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.1), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.1), transparent 50%);
}
.cta-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
}
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 14px; color: #fff; position: relative; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 36px; position: relative; }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: relative; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

/* ===== FOOTER ===== */
footer {
    background: var(--white); border-top: 1px solid var(--border); padding: 60px 40px 30px;
}
.footer-grid {
    max-width: 1100px; margin: 0 auto; display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 18px; }
.footer-col a {
    display: block; color: var(--text-muted); text-decoration: none;
    font-size: 0.88rem; padding: 5px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    max-width: 1100px; margin: 0 auto; padding-top: 24px;
    border-top: 1px solid var(--border-light); display: flex;
    justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 0.82rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: var(--radius-xs);
    background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
    font-weight: 600; transition: all 0.3s;
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed; bottom: 28px; left: 28px; width: 56px; height: 56px;
    border-radius: 50%; background: #25D366; display: flex; align-items: center;
    justify-content: center; z-index: 999; box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    cursor: pointer; transition: all 0.3s; animation: waBounce 3s ease-in-out infinite;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes waBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LTR OVERRIDES — applied when dir="ltr" (English/French) ===== */
[dir="ltr"] body { direction: ltr; text-align: left; }
[dir="ltr"] .hero-content { text-align: center; }
[dir="ltr"] .entry-content ul,
[dir="ltr"] .entry-content ol { padding-right: 0; padding-left: 24px; }
[dir="ltr"] .entry-content blockquote { border-right: none; border-left: 4px solid var(--primary); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
[dir="ltr"] .wp-block-quote { border-right: none; border-left: 4px solid var(--primary); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
[dir="ltr"] .entry-content th { text-align: left; }
[dir="ltr"] .prev-field { direction: ltr; text-align: left; }
[dir="ltr"] .section-header { text-align: center; }
[dir="ltr"] .step { direction: ltr; }
[dir="ltr"] .proof-card { text-align: left; }
[dir="ltr"] .faq-q { text-align: left; }
[dir="ltr"] .faq-a-inner { text-align: left; }
[dir="ltr"] .footer-brand p { text-align: left; }
[dir="ltr"] .footer-col { text-align: left; }
[dir="ltr"] .footer-bottom { text-align: left; }
/* Flip arrows for LTR */
[dir="ltr"] .hero .btn-outline svg { transform: scaleX(-1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar { gap: 28px; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    /* Full-width mobile header */
    header {
        padding: 0 16px; width: 100%;
        display: flex; align-items: center; justify-content: space-between;
    }

    /* Hamburger: inline-start */
    .mobile-toggle {
        display: flex; align-items: center; justify-content: center;
        order: -1;
    }

    /* Logo in center */
    .header-start { order: 0; gap: 0; }
    .header-start .logo { order: 0; }

    /* Hide desktop lang & desktop reg button on mobile */
    .lang-switch-desktop { display: none !important; }
    .header-end { display: none !important; }

    /* Mobile lang selector: inline-end (opposite side of hamburger) */
    .lang-switch-mobile {
        display: block; order: 1;
    }
    .lang-switch-mobile .lang-current { padding: 6px 8px; }

    /* Register button: show mobile version inside dropdown */
    .reg-btn-desktop { display: none !important; }
    #nav.open .reg-btn-mobile {
        display: block; width: 100%; margin-top: 8px; padding: 14px 16px;
        text-align: center; font-size: 0.95rem;
    }
    #nav.open .reg-btn-mobile:hover { transform: none; }

    /* Hide nav by default, show as full-width dropdown when .open */
    #nav, .main-nav {
        display: none; position: static; transform: none;
    }
    #nav.open, .main-nav.open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; right: 0; left: 0; width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px); padding: 16px; gap: 4px;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    }

    /* Menu list: full width, vertical, text aligned to dir */
    #nav.open ul,
    #nav.open > ul,
    .main-nav.open ul {
        flex-direction: column !important; width: 100%; display: flex !important;
    }
    #nav.open ul li,
    .main-nav.open ul li { width: 100%; list-style: none !important; }
    #nav.open ul li a,
    #nav.open a:not(.reg-btn),
    .main-nav.open ul li a {
        display: block; width: 100%; padding: 12px 16px; border-radius: var(--radius-xs);
        text-align: start;
    }
    #nav.open ul li a:hover,
    #nav.open a:not(.reg-btn):hover { background: var(--primary-softer); color: var(--primary); }

    /* WP menu mobile override */
    header#header #nav.open ul.menu,
    header#header #nav.open > ul {
        flex-direction: column !important;
        width: 100% !important;
    }
    header#header #nav.open li,
    header#header #nav.open .menu-item {
        width: 100% !important;
        list-style: none !important;
    }

    .mobile-toggle { display: flex; }
    section { padding: 60px 20px; }
    .hero { padding: 100px 20px 60px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-cards { flex-direction: column; align-items: center; }
    .pricing-card { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .hero-actions { flex-direction: column; align-items: center; }
    .step { gap: 18px; }
    .step-number { width: 48px; height: 48px; min-width: 48px; font-size: 1.1rem; border-radius: 12px; }
    .cta-section { padding: 60px 20px; }
    .trusted-bar { padding: 20px; }
    .trusted-logos { gap: 20px; }
    .logo-img { height: 36px !important; }
    .prev-row { flex-direction: column; gap: 8px; }
    .prev-action-row { flex-direction: column-reverse; }
    .prev-buy-btn { width: 100%; }
}

/* ===== CHECKOUT PREVIEW — pixel-match to itycod V5.8 screenshot ===== */
.preview-outer { max-width: 500px; margin: 0 auto; position: relative; }
.preview-outer::before { display: none; }
.preview-wrapper {
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    border: none; direction: rtl; background: #fff;
}

/* Top bar — blue gradient band */
.prev-topbar {
    background: linear-gradient(135deg, #5b8def 0%, #4B7BE5 50%, #3a6ad4 100%);
    color: #fff; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.prev-topbar-right { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; opacity: 0.92; font-weight: 400; }
.prev-topbar-center { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; }

/* White form area */
.prev-form-area { padding: 30px 24px 24px; background: #fff; }
.prev-form-title {
    font-weight: 800; font-size: 1.2rem; text-align: center;
    margin-bottom: 24px; color: #1a1a2e;
}

/* Input fields — pill shaped to match screenshot */
.prev-fields { display: flex; flex-direction: column; gap: 12px; }
.prev-row { display: flex; gap: 10px; }
.prev-row > * { flex: 1; min-width: 0; }
.prev-field {
    width: 100%; padding: 13px 20px;
    border: 1.5px solid #e8eaef; border-radius: 50px;
    font-family: inherit; font-size: 0.88rem; color: #a0aab5;
    background: #f9fafb; outline: none;
    direction: rtl; text-align: right;
}
.prev-select {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px; border: 1.5px solid #e8eaef; border-radius: 50px;
    background: #f9fafb; color: #a0aab5; font-size: 0.88rem; cursor: default;
}
.prev-chevron { color: #bfc7d0; font-size: 1rem; line-height: 1; }

/* Action row: qty on RIGHT, buy button fills LEFT (in RTL) */
.prev-action-row {
    display: flex; gap: 10px; align-items: stretch;
    margin-top: 20px; flex-direction: row-reverse;
}
.prev-qty {
    display: flex; align-items: center;
    border: 1.5px solid #e8eaef; border-radius: 12px;
    overflow: hidden; background: #f9fafb; flex-shrink: 0;
}
.prev-qty-btn {
    width: 42px; height: 50px; border: none; background: transparent;
    font-size: 1.2rem; color: #64748b; cursor: default; font-weight: 600;
}
.prev-qty-num {
    width: 34px; text-align: center; font-weight: 700; font-size: 1rem; color: #1a1a2e;
    border-left: 1px solid #e8eaef; border-right: 1px solid #e8eaef;
    display: flex; align-items: center; justify-content: center;
}
.prev-buy-btn {
    flex: 1; padding: 14px 20px; border: none; border-radius: 14px;
    font-family: inherit; font-weight: 800; font-size: 1.1rem;
    cursor: default; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(75,123,229,0.30);
    letter-spacing: 0.3px;
}

/* ---- Order Summary ---- */
.prev-summary { border-top: 1px solid #f0f1f3; }
.prev-summary-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 24px; cursor: default;
}
.prev-summary-title { font-weight: 700; font-size: 0.95rem; color: #1a1a2e; }
.prev-summary-body { padding: 0 24px 4px; }
.prev-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid #f3f4f6;
    font-size: 0.92rem; color: #4b5563;
}
.prev-summary-row:last-child { border-bottom: none; }
.prev-prod-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.prev-prod-badge {
    background: #4B7BE5; color: #fff; font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px; border-radius: 5px; letter-spacing: 0.5px;
}
.prev-ship-row { color: #b0b8c4; }
.prev-total-row {
    font-weight: 800; font-size: 1.05rem;
    border-radius: 12px; border-bottom: none !important;
    margin: 6px -24px 0; padding: 18px 24px !important;
    background: linear-gradient(135deg, #eef4fd, #e8effc);
}
.prev-total-row span { color: #4B7BE5; }

/* Logo image responsive */
.logo-img { display: block; object-fit: contain; border-radius: 10px; width: auto; height: 42px; }
