/*
Theme Name: ArabiBlog Pro
Theme URI: https://arabiblog.com
Author: ArabiBlog Team
Author URI: https://arabiblog.com
Description: قالب ووردبرس عربي احترافي لبيع قوالب بلوجر وووردبرس — سيو تلقائي كامل، Schema.org، IndexNow، Core Web Vitals، تجاوب مثالي مع الهاتف.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arabiblog-pro
Tags: rtl-language, arabic, e-commerce, blog, seo, dark, orange, custom-colors, featured-images, post-thumbnails, translation-ready
*/

/* ===================================================================
   TOKENS & RESET
=================================================================== */
:root {
    --primary:       #f97316;
    --primary-dark:  #ea6c0a;
    --primary-light: #fb923c;
    --dark:          #080d1a;
    --dark-light:    #111827;
    --dark-mid:      #1c2438;
    --dark-card:     #141b2d;
    --text-1:        #f1f5f9;
    --text-2:        #94a3b8;
    --text-3:        #64748b;
    --success:       #22c55e;
    --info:          #3b82f6;
    --purple:        #a855f7;
    --border:        rgba(255,255,255,.07);
    --border-hover:  rgba(249,115,22,.35);
    --glow:          0 0 50px rgba(249,115,22,.15);
    --r-sm:  12px;
    --r-md:  18px;
    --r-lg:  24px;
    --r-xl:  32px;
    --r-full:9999px;
    --font:  'Cairo', sans-serif;
    --ease:  cubic-bezier(.22,1,.36,1);
    --t:     0.32s;
    --header-h: 70px;
    --container: 1280px;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text-1);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a  { color:inherit; text-decoration:none; transition:color var(--t) ease; }
img { max-width:100%; height:auto; display:block; }
ul  { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
input,textarea { font-family:inherit; }

/* ===================================================================
   LAYOUT
=================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 72px 0; }

/* ===================================================================
   BUTTONS
=================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 700;
    transition: background var(--t) ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: var(--font);
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 18px rgba(249,115,22,.35);
}
.btn-primary:hover { background: var(--primary-dark); transform:translateY(-2px); box-shadow:0 8px 28px rgba(249,115,22,.45); color:#fff; }
.btn-ghost {
    background: transparent;
    color: var(--text-1);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-2px); }
.btn-lg { padding: 13px 30px; font-size: 15px; }

/* ===================================================================
   HEADER
=================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(8,13,26,.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--t) ease, box-shadow var(--t) ease;
}
.site-header.scrolled {
    background: rgba(8,13,26,.98);
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px; height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    flex-shrink: 0;
}
.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -.3px;
}
.logo-text span { color: var(--primary); }

/* Desktop nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.site-nav a {
    padding: 7px 14px;
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    transition: color var(--t), background var(--t);
}
.site-nav a:hover, .site-nav a.current-menu-item {
    color: var(--text-1);
    background: rgba(255,255,255,.06);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-search-btn {
    width: 38px; height: 38px;
    border-radius: var(--r-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    background: rgba(255,255,255,.05);
    transition: background var(--t), color var(--t);
    font-size: 14px;
}
.header-search-btn:hover { background: rgba(255,255,255,.1); color: var(--text-1); }
.header-cta { font-size: 13px; padding: 9px 18px; }
.header-cta span { display: inline; }

/* Burger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    padding: 6px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.05);
}
.burger-line {
    display: block;
    width: 100%; height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: transform var(--t) ease, opacity var(--t) ease;
}
.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) { opacity:0; }
.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ===================================================================
   MOBILE DRAWER
=================================================================== */
.mobile-drawer { display: none; }

@media (max-width: 900px) {
    .site-nav     { display: none; }
    .header-cta   { display: none; }
    .mobile-menu-toggle { display: flex; }

    .mobile-drawer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1200;
        visibility: hidden;
        pointer-events: none;
    }
    .mobile-drawer.is-open {
        visibility: visible;
        pointer-events: auto;
    }
    .mobile-drawer__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.65);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity var(--t) ease;
    }
    .mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }

    .mobile-drawer__panel {
        position: absolute;
        top: 0; right: 0;
        width: min(320px, 90vw);
        height: 100%;
        background: var(--dark-light);
        border-left: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform var(--t) var(--ease);
        overflow-y: auto;
    }
    .mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }

    .mobile-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .mobile-drawer__close {
        width: 36px; height: 36px;
        display: flex; align-items: center; justify-content: center;
        border-radius: var(--r-sm);
        background: rgba(255,255,255,.06);
        color: var(--text-2);
        font-size: 16px;
        transition: background var(--t), color var(--t);
    }
    .mobile-drawer__close:hover { background: rgba(249,115,22,.15); color: var(--primary); }

    .mobile-drawer__nav {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }
    .mobile-drawer__nav a {
        padding: 12px 16px;
        border-radius: var(--r-md);
        font-size: 15px;
        font-weight: 600;
        color: var(--text-2);
        transition: background var(--t), color var(--t);
    }
    .mobile-drawer__nav a:hover { background: rgba(249,115,22,.1); color: var(--primary); }

    .mobile-drawer__footer {
        padding: 20px;
        border-top: 1px solid var(--border);
    }
}

/* ===================================================================
   HERO
=================================================================== */
.hero {
    position: relative;
    padding: 80px 0 72px;
    overflow: hidden;
    background: var(--dark);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(249,115,22,.07) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: .6;
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, rgba(249,115,22,.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(249,115,22,.1);
    border: 1px solid rgba(249,115,22,.25);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--r-full);
    margin-bottom: 28px;
}
.hero-badge__dot {
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 22px;
    letter-spacing: -.5px;
}
.hero-title__highlight {
    color: var(--primary);
    display: inline-block;
    position: relative;
}
.hero-desc {
    font-size: 17px;
    color: var(--text-2);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.85;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 20px 40px;
    gap: 0;
}
.hero-stat {
    text-align: center;
    padding: 0 36px;
}
.hero-stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.hero-stat__divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* ===================================================================
   TRUST BAR
=================================================================== */
.trust-bar {
    background: rgba(249,115,22,.07);
    border-top: 1px solid rgba(249,115,22,.15);
    border-bottom: 1px solid rgba(249,115,22,.15);
    padding: 13px 0;
    overflow: hidden;
}
.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    white-space: nowrap;
}
.trust-bar__item i { color: var(--primary); font-size: 13px; }
.trust-bar__sep { color: var(--text-3); font-size: 10px; }

/* ===================================================================
   SECTION HEADER
=================================================================== */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.section-header__text {}
.section-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.section-title::before {
    content: '';
    display: block;
    width: 5px; height: 30px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    border-radius: 3px;
    flex-shrink: 0;
}
.section-subtitle {
    font-size: 14px;
    color: var(--text-3);
    padding-right: 20px;
}

/* Category tabs */
.cat-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    align-self: flex-end;
}
.cat-tab {
    padding: 7px 16px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.05);
    color: var(--text-2);
    border: 1px solid var(--border);
    transition: all var(--t) ease;
    white-space: nowrap;
}
.cat-tab:hover, .cat-tab--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===================================================================
   PRODUCTS GRID
=================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* ===================================================================
   PRODUCT CARD (pcard)
=================================================================== */
.pcard {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t) var(--ease),
                box-shadow var(--t) ease,
                border-color var(--t) ease;
    cursor: pointer;
}
.pcard:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 70px rgba(0,0,0,.5), var(--glow);
}

/* Thumbnail */
.pcard__thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}
.pcard__img {
    width:100%; height:100%;
    object-fit: cover;
    display: block;
    transition: transform .65s var(--ease);
}
.pcard:hover .pcard__img { transform: scale(1.06); }

.pcard__placeholder {
    width:100%; height:100%;
    background: var(--dark-mid);
    display: flex; align-items: center; justify-content: center;
}
.pcard__placeholder i { font-size:3rem; color:var(--primary); opacity:.2; }

/* Top vignette */
.pcard__top-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,8,18,.5) 0%, transparent 40%);
    pointer-events: none;
}

/* Category badge */
.pcard__cat {
    position: absolute;
    top: 13px; right: 13px;
    background: rgba(5,8,18,.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--cat-clr, var(--primary));
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 4px 12px;
    border-radius: var(--r-full);
    pointer-events: none;
}

/* Title band */
.pcard__title-band {
    padding: 18px 20px 12px;
    flex: 1;
}
.pcard__title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-1);
    min-height: 3.2em;
    transition: color .25s;
}
.pcard__title a { color: inherit; text-decoration: none; }
.pcard:hover .pcard__title, .pcard:hover .pcard__title a { color: var(--primary-light); }

/* Footer */
.pcard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    background: rgba(5,8,18,.4);
    gap: 12px;
}
.pcard__price {
    font-size: 22px;
    font-weight: 900;
    color: var(--success);
    line-height: 1;
    letter-spacing: -.4px;
}
.pcard__price small {
    font-size: 13px;
    font-weight: 700;
    opacity: .75;
    vertical-align: super;
}
.pcard__price--free { color: var(--primary); font-size: 17px; }
.pcard__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--r-full);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .25s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(249,115,22,.32);
}
.pcard__btn:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
    box-shadow: 0 6px 22px rgba(249,115,22,.48);
    color: #fff;
}

/* ===================================================================
   EMPTY STATE
=================================================================== */
.empty-state {
    text-align: center;
    padding: 100px 0;
    color: var(--text-3);
}
.empty-state i { font-size: 3.5rem; margin-bottom: 20px; opacity: .25; display: block; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-2); }

/* ===================================================================
   PAGINATION
=================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 64px;
}
.pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--r-full);
    background: var(--dark-mid);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 700;
    transition: all var(--t) ease;
}
.pagination__btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(249,115,22,.07); }

/* ===================================================================
   FEATURES / WHY US
=================================================================== */
.why-us { margin-top: 80px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    transition: border-color var(--t), transform var(--t) var(--ease);
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.feature-card__icon {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: rgba(var(--icon-clr), .12);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--icon-clr, var(--primary));
    margin-bottom: 18px;
    background: rgba(249,115,22,.1);
}
.feature-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-1);
}
.feature-card p { font-size: 13.5px; color: var(--text-3); line-height: 1.75; }

/* ===================================================================
   BUY CARDS
=================================================================== */
.buy-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 64px;
}
.buy-card {
    border-radius: var(--r-lg);
    padding: 32px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--border);
    background: var(--dark-card);
    transition: border-color var(--t), transform var(--t) var(--ease);
}
.buy-card:hover { transform: translateY(-4px); }
.buy-card--green { border-color: rgba(34,197,94,.2); }
.buy-card--green:hover { border-color: rgba(34,197,94,.4); }
.buy-card--blue  { border-color: rgba(59,130,246,.2); }
.buy-card--blue:hover  { border-color: rgba(59,130,246,.4); }
.buy-card__icon {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.buy-card--green .buy-card__icon { background: rgba(34,197,94,.1); color: var(--success); }
.buy-card--blue  .buy-card__icon { background: rgba(59,130,246,.1); color: var(--info); }
.buy-card__body h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-1);
}
.buy-card__body ul { display: flex; flex-direction: column; gap: 10px; }
.buy-card__body li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-2);
}
.buy-card--green li i { color: var(--success); margin-top: 3px; flex-shrink: 0; }
.buy-card--blue  li i { color: var(--info);    margin-top: 3px; flex-shrink: 0; }

/* ===================================================================
   ABOUT SECTION
=================================================================== */
.about-section {
    margin-top: 64px;
    background: linear-gradient(135deg, rgba(249,115,22,.06) 0%, rgba(168,85,247,.05) 100%);
    border: 1px solid rgba(249,115,22,.15);
    border-radius: var(--r-xl);
    padding: 56px 60px;
    text-align: center;
}
.about-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249,115,22,.1);
    border: 1px solid rgba(249,115,22,.2);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.about-section h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-1);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.about-section p {
    font-size: 15px;
    color: var(--text-2);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ===================================================================
   FOOTER
=================================================================== */
.site-footer {
    background: var(--dark-light);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-3);
    margin-top: 16px;
    line-height: 1.8;
    max-width: 280px;
}
.footer-col__title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
    font-size: 14px;
    color: var(--text-3);
    transition: color var(--t);
}
.footer-col li a:hover { color: var(--text-1); }
.payment-icons {
    display: flex;
    gap: 14px;
    font-size: 28px;
    color: var(--text-3);
    flex-wrap: wrap;
}
.payment-icons i:hover { color: var(--text-2); }
.newsletter-form {
    display: flex;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
}
.newsletter-form input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-1);
    outline: none;
}
.newsletter-form input::placeholder { color: var(--text-3); }
.newsletter-form button {
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    transition: background var(--t);
}
.newsletter-form button:hover { background: var(--primary-dark); }
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.social-links a {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--text-3);
    transition: background var(--t), color var(--t), border-color var(--t);
}
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-3);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom__seo { font-size: 12px; color: var(--text-3); opacity: .6; }

/* ===================================================================
   SINGLE POST
=================================================================== */
.single-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}
.single-sidebar { order: 1; }
.post-content-area {
    order: 2;
    /* Critical: prevent grid child from overflowing its column */
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
}
.post-hero-image {
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16/9;
}
.post-hero-image img { width:100%; height:100%; object-fit:cover; }

.post-article-box {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px;
}
.post-article-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-1);
}
.post-content h2,h3,h4 { color:var(--text-1); margin:28px 0 14px; font-weight:800; }
.post-content p { color:var(--text-2); margin-bottom:18px; line-height:1.85; }
.post-content a { color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.post-content ul,ol { padding-right:20px; color:var(--text-2); }
.post-content li { margin-bottom:8px; }
.post-content img { border-radius:var(--r-md); margin:20px 0; }
.post-content blockquote {
    border-right: 4px solid var(--primary);
    background: rgba(249,115,22,.06);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 18px 22px;
    margin: 24px 0;
    color: var(--text-2);
    font-style: italic;
}

/* ===================================================================
   RESPONSIVE TABLES — شاملة لكل محتوى المقالات والصفحات
=================================================================== */

/* غلاف تمرير أفقي يُضاف تلقائياً عبر JS */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    /* مؤشر تمرير خفيف على الجوال */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.table-responsive-wrapper::-webkit-scrollbar { height: 4px; }
.table-responsive-wrapper::-webkit-scrollbar-track { background: transparent; }
.table-responsive-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ─── أسلوب الجدول الأساسي ─── */
.post-content table,
.post-article-content table,
.entry-content table,
.wp-block-table table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
    min-width: 480px; /* يُجبر التمرير الأفقي عند الحاجة */
    background: var(--dark-card);
}

/* رأس الجدول */
.post-content table thead,
.post-article-content table thead,
.entry-content table thead,
.wp-block-table table thead,
.page-content table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}
.post-content table th,
.post-article-content table th,
.entry-content table th,
.wp-block-table table th,
.page-content table th {
    padding: 12px 16px;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .3px;
    white-space: nowrap;
    border: none;
    color: #fff;
}

/* خلايا الجدول */
.post-content table td,
.post-article-content table td,
.entry-content table td,
.wp-block-table table td,
.page-content table td {
    padding: 11px 16px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

/* صفوف متناوبة */
.post-content table tbody tr:nth-child(even),
.post-article-content table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even),
.wp-block-table table tbody tr:nth-child(even),
.page-content table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.025);
}

/* تأثير hover على الصفوف */
.post-content table tbody tr:hover,
.post-article-content table tbody tr:hover,
.entry-content table tbody tr:hover,
.wp-block-table table tbody tr:hover,
.page-content table tbody tr:hover {
    background: rgba(249,115,22,.07);
}

/* آخر صف بدون حد */
.post-content table tbody tr:last-child td,
.post-article-content table tbody tr:last-child td,
.entry-content table tbody tr:last-child td,
.wp-block-table table tbody tr:last-child td,
.page-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Gutenberg wp-block-table */
.wp-block-table {
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.wp-block-table figcaption {
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
    margin-top: 8px;
}

/* ─── تجاوب المحتوى العام ─── */
.post-content,
.post-article-content,
.entry-content,
.page-content {
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* الصور متجاوبة دائماً */
.post-content img,
.post-article-content img,
.entry-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Embeds & iframes */
.post-content iframe,
.post-article-content iframe,
.entry-content iframe,
.page-content iframe {
    max-width: 100%;
}
.wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
}

/* كود متجاوب */
.post-content pre,
.post-article-content pre,
.entry-content pre,
.page-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(0,0,0,.35);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    margin: 20px 0;
}
.post-content code,
.post-article-content code,
.entry-content code,
.page-content code {
    font-size: .88em;
    background: rgba(249,115,22,.12);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ─── تجاوب إضافي على الجوال الصغير ─── */
@media (max-width: 640px) {
    .post-content table,
    .post-article-content table,
    .entry-content table,
    .wp-block-table table,
    .page-content table {
        font-size: 13px;
    }
    .post-content table th,
    .post-article-content table th,
    .entry-content table th,
    .wp-block-table table th,
    .page-content table th {
        padding: 10px 12px;
        font-size: 12px;
    }
    .post-content table td,
    .post-article-content table td,
    .entry-content table td,
    .wp-block-table table td,
    .page-content table td {
        padding: 9px 12px;
    }
}

/* Sidebar */
.sidebar-card {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.sidebar-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 24px;
}
.sidebar-header h2 { font-size:15px; font-weight:800; color:#fff; line-height:1.5; }
.sidebar-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.price-box { text-align:center; }
.price-label { font-size:11px; text-transform:uppercase; letter-spacing:2px; color:var(--text-3); margin-bottom:8px; }
.price-amount { font-size:2.5rem; font-weight:900; color:var(--success); line-height:1; }
.sidebar-actions { display:flex; flex-direction:column; gap:10px; }

/* Buttons in sidebar */
.btn-success { background:var(--success); color:#fff; box-shadow:0 4px 14px rgba(34,197,94,.3); }
.btn-success:hover { background:#16a34a; color:#fff; transform:translateY(-2px); }
.btn-dark { background:var(--dark-mid); color:var(--text-1); border:1px solid var(--border); }
.btn-dark:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-2px); }
.btn-outline { background:transparent; color:var(--text-2); border:1px solid var(--border); }
.btn-outline:hover { border-color:var(--text-2); color:var(--text-1); transform:translateY(-2px); }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { opacity: .4; }
.breadcrumbs .current { color: var(--text-2); }

/* ===================================================================
   SEARCH + ARCHIVE
=================================================================== */
.search-box {
    display: flex;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
}
.search-box input {
    flex:1; background:none; border:none;
    padding: 10px 14px; font-size:14px;
    color: var(--text-1); outline:none;
}
.search-box input::placeholder { color:var(--text-3); }
.search-box button {
    padding: 10px 16px;
    background: var(--primary); color:#fff; font-size:14px;
    transition: background var(--t);
}
.search-box button:hover { background: var(--primary-dark); }

/* ===================================================================
   BADGES
=================================================================== */
.badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 14px; border-radius: var(--r-full);
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px;
}
.badge-primary { background: rgba(249,115,22,.1); color: var(--primary); border: 1px solid rgba(249,115,22,.2); }

/* ===================================================================
   ANIMATIONS
=================================================================== */
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(28px); }
    to   { opacity:1; transform:translateY(0); }
}
.animate-fade-up          { animation: fadeInUp .65s var(--ease) both; }
.animate-delay-1          { animation-delay: .1s; }
.animate-delay-2          { animation-delay: .2s; }
.animate-delay-3          { animation-delay: .32s; }
.animate-delay-4          { animation-delay: .44s; }

/* ===================================================================
   LOADING SKELETON
=================================================================== */
.skeleton {
    background: linear-gradient(90deg, var(--dark-light) 25%, var(--dark-mid) 50%, var(--dark-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================================================
   PERFORMANCE: reduced-motion
=================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ===================================================================
   RESPONSIVE — TABLET  ≤ 1100px
=================================================================== */
@media (max-width: 1100px) {
    .products-grid  { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .features-grid  { grid-template-columns: repeat(2, 1fr); }
    .footer-grid    { grid-template-columns: 1fr 1fr; gap: 36px; }
    .single-layout  { grid-template-columns: 1fr; }
    .sidebar-card   { position: static; }
    .buy-cards-row  { grid-template-columns: 1fr; }
    .about-section  { padding: 40px 32px; }
    .hero-stats     { padding: 18px 24px; }
    .hero-stat      { padding: 0 20px; }
}

/* ===================================================================
   RESPONSIVE — MOBILE  ≤ 640px
=================================================================== */
@media (max-width: 640px) {
    :root { --header-h: 60px; }
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }

    /* Hero */
    .hero { padding: 56px 0 48px; }
    .hero-title { font-size: 1.85rem; }
    .hero-desc { font-size: 15px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats {
        flex-wrap: wrap;
        padding: 16px;
        gap: 16px 0;
    }
    .hero-stat { padding: 8px 16px; flex: 1 1 40%; }
    .hero-stat__divider { display: none; }
    .hero-stat__number { font-size: 1.6rem; }

    /* Trust bar */
    .trust-bar__inner { gap: 12px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }

    /* Grid */
    .products-grid  { grid-template-columns: 1fr; gap: 16px; }
    .features-grid  { grid-template-columns: 1fr; }
    .buy-cards-row  { grid-template-columns: 1fr; }

    /* Cards */
    .pcard__title { font-size: 15px; min-height: auto; }

    /* Section header */
    .section-header { flex-direction: column; }
    .cat-tabs { align-self: flex-start; }

    /* About */
    .about-section { padding: 32px 20px; }
    .about-section h2 { font-size: 1.35rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom__seo { display: none; }

    /* Single */
    .post-article-box { padding: 24px; }
    .post-article-title { font-size: 1.4rem; }
    .sidebar-body { padding: 20px; }
    .section-title { font-size: 1.4rem; }
}

/* ===================================================================
   PRINT
=================================================================== */
@media print {
    .site-header, .site-footer, .mobile-drawer, .sidebar-card { display: none; }
    body { background: #fff; color: #000; }
    .post-article-box { border: none; padding: 0; }
}

/* ===================================================================
   SECURITY: admin bar compat
=================================================================== */
html body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    html body.admin-bar .site-header { top: 46px; }
}

/* ===================================================================
   SCREEN READER ONLY
=================================================================== */
.sr-only {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* ===================================================================
   ANNOUNCEMENT BAR
=================================================================== */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
    background-size: 200% 100%;
    animation: announcement-slide 4s linear infinite;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
@keyframes announcement-slide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ===================================================================
   CRITICAL RESPONSIVE FIX — جداول وعناصر المقالات (الإصدار 2)
   يستهدف .post-article-box مباشرة بغض النظر عن الكلاس الأب
=================================================================== */

/* ── إصلاح شامل لحاوية المقال ── */
.post-article-box {
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* ── إصلاح شامل لكل div داخل post-content-area ── */
.post-content-area * {
    box-sizing: border-box;
}

/* ── الجداول داخل صفحات المقالات بشكل مباشر ── */
.post-article-box table,
.post-content-area table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
    background: var(--dark-card);
    /* هذا هو السطر الجوهري: يُجبر الجدول على الانضغاط */
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

/* إعادة الشكل الطبيعي للعناصر الداخلية */
.post-article-box table thead,
.post-article-box table tbody,
.post-article-box table tfoot,
.post-content-area table thead,
.post-content-area table tbody,
.post-content-area table tfoot {
    display: table-header-group;
}
.post-article-box table tbody,
.post-content-area table tbody { display: table-row-group; }
.post-article-box table tfoot,
.post-content-area table tfoot { display: table-footer-group; }

.post-article-box table tr,
.post-content-area table tr { display: table-row; }

.post-article-box table th,
.post-article-box table td,
.post-content-area table th,
.post-content-area table td {
    display: table-cell;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.post-article-box table th,
.post-content-area table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 16px;
    border-bottom: none;
}

.post-article-box table tbody tr:nth-child(even),
.post-content-area table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.025);
}
.post-article-box table tbody tr:hover,
.post-content-area table tbody tr:hover {
    background: rgba(249,115,22,.07);
}
.post-article-box table tbody tr:last-child td,
.post-content-area table tbody tr:last-child td {
    border-bottom: none;
}

/* ── الصور والـ iframes ── */
.post-article-box img,
.post-article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}
.post-article-box iframe,
.post-article-content iframe {
    max-width: 100% !important;
}

/* ── الكود ── */
.post-article-box pre,
.post-article-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
    max-width: 100%;
}

/* ── تجاوب الجوال الصغير ── */
@media (max-width: 640px) {
    .post-article-box { padding: 20px 16px; }
    .post-content-area { padding: 0; }
    .single-layout { gap: 20px; }

    .post-article-box table,
    .post-content-area table {
        font-size: 12.5px;
    }
    .post-article-box table th,
    .post-content-area table th {
        padding: 9px 10px;
        font-size: 11.5px;
    }
    .post-article-box table td,
    .post-content-area table td {
        padding: 8px 10px;
    }
}

/* ── تجاوب التابلت ── */
@media (max-width: 768px) {
    .post-article-box { padding: 24px 18px; }
}
